@salesforce/ui-design-mode 11.24.1 → 11.24.3
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.
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -1
- package/dist/authoring/core/editors/ColorEditor.d.cts +11 -1
- package/dist/authoring/core/editors/ColorEditor.d.ts +11 -1
- package/dist/authoring/core/editors/ColorEditor.d.ts.map +1 -1
- package/dist/authoring/core/history/changeSet.d.cts +4 -3
- package/dist/authoring/core/history/changeSet.d.ts +4 -3
- package/dist/authoring/core/history/changeSet.d.ts.map +1 -1
- package/dist/authoring/core/history/historyService.d.cts +21 -0
- package/dist/authoring/core/history/historyService.d.ts +21 -0
- package/dist/authoring/core/history/historyService.d.ts.map +1 -1
- package/dist/authoring/core/history/iframeCommandExecutor.d.ts.map +1 -1
- package/dist/authoring/core/labels/labels.d.cts +6 -0
- package/dist/authoring/core/labels/labels.d.ts +6 -0
- package/dist/authoring/core/labels/labels.d.ts.map +1 -1
- package/dist/authoring/core/utils/backgroundOcclusion.d.cts +48 -0
- package/dist/authoring/core/utils/backgroundOcclusion.d.ts +48 -0
- package/dist/authoring/core/utils/backgroundOcclusion.d.ts.map +1 -0
- package/dist/authoring/react/index.js +4 -67
- package/dist/authoring/react/styles.css +1 -1
- package/dist/authoring/web-component/index.js +21 -94
- package/dist/runtime/design-mode-interactions.js +1 -0
- package/dist/runtime/interactions/utils/cssUtils.d.cts +6 -0
- package/dist/runtime/interactions/utils/cssUtils.d.ts +6 -0
- package/dist/runtime/interactions/utils/cssUtils.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignPropertyPanelRoot.d.ts","sourceRoot":"","sources":["../../../src/authoring/core/DesignPropertyPanelRoot.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACX,aAAa,EACb,mBAAmB,EAEnB,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,CAAC;CACnB;AA4dD,eAAO,MAAM,mBAAmB,4GA0W9B,CAAC;AAEH;;;GAGG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,WAAW,GAAG,IAAI,EAC1B,KAAK,EAAE,wBAAwB,EAC/B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,yBAAyB,CAAC,QAK1C"}
|
|
@@ -15,10 +15,20 @@ export interface ColorEditorProps {
|
|
|
15
15
|
id?: string;
|
|
16
16
|
/** Localized placeholder + static/composed aria; omit for English. */
|
|
17
17
|
aria?: ColorAriaLabels;
|
|
18
|
+
/**
|
|
19
|
+
* The element's `background-image` layer (gradient/`url()`), when this editor
|
|
20
|
+
* controls `background-color`. When the element paints an image but has no
|
|
21
|
+
* color fill (transparent `background-color`), the swatch previews that image
|
|
22
|
+
* and the value shows a read-only descriptor ("Gradient"/"Image") instead of
|
|
23
|
+
* the meaningless `rgba(0, 0, 0, 0)`. Picking a color then replaces the image
|
|
24
|
+
* (the host clears the occluding layer — see `computeBackgroundOcclusionClears`).
|
|
25
|
+
* Omitted by the border/text color instances, which have no image layer.
|
|
26
|
+
*/
|
|
27
|
+
backgroundImage?: string;
|
|
18
28
|
}
|
|
19
29
|
/**
|
|
20
30
|
* Color editor with popover picker and hex/rgba inputs.
|
|
21
31
|
*/
|
|
22
|
-
export declare function ColorEditor({ label, value, onChange, id, aria: ariaProp, }: ColorEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function ColorEditor({ label, value, onChange, id, aria: ariaProp, backgroundImage, }: ColorEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
23
33
|
export {};
|
|
24
34
|
//# sourceMappingURL=ColorEditor.d.ts.map
|
|
@@ -15,10 +15,20 @@ export interface ColorEditorProps {
|
|
|
15
15
|
id?: string;
|
|
16
16
|
/** Localized placeholder + static/composed aria; omit for English. */
|
|
17
17
|
aria?: ColorAriaLabels;
|
|
18
|
+
/**
|
|
19
|
+
* The element's `background-image` layer (gradient/`url()`), when this editor
|
|
20
|
+
* controls `background-color`. When the element paints an image but has no
|
|
21
|
+
* color fill (transparent `background-color`), the swatch previews that image
|
|
22
|
+
* and the value shows a read-only descriptor ("Gradient"/"Image") instead of
|
|
23
|
+
* the meaningless `rgba(0, 0, 0, 0)`. Picking a color then replaces the image
|
|
24
|
+
* (the host clears the occluding layer — see `computeBackgroundOcclusionClears`).
|
|
25
|
+
* Omitted by the border/text color instances, which have no image layer.
|
|
26
|
+
*/
|
|
27
|
+
backgroundImage?: string;
|
|
18
28
|
}
|
|
19
29
|
/**
|
|
20
30
|
* Color editor with popover picker and hex/rgba inputs.
|
|
21
31
|
*/
|
|
22
|
-
export declare function ColorEditor({ label, value, onChange, id, aria: ariaProp, }: ColorEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function ColorEditor({ label, value, onChange, id, aria: ariaProp, backgroundImage, }: ColorEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
23
33
|
export {};
|
|
24
34
|
//# sourceMappingURL=ColorEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/ColorEditor.tsx"],"names":[],"mappings":"AAcA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAmNhF,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,WAAW,EACrB,aAAa,GAAE,MAAuB;;;EAoBtC;AAwJD,KAAK,eAAe,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/ColorEditor.tsx"],"names":[],"mappings":"AAcA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAmNhF,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,WAAW,EACrB,aAAa,GAAE,MAAuB;;;EAoBtC;AAwJD,KAAK,eAAe,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;AAuBvD,MAAM,WAAW,gBAAgB;IAChC,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAYD;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,EAAY,EACZ,IAAI,EAAE,QAAQ,EACd,eAAe,GACf,EAAE,gBAAgB,2CAihBlB"}
|
|
@@ -38,9 +38,10 @@ export declare const TEXT_PROPERTY = "textContent";
|
|
|
38
38
|
*
|
|
39
39
|
* Entries whose `data` lacks a full source location are dropped: an element
|
|
40
40
|
* isn't selectable without one (protocol invariant), so a missing location means
|
|
41
|
-
* a malformed stack, not a locatable change. Only `style` and
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* a malformed stack, not a locatable change. Only `style`, `style-batch`, and
|
|
42
|
+
* `text` commands contribute (a `style-batch` expands into one command per
|
|
43
|
+
* property it wrote); other command types (e.g. media) are ignored. Order is the
|
|
44
|
+
* order each element was first touched.
|
|
44
45
|
*/
|
|
45
46
|
export declare function computeChangeSet(stack: HistoryStackEntry[]): ChangeSetEntry[];
|
|
46
47
|
//# sourceMappingURL=changeSet.d.ts.map
|
|
@@ -38,9 +38,10 @@ export declare const TEXT_PROPERTY = "textContent";
|
|
|
38
38
|
*
|
|
39
39
|
* Entries whose `data` lacks a full source location are dropped: an element
|
|
40
40
|
* isn't selectable without one (protocol invariant), so a missing location means
|
|
41
|
-
* a malformed stack, not a locatable change. Only `style` and
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* a malformed stack, not a locatable change. Only `style`, `style-batch`, and
|
|
42
|
+
* `text` commands contribute (a `style-batch` expands into one command per
|
|
43
|
+
* property it wrote); other command types (e.g. media) are ignored. Order is the
|
|
44
|
+
* order each element was first touched.
|
|
44
45
|
*/
|
|
45
46
|
export declare function computeChangeSet(stack: HistoryStackEntry[]): ChangeSetEntry[];
|
|
46
47
|
//# sourceMappingURL=changeSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeSet.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/history/changeSet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC9B;;;;;OAKG;IACH,WAAW,EAAE,cAAc,CAAC;IAC5B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"changeSet.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/history/changeSet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC9B;;;;;OAKG;IACH,WAAW,EAAE,cAAc,CAAC;IAC5B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,gBAAgB,CAAC;AA8C3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,cAAc,EAAE,CAiD7E"}
|
|
@@ -16,8 +16,29 @@ export interface ChangeContext {
|
|
|
16
16
|
columnNumber: number;
|
|
17
17
|
componentName: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* One property write within a {@link HistoryService.recordStyleBatch} batch.
|
|
21
|
+
* Each change carries its own before/after so undo/redo can replay every
|
|
22
|
+
* property independently (see the executor's `style-batch` branch).
|
|
23
|
+
*/
|
|
24
|
+
export interface StyleBatchChange {
|
|
25
|
+
property: string;
|
|
26
|
+
oldValue: string;
|
|
27
|
+
newValue: string;
|
|
28
|
+
}
|
|
19
29
|
export interface HistoryService {
|
|
20
30
|
recordStyleChange(property: string, oldValue: string, newValue: string, context?: ChangeContext): void;
|
|
31
|
+
/**
|
|
32
|
+
* Record several property writes as ONE undoable command. Used when a single
|
|
33
|
+
* user intent must touch more than one property to take effect — e.g. setting
|
|
34
|
+
* a background color on an element whose class paints an opaque
|
|
35
|
+
* `background-image` also clears that image, since the color would otherwise
|
|
36
|
+
* be occluded. Grouping keeps undo/redo/persist atomic: one undo reverts the
|
|
37
|
+
* whole intent, and the change set carries every property so the persisted
|
|
38
|
+
* source matches the preview. The caller live-applies each write; this only
|
|
39
|
+
* records them.
|
|
40
|
+
*/
|
|
41
|
+
recordStyleBatch(changes: StyleBatchChange[], context?: ChangeContext): void;
|
|
21
42
|
recordTextChange(originalText: string, newText: string, context?: ChangeContext): void;
|
|
22
43
|
/** Record an `<img>` attribute change (src/alt/width/height) into the history stack. */
|
|
23
44
|
recordMediaChange(tag: string, attribute: string, oldValue: string, newValue: string, context?: ChangeContext): void;
|
|
@@ -16,8 +16,29 @@ export interface ChangeContext {
|
|
|
16
16
|
columnNumber: number;
|
|
17
17
|
componentName: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* One property write within a {@link HistoryService.recordStyleBatch} batch.
|
|
21
|
+
* Each change carries its own before/after so undo/redo can replay every
|
|
22
|
+
* property independently (see the executor's `style-batch` branch).
|
|
23
|
+
*/
|
|
24
|
+
export interface StyleBatchChange {
|
|
25
|
+
property: string;
|
|
26
|
+
oldValue: string;
|
|
27
|
+
newValue: string;
|
|
28
|
+
}
|
|
19
29
|
export interface HistoryService {
|
|
20
30
|
recordStyleChange(property: string, oldValue: string, newValue: string, context?: ChangeContext): void;
|
|
31
|
+
/**
|
|
32
|
+
* Record several property writes as ONE undoable command. Used when a single
|
|
33
|
+
* user intent must touch more than one property to take effect — e.g. setting
|
|
34
|
+
* a background color on an element whose class paints an opaque
|
|
35
|
+
* `background-image` also clears that image, since the color would otherwise
|
|
36
|
+
* be occluded. Grouping keeps undo/redo/persist atomic: one undo reverts the
|
|
37
|
+
* whole intent, and the change set carries every property so the persisted
|
|
38
|
+
* source matches the preview. The caller live-applies each write; this only
|
|
39
|
+
* records them.
|
|
40
|
+
*/
|
|
41
|
+
recordStyleBatch(changes: StyleBatchChange[], context?: ChangeContext): void;
|
|
21
42
|
recordTextChange(originalText: string, newText: string, context?: ChangeContext): void;
|
|
22
43
|
/** Record an `<img>` attribute change (src/alt/width/height) into the history stack. */
|
|
23
44
|
recordMediaChange(tag: string, attribute: string, oldValue: string, newValue: string, context?: ChangeContext): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"historyService.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/history/historyService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;GAGG;AAEH,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC9B,iBAAiB,CAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACrB,IAAI,CAAC;IACR,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACvF,wFAAwF;IACxF,iBAAiB,CAChB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACrB,IAAI,CAAC;IACR,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;IACb,OAAO,IAAI,OAAO,CAAC;IACnB,OAAO,IAAI,OAAO,CAAC;IACnB,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAC/D,eAAe,IAAI,OAAO,EAAE,CAAC;IAC7B,KAAK,IAAI,IAAI,CAAC;IACd,YAAY,IAAI,MAAM,CAAC;IACvB,iBAAiB,IAAI,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,KAAK,IAAI,EAC3F,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,KAAK,IAAI,EACvE,eAAe,CAAC,EAAE,CACjB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAC9C,cAAc,CAAC,EAAE,cAAc,KAC3B,IAAI,GACP,cAAc,
|
|
1
|
+
{"version":3,"file":"historyService.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/history/historyService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;GAGG;AAEH,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC9B,iBAAiB,CAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACrB,IAAI,CAAC;IACR;;;;;;;;;OASG;IACH,gBAAgB,CAAC,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],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"iframeCommandExecutor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/history/iframeCommandExecutor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgFxD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GACvC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,KAAK,IAAI,EAC3F,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,KAAK,IAAI,EACvE,kBAAkB,CACjB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAC9C,cAAc,CAAC,EAAE,cAAc,KAC3B,IAAI,KACP,eAqDF,CAAC"}
|
|
@@ -158,6 +158,8 @@ export interface PanelLabels {
|
|
|
158
158
|
ariaAlphaInput: string;
|
|
159
159
|
ariaFormatCycle: string;
|
|
160
160
|
titleFormatCycle: string;
|
|
161
|
+
gradientValue: string;
|
|
162
|
+
imageValue: string;
|
|
161
163
|
};
|
|
162
164
|
fontWeight: {
|
|
163
165
|
options: {
|
|
@@ -470,6 +472,10 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
470
472
|
readonly placeholders: readonly [0];
|
|
471
473
|
}, {
|
|
472
474
|
readonly path: "editors.color.titleFormatCycle";
|
|
475
|
+
}, {
|
|
476
|
+
readonly path: "editors.color.gradientValue";
|
|
477
|
+
}, {
|
|
478
|
+
readonly path: "editors.color.imageValue";
|
|
473
479
|
}, {
|
|
474
480
|
readonly path: "editors.fontWeight.options.default";
|
|
475
481
|
}, {
|
|
@@ -158,6 +158,8 @@ export interface PanelLabels {
|
|
|
158
158
|
ariaAlphaInput: string;
|
|
159
159
|
ariaFormatCycle: string;
|
|
160
160
|
titleFormatCycle: string;
|
|
161
|
+
gradientValue: string;
|
|
162
|
+
imageValue: string;
|
|
161
163
|
};
|
|
162
164
|
fontWeight: {
|
|
163
165
|
options: {
|
|
@@ -470,6 +472,10 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
470
472
|
readonly placeholders: readonly [0];
|
|
471
473
|
}, {
|
|
472
474
|
readonly path: "editors.color.titleFormatCycle";
|
|
475
|
+
}, {
|
|
476
|
+
readonly path: "editors.color.gradientValue";
|
|
477
|
+
}, {
|
|
478
|
+
readonly path: "editors.color.imageValue";
|
|
473
479
|
}, {
|
|
474
480
|
readonly path: "editors.fontWeight.options.default";
|
|
475
481
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/labels/labels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAE3B,OAAO,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,kBAAkB,EAAE,MAAM,CAAC;KAC3B,CAAC;IAGF,QAAQ,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuJgB,CAAC;AAgBjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAyBxD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Background-occlusion policy.
|
|
8
|
+
*
|
|
9
|
+
* `background-color` and `background-image` are separate paint layers: the image
|
|
10
|
+
* layer paints *on top of* the color layer. So when an element's class sets an
|
|
11
|
+
* opaque `background-image` (a gradient or `url()`), a user's inline
|
|
12
|
+
* `background-color` edit wins the cascade for the color longhand yet is never
|
|
13
|
+
* visible — the image covers it. See the panel's Background Color editor, which
|
|
14
|
+
* edits only `backgroundColor`.
|
|
15
|
+
*
|
|
16
|
+
* This module decides, for a single style edit, whether an accompanying
|
|
17
|
+
* `background-image: none` write is needed so the color the user picked actually
|
|
18
|
+
* shows. It is pure (no DOM, no history) so it can be unit-tested in isolation
|
|
19
|
+
* and reused by any surface; the caller is responsible for applying + recording
|
|
20
|
+
* the returned clears (as one atomic change — see `recordStyleBatch`).
|
|
21
|
+
*/
|
|
22
|
+
/** A property write the caller should apply + record alongside the user's edit. */
|
|
23
|
+
export interface OcclusionClear {
|
|
24
|
+
property: string;
|
|
25
|
+
/** The occluding value being replaced (for undo). */
|
|
26
|
+
oldValue: string;
|
|
27
|
+
/** Always `"none"` today — clears the image layer. */
|
|
28
|
+
newValue: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Given the style edit the user just made and the selected element's current
|
|
32
|
+
* background layers, return the extra property writes needed to keep the edit
|
|
33
|
+
* visible.
|
|
34
|
+
*
|
|
35
|
+
* Fires only for a non-empty `backgroundColor` edit whose element has a
|
|
36
|
+
* *computed* `background-image` that paints something. Returns `[]` in every
|
|
37
|
+
* other case — including when the image was already cleared inline (so we never
|
|
38
|
+
* re-emit a redundant clear on a second color tweak). We do not inspect the
|
|
39
|
+
* gradient's opacity: a partially-transparent image still visually competes with
|
|
40
|
+
* the color, and "set this solid color" reads as intent to replace the layer.
|
|
41
|
+
*
|
|
42
|
+
* @param property - The CSS property the user edited (camelCase, e.g. `backgroundColor`).
|
|
43
|
+
* @param newValue - The value the user set for `property`.
|
|
44
|
+
* @param computedBackgroundImage - The element's computed `background-image` (from `getElementStyles`).
|
|
45
|
+
* @param inlineBackgroundImage - The element's inline `background-image`, if any (already-applied edits).
|
|
46
|
+
*/
|
|
47
|
+
export declare function computeBackgroundOcclusionClears(property: string, newValue: string, computedBackgroundImage: string | undefined, inlineBackgroundImage: string | undefined): OcclusionClear[];
|
|
48
|
+
//# sourceMappingURL=backgroundOcclusion.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Background-occlusion policy.
|
|
8
|
+
*
|
|
9
|
+
* `background-color` and `background-image` are separate paint layers: the image
|
|
10
|
+
* layer paints *on top of* the color layer. So when an element's class sets an
|
|
11
|
+
* opaque `background-image` (a gradient or `url()`), a user's inline
|
|
12
|
+
* `background-color` edit wins the cascade for the color longhand yet is never
|
|
13
|
+
* visible — the image covers it. See the panel's Background Color editor, which
|
|
14
|
+
* edits only `backgroundColor`.
|
|
15
|
+
*
|
|
16
|
+
* This module decides, for a single style edit, whether an accompanying
|
|
17
|
+
* `background-image: none` write is needed so the color the user picked actually
|
|
18
|
+
* shows. It is pure (no DOM, no history) so it can be unit-tested in isolation
|
|
19
|
+
* and reused by any surface; the caller is responsible for applying + recording
|
|
20
|
+
* the returned clears (as one atomic change — see `recordStyleBatch`).
|
|
21
|
+
*/
|
|
22
|
+
/** A property write the caller should apply + record alongside the user's edit. */
|
|
23
|
+
export interface OcclusionClear {
|
|
24
|
+
property: string;
|
|
25
|
+
/** The occluding value being replaced (for undo). */
|
|
26
|
+
oldValue: string;
|
|
27
|
+
/** Always `"none"` today — clears the image layer. */
|
|
28
|
+
newValue: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Given the style edit the user just made and the selected element's current
|
|
32
|
+
* background layers, return the extra property writes needed to keep the edit
|
|
33
|
+
* visible.
|
|
34
|
+
*
|
|
35
|
+
* Fires only for a non-empty `backgroundColor` edit whose element has a
|
|
36
|
+
* *computed* `background-image` that paints something. Returns `[]` in every
|
|
37
|
+
* other case — including when the image was already cleared inline (so we never
|
|
38
|
+
* re-emit a redundant clear on a second color tweak). We do not inspect the
|
|
39
|
+
* gradient's opacity: a partially-transparent image still visually competes with
|
|
40
|
+
* the color, and "set this solid color" reads as intent to replace the layer.
|
|
41
|
+
*
|
|
42
|
+
* @param property - The CSS property the user edited (camelCase, e.g. `backgroundColor`).
|
|
43
|
+
* @param newValue - The value the user set for `property`.
|
|
44
|
+
* @param computedBackgroundImage - The element's computed `background-image` (from `getElementStyles`).
|
|
45
|
+
* @param inlineBackgroundImage - The element's inline `background-image`, if any (already-applied edits).
|
|
46
|
+
*/
|
|
47
|
+
export declare function computeBackgroundOcclusionClears(property: string, newValue: string, computedBackgroundImage: string | undefined, inlineBackgroundImage: string | undefined): OcclusionClear[];
|
|
48
|
+
//# sourceMappingURL=backgroundOcclusion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backgroundOcclusion.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/backgroundOcclusion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,mFAAmF;AACnF,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;CACjB;AAQD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gCAAgC,CAC/C,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,uBAAuB,EAAE,MAAM,GAAG,SAAS,EAC3C,qBAAqB,EAAE,MAAM,GAAG,SAAS,GACvC,cAAc,EAAE,CAelB"}
|