@salesforce/ui-design-mode 12.6.3 → 12.7.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 (33) hide show
  1. package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -1
  2. package/dist/authoring/core/editors/BoxDimensionEditor.d.ts.map +1 -1
  3. package/dist/authoring/core/editors/ColorEditor.d.cts +9 -7
  4. package/dist/authoring/core/editors/ColorEditor.d.ts +9 -7
  5. package/dist/authoring/core/editors/ColorEditor.d.ts.map +1 -1
  6. package/dist/authoring/core/utils/colorOcclusion.d.cts +185 -0
  7. package/dist/authoring/core/utils/colorOcclusion.d.ts +185 -0
  8. package/dist/authoring/core/utils/colorOcclusion.d.ts.map +1 -0
  9. package/dist/authoring/core/utils/colorUtils.d.cts +26 -0
  10. package/dist/authoring/core/utils/colorUtils.d.ts +26 -0
  11. package/dist/authoring/core/utils/colorUtils.d.ts.map +1 -1
  12. package/dist/authoring/react/index.js +4 -4
  13. package/dist/authoring/web-component/index.js +22 -22
  14. package/dist/protocol/messageTypes.d.ts.map +1 -1
  15. package/dist/protocol/version.cjs +1 -1
  16. package/dist/protocol/version.js +1 -1
  17. package/dist/runtime/design-mode-interactions.js +451 -94
  18. package/dist/runtime/interactions/eventHandlers.d.cts +17 -32
  19. package/dist/runtime/interactions/eventHandlers.d.ts +17 -32
  20. package/dist/runtime/interactions/eventHandlers.d.ts.map +1 -1
  21. package/dist/runtime/interactions/interactionsController.d.cts +1 -8
  22. package/dist/runtime/interactions/interactionsController.d.ts +1 -8
  23. package/dist/runtime/interactions/interactionsController.d.ts.map +1 -1
  24. package/dist/runtime/interactions/interceptOverlay.d.cts +172 -0
  25. package/dist/runtime/interactions/interceptOverlay.d.ts +172 -0
  26. package/dist/runtime/interactions/interceptOverlay.d.ts.map +1 -0
  27. package/dist/runtime/interactions/utils/cssUtils.d.cts +22 -0
  28. package/dist/runtime/interactions/utils/cssUtils.d.ts +22 -0
  29. package/dist/runtime/interactions/utils/cssUtils.d.ts.map +1 -1
  30. package/package.json +2 -2
  31. package/dist/authoring/core/utils/backgroundOcclusion.d.cts +0 -48
  32. package/dist/authoring/core/utils/backgroundOcclusion.d.ts +0 -48
  33. package/dist/authoring/core/utils/backgroundOcclusion.d.ts.map +0 -1
