@vectoriox/iox-ui 5.8.0 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,6 +99,9 @@ declare function resolveActionAvailability(descriptor: ActionDescriptor, ctx?: A
99
99
  * payments — a subsystem and a product, not dropdown entries.
100
100
  */
101
101
  declare const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[];
102
+ /** The A2 server executors' dispatch set — the live engine POSTs these to the public actions
103
+ * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */
104
+ declare const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string>;
102
105
  /** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside
103
106
  * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */
104
107
  declare const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string>;
@@ -113,5 +116,5 @@ declare function groupedElementActions(): ReadonlyArray<{
113
116
  actions: ActionDescriptor[];
114
117
  }>;
115
118
 
116
- export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, addableActions, groupedElementActions, resolveActionAvailability };
119
+ export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, SERVER_ELEMENT_ACTION_TYPES, addableActions, groupedElementActions, resolveActionAvailability };
117
120
  export type { ActionAvailability, ActionAvailabilityContext, ActionAvailabilityState, ActionDescriptor, ActionGroup, ActionKind, ActionParamSpec, ActionTargetSpec, BuilderBehaviour };
@@ -106,12 +106,34 @@ const ELEMENT_ACTION_DESCRIPTORS = Object.freeze([
106
106
  ] },
107
107
  { type: 'openConsentPreferences', labelKey: 'builder.actions.openConsentPreferences', kind: 'instant', group: 'consent', builderBehaviour: 'run',
108
108
  target: { required: true, types: ['Dialog'] } },
109
+ // ── Server actions (A2 — Tier B): the canvas SIMULATES, the LIVE site POSTs the node's
110
+ // identity to ONE public route and the server re-derives the spec from the SAVED page.
111
+ // The author's saved params are the whole spec — a visitor contributes only the click.
112
+ { type: 'sendEmail', labelKey: 'builder.actions.sendEmail', kind: 'server', group: 'service', builderBehaviour: 'simulate',
113
+ connector: 'mailer',
114
+ params: [
115
+ { name: 'to', type: 'string', label: 'To' },
116
+ { name: 'subject', type: 'string', label: 'Subject' },
117
+ { name: 'message', type: 'string', label: 'Message' },
118
+ ] },
119
+ { type: 'callWebhook', labelKey: 'builder.actions.callWebhook', kind: 'server', group: 'service', builderBehaviour: 'simulate',
120
+ params: [
121
+ { name: 'url', type: 'string', label: 'URL' }, // non-secret config (K2); the server SSRF-guards it
122
+ ] },
123
+ { type: 'createItem', labelKey: 'builder.actions.createItem', kind: 'server', group: 'data', builderBehaviour: 'simulate',
124
+ params: [
125
+ { name: 'contentType', type: 'string', label: 'Content type' },
126
+ { name: 'values', type: 'string', label: 'Field values (JSON)' },
127
+ ] },
109
128
  // ── Services (D-A5: visible, greyed, with the reason — never hidden, never live) ──
110
129
  { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'service', builderBehaviour: 'inert',
111
130
  planned: true, entitlement: 'visitorIdentity' },
112
131
  { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'service', builderBehaviour: 'inert',
113
132
  planned: true, connector: 'payment', entitlement: 'commerce' },
114
133
  ]);
134
+ /** The A2 server executors' dispatch set — the live engine POSTs these to the public actions
135
+ * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */
136
+ const SERVER_ELEMENT_ACTION_TYPES = new Set(['sendEmail', 'callWebhook', 'createItem']);
115
137
  /** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside
116
138
  * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */
117
139
  const BEHAVIOUR_ACTION_TYPES = new Set(['navigate', 'scrollTo', 'submitForm', 'copyToClipboard']);
