@salesforce/ui-design-mode 10.2.2 → 10.3.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.cts +52 -0
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts +52 -0
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -0
- package/dist/authoring/core/DesignPropertyPanelSection.d.cts +8 -0
- package/dist/authoring/core/DesignPropertyPanelSection.d.ts +8 -0
- package/dist/authoring/core/DesignPropertyPanelSection.d.ts.map +1 -0
- package/dist/authoring/core/editors/BaseEditorContainer.d.cts +16 -0
- package/dist/authoring/core/editors/BaseEditorContainer.d.ts +16 -0
- package/dist/authoring/core/editors/BaseEditorContainer.d.ts.map +1 -0
- package/dist/authoring/core/editors/BorderStyleEditor.d.cts +8 -0
- package/dist/authoring/core/editors/BorderStyleEditor.d.ts +8 -0
- package/dist/authoring/core/editors/BorderStyleEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/BoxDimensionEditor.d.cts +34 -0
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts +34 -0
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/ColorEditor.d.cts +15 -0
- package/dist/authoring/core/editors/ColorEditor.d.ts +15 -0
- package/dist/authoring/core/editors/ColorEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/DimensionEditor.d.cts +31 -0
- package/dist/authoring/core/editors/DimensionEditor.d.ts +31 -0
- package/dist/authoring/core/editors/DimensionEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.cts +11 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts +11 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontStyleEditor.d.cts +8 -0
- package/dist/authoring/core/editors/FontStyleEditor.d.ts +8 -0
- package/dist/authoring/core/editors/FontStyleEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontWeightEditor.d.cts +11 -0
- package/dist/authoring/core/editors/FontWeightEditor.d.ts +11 -0
- package/dist/authoring/core/editors/FontWeightEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/OverflowEditor.d.cts +8 -0
- package/dist/authoring/core/editors/OverflowEditor.d.ts +8 -0
- package/dist/authoring/core/editors/OverflowEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/PicklistEditor.d.cts +26 -0
- package/dist/authoring/core/editors/PicklistEditor.d.ts +26 -0
- package/dist/authoring/core/editors/PicklistEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/RadioGroupEditor.d.cts +26 -0
- package/dist/authoring/core/editors/RadioGroupEditor.d.ts +26 -0
- package/dist/authoring/core/editors/RadioGroupEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/TextAlignmentEditor.d.cts +8 -0
- package/dist/authoring/core/editors/TextAlignmentEditor.d.ts +8 -0
- package/dist/authoring/core/editors/TextAlignmentEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/TextDecorationEditor.d.cts +8 -0
- package/dist/authoring/core/editors/TextDecorationEditor.d.ts +8 -0
- package/dist/authoring/core/editors/TextDecorationEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/TextTransformEditor.d.cts +8 -0
- package/dist/authoring/core/editors/TextTransformEditor.d.ts +8 -0
- package/dist/authoring/core/editors/TextTransformEditor.d.ts.map +1 -0
- package/dist/authoring/core/history/commandExecutor.d.cts +29 -0
- package/dist/authoring/core/history/commandExecutor.d.ts +29 -0
- package/dist/authoring/core/history/commandExecutor.d.ts.map +1 -0
- package/dist/authoring/core/history/historyManager.d.cts +77 -0
- package/dist/authoring/core/history/historyManager.d.ts +77 -0
- package/dist/authoring/core/history/historyManager.d.ts.map +1 -0
- package/dist/authoring/core/history/historyService.d.cts +37 -0
- package/dist/authoring/core/history/historyService.d.ts +37 -0
- package/dist/authoring/core/history/historyService.d.ts.map +1 -0
- package/dist/authoring/core/history/iframeCommandExecutor.d.cts +10 -0
- package/dist/authoring/core/history/iframeCommandExecutor.d.ts +10 -0
- package/dist/authoring/core/history/iframeCommandExecutor.d.ts.map +1 -0
- package/dist/authoring/core/history/targetResolver.d.cts +59 -0
- package/dist/authoring/core/history/targetResolver.d.ts +59 -0
- package/dist/authoring/core/history/targetResolver.d.ts.map +1 -0
- package/dist/authoring/core/hooks/usePopover.d.cts +26 -0
- package/dist/authoring/core/hooks/usePopover.d.ts +26 -0
- package/dist/authoring/core/hooks/usePopover.d.ts.map +1 -0
- package/dist/authoring/core/utils/colorUtils.d.cts +73 -0
- package/dist/authoring/core/utils/colorUtils.d.ts +73 -0
- package/dist/authoring/core/utils/colorUtils.d.ts.map +1 -0
- package/dist/authoring/core/utils/dimensionUtils.d.cts +81 -0
- package/dist/authoring/core/utils/dimensionUtils.d.ts +81 -0
- package/dist/authoring/core/utils/dimensionUtils.d.ts.map +1 -0
- package/dist/authoring/core/utils/domUtils.d.cts +7 -0
- package/dist/authoring/core/utils/domUtils.d.ts +7 -0
- package/dist/authoring/core/utils/domUtils.d.ts.map +1 -0
- package/dist/authoring/react/index.d.cts +14 -0
- package/dist/authoring/react/index.d.ts +14 -0
- package/dist/authoring/react/index.d.ts.map +1 -0
- package/dist/authoring/react/index.js +119 -0
- package/dist/authoring/web-component/index.d.cts +18 -0
- package/dist/authoring/web-component/index.d.ts +18 -0
- package/dist/authoring/web-component/index.d.ts.map +1 -0
- package/dist/authoring/web-component/index.js +1229 -0
- package/dist/protocol/editableElementTags.cjs +16 -0
- package/dist/protocol/editableElementTags.d.cts +14 -0
- package/dist/protocol/editableElementTags.d.ts +14 -0
- package/dist/protocol/editableElementTags.d.ts.map +1 -0
- package/dist/protocol/editableElementTags.js +16 -0
- 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/messageTypes.d.cts +49 -6
- package/dist/protocol/messageTypes.d.ts +49 -6
- package/dist/protocol/messageTypes.d.ts.map +1 -1
- package/dist/runtime/design-mode-interactions.js +44 -21
- package/dist/runtime/interactions/communicationManager.d.cts +2 -26
- package/dist/runtime/interactions/communicationManager.d.ts +2 -26
- package/dist/runtime/interactions/communicationManager.d.ts.map +1 -1
- package/dist/runtime/interactions/componentMatcher.d.cts +6 -2
- package/dist/runtime/interactions/componentMatcher.d.ts +6 -2
- package/dist/runtime/interactions/componentMatcher.d.ts.map +1 -1
- package/dist/runtime/interactions/editableManager.d.cts +2 -1
- package/dist/runtime/interactions/editableManager.d.ts +2 -1
- package/dist/runtime/interactions/editableManager.d.ts.map +1 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.cts +4 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.ts +4 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.ts.map +1 -1
- package/package.json +27 -3
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentData, ComponentStyleValue, SourceLocation } from '../../protocol.cjs';
|
|
3
|
+
import { ChangeContext } from './history/historyService.cjs';
|
|
4
|
+
/** Selected-component subset the panel renders. Mirrors the protocol payload. */
|
|
5
|
+
export type DesignPanelComponent = Pick<ComponentData, "name" | "tagName" | "debugSource" | "hasNonEditableText">;
|
|
6
|
+
/** Per-property inline + computed style values pushed from the host. */
|
|
7
|
+
export type StylesEntryMap = Record<string, ComponentStyleValue>;
|
|
8
|
+
/** Context the panel sends to the host's Apply-to-Agentforce-Vibes handler. */
|
|
9
|
+
export type AgentforceComponentContext = ChangeContext;
|
|
10
|
+
/** Payload the panel emits when the user clicks a component's source-file link. */
|
|
11
|
+
export interface OpenSourceFilePayload {
|
|
12
|
+
sourceFile: string;
|
|
13
|
+
lineNumber: number;
|
|
14
|
+
columnNumber: number;
|
|
15
|
+
}
|
|
16
|
+
/** Props supplied by the host (surface adapter or `<design-mode-panel>` element). */
|
|
17
|
+
export interface DesignPropertyPanelProps {
|
|
18
|
+
/** Selected component, or null when nothing is selected. */
|
|
19
|
+
component: DesignPanelComponent | null;
|
|
20
|
+
/** Inline + computed style values for the selected component. */
|
|
21
|
+
styles: StylesEntryMap | null;
|
|
22
|
+
/** Apply a style change to the surface (host posts it to the preview iframe). */
|
|
23
|
+
onStyleChange: (property: string, value: string, sourceLocation?: SourceLocation) => void;
|
|
24
|
+
/** Apply a text change to the surface. Used by the internal history replay. */
|
|
25
|
+
onTextChange?: (text: string, sourceLocation?: SourceLocation) => void;
|
|
26
|
+
/** Undo/redo availability changed. */
|
|
27
|
+
onHistoryStateChange?: (state: {
|
|
28
|
+
canUndo: boolean;
|
|
29
|
+
canRedo: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** User clicked "Send to Agentforce". */
|
|
32
|
+
onSendToAgentforce?: (context: AgentforceComponentContext) => void;
|
|
33
|
+
/** User clicked the selected component's source-file link. */
|
|
34
|
+
onOpenSourceFile?: (payload: OpenSourceFilePayload) => void;
|
|
35
|
+
}
|
|
36
|
+
/** Imperative handle exposed via ref for toolbar-driven history control. */
|
|
37
|
+
export interface DesignPropertyPanelHandle {
|
|
38
|
+
undo(): void;
|
|
39
|
+
redo(): void;
|
|
40
|
+
clearHistory(): void;
|
|
41
|
+
getHistoryStack(): unknown[];
|
|
42
|
+
recordTextChange(originalText: string, newText: string, context?: ChangeContext): void;
|
|
43
|
+
canUndo(): boolean;
|
|
44
|
+
canRedo(): boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare const DesignPropertyPanel: React.ForwardRefExoticComponent<DesignPropertyPanelProps & React.RefAttributes<DesignPropertyPanelHandle>>;
|
|
47
|
+
/**
|
|
48
|
+
* Convenience mount for non-JSX hosts: renders the panel into `rootEl` with the
|
|
49
|
+
* given props. JSX hosts can render `<DesignPropertyPanel … />` directly instead.
|
|
50
|
+
*/
|
|
51
|
+
export declare function mountDesignPropertyPanel(rootEl: HTMLElement | null, props: DesignPropertyPanelProps, ref?: React.Ref<DesignPropertyPanelHandle>): void;
|
|
52
|
+
//# sourceMappingURL=DesignPropertyPanelRoot.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentData, ComponentStyleValue, SourceLocation } from '../../protocol.js';
|
|
3
|
+
import { ChangeContext } from './history/historyService.js';
|
|
4
|
+
/** Selected-component subset the panel renders. Mirrors the protocol payload. */
|
|
5
|
+
export type DesignPanelComponent = Pick<ComponentData, "name" | "tagName" | "debugSource" | "hasNonEditableText">;
|
|
6
|
+
/** Per-property inline + computed style values pushed from the host. */
|
|
7
|
+
export type StylesEntryMap = Record<string, ComponentStyleValue>;
|
|
8
|
+
/** Context the panel sends to the host's Apply-to-Agentforce-Vibes handler. */
|
|
9
|
+
export type AgentforceComponentContext = ChangeContext;
|
|
10
|
+
/** Payload the panel emits when the user clicks a component's source-file link. */
|
|
11
|
+
export interface OpenSourceFilePayload {
|
|
12
|
+
sourceFile: string;
|
|
13
|
+
lineNumber: number;
|
|
14
|
+
columnNumber: number;
|
|
15
|
+
}
|
|
16
|
+
/** Props supplied by the host (surface adapter or `<design-mode-panel>` element). */
|
|
17
|
+
export interface DesignPropertyPanelProps {
|
|
18
|
+
/** Selected component, or null when nothing is selected. */
|
|
19
|
+
component: DesignPanelComponent | null;
|
|
20
|
+
/** Inline + computed style values for the selected component. */
|
|
21
|
+
styles: StylesEntryMap | null;
|
|
22
|
+
/** Apply a style change to the surface (host posts it to the preview iframe). */
|
|
23
|
+
onStyleChange: (property: string, value: string, sourceLocation?: SourceLocation) => void;
|
|
24
|
+
/** Apply a text change to the surface. Used by the internal history replay. */
|
|
25
|
+
onTextChange?: (text: string, sourceLocation?: SourceLocation) => void;
|
|
26
|
+
/** Undo/redo availability changed. */
|
|
27
|
+
onHistoryStateChange?: (state: {
|
|
28
|
+
canUndo: boolean;
|
|
29
|
+
canRedo: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** User clicked "Send to Agentforce". */
|
|
32
|
+
onSendToAgentforce?: (context: AgentforceComponentContext) => void;
|
|
33
|
+
/** User clicked the selected component's source-file link. */
|
|
34
|
+
onOpenSourceFile?: (payload: OpenSourceFilePayload) => void;
|
|
35
|
+
}
|
|
36
|
+
/** Imperative handle exposed via ref for toolbar-driven history control. */
|
|
37
|
+
export interface DesignPropertyPanelHandle {
|
|
38
|
+
undo(): void;
|
|
39
|
+
redo(): void;
|
|
40
|
+
clearHistory(): void;
|
|
41
|
+
getHistoryStack(): unknown[];
|
|
42
|
+
recordTextChange(originalText: string, newText: string, context?: ChangeContext): void;
|
|
43
|
+
canUndo(): boolean;
|
|
44
|
+
canRedo(): boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare const DesignPropertyPanel: React.ForwardRefExoticComponent<DesignPropertyPanelProps & React.RefAttributes<DesignPropertyPanelHandle>>;
|
|
47
|
+
/**
|
|
48
|
+
* Convenience mount for non-JSX hosts: renders the panel into `rootEl` with the
|
|
49
|
+
* given props. JSX hosts can render `<DesignPropertyPanel … />` directly instead.
|
|
50
|
+
*/
|
|
51
|
+
export declare function mountDesignPropertyPanel(rootEl: HTMLElement | null, props: DesignPropertyPanelProps, ref?: React.Ref<DesignPropertyPanelHandle>): void;
|
|
52
|
+
//# sourceMappingURL=DesignPropertyPanelRoot.d.ts.map
|
|
@@ -0,0 +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,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAazF,OAAO,EAEN,KAAK,aAAa,EAElB,MAAM,0BAA0B,CAAC;AAUlC,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACtC,aAAa,EACb,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,oBAAoB,CACzD,CAAC;AAEF,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEjE,+EAA+E;AAC/E,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC;AAEvD,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,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B,iFAAiF;IACjF,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1F,+EAA+E;IAC/E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACvE,sCAAsC;IACtC,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/E,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACnE,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAC5D;AAED,4EAA4E;AAC5E,MAAM,WAAW,yBAAyB;IACzC,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;IACb,YAAY,IAAI,IAAI,CAAC;IACrB,eAAe,IAAI,OAAO,EAAE,CAAC;IAC7B,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;AAqVD,eAAO,MAAM,mBAAmB,4GAwM9B,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DesignPropertyPanelSectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function DesignPropertyPanelSection({ title, defaultOpen, children, }: DesignPropertyPanelSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=DesignPropertyPanelSection.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DesignPropertyPanelSectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function DesignPropertyPanelSection({ title, defaultOpen, children, }: DesignPropertyPanelSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=DesignPropertyPanelSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignPropertyPanelSection.d.ts","sourceRoot":"","sources":["../../../src/authoring/core/DesignPropertyPanelSection.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,+BAA+B;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,0BAA0B,CAAC,EAC1C,KAAK,EACL,WAAkB,EAClB,QAAQ,GACR,EAAE,+BAA+B,2CAqBjC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BaseEditorContainerProps {
|
|
3
|
+
/** Editor label displayed above the control */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Base id for legend id (`${id}-legend`) */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Additional class(es) for the fieldset */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Editor content */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Shared layout wrapper for all property editors.
|
|
14
|
+
*/
|
|
15
|
+
export declare function BaseEditorContainer({ label, id, className, children }: BaseEditorContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=BaseEditorContainer.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BaseEditorContainerProps {
|
|
3
|
+
/** Editor label displayed above the control */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Base id for legend id (`${id}-legend`) */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Additional class(es) for the fieldset */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Editor content */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Shared layout wrapper for all property editors.
|
|
14
|
+
*/
|
|
15
|
+
export declare function BaseEditorContainer({ label, id, className, children }: BaseEditorContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=BaseEditorContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseEditorContainer.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/BaseEditorContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,MAAM,WAAW,wBAAwB;IACxC,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,wBAAwB,2CAW/F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface BorderStyleEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function BorderStyleEditor({ label, value, onChange, id, }: BorderStyleEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=BorderStyleEditor.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface BorderStyleEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function BorderStyleEditor({ label, value, onChange, id, }: BorderStyleEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=BorderStyleEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BorderStyleEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/BorderStyleEditor.tsx"],"names":[],"mappings":"AAgCA,MAAM,WAAW,sBAAsB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,iBAAiB,CAAC,EACjC,KAAsB,EACtB,KAAK,EACL,QAAQ,EACR,EAAmB,GACnB,EAAE,sBAAsB,2CAUxB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UnitOption, UnitConstraints } from '../utils/dimensionUtils.cjs';
|
|
3
|
+
export interface BoxDimensionEditorProps {
|
|
4
|
+
/** Editor label displayed above the inputs */
|
|
5
|
+
label: string;
|
|
6
|
+
/** CSS shorthand value (e.g. "10px 20px 10px 20px") */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Callback invoked when value changes */
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
/** DOM id for the editor */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** Available unit options (defaults to px, em, rem, %) */
|
|
13
|
+
units?: readonly UnitOption[];
|
|
14
|
+
/** Min/max/step constraints per unit */
|
|
15
|
+
constraints?: UnitConstraints;
|
|
16
|
+
/** Whether to allow "auto" value */
|
|
17
|
+
allowAuto?: boolean;
|
|
18
|
+
/** Labels for four sides (defaults to Top, Right, Bottom, Left) */
|
|
19
|
+
sideLabels?: string[];
|
|
20
|
+
/** Optional icon components for each side */
|
|
21
|
+
sideIcons?: (React.ComponentType<{
|
|
22
|
+
size?: number;
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
}> | null | undefined)[];
|
|
26
|
+
/** Placeholder value for empty inputs */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Box-model dimension editor (4-sided) with shared unit selector and
|
|
31
|
+
* a link toggle to lock all four sides to the same value.
|
|
32
|
+
*/
|
|
33
|
+
export declare function BoxDimensionEditor({ label, value, onChange, id, units, constraints, allowAuto, sideLabels, sideIcons, placeholder, }: BoxDimensionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=BoxDimensionEditor.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UnitOption, UnitConstraints } from '../utils/dimensionUtils.js';
|
|
3
|
+
export interface BoxDimensionEditorProps {
|
|
4
|
+
/** Editor label displayed above the inputs */
|
|
5
|
+
label: string;
|
|
6
|
+
/** CSS shorthand value (e.g. "10px 20px 10px 20px") */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Callback invoked when value changes */
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
/** DOM id for the editor */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** Available unit options (defaults to px, em, rem, %) */
|
|
13
|
+
units?: readonly UnitOption[];
|
|
14
|
+
/** Min/max/step constraints per unit */
|
|
15
|
+
constraints?: UnitConstraints;
|
|
16
|
+
/** Whether to allow "auto" value */
|
|
17
|
+
allowAuto?: boolean;
|
|
18
|
+
/** Labels for four sides (defaults to Top, Right, Bottom, Left) */
|
|
19
|
+
sideLabels?: string[];
|
|
20
|
+
/** Optional icon components for each side */
|
|
21
|
+
sideIcons?: (React.ComponentType<{
|
|
22
|
+
size?: number;
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
}> | null | undefined)[];
|
|
26
|
+
/** Placeholder value for empty inputs */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Box-model dimension editor (4-sided) with shared unit selector and
|
|
31
|
+
* a link toggle to lock all four sides to the same value.
|
|
32
|
+
*/
|
|
33
|
+
export declare function BoxDimensionEditor({ label, value, onChange, id, units, constraints, allowAuto, sideLabels, sideIcons, placeholder, }: BoxDimensionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=BoxDimensionEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoxDimensionEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/BoxDimensionEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,EASpB,MAAM,yBAAyB,CAAC;AA4EjC,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,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,CACT,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GACvE,IAAI,GACJ,SAAS,CACX,EAAE,CAAC;IACJ,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAClC,KAAK,EACL,KAAU,EACV,QAAQ,EACR,EAAO,EACP,KAAyB,EACzB,WAAsC,EACtC,SAAiB,EACjB,UAAgC,EAChC,SAAS,EACT,WAAgB,GAChB,EAAE,uBAAuB,2CA0QzB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ColorEditorProps {
|
|
2
|
+
/** Editor label displayed above the control */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Current color value (hex, rgba, oklch, oklab, lch, lab, or hsl string) */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Callback invoked when value changes */
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
/** DOM id for the editor (defaults to 'color') */
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Color editor with popover picker and hex/rgba inputs.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ColorEditor({ label, value, onChange, id }: ColorEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=ColorEditor.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ColorEditorProps {
|
|
2
|
+
/** Editor label displayed above the control */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Current color value (hex, rgba, oklch, oklab, lch, lab, or hsl string) */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Callback invoked when value changes */
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
/** DOM id for the editor (defaults to 'color') */
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Color editor with popover picker and hex/rgba inputs.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ColorEditor({ label, value, onChange, id }: ColorEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=ColorEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/ColorEditor.tsx"],"names":[],"mappings":"AAuYA,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;CACZ;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAY,EAAE,EAAE,gBAAgB,2CAwfrF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UnitOption, UnitConstraints } from '../utils/dimensionUtils.cjs';
|
|
3
|
+
export interface DimensionEditorProps {
|
|
4
|
+
/** Editor label displayed above the input */
|
|
5
|
+
label: string;
|
|
6
|
+
/** CSS dimension value (e.g. "16px", "1.5rem") */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Callback invoked when value changes */
|
|
9
|
+
onChange: (cssValue: string) => void;
|
|
10
|
+
/** Available unit options (defaults to CSS_UNITS) */
|
|
11
|
+
units?: readonly UnitOption[];
|
|
12
|
+
/** Min/max/step constraints per unit */
|
|
13
|
+
constraints?: UnitConstraints;
|
|
14
|
+
/** Default unit when value is empty (defaults to 'px') */
|
|
15
|
+
defaultUnit?: string;
|
|
16
|
+
/** Placeholder for empty input (defaults to 0) */
|
|
17
|
+
placeholder?: number | string;
|
|
18
|
+
/** DOM id for the editor (defaults to 'dimension') */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** Optional icon component to display */
|
|
21
|
+
icon?: React.ComponentType<{
|
|
22
|
+
size?: number;
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Dimension editor with numeric input and unit selector.
|
|
29
|
+
*/
|
|
30
|
+
export declare function DimensionEditor({ label, value, onChange, units, constraints, defaultUnit, placeholder, id, icon: Icon, }: DimensionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=DimensionEditor.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UnitOption, UnitConstraints } from '../utils/dimensionUtils.js';
|
|
3
|
+
export interface DimensionEditorProps {
|
|
4
|
+
/** Editor label displayed above the input */
|
|
5
|
+
label: string;
|
|
6
|
+
/** CSS dimension value (e.g. "16px", "1.5rem") */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Callback invoked when value changes */
|
|
9
|
+
onChange: (cssValue: string) => void;
|
|
10
|
+
/** Available unit options (defaults to CSS_UNITS) */
|
|
11
|
+
units?: readonly UnitOption[];
|
|
12
|
+
/** Min/max/step constraints per unit */
|
|
13
|
+
constraints?: UnitConstraints;
|
|
14
|
+
/** Default unit when value is empty (defaults to 'px') */
|
|
15
|
+
defaultUnit?: string;
|
|
16
|
+
/** Placeholder for empty input (defaults to 0) */
|
|
17
|
+
placeholder?: number | string;
|
|
18
|
+
/** DOM id for the editor (defaults to 'dimension') */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** Optional icon component to display */
|
|
21
|
+
icon?: React.ComponentType<{
|
|
22
|
+
size?: number;
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Dimension editor with numeric input and unit selector.
|
|
29
|
+
*/
|
|
30
|
+
export declare function DimensionEditor({ label, value, onChange, units, constraints, defaultUnit, placeholder, id, icon: Icon, }: DimensionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=DimensionEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DimensionEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/DimensionEditor.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAGN,KAAK,UAAU,EACf,KAAK,eAAe,EAOpB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,oBAAoB;IACpC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,qDAAqD;IACrD,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,wCAAwC;IACxC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,sDAAsD;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAiB,EACjB,WAAsC,EACtC,WAAkB,EAClB,WAAe,EACf,EAAgB,EAChB,IAAI,EAAE,IAAI,GACV,EAAE,oBAAoB,2CAqMtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PicklistOption } from './PicklistEditor.cjs';
|
|
2
|
+
export interface FontFamilyEditorProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
options?: PicklistOption[];
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
matchOption?: (fontFamily: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function FontFamilyEditor({ label, value, options, onChange, matchOption, id, }: FontFamilyEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=FontFamilyEditor.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PicklistOption } from './PicklistEditor.js';
|
|
2
|
+
export interface FontFamilyEditorProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
options?: PicklistOption[];
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
matchOption?: (fontFamily: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function FontFamilyEditor({ label, value, options, onChange, matchOption, id, }: FontFamilyEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=FontFamilyEditor.d.ts.map
|
|
@@ -0,0 +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;AAwCvE,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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;CACZ;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAqB,EACrB,KAAK,EACL,OAAsB,EACtB,QAAQ,EACR,WAAmC,EACnC,EAAkB,GAClB,EAAE,qBAAqB,2CAcvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface FontStyleEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function FontStyleEditor({ label, value, onChange, id, }: FontStyleEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=FontStyleEditor.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface FontStyleEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function FontStyleEditor({ label, value, onChange, id, }: FontStyleEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=FontStyleEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontStyleEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/FontStyleEditor.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,oBAAoB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,eAAe,CAAC,EAC/B,KAAoB,EACpB,KAAK,EACL,QAAQ,EACR,EAAiB,GACjB,EAAE,oBAAoB,2CAUtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PicklistOption } from './PicklistEditor.cjs';
|
|
2
|
+
export interface FontWeightEditorProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
options?: PicklistOption[];
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
matchOption?: (weight: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function FontWeightEditor({ label, value, options, onChange, matchOption, id, }: FontWeightEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=FontWeightEditor.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PicklistOption } from './PicklistEditor.js';
|
|
2
|
+
export interface FontWeightEditorProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
options?: PicklistOption[];
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
matchOption?: (weight: string | null | undefined, options: PicklistOption[]) => PicklistOption | null;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function FontWeightEditor({ label, value, options, onChange, matchOption, id, }: FontWeightEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=FontWeightEditor.d.ts.map
|
|
@@ -0,0 +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;AAwBvE,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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;CACZ;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAqB,EACrB,KAAK,EACL,OAAwB,EACxB,QAAQ,EACR,WAA+B,EAC/B,EAAkB,GAClB,EAAE,qBAAqB,2CAYvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface OverflowEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function OverflowEditor({ label, value, onChange, id, }: OverflowEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=OverflowEditor.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface OverflowEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function OverflowEditor({ label, value, onChange, id, }: OverflowEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=OverflowEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverflowEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/OverflowEditor.tsx"],"names":[],"mappings":"AAyBA,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,cAAc,CAAC,EAC9B,KAAkB,EAClB,KAAK,EACL,QAAQ,EACR,EAAe,GACf,EAAE,mBAAmB,2CAYrB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PicklistOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PicklistEditorProps {
|
|
7
|
+
/** Editor label displayed above the control */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Available options with value/label pairs */
|
|
10
|
+
options: PicklistOption[];
|
|
11
|
+
/** Currently selected option */
|
|
12
|
+
selectedItem: PicklistOption | null;
|
|
13
|
+
/** Callback invoked when value changes */
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
/** DOM id for the editor (defaults to 'picklist') */
|
|
16
|
+
id?: string;
|
|
17
|
+
/** Optional style function for each option */
|
|
18
|
+
getOptionStyle?: (opt: PicklistOption) => React.CSSProperties | undefined;
|
|
19
|
+
/** Optional style function for the trigger button */
|
|
20
|
+
getTriggerStyle?: (item: PicklistOption | null) => React.CSSProperties | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Picklist dropdown editor with styling options.
|
|
24
|
+
*/
|
|
25
|
+
export declare function PicklistEditor({ label, options, selectedItem, onChange, id, getOptionStyle, getTriggerStyle, }: PicklistEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=PicklistEditor.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PicklistOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PicklistEditorProps {
|
|
7
|
+
/** Editor label displayed above the control */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Available options with value/label pairs */
|
|
10
|
+
options: PicklistOption[];
|
|
11
|
+
/** Currently selected option */
|
|
12
|
+
selectedItem: PicklistOption | null;
|
|
13
|
+
/** Callback invoked when value changes */
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
/** DOM id for the editor (defaults to 'picklist') */
|
|
16
|
+
id?: string;
|
|
17
|
+
/** Optional style function for each option */
|
|
18
|
+
getOptionStyle?: (opt: PicklistOption) => React.CSSProperties | undefined;
|
|
19
|
+
/** Optional style function for the trigger button */
|
|
20
|
+
getTriggerStyle?: (item: PicklistOption | null) => React.CSSProperties | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Picklist dropdown editor with styling options.
|
|
24
|
+
*/
|
|
25
|
+
export declare function PicklistEditor({ label, options, selectedItem, onChange, id, getOptionStyle, getTriggerStyle, }: PicklistEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=PicklistEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PicklistEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/PicklistEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd;AAyBD,MAAM,WAAW,mBAAmB;IACnC,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,gCAAgC;IAChC,YAAY,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;IAC1E,qDAAqD;IACrD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,KAAK,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;CACnF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC9B,KAAK,EACL,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,EAAe,EACf,cAAc,EACd,eAAe,GACf,EAAE,mBAAmB,2CA4GrB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RadioGroupOption {
|
|
3
|
+
/** Option value */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Accessible label for the option */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Optional icon to display instead of label text */
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface RadioGroupEditorProps {
|
|
11
|
+
/** Editor label displayed above the control */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Available options with value/label/icon */
|
|
14
|
+
options: RadioGroupOption[];
|
|
15
|
+
/** Currently selected value */
|
|
16
|
+
value: string;
|
|
17
|
+
/** Callback invoked when value changes */
|
|
18
|
+
onChange: (value: string) => void;
|
|
19
|
+
/** DOM id for the editor (defaults to 'radio-group') */
|
|
20
|
+
id?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Radio button group editor with visual icons.
|
|
24
|
+
*/
|
|
25
|
+
export declare function RadioGroupEditor({ label, options, value, onChange, id, }: RadioGroupEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=RadioGroupEditor.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RadioGroupOption {
|
|
3
|
+
/** Option value */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Accessible label for the option */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Optional icon to display instead of label text */
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface RadioGroupEditorProps {
|
|
11
|
+
/** Editor label displayed above the control */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Available options with value/label/icon */
|
|
14
|
+
options: RadioGroupOption[];
|
|
15
|
+
/** Currently selected value */
|
|
16
|
+
value: string;
|
|
17
|
+
/** Callback invoked when value changes */
|
|
18
|
+
onChange: (value: string) => void;
|
|
19
|
+
/** DOM id for the editor (defaults to 'radio-group') */
|
|
20
|
+
id?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Radio button group editor with visual icons.
|
|
24
|
+
*/
|
|
25
|
+
export declare function RadioGroupEditor({ label, options, value, onChange, id, }: RadioGroupEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=RadioGroupEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupEditor.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/editors/RadioGroupEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,gBAAgB;IAChC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACrC,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,EAAkB,GAClB,EAAE,qBAAqB,2CAiCvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TextAlignmentEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function TextAlignmentEditor({ label, value, onChange, id, }: TextAlignmentEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TextAlignmentEditor.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TextAlignmentEditorProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function TextAlignmentEditor({ label, value, onChange, id, }: TextAlignmentEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TextAlignmentEditor.d.ts.map
|