@salesforce/ui-design-mode 10.5.1 → 10.6.1
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.cts +17 -3
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts +17 -3
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -1
- package/dist/authoring/core/editors/BorderStyleEditor.d.cts +6 -1
- package/dist/authoring/core/editors/BorderStyleEditor.d.ts +6 -1
- package/dist/authoring/core/editors/BorderStyleEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/BoxDimensionEditor.d.cts +14 -3
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts +14 -3
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/ColorEditor.d.cts +6 -1
- package/dist/authoring/core/editors/ColorEditor.d.ts +6 -1
- package/dist/authoring/core/editors/ColorEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/DimensionEditor.d.cts +6 -1
- package/dist/authoring/core/editors/DimensionEditor.d.ts +6 -1
- package/dist/authoring/core/editors/DimensionEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/FontFamilyEditor.d.cts +6 -1
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts +6 -1
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/FontStyleEditor.d.cts +6 -1
- package/dist/authoring/core/editors/FontStyleEditor.d.ts +6 -1
- package/dist/authoring/core/editors/FontStyleEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/FontWeightEditor.d.cts +6 -1
- package/dist/authoring/core/editors/FontWeightEditor.d.ts +6 -1
- package/dist/authoring/core/editors/FontWeightEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/OverflowEditor.d.cts +6 -1
- package/dist/authoring/core/editors/OverflowEditor.d.ts +6 -1
- package/dist/authoring/core/editors/OverflowEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/TextAlignmentEditor.d.cts +6 -1
- package/dist/authoring/core/editors/TextAlignmentEditor.d.ts +6 -1
- package/dist/authoring/core/editors/TextAlignmentEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/TextDecorationEditor.d.cts +6 -1
- package/dist/authoring/core/editors/TextDecorationEditor.d.ts +6 -1
- package/dist/authoring/core/editors/TextDecorationEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/TextTransformEditor.d.cts +6 -1
- package/dist/authoring/core/editors/TextTransformEditor.d.ts +6 -1
- package/dist/authoring/core/editors/TextTransformEditor.d.ts.map +1 -1
- package/dist/authoring/core/labels/labels.d.cts +444 -0
- package/dist/authoring/core/labels/labels.d.ts +444 -0
- package/dist/authoring/core/labels/labels.d.ts.map +1 -0
- package/dist/authoring/core/utils/dimensionUtils.d.cts +2 -1
- package/dist/authoring/core/utils/dimensionUtils.d.ts +2 -1
- package/dist/authoring/core/utils/dimensionUtils.d.ts.map +1 -1
- package/dist/authoring/react/index.d.cts +2 -0
- package/dist/authoring/react/index.d.ts +2 -0
- package/dist/authoring/react/index.d.ts.map +1 -1
- package/dist/authoring/react/index.js +3 -3
- package/dist/authoring/web-component/index.d.cts +31 -0
- package/dist/authoring/web-component/index.d.ts +31 -0
- package/dist/authoring/web-component/index.d.ts.map +1 -1
- package/dist/authoring/web-component/index.js +20 -18
- package/package.json +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DesignPanelComponent, StylesEntryMap } from '../core/DesignPropertyPanelRoot.cjs';
|
|
2
2
|
import { ChangeContext } from '../core/history/historyService.cjs';
|
|
3
|
+
import { PanelLabels } from '../core/labels/labels.cjs';
|
|
3
4
|
/** The `<design-mode-panel>` Custom Element. */
|
|
4
5
|
export declare class DesignModePanelElement extends HTMLElement {
|
|
5
6
|
#private;
|
|
@@ -14,6 +15,34 @@ export declare class DesignModePanelElement extends HTMLElement {
|
|
|
14
15
|
*/
|
|
15
16
|
get showAddToChatContext(): boolean;
|
|
16
17
|
set showAddToChatContext(value: boolean);
|
|
18
|
+
/**
|
|
19
|
+
* Whether the panel renders the selected component's "jump to source" link.
|
|
20
|
+
* Defaults to `true`. Settable as a property or the `open-source-file`
|
|
21
|
+
* attribute (`"false"` hides it). A surface with no source viewer (Codey
|
|
22
|
+
* Studio) hides the row; VS Code keeps it (opens the file in the editor).
|
|
23
|
+
*/
|
|
24
|
+
get showOpenSourceFile(): boolean;
|
|
25
|
+
set showOpenSourceFile(value: boolean);
|
|
26
|
+
/**
|
|
27
|
+
* Fully-resolved, localized panel strings. Property-only (a complex object —
|
|
28
|
+
* no attribute form, the same constraint as `component`/`styles`). Omit it (or
|
|
29
|
+
* set `undefined`) and the panel renders its English defaults; assign a complete
|
|
30
|
+
* `PanelLabels` for another locale.
|
|
31
|
+
*
|
|
32
|
+
* An incomplete translation degrades to a partly-English panel rather than
|
|
33
|
+
* breaking, via two mechanisms: (1) on assignment the value is validated with
|
|
34
|
+
* `validateLabels` and any problems (missing leaf, placeholder-arity mismatch)
|
|
35
|
+
* are `console.warn`ed — never thrown — so the host gets a clear signal; (2) the
|
|
36
|
+
* panel deep-merges the supplied object over its English defaults
|
|
37
|
+
* (`mergeDefaults`), so each missing leaf renders English instead of `undefined`
|
|
38
|
+
* (which would blank the string, or throw when fed to `interpolate`). The
|
|
39
|
+
* validator is the developer feedback loop; the merge is what guarantees a safe
|
|
40
|
+
* render. Validation is the completeness guard for untyped (LWC/JS) hosts that
|
|
41
|
+
* the all-required `PanelLabels` type cannot reach, and runs once per assignment
|
|
42
|
+
* (panel init / locale change), not per render.
|
|
43
|
+
*/
|
|
44
|
+
get labels(): PanelLabels | undefined;
|
|
45
|
+
set labels(value: PanelLabels | undefined);
|
|
17
46
|
undo(): void;
|
|
18
47
|
redo(): void;
|
|
19
48
|
clearHistory(): void;
|
|
@@ -25,4 +54,6 @@ export declare class DesignModePanelElement extends HTMLElement {
|
|
|
25
54
|
disconnectedCallback(): void;
|
|
26
55
|
}
|
|
27
56
|
export type { DesignPanelComponent, StylesEntryMap, SelectedComponentContext, OpenSourceFilePayload, } from '../core/DesignPropertyPanelRoot.cjs';
|
|
57
|
+
export { interpolate, validateLabels, REQUIRED_LABEL_KEYS } from '../core/labels/labels.cjs';
|
|
58
|
+
export type { PanelLabels, RequiredLabelKey } from '../core/labels/labels.cjs';
|
|
28
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DesignPanelComponent, StylesEntryMap } from '../core/DesignPropertyPanelRoot.js';
|
|
2
2
|
import { ChangeContext } from '../core/history/historyService.js';
|
|
3
|
+
import { PanelLabels } from '../core/labels/labels.js';
|
|
3
4
|
/** The `<design-mode-panel>` Custom Element. */
|
|
4
5
|
export declare class DesignModePanelElement extends HTMLElement {
|
|
5
6
|
#private;
|
|
@@ -14,6 +15,34 @@ export declare class DesignModePanelElement extends HTMLElement {
|
|
|
14
15
|
*/
|
|
15
16
|
get showAddToChatContext(): boolean;
|
|
16
17
|
set showAddToChatContext(value: boolean);
|
|
18
|
+
/**
|
|
19
|
+
* Whether the panel renders the selected component's "jump to source" link.
|
|
20
|
+
* Defaults to `true`. Settable as a property or the `open-source-file`
|
|
21
|
+
* attribute (`"false"` hides it). A surface with no source viewer (Codey
|
|
22
|
+
* Studio) hides the row; VS Code keeps it (opens the file in the editor).
|
|
23
|
+
*/
|
|
24
|
+
get showOpenSourceFile(): boolean;
|
|
25
|
+
set showOpenSourceFile(value: boolean);
|
|
26
|
+
/**
|
|
27
|
+
* Fully-resolved, localized panel strings. Property-only (a complex object —
|
|
28
|
+
* no attribute form, the same constraint as `component`/`styles`). Omit it (or
|
|
29
|
+
* set `undefined`) and the panel renders its English defaults; assign a complete
|
|
30
|
+
* `PanelLabels` for another locale.
|
|
31
|
+
*
|
|
32
|
+
* An incomplete translation degrades to a partly-English panel rather than
|
|
33
|
+
* breaking, via two mechanisms: (1) on assignment the value is validated with
|
|
34
|
+
* `validateLabels` and any problems (missing leaf, placeholder-arity mismatch)
|
|
35
|
+
* are `console.warn`ed — never thrown — so the host gets a clear signal; (2) the
|
|
36
|
+
* panel deep-merges the supplied object over its English defaults
|
|
37
|
+
* (`mergeDefaults`), so each missing leaf renders English instead of `undefined`
|
|
38
|
+
* (which would blank the string, or throw when fed to `interpolate`). The
|
|
39
|
+
* validator is the developer feedback loop; the merge is what guarantees a safe
|
|
40
|
+
* render. Validation is the completeness guard for untyped (LWC/JS) hosts that
|
|
41
|
+
* the all-required `PanelLabels` type cannot reach, and runs once per assignment
|
|
42
|
+
* (panel init / locale change), not per render.
|
|
43
|
+
*/
|
|
44
|
+
get labels(): PanelLabels | undefined;
|
|
45
|
+
set labels(value: PanelLabels | undefined);
|
|
17
46
|
undo(): void;
|
|
18
47
|
redo(): void;
|
|
19
48
|
clearHistory(): void;
|
|
@@ -25,4 +54,6 @@ export declare class DesignModePanelElement extends HTMLElement {
|
|
|
25
54
|
disconnectedCallback(): void;
|
|
26
55
|
}
|
|
27
56
|
export type { DesignPanelComponent, StylesEntryMap, SelectedComponentContext, OpenSourceFilePayload, } from '../core/DesignPropertyPanelRoot.js';
|
|
57
|
+
export { interpolate, validateLabels, REQUIRED_LABEL_KEYS } from '../core/labels/labels.js';
|
|
58
|
+
export type { PanelLabels, RequiredLabelKey } from '../core/labels/labels.js';
|
|
28
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authoring/web-component/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authoring/web-component/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAuCH,OAAO,EAEN,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EACnB,MAAM,iCAAiC,CAAC;AAOzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;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