@@ -142,5 +164,5 @@ function groupedElementActions() {
142
164
  * Generated bundle index. Do not edit.
143
165
  */
144
166
 
145
- export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, addableActions, groupedElementActions, resolveActionAvailability };
167
+ export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, SERVER_ELEMENT_ACTION_TYPES, addableActions, groupedElementActions, resolveActionAvailability };
146
168
  //# sourceMappingURL=vectoriox-iox-ui-actions-core.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"vectoriox-iox-ui-actions-core.mjs","sources":["../../../projects/iox-ui/src/actions-core/action.model.ts","../../../projects/iox-ui/src/actions-core/availability.ts","../../../projects/iox-ui/src/actions-core/element-actions.ts","../../../projects/iox-ui/src/actions-core/public-api.ts","../../../projects/iox-ui/src/actions-core/vectoriox-iox-ui-actions-core.ts"],"sourcesContent":["/**\n * The ONE descriptor shape for everything an author can put in an ordered action list —\n * a form's after-submit steps today, element behaviour actions (A1) next. Promoted out of\n * `forms-core` because a button action importing from the forms module would be a lie; the\n * forms catalog lives here now and `forms-core` re-exports it unchanged.\n * See iox-ai-guidance `architecture/builder/actions-framework-plan.md` §4 (A0).\n */\n\n/** How a step executes — decides which editor fields appear (timing only for `animated`). */\nexport type ActionKind = 'animated' | 'instant' | 'server';\n\n/** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */\nexport type ActionGroup =\n | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'form' | 'data' | 'consent' | 'service';\n\n/**\n * What a step does inside the live builder canvas (the canvas RUNS interactions):\n * `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a\n * \"runs on the live site\" note (anything server-side or costing money).\n */\nexport type BuilderBehaviour = 'run' | 'simulate' | 'inert';\n\n/** A configurable parameter, same shape ComponentMethodDef.params already uses. */\nexport interface ActionParamSpec {\n name: string;\n type: 'number' | 'string' | 'boolean' | 'page' | 'node' | 'form';\n label: string;\n /** Closed value set — the editor renders a select instead of a free text input. */\n options?: readonly { value: string; labelKey: string }[];\n}\n\n/** Does this action point at another node — and may it be any node or only certain types? */\nexport interface ActionTargetSpec {\n required: boolean;\n types?: string[];\n}\n\n/**\n * One row of an action catalog. Every field beyond `type`/`labelKey` is optional so the\n * pre-A0 forms descriptors remain valid verbatim.\n */\nexport interface ActionDescriptor {\n type: string;\n labelKey: string;\n kind?: ActionKind;\n group?: ActionGroup;\n builderBehaviour?: BuilderBehaviour;\n target?: ActionTargetSpec;\n params?: ActionParamSpec[];\n /** The connector that must be configured & healthy before this action is offerable. */\n connector?: string;\n /** Plan-entitlement key (AI plan D5). Absent = never gated by plan. */\n entitlement?: string;\n /** Always present in the list and not removable (forms: `store`). */\n locked?: boolean;\n /** Not offered yet — shown greyed with a \"coming soon\" note, so the roadmap is visible. */\n planned?: boolean;\n}\n\n/**\n * The FORM after-submit catalog (moved verbatim from forms-core; `forms-core` re-exports it\n * under its old name `ACTION_DESCRIPTORS`). A1's element catalog is a SEPARATE constant —\n * the two lists share this shape, never one bucket.\n */\nexport const FORM_SUBMIT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n { type: 'store', labelKey: 'forms.actions.store', locked: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'email', labelKey: 'forms.actions.email', kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n { type: 'redirect', labelKey: 'forms.actions.redirect', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate' },\n { type: 'createItem', labelKey: 'forms.actions.createItem', planned: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'webhook', labelKey: 'forms.actions.webhook', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert' },\n { type: 'autoReply', labelKey: 'forms.actions.autoReply', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n]);\n\n/** Steps that can still be added to a list — each at most once, and never a planned one. */\nexport function addableActions(\n existing: readonly { type: string }[] = [],\n catalog: readonly ActionDescriptor[] = FORM_SUBMIT_ACTION_DESCRIPTORS,\n): ActionDescriptor[] {\n const used = new Set(existing.map(action => action.type));\n return catalog.filter(action => !action.locked && !action.planned && !used.has(action.type));\n}\n","import { ActionDescriptor } from './action.model';\n\n/**\n * K4 of the actions plan: four different reasons a catalog row is unavailable, four different\n * sentences — *coming soon* · *always on* · *connect X first* · *upgrade*. One resolver feeds\n * the picker AND the AI composer's validation, so they can never disagree.\n */\nexport type ActionAvailabilityState =\n | 'available'\n | 'planned' // not built yet — greyed, \"coming soon\"\n | 'locked' // always present, not addable/removable\n | 'connector-missing' // the named connector is not configured/healthy\n | 'entitlement-missing'; // the plan does not include it\n\nexport interface ActionAvailability {\n state: ActionAvailabilityState;\n /** Set when state is connector-missing / entitlement-missing — what to name in the message. */\n connector?: string;\n entitlement?: string;\n}\n\nexport interface ActionAvailabilityContext {\n /** Connector health by name. An absent map, or an absent key, means \"not known\" → allowed. */\n connectors?: Partial<Record<string, boolean>>;\n /**\n * Plan entitlements by key. `Plan.entitlements` does not exist yet anywhere (the known gap),\n * so an ABSENT map means \"no gating\" and every entitlement passes — the hook is live the day\n * the control plane starts sending them.\n */\n entitlements?: Partial<Record<string, boolean>>;\n}\n\nexport function resolveActionAvailability(\n descriptor: ActionDescriptor,\n ctx: ActionAvailabilityContext = {},\n): ActionAvailability {\n if (descriptor.planned) return { state: 'planned' };\n if (descriptor.locked) return { state: 'locked' };\n if (descriptor.connector && ctx.connectors && ctx.connectors[descriptor.connector] === false) {\n return { state: 'connector-missing', connector: descriptor.connector };\n }\n if (descriptor.entitlement && ctx.entitlements && ctx.entitlements[descriptor.entitlement] === false) {\n return { state: 'entitlement-missing', entitlement: descriptor.entitlement };\n }\n return { state: 'available' };\n}\n","import { ActionDescriptor } from './action.model';\n\n/**\n * The ELEMENT action catalog (actions plan A1) — what a node can DO, as data. One list feeds the\n * grouped picker, the two interaction engines, and the AI composer's validation (§9: the model\n * picks actions BY NAME from this catalog and can never invent behaviour).\n *\n * Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;\n * their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is\n * a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.\n * `signIn`/`startCheckout` ship greyed with the honest reason (D-A5): no visitor identity, no\n * payments — a subsystem and a product, not dropdown entries.\n */\nexport const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n // ── Motion (shipped WAAPI actions — timing row applies) ──────────────────\n { type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'fadeOut', labelKey: 'builder.actions.fadeOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveUp', labelKey: 'builder.actions.moveUp', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveDown', labelKey: 'builder.actions.moveDown', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveLeft', labelKey: 'builder.actions.moveLeft', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveRight',labelKey: 'builder.actions.moveRight',kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleIn', labelKey: 'builder.actions.scaleIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleOut', labelKey: 'builder.actions.scaleOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'rotate', labelKey: 'builder.actions.rotate', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [{ name: 'degrees', type: 'number', label: 'Degrees' }] },\n\n // ── Visibility (shipped) ─────────────────────────────────────────────────\n { type: 'show', labelKey: 'builder.actions.show', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'hide', labelKey: 'builder.actions.hide', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'toggleVisibility', labelKey: 'builder.actions.toggleVisibility', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n\n // ── Navigate (A1 — Tier A) ───────────────────────────────────────────────\n { type: 'navigate', labelKey: 'builder.actions.navigate', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate',\n params: [\n { name: 'navigateTo', type: 'string', label: 'Destination' }, // 'page' | 'url' | 'back'\n { name: 'page', type: 'page', label: 'Page' },\n { name: 'url', type: 'string', label: 'URL' },\n ] },\n { type: 'scrollTo', labelKey: 'builder.actions.scrollTo', kind: 'instant', group: 'navigate', builderBehaviour: 'run',\n target: { required: false } },\n\n // ── Dialog (A1 — needs the Dialog component, A1b) ───────────────────────\n { type: 'openDialog', labelKey: 'builder.actions.openDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n { type: 'closeDialog', labelKey: 'builder.actions.closeDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n { type: 'toggleDialog', labelKey: 'builder.actions.toggleDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Form (A1 — Tier A; the submit transport is the forms module's, I7 of its plan) ──\n // simulate in the CANVAS: the builder's Form is a container twin with no real <form>,\n // so there is nothing honest to run — the live engine requestSubmit()s the real one.\n { type: 'submitForm', labelKey: 'builder.actions.submitForm', kind: 'instant', group: 'form', builderBehaviour: 'simulate',\n target: { required: true, types: ['Form'] } },\n\n // ── Data (shipped context actions + the one trivial newcomer) ───────────\n { type: 'setContext', labelKey: 'builder.actions.setContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'clearContext', labelKey: 'builder.actions.clearContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'copyToClipboard', labelKey: 'builder.actions.copyToClipboard', kind: 'instant', group: 'data', builderBehaviour: 'run',\n params: [{ name: 'text', type: 'string', label: 'Text' }] },\n\n // ── Consent (C3 — the banner's vocabulary; all pure writes of the consent cookie) ──\n // The canvas SIMULATES the recording ones: the builder runs in the ADMIN's browser, and an\n // admin's cookie is not a visitor's decision. Opening the preferences dialog is honest to run.\n { type: 'grantConsent', labelKey: 'builder.actions.grantConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'denyConsent', labelKey: 'builder.actions.denyConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'setConsentCategory', labelKey: 'builder.actions.setConsentCategory', kind: 'instant', group: 'consent', builderBehaviour: 'simulate',\n params: [\n { name: 'category', type: 'string', label: 'Category', options: [\n { value: 'analytics', labelKey: 'builder.actions.params.categoryAnalytics' },\n { value: 'marketing', labelKey: 'builder.actions.params.categoryMarketing' },\n ] },\n { name: 'granted', type: 'boolean', label: 'Granted' },\n ] },\n { type: 'openConsentPreferences', labelKey: 'builder.actions.openConsentPreferences', kind: 'instant', group: 'consent', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Services (D-A5: visible, greyed, with the reason — never hidden, never live) ──\n { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'service', builderBehaviour: 'inert',\n planned: true, entitlement: 'visitorIdentity' },\n { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'service', builderBehaviour: 'inert',\n planned: true, connector: 'payment', entitlement: 'commerce' },\n]);\n\n/** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside\n * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */\nexport const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string> =\n new Set(['navigate', 'scrollTo', 'submitForm', 'copyToClipboard']);\n\n/** The consent actions' dispatch set (C3) — the engines branch on it beside DIALOG/BEHAVIOUR.\n * `openConsentPreferences` is dialog-opening by nature and included so ONE branch owns consent. */\nexport const CONSENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['grantConsent', 'denyConsent', 'setConsentCategory', 'openConsentPreferences']);\n\n/** Picker order — most-used groups first, services last (they are the shop window, not the shop). */\nexport const ELEMENT_ACTION_GROUP_ORDER: readonly string[] =\n Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'form', 'data', 'consent', 'service']);\n\n/** The catalog, grouped and ordered for the picker — one derivation, no hand-kept second list. */\nexport function groupedElementActions(): ReadonlyArray<{ group: string; actions: ActionDescriptor[] }> {\n return ELEMENT_ACTION_GROUP_ORDER\n .map(group => ({ group, actions: ELEMENT_ACTION_DESCRIPTORS.filter(d => d.group === group) }))\n .filter(g => g.actions.length > 0);\n}\n","/**\n * @vectoriox/iox-ui/actions-core — the shared, FRAMEWORK-FREE action vocabulary.\n *\n * One `ActionDescriptor` shape for every ordered action list in the product: the forms\n * after-submit steps (whose catalog moved here; `forms-core` re-exports it unchanged) and\n * the element behaviour actions of A1. Framework-free for the same reason as `forms-core`\n * and `seo-core`: `iox-cms` consumes it under plain Node.\n * ⚠️ Consumers wire the usual trio — ng-package raw-ts assets, jest moduleNameMapper, and\n * tsconfig paths — or `nest start` dies with ERR_REQUIRE_ESM while jest and build pass.\n */\nexport * from './action.model';\nexport * from './availability';\nexport * from './element-actions';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;AAqDH;;;;AAIG;AACI,MAAM,8BAA8B,GAAgC,MAAM,CAAC,MAAM,CAAC;IACrF,EAAE,IAAI,EAAE,OAAO,EAAO,QAAQ,EAAE,qBAAqB,EAAO,MAAM,EAAE,IAAI,EAAG,IAAI,EAAE,QAAQ,EAAG,KAAK,EAAE,MAAM,EAAM,gBAAgB,EAAE,OAAO,EAAE;IAC1I,EAAE,IAAI,EAAE,OAA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,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE;AACnE,CAAA;AAED;AACoG;AAC7F,MAAM,sBAAsB,GAC/B,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,CAAC;AAErE;AACoG;AAC7F,MAAM,oBAAoB,GAC7B,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,aAAa,EAAE,oBAAoB,EAAE,wBAAwB,CAAC;AAE3F;AACO,MAAM,0BAA0B,GACnC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;AAEtG;SACgB,qBAAqB,GAAA;AACjC,IAAA,OAAO;SACF,GAAG,CAAC,KAAK,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,EAAE,CAAC;AAC5F,SAAA,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1C;;ACvGA;;;;;;;;;AASG;;ACTH;;AAEG;;;;"}
1
+ {"version":3,"file":"vectoriox-iox-ui-actions-core.mjs","sources":["../../../projects/iox-ui/src/actions-core/action.model.ts","../../../projects/iox-ui/src/actions-core/availability.ts","../../../projects/iox-ui/src/actions-core/element-actions.ts","../../../projects/iox-ui/src/actions-core/public-api.ts","../../../projects/iox-ui/src/actions-core/vectoriox-iox-ui-actions-core.ts"],"sourcesContent":["/**\n * The ONE descriptor shape for everything an author can put in an ordered action list —\n * a form's after-submit steps today, element behaviour actions (A1) next. Promoted out of\n * `forms-core` because a button action importing from the forms module would be a lie; the\n * forms catalog lives here now and `forms-core` re-exports it unchanged.\n * See iox-ai-guidance `architecture/builder/actions-framework-plan.md` §4 (A0).\n */\n\n/** How a step executes — decides which editor fields appear (timing only for `animated`). */\nexport type ActionKind = 'animated' | 'instant' | 'server';\n\n/** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */\nexport type ActionGroup =\n | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'form' | 'data' | 'consent' | 'service';\n\n/**\n * What a step does inside the live builder canvas (the canvas RUNS interactions):\n * `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a\n * \"runs on the live site\" note (anything server-side or costing money).\n */\nexport type BuilderBehaviour = 'run' | 'simulate' | 'inert';\n\n/** A configurable parameter, same shape ComponentMethodDef.params already uses. */\nexport interface ActionParamSpec {\n name: string;\n type: 'number' | 'string' | 'boolean' | 'page' | 'node' | 'form';\n label: string;\n /** Closed value set — the editor renders a select instead of a free text input. */\n options?: readonly { value: string; labelKey: string }[];\n}\n\n/** Does this action point at another node — and may it be any node or only certain types? */\nexport interface ActionTargetSpec {\n required: boolean;\n types?: string[];\n}\n\n/**\n * One row of an action catalog. Every field beyond `type`/`labelKey` is optional so the\n * pre-A0 forms descriptors remain valid verbatim.\n */\nexport interface ActionDescriptor {\n type: string;\n labelKey: string;\n kind?: ActionKind;\n group?: ActionGroup;\n builderBehaviour?: BuilderBehaviour;\n target?: ActionTargetSpec;\n params?: ActionParamSpec[];\n /** The connector that must be configured & healthy before this action is offerable. */\n connector?: string;\n /** Plan-entitlement key (AI plan D5). Absent = never gated by plan. */\n entitlement?: string;\n /** Always present in the list and not removable (forms: `store`). */\n locked?: boolean;\n /** Not offered yet — shown greyed with a \"coming soon\" note, so the roadmap is visible. */\n planned?: boolean;\n}\n\n/**\n * The FORM after-submit catalog (moved verbatim from forms-core; `forms-core` re-exports it\n * under its old name `ACTION_DESCRIPTORS`). A1's element catalog is a SEPARATE constant —\n * the two lists share this shape, never one bucket.\n */\nexport const FORM_SUBMIT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n { type: 'store', labelKey: 'forms.actions.store', locked: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'email', labelKey: 'forms.actions.email', kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n { type: 'redirect', labelKey: 'forms.actions.redirect', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate' },\n { type: 'createItem', labelKey: 'forms.actions.createItem', planned: true, kind: 'server', group: 'data', builderBehaviour: 'inert' },\n { type: 'webhook', labelKey: 'forms.actions.webhook', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert' },\n { type: 'autoReply', labelKey: 'forms.actions.autoReply', planned: true, kind: 'server', group: 'service', builderBehaviour: 'inert', connector: 'mailer' },\n]);\n\n/** Steps that can still be added to a list — each at most once, and never a planned one. */\nexport function addableActions(\n existing: readonly { type: string }[] = [],\n catalog: readonly ActionDescriptor[] = FORM_SUBMIT_ACTION_DESCRIPTORS,\n): ActionDescriptor[] {\n const used = new Set(existing.map(action => action.type));\n return catalog.filter(action => !action.locked && !action.planned && !used.has(action.type));\n}\n","import { ActionDescriptor } from './action.model';\n\n/**\n * K4 of the actions plan: four different reasons a catalog row is unavailable, four different\n * sentences — *coming soon* · *always on* · *connect X first* · *upgrade*. One resolver feeds\n * the picker AND the AI composer's validation, so they can never disagree.\n */\nexport type ActionAvailabilityState =\n | 'available'\n | 'planned' // not built yet — greyed, \"coming soon\"\n | 'locked' // always present, not addable/removable\n | 'connector-missing' // the named connector is not configured/healthy\n | 'entitlement-missing'; // the plan does not include it\n\nexport interface ActionAvailability {\n state: ActionAvailabilityState;\n /** Set when state is connector-missing / entitlement-missing — what to name in the message. */\n connector?: string;\n entitlement?: string;\n}\n\nexport interface ActionAvailabilityContext {\n /** Connector health by name. An absent map, or an absent key, means \"not known\" → allowed. */\n connectors?: Partial<Record<string, boolean>>;\n /**\n * Plan entitlements by key. `Plan.entitlements` does not exist yet anywhere (the known gap),\n * so an ABSENT map means \"no gating\" and every entitlement passes — the hook is live the day\n * the control plane starts sending them.\n */\n entitlements?: Partial<Record<string, boolean>>;\n}\n\nexport function resolveActionAvailability(\n descriptor: ActionDescriptor,\n ctx: ActionAvailabilityContext = {},\n): ActionAvailability {\n if (descriptor.planned) return { state: 'planned' };\n if (descriptor.locked) return { state: 'locked' };\n if (descriptor.connector && ctx.connectors && ctx.connectors[descriptor.connector] === false) {\n return { state: 'connector-missing', connector: descriptor.connector };\n }\n if (descriptor.entitlement && ctx.entitlements && ctx.entitlements[descriptor.entitlement] === false) {\n return { state: 'entitlement-missing', entitlement: descriptor.entitlement };\n }\n return { state: 'available' };\n}\n","import { ActionDescriptor } from './action.model';\n\n/**\n * The ELEMENT action catalog (actions plan A1) — what a node can DO, as data. One list feeds the\n * grouped picker, the two interaction engines, and the AI composer's validation (§9: the model\n * picks actions BY NAME from this catalog and can never invent behaviour).\n *\n * Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;\n * their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is\n * a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.\n * `signIn`/`startCheckout` ship greyed with the honest reason (D-A5): no visitor identity, no\n * payments — a subsystem and a product, not dropdown entries.\n */\nexport const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([\n // ── Motion (shipped WAAPI actions — timing row applies) ──────────────────\n { type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'fadeOut', labelKey: 'builder.actions.fadeOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveUp', labelKey: 'builder.actions.moveUp', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveDown', labelKey: 'builder.actions.moveDown', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveLeft', labelKey: 'builder.actions.moveLeft', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'moveRight',labelKey: 'builder.actions.moveRight',kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleIn', labelKey: 'builder.actions.scaleIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'scaleOut', labelKey: 'builder.actions.scaleOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },\n { type: 'rotate', labelKey: 'builder.actions.rotate', kind: 'animated', group: 'motion', builderBehaviour: 'run',\n params: [{ name: 'degrees', type: 'number', label: 'Degrees' }] },\n\n // ── Visibility (shipped) ─────────────────────────────────────────────────\n { type: 'show', labelKey: 'builder.actions.show', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'hide', labelKey: 'builder.actions.hide', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n { type: 'toggleVisibility', labelKey: 'builder.actions.toggleVisibility', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },\n\n // ── Navigate (A1 — Tier A) ───────────────────────────────────────────────\n { type: 'navigate', labelKey: 'builder.actions.navigate', kind: 'instant', group: 'navigate', builderBehaviour: 'simulate',\n params: [\n { name: 'navigateTo', type: 'string', label: 'Destination' }, // 'page' | 'url' | 'back'\n { name: 'page', type: 'page', label: 'Page' },\n { name: 'url', type: 'string', label: 'URL' },\n ] },\n { type: 'scrollTo', labelKey: 'builder.actions.scrollTo', kind: 'instant', group: 'navigate', builderBehaviour: 'run',\n target: { required: false } },\n\n // ── Dialog (A1 — needs the Dialog component, A1b) ───────────────────────\n { type: 'openDialog', labelKey: 'builder.actions.openDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n { type: 'closeDialog', labelKey: 'builder.actions.closeDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n { type: 'toggleDialog', labelKey: 'builder.actions.toggleDialog', kind: 'instant', group: 'dialog', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Form (A1 — Tier A; the submit transport is the forms module's, I7 of its plan) ──\n // simulate in the CANVAS: the builder's Form is a container twin with no real <form>,\n // so there is nothing honest to run — the live engine requestSubmit()s the real one.\n { type: 'submitForm', labelKey: 'builder.actions.submitForm', kind: 'instant', group: 'form', builderBehaviour: 'simulate',\n target: { required: true, types: ['Form'] } },\n\n // ── Data (shipped context actions + the one trivial newcomer) ───────────\n { type: 'setContext', labelKey: 'builder.actions.setContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'clearContext', labelKey: 'builder.actions.clearContext', kind: 'instant', group: 'data', builderBehaviour: 'run' },\n { type: 'copyToClipboard', labelKey: 'builder.actions.copyToClipboard', kind: 'instant', group: 'data', builderBehaviour: 'run',\n params: [{ name: 'text', type: 'string', label: 'Text' }] },\n\n // ── Consent (C3 — the banner's vocabulary; all pure writes of the consent cookie) ──\n // The canvas SIMULATES the recording ones: the builder runs in the ADMIN's browser, and an\n // admin's cookie is not a visitor's decision. Opening the preferences dialog is honest to run.\n { type: 'grantConsent', labelKey: 'builder.actions.grantConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'denyConsent', labelKey: 'builder.actions.denyConsent', kind: 'instant', group: 'consent', builderBehaviour: 'simulate' },\n { type: 'setConsentCategory', labelKey: 'builder.actions.setConsentCategory', kind: 'instant', group: 'consent', builderBehaviour: 'simulate',\n params: [\n { name: 'category', type: 'string', label: 'Category', options: [\n { value: 'analytics', labelKey: 'builder.actions.params.categoryAnalytics' },\n { value: 'marketing', labelKey: 'builder.actions.params.categoryMarketing' },\n ] },\n { name: 'granted', type: 'boolean', label: 'Granted' },\n ] },\n { type: 'openConsentPreferences', labelKey: 'builder.actions.openConsentPreferences', kind: 'instant', group: 'consent', builderBehaviour: 'run',\n target: { required: true, types: ['Dialog'] } },\n\n // ── Server actions (A2 — Tier B): the canvas SIMULATES, the LIVE site POSTs the node's\n // identity to ONE public route and the server re-derives the spec from the SAVED page.\n // The author's saved params are the whole spec — a visitor contributes only the click.\n { type: 'sendEmail', labelKey: 'builder.actions.sendEmail', kind: 'server', group: 'service', builderBehaviour: 'simulate',\n connector: 'mailer',\n params: [\n { name: 'to', type: 'string', label: 'To' },\n { name: 'subject', type: 'string', label: 'Subject' },\n { name: 'message', type: 'string', label: 'Message' },\n ] },\n { type: 'callWebhook', labelKey: 'builder.actions.callWebhook', kind: 'server', group: 'service', builderBehaviour: 'simulate',\n params: [\n { name: 'url', type: 'string', label: 'URL' }, // non-secret config (K2); the server SSRF-guards it\n ] },\n { type: 'createItem', labelKey: 'builder.actions.createItem', kind: 'server', group: 'data', builderBehaviour: 'simulate',\n params: [\n { name: 'contentType', type: 'string', label: 'Content type' },\n { name: 'values', type: 'string', label: 'Field values (JSON)' },\n ] },\n\n // ── Services (D-A5: visible, greyed, with the reason — never hidden, never live) ──\n { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'service', builderBehaviour: 'inert',\n planned: true, entitlement: 'visitorIdentity' },\n { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'service', builderBehaviour: 'inert',\n planned: true, connector: 'payment', entitlement: 'commerce' },\n]);\n\n/** The A2 server executors' dispatch set — the live engine POSTs these to the public actions\n * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */\nexport const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['sendEmail', 'callWebhook', 'createItem']);\n\n/** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside\n * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */\nexport const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string> =\n new Set(['navigate', 'scrollTo', 'submitForm', 'copyToClipboard']);\n\n/** The consent actions' dispatch set (C3) — the engines branch on it beside DIALOG/BEHAVIOUR.\n * `openConsentPreferences` is dialog-opening by nature and included so ONE branch owns consent. */\nexport const CONSENT_ACTION_TYPES: ReadonlySet<string> =\n new Set(['grantConsent', 'denyConsent', 'setConsentCategory', 'openConsentPreferences']);\n\n/** Picker order — most-used groups first, services last (they are the shop window, not the shop). */\nexport const ELEMENT_ACTION_GROUP_ORDER: readonly string[] =\n Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'form', 'data', 'consent', 'service']);\n\n/** The catalog, grouped and ordered for the picker — one derivation, no hand-kept second list. */\nexport function groupedElementActions(): ReadonlyArray<{ group: string; actions: ActionDescriptor[] }> {\n return ELEMENT_ACTION_GROUP_ORDER\n .map(group => ({ group, actions: ELEMENT_ACTION_DESCRIPTORS.filter(d => d.group === group) }))\n .filter(g => g.actions.length > 0);\n}\n","/**\n * @vectoriox/iox-ui/actions-core — the shared, FRAMEWORK-FREE action vocabulary.\n *\n * One `ActionDescriptor` shape for every ordered action list in the product: the forms\n * after-submit steps (whose catalog moved here; `forms-core` re-exports it unchanged) and\n * the element behaviour actions of A1. Framework-free for the same reason as `forms-core`\n * and `seo-core`: `iox-cms` consumes it under plain Node.\n * ⚠️ Consumers wire the usual trio — ng-package raw-ts assets, jest moduleNameMapper, and\n * tsconfig paths — or `nest start` dies with ERR_REQUIRE_ESM while jest and build pass.\n */\nexport * from './action.model';\nexport * from './availability';\nexport * from './element-actions';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;AAqDH;;;;AAIG;AACI,MAAM,8BAA8B,GAAgC,MAAM,CAAC,MAAM,CAAC;IACrF,EAAE,IAAI,EAAE,OAAO,EAAO,QAAQ,EAAE,qBAAqB,EAAO,MAAM,EAAE,IAAI,EAAG,IAAI,EAAE,QAAQ,EAAG,KAAK,EAAE,MAAM,EAAM,gBAAgB,EAAE,OAAO,EAAE;IAC1I,EAAE,IAAI,EAAE,OAAO,EAAO,QAAQ,EAAE,qBAAqB,EAAsB,IAAI,EAAE,QAAQ,EAAG,KAAK,EAAE,SAAS,EAAG,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AAC/J,IAAA,EAAE,IAAI,EAAE,UAAU,EAAI,QAAQ,EAAE,wBAAwB,EAAmB,IAAI,EAAE,SAAS,EAAE,KAA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AE,oBAAoB,EAAE,wBAAwB,CAAC;AAE3F;AACO,MAAM,0BAA0B,GACnC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;AAEtG;SACgB,qBAAqB,GAAA;AACjC,IAAA,OAAO;SACF,GAAG,CAAC,KAAK,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,EAAE,CAAC;AAC5F,SAAA,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1C;;AChIA;;;;;;;;;AASG;;ACTH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.8.0",
3
+ "version": "5.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -75,6 +75,26 @@ export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.fr
75
75
  { type: 'openConsentPreferences', labelKey: 'builder.actions.openConsentPreferences', kind: 'instant', group: 'consent', builderBehaviour: 'run',
76
76
  target: { required: true, types: ['Dialog'] } },
77
77
 
78
+ // ── Server actions (A2 — Tier B): the canvas SIMULATES, the LIVE site POSTs the node's
79
+ // identity to ONE public route and the server re-derives the spec from the SAVED page.
80
+ // The author's saved params are the whole spec — a visitor contributes only the click.
81
+ { type: 'sendEmail', labelKey: 'builder.actions.sendEmail', kind: 'server', group: 'service', builderBehaviour: 'simulate',
82
+ connector: 'mailer',
83
+ params: [
84
+ { name: 'to', type: 'string', label: 'To' },
85
+ { name: 'subject', type: 'string', label: 'Subject' },
86
+ { name: 'message', type: 'string', label: 'Message' },
87
+ ] },
88
+ { type: 'callWebhook', labelKey: 'builder.actions.callWebhook', kind: 'server', group: 'service', builderBehaviour: 'simulate',
89
+ params: [
90
+ { name: 'url', type: 'string', label: 'URL' }, // non-secret config (K2); the server SSRF-guards it
91
+ ] },
92
+ { type: 'createItem', labelKey: 'builder.actions.createItem', kind: 'server', group: 'data', builderBehaviour: 'simulate',
93
+ params: [
94
+ { name: 'contentType', type: 'string', label: 'Content type' },
95
+ { name: 'values', type: 'string', label: 'Field values (JSON)' },
96
+ ] },
97
+
78
98
  // ── Services (D-A5: visible, greyed, with the reason — never hidden, never live) ──
79
99
  { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'service', builderBehaviour: 'inert',
80
100
  planned: true, entitlement: 'visitorIdentity' },
@@ -82,6 +102,11 @@ export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.fr
82
102
  planned: true, connector: 'payment', entitlement: 'commerce' },
83
103
  ]);
84
104
 
105
+ /** The A2 server executors' dispatch set — the live engine POSTs these to the public actions
106
+ * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */
107
+ export const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string> =
108
+ new Set(['sendEmail', 'callWebhook', 'createItem']);
109
+
85
110
  /** The Tier-A behaviour executors' dispatch set (A1c) — the engines branch on it beside
86
111
  * DIALOG/SWIPER. Dialog actions have their own set; context/visibility stay in the legacy path. */
87
112
  export const BEHAVIOUR_ACTION_TYPES: ReadonlySet<string> =