@vectoriox/iox-ui 5.93.0 → 5.95.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.
Files changed (46) hide show
  1. package/actions-core/index.d.ts +7 -2
  2. package/commerce-core/index.d.ts +863 -3
  3. package/composite-core/index.d.ts +290 -2
  4. package/design-core/index.d.ts +1049 -105
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +15 -4
  6. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +1509 -5
  8. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +1170 -177
  10. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs +1147 -43
  12. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +2 -2
  14. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  15. package/fesm2022/vectoriox-iox-ui.mjs +8 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  17. package/generation-core/index.d.ts +2 -2
  18. package/index.d.ts +2 -0
  19. package/package.json +1 -1
  20. package/src/actions-core/action.model.ts +1 -1
  21. package/src/actions-core/element-actions.ts +17 -3
  22. package/src/commerce-core/cart-transport.ts +211 -0
  23. package/src/commerce-core/cart.ts +305 -0
  24. package/src/commerce-core/catalog.ts +42 -0
  25. package/src/commerce-core/checkout.ts +202 -0
  26. package/src/commerce-core/decimal.ts +28 -0
  27. package/src/commerce-core/labels.ts +29 -0
  28. package/src/commerce-core/limits.ts +9 -0
  29. package/src/commerce-core/money-error.ts +1 -0
  30. package/src/commerce-core/order-snapshot.ts +151 -0
  31. package/src/commerce-core/orders.ts +172 -0
  32. package/src/commerce-core/payments.ts +196 -0
  33. package/src/commerce-core/public-api.ts +19 -4
  34. package/src/commerce-core/quantity.ts +56 -0
  35. package/src/commerce-core/shipping.ts +168 -0
  36. package/src/commerce-core/shop-display.ts +117 -0
  37. package/src/commerce-core/text.ts +13 -0
  38. package/src/commerce-core/variants.ts +296 -0
  39. package/src/commerce-core/vat.ts +38 -0
  40. package/src/composite-core/exclusive-runtime.ts +20 -7
  41. package/src/composite-core/public-api.ts +2 -0
  42. package/src/composite-core/shop-runtime.ts +626 -0
  43. package/src/composite-core/shop.ts +433 -0
  44. package/src/design-core/flavor-spec.generated.ts +1147 -43
  45. package/src/generation-core/site-spec.generated.ts +2 -2
  46. package/styles/iox-design.css +95 -0
@@ -10,7 +10,7 @@ import { CompositeItemAction } from '@vectoriox/iox-ui/composite-core';
10
10
  /** How a step executes — decides which editor fields appear (timing only for `animated`). */
11
11
  type ActionKind = 'animated' | 'instant' | 'server';
12
12
  /** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */
13
- type ActionGroup = 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'service';
13
+ type ActionGroup = 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'service';
14
14
  /**
15
15
  * What a step does inside the live builder canvas (the canvas RUNS interactions):
16
16
  * `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a
@@ -112,8 +112,13 @@ declare const SCROLL_PROGRESS_TRIGGER = "scrollProgress";
112
112
  * fires on its own — when it comes into view, or with the page in the first screen behind an entrance. Under a click or a
113
113
  * hover it would stand at its start value until pressed; it is never armed there, and never offered.
114
114
  */
115
+ /** The plan feature selling sits behind (C-D18: the control plane's `features.shop`). */
116
+ declare const SHOP_ENTITLEMENT = "shop";
115
117
  declare const COUNT_UP_TRIGGERS: ReadonlyArray<string>;
116
118
  declare const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[];
119
+ /** The shop actions' dispatch set (commerce E1c) — the engines branch on it beside DIALOG / BEHAVIOUR and hand the action
120
+ * to composite-core `runShopAction`, which reads the product, the variant and the quantity around the element. */
121
+ declare const SHOP_ACTION_TYPES: ReadonlySet<string>;
117
122
  /** The A2 server executors' dispatch set — the live engine POSTs these to the public actions
118
123
  * route; the canvas simulates them (a server action never runs from the ADMIN's browser). */
119
124
  declare const SERVER_ELEMENT_ACTION_TYPES: ReadonlySet<string>;
@@ -299,5 +304,5 @@ interface FocusableSheet {
299
304
  */
300
305
  declare function focusDialogSheet(dialog: FocusableSheet | null | undefined): boolean;
301
306
 
302
- export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, cancelExit, closeDialogAnimated, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, focusDialogSheet, groupedElementActions, isExiting, itemActionOf, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, resolveActionAvailability, runExitMotion };
307
+ export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, cancelExit, closeDialogAnimated, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, focusDialogSheet, groupedElementActions, isExiting, itemActionOf, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, resolveActionAvailability, runExitMotion };
303
308
  export type { ActionAvailability, ActionAvailabilityContext, ActionAvailabilityState, ActionDescriptor, ActionGroup, ActionKind, ActionParamSpec, ActionTargetSpec, BuilderBehaviour, DialogElementLike, ExitAnimationLike, ExitMotionElement, ExitMotionOptions, FocusableSheet, OpenerActionLike, OpenerInteractionLike, OpenerNodeLike };