@vectoriox/iox-builder 11.49.0 → 11.51.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.
@@ -17,14 +17,14 @@ import { TooltipModule } from 'primeng/tooltip';
17
17
  import * as i20 from 'primeng/dialog';
18
18
  import { DialogModule } from 'primeng/dialog';
19
19
  import * as i2$1 from '@vectoriox/iox-ui';
20
- import { Breakpoint, setOverride, nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, applyBoundStyle, safeSetInput, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, isLastEmittedStateKey, orderStatesForEmit, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, compileStackedChildren, BreakpointQueryKind, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, wrapInBreakpointQuery, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, motionAllowed, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, IS_PREVIEW, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, stampSelectorAttributes, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, switchElementStyle, releaseElementStyle, countOverrides, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, groundHeadersIn, watchHeaderHeight, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, pageLanguageOf, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
20
+ import { Breakpoint, setOverride, nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, applyBoundStyle, safeSetInput, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, nodeTraitValue, isLastEmittedStateKey, orderStatesForEmit, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, compileStackedChildren, BreakpointQueryKind, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, wrapInBreakpointQuery, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, motionAllowed, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, IS_PREVIEW, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, syncNodeA11yAttributes, nodeA11yAttributes, stampSelectorAttributes, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, switchElementStyle, releaseElementStyle, countOverrides, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, groundHeadersIn, watchHeaderHeight, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, pageLanguageOf, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
21
21
  export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
22
- import { StructureEdit, isAccordionPart, isDisclosurePart, isSliderPart, isTabsPart, isSegmentedPart, structureRefusal, StructureRefusal, SegmentedRole, SEGMENTED_MAX_OPTIONS, AccordionRole, SEGMENTED_MIN_OPTIONS, isExclusiveItemPart, TabsRole, ITEM_OPEN_STATE, readStyle, isSegmentedRoot, segmentedDefaultOn, segmentedOptions, isTabsRoot, isTabsFromContent, tabsTriggers, isAccordionRoot, isAccordionFromContent, accordionItems, initialAccordionOpen, accordionBehaviour, exclusiveItemLabel, exclusiveRootOf, tabTriggerOf, tabLabel, removeTabPair, tabPanelOf, tabsListOf, tabsPanelsOf, nextTabKey, CompositeBehaviourTrait, ACCORDION_DEFAULT_ONS, TabsBehaviourTrait, TABS_ACTIVATE_ONS, TABS_ORIENTATIONS, MarqueeTrait, MarqueeSpeed, MarqueeDirection, PopupTrait, PopupKind, PopupForm, PopupArrive, PopupAgain, DIALOG_MODAL_TRAIT, DisclosureRole, isExclusiveTrigger, onCompositeItemState, isCompositeItemOn, runAccountAction, ShopActionType, runShopAction, runCompositeItemAction, shouldScrollToItem, rowIndexOf as rowIndexOf$1, slideIndexForRow, isMarqueeRoot, compositeScopeId, compositeRowKeys, isExclusiveRoot, ExclusiveRuntime, exclusiveDefaultOf, exclusiveLabelOf, exclusiveBehaviourOf, exclusiveKindOf, compositeKindOfRole, AccordionRuntime, isToggleKind, MarqueeRuntime, closestAccordionItem, isAnyCompositeRoot, SceneRole, isExclusiveList, buildCardRecipe, buildBadge, buildChip, buildAccordionRecipe, buildDisclosureRecipe, buildTabsRecipe, buildSegmentedRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildCounterRecipe, buildReadingBarRecipe, SHOP_RECIPES, ShopRecipe, ACCOUNT_RECIPES, AccountRecipe, NO_ELEMENT_STYLE, CompositeKind, PopupRole, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, popupFormOf, splitSliderChildren, hasSliderParts, buildConsentRecipe, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
22
+ import { StructureEdit, isAccordionPart, isDisclosurePart, isSliderPart, isTabsPart, isSegmentedPart, structureRefusal, StructureRefusal, SegmentedRole, SEGMENTED_MAX_OPTIONS, AccordionRole, SEGMENTED_MIN_OPTIONS, isExclusiveItemPart, TabsRole, ITEM_OPEN_STATE, readStyle, isSegmentedRoot, segmentedDefaultOn, segmentedOptions, isTabsRoot, isTabsFromContent, tabsTriggers, isAccordionRoot, isAccordionFromContent, accordionItems, initialAccordionOpen, accordionBehaviour, exclusiveItemLabel, exclusiveRootOf, tabTriggerOf, tabLabel, removeTabPair, tabPanelOf, tabsListOf, tabsPanelsOf, nextTabKey, CompositeBehaviourTrait, ACCORDION_DEFAULT_ONS, TabsBehaviourTrait, TABS_ACTIVATE_ONS, TABS_ORIENTATIONS, MarqueeTrait, MarqueeSpeed, MarqueeDirection, PopupTrait, PopupKind, PopupForm, PopupArrive, PopupAgain, DIALOG_MODAL_TRAIT, DisclosureRole, isExclusiveTrigger, onCompositeItemState, isCompositeItemOn, runAccountAction, ShopActionType, runShopAction, runCompositeItemAction, shouldScrollToItem, rowIndexOf as rowIndexOf$1, slideIndexForRow, isWordMaskRoot, WordMaskRuntime, isMarqueeRoot, compositeScopeId, compositeRowKeys, isExclusiveRoot, ExclusiveRuntime, exclusiveDefaultOf, exclusiveLabelOf, exclusiveBehaviourOf, exclusiveKindOf, compositeKindOfRole, AccordionRuntime, isToggleKind, MarqueeRuntime, closestAccordionItem, isAnyCompositeRoot, SceneRole, isExclusiveList, buildCardRecipe, buildBadge, buildChip, buildAccordionRecipe, buildDisclosureRecipe, buildTabsRecipe, buildSegmentedRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildCounterRecipe, buildReadingBarRecipe, buildWordMaskRecipe, SHOP_RECIPES, ShopRecipe, ACCOUNT_RECIPES, AccountRecipe, NO_ELEMENT_STYLE, CompositeKind, PopupRole, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, popupFormOf, splitSliderChildren, hasSliderParts, buildConsentRecipe, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
23
23
  import { formContentInHost, isInteractiveHost, findFormContentInHosts, formPresetById, presetFormActions, busyWord, fieldKindWords, channelWords, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_NODE_TYPE, FIELD_NODE_TYPE, formWordIn, DEFAULT_BUSY_WORDS, FORM_AFTER_SEND_TRAIT, FormAfterSend, baselineFormWords } from '@vectoriox/iox-ui/forms-core';
24
24
  import { Subject, BehaviorSubject, of, forkJoin, combineLatest } from 'rxjs';
25
25
  import { isPlaceholderRow, variableAliases, listPlaceholderFields } from '@vectoriox/iox-ui/data-core';
26
26
  import interact from 'interactjs';
27
- import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderGround, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuShows, MenuButtonKind, openingMediaOf, localeDirection, pageColumn, HeaderAttribute, pageOpeningScheme, menuDialogAttributes, MenuAttribute, closeWord } from '@vectoriox/iox-ui/design-core';
27
+ import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderGround, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuShows, MenuButtonKind, headerAttributes, HeaderAttribute, openingMediaOf, localeDirection, pageColumn, pageOpeningScheme, menuDialogAttributes, MenuAttribute, closeWord } from '@vectoriox/iox-ui/design-core';
28
28
  import { map, catchError, skip } from 'rxjs/operators';
29
29
  import * as i1 from '@angular/common/http';
30
30
  import { SAMPLE_PRODUCT, productInScope, simulatedCartTransport, storefrontCatalog, SAMPLE_STUDIO, SAMPLE_CART_LINE, SAMPLE_SWATCHES } from '@vectoriox/iox-ui/commerce-core';
@@ -1714,6 +1714,8 @@ const ACTION_TYPE_OPTIONS = [
1714
1714
  { value: 'countUp', label: 'Count up' },
1715
1715
  { value: 'parallax', label: 'Depth (parallax)' },
1716
1716
  { value: 'progressBar', label: 'Fill as read' },
1717
+ { value: 'maskZoomOut', label: 'Word zoom out' },
1718
+ { value: 'maskZoomIn', label: 'Word zoom in' },
1717
1719
  { value: 'show', label: 'Show' },
1718
1720
  { value: 'hide', label: 'Hide' },
1719
1721
  { value: 'toggleVisibility', label: 'Toggle visibility' },
@@ -2713,6 +2715,38 @@ function arrayItemSchemaFields(properties, arrayPath) {
2713
2715
  return { fields: [], isPrimitive: true };
2714
2716
  }
2715
2717
 
2718
+ /**
2719
+ * True when the node renders a header that draws LAYERS of its own: the HI3 ground (`::before`, the glass or the bar) and
2720
+ * its veil (`::after`), or the scroll edge (`::after`) of a header that stays at the top. The shared CSS (iox-design.css)
2721
+ * lays each of them `position: absolute` against the header itself, so the header must be their containing block.
2722
+ * Read from the attributes the renderers write (`headerAttributes`), never from a second rule.
2723
+ */
2724
+ function drawsHeaderLayers(node) {
2725
+ if (!node)
2726
+ return false;
2727
+ const attrs = headerAttributes(nodeTraitValue(node, HeaderTrait.Behaviour), nodeTraitValue(node, HeaderTrait.Edge), nodeTraitValue(node, HeaderTrait.Ink), nodeTraitValue(node, HeaderTrait.Ground), nodeTraitValue(node, HeaderTrait.Shape), nodeTraitValue(node, HeaderTrait.Brand));
2728
+ return HeaderAttribute.Ground in attrs || (HeaderAttribute.Behaviour in attrs && HeaderAttribute.Edge in attrs);
2729
+ }
2730
+ /** The position the canvas draws a layer-drawing header with in place of a stored `static`. */
2731
+ const HEADER_LAYERS_POSITION = 'relative';
2732
+ /**
2733
+ * The style map the canvas compiles for a node: unchanged, except that a header that draws its own layers (see
2734
+ * `drawsHeaderLayers`) and is stored `position: static` is drawn `relative`.
2735
+ *
2736
+ * Why only on the canvas: the canvas forces a node's stored `position` (`!important`, StyleRegistryService.IMPORTANT_PROPS)
2737
+ * and so beats the shared CSS that makes the header their containing block (`sticky` / `relative`). A header stored
2738
+ * `static` (the AI designer's pages: Villa Maren, Tavor & Co., 2026-12-03) let its `::before` / `::after` fill the WHOLE
2739
+ * globals layer — the frame — and the glass or the veil washed out the page under the bar. The live engine never forces
2740
+ * position (it drops `static` as a no-op), so the shared CSS wins there and it is right already. `relative` with no offsets
2741
+ * draws the bar exactly where `static` does; only the containing block changes. A stored relative / sticky / absolute /
2742
+ * fixed is already a containing block and is kept. Pure: the input is never touched.
2743
+ */
2744
+ function withHeaderLayersPosition(styles, drawsLayers) {
2745
+ if (!drawsLayers || String(styles['position'] ?? '').trim() !== 'static')
2746
+ return styles;
2747
+ return { ...styles, position: HEADER_LAYERS_POSITION };
2748
+ }
2749
+
2716
2750
  /**
2717
2751
  * CSS container name of the builder canvas frame (and of the global-elements overlay). Breakpoint
2718
2752
  * rules are emitted as `@container iox-canvas (max-width: …)`: the frame's layout width IS the
@@ -2801,6 +2835,9 @@ class StyleRegistryService {
2801
2835
  /** The section colour scheme each css id wears — a scheme'd node's `color: inherit` compiles to the
2802
2836
  * scheme's ink (`withSchemeInk`, iox-ui#15), exactly as both engine paths compile it. */
2803
2837
  this.nodeSchemes = new Map();
2838
+ /** The css ids of headers that draw layers of their own (`drawsHeaderLayers`): a stored `static` is drawn `relative`
2839
+ * on every rule of theirs, so the header is the containing block of its ground / veil / edge (`withHeaderLayersPosition`). */
2840
+ this.layerHeaders = new Set();
2804
2841
  this.tokenCss = { base: '', dark: '' };
2805
2842
  this.tokenRows = [];
2806
2843
  /** The site's content column word, read from the rows (design-core `siteColumnOf`, award §0c) — what a page with no
@@ -2844,8 +2881,9 @@ class StyleRegistryService {
2844
2881
  */
2845
2882
  /** Record a node's type and the colour scheme it wears (RenderDirective and every re-registration,
2846
2883
  * before the upsert) and recompile nothing — every later rule for the node is stripped of what the
2847
- * type's renderer owns, and a scheme'd node's inherited colour reads the scheme's ink. */
2848
- setNodeType(nodeId, type, colorScheme) {
2884
+ * type's renderer owns, a scheme'd node's inherited colour reads the scheme's ink, and a header that draws its own
2885
+ * layers (`drawsHeaderLayers`) stored `static` is drawn `relative`. */
2886
+ setNodeType(nodeId, type, colorScheme, drawsHeaderLayers = false) {
2849
2887
  if (!nodeId)
2850
2888
  return;
2851
2889
  if (type)
@@ -2854,10 +2892,15 @@ class StyleRegistryService {
2854
2892
  this.nodeSchemes.set(nodeId, colorScheme);
2855
2893
  else
2856
2894
  this.nodeSchemes.delete(nodeId);
2895
+ if (drawsHeaderLayers)
2896
+ this.layerHeaders.add(nodeId);
2897
+ else
2898
+ this.layerHeaders.delete(nodeId);
2857
2899
  }
2858
2900
  ownProps(nodeId, styles) {
2859
2901
  const type = this.nodeTypes.get(nodeId);
2860
- return withSchemeInk(type ? stripSuppressedProps(type, styles) : styles, this.nodeSchemes.get(nodeId));
2902
+ const own = withSchemeInk(type ? stripSuppressedProps(type, styles) : styles, this.nodeSchemes.get(nodeId));
2903
+ return withHeaderLayersPosition(own, this.layerHeaders.has(nodeId));
2861
2904
  }
2862
2905
  upsert(nodeId, styles, state, relativeToId, triggerId) {
2863
2906
  if (!nodeId)
@@ -3077,6 +3120,7 @@ class StyleRegistryService {
3077
3120
  this.clearResponsive(nodeId);
3078
3121
  this.nodeTypes.delete(nodeId);
3079
3122
  this.nodeSchemes.delete(nodeId);
3123
+ this.layerHeaders.delete(nodeId);
3080
3124
  this.flush();
3081
3125
  }
3082
3126
  destroy() {
@@ -3088,6 +3132,7 @@ class StyleRegistryService {
3088
3132
  this.stateScopes.clear();
3089
3133
  this.nodeTypes.clear();
3090
3134
  this.nodeSchemes.clear();
3135
+ this.layerHeaders.clear();
3091
3136
  this.tokenCss = { base: '', dark: '' };
3092
3137
  this.tokenRows = [];
3093
3138
  this._siteColumn = null;
@@ -6303,11 +6348,14 @@ class CompositeCanvasService {
6303
6348
  this.attached = new Map();
6304
6349
  this.exclusive = new Map();
6305
6350
  this.marquees = new Map();
6351
+ /** Word masks on the canvas (WM): the live site's runtime draws the cut-out and measures the zoom — always (the canvas
6352
+ * is a live runtime; the zoom itself is the ground's scrollProgress interaction, played by the interaction engine). */
6353
+ this.wordMasks = new Map();
6306
6354
  this.sub = designState?.state$.subscribe(() => this.applyDesignState()) ?? null;
6307
6355
  }
6308
6356
  ngOnDestroy() {
6309
6357
  this.sub?.unsubscribe();
6310
- for (const id of [...this.attached.keys(), ...this.exclusive.keys(), ...this.marquees.keys()])
6358
+ for (const id of [...this.attached.keys(), ...this.exclusive.keys(), ...this.marquees.keys(), ...this.wordMasks.keys()])
6311
6359
  this.detach(id);
6312
6360
  }
6313
6361
  /** A composite root rendered on the canvas (the template, or a preview row's copy): run it. `element` is the
@@ -6316,6 +6364,10 @@ class CompositeCanvasService {
6316
6364
  if (!node.id)
6317
6365
  return;
6318
6366
  this.detach(node.id);
6367
+ if (isWordMaskRoot(node)) {
6368
+ this.wordMasks.set(node.id, this.zone.runOutsideAngular(() => new WordMaskRuntime(element)));
6369
+ return;
6370
+ }
6319
6371
  if (isMarqueeRoot(node)) {
6320
6372
  this.marquees.set(node.id, { node, element, runtime: null });
6321
6373
  this.applyMarquee(this.marquees.get(node.id));
@@ -6368,6 +6420,13 @@ class CompositeCanvasService {
6368
6420
  this.exclusive.delete(nodeId);
6369
6421
  this.marquees.get(nodeId)?.runtime?.destroy();
6370
6422
  this.marquees.delete(nodeId);
6423
+ this.wordMasks.get(nodeId)?.destroy();
6424
+ this.wordMasks.delete(nodeId);
6425
+ }
6426
+ /** The runtime of a word mask on the canvas (WM): the e2e harness reads its cut-out; a panel edit it cannot observe
6427
+ * (the ground's colour is CSS — `currentColor` follows by itself) may refresh it. */
6428
+ wordMaskRuntimeOf(nodeId) {
6429
+ return (nodeId && this.wordMasks.get(nodeId)) || null;
6371
6430
  }
6372
6431
  /** The runtime of a Marquee moving on the canvas, or null while it stands still. */
6373
6432
  marqueeRuntimeOf(nodeId) {
@@ -6830,7 +6889,7 @@ class RenderDirective {
6830
6889
  // Register CSS rules in the central stylesheet (inner + outer split). The type first: the
6831
6890
  // registry strips the props a type's renderer owns (a Dialog's positioning) on every rule.
6832
6891
  if (cssId) {
6833
- this.styleRegistry.setNodeType(cssId, node.type, colorSchemeOf(node));
6892
+ this.styleRegistry.setNodeType(cssId, node.type, colorSchemeOf(node), drawsHeaderLayers(node));
6834
6893
  // The default hover transition (shared, marker-aware — the engine emits the same one):
6835
6894
  // without it a hovering node's base rule, re-upserted here on every render, dropped the
6836
6895
  // transition page-ui had added on load, and the canvas snapped where the site eased.
@@ -7041,7 +7100,7 @@ class RenderDirective {
7041
7100
  // A composite root runs its behaviour on the canvas — the live site's runtime (CC2; the Disclosure, CC2.1).
7042
7101
  // A preview row's copy runs too, scoped by its row (vectoriox/iox-ui#20): its ids are its own and it shows
7043
7102
  // the saved default, as every row does on the live site.
7044
- if (nativeEl && node.id && (isAnyCompositeRoot(node) || isMarqueeRoot(node)) && this.compositeCanvas) {
7103
+ if (nativeEl && node.id && (isAnyCompositeRoot(node) || isMarqueeRoot(node) || isWordMaskRoot(node)) && this.compositeCanvas) {
7045
7104
  this.compositeCanvas.attach(node, nativeEl);
7046
7105
  this.compositeRootId = node.id;
7047
7106
  }
@@ -7789,6 +7848,7 @@ var CompositePresetId;
7789
7848
  CompositePresetId["Marquee"] = "marquee";
7790
7849
  CompositePresetId["Counter"] = "counter";
7791
7850
  CompositePresetId["ReadingBar"] = "reading-bar";
7851
+ CompositePresetId["WordMask"] = "word-mask";
7792
7852
  CompositePresetId["Price"] = "shop-price";
7793
7853
  CompositePresetId["Variants"] = "shop-variants";
7794
7854
  CompositePresetId["Quantity"] = "shop-quantity";
@@ -7871,6 +7931,12 @@ const COMPOSITE_PRESETS = Object.freeze([
7871
7931
  description: 'A thin bar that fills as the page is read — or its section: change it in Interactions.',
7872
7932
  build: create => buildReadingBarRecipe(create),
7873
7933
  },
7934
+ // Word mask (WM, complex-components plan): the name with its letters cut out of a solid ground onto a picture.
7935
+ {
7936
+ id: CompositePresetId.WordMask, group: CompositePaletteGroup.Interactive, name: 'Word mask', icon: 'ph-thin ph-text-aa',
7937
+ description: 'A giant word whose letters show your picture or film through a solid ground; the scroll zooms out of a letter to the whole word.',
7938
+ build: create => buildWordMaskRecipe(create),
7939
+ },
7874
7940
  // Commerce E1c — the shop parts (commerce board 10). Each fills from the product in scope and the bag at runtime.
7875
7941
  {
7876
7942
  id: CompositePresetId.Price, group: CompositePaletteGroup.Shop, name: 'Price', icon: 'ph-thin ph-coins',
@@ -8321,7 +8387,7 @@ function upsertNodeStyles(styleRegistry, node) {
8321
8387
  if (!cssId)
8322
8388
  return;
8323
8389
  const base = nodeStyleMap(node);
8324
- styleRegistry.setNodeType(cssId, node.type, colorSchemeOf(node));
8390
+ styleRegistry.setNodeType(cssId, node.type, colorSchemeOf(node), drawsHeaderLayers(node));
8325
8391
  const timedBase = withStateTransitions(base, node.stateStyles, node.elementStyle, node.responsive, node.type);
8326
8392
  styleRegistry.upsert(cssId, composeVirtualTraits(timedBase));
8327
8393
  for (const [state, map] of Object.entries(node.stateStyles ?? {})) {