mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 02:59:49 +08:00
* feat(studio): unify clipboard fallback, novice copy handoff cards, and AI media upsell strips * fix(i18n): add all 12 new UI strings across all 10 non-English locales * fix(studio): guard skill handoff card on selection change and drop unused mcp_media_upgrade hook --------- Co-authored-by: qiqi <qiqi@qiqideMBP.lan>
31 lines
746 B
TypeScript
31 lines
746 B
TypeScript
export const ENTITLEMENT_HOOK_IDS = [
|
|
'header_signin',
|
|
'settings_signin',
|
|
'template_use',
|
|
'private_link_gate',
|
|
'assets_empty',
|
|
'studio_generate',
|
|
'cloud_export',
|
|
'session_expired_401',
|
|
'header_pricing',
|
|
'bf_banner',
|
|
'bf_hero',
|
|
'bf_hub',
|
|
'settings_subscription',
|
|
'studio_free_gate',
|
|
'model_picker_upgrade',
|
|
'studio_res_gate',
|
|
'failure_card_topup',
|
|
'mcp_oauth',
|
|
'template_prep_ai_media',
|
|
'export_done_upsell',
|
|
] as const;
|
|
|
|
export type EntitlementHookId = (typeof ENTITLEMENT_HOOK_IDS)[number];
|
|
|
|
const ENTITLEMENT_HOOK_ID_SET: ReadonlySet<string> = new Set(ENTITLEMENT_HOOK_IDS);
|
|
|
|
export function isEntitlementHookId(value: string): value is EntitlementHookId {
|
|
return ENTITLEMENT_HOOK_ID_SET.has(value);
|
|
}
|