@salesforce/ui-design-mode 12.13.0 → 12.14.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.
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -1
- package/dist/authoring/core/editors/DimensionEditor.d.cts +11 -20
- package/dist/authoring/core/editors/DimensionEditor.d.ts +11 -20
- package/dist/authoring/core/editors/DimensionEditor.d.ts.map +1 -1
- package/dist/authoring/core/hooks/usePopover.d.cts +3 -2
- package/dist/authoring/core/hooks/usePopover.d.ts +3 -2
- package/dist/authoring/core/hooks/usePopover.d.ts.map +1 -1
- package/dist/authoring/core/labels/labels.d.cts +24 -42
- package/dist/authoring/core/labels/labels.d.ts +24 -42
- package/dist/authoring/core/labels/labels.d.ts.map +1 -1
- package/dist/authoring/core/utils/dimensionUtils.d.cts +19 -11
- package/dist/authoring/core/utils/dimensionUtils.d.ts +19 -11
- package/dist/authoring/core/utils/dimensionUtils.d.ts.map +1 -1
- package/dist/authoring/react/index.js +4 -4
- package/dist/authoring/react/styles.css +1 -1
- package/dist/authoring/web-component/index.js +101 -68
- package/dist/protocol/index.cjs +2 -0
- package/dist/protocol/index.d.cts +1 -0
- package/dist/protocol/index.d.ts +1 -0
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/protocol/index.js +2 -0
- package/dist/protocol/measuredStyleProperties.cjs +8 -0
- package/dist/protocol/measuredStyleProperties.d.cts +13 -0
- package/dist/protocol/measuredStyleProperties.d.ts +13 -0
- package/dist/protocol/measuredStyleProperties.d.ts.map +1 -0
- package/dist/protocol/measuredStyleProperties.js +8 -0
- package/dist/protocol/messageTypes.d.cts +6 -3
- package/dist/protocol/messageTypes.d.ts +6 -3
- package/dist/protocol/messageTypes.d.ts.map +1 -1
- package/dist/protocol/version.cjs +1 -1
- package/dist/protocol/version.js +1 -1
- package/dist/runtime/design-mode-interactions.js +15 -8
- package/dist/runtime/interactions/communicationManager.d.cts +1 -1
- package/dist/runtime/interactions/communicationManager.d.ts +1 -1
- package/dist/runtime/interactions/communicationManager.d.ts.map +1 -1
- package/dist/runtime/interactions/interactionsController.d.cts +2 -2
- package/dist/runtime/interactions/interactionsController.d.ts +2 -2
- package/dist/runtime/interactions/interactionsController.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/authoring/core/editors/OverflowEditor.d.cts +0 -19
- package/dist/authoring/core/editors/OverflowEditor.d.ts +0 -19
- package/dist/authoring/core/editors/OverflowEditor.d.ts.map +0 -1
|
@@ -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,EAEX,aAAa,EACb,mBAAmB,EAEnB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAQxB,OAAO,EAEN,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,MAAM,uBAAuB,CAAC;
|
|
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,EAEX,aAAa,EACb,mBAAmB,EAEnB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAQxB,OAAO,EAEN,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAoB,KAAK,cAAc,EAA0B,MAAM,qBAAqB,CAAC;AAEpG,OAAO,EAEN,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M,KAAK,IAAI,CAAC;IAClF,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC3C,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,gGAAgG;IAChG,YAAY,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,4EAA4E;AAC5E,MAAM,WAAW,yBAAyB;IACzC,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;IACb;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE;QAAE,kBAAkB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAC/D,eAAe,IAAI,OAAO,EAAE,CAAC;IAC7B;;;;;OAKG;IACH,YAAY,IAAI,cAAc,EAAE,CAAC;IACjC,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACvF,OAAO,IAAI,OAAO,CAAC;IACnB,OAAO,IAAI,OAAO,CAAC;CACnB;AA4qBD,eAAO,MAAM,mBAAmB,4GAuoB9B,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"}
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { PanelLabels } from '../labels/labels.cjs';
|
|
3
|
-
import {
|
|
2
|
+
import { TypographyConfig } from '../utils/dimensionUtils.cjs';
|
|
4
3
|
type DimensionAriaLabels = PanelLabels["editors"]["dimension"];
|
|
5
|
-
export interface DimensionEditorProps {
|
|
4
|
+
export interface DimensionEditorProps extends TypographyConfig {
|
|
6
5
|
/** Editor label displayed above the input */
|
|
7
6
|
label: string;
|
|
8
|
-
/** CSS
|
|
7
|
+
/** Authored CSS value (e.g. "16px", "normal") */
|
|
9
8
|
value?: string;
|
|
10
9
|
/** Callback invoked when value changes */
|
|
11
10
|
onChange: (cssValue: string) => void;
|
|
12
|
-
/** Available unit options (defaults to CSS_UNITS) */
|
|
13
|
-
units?: readonly UnitOption[];
|
|
14
|
-
/** Min/max/step constraints per unit */
|
|
15
|
-
constraints?: UnitConstraints;
|
|
16
|
-
/** Default unit when value is empty (defaults to 'px') */
|
|
17
|
-
defaultUnit?: string;
|
|
18
|
-
/** Placeholder for empty input (defaults to 0) */
|
|
19
|
-
placeholder?: number | string;
|
|
20
11
|
/** DOM id for the editor (defaults to 'dimension') */
|
|
21
12
|
id?: string;
|
|
22
|
-
/** Optional icon component to display */
|
|
23
|
-
icon?: React.ComponentType<{
|
|
24
|
-
size?: number;
|
|
25
|
-
width?: number;
|
|
26
|
-
height?: number;
|
|
27
|
-
}>;
|
|
28
13
|
/** Localized composed-aria templates ({0} = label); omit for English. */
|
|
29
14
|
aria?: DimensionAriaLabels;
|
|
15
|
+
/** Computed value shown in the field, expressed in `unit`. */
|
|
16
|
+
displayValue: string;
|
|
17
|
+
/** Changes identity when the host pushes a fresh measurement. */
|
|
18
|
+
measurement?: object;
|
|
19
|
+
/** Bumped to discard the local draft (undo/redo, clear history). */
|
|
20
|
+
resetVersion?: number;
|
|
30
21
|
}
|
|
31
22
|
/**
|
|
32
|
-
*
|
|
23
|
+
* Typography editor with computed display and fixed-unit numeric authoring.
|
|
33
24
|
*/
|
|
34
|
-
export declare function DimensionEditor({ label, value, onChange,
|
|
25
|
+
export declare function DimensionEditor({ label, value, onChange, id, aria: ariaProp, unit, icon: Icon, constraints, presets, normalLabelKey, displayValue, measurement, resetVersion, }: DimensionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
35
26
|
export {};
|
|
36
27
|
//# sourceMappingURL=DimensionEditor.d.ts.map
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { PanelLabels } from '../labels/labels.js';
|
|
3
|
-
import {
|
|
2
|
+
import { TypographyConfig } from '../utils/dimensionUtils.js';
|
|
4
3
|
type DimensionAriaLabels = PanelLabels["editors"]["dimension"];
|
|
5
|
-
export interface DimensionEditorProps {
|
|
4
|
+
export interface DimensionEditorProps extends TypographyConfig {
|
|
6
5
|
/** Editor label displayed above the input */
|
|
7
6
|
label: string;
|
|
8
|
-
/** CSS
|
|
7
|
+
/** Authored CSS value (e.g. "16px", "normal") */
|
|
9
8
|
value?: string;
|
|
10
9
|
/** Callback invoked when value changes */
|
|
11
10
|
onChange: (cssValue: string) => void;
|
|
12
|
-
/** Available unit options (defaults to CSS_UNITS) */
|
|
13
|
-
units?: readonly UnitOption[];
|
|
14
|
-
/** Min/max/step constraints per unit */
|
|
15
|
-
constraints?: UnitConstraints;
|
|
16
|
-
/** Default unit when value is empty (defaults to 'px') */
|
|
17
|
-
defaultUnit?: string;
|
|
18
|
-
/** Placeholder for empty input (defaults to 0) */
|
|
19
|
-
placeholder?: number | string;
|
|
20
11
|
/** DOM id for the editor (defaults to 'dimension') */
|
|
21
12
|
id?: string;
|
|
22
|
-
/** Optional icon component to display */
|
|
23
|
-
icon?: React.ComponentType<{
|
|
24
|
-
size?: number;
|
|
25
|
-
width?: number;
|
|
26
|
-
height?: number;
|
|
27
|
-
}>;
|
|
28
13
|
/** Localized composed-aria templates ({0} = label); omit for English. */
|
|
29
14
|
aria?: DimensionAriaLabels;
|
|
15
|
+
/** Computed value shown in the field, expressed in `unit`. */
|
|
16
|
+
displayValue: string;
|
|
17
|
+
/** Changes identity when the host pushes a fresh measurement. */
|
|
18
|
+
measurement?: object;
|
|
19
|
+
/** Bumped to discard the local draft (undo/redo, clear history). */
|
|
20
|
+
resetVersion?: number;
|
|
30
21
|
}
|
|
31
22
|
/**
|
|
32
|
-
*
|
|
23
|
+
* Typography editor with computed display and fixed-unit numeric authoring.
|
|
33
24
|
*/
|
|
34
|
-
export declare function DimensionEditor({ label, value, onChange,
|
|
25
|
+
export declare function DimensionEditor({ label, value, onChange, id, aria: ariaProp, unit, icon: Icon, constraints, presets, normalLabelKey, displayValue, measurement, resetVersion, }: DimensionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
35
26
|
export {};
|
|
36
27
|
//# sourceMappingURL=DimensionEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DimensionEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/DimensionEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DimensionEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/DimensionEditor.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACN,KAAK,gBAAgB,EAMrB,MAAM,yBAAyB,CAAC;AAGjC,KAAK,mBAAmB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;AAyB/D,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC7D,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,sDAAsD;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yEAAyE;IACzE,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,EAAgB,EAChB,IAAI,EAAE,QAAQ,EACd,IAAI,EACJ,IAAI,EAAE,IAAI,EACV,WAAW,EACX,OAAO,EACP,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,GACZ,EAAE,oBAAoB,2CAgTtB"}
|
|
@@ -8,11 +8,12 @@ export interface UsePopoverOptions {
|
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
autoFocus?: boolean;
|
|
10
10
|
trapFocus?: boolean;
|
|
11
|
+
restoreFocusOnOutside?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface UsePopoverReturn {
|
|
13
14
|
isOpen: boolean;
|
|
14
15
|
open: () => void;
|
|
15
|
-
close: () => void;
|
|
16
|
+
close: (restoreFocus?: boolean) => void;
|
|
16
17
|
toggle: () => void;
|
|
17
18
|
triggerRef: React.RefObject<HTMLElement | null>;
|
|
18
19
|
popoverRef: React.RefObject<HTMLElement | null>;
|
|
@@ -22,5 +23,5 @@ export interface UsePopoverReturn {
|
|
|
22
23
|
/**
|
|
23
24
|
* Popover hook (state, positioning, dismiss, and focus management).
|
|
24
25
|
*/
|
|
25
|
-
export declare function usePopover({ computePosition, onClose, autoFocus, trapFocus, }?: UsePopoverOptions): UsePopoverReturn;
|
|
26
|
+
export declare function usePopover({ computePosition, onClose, autoFocus, trapFocus, restoreFocusOnOutside, }?: UsePopoverOptions): UsePopoverReturn;
|
|
26
27
|
//# sourceMappingURL=usePopover.d.ts.map
|
|
@@ -8,11 +8,12 @@ export interface UsePopoverOptions {
|
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
autoFocus?: boolean;
|
|
10
10
|
trapFocus?: boolean;
|
|
11
|
+
restoreFocusOnOutside?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface UsePopoverReturn {
|
|
13
14
|
isOpen: boolean;
|
|
14
15
|
open: () => void;
|
|
15
|
-
close: () => void;
|
|
16
|
+
close: (restoreFocus?: boolean) => void;
|
|
16
17
|
toggle: () => void;
|
|
17
18
|
triggerRef: React.RefObject<HTMLElement | null>;
|
|
18
19
|
popoverRef: React.RefObject<HTMLElement | null>;
|
|
@@ -22,5 +23,5 @@ export interface UsePopoverReturn {
|
|
|
22
23
|
/**
|
|
23
24
|
* Popover hook (state, positioning, dismiss, and focus management).
|
|
24
25
|
*/
|
|
25
|
-
export declare function usePopover({ computePosition, onClose, autoFocus, trapFocus, }?: UsePopoverOptions): UsePopoverReturn;
|
|
26
|
+
export declare function usePopover({ computePosition, onClose, autoFocus, trapFocus, restoreFocusOnOutside, }?: UsePopoverOptions): UsePopoverReturn;
|
|
26
27
|
//# sourceMappingURL=usePopover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/hooks/usePopover.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAIjC,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,eAAe,CAAC;IAC9E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/hooks/usePopover.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAIjC,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,eAAe,CAAC;IAC9E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,QAAQ,EAAE,eAAe,CAAC;IAE1B,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAC1B,eAAe,EACf,OAAO,EACP,SAAgB,EAChB,SAAiB,EACjB,qBAA4B,GAC5B,GAAE,iBAAsB,GAAG,gBAAgB,CA6G3C"}
|
|
@@ -59,7 +59,6 @@ export interface PanelLabels {
|
|
|
59
59
|
spacing: string;
|
|
60
60
|
border: string;
|
|
61
61
|
typography: string;
|
|
62
|
-
elementDimensions: string;
|
|
63
62
|
};
|
|
64
63
|
instances: {
|
|
65
64
|
imageSource: string;
|
|
@@ -80,13 +79,6 @@ export interface PanelLabels {
|
|
|
80
79
|
textTransform: string;
|
|
81
80
|
lineHeight: string;
|
|
82
81
|
letterSpacing: string;
|
|
83
|
-
width: string;
|
|
84
|
-
minWidth: string;
|
|
85
|
-
maxWidth: string;
|
|
86
|
-
height: string;
|
|
87
|
-
minHeight: string;
|
|
88
|
-
maxHeight: string;
|
|
89
|
-
overflow: string;
|
|
90
82
|
};
|
|
91
83
|
editors: {
|
|
92
84
|
image: {
|
|
@@ -138,7 +130,14 @@ export interface PanelLabels {
|
|
|
138
130
|
};
|
|
139
131
|
dimension: {
|
|
140
132
|
ariaValue: string;
|
|
141
|
-
|
|
133
|
+
ariaActions: string;
|
|
134
|
+
useNormalLineHeight: string;
|
|
135
|
+
useNormalSpacing: string;
|
|
136
|
+
useInherit: string;
|
|
137
|
+
invalidRange: string;
|
|
138
|
+
unitPx: string;
|
|
139
|
+
unitEm: string;
|
|
140
|
+
unitless: string;
|
|
142
141
|
};
|
|
143
142
|
color: {
|
|
144
143
|
placeholder: string;
|
|
@@ -184,14 +183,6 @@ export interface PanelLabels {
|
|
|
184
183
|
dotted: string;
|
|
185
184
|
};
|
|
186
185
|
};
|
|
187
|
-
overflow: {
|
|
188
|
-
options: {
|
|
189
|
-
visible: string;
|
|
190
|
-
hidden: string;
|
|
191
|
-
scroll: string;
|
|
192
|
-
auto: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
186
|
textAlignment: {
|
|
196
187
|
options: {
|
|
197
188
|
left: string;
|
|
@@ -285,8 +276,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
285
276
|
readonly path: "sections.border";
|
|
286
277
|
}, {
|
|
287
278
|
readonly path: "sections.typography";
|
|
288
|
-
}, {
|
|
289
|
-
readonly path: "sections.elementDimensions";
|
|
290
279
|
}, {
|
|
291
280
|
readonly path: "instances.imageSource";
|
|
292
281
|
}, {
|
|
@@ -323,20 +312,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
323
312
|
readonly path: "instances.lineHeight";
|
|
324
313
|
}, {
|
|
325
314
|
readonly path: "instances.letterSpacing";
|
|
326
|
-
}, {
|
|
327
|
-
readonly path: "instances.width";
|
|
328
|
-
}, {
|
|
329
|
-
readonly path: "instances.minWidth";
|
|
330
|
-
}, {
|
|
331
|
-
readonly path: "instances.maxWidth";
|
|
332
|
-
}, {
|
|
333
|
-
readonly path: "instances.height";
|
|
334
|
-
}, {
|
|
335
|
-
readonly path: "instances.minHeight";
|
|
336
|
-
}, {
|
|
337
|
-
readonly path: "instances.maxHeight";
|
|
338
|
-
}, {
|
|
339
|
-
readonly path: "instances.overflow";
|
|
340
315
|
}, {
|
|
341
316
|
readonly path: "editors.image.tabCms";
|
|
342
317
|
}, {
|
|
@@ -423,8 +398,23 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
423
398
|
readonly path: "editors.dimension.ariaValue";
|
|
424
399
|
readonly placeholders: readonly [0];
|
|
425
400
|
}, {
|
|
426
|
-
readonly path: "editors.dimension.
|
|
401
|
+
readonly path: "editors.dimension.ariaActions";
|
|
427
402
|
readonly placeholders: readonly [0];
|
|
403
|
+
}, {
|
|
404
|
+
readonly path: "editors.dimension.useNormalLineHeight";
|
|
405
|
+
}, {
|
|
406
|
+
readonly path: "editors.dimension.useNormalSpacing";
|
|
407
|
+
}, {
|
|
408
|
+
readonly path: "editors.dimension.useInherit";
|
|
409
|
+
}, {
|
|
410
|
+
readonly path: "editors.dimension.invalidRange";
|
|
411
|
+
readonly placeholders: readonly [0, 1];
|
|
412
|
+
}, {
|
|
413
|
+
readonly path: "editors.dimension.unitPx";
|
|
414
|
+
}, {
|
|
415
|
+
readonly path: "editors.dimension.unitEm";
|
|
416
|
+
}, {
|
|
417
|
+
readonly path: "editors.dimension.unitless";
|
|
428
418
|
}, {
|
|
429
419
|
readonly path: "editors.color.placeholder";
|
|
430
420
|
}, {
|
|
@@ -491,14 +481,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
491
481
|
readonly path: "editors.borderStyle.options.dashed";
|
|
492
482
|
}, {
|
|
493
483
|
readonly path: "editors.borderStyle.options.dotted";
|
|
494
|
-
}, {
|
|
495
|
-
readonly path: "editors.overflow.options.visible";
|
|
496
|
-
}, {
|
|
497
|
-
readonly path: "editors.overflow.options.hidden";
|
|
498
|
-
}, {
|
|
499
|
-
readonly path: "editors.overflow.options.scroll";
|
|
500
|
-
}, {
|
|
501
|
-
readonly path: "editors.overflow.options.auto";
|
|
502
484
|
}, {
|
|
503
485
|
readonly path: "editors.textAlignment.options.left";
|
|
504
486
|
}, {
|
|
@@ -59,7 +59,6 @@ export interface PanelLabels {
|
|
|
59
59
|
spacing: string;
|
|
60
60
|
border: string;
|
|
61
61
|
typography: string;
|
|
62
|
-
elementDimensions: string;
|
|
63
62
|
};
|
|
64
63
|
instances: {
|
|
65
64
|
imageSource: string;
|
|
@@ -80,13 +79,6 @@ export interface PanelLabels {
|
|
|
80
79
|
textTransform: string;
|
|
81
80
|
lineHeight: string;
|
|
82
81
|
letterSpacing: string;
|
|
83
|
-
width: string;
|
|
84
|
-
minWidth: string;
|
|
85
|
-
maxWidth: string;
|
|
86
|
-
height: string;
|
|
87
|
-
minHeight: string;
|
|
88
|
-
maxHeight: string;
|
|
89
|
-
overflow: string;
|
|
90
82
|
};
|
|
91
83
|
editors: {
|
|
92
84
|
image: {
|
|
@@ -138,7 +130,14 @@ export interface PanelLabels {
|
|
|
138
130
|
};
|
|
139
131
|
dimension: {
|
|
140
132
|
ariaValue: string;
|
|
141
|
-
|
|
133
|
+
ariaActions: string;
|
|
134
|
+
useNormalLineHeight: string;
|
|
135
|
+
useNormalSpacing: string;
|
|
136
|
+
useInherit: string;
|
|
137
|
+
invalidRange: string;
|
|
138
|
+
unitPx: string;
|
|
139
|
+
unitEm: string;
|
|
140
|
+
unitless: string;
|
|
142
141
|
};
|
|
143
142
|
color: {
|
|
144
143
|
placeholder: string;
|
|
@@ -184,14 +183,6 @@ export interface PanelLabels {
|
|
|
184
183
|
dotted: string;
|
|
185
184
|
};
|
|
186
185
|
};
|
|
187
|
-
overflow: {
|
|
188
|
-
options: {
|
|
189
|
-
visible: string;
|
|
190
|
-
hidden: string;
|
|
191
|
-
scroll: string;
|
|
192
|
-
auto: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
186
|
textAlignment: {
|
|
196
187
|
options: {
|
|
197
188
|
left: string;
|
|
@@ -285,8 +276,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
285
276
|
readonly path: "sections.border";
|
|
286
277
|
}, {
|
|
287
278
|
readonly path: "sections.typography";
|
|
288
|
-
}, {
|
|
289
|
-
readonly path: "sections.elementDimensions";
|
|
290
279
|
}, {
|
|
291
280
|
readonly path: "instances.imageSource";
|
|
292
281
|
}, {
|
|
@@ -323,20 +312,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
323
312
|
readonly path: "instances.lineHeight";
|
|
324
313
|
}, {
|
|
325
314
|
readonly path: "instances.letterSpacing";
|
|
326
|
-
}, {
|
|
327
|
-
readonly path: "instances.width";
|
|
328
|
-
}, {
|
|
329
|
-
readonly path: "instances.minWidth";
|
|
330
|
-
}, {
|
|
331
|
-
readonly path: "instances.maxWidth";
|
|
332
|
-
}, {
|
|
333
|
-
readonly path: "instances.height";
|
|
334
|
-
}, {
|
|
335
|
-
readonly path: "instances.minHeight";
|
|
336
|
-
}, {
|
|
337
|
-
readonly path: "instances.maxHeight";
|
|
338
|
-
}, {
|
|
339
|
-
readonly path: "instances.overflow";
|
|
340
315
|
}, {
|
|
341
316
|
readonly path: "editors.image.tabCms";
|
|
342
317
|
}, {
|
|
@@ -423,8 +398,23 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
423
398
|
readonly path: "editors.dimension.ariaValue";
|
|
424
399
|
readonly placeholders: readonly [0];
|
|
425
400
|
}, {
|
|
426
|
-
readonly path: "editors.dimension.
|
|
401
|
+
readonly path: "editors.dimension.ariaActions";
|
|
427
402
|
readonly placeholders: readonly [0];
|
|
403
|
+
}, {
|
|
404
|
+
readonly path: "editors.dimension.useNormalLineHeight";
|
|
405
|
+
}, {
|
|
406
|
+
readonly path: "editors.dimension.useNormalSpacing";
|
|
407
|
+
}, {
|
|
408
|
+
readonly path: "editors.dimension.useInherit";
|
|
409
|
+
}, {
|
|
410
|
+
readonly path: "editors.dimension.invalidRange";
|
|
411
|
+
readonly placeholders: readonly [0, 1];
|
|
412
|
+
}, {
|
|
413
|
+
readonly path: "editors.dimension.unitPx";
|
|
414
|
+
}, {
|
|
415
|
+
readonly path: "editors.dimension.unitEm";
|
|
416
|
+
}, {
|
|
417
|
+
readonly path: "editors.dimension.unitless";
|
|
428
418
|
}, {
|
|
429
419
|
readonly path: "editors.color.placeholder";
|
|
430
420
|
}, {
|
|
@@ -491,14 +481,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
491
481
|
readonly path: "editors.borderStyle.options.dashed";
|
|
492
482
|
}, {
|
|
493
483
|
readonly path: "editors.borderStyle.options.dotted";
|
|
494
|
-
}, {
|
|
495
|
-
readonly path: "editors.overflow.options.visible";
|
|
496
|
-
}, {
|
|
497
|
-
readonly path: "editors.overflow.options.hidden";
|
|
498
|
-
}, {
|
|
499
|
-
readonly path: "editors.overflow.options.scroll";
|
|
500
|
-
}, {
|
|
501
|
-
readonly path: "editors.overflow.options.auto";
|
|
502
484
|
}, {
|
|
503
485
|
readonly path: "editors.textAlignment.options.left";
|
|
504
486
|
}, {
|
|
@@ -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;QAC3B,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;IAGF,QAAQ,EAA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AM,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM,CAKxF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC,CAgBjE;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,gFAAgF;IAChF,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2IgB,CAAC;AAgBjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAyBxD"}
|
|
@@ -19,16 +19,6 @@ export interface BoxSides {
|
|
|
19
19
|
bottom: string;
|
|
20
20
|
left: string;
|
|
21
21
|
}
|
|
22
|
-
export interface DimensionConfig {
|
|
23
|
-
units?: readonly UnitOption[];
|
|
24
|
-
defaultUnit?: string;
|
|
25
|
-
constraints?: UnitConstraints;
|
|
26
|
-
icon?: React.ComponentType<{
|
|
27
|
-
size?: number;
|
|
28
|
-
width?: number;
|
|
29
|
-
height?: number;
|
|
30
|
-
}>;
|
|
31
|
-
}
|
|
32
22
|
export interface BoxDimensionConfig {
|
|
33
23
|
units?: readonly UnitOption[];
|
|
34
24
|
/** Which localized per-cell label set the instance edits (sides vs corners). */
|
|
@@ -77,6 +67,24 @@ export declare function buildBoxShorthandCssValue({ top, right, bottom, left }:
|
|
|
77
67
|
* Handles 1–4 value shorthand syntax.
|
|
78
68
|
*/
|
|
79
69
|
export declare function parseBoxShorthandCssValue(shorthand: string | null | undefined): BoxSides;
|
|
80
|
-
|
|
70
|
+
/** A plain number with an optional lowercase unit suffix, e.g. "1.5", "12px", "50%". */
|
|
71
|
+
export declare const NUMBER_WITH_UNIT_PATTERN: RegExp;
|
|
72
|
+
/** True for a plain, finite decimal literal (no unit, exponent, or keyword). */
|
|
73
|
+
export declare function isNumeric(text: string): boolean;
|
|
74
|
+
export interface TypographyConfig {
|
|
75
|
+
/** The fixed unit values are authored in ("" = unitless multiplier). */
|
|
76
|
+
unit: "px" | "" | "em";
|
|
77
|
+
icon: React.ComponentType<{
|
|
78
|
+
size?: number;
|
|
79
|
+
width?: number;
|
|
80
|
+
height?: number;
|
|
81
|
+
}>;
|
|
82
|
+
/** Authoring bounds and precision, keyed by `unit`. */
|
|
83
|
+
constraints: UnitConstraints;
|
|
84
|
+
presets: readonly number[];
|
|
85
|
+
/** Offers a `normal` keyword action labeled by this dimension label key. */
|
|
86
|
+
normalLabelKey?: "useNormalLineHeight" | "useNormalSpacing";
|
|
87
|
+
}
|
|
88
|
+
export declare const TYPOGRAPHY_CONFIGS: Record<"fontSize" | "lineHeight" | "letterSpacing", TypographyConfig>;
|
|
81
89
|
export declare const BOX_DIMENSION_CONFIGS: Record<string, BoxDimensionConfig>;
|
|
82
90
|
//# sourceMappingURL=dimensionUtils.d.ts.map
|
|
@@ -19,16 +19,6 @@ export interface BoxSides {
|
|
|
19
19
|
bottom: string;
|
|
20
20
|
left: string;
|
|
21
21
|
}
|
|
22
|
-
export interface DimensionConfig {
|
|
23
|
-
units?: readonly UnitOption[];
|
|
24
|
-
defaultUnit?: string;
|
|
25
|
-
constraints?: UnitConstraints;
|
|
26
|
-
icon?: React.ComponentType<{
|
|
27
|
-
size?: number;
|
|
28
|
-
width?: number;
|
|
29
|
-
height?: number;
|
|
30
|
-
}>;
|
|
31
|
-
}
|
|
32
22
|
export interface BoxDimensionConfig {
|
|
33
23
|
units?: readonly UnitOption[];
|
|
34
24
|
/** Which localized per-cell label set the instance edits (sides vs corners). */
|
|
@@ -77,6 +67,24 @@ export declare function buildBoxShorthandCssValue({ top, right, bottom, left }:
|
|
|
77
67
|
* Handles 1–4 value shorthand syntax.
|
|
78
68
|
*/
|
|
79
69
|
export declare function parseBoxShorthandCssValue(shorthand: string | null | undefined): BoxSides;
|
|
80
|
-
|
|
70
|
+
/** A plain number with an optional lowercase unit suffix, e.g. "1.5", "12px", "50%". */
|
|
71
|
+
export declare const NUMBER_WITH_UNIT_PATTERN: RegExp;
|
|
72
|
+
/** True for a plain, finite decimal literal (no unit, exponent, or keyword). */
|
|
73
|
+
export declare function isNumeric(text: string): boolean;
|
|
74
|
+
export interface TypographyConfig {
|
|
75
|
+
/** The fixed unit values are authored in ("" = unitless multiplier). */
|
|
76
|
+
unit: "px" | "" | "em";
|
|
77
|
+
icon: React.ComponentType<{
|
|
78
|
+
size?: number;
|
|
79
|
+
width?: number;
|
|
80
|
+
height?: number;
|
|
81
|
+
}>;
|
|
82
|
+
/** Authoring bounds and precision, keyed by `unit`. */
|
|
83
|
+
constraints: UnitConstraints;
|
|
84
|
+
presets: readonly number[];
|
|
85
|
+
/** Offers a `normal` keyword action labeled by this dimension label key. */
|
|
86
|
+
normalLabelKey?: "useNormalLineHeight" | "useNormalSpacing";
|
|
87
|
+
}
|
|
88
|
+
export declare const TYPOGRAPHY_CONFIGS: Record<"fontSize" | "lineHeight" | "letterSpacing", TypographyConfig>;
|
|
81
89
|
export declare const BOX_DIMENSION_CONFIGS: Record<string, BoxDimensionConfig>;
|
|
82
90
|
//# sourceMappingURL=dimensionUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensionUtils.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/dimensionUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dimensionUtils.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/dimensionUtils.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC9B,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,QAAQ;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IAClC,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,gFAAgF;IAChF,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC;AAED,eAAO,MAAM,SAAS,EAAE,SAAS,UAAU,EAgBjC,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,eAgBtC,CAAC;AASF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,CAGpF;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACvC,WAAW,SAAO,EAClB,WAAW,GAAE,MAA6B,GACxC,cAAc,CAchB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CACjC,IAA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