@@ -29,50 +29,35 @@ export declare class EventHandlers {
29
29
  private selectedElement;
30
30
  private selectedElements;
31
31
  constructor(isInteractionsActive: () => boolean, componentMatcher: ComponentMatcherLike, overlayManager: OverlayManagerLike, editableManager: EditableManagerLike, communicationManager: CommunicationManagerLike);
32
+ private _findHighlightableElement;
32
33
  /**
33
- * Swallow pointer/mouse-down so the previewed app cannot react to it (e.g.
34
- * Radix opens dropdowns on `pointerdown`, before our `click` handler runs).
35
- * In design mode the app is inspected, not driven; selection still happens on
36
- * `click`. Exception: events inside the element being inline-text-edited pass
37
- * through so the caret can be placed.
38
- *
39
- * Deliberately does NOT call `preventDefault()`. `stopPropagation` +
40
- * `stopImmediatePropagation` are what keep the app from reacting; `preventDefault`
41
- * additionally cancelled two *browser* default actions we do want:
42
- *
43
- * 1. The focus shift. In an embedded preview that is cross-document: a text
44
- * field focused in the HOST panel never blurs, so the panel — which commits
45
- * a typed draft on blur — silently discards the user's edit when they click
46
- * another element in the canvas (W-23560967). Keyboard Tab/Enter still worked,
47
- * because focus movement by keyboard is not a mousedown default action, which
48
- * is exactly what made the bug look arbitrary.
49
- * 2. Text-selection drag. That one we still want suppressed, so it is handled by
50
- * a `user-select: none` rule the controller installs while interactions are
51
- * active (exempting `[contenteditable="true"]` so inline text editing keeps
52
- * its caret and selection). CSS is the right tool: it suppresses the drag
53
- * without also cancelling focus.
54
- *
55
- * Note `preventDefault` on `pointerdown` ALONE also cancels the focus shift, so
56
- * dropping it only for `mousedown` would not have fixed this.
34
+ * Drive the hover highlight for the element under the cursor. The intercept
35
+ * overlay resolves that element by geometry (`elementsFromPoint`) and calls
36
+ * this directly — the pointer never reaches the app, so there is no
37
+ * `mouseover` event and `event.target` is always the intercept layer.
57
38
  */
58
- handlePointerDown(e: Event): void;
59
- private _findHighlightableElement;
60
- handleMouseOver(e: MouseEvent): void;
39
+ hoverAtTarget(target: HTMLElement): void;
61
40
  handleMouseLeave(): void;
62
41
  /**
63
42
  * Remove the current hover highlight unless it belongs to the selected element.
64
43
  */
65
44
  private clearHoverHighlight;
66
- handleClick(e: MouseEvent): void;
45
+ /**
46
+ * Resolve the element under the cursor to its highlightable element and select
47
+ * it. The intercept overlay resolves that element by geometry and calls this on
48
+ * click.
49
+ */
50
+ selectAtTarget(target: HTMLElement): void;
67
51
  /**
68
52
  * Select an already-resolved element: deselect any prior selection, clear the
69
53
  * hover highlight, select the element and all others sharing its source
70
54
  * location, make it editable if it's text, and notify the host.
71
55
  *
72
- * This is the shared selection routine for both a user click (`handleClick`)
73
- * and a programmatic `select-element` request (controller `selectByIdentity`).
74
- * Callers are responsible for resolving `element` to a highlightable node
75
- * (authorization gate); this method assumes that has already happened.
56
+ * This is the shared selection routine for both a user selection (the intercept
57
+ * overlay's click path, via `selectAtTarget`) and a programmatic `select-element`
58
+ * request (controller `selectByIdentity`). Callers are responsible for resolving
59
+ * `element` to a highlightable node (authorization gate); this method assumes
60
+ * that has already happened.
76
61
  */
77
62
  selectElement(element: HTMLElement): void;
78
63
  clearAll(): void;
@@ -29,50 +29,35 @@ export declare class EventHandlers {
29
29
  private selectedElement;
30
30
  private selectedElements;
31
31
  constructor(isInteractionsActive: () => boolean, componentMatcher: ComponentMatcherLike, overlayManager: OverlayManagerLike, editableManager: EditableManagerLike, communicationManager: CommunicationManagerLike);
32
+ private _findHighlightableElement;
32
33
  /**
33
- * Swallow pointer/mouse-down so the previewed app cannot react to it (e.g.
34
- * Radix opens dropdowns on `pointerdown`, before our `click` handler runs).
35
- * In design mode the app is inspected, not driven; selection still happens on
36
- * `click`. Exception: events inside the element being inline-text-edited pass
37
- * through so the caret can be placed.
38
- *
39
- * Deliberately does NOT call `preventDefault()`. `stopPropagation` +
40
- * `stopImmediatePropagation` are what keep the app from reacting; `preventDefault`
41
- * additionally cancelled two *browser* default actions we do want:
42
- *
43
- * 1. The focus shift. In an embedded preview that is cross-document: a text
44
- * field focused in the HOST panel never blurs, so the panel — which commits
45
- * a typed draft on blur — silently discards the user's edit when they click
46
- * another element in the canvas (W-23560967). Keyboard Tab/Enter still worked,
47
- * because focus movement by keyboard is not a mousedown default action, which
48
- * is exactly what made the bug look arbitrary.
49
- * 2. Text-selection drag. That one we still want suppressed, so it is handled by
50
- * a `user-select: none` rule the controller installs while interactions are
51
- * active (exempting `[contenteditable="true"]` so inline text editing keeps
52
- * its caret and selection). CSS is the right tool: it suppresses the drag
53
- * without also cancelling focus.
54
- *
55
- * Note `preventDefault` on `pointerdown` ALONE also cancels the focus shift, so
56
- * dropping it only for `mousedown` would not have fixed this.
34
+ * Drive the hover highlight for the element under the cursor. The intercept
35
+ * overlay resolves that element by geometry (`elementsFromPoint`) and calls
36
+ * this directly — the pointer never reaches the app, so there is no
37
+ * `mouseover` event and `event.target` is always the intercept layer.
57
38
  */
58
- handlePointerDown(e: Event): void;
59
- private _findHighlightableElement;
60
- handleMouseOver(e: MouseEvent): void;
39
+ hoverAtTarget(target: HTMLElement): void;
61
40
  handleMouseLeave(): void;
62
41
  /**
63
42
  * Remove the current hover highlight unless it belongs to the selected element.
64
43
  */
65
44
  private clearHoverHighlight;
66
- handleClick(e: MouseEvent): void;
45
+ /**
46
+ * Resolve the element under the cursor to its highlightable element and select
47
+ * it. The intercept overlay resolves that element by geometry and calls this on
48
+ * click.
49
+ */
50
+ selectAtTarget(target: HTMLElement): void;
67
51
  /**
68
52
  * Select an already-resolved element: deselect any prior selection, clear the
69
53
  * hover highlight, select the element and all others sharing its source
70
54
  * location, make it editable if it's text, and notify the host.
71
55
  *
72
- * This is the shared selection routine for both a user click (`handleClick`)
73
- * and a programmatic `select-element` request (controller `selectByIdentity`).
74
- * Callers are responsible for resolving `element` to a highlightable node
75
- * (authorization gate); this method assumes that has already happened.
56
+ * This is the shared selection routine for both a user selection (the intercept
57
+ * overlay's click path, via `selectAtTarget`) and a programmatic `select-element`
58
+ * request (controller `selectByIdentity`). Callers are responsible for resolving
59
+ * `element` to a highlightable node (authorization gate); this method assumes
60
+ * that has already happened.
76
61
  */
77
62
  selectElement(element: HTMLElement): void;
78
63
  clearAll(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"eventHandlers.d.ts","sourceRoot":"","sources":["../../../src/runtime/interactions/eventHandlers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,UAAU,oBAAoB;IAC7B,wBAAwB,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC;CACtE;AAED,UAAU,kBAAkB;IAC3B,iBAAiB,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACrD,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAClD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,UAAU,mBAAmB;IAC5B,kBAAkB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACnD,cAAc,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CAC/C;AAED,UAAU,wBAAwB;IACjC,uBAAuB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CACxD;AAED,qBAAa,aAAa;IACzB,OAAO,CAAC,oBAAoB,CAAgB;IAC5C,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,cAAc,CAAqB;IAC3C,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,oBAAoB,CAA2B;IAEvD,OAAO,CAAC,0BAA0B,CAAgB;IAClD,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,gBAAgB,CAAgB;gBAGvC,oBAAoB,EAAE,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AAC;CACxD;AAED,qBAAa,aAAa;IACzB,OAAO,CAAC,oBAAoB,CAAgB;IAC5C,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,cAAc,CAAqB;IAC3C,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,oBAAoB,CAA2B;IAEvD,OAAO,CAAC,0BAA0B,CAAgB;IAClD,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,gBAAgB,CAAgB;gBAGvC,oBAAoB,EAAE,MAAM,OAAO,EACnC,gBAAgB,EAAE,oBAAoB,EACtC,cAAc,EAAE,kBAAkB,EAClC,eAAe,EAAE,mBAAmB,EACpC,oBAAoB,EAAE,wBAAwB;IAa/C,OAAO,CAAC,yBAAyB;IAIjC;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IA4BxC,gBAAgB,IAAI,IAAI;IAQxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;;OAIG;IACH,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAazC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAsCzC,QAAQ,IAAI,IAAI;IAchB,kBAAkB,IAAI,WAAW,GAAG,IAAI;CAGxC"}
@@ -7,6 +7,7 @@ export declare class InteractionsController {
7
7
  private communicationManager;
8
8
  private editableManager;
9
9
  private eventHandlers;
10
+ private interceptOverlay;
10
11
  constructor(enabled?: boolean);
11
12
  /**
12
13
  * Initialize the design mode interactions
@@ -22,14 +23,6 @@ export declare class InteractionsController {
22
23
  * Disable the design mode interactions
23
24
  */
24
25
  disable(): void;
25
- /**
26
- * Install the text-selection suppression sheet (idempotent). Tied to
27
- * enable/disable rather than initialize/destroy so the previewed app selects
28
- * text normally whenever design mode is off.
29
- */
30
- private _mountSelectSuppression;
31
- /** Remove the suppression sheet so text is selectable again outside design mode. */
32
- private _unmountSelectSuppression;
33
26
  /**
34
27
  * Programmatically select an element by source identity — the runtime side of
35
28
  * {@link SelectElementMessage}. Used to re-select an element after an edit
@@ -7,6 +7,7 @@ export declare class InteractionsController {
7
7
  private communicationManager;
8
8
  private editableManager;
9
9
  private eventHandlers;
10
+ private interceptOverlay;
10
11
  constructor(enabled?: boolean);
11
12
  /**
12
13
  * Initialize the design mode interactions
@@ -22,14 +23,6 @@ export declare class InteractionsController {
22
23
  * Disable the design mode interactions
23
24
  */
24
25
  disable(): void;
25
- /**
26
- * Install the text-selection suppression sheet (idempotent). Tied to
27
- * enable/disable rather than initialize/destroy so the previewed app selects
28
- * text normally whenever design mode is off.
29
- */
30
- private _mountSelectSuppression;
31
- /** Remove the suppression sheet so text is selectable again outside design mode. */
32
- private _unmountSelectSuppression;
33
26
  /**
34
27
  * Programmatically select an element by source identity — the runtime side of
35
28
  * {@link SelectElementMessage}. Used to re-select an element after an edit
@@ -1 +1 @@
1
- {"version":3,"file":"interactionsController.d.ts","sourceRoot":"","sources":["../../../src/runtime/interactions/interactionsController.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH,OAAO,EAIN,KAAK,cAAc,EACnB,MAAM,qBAAqB,CAAC;AAwE7B,qBAAa,sBAAsB;IAClC,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,QAAQ,CAAU;IAE1B,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,OAAO,UAAO;IA0D1B;;OAEG;IACH,UAAU,IAAI,IAAI;IAiBlB;;;;OAIG;IACH,MAAM,CAAC,cAAc,GAAE,SAAS,MAAM,EAAO,GAAG,IAAI;IAMpD;;OAEG;IACH,OAAO,IAAI,IAAI;IAMf;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAS/B,oFAAoF;IACpF,OAAO,CAAC,yBAAyB;IAKjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,gBAAgB,CAAC,cAAc,CAAC,EAAE,cAAc,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO;IAoCxE,OAAO,CAAC,cAAc;IAWtB;;;;;OAKG;IACH,gBAAgB,CACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,cAAc,EAC/B,QAAQ,CAAC,EAAE,OAAO,GAChB,IAAI;IAwBP,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI;IAOpE;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,CACf,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAC9C,cAAc,CAAC,EAAE,cAAc,GAC7B,IAAI;IAWP;;OAEG;IACH,OAAO,IAAI,IAAI;CASf"}
1
+ {"version":3,"file":"interactionsController.d.ts","sourceRoot":"","sources":["../../../src/runtime/interactions/interactionsController.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAIN,KAAK,cAAc,EACnB,MAAM,qBAAqB,CAAC;AAwD7B,qBAAa,sBAAsB;IAClC,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,QAAQ,CAAU;IAE1B,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,gBAAgB,CAAmB;gBAE/B,OAAO,UAAO;IA4D1B;;OAEG;IACH,UAAU,IAAI,IAAI;IAalB;;;;OAIG;IACH,MAAM,CAAC,cAAc,GAAE,SAAS,MAAM,EAAO,GAAG,IAAI;IAMpD;;OAEG;IACH,OAAO,IAAI,IAAI;IAMf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,gBAAgB,CAAC,cAAc,CAAC,EAAE,cAAc,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO;IAoCxE,OAAO,CAAC,cAAc;IAWtB;;;;;OAKG;IACH,gBAAgB,CACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,cAAc,EAC/B,QAAQ,CAAC,EAAE,OAAO,GAChB,IAAI;IAwBP,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI;IAOpE;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,CACf,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAC9C,cAAc,CAAC,EAAE,cAAc,GAC7B,IAAI;IAWP;;OAEG;IACH,OAAO,IAAI,IAAI;CAKf"}
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ /**
7
+ * Intercept Overlay
8
+ *
9
+ * While design mode is active, a full-viewport, pointer-opaque, transparent
10
+ * layer is placed just below the selection-overlay chrome. Because the pointer
11
+ * hits THIS layer and never the previewed app, the browser never transitions an
12
+ * app element into `:hover`/`:active`/`:focus` and the app's own JS hover
13
+ * handlers (`onMouseEnter`, `mouseover`, tooltip/popover openers) never fire —
14
+ * CSS and JS-driven hover are both suppressed, with zero knowledge of the
15
+ * author's stylesheets (no CSSOM walk, no cross-origin/shadow-DOM gaps).
16
+ *
17
+ * Because highlight and selection can no longer read `event.target` (that is
18
+ * always the intercept layer), they are re-derived from geometry:
19
+ * `document.elementsFromPoint` at the cursor, skipping the intercept layer
20
+ * itself. (The overlay chrome host is `pointer-events:none`, so hit-testing
21
+ * already skips it.) The resolved element is fed to the shared highlight/select
22
+ * logic on {@link EventHandlers}.
23
+ *
24
+ * Inline text editing does NOT open a hole in the layer — keeping the pointer
25
+ * off the app is the whole invariant (a hole would let the app's `:hover`/
26
+ * `:active` fire again on the edited element and let a click activate an
27
+ * interactive tag). Instead, editing is two-click, matching the pre-overlay UX:
28
+ * the first click selects the static-text element (which makes it
29
+ * `contentEditable`); a second click — now that it is already editable — begins
30
+ * editing by focusing it and placing the caret from the click point, momentarily
31
+ * hiding the layer for the single `caretRangeFromPoint` hit-test (otherwise the
32
+ * caret would resolve into the layer, not the text). The element stays focused
33
+ * under the layer, so keystrokes route to it and typing works; a later click to
34
+ * reposition the caret is re-emulated the same way. The
35
+ * editable's UA focus outline is neutralized inline while editing so the
36
+ * selection overlay is the only affordance, and it's restored on blur.
37
+ *
38
+ * Text drag-selection and double-click word-selection are emulated with the same
39
+ * hidden-hit-test trick, and work over ANY canvas text — not just an element being
40
+ * edited — so text can be selected to copy: a press records an anchor caret, pointer
41
+ * moves extend the selection to the caret under the cursor, and a double-click expands
42
+ * to the word under it. While editing, the gesture is confined to the edited element
43
+ * and its press prevents default to keep focus (see {@link _onMouseDown}); off an edit,
44
+ * it spans freely like a native selection. The trailing `click` of a drag is prevented
45
+ * from collapsing the range back to a caret.
46
+ *
47
+ * Known limitations: scrolling a nested app scroll-container needs the wheel
48
+ * forwarded to the element under the cursor.
49
+ */
50
+ /** Resolved highlight/select entry points shared with the native-event path. */
51
+ interface HoverSelectTarget {
52
+ hoverAtTarget: (target: HTMLElement) => void;
53
+ selectAtTarget: (target: HTMLElement) => void;
54
+ handleMouseLeave: () => void;
55
+ }
56
+ export declare class InterceptOverlay {
57
+ private isInteractionsActive;
58
+ private eventHandlers;
59
+ private layer;
60
+ private moveScheduled;
61
+ private hoverGeneration;
62
+ private lastX;
63
+ private lastY;
64
+ private editing;
65
+ private savedOutline;
66
+ private dragging;
67
+ private dragAnchor;
68
+ private dragSelected;
69
+ private onMove;
70
+ private onClick;
71
+ private onSwallow;
72
+ private onLeave;
73
+ private onEditableBlur;
74
+ private onMouseDown;
75
+ private onMouseUp;
76
+ private onDblClick;
77
+ constructor(isInteractionsActive: () => boolean, eventHandlers: HoverSelectTarget);
78
+ /** Mount the intercept layer (idempotent). Tied to enable/disable. */
79
+ mount(): void;
80
+ /** Remove the intercept layer (idempotent). */
81
+ unmount(): void;
82
+ /**
83
+ * The topmost previewed-app element at (x, y), skipping our own intercept
84
+ * layer. `elementsFromPoint` already omits `pointer-events:none` nodes, so the
85
+ * overlay chrome host is never in the stack — only the intercept layer needs
86
+ * filtering out.
87
+ */
88
+ private resolveTarget;
89
+ private _onMove;
90
+ private _onClick;
91
+ /**
92
+ * Begin (or continue) inline editing of `editable`: neutralize its UA focus
93
+ * outline, focus it, and emulate the caret at the click point. No hole is
94
+ * opened — the layer stays over the app so hover/active never fire and a click
95
+ * can't activate an interactive tag; the element is edited purely via focus +
96
+ * keyboard. Re-called on each click so a later click repositions the caret.
97
+ */
98
+ private _enterEditMode;
99
+ /** End inline editing: restore the outline and drop the blur listener. */
100
+ private _exitEditMode;
101
+ /**
102
+ * Focus the editable and place a collapsed caret at the click point. Only moves the
103
+ * caret when the point resolves to a position inside the editable — a click in the
104
+ * element's own padding/whitespace (past the last glyph) keeps the current caret
105
+ * rather than dropping it into an adjacent node.
106
+ */
107
+ private _placeCaret;
108
+ /** Replace the current selection with `range` (no-op when null or outside a window). */
109
+ private _applySelectionRange;
110
+ /**
111
+ * Resolve a caret Range at (x, y) with the intercept layer momentarily hidden:
112
+ * the layer covers the app, so a hit-test would otherwise resolve into the layer
113
+ * rather than the text beneath. Hiding is synchronous around the single call — no
114
+ * paint or event dispatch happens in between, so there is no hover flash and the
115
+ * app never receives a pointer event.
116
+ */
117
+ private _caretRangeHidden;
118
+ /**
119
+ * A caret Range at (x, y) via the hidden hit-test, constrained to `el`: when `el` is
120
+ * given the point must fall inside it (used while editing / word-selecting to keep the
121
+ * gesture within the edited element); when null the caret may land anywhere in the
122
+ * document (free text selection for copying). Returns null when there's no caret, or
123
+ * one resolved outside `el`.
124
+ */
125
+ private _caretRangeIn;
126
+ /** The {@link _caretRangeIn} caret as a `{node, offset}` point (null when unresolved). */
127
+ private _caretPointIn;
128
+ /**
129
+ * mousedown: swallow like {@link _onSwallow} and start a potential text drag by
130
+ * recording the anchor caret under the press (confined to the edited element while
131
+ * editing, free otherwise). When the press lands anywhere within the element being
132
+ * edited, the press additionally preventDefaults. That preventDefault is essential
133
+ * while editing: the layer isn't focusable, so a press on it would otherwise shift
134
+ * focus off the editable — blurring it and tearing down edit mode (the blur runs
135
+ * _exitEditMode + the editableManager's commit) before the click could reposition
136
+ * the caret or a move could extend a selection. Suppressing the shift keeps the
137
+ * editable focused throughout. The decision is by geometry, not by where a caret
138
+ * resolves, so a press just past the last glyph (in the element's own padding)
139
+ * still repositions rather than exiting. Off an edit the press is left to shift
140
+ * focus as usual (see _onSwallow) so a focused host-panel field blurs and commits —
141
+ * the drag still selects because the selection is set on later moves, after that
142
+ * shift.
143
+ */
144
+ private _onMouseDown;
145
+ /** Whether (x, y) falls on the element being edited or a descendant of it. */
146
+ private _pressInsideEditing;
147
+ /** mouseup: end the drag. `dragSelected` survives for the trailing click. */
148
+ private _onMouseUp;
149
+ /** Clear all text drag-selection state. */
150
+ private _resetDrag;
151
+ /**
152
+ * Extend the text selection from the drag anchor to the caret at (x, y). While
153
+ * editing, a point outside the edited element is ignored so the selection stays
154
+ * within it; off an edit the selection may span freely, like a native drag.
155
+ */
156
+ private _extendDragTo;
157
+ /** Double-click selects the word under the cursor (editable or not, for copying). */
158
+ private _onDblClick;
159
+ /**
160
+ * A Range spanning the word under (x, y): expand outward from the caret over word
161
+ * characters (Unicode letters/digits/underscore). On a non-word character, select
162
+ * that single character, matching a browser's minimal double-click selection. When
163
+ * `el` is given the point must fall inside it (word-select while editing); when
164
+ * null the word may be anywhere in the document. Returns null when there's no caret
165
+ * (or it's outside `el`).
166
+ */
167
+ private _wordRangeAt;
168
+ private _onSwallow;
169
+ private _onLeave;
170
+ }
171
+ export {};
172
+ //# sourceMappingURL=interceptOverlay.d.ts.map
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ /**
7
+ * Intercept Overlay
8
+ *
9
+ * While design mode is active, a full-viewport, pointer-opaque, transparent
10
+ * layer is placed just below the selection-overlay chrome. Because the pointer
11
+ * hits THIS layer and never the previewed app, the browser never transitions an
12
+ * app element into `:hover`/`:active`/`:focus` and the app's own JS hover
13
+ * handlers (`onMouseEnter`, `mouseover`, tooltip/popover openers) never fire —
14
+ * CSS and JS-driven hover are both suppressed, with zero knowledge of the
15
+ * author's stylesheets (no CSSOM walk, no cross-origin/shadow-DOM gaps).
16
+ *
17
+ * Because highlight and selection can no longer read `event.target` (that is
18
+ * always the intercept layer), they are re-derived from geometry:
19
+ * `document.elementsFromPoint` at the cursor, skipping the intercept layer
20
+ * itself. (The overlay chrome host is `pointer-events:none`, so hit-testing
21
+ * already skips it.) The resolved element is fed to the shared highlight/select
22
+ * logic on {@link EventHandlers}.
23
+ *
24
+ * Inline text editing does NOT open a hole in the layer — keeping the pointer
25
+ * off the app is the whole invariant (a hole would let the app's `:hover`/
26
+ * `:active` fire again on the edited element and let a click activate an
27
+ * interactive tag). Instead, editing is two-click, matching the pre-overlay UX:
28
+ * the first click selects the static-text element (which makes it
29
+ * `contentEditable`); a second click — now that it is already editable — begins
30
+ * editing by focusing it and placing the caret from the click point, momentarily
31
+ * hiding the layer for the single `caretRangeFromPoint` hit-test (otherwise the
32
+ * caret would resolve into the layer, not the text). The element stays focused
33
+ * under the layer, so keystrokes route to it and typing works; a later click to
34
+ * reposition the caret is re-emulated the same way. The
35
+ * editable's UA focus outline is neutralized inline while editing so the
36
+ * selection overlay is the only affordance, and it's restored on blur.
37
+ *
38
+ * Text drag-selection and double-click word-selection are emulated with the same
39
+ * hidden-hit-test trick, and work over ANY canvas text — not just an element being
40
+ * edited — so text can be selected to copy: a press records an anchor caret, pointer
41
+ * moves extend the selection to the caret under the cursor, and a double-click expands
42
+ * to the word under it. While editing, the gesture is confined to the edited element
43
+ * and its press prevents default to keep focus (see {@link _onMouseDown}); off an edit,
44
+ * it spans freely like a native selection. The trailing `click` of a drag is prevented
45
+ * from collapsing the range back to a caret.
46
+ *
47
+ * Known limitations: scrolling a nested app scroll-container needs the wheel
48
+ * forwarded to the element under the cursor.
49
+ */
50
+ /** Resolved highlight/select entry points shared with the native-event path. */
51
+ interface HoverSelectTarget {
52
+ hoverAtTarget: (target: HTMLElement) => void;
53
+ selectAtTarget: (target: HTMLElement) => void;
54
+ handleMouseLeave: () => void;
55
+ }
56
+ export declare class InterceptOverlay {
57
+ private isInteractionsActive;
58
+ private eventHandlers;
59
+ private layer;
60
+ private moveScheduled;
61
+ private hoverGeneration;
62
+ private lastX;
63
+ private lastY;
64
+ private editing;
65
+ private savedOutline;
66
+ private dragging;
67
+ private dragAnchor;
68
+ private dragSelected;
69
+ private onMove;
70
+ private onClick;
71
+ private onSwallow;
72
+ private onLeave;
73
+ private onEditableBlur;
74
+ private onMouseDown;
75
+ private onMouseUp;
76
+ private onDblClick;
77
+ constructor(isInteractionsActive: () => boolean, eventHandlers: HoverSelectTarget);
78
+ /** Mount the intercept layer (idempotent). Tied to enable/disable. */
79
+ mount(): void;
80
+ /** Remove the intercept layer (idempotent). */
81
+ unmount(): void;
82
+ /**
83
+ * The topmost previewed-app element at (x, y), skipping our own intercept
84
+ * layer. `elementsFromPoint` already omits `pointer-events:none` nodes, so the
85
+ * overlay chrome host is never in the stack — only the intercept layer needs
86
+ * filtering out.
87
+ */
88
+ private resolveTarget;
89
+ private _onMove;
90
+ private _onClick;
91
+ /**
92
+ * Begin (or continue) inline editing of `editable`: neutralize its UA focus
93
+ * outline, focus it, and emulate the caret at the click point. No hole is
94
+ * opened — the layer stays over the app so hover/active never fire and a click
95
+ * can't activate an interactive tag; the element is edited purely via focus +
96
+ * keyboard. Re-called on each click so a later click repositions the caret.
97
+ */
98
+ private _enterEditMode;
99
+ /** End inline editing: restore the outline and drop the blur listener. */
100
+ private _exitEditMode;
101
+ /**
102
+ * Focus the editable and place a collapsed caret at the click point. Only moves the
103
+ * caret when the point resolves to a position inside the editable — a click in the
104
+ * element's own padding/whitespace (past the last glyph) keeps the current caret
105
+ * rather than dropping it into an adjacent node.
106
+ */
107
+ private _placeCaret;
108
+ /** Replace the current selection with `range` (no-op when null or outside a window). */
109
+ private _applySelectionRange;
110
+ /**
111
+ * Resolve a caret Range at (x, y) with the intercept layer momentarily hidden:
112
+ * the layer covers the app, so a hit-test would otherwise resolve into the layer
113
+ * rather than the text beneath. Hiding is synchronous around the single call — no
114
+ * paint or event dispatch happens in between, so there is no hover flash and the
115
+ * app never receives a pointer event.
116
+ */
117
+ private _caretRangeHidden;
118
+ /**
119
+ * A caret Range at (x, y) via the hidden hit-test, constrained to `el`: when `el` is
120
+ * given the point must fall inside it (used while editing / word-selecting to keep the
121
+ * gesture within the edited element); when null the caret may land anywhere in the
122
+ * document (free text selection for copying). Returns null when there's no caret, or
123
+ * one resolved outside `el`.
124
+ */
125
+ private _caretRangeIn;
126
+ /** The {@link _caretRangeIn} caret as a `{node, offset}` point (null when unresolved). */
127
+ private _caretPointIn;
128
+ /**
129
+ * mousedown: swallow like {@link _onSwallow} and start a potential text drag by
130
+ * recording the anchor caret under the press (confined to the edited element while
131
+ * editing, free otherwise). When the press lands anywhere within the element being
132
+ * edited, the press additionally preventDefaults. That preventDefault is essential
133
+ * while editing: the layer isn't focusable, so a press on it would otherwise shift
134
+ * focus off the editable — blurring it and tearing down edit mode (the blur runs
135
+ * _exitEditMode + the editableManager's commit) before the click could reposition
136
+ * the caret or a move could extend a selection. Suppressing the shift keeps the
137
+ * editable focused throughout. The decision is by geometry, not by where a caret
138
+ * resolves, so a press just past the last glyph (in the element's own padding)
139
+ * still repositions rather than exiting. Off an edit the press is left to shift
140
+ * focus as usual (see _onSwallow) so a focused host-panel field blurs and commits —
141
+ * the drag still selects because the selection is set on later moves, after that
142
+ * shift.
143
+ */
144
+ private _onMouseDown;
145
+ /** Whether (x, y) falls on the element being edited or a descendant of it. */
146
+ private _pressInsideEditing;
147
+ /** mouseup: end the drag. `dragSelected` survives for the trailing click. */
148
+ private _onMouseUp;
149
+ /** Clear all text drag-selection state. */
150
+ private _resetDrag;
151
+ /**
152
+ * Extend the text selection from the drag anchor to the caret at (x, y). While
153
+ * editing, a point outside the edited element is ignored so the selection stays
154
+ * within it; off an edit the selection may span freely, like a native drag.
155
+ */
156
+ private _extendDragTo;
157
+ /** Double-click selects the word under the cursor (editable or not, for copying). */
158
+ private _onDblClick;
159
+ /**
160
+ * A Range spanning the word under (x, y): expand outward from the caret over word
161
+ * characters (Unicode letters/digits/underscore). On a non-word character, select
162
+ * that single character, matching a browser's minimal double-click selection. When
163
+ * `el` is given the point must fall inside it (word-select while editing); when
164
+ * null the word may be anywhere in the document. Returns null when there's no caret
165
+ * (or it's outside `el`).
166
+ */
167
+ private _wordRangeAt;
168
+ private _onSwallow;
169
+ private _onLeave;
170
+ }
171
+ export {};
172
+ //# sourceMappingURL=interceptOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interceptOverlay.d.ts","sourceRoot":"","sources":["../../../src/runtime/interactions/interceptOverlay.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,gFAAgF;AAChF,UAAU,iBAAiB;IAC1B,aAAa,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC7B;AA4CD,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,oBAAoB,CAAgB;IAC5C,OAAO,CAAC,aAAa,CAAoB;IAEzC,OAAO,CAAC,KAAK,CAAqB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AC,UAAU;IAMlB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAuBrB,qFAAqF;IACrF,OAAO,CAAC,WAAW;IASnB;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAgCpB,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,QAAQ;CAahB"}
@@ -33,11 +33,33 @@ interface ElementStyles {
33
33
  * occlude a background-color edit and clear it as part of the same change.
34
34
  */
35
35
  backgroundImage: StyleValue;
36
+ /**
37
+ * Whether `background-image` is clipped to the text glyphs (the "gradient
38
+ * text" trick: `background-clip: text` + `color: transparent`). Reported so
39
+ * the panel's Text Color editor can tell a real gradient-text element apart
40
+ * from an unrelated decorative background-image on a text element.
41
+ */
42
+ backgroundClip: StyleValue;
36
43
  borderWidth: StyleValue;
37
44
  borderStyle: StyleValue;
38
45
  borderColor: StyleValue;
46
+ /**
47
+ * The element's `border-image` source (gradient/`url()`), independent of the
48
+ * slice/width/repeat sub-properties. Reported so the panel's Border Color
49
+ * editor can preview it the same way the Background Color editor previews
50
+ * `background-image`.
51
+ */
52
+ borderImageSource: StyleValue;
39
53
  borderRadius: StyleValue;
40
54
  color: StyleValue;
55
+ /**
56
+ * `-webkit-text-fill-color`, which paints glyph fill and overrides `color`
57
+ * when set to anything other than `currentcolor` — either an opaque
58
+ * class-set color, or the deliberate `transparent` used by the "gradient
59
+ * text" trick. Reported so the panel's Text Color editor can detect the
60
+ * conflict and clear it alongside a color edit.
61
+ */
62
+ webkitTextFillColor: StyleValue;
41
63
  fontFamily: StyleValue;
42
64
  fontSize: StyleValue;
43
65
  fontWeight: StyleValue;
@@ -33,11 +33,33 @@ interface ElementStyles {
33
33
  * occlude a background-color edit and clear it as part of the same change.
34
34
  */
35
35
  backgroundImage: StyleValue;
36
+ /**
37
+ * Whether `background-image` is clipped to the text glyphs (the "gradient
38
+ * text" trick: `background-clip: text` + `color: transparent`). Reported so
39
+ * the panel's Text Color editor can tell a real gradient-text element apart
40
+ * from an unrelated decorative background-image on a text element.
41
+ */
42
+ backgroundClip: StyleValue;
36
43
  borderWidth: StyleValue;
37
44
  borderStyle: StyleValue;
38
45
  borderColor: StyleValue;
46
+ /**
47
+ * The element's `border-image` source (gradient/`url()`), independent of the
48
+ * slice/width/repeat sub-properties. Reported so the panel's Border Color
49
+ * editor can preview it the same way the Background Color editor previews
50
+ * `background-image`.
51
+ */
52
+ borderImageSource: StyleValue;
39
53
  borderRadius: StyleValue;
40
54
  color: StyleValue;
55
+ /**
56
+ * `-webkit-text-fill-color`, which paints glyph fill and overrides `color`
57
+ * when set to anything other than `currentcolor` — either an opaque
58
+ * class-set color, or the deliberate `transparent` used by the "gradient
59
+ * text" trick. Reported so the panel's Text Color editor can detect the
60
+ * conflict and clear it alongside a color edit.
61
+ */
62
+ webkitTextFillColor: StyleValue;
41
63
  fontFamily: StyleValue;
42
64
  fontSize: StyleValue;
43
65
  fontWeight: StyleValue;
@@ -1 +1 @@
1
- {"version":3,"file":"cssUtils.d.ts","sourceRoot":"","sources":["../../../../src/runtime/interactions/utils/cssUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,UAAU,UAAU;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACjB;AAID;;GAEG;AACH,UAAU,aAAa;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,eAAe,EAAE,UAAU,CAAC;IAC5B;;;;OAIG;IACH,eAAe,EAAE,UAAU,CAAC;IAC5B,WAAW,EAAE,UAAU,CAAC;IACxB,WAAW,EAAE,UAAU,CAAC;IACxB,WAAW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H,iBAAiB,EAAE,UAAU,CAAC;IAC9B,YAAY,EAAE,UAAU,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB;;;;;;OAMG;IACH,mBAAmB,EAAE,UAAU,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,UAAU,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,UAAU,CAAC;IAC1B,SAAS,EAAE,UAAU,CAAC;IACtB,cAAc,EAAE,UAAU,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAuFhG"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/ui-design-mode",
3
3
  "description": "Hybrid editor (design-mode) authoring UI, iframe runtime, source-locator, and protocol for Salesforce UI Bundles",
4
- "version": "12.6.3",
4
+ "version": "12.7.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "type": "module",
7
7
  "exports": {
@@ -106,7 +106,7 @@
106
106
  "ts-morph": "^25.0.0",
107
107
  "vite": "^7.3.5",
108
108
  "vite-plugin-dts": "^4.5.4",
109
- "vitest": "^4.0.6"
109
+ "vitest": "^4.1.11"
110
110
  },
111
111
  "engines": {
112
112
  "node": ">=20.0.0"