Files
openmotion/shared/entitlement-hooks.ts
Q-baobao dcd36bb43e feat(studio): unify clipboard fallback, novice copy handoff cards, and AI media upsell strips (#1142)
* 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>
2026-11-26 21:58:23 +08:00

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);
}