@salesforce/ui-design-mode 12.16.0 → 12.18.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 (81) hide show
  1. package/dist/authoring/core/DesignPropertyPanelRoot.d.cts +2 -2
  2. package/dist/authoring/core/DesignPropertyPanelRoot.d.ts +2 -2
  3. package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -1
  4. package/dist/authoring/core/editors/BoxDimensionEditor.d.cts +20 -34
  5. package/dist/authoring/core/editors/BoxDimensionEditor.d.ts +20 -34
  6. package/dist/authoring/core/editors/BoxDimensionEditor.d.ts.map +1 -1
  7. package/dist/authoring/core/editors/DimensionEditor.d.ts.map +1 -1
  8. package/dist/authoring/core/editors/FieldNotice.d.cts +17 -0
  9. package/dist/authoring/core/editors/FieldNotice.d.ts +17 -0
  10. package/dist/authoring/core/editors/FieldNotice.d.ts.map +1 -0
  11. package/dist/authoring/core/editors/FontFamilyEditor.d.cts +4 -6
  12. package/dist/authoring/core/editors/FontFamilyEditor.d.ts +4 -6
  13. package/dist/authoring/core/editors/FontFamilyEditor.d.ts.map +1 -1
  14. package/dist/authoring/core/editors/FontWeightEditor.d.cts +6 -5
  15. package/dist/authoring/core/editors/FontWeightEditor.d.ts +6 -5
  16. package/dist/authoring/core/editors/FontWeightEditor.d.ts.map +1 -1
  17. package/dist/authoring/core/editors/ImageEditor.d.cts +21 -1
  18. package/dist/authoring/core/editors/ImageEditor.d.ts +21 -1
  19. package/dist/authoring/core/editors/ImageEditor.d.ts.map +1 -1
  20. package/dist/authoring/core/editors/PicklistEditor.d.cts +5 -21
  21. package/dist/authoring/core/editors/PicklistEditor.d.ts +5 -21
  22. package/dist/authoring/core/editors/PicklistEditor.d.ts.map +1 -1
  23. package/dist/authoring/core/history/changeSet.d.cts +28 -5
  24. package/dist/authoring/core/history/changeSet.d.ts +28 -5
  25. package/dist/authoring/core/history/changeSet.d.ts.map +1 -1
  26. package/dist/authoring/core/history/historyService.d.cts +1 -3
  27. package/dist/authoring/core/history/historyService.d.ts +1 -3
  28. package/dist/authoring/core/history/historyService.d.ts.map +1 -1
  29. package/dist/authoring/core/history/iframeCommandExecutor.d.cts +1 -1
  30. package/dist/authoring/core/history/iframeCommandExecutor.d.ts +1 -1
  31. package/dist/authoring/core/labels/labels.d.cts +57 -93
  32. package/dist/authoring/core/labels/labels.d.ts +57 -93
  33. package/dist/authoring/core/labels/labels.d.ts.map +1 -1
  34. package/dist/authoring/core/utils/colorOcclusion.d.cts +4 -20
  35. package/dist/authoring/core/utils/colorOcclusion.d.ts +4 -20
  36. package/dist/authoring/core/utils/colorOcclusion.d.ts.map +1 -1
  37. package/dist/authoring/core/utils/dimensionUtils.d.cts +0 -39
  38. package/dist/authoring/core/utils/dimensionUtils.d.ts +0 -39
  39. package/dist/authoring/core/utils/dimensionUtils.d.ts.map +1 -1
  40. package/dist/authoring/react/index.d.cts +1 -1
  41. package/dist/authoring/react/index.d.ts +1 -1
  42. package/dist/authoring/react/index.d.ts.map +1 -1
  43. package/dist/authoring/react/index.js +4 -4
  44. package/dist/authoring/react/styles.css +1 -1
  45. package/dist/authoring/web-component/index.d.cts +1 -1
  46. package/dist/authoring/web-component/index.d.ts +1 -1
  47. package/dist/authoring/web-component/index.d.ts.map +1 -1
  48. package/dist/authoring/web-component/index.js +157 -137
  49. package/dist/protocol/domAttributes.cjs +4 -0
  50. package/dist/protocol/domAttributes.d.cts +17 -0
  51. package/dist/protocol/domAttributes.d.ts +17 -0
  52. package/dist/protocol/domAttributes.d.ts.map +1 -1
  53. package/dist/protocol/domAttributes.js +4 -0
  54. package/dist/protocol/index.cjs +4 -0
  55. package/dist/protocol/index.js +6 -2
  56. package/dist/protocol/measuredStyleProperties.cjs +18 -0
  57. package/dist/protocol/measuredStyleProperties.d.cts +7 -0
  58. package/dist/protocol/measuredStyleProperties.d.ts +7 -0
  59. package/dist/protocol/measuredStyleProperties.d.ts.map +1 -1
  60. package/dist/protocol/measuredStyleProperties.js +18 -0
  61. package/dist/protocol/messageTypes.d.cts +22 -16
  62. package/dist/protocol/messageTypes.d.ts +22 -16
  63. package/dist/protocol/messageTypes.d.ts.map +1 -1
  64. package/dist/protocol/version.cjs +1 -1
  65. package/dist/protocol/version.js +1 -1
  66. package/dist/runtime/design-mode-interactions.js +142 -84
  67. package/dist/runtime/interactions/communicationManager.d.cts +2 -2
  68. package/dist/runtime/interactions/communicationManager.d.ts +2 -2
  69. package/dist/runtime/interactions/communicationManager.d.ts.map +1 -1
  70. package/dist/runtime/interactions/interactionsController.d.cts +2 -0
  71. package/dist/runtime/interactions/interactionsController.d.ts +2 -0
  72. package/dist/runtime/interactions/interactionsController.d.ts.map +1 -1
  73. package/dist/runtime/interactions/utils/cssUtils.d.cts +3 -7
  74. package/dist/runtime/interactions/utils/cssUtils.d.ts +3 -7
  75. package/dist/runtime/interactions/utils/cssUtils.d.ts.map +1 -1
  76. package/dist/runtime/interactions/utils/sourceUtils.d.cts +1 -1
  77. package/dist/runtime/interactions/utils/sourceUtils.d.ts +1 -1
  78. package/dist/source-locator/react/babel/reactDesignTimeLocatorBabelPlugin.cjs +33 -0
  79. package/dist/source-locator/react/babel/reactDesignTimeLocatorBabelPlugin.d.ts.map +1 -1
  80. package/dist/source-locator/react/babel/reactDesignTimeLocatorBabelPlugin.js +34 -1
  81. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { default as React } from 'react';
2
- import { ComponentData, ComponentStyleValue, SourceLocation } from '../../protocol.cjs';
2
+ import { ComponentData, ComponentStyleValue, SourceLocation } from '../../protocol/index.cjs';
3
3
  import { CmsSpace, CmsImage, CmsFolderItemsResult, CmsContentDetailResult, CmsThumbnailResult, ImageImportResult, LocalFilePreview } from './editors/ImageEditor.cjs';
4
4
  import { ChangeSetEntry } from './history/changeSet.cjs';
5
5
  import { ChangeContext } from './history/historyService.cjs';
6
6
  import { PanelLabels } from './labels/labels.cjs';
7
7
  export declare const IMAGE_SOURCE_EDITOR_LS_KEY = "designMode.imageSourceEditorEnabled";
8
8
  /** Selected-component subset the panel renders. Mirrors the protocol payload. */
9
- export type DesignPanelComponent = Pick<ComponentData, "name" | "tagName" | "debugSource" | "instanceIndex" | "hasNonEditableText" | "media">;
9
+ export type DesignPanelComponent = Pick<ComponentData, "name" | "tagName" | "debugSource" | "instanceIndex" | "instanceCount" | "hasNonEditableText" | "media">;
10
10
  /** Per-property inline + computed style values pushed from the host. */
11
11
  export type StylesEntryMap = Record<string, ComponentStyleValue>;
12
12
  /** The selected element's source context, sent to the host's AI chat as context info. */
@@ -1,12 +1,12 @@
1
1
  import { default as React } from 'react';
2
- import { ComponentData, ComponentStyleValue, SourceLocation } from '../../protocol.js';
2
+ import { ComponentData, ComponentStyleValue, SourceLocation } from '../../protocol/index.js';
3
3
  import { CmsSpace, CmsImage, CmsFolderItemsResult, CmsContentDetailResult, CmsThumbnailResult, ImageImportResult, LocalFilePreview } from './editors/ImageEditor.js';
4
4
  import { ChangeSetEntry } from './history/changeSet.js';
5
5
  import { ChangeContext } from './history/historyService.js';
6
6
  import { PanelLabels } from './labels/labels.js';
7
7
  export declare const IMAGE_SOURCE_EDITOR_LS_KEY = "designMode.imageSourceEditorEnabled";
8
8
  /** Selected-component subset the panel renders. Mirrors the protocol payload. */
9
- export type DesignPanelComponent = Pick<ComponentData, "name" | "tagName" | "debugSource" | "instanceIndex" | "hasNonEditableText" | "media">;
9
+ export type DesignPanelComponent = Pick<ComponentData, "name" | "tagName" | "debugSource" | "instanceIndex" | "instanceCount" | "hasNonEditableText" | "media">;
10
10
  /** Per-property inline + computed style values pushed from the host. */
11
11
  export type StylesEntryMap = Record<string, ComponentStyleValue>;
12
12
  /** The selected element's source context, sent to the host's AI chat as context info. */
@@ -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,O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AAC,GAAG,CAAC,yBAAyB,CAAC,QAK1C"}
1
+ {"version":3,"file":"DesignPropertyPanelRoot.d.ts","sourceRoot":"","sources":["../../../src/authoring/core/DesignPropertyPanelRoot.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAEX,aAAa,EACb,mBAAmB,EAEnB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAEN,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAEtB,KAAK,gBAAgB,EACrB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAoB,KAAK,cAAc,EAA0B,MAAM,qBAAqB,CAAC;AAEpG,OAAO,EAEN,KAAK,aAAa,EAElB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA6HlE,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAoEhF,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACtC,aAAa,EACX,MAAM,GACN,SAAS,GACT,aAAa,GACb,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,OAAO,CACT,CAAC;AAEF,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEjE,yFAAyF;AACzF,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC;AAErD,mFAAmF;AACnF,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,qFAAqF;AACrF,MAAM,WAAW,wBAAwB;IACxC,4DAA4D;IAC5D,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACvC,iEAAiE;IACjE,MAA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OAAO,CAAC;CACnB;AA4pBD,eAAO,MAAM,mBAAmB,4GA8pB9B,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,45 +1,31 @@
1
- import { default as React } from 'react';
2
1
  import { PanelLabels } from '../labels/labels.cjs';
3
- import { UnitOption, UnitConstraints } from '../utils/dimensionUtils.cjs';
2
+ import { BoxSides } from '../utils/dimensionUtils.cjs';
4
3
  type BoxDimensionLabels = PanelLabels["editors"]["boxDimension"];
5
- /** Which per-cell label set an instance edits: four box sides or four corners. */
4
+ type Side = keyof BoxSides;
6
5
  export type SideLabelKind = "sides" | "corners";
6
+ export declare function parseSides(value: string): BoxSides;
7
7
  export interface BoxDimensionEditorProps {
8
- /** Editor label displayed above the inputs */
9
8
  label: string;
10
- /** CSS shorthand value (e.g. "10px 20px 10px 20px") */
11
- value?: string;
12
- /** Callback invoked when value changes */
13
- onChange: (value: string) => void;
14
- /** DOM id for the editor */
9
+ /** Computed shorthand, including percentage/elliptical radii. Empty means measurements are unresolved. */
10
+ displayValue: string;
11
+ /** Independent computed longhands. Missing/unresolved sides stay blank; takes precedence over displayValue. */
12
+ displaySides?: Partial<Record<Side, string>>;
13
+ /** Changes identity when the host pushes a fresh measurement. */
14
+ measurement?: object;
15
+ /** Bumped to discard local drafts and reconcile, including unchanged measurements. */
16
+ resetVersion?: number;
17
+ /** Padding/margin use compact vertical/horizontal pairs when measured pairs match. */
18
+ paired?: boolean;
19
+ /** Collapse equal values to one input that edits all four corners. */
20
+ uniform?: boolean;
21
+ /** Only the intended side or pair, in pixels. Return false to retain a blocked draft. */
22
+ onSidesChange: (sides: Partial<Record<Side, string>>) => boolean | void;
15
23
  id?: string;
16
- /** Available unit options (defaults to px, em, rem, %) */
17
- units?: readonly UnitOption[];
18
- /** Min/max/step constraints per unit */
19
- constraints?: UnitConstraints;
20
- /** Whether to allow "auto" value */
21
- allowAuto?: boolean;
22
- /**
23
- * Which per-cell label set this instance edits — box `sides` (default) or
24
- * `corners` (border-radius). Selects between the localized `aria.sides` and
25
- * `aria.corners` slices; both are localized, so neither path hardcodes English.
26
- */
24
+ /** Permits negative numbers (margin). */
25
+ allowNegative?: boolean;
27
26
  sideLabelKind?: SideLabelKind;
28
- /** Optional icon components for each side */
29
- sideIcons?: (React.ComponentType<{
30
- size?: number;
31
- width?: number;
32
- height?: number;
33
- }> | null | undefined)[];
34
- /** Placeholder value for empty inputs */
35
- placeholder?: string;
36
- /** Localized side labels + link aria + composed-aria templates; omit for English. */
37
27
  aria?: BoxDimensionLabels;
38
28
  }
39
- /**
40
- * Box-model dimension editor (4-sided) with shared unit selector and
41
- * a link toggle to lock all four sides to the same value.
42
- */
43
- export declare function BoxDimensionEditor({ label, value, onChange, id, units, constraints, allowAuto, sideLabelKind, sideIcons, placeholder, aria: ariaProp, }: BoxDimensionEditorProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function BoxDimensionEditor({ label, displayValue, displaySides, measurement, resetVersion, paired, uniform, onSidesChange, id: idProp, allowNegative, sideLabelKind, aria: ariaProp, }: BoxDimensionEditorProps): import("react/jsx-runtime").JSX.Element;
44
30
  export {};
45
31
  //# sourceMappingURL=BoxDimensionEditor.d.ts.map
@@ -1,45 +1,31 @@
1
- import { default as React } from 'react';
2
1
  import { PanelLabels } from '../labels/labels.js';
3
- import { UnitOption, UnitConstraints } from '../utils/dimensionUtils.js';
2
+ import { BoxSides } from '../utils/dimensionUtils.js';
4
3
  type BoxDimensionLabels = PanelLabels["editors"]["boxDimension"];
5
- /** Which per-cell label set an instance edits: four box sides or four corners. */
4
+ type Side = keyof BoxSides;
6
5
  export type SideLabelKind = "sides" | "corners";
6
+ export declare function parseSides(value: string): BoxSides;
7
7
  export interface BoxDimensionEditorProps {
8
- /** Editor label displayed above the inputs */
9
8
  label: string;
10
- /** CSS shorthand value (e.g. "10px 20px 10px 20px") */
11
- value?: string;
12
- /** Callback invoked when value changes */
13
- onChange: (value: string) => void;
14
- /** DOM id for the editor */
9
+ /** Computed shorthand, including percentage/elliptical radii. Empty means measurements are unresolved. */
10
+ displayValue: string;
11
+ /** Independent computed longhands. Missing/unresolved sides stay blank; takes precedence over displayValue. */
12
+ displaySides?: Partial<Record<Side, string>>;
13
+ /** Changes identity when the host pushes a fresh measurement. */
14
+ measurement?: object;
15
+ /** Bumped to discard local drafts and reconcile, including unchanged measurements. */
16
+ resetVersion?: number;
17
+ /** Padding/margin use compact vertical/horizontal pairs when measured pairs match. */
18
+ paired?: boolean;
19
+ /** Collapse equal values to one input that edits all four corners. */
20
+ uniform?: boolean;
21
+ /** Only the intended side or pair, in pixels. Return false to retain a blocked draft. */
22
+ onSidesChange: (sides: Partial<Record<Side, string>>) => boolean | void;
15
23
  id?: string;
16
- /** Available unit options (defaults to px, em, rem, %) */
17
- units?: readonly UnitOption[];
18
- /** Min/max/step constraints per unit */
19
- constraints?: UnitConstraints;
20
- /** Whether to allow "auto" value */
21
- allowAuto?: boolean;
22
- /**
23
- * Which per-cell label set this instance edits — box `sides` (default) or
24
- * `corners` (border-radius). Selects between the localized `aria.sides` and
25
- * `aria.corners` slices; both are localized, so neither path hardcodes English.
26
- */
24
+ /** Permits negative numbers (margin). */
25
+ allowNegative?: boolean;
27
26
  sideLabelKind?: SideLabelKind;
28
- /** Optional icon components for each side */
29
- sideIcons?: (React.ComponentType<{
30
- size?: number;
31
- width?: number;
32
- height?: number;
33
- }> | null | undefined)[];
34
- /** Placeholder value for empty inputs */
35
- placeholder?: string;
36
- /** Localized side labels + link aria + composed-aria templates; omit for English. */
37
27
  aria?: BoxDimensionLabels;
38
28
  }
39
- /**
40
- * Box-model dimension editor (4-sided) with shared unit selector and
41
- * a link toggle to lock all four sides to the same value.
42
- */
43
- export declare function BoxDimensionEditor({ label, value, onChange, id, units, constraints, allowAuto, sideLabelKind, sideIcons, placeholder, aria: ariaProp, }: BoxDimensionEditorProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function BoxDimensionEditor({ label, displayValue, displaySides, measurement, resetVersion, paired, uniform, onSidesChange, id: idProp, allowNegative, sideLabelKind, aria: ariaProp, }: BoxDimensionEditorProps): import("react/jsx-runtime").JSX.Element;
44
30
  export {};
45
31
  //# sourceMappingURL=BoxDimensionEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoxDimensionEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/BoxDimensionEditor.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,EASpB,MAAM,yBAAyB,CAAC;AAEjC,KAAK,kBAAkB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC;AA0BjE,kFAAkF;AAClF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC;AA6EhD,MAAM,WAAW,uBAAuB;IACvC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,wCAAwC;IACxC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,CACX,KAAK,CAAC,aAAa,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YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sFAAsF;IACtF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yFAAyF;IACzF,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,KAAK,OAAO,GAAG,IAAI,CAAC;IACxE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC1B;AAOD,wBAAgB,kBAAkB,CAAC,EAClC,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,MAAc,EACd,OAAe,EACf,aAAa,EACb,EAAE,EAAE,MAAM,EACV,aAAqB,EACrB,aAAuB,EACvB,IAAI,EAAE,QAAQ,GACd,EAAE,uBAAuB,2CAsSzB"}
@@ -1 +1 @@
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"}
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;AAsB/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,2CA0StB"}
@@ -0,0 +1,17 @@
1
+ export interface FieldNoticeProps {
2
+ /** Id the field references with `aria-describedby`. */
3
+ id: string;
4
+ /** Extra class(es), for the caller's layout or test hooks. */
5
+ className?: string;
6
+ /** The message: one short sentence. */
7
+ text: string;
8
+ }
9
+ /**
10
+ * A yellow warning strip shown with a field: why it can't be edited, or what editing it
11
+ * will affect. Any editor can use it; the field points at it with `aria-describedby`.
12
+ *
13
+ * It is static text, not an alert, so screen readers read it when the field is focused
14
+ * rather than interrupting on every selection. The caller owns placement (margins).
15
+ */
16
+ export declare function FieldNotice({ id, className, text }: FieldNoticeProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=FieldNotice.d.ts.map
@@ -0,0 +1,17 @@
1
+ export interface FieldNoticeProps {
2
+ /** Id the field references with `aria-describedby`. */
3
+ id: string;
4
+ /** Extra class(es), for the caller's layout or test hooks. */
5
+ className?: string;
6
+ /** The message: one short sentence. */
7
+ text: string;
8
+ }
9
+ /**
10
+ * A yellow warning strip shown with a field: why it can't be edited, or what editing it
11
+ * will affect. Any editor can use it; the field points at it with `aria-describedby`.
12
+ *
13
+ * It is static text, not an alert, so screen readers read it when the field is focused
14
+ * rather than interrupting on every selection. The caller owns placement (margins).
15
+ */
16
+ export declare function FieldNotice({ id, className, text }: FieldNoticeProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=FieldNotice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldNotice.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/FieldNotice.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,gBAAgB;IAChC,uDAAuD;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CASpE"}
@@ -1,6 +1,5 @@
1
1
  import { PicklistOption } from './PicklistEditor.cjs';
2
- import { PanelLabels } from '../labels/labels.cjs';
3
- type PicklistAriaLabels = PanelLabels["editors"]["picklist"];
2
+ export declare function isDefaultFontFamily(fontFamily: string | undefined): boolean;
4
3
  export interface FontFamilyEditorProps {
5
4
  label?: string;
6
5
  /** The explicit inline override (element.style), or "" when unset. */
@@ -11,9 +10,8 @@ export interface FontFamilyEditorProps {
11
10
  onChange: (value: string) => void;
12
11
  matchOption?: (fontFamily: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
13
12
  id?: string;
14
- /** Localized picklist aria (reset control); omit for the English default. */
15
- aria?: PicklistAriaLabels;
13
+ /** Localized editors.dimension.useInherit; omit for the English default. */
14
+ useInheritLabel?: string;
16
15
  }
17
- export declare function FontFamilyEditor({ label, value, computedValue, options, onChange, matchOption, id, aria, }: FontFamilyEditorProps): import("react/jsx-runtime").JSX.Element;
18
- export {};
16
+ export declare function FontFamilyEditor({ label, value, computedValue, options, onChange, matchOption, id, useInheritLabel, }: FontFamilyEditorProps): import("react/jsx-runtime").JSX.Element;
19
17
  //# sourceMappingURL=FontFamilyEditor.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { PicklistOption } from './PicklistEditor.js';
2
- import { PanelLabels } from '../labels/labels.js';
3
- type PicklistAriaLabels = PanelLabels["editors"]["picklist"];
2
+ export declare function isDefaultFontFamily(fontFamily: string | undefined): boolean;
4
3
  export interface FontFamilyEditorProps {
5
4
  label?: string;
6
5
  /** The explicit inline override (element.style), or "" when unset. */
@@ -11,9 +10,8 @@ export interface FontFamilyEditorProps {
11
10
  onChange: (value: string) => void;
12
11
  matchOption?: (fontFamily: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
13
12
  id?: string;
14
- /** Localized picklist aria (reset control); omit for the English default. */
15
- aria?: PicklistAriaLabels;
13
+ /** Localized editors.dimension.useInherit; omit for the English default. */
14
+ useInheritLabel?: string;
16
15
  }
17
- export declare function FontFamilyEditor({ label, value, computedValue, options, onChange, matchOption, id, aria, }: FontFamilyEditorProps): import("react/jsx-runtime").JSX.Element;
18
- export {};
16
+ export declare function FontFamilyEditor({ label, value, computedValue, options, onChange, matchOption, id, useInheritLabel, }: FontFamilyEditorProps): import("react/jsx-runtime").JSX.Element;
19
17
  //# sourceMappingURL=FontFamilyEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FontFamilyEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/FontFamilyEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,kBAAkB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;AA2C7D,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CACb,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACrC,OAAO,EAAE,cAAc,EAAE,KACrB,cAAc,GAAG,IAAI,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6EAA6E;IAC7E,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC1B;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAqB,EACrB,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,WAAmC,EACnC,EAAkB,EAClB,IAAI,GACJ,EAAE,qBAAqB,2CAuCvB"}
1
+ {"version":3,"file":"FontFamilyEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/FontFamilyEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiCvE,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE3E;AAKD,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CACb,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACrC,OAAO,EAAE,cAAc,EAAE,KACrB,cAAc,GAAG,IAAI,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4EAA4E;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAqB,EACrB,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,WAAmC,EACnC,EAAkB,EAClB,eAA6B,GAC7B,EAAE,qBAAqB,2CAoCvB"}
@@ -1,22 +1,23 @@
1
1
  import { PicklistOption } from './PicklistEditor.cjs';
2
2
  import { PanelLabels } from '../labels/labels.cjs';
3
3
  type FontWeightOptionLabels = PanelLabels["editors"]["fontWeight"]["options"];
4
- type PicklistAriaLabels = PanelLabels["editors"]["picklist"];
5
4
  export interface FontWeightEditorProps {
6
5
  label?: string;
7
6
  /** The explicit inline override (element.style), or "" when unset. */
8
7
  value?: string;
9
8
  /** The effective computed weight (after cascade/inheritance). */
10
9
  computedValue?: string;
10
+ /** Effective family; built-in system choices offer only curated regular/bold weights. */
11
+ fontFamily?: string;
11
12
  options?: PicklistOption[];
12
13
  onChange: (value: string) => void;
13
14
  matchOption?: (weight: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
14
15
  id?: string;
15
- /** Localized weight words (numbers are appended by the editor); omit for English. */
16
+ /** Localized editors.dimension.useInherit; omit for the English default. */
17
+ useInheritLabel?: string;
18
+ /** Localized weight words; omit for English. */
16
19
  optionLabels?: FontWeightOptionLabels;
17
- /** Localized picklist aria (reset control); omit for the English default. */
18
- aria?: PicklistAriaLabels;
19
20
  }
20
- export declare function FontWeightEditor({ label, value, computedValue, options, onChange, matchOption, id, optionLabels, aria, }: FontWeightEditorProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function FontWeightEditor({ label, value, computedValue, fontFamily, options, onChange, matchOption, id, useInheritLabel, optionLabels, }: FontWeightEditorProps): import("react/jsx-runtime").JSX.Element;
21
22
  export {};
22
23
  //# sourceMappingURL=FontWeightEditor.d.ts.map
@@ -1,22 +1,23 @@
1
1
  import { PicklistOption } from './PicklistEditor.js';
2
2
  import { PanelLabels } from '../labels/labels.js';
3
3
  type FontWeightOptionLabels = PanelLabels["editors"]["fontWeight"]["options"];
4
- type PicklistAriaLabels = PanelLabels["editors"]["picklist"];
5
4
  export interface FontWeightEditorProps {
6
5
  label?: string;
7
6
  /** The explicit inline override (element.style), or "" when unset. */
8
7
  value?: string;
9
8
  /** The effective computed weight (after cascade/inheritance). */
10
9
  computedValue?: string;
10
+ /** Effective family; built-in system choices offer only curated regular/bold weights. */
11
+ fontFamily?: string;
11
12
  options?: PicklistOption[];
12
13
  onChange: (value: string) => void;
13
14
  matchOption?: (weight: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
14
15
  id?: string;
15
- /** Localized weight words (numbers are appended by the editor); omit for English. */
16
+ /** Localized editors.dimension.useInherit; omit for the English default. */
17
+ useInheritLabel?: string;
18
+ /** Localized weight words; omit for English. */
16
19
  optionLabels?: FontWeightOptionLabels;
17
- /** Localized picklist aria (reset control); omit for the English default. */
18
- aria?: PicklistAriaLabels;
19
20
  }
20
- export declare function FontWeightEditor({ label, value, computedValue, options, onChange, matchOption, id, optionLabels, aria, }: FontWeightEditorProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function FontWeightEditor({ label, value, computedValue, fontFamily, options, onChange, matchOption, id, useInheritLabel, optionLabels, }: FontWeightEditorProps): import("react/jsx-runtime").JSX.Element;
21
22
  export {};
22
23
  //# sourceMappingURL=FontWeightEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FontWeightEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/FontWeightEditor.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,sBAAsB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;AAC9E,KAAK,kBAAkB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;AAsC7D,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,EAAE,cAAc,EAAE,KACrB,cAAc,GAAG,IAAI,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qFAAqF;IACrF,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,6EAA6E;IAC7E,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC1B;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAqB,EACrB,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,WAA+B,EAC/B,EAAkB,EAClB,YAAY,EACZ,IAAI,GACJ,EAAE,qBAAqB,2CAyBvB"}
1
+ {"version":3,"file":"FontWeightEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/FontWeightEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,sBAAsB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;AAoC9E,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,EAAE,cAAc,EAAE,KACrB,cAAc,GAAG,IAAI,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4EAA4E;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAqB,EACrB,KAAK,EACL,aAAa,EACb,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAA+B,EAC/B,EAAkB,EAClB,eAA6B,EAC7B,YAAY,GACZ,EAAE,qBAAqB,2CAyBvB"}
@@ -24,6 +24,12 @@ export interface CmsImage {
24
24
  export interface ImageAttributes {
25
25
  alt: string;
26
26
  }
27
+ /**
28
+ * Why an image attribute can't be edited: `from-data` when source binds it to
29
+ * data (props, state, fetched records, `.map()` items), `not-editable` when its
30
+ * source kind is unknown to the panel.
31
+ */
32
+ export type ImageReadOnlyReason = "from-data" | "not-editable";
27
33
  /**
28
34
  * A page of CMS folder items pushed from the host in response to
29
35
  * {@link ImageEditorProps.onFetchCmsFolderItems}. The picker replaces its grid
@@ -68,6 +74,19 @@ export interface ImageEditorProps {
68
74
  attributes?: ImageAttributes;
69
75
  /** Apply a non-`src` attribute change (alt). */
70
76
  onAttributeChange?: (attribute: keyof ImageAttributes, value: string) => void;
77
+ /**
78
+ * Why `src` can't be edited. When set, the editor shows the current image and
79
+ * the reason in place of the clear button and the source tabs.
80
+ */
81
+ sourceReadOnly?: ImageReadOnlyReason;
82
+ /** Why `alt` can't be edited. When set, the alt field is disabled and shows the reason. */
83
+ altReadOnly?: ImageReadOnlyReason;
84
+ /**
85
+ * How many elements on the page render from this image's source location. Above
86
+ * 1, each editable field notes that a change applies to all of them, since the
87
+ * edit rewrites the one source they share (e.g. a literal inside a `.map()`).
88
+ */
89
+ sharedCount?: number;
71
90
  /** Available CMS workspaces, pushed from the host after {@link onFetchCmsSpaces}. */
72
91
  cmsSpaces?: CmsSpace[];
73
92
  /** Whether a workspace fetch is in flight. */
@@ -106,7 +125,8 @@ export interface ImageEditorProps {
106
125
  * direct URL, plus edit alt. All host I/O (CMS fetches, local file
107
126
  * picking, importing) is supplied via optional callback + data props so the
108
127
  * shared panel stays host-agnostic; absent callbacks make that action inert.
128
+ * A `src` or `alt` the host marks read-only stays visible but can't be changed.
109
129
  */
110
- export declare function ImageEditor({ label, value, onChange, id, attributes, onAttributeChange, cmsSpaces, cmsSpacesLoading, onFetchCmsSpaces, cmsFolderItemsResult, onFetchCmsFolderItems, cmsContentDetail, onFetchCmsContentDetail, cmsThumbnailResult, onFetchCmsThumbnail, onImportCmsImage, cmsImportResult, onPickLocalFile, localPreview, imageLabels, }: ImageEditorProps): import("react/jsx-runtime").JSX.Element;
130
+ export declare function ImageEditor({ label, value, onChange, id, attributes, onAttributeChange, sourceReadOnly, altReadOnly, sharedCount, cmsSpaces, cmsSpacesLoading, onFetchCmsSpaces, cmsFolderItemsResult, onFetchCmsFolderItems, cmsContentDetail, onFetchCmsContentDetail, cmsThumbnailResult, onFetchCmsThumbnail, onImportCmsImage, cmsImportResult, onPickLocalFile, localPreview, imageLabels, }: ImageEditorProps): import("react/jsx-runtime").JSX.Element;
111
131
  export {};
112
132
  //# sourceMappingURL=ImageEditor.d.ts.map
@@ -24,6 +24,12 @@ export interface CmsImage {
24
24
  export interface ImageAttributes {
25
25
  alt: string;
26
26
  }
27
+ /**
28
+ * Why an image attribute can't be edited: `from-data` when source binds it to
29
+ * data (props, state, fetched records, `.map()` items), `not-editable` when its
30
+ * source kind is unknown to the panel.
31
+ */
32
+ export type ImageReadOnlyReason = "from-data" | "not-editable";
27
33
  /**
28
34
  * A page of CMS folder items pushed from the host in response to
29
35
  * {@link ImageEditorProps.onFetchCmsFolderItems}. The picker replaces its grid
@@ -68,6 +74,19 @@ export interface ImageEditorProps {
68
74
  attributes?: ImageAttributes;
69
75
  /** Apply a non-`src` attribute change (alt). */
70
76
  onAttributeChange?: (attribute: keyof ImageAttributes, value: string) => void;
77
+ /**
78
+ * Why `src` can't be edited. When set, the editor shows the current image and
79
+ * the reason in place of the clear button and the source tabs.
80
+ */
81
+ sourceReadOnly?: ImageReadOnlyReason;
82
+ /** Why `alt` can't be edited. When set, the alt field is disabled and shows the reason. */
83
+ altReadOnly?: ImageReadOnlyReason;
84
+ /**
85
+ * How many elements on the page render from this image's source location. Above
86
+ * 1, each editable field notes that a change applies to all of them, since the
87
+ * edit rewrites the one source they share (e.g. a literal inside a `.map()`).
88
+ */
89
+ sharedCount?: number;
71
90
  /** Available CMS workspaces, pushed from the host after {@link onFetchCmsSpaces}. */
72
91
  cmsSpaces?: CmsSpace[];
73
92
  /** Whether a workspace fetch is in flight. */
@@ -106,7 +125,8 @@ export interface ImageEditorProps {
106
125
  * direct URL, plus edit alt. All host I/O (CMS fetches, local file
107
126
  * picking, importing) is supplied via optional callback + data props so the
108
127
  * shared panel stays host-agnostic; absent callbacks make that action inert.
128
+ * A `src` or `alt` the host marks read-only stays visible but can't be changed.
109
129
  */
110
- export declare function ImageEditor({ label, value, onChange, id, attributes, onAttributeChange, cmsSpaces, cmsSpacesLoading, onFetchCmsSpaces, cmsFolderItemsResult, onFetchCmsFolderItems, cmsContentDetail, onFetchCmsContentDetail, cmsThumbnailResult, onFetchCmsThumbnail, onImportCmsImage, cmsImportResult, onPickLocalFile, localPreview, imageLabels, }: ImageEditorProps): import("react/jsx-runtime").JSX.Element;
130
+ export declare function ImageEditor({ label, value, onChange, id, attributes, onAttributeChange, sourceReadOnly, altReadOnly, sharedCount, cmsSpaces, cmsSpacesLoading, onFetchCmsSpaces, cmsFolderItemsResult, onFetchCmsFolderItems, cmsContentDetail, onFetchCmsContentDetail, cmsThumbnailResult, onFetchCmsThumbnail, onImportCmsImage, cmsImportResult, onPickLocalFile, localPreview, imageLabels, }: ImageEditorProps): import("react/jsx-runtime").JSX.Element;
111
131
  export {};
112
132
  //# sourceMappingURL=ImageEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/ImageEditor.tsx"],"names":[],"mappings":"AASA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA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AAgB,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC3C,+DAA+D;IAC/D,eAAe,CAAC,EAAE,iBAAiB,CAAC;IAGpC,uFAAuF;IACvF,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;;;OAIG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAEhC,qFAAqF;IACrF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC1B;AA2gBD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,EAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,WAAW,GACX,EAAE,gBAAgB,2CA+PlB"}
1
+ {"version":3,"file":"ImageEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/ImageEditor.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhF,0FAA0F;AAC1F,KAAK,WAAW,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;AAwCnD,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE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;IAEhC,qFAAqF;IACrF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC1B;AAyhBD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,EAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,WAAW,GACX,EAAE,gBAAgB,2CA8TlB"}
@@ -1,6 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { PanelLabels } from '../labels/labels.cjs';
3
- type PicklistAriaLabels = PanelLabels["editors"]["picklist"];
4
2
  export interface PicklistOption {
5
3
  value: string;
6
4
  label: string;
@@ -8,18 +6,16 @@ export interface PicklistOption {
8
6
  export interface PicklistEditorProps {
9
7
  /** Editor label displayed above the control */
10
8
  label: string;
11
- /**
12
- * Available options. Any entry with an empty `value` is treated as the
13
- * clear-override sentinel: it is NOT rendered as a row — instead a reset
14
- * affordance is shown next to the trigger while an override is active.
15
- */
9
+ /** Available options, rendered in order. */
16
10
  options: PicklistOption[];
11
+ /** Insert a decorative divider after this value, outside Downshift's items. */
12
+ dividerAfterValue?: string;
17
13
  /**
18
14
  * The element's explicit override, or `null` when the value is inherited /
19
15
  * not overridden (then no row is checked). Decoupled from the trigger text.
20
16
  */
21
17
  selectedItem: PicklistOption | null;
22
- /** Callback invoked when a value is picked. Called with "" for reset. */
18
+ /** Callback invoked when a value is picked. */
23
19
  onChange: (value: string) => void;
24
20
  /** DOM id for the editor (defaults to 'picklist') */
25
21
  id?: string;
@@ -31,23 +27,11 @@ export interface PicklistEditorProps {
31
27
  * checked in the dropdown — the two are decoupled on purpose.
32
28
  */
33
29
  triggerLabel?: string;
34
- /**
35
- * Render the trigger label muted, signalling the shown value is inherited /
36
- * effective rather than an explicit override on this element.
37
- */
38
- triggerMuted?: boolean;
39
30
  /** Optional style applied to the trigger button (e.g. font-family preview). */
40
31
  triggerStyle?: React.CSSProperties;
41
- /**
42
- * Localized picklist aria strings (just the reset control's label). Omit for the
43
- * English defaults; a partial slice is deep-merged over them. Matches the
44
- * `aria`-slice pattern used by ColorEditor / DimensionEditor.
45
- */
46
- aria?: PicklistAriaLabels;
47
32
  }
48
33
  /**
49
34
  * Picklist dropdown editor with styling options.
50
35
  */
51
- export declare function PicklistEditor({ label, options, selectedItem, onChange, id, getOptionStyle, triggerLabel, triggerMuted, triggerStyle, aria: ariaProp, }: PicklistEditorProps): import("react/jsx-runtime").JSX.Element;
52
- export {};
36
+ export declare function PicklistEditor({ label, options, dividerAfterValue, selectedItem, onChange, id, getOptionStyle, triggerLabel, triggerStyle, }: PicklistEditorProps): import("react/jsx-runtime").JSX.Element;
53
37
  //# sourceMappingURL=PicklistEditor.d.ts.map
@@ -1,6 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { PanelLabels } from '../labels/labels.js';
3
- type PicklistAriaLabels = PanelLabels["editors"]["picklist"];
4
2
  export interface PicklistOption {
5
3
  value: string;
6
4
  label: string;
@@ -8,18 +6,16 @@ export interface PicklistOption {
8
6
  export interface PicklistEditorProps {
9
7
  /** Editor label displayed above the control */
10
8
  label: string;
11
- /**
12
- * Available options. Any entry with an empty `value` is treated as the
13
- * clear-override sentinel: it is NOT rendered as a row — instead a reset
14
- * affordance is shown next to the trigger while an override is active.
15
- */
9
+ /** Available options, rendered in order. */
16
10
  options: PicklistOption[];
11
+ /** Insert a decorative divider after this value, outside Downshift's items. */
12
+ dividerAfterValue?: string;
17
13
  /**
18
14
  * The element's explicit override, or `null` when the value is inherited /
19
15
  * not overridden (then no row is checked). Decoupled from the trigger text.
20
16
  */
21
17
  selectedItem: PicklistOption | null;
22
- /** Callback invoked when a value is picked. Called with "" for reset. */
18
+ /** Callback invoked when a value is picked. */
23
19
  onChange: (value: string) => void;
24
20
  /** DOM id for the editor (defaults to 'picklist') */
25
21
  id?: string;
@@ -31,23 +27,11 @@ export interface PicklistEditorProps {
31
27
  * checked in the dropdown — the two are decoupled on purpose.
32
28
  */
33
29
  triggerLabel?: string;
34
- /**
35
- * Render the trigger label muted, signalling the shown value is inherited /
36
- * effective rather than an explicit override on this element.
37
- */
38
- triggerMuted?: boolean;
39
30
  /** Optional style applied to the trigger button (e.g. font-family preview). */
40
31
  triggerStyle?: React.CSSProperties;
41
- /**
42
- * Localized picklist aria strings (just the reset control's label). Omit for the
43
- * English defaults; a partial slice is deep-merged over them. Matches the
44
- * `aria`-slice pattern used by ColorEditor / DimensionEditor.
45
- */
46
- aria?: PicklistAriaLabels;
47
32
  }
48
33
  /**
49
34
  * Picklist dropdown editor with styling options.
50
35
  */
51
- export declare function PicklistEditor({ label, options, selectedItem, onChange, id, getOptionStyle, triggerLabel, triggerMuted, triggerStyle, aria: ariaProp, }: PicklistEditorProps): import("react/jsx-runtime").JSX.Element;
52
- export {};
36
+ export declare function PicklistEditor({ label, options, dividerAfterValue, selectedItem, onChange, id, getOptionStyle, triggerLabel, triggerStyle, }: PicklistEditorProps): import("react/jsx-runtime").JSX.Element;
53
37
  //# sourceMappingURL=PicklistEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PicklistEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/PicklistEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAShF,KAAK,kBAAkB,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;AAQ7D,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAyBD,MAAM,WAAW,mBAAmB;IACnC,+CAA+C;IAC/C,KAAK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