@instructure/platform-block-content-editor 3.5.0 → 4.0.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/README.md +80 -17
- package/dist/components/blocks/Banner/bannerPropsSchema.d.ts.map +1 -1
- package/dist/contexts/NutritionFactsContext.d.ts +19 -0
- package/dist/contexts/NutritionFactsContext.d.ts.map +1 -0
- package/dist/editor/BlockContentEditor.d.ts +23 -8
- package/dist/editor/BlockContentEditor.d.ts.map +1 -1
- package/dist/editor/ai/AIGenerationContext.d.ts +46 -0
- package/dist/editor/ai/AIGenerationContext.d.ts.map +1 -0
- package/dist/editor/ai/BlockAIMenu.d.ts.map +1 -1
- package/dist/editor/ai/BlockAIMenuContent.d.ts.map +1 -1
- package/dist/editor/ai/BlockGenerationOverlay.d.ts +16 -0
- package/dist/editor/ai/BlockGenerationOverlay.d.ts.map +1 -0
- package/dist/editor/ai/NutritionFactsDisclosure.d.ts +23 -0
- package/dist/editor/ai/NutritionFactsDisclosure.d.ts.map +1 -0
- package/dist/editor/ai/PreviewBlockModal.d.ts +2 -7
- package/dist/editor/ai/PreviewBlockModal.d.ts.map +1 -1
- package/dist/editor/ai/aiMenuStyles.d.ts +1 -0
- package/dist/editor/ai/aiMenuStyles.d.ts.map +1 -1
- package/dist/editor/ai/aiTranslations.d.ts +19 -0
- package/dist/editor/ai/aiTranslations.d.ts.map +1 -1
- package/dist/editor/ai/aiTypes.d.ts +2 -0
- package/dist/editor/ai/aiTypes.d.ts.map +1 -1
- package/dist/editor/ai/generationOverlayStyles.d.ts +18 -0
- package/dist/editor/ai/generationOverlayStyles.d.ts.map +1 -0
- package/dist/editor/ai/index.d.ts +2 -1
- package/dist/editor/ai/index.d.ts.map +1 -1
- package/dist/editor/ai/previewBlockStyles.d.ts +17 -0
- package/dist/editor/ai/previewBlockStyles.d.ts.map +1 -0
- package/dist/editor/ai/previewDiff.d.ts +73 -0
- package/dist/editor/ai/previewDiff.d.ts.map +1 -0
- package/dist/editor/ai/previewDiff.test.d.ts +2 -0
- package/dist/editor/ai/previewDiff.test.d.ts.map +1 -0
- package/dist/editor/canvas/DesignerArea.d.ts +8 -6
- package/dist/editor/canvas/DesignerArea.d.ts.map +1 -1
- package/dist/editor/canvas/DesignerCanvas.d.ts +2 -6
- package/dist/editor/canvas/DesignerCanvas.d.ts.map +1 -1
- package/dist/editor/canvas/GridDndContext.d.ts +0 -1
- package/dist/editor/canvas/GridDndContext.d.ts.map +1 -1
- package/dist/editor/canvas/GridDndProvider.d.ts +8 -3
- package/dist/editor/canvas/GridDndProvider.d.ts.map +1 -1
- package/dist/editor/canvas/GridItemChild.d.ts +2 -6
- package/dist/editor/canvas/GridItemChild.d.ts.map +1 -1
- package/dist/editor/canvas/GridItemContainer.d.ts.map +1 -1
- package/dist/editor/canvas/GridViewer.d.ts +5 -16
- package/dist/editor/canvas/GridViewer.d.ts.map +1 -1
- package/dist/editor/canvas/TwoColumnDesigner.d.ts +1 -6
- package/dist/editor/canvas/TwoColumnDesigner.d.ts.map +1 -1
- package/dist/editor/canvas/canvasStyles.d.ts +3 -0
- package/dist/editor/canvas/canvasStyles.d.ts.map +1 -1
- package/dist/editor/canvas/index.d.ts +1 -0
- package/dist/editor/canvas/index.d.ts.map +1 -1
- package/dist/editor/history/types.d.ts +6 -0
- package/dist/editor/history/types.d.ts.map +1 -1
- package/dist/editor/history/undoRedoManager.d.ts.map +1 -1
- package/dist/editor/history/useUndoRedo.d.ts +3 -4
- package/dist/editor/history/useUndoRedo.d.ts.map +1 -1
- package/dist/editor/index.d.ts +9 -4
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/sidebar/form/ComponentEditorForm.d.ts +3 -2
- package/dist/editor/sidebar/form/ComponentEditorForm.d.ts.map +1 -1
- package/dist/editor/sidebar/form/fieldRendererUtils.d.ts +2 -1
- package/dist/editor/sidebar/form/fieldRendererUtils.d.ts.map +1 -1
- package/dist/editor/sidebar/form/renderers/AltTextFieldRenderer.d.ts.map +1 -1
- package/dist/editor/sidebar/form/renderers/AnswerArrayFieldRenderer.d.ts +1 -1
- package/dist/editor/sidebar/form/renderers/AnswerArrayFieldRenderer.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/DesignerSideBar.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/ToolBody.d.ts +2 -1
- package/dist/editor/sidebar/panel/ToolBody.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/ToolContentContainer.d.ts +3 -1
- package/dist/editor/sidebar/panel/ToolContentContainer.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/ToolHeaderActionsContext.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/panelStyles.d.ts +1 -0
- package/dist/editor/sidebar/panel/panelStyles.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/types.d.ts +7 -1
- package/dist/editor/sidebar/panel/types.d.ts.map +1 -1
- package/dist/editor/sidebar/sidebarTranslations.d.ts +0 -8
- package/dist/editor/sidebar/sidebarTranslations.d.ts.map +1 -1
- package/dist/editor/sidebar/tray/BlockTray.d.ts +3 -4
- package/dist/editor/sidebar/tray/BlockTray.d.ts.map +1 -1
- package/dist/editor/sidebar/tray/SharedTrayComponents.d.ts +1 -1
- package/dist/editor/sidebar/tray/blockDefinitions.d.ts.map +1 -1
- package/dist/editor/sidebar/tray/index.d.ts +0 -2
- package/dist/editor/sidebar/tray/index.d.ts.map +1 -1
- package/dist/editor/sidebar/useDesignerSelectionFocus.d.ts +10 -1
- package/dist/editor/sidebar/useDesignerSelectionFocus.d.ts.map +1 -1
- package/dist/editor/state/blockDataStore.d.ts +13 -0
- package/dist/editor/state/blockDataStore.d.ts.map +1 -0
- package/dist/editor/state/blockDataStore.test.d.ts +2 -0
- package/dist/editor/state/blockDataStore.test.d.ts.map +1 -0
- package/dist/editor/state/selectionContext.d.ts +5 -0
- package/dist/editor/state/selectionContext.d.ts.map +1 -0
- package/dist/editor/state/selectionStore.d.ts +11 -0
- package/dist/editor/state/selectionStore.d.ts.map +1 -0
- package/dist/editor/state/useBlockData.d.ts +13 -0
- package/dist/editor/state/useBlockData.d.ts.map +1 -0
- package/dist/editor/state/useBlockEditorState.d.ts +10 -5
- package/dist/editor/state/useBlockEditorState.d.ts.map +1 -1
- package/dist/editor/state/useUndoRedoState.d.ts +9 -0
- package/dist/editor/state/useUndoRedoState.d.ts.map +1 -0
- package/dist/editor/state/useUndoRedoState.test.d.ts +2 -0
- package/dist/editor/state/useUndoRedoState.test.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8389 -7401
- package/dist/registry/blockCatalogue.d.ts +1 -6
- package/dist/registry/blockCatalogue.d.ts.map +1 -1
- package/dist/registry/templateTypes.d.ts +2 -2
- package/dist/schema/schemaRegistry.d.ts +0 -17
- package/dist/schema/schemaRegistry.d.ts.map +1 -1
- package/dist/viewer/viewerStyles.d.ts +0 -3
- package/dist/viewer/viewerStyles.d.ts.map +1 -1
- package/locales/en.json +13 -6
- package/package.json +5 -1
- package/dist/components/blocks/LayoutContainer/LayoutContainer.d.ts +0 -3
- package/dist/components/blocks/LayoutContainer/LayoutContainer.d.ts.map +0 -1
- package/dist/components/blocks/LayoutContainer/createLayoutContainerBlock.d.ts +0 -22
- package/dist/components/blocks/LayoutContainer/createLayoutContainerBlock.d.ts.map +0 -1
- package/dist/components/blocks/LayoutContainer/getLayoutContainerViewProps.d.ts +0 -32
- package/dist/components/blocks/LayoutContainer/getLayoutContainerViewProps.d.ts.map +0 -1
- package/dist/components/blocks/LayoutContainer/index.d.ts +0 -5
- package/dist/components/blocks/LayoutContainer/index.d.ts.map +0 -1
- package/dist/components/blocks/LayoutContainer/layoutContainerPropsSchema.d.ts +0 -118
- package/dist/components/blocks/LayoutContainer/layoutContainerPropsSchema.d.ts.map +0 -1
- package/dist/editor/sidebar/tray/LayoutTray.d.ts +0 -4
- package/dist/editor/sidebar/tray/LayoutTray.d.ts.map +0 -1
- package/dist/editor/sidebar/tray/TemplatesPanel.d.ts +0 -4
- package/dist/editor/sidebar/tray/TemplatesPanel.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"previewDiff.test.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/previewDiff.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { BlockRegistry, LayoutNode
|
|
2
|
+
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
3
3
|
import { TrayDropTarget, TreePath } from '../document/utils';
|
|
4
|
+
import { BlockDataStore } from '../state/blockDataStore';
|
|
5
|
+
import { SelectionStore } from '../state/selectionStore';
|
|
4
6
|
export interface DesignerAreaProps {
|
|
5
7
|
/** The layout tree to author. */
|
|
6
8
|
templateLayout: LayoutNode[];
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
+
/** `useBlockEditorState().store`. */
|
|
10
|
+
store: BlockDataStore;
|
|
9
11
|
/** The registry the document's blocks resolve against. */
|
|
10
12
|
componentRegistry: BlockRegistry;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
+
/** `useBlockEditorState().selection`. */
|
|
14
|
+
selection: SelectionStore;
|
|
13
15
|
/** Commit a new layout (e.g. `useBlockEditorState().changeLayout`). */
|
|
14
16
|
onLayoutChange: (layout: LayoutNode[]) => void;
|
|
15
17
|
/** A block was selected on the canvas. */
|
|
@@ -34,5 +36,5 @@ export interface DesignerAreaProps {
|
|
|
34
36
|
* host that wants tray drag sources to reach the canvas across a shared context composes
|
|
35
37
|
* `GridDndProvider` around both the sidebar and a bare `DesignerCanvas` instead.
|
|
36
38
|
*/
|
|
37
|
-
export declare function DesignerArea({ templateLayout,
|
|
39
|
+
export declare function DesignerArea({ templateLayout, store, componentRegistry, selection, onLayoutChange, onSelectComponent, onAddComponent, onDeleteNode, onDuplicateNode, onAIApply, canvasRef: externalCanvasRef, }: DesignerAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
38
40
|
//# sourceMappingURL=DesignerArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignerArea.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/DesignerArea.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"DesignerArea.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/DesignerArea.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAI7D,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,cAAc,EAAE,UAAU,EAAE,CAAA;IAC5B,qCAAqC;IACrC,KAAK,EAAE,cAAc,CAAA;IACrB,0DAA0D;IAC1D,iBAAiB,EAAE,aAAa,CAAA;IAChC,yCAAyC;IACzC,SAAS,EAAE,cAAc,CAAA;IACzB,uEAAuE;IACvE,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IAC9C,0CAA0C;IAC1C,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACnE,gFAAgF;IAChF,cAAc,CAAC,EAAE,CACf,aAAa,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,cAAc,EAC3B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACpC,IAAI,CAAA;IACT,qEAAqE;IACrE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,2EAA2E;IAC3E,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,gFAAgF;IAChF,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACvE;kFAC8E;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,cAAc,EACd,KAAK,EACL,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,SAAS,EACT,SAAS,EAAE,iBAAiB,GAC7B,EAAE,iBAAiB,2CA0BnB"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { BlockRegistry, LayoutNode
|
|
2
|
+
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
3
3
|
import { TreePath } from '../document/utils';
|
|
4
4
|
export interface DesignerCanvasProps {
|
|
5
5
|
/** The layout tree to author. */
|
|
6
6
|
templateLayout: LayoutNode[];
|
|
7
|
-
/** Content props keyed by node id. */
|
|
8
|
-
templateData: TemplateData;
|
|
9
7
|
/** The registry the document's blocks resolve against. */
|
|
10
8
|
componentRegistry: BlockRegistry;
|
|
11
|
-
/** The engine's selected component id (drives the selection chrome). */
|
|
12
|
-
selectedComponentId: string | null;
|
|
13
9
|
/** Commit a new layout (e.g. `useBlockEditorState().changeLayout`). */
|
|
14
10
|
onLayoutChange: (layout: LayoutNode[]) => void;
|
|
15
11
|
/** A block was selected on the canvas. */
|
|
@@ -31,5 +27,5 @@ export interface DesignerCanvasProps {
|
|
|
31
27
|
* and renders this. Turns on `DesignerModeContext` for the blocks it renders (its one owned
|
|
32
28
|
* piece of context); brand color, block data and translations come from the host's providers.
|
|
33
29
|
*/
|
|
34
|
-
export declare function DesignerCanvas({ templateLayout,
|
|
30
|
+
export declare function DesignerCanvas({ templateLayout, componentRegistry, onLayoutChange, onSelectComponent, onDeleteNode, onDuplicateNode, onAIApply, canvasRef: externalCanvasRef, }: DesignerCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
35
31
|
//# sourceMappingURL=DesignerCanvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignerCanvas.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/DesignerCanvas.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"DesignerCanvas.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/DesignerCanvas.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAIjD,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,cAAc,EAAE,UAAU,EAAE,CAAA;IAC5B,0DAA0D;IAC1D,iBAAiB,EAAE,aAAa,CAAA;IAChC,uEAAuE;IACvE,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IAC9C,0CAA0C;IAC1C,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACnE,qEAAqE;IACrE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,2EAA2E;IAC3E,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2CAA2C;IAC3C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACvE;kFAC8E;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,SAAS,EACT,SAAS,EAAE,iBAAiB,GAC7B,EAAE,mBAAmB,2CAmBrB"}
|
|
@@ -2,7 +2,6 @@ import { SortableInsertTarget } from '../document/utils';
|
|
|
2
2
|
/** DnD state shared from the provider down to the canvas without prop drilling. */
|
|
3
3
|
export interface GridDndContextValue {
|
|
4
4
|
activeId: string | null;
|
|
5
|
-
isSortingContainer: boolean;
|
|
6
5
|
numRows: number;
|
|
7
6
|
trayInsertTarget: SortableInsertTarget | null;
|
|
8
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridDndContext.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridDndContext.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,
|
|
1
|
+
{"version":3,"file":"GridDndContext.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridDndContext.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC9C;AAED,eAAO,MAAM,cAAc,qDAAkD,CAAA;AAE7E,wBAAgB,iBAAiB,IAAI,mBAAmB,CAMvD"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BlockRegistry, LayoutNode
|
|
2
|
+
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
3
3
|
import { TrayDropTarget } from '../document/utils';
|
|
4
|
+
import { BlockDataStore } from '../state/blockDataStore';
|
|
5
|
+
import { SelectionStore } from '../state/selectionStore';
|
|
4
6
|
export interface GridDndProviderProps {
|
|
5
7
|
templateLayout: LayoutNode[];
|
|
6
|
-
|
|
8
|
+
/** `useBlockEditorState().store`, provided to everything inside. */
|
|
9
|
+
store: BlockDataStore;
|
|
10
|
+
/** `useBlockEditorState().selection`, provided to everything inside. */
|
|
11
|
+
selection: SelectionStore;
|
|
7
12
|
componentRegistry: BlockRegistry;
|
|
8
13
|
onLayoutChange: (layout: LayoutNode[]) => void;
|
|
9
14
|
/** Optional callback for handling tray component drops. */
|
|
@@ -13,5 +18,5 @@ export interface GridDndProviderProps {
|
|
|
13
18
|
children: ReactNode;
|
|
14
19
|
}
|
|
15
20
|
/** The single `DndContext` for the designer, wiring `useGridDnd` in and rendering the overlays. */
|
|
16
|
-
export declare function GridDndProvider({ templateLayout,
|
|
21
|
+
export declare function GridDndProvider({ templateLayout, store, selection, componentRegistry, onLayoutChange, onAddFromTray, canvasRef, children, }: GridDndProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
22
|
//# sourceMappingURL=GridDndProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridDndProvider.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridDndProvider.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EA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@ export interface DesignerItemUIProps {
|
|
|
13
13
|
/** Whether any drag is active (hides the toolbar globally during a drag). */
|
|
14
14
|
isAnyDragActive?: boolean;
|
|
15
15
|
dragDisabled?: boolean;
|
|
16
|
-
onEditClick: (
|
|
17
|
-
|
|
18
|
-
}) => void;
|
|
19
|
-
onDuplicateClick: (e: {
|
|
20
|
-
stopPropagation: () => void;
|
|
21
|
-
}) => void;
|
|
16
|
+
onEditClick: () => void;
|
|
17
|
+
onDuplicateClick: () => void;
|
|
22
18
|
/** Current component data, passed to the AI menu as the "before" content. */
|
|
23
19
|
componentData?: Record<string, unknown>;
|
|
24
20
|
/** Callback when AI applies new props to this block. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridItemChild.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridItemChild.tsx"],"names":[],"mappings":"AA+BA,OAAO,EAAc,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"GridItemChild.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridItemChild.tsx"],"names":[],"mappings":"AA+BA,OAAO,EAAc,KAAK,SAAS,EAAqC,MAAM,OAAO,CAAA;AAGrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAInE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,gBAAgB,EAAE,MAAM,IAAI,CAAA;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AAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACvE,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,aAAa,CAAA;IACjC,6CAA6C;IAC7C,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACpC,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,yCAAyC;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,GAAI,+QAqB1B,iBAAiB,4CA2GnB,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Announcements, CollisionDetection, DragEndEvent, DragMoveEvent, DragOverEvent, DragStartEvent, useSensors } from '@dnd-kit/core';
|
|
2
2
|
import { SortingStrategy } from '@dnd-kit/sortable';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
|
-
import { BlockRegistry, LayoutNode
|
|
4
|
+
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
5
5
|
import { SortableInsertTarget, TrayDropTarget, TreePath } from '../document/utils';
|
|
6
6
|
export declare const DEFAULT_BLOCK_HEIGHT = 60;
|
|
7
7
|
export declare const gridSortingStrategy: SortingStrategy;
|
|
@@ -14,12 +14,8 @@ export declare function makeTrayInsertStrategy(insertIndex: number, shiftHeight:
|
|
|
14
14
|
export interface GridViewerProps {
|
|
15
15
|
/** The layout tree to render. */
|
|
16
16
|
templateLayout: LayoutNode[];
|
|
17
|
-
/** Content props keyed by node id. */
|
|
18
|
-
templateData: TemplateData;
|
|
19
17
|
/** The registry blocks resolve against. */
|
|
20
18
|
componentRegistry: BlockRegistry;
|
|
21
|
-
/** The engine's selected component id (drives the selection chrome). */
|
|
22
|
-
selectedComponentId: string | null;
|
|
23
19
|
/** Callback when the layout changes. */
|
|
24
20
|
onLayoutChange: (layout: LayoutNode[]) => void;
|
|
25
21
|
/** Callback when a component is selected. */
|
|
@@ -36,8 +32,6 @@ export interface GridViewerProps {
|
|
|
36
32
|
maxDepth?: number;
|
|
37
33
|
/** Active dragging id (from the wrapper). */
|
|
38
34
|
activeId?: string | null;
|
|
39
|
-
/** Whether a container is being sorted (disables child items). */
|
|
40
|
-
isSortingContainer?: boolean;
|
|
41
35
|
/** Live insertion indicator for a tray item dragged over a block. */
|
|
42
36
|
trayInsertTarget?: SortableInsertTarget | null;
|
|
43
37
|
/** Callback when a node should be deleted. */
|
|
@@ -56,18 +50,15 @@ export interface RenderNodeProps {
|
|
|
56
50
|
onAIApply?: (nodeId: string, newProps: Record<string, unknown>) => void;
|
|
57
51
|
node: LayoutNode;
|
|
58
52
|
index: number;
|
|
59
|
-
templateData: TemplateData;
|
|
60
53
|
componentRegistry: BlockRegistry;
|
|
61
|
-
selectedComponentId: string | null;
|
|
62
54
|
currentPath: TreePath;
|
|
63
55
|
depth: number;
|
|
64
56
|
disabled: boolean;
|
|
65
57
|
maxDepth: number;
|
|
66
58
|
activeId: string | null;
|
|
67
|
-
isSortingContainer?: boolean;
|
|
68
59
|
trayInsertTarget?: SortableInsertTarget | null;
|
|
69
60
|
}
|
|
70
|
-
export declare const GridViewer: ({ templateLayout,
|
|
61
|
+
export declare const GridViewer: ({ templateLayout, componentRegistry, onSelectComponent, onLayoutChange, onDeleteNode, onDuplicateNode, onAIApply, depth, currentPath, parentNode: _parentNode, disabled, maxDepth, activeId, trayInsertTarget, }: GridViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
62
|
interface UseGridDndProps {
|
|
72
63
|
templateLayout: LayoutNode[];
|
|
73
64
|
componentRegistry: BlockRegistry;
|
|
@@ -84,7 +75,6 @@ interface UseGridDndProps {
|
|
|
84
75
|
export interface UseGridDndReturn {
|
|
85
76
|
activeId: string | null;
|
|
86
77
|
activeNode: LayoutNode | null;
|
|
87
|
-
isSortingContainer: boolean;
|
|
88
78
|
sensors: ReturnType<typeof useSensors>;
|
|
89
79
|
announcements: Announcements;
|
|
90
80
|
screenReaderInstructions: {
|
|
@@ -100,15 +90,14 @@ export interface UseGridDndReturn {
|
|
|
100
90
|
trayInsertTarget: SortableInsertTarget | null;
|
|
101
91
|
}
|
|
102
92
|
export declare function useGridDnd({ templateLayout, componentRegistry, onLayoutChange, onAddFromTray, canvasRef, }: UseGridDndProps): UseGridDndReturn;
|
|
103
|
-
export interface GridViewerCanvasProps extends Omit<GridViewerProps, 'activeId' | '
|
|
93
|
+
export interface GridViewerCanvasProps extends Omit<GridViewerProps, 'activeId' | 'trayInsertTarget' | 'depth' | 'currentPath' | 'parentNode'> {
|
|
104
94
|
}
|
|
105
|
-
export declare const GridViewerCanvas: ({ templateLayout,
|
|
95
|
+
export declare const GridViewerCanvas: ({ templateLayout, componentRegistry, onLayoutChange, onSelectComponent, onDeleteNode, onDuplicateNode, onAIApply, }: GridViewerCanvasProps) => import("react/jsx-runtime").JSX.Element;
|
|
106
96
|
export interface GridDragOverlayProps {
|
|
107
97
|
activeId: string | null;
|
|
108
98
|
activeNode: LayoutNode | null;
|
|
109
|
-
templateData: TemplateData;
|
|
110
99
|
componentRegistry: BlockRegistry;
|
|
111
100
|
}
|
|
112
|
-
export declare const GridDragOverlay: ({ activeId, activeNode,
|
|
101
|
+
export declare const GridDragOverlay: ({ activeId, activeNode, componentRegistry, }: GridDragOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
113
102
|
export {};
|
|
114
103
|
//# sourceMappingURL=GridViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridViewer.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridViewer.tsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,cAAc,EASnB,UAAU,EACX,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM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IAC5C,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC9C;AAED,wBAAgB,UAAU,CAAC,EACzB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,GACV,EAAE,eAAe,GAAG,gBAAgB,CA8dpC;AAMD,MAAM,WAAW,qBACf,SAAQ,IAAI,CACV,eAAe,EACf,UAAU,GAAG,kBAAkB,GAAG,OAAO,GAAG,aAAa,GAAG,YAAY,CACzE;CAAG;AAEN,eAAO,MAAM,gBAAgB,GAAI,qHAQ9B,qBAAqB,4CA4BvB,CAAA;AAMD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;IAC7B,iBAAiB,EAAE,aAAa,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,GAAI,8CAI7B,oBAAoB,4CAwDtB,CAAA"}
|
|
@@ -6,12 +6,8 @@ export interface TwoColumnDesignerProps {
|
|
|
6
6
|
node: LayoutNode;
|
|
7
7
|
/** Children of the TwoColumn node (`node.children`). */
|
|
8
8
|
columnChildren: LayoutNode[];
|
|
9
|
-
/** Content props keyed by node id. */
|
|
10
|
-
templateData: import('../../registry').TemplateData;
|
|
11
9
|
/** The registry the children resolve against. */
|
|
12
10
|
componentRegistry: import('../../registry').BlockRegistry;
|
|
13
|
-
/** The engine's selected component id (drives the selection chrome). */
|
|
14
|
-
selectedComponentId: string | null;
|
|
15
11
|
onSelectComponent: (id: string | undefined, path: TreePath) => void;
|
|
16
12
|
onLayoutChange: (layout: LayoutNode[]) => void;
|
|
17
13
|
onDeleteNode?: (nodeId: string) => void;
|
|
@@ -23,12 +19,11 @@ export interface TwoColumnDesignerProps {
|
|
|
23
19
|
disabled: boolean;
|
|
24
20
|
maxDepth: number;
|
|
25
21
|
activeId: string | null;
|
|
26
|
-
isSortingContainer?: boolean;
|
|
27
22
|
/** Live insertion indicator for a tray item dragged over a block. */
|
|
28
23
|
trayInsertTarget?: SortableInsertTarget | null;
|
|
29
24
|
/** The `RenderNode` from GridViewer, passed in to avoid a circular import. */
|
|
30
25
|
renderNode: React.ComponentType<RenderNodeProps>;
|
|
31
26
|
}
|
|
32
|
-
export declare const TwoColumnDesigner: ({ node, columnChildren: templateChildren,
|
|
27
|
+
export declare const TwoColumnDesigner: ({ node, columnChildren: templateChildren, componentRegistry, onSelectComponent, onLayoutChange, onDeleteNode, onDuplicateNode, onAIApply, depth, currentPath, disabled, maxDepth, activeId, trayInsertTarget, renderNode: RenderNodeComponent, }: TwoColumnDesignerProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
28
|
export default TwoColumnDesigner;
|
|
34
29
|
//# sourceMappingURL=TwoColumnDesigner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoColumnDesigner.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/TwoColumnDesigner.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAA;AAI1B,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,IAAI,EAAE,UAAU,CAAA;IAChB,wDAAwD;IACxD,cAAc,EAAE,UAAU,EAAE,CAAA;IAC5B,
|
|
1
|
+
{"version":3,"file":"TwoColumnDesigner.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/TwoColumnDesigner.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAA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ring surface, so the design area can render a narrower device without the window
|
|
11
|
+
* changing size; unset leaves it full width. Set it on any ancestor of the canvas. */
|
|
12
|
+
export declare const CANVAS_WIDTH_VAR = "--bce-designer-canvas-width";
|
|
10
13
|
export declare const CANVAS_CLASS: {
|
|
11
14
|
readonly canvasSurface: "bce-designer-canvas-surface";
|
|
12
15
|
readonly canvas: "bce-designer-canvas";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvasStyles.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/canvasStyles.tsx"],"names":[],"mappings":"AAsBA;;;;;;;;GAQG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAA;AAEV,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,0BAA0B,CAAA;AA2B1D,oEAAoE;AACpE,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"canvasStyles.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/canvasStyles.tsx"],"names":[],"mappings":"AAsBA;;;;;;;;GAQG;AAEH;sFACsF;AACtF,eAAO,MAAM,gBAAgB,gCAAgC,CAAA;AAE7D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAA;AAEV,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,0BAA0B,CAAA;AA2B1D,oEAAoE;AACpE,wBAAgB,kBAAkB,4CAoRjC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DesignerArea, type DesignerAreaProps } from './DesignerArea';
|
|
2
2
|
export { DesignerCanvas, type DesignerCanvasProps } from './DesignerCanvas';
|
|
3
3
|
export { GridDndProvider, type GridDndProviderProps } from './GridDndProvider';
|
|
4
|
+
export { CANVAS_WIDTH_VAR } from './canvasStyles';
|
|
4
5
|
export { type DesignerChromeTranslations, DesignerChromeEnglish, } from './canvasTranslations';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/index.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,EACL,KAAK,0BAA0B,EAC/B,qBAAqB,GACtB,MAAM,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/index.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EACL,KAAK,0BAA0B,EAC/B,qBAAqB,GACtB,MAAM,sBAAsB,CAAA"}
|
|
@@ -12,6 +12,11 @@ export interface UndoRedoOptions {
|
|
|
12
12
|
limit?: number;
|
|
13
13
|
mergeWindowMs?: number;
|
|
14
14
|
}
|
|
15
|
+
export interface UndoRedoHistory {
|
|
16
|
+
subscribe: (listener: () => void) => () => void;
|
|
17
|
+
canUndo: () => boolean;
|
|
18
|
+
canRedo: () => boolean;
|
|
19
|
+
}
|
|
15
20
|
export interface UndoRedoManager<T> {
|
|
16
21
|
getState(): UndoRedoState<T>;
|
|
17
22
|
getPresent(): T;
|
|
@@ -21,5 +26,6 @@ export interface UndoRedoManager<T> {
|
|
|
21
26
|
canUndo(): boolean;
|
|
22
27
|
canRedo(): boolean;
|
|
23
28
|
clear(newPresent?: T): void;
|
|
29
|
+
subscribe(listener: () => void): () => void;
|
|
24
30
|
}
|
|
25
31
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/editor/history/types.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,UAAU,EAAE,CAAA;IACpB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,CAAC,EAAE,CAAA;CACZ;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,QAAQ,IAAI,aAAa,CAAC,CAAC,CAAC,CAAA;IAC5B,UAAU,IAAI,CAAC,CAAA;IACf,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvC,IAAI,IAAI,CAAC,GAAG,SAAS,CAAA;IACrB,IAAI,IAAI,CAAC,GAAG,SAAS,CAAA;IACrB,OAAO,IAAI,OAAO,CAAA;IAClB,OAAO,IAAI,OAAO,CAAA;IAClB,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/editor/history/types.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,UAAU,EAAE,CAAA;IACp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,CAAC,
|
|
1
|
+
{"version":3,"file":"undoRedoManager.d.ts","sourceRoot":"","sources":["../../../src/editor/history/undoRedoManager.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAA;AAK9E,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,YAAY,EAAE,CAAC,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,eAAe,CAAC,CAAC,CAAC,CAoGpB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ActivitySnapshot, UndoRedoOptions } from './types';
|
|
1
|
+
import { ActivitySnapshot, UndoRedoHistory, UndoRedoOptions } from './types';
|
|
2
2
|
export declare function useUndoRedo(initialState: ActivitySnapshot, options?: UndoRedoOptions): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
canRedo: boolean;
|
|
3
|
+
getPresent: () => ActivitySnapshot;
|
|
4
|
+
history: UndoRedoHistory;
|
|
6
5
|
pushState: (state: ActivitySnapshot, mergeKey?: string) => void;
|
|
7
6
|
undo: () => ActivitySnapshot | undefined;
|
|
8
7
|
redo: () => ActivitySnapshot | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUndoRedo.d.ts","sourceRoot":"","sources":["../../../src/editor/history/useUndoRedo.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"useUndoRedo.d.ts","sourceRoot":"","sources":["../../../src/editor/history/useUndoRedo.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAGjF,wBAAgB,WAAW,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,eAAe;;;uBAazE,gBAAgB,aAAa,MAAM;;;yBAKL,gBAAgB;EAIzD"}
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
export { useBlockEditorState, type UseBlockEditorStateOptions, type UseBlockEditorStateReturn, type AddComponentResult, type DeleteComponentResult, type DuplicateComponentResult, } from './state/useBlockEditorState';
|
|
2
|
+
export { type BlockDataStore, createBlockDataStore } from './state/blockDataStore';
|
|
3
|
+
export { BlockDataStoreContext, type BlockDataStoreOwner, useTemplateData, useTemplateDataSelector, } from './state/useBlockData';
|
|
2
4
|
export { applyTemplatePatch, type TemplatePatch } from './state/applyTemplatePatch';
|
|
3
|
-
export type { ActivitySnapshot } from './history/types';
|
|
5
|
+
export type { ActivitySnapshot, UndoRedoHistory } from './history/types';
|
|
6
|
+
export { type UndoRedoHistoryOwner, useUndoRedoState } from './state/useUndoRedoState';
|
|
7
|
+
export type { Selection, SelectionStore } from './state/selectionStore';
|
|
4
8
|
export type { TrayDropTarget, TreePath } from './document/utils';
|
|
5
9
|
export { DesignerItemAction } from './document/designerItemAction';
|
|
6
10
|
export { BlockContentEditor, type BlockContentEditorProps, BUILT_IN_TOOL_IDS, type BuiltInToolId, } from './BlockContentEditor';
|
|
7
|
-
export { DesignerArea, type DesignerAreaProps, DesignerCanvas, type DesignerCanvasProps, GridDndProvider, type GridDndProviderProps, DesignerChromeEnglish, type DesignerChromeTranslations, } from './canvas';
|
|
11
|
+
export { DesignerArea, type DesignerAreaProps, DesignerCanvas, type DesignerCanvasProps, GridDndProvider, type GridDndProviderProps, DesignerChromeEnglish, type DesignerChromeTranslations, CANVAS_WIDTH_VAR, } from './canvas';
|
|
8
12
|
export * from './sidebar/panel';
|
|
9
13
|
export * from './sidebar/DesignerNav';
|
|
14
|
+
export { EDITOR_CHROME_PROPS } from './sidebar/useDesignerSelectionFocus';
|
|
10
15
|
export { ComponentEditorForm, type ComponentEditorFormProps, DesignerFormEnglish, type DesignerFormTranslations, } from './sidebar/form';
|
|
11
|
-
export { BlockTray, type BlockTrayProps, ComponentsTray,
|
|
16
|
+
export { BlockTray, type BlockTrayProps, ComponentsTray, InteractiveTray, SkipToSelectedComponentLink, getTrayBlockDefinitionsByCategory, type TrayBlockDefinition, } from './sidebar/tray';
|
|
12
17
|
export { useDesignerSelectionFocus, type DesignerSelectionFocusHandlers, } from './sidebar/useDesignerSelectionFocus';
|
|
13
18
|
export { DesignerSidebarEnglish, type DesignerSidebarTranslations, } from './sidebar/sidebarTranslations';
|
|
14
19
|
export * from './preview';
|
|
15
|
-
export { BlockAIMenu, type BlockAIMenuProps, PreviewBlockModal, type PreviewBlockModalProps, useGenerateAltText, type AIInlineTemplateContentPayload, DesignerAIEnglish, type DesignerAITranslations, } from './ai';
|
|
20
|
+
export { BlockAIMenu, type BlockAIMenuProps, PreviewBlockModal, type PreviewBlockModalProps, useGenerateAltText, type AIInlineTemplateContentPayload, DesignerAIEnglish, type DesignerAITranslations, AIGenerationProvider, type AIGenerationProviderProps, type AIGenerationPhase, } from './ai';
|
|
16
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,EACL,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,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GtC,cAAc,WAAW,CAAA;AAGzB,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,kBAAkB,EAClB,KAAK,8BAA8B,EACnC,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,GACvB,MAAM,MAAM,CAAA"}
|
|
@@ -2,11 +2,12 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { BlockRegistry } from '../../../registry';
|
|
3
3
|
export interface ComponentEditorFormProps {
|
|
4
4
|
componentType: string;
|
|
5
|
-
componentProps: Record<string, unknown>;
|
|
6
5
|
componentId?: string;
|
|
6
|
+
/** Must write the block to the store before returning, as `engine.changeComponent` does: the
|
|
7
|
+
* form tells its own writes from outside ones by the synchronous store notification. */
|
|
7
8
|
onChange: (props: Record<string, unknown>, nodeId?: string) => void;
|
|
8
9
|
/** The host-composed registry the selected block resolves against. */
|
|
9
10
|
registry: BlockRegistry;
|
|
10
11
|
}
|
|
11
|
-
export declare function ComponentEditorForm({ componentType,
|
|
12
|
+
export declare function ComponentEditorForm({ componentType, componentId, onChange, registry, }: ComponentEditorFormProps): ReactElement | null;
|
|
12
13
|
//# sourceMappingURL=ComponentEditorForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentEditorForm.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/form/ComponentEditorForm.tsx"],"names":[],"mappings":"AAiCA,OAAO,EAEL,KAAK,YAAY,EAMlB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ComponentEditorForm.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/form/ComponentEditorForm.tsx"],"names":[],"mappings":"AAiCA,OAAO,EAEL,KAAK,YAAY,EAMlB,MAAM,OAAO,CAAA;AAad,OAAO,EAAE,KAAK,aAAa,EAAqB,MAAM,mBAAmB,CAAA;AAyRzE,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;4FACwF;IACxF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnE,sEAAsE;IACtE,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,EAAE,wBAAwB,GAAG,YAAY,GAAG,IAAI,CA2ThD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormMessage } from '@instructure/ui-form-field';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
import { Control, FieldError, FieldValues } from 'react-hook-form';
|
|
3
|
+
import { Control, FieldError, FieldValues, UseFormSubscribe } from 'react-hook-form';
|
|
4
4
|
import { FormFieldMetadata } from '../../../schema';
|
|
5
5
|
export interface FieldRenderProps {
|
|
6
6
|
metadata: FormFieldMetadata;
|
|
@@ -8,6 +8,7 @@ export interface FieldRenderProps {
|
|
|
8
8
|
fieldError?: FieldError;
|
|
9
9
|
onFieldChange: () => void;
|
|
10
10
|
setValue?: (name: string, value: any, options?: any) => void;
|
|
11
|
+
subscribe?: UseFormSubscribe<FieldValues>;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
/**
|
|
13
14
|
* True when this renderer is being shown inside a manage-layer sub-panel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldRendererUtils.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/form/fieldRendererUtils.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"fieldRendererUtils.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/form/fieldRendererUtils.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,aAAa,EAAE,MAAM,IAAI,CAAA;IAEzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;IAC5D,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,YAAY,CAAA;AAErE,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,WAAW,EAAE,CAGvE;AAED,wBAAgB,UAAU,IAAI,MAAM,CAEnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AltTextFieldRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/editor/sidebar/form/renderers/AltTextFieldRenderer.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"AltTextFieldRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/editor/sidebar/form/renderers/AltTextFieldRenderer.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAWzC,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,uBAAuB,CAAA;AAE/E,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,OAAO,EACP,UAAU,EACV,aAAa,EACb,QAAQ,EACR,QAAQ,GACT,EAAE,gBAAgB,GAAG,YAAY,CAkHjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { FieldRenderProps } from '../fieldRendererUtils';
|
|
3
|
-
export declare function AnswerArrayFieldRenderer({ metadata, control, fieldError, onFieldChange, }: FieldRenderProps): ReactElement;
|
|
3
|
+
export declare function AnswerArrayFieldRenderer({ metadata, control, fieldError, onFieldChange, subscribe, }: FieldRenderProps): ReactElement;
|
|
4
4
|
//# sourceMappingURL=AnswerArrayFieldRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnswerArrayFieldRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/editor/sidebar/form/renderers/AnswerArrayFieldRenderer.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,OAAO,CAAA;AAQnE,OAAO,EAAE,KAAK,gBAAgB,EAAgC,MAAM,uBAAuB,CAAA;AAU3F,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,OAAO,EACP,UAAU,EACV,aAAa,
|
|
1
|
+
{"version":3,"file":"AnswerArrayFieldRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/editor/sidebar/form/renderers/AnswerArrayFieldRenderer.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,OAAO,CAAA;AAQnE,OAAO,EAAE,KAAK,gBAAgB,EAAgC,MAAM,uBAAuB,CAAA;AAU3F,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,OAAO,EACP,UAAU,EACV,aAAa,EACb,SAAS,GACV,EAAE,gBAAgB,GAAG,YAAY,CAoMjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignerSideBar.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/DesignerSideBar.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAIL,KAAK,GAAG,EAQT,MAAM,OAAO,CAAA;AAYd,OAAO,KAAK,EAAE,oBAAoB,EAAQ,eAAe,EAAE,MAAM,SAAS,CAAA;AAuB1E,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,OAAO,UAAO,GAAG,OAAO,CAmB1D;AAED;;;;;GAKG;AACH,iBAAS,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAC7C,EACE,KAAK,EAAE,aAAa,EACpB,qBAAqB,EACrB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,oBAA2B,EAC3B,cAAc,EAAE,wBAAwB,EACxC,sBAAsB,EACtB,IAAI,EACJ,YAAY,EACZ,+BAAsC,EACtC,uBAAuB,EACvB,UAAU,EACV,MAAM,GACP,EAAE,oBAAoB,CAAC,EAAE,CAAC,EAC3B,GAAG,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"DesignerSideBar.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/DesignerSideBar.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAIL,KAAK,GAAG,EAQT,MAAM,OAAO,CAAA;AAYd,OAAO,KAAK,EAAE,oBAAoB,EAAQ,eAAe,EAAE,MAAM,SAAS,CAAA;AAuB1E,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,OAAO,UAAO,GAAG,OAAO,CAmB1D;AAED;;;;;GAKG;AACH,iBAAS,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAC7C,EACE,KAAK,EAAE,aAAa,EACpB,qBAAqB,EACrB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,oBAA2B,EAC3B,cAAc,EAAE,wBAAwB,EACxC,sBAAsB,EACtB,IAAI,EACJ,YAAY,EACZ,+BAAsC,EACtC,uBAAuB,EACvB,UAAU,EACV,MAAM,GACP,EAAE,oBAAoB,CAAC,EAAE,CAAC,EAC3B,GAAG,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,2CA6W9B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAuC,CAAC,EAAE,SAAS,MAAM,EACnF,KAAK,EAAE,oBAAoB,CAAC,EAAE,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAA;CAAE,KACjE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -3,9 +3,10 @@ import { ToolStyle } from './types';
|
|
|
3
3
|
interface ToolBodyProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
darkSurface?: boolean;
|
|
6
|
+
background?: string;
|
|
6
7
|
toolStyle?: ToolStyle;
|
|
7
8
|
}
|
|
8
9
|
/** The scrollable content region below the header. */
|
|
9
|
-
export declare function ToolBody({ children, darkSurface, toolStyle }: ToolBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function ToolBody({ children, darkSurface, background, toolStyle }: ToolBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=ToolBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBody.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/ToolBody.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,sDAAsD;AACtD,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,WAAmB,EAAE,SAAS,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"ToolBody.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/ToolBody.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,sDAAsD;AACtD,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,WAAmB,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,aAAa,2CAc/F"}
|
|
@@ -6,6 +6,8 @@ interface ToolContentContainerProps {
|
|
|
6
6
|
icon: ReactNode;
|
|
7
7
|
title: string;
|
|
8
8
|
variant?: ToolVariant;
|
|
9
|
+
background?: string;
|
|
10
|
+
bodyBackground?: string;
|
|
9
11
|
onClose?: () => void;
|
|
10
12
|
showCloseButton?: boolean;
|
|
11
13
|
onBack?: () => void;
|
|
@@ -24,6 +26,6 @@ interface ToolContentContainerProps {
|
|
|
24
26
|
* when there is no close button, e.g. the desktop panel). Escape closes the tool (ignoring
|
|
25
27
|
* Escape bubbling up from portaled descendants like popovers).
|
|
26
28
|
*/
|
|
27
|
-
export declare function ToolContentContainer({ id, headingId, icon, title, variant, onClose, showCloseButton, onBack, onToggleFullWidth, isFullWidth, isFullScreen, toolStyle, skipInitialFocus, onAfterInitialFocus, children, }: ToolContentContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function ToolContentContainer({ id, headingId, icon, title, variant, background, bodyBackground, onClose, showCloseButton, onBack, onToggleFullWidth, isFullWidth, isFullScreen, toolStyle, skipInitialFocus, onAfterInitialFocus, children, }: ToolContentContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
28
30
|
export {};
|
|
29
31
|
//# sourceMappingURL=ToolContentContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolContentContainer.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/ToolContentContainer.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAA;AAMtE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErD,UAAU,yBAAyB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,EAAE,EACF,SAAS,EACT,IAAI,EACJ,KAAK,EACL,OAAmB,EACnB,OAAO,EACP,eAAsB,EACtB,MAAM,EACN,iBAAiB,EACjB,WAAmB,EACnB,YAAoB,EACpB,SAAS,EACT,gBAAwB,EACxB,mBAAmB,EACnB,QAAQ,GACT,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ToolContentContainer.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/ToolContentContainer.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAA;AAMtE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErD,UAAU,yBAAyB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,EAAE,EACF,SAAS,EACT,IAAI,EACJ,KAAK,EACL,OAAmB,EACnB,UAAU,EACV,cAAc,EACd,OAAO,EACP,eAAsB,EACtB,MAAM,EACN,iBAAiB,EACjB,WAAmB,EACnB,YAAoB,EACpB,SAAS,EACT,gBAAwB,EACxB,mBAAmB,EACnB,QAAQ,GACT,EAAE,yBAAyB,2CAyI3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolHeaderActionsContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/ToolHeaderActionsContext.tsx"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AAEH,OAAO,EAAiB,KAAK,SAAS,EAAiC,MAAM,OAAO,CAAA;AACpF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAA;AAI5D,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"ToolHeaderActionsContext.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/ToolHeaderActionsContext.tsx"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AAEH,OAAO,EAAiB,KAAK,SAAS,EAAiC,MAAM,OAAO,CAAA;AACpF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAA;AAI5D,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAU9E;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,IAAI,6BAA6B,CAMpE;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,IAAI,6BAA6B,GAAG,SAAS,CAExF"}
|
|
@@ -20,6 +20,7 @@ export declare const PANEL_CLASS: {
|
|
|
20
20
|
readonly contentFullScreen: "bce-tool-content--full-screen";
|
|
21
21
|
readonly body: "bce-tool-body";
|
|
22
22
|
readonly bodyDark: "bce-tool-body--dark";
|
|
23
|
+
readonly bodyFrame: "bce-tool-body-frame";
|
|
23
24
|
readonly mobileOverlay: "bce-tool-mobile-overlay";
|
|
24
25
|
readonly mobileOverlayOpen: "bce-tool-mobile-overlay--open";
|
|
25
26
|
readonly mobileToolbar: "bce-tool-mobile-toolbar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelStyles.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/panelStyles.tsx"],"names":[],"mappings":"AAqBA;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"panelStyles.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/panelStyles.tsx"],"names":[],"mappings":"AAqBA;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBd,CAAA;AAsBV,uEAAuE;AACvE,wBAAgB,iBAAiB,4CAwKhC"}
|
|
@@ -22,8 +22,11 @@ export interface Tool<ID extends string> {
|
|
|
22
22
|
activeIcon?: ReactNode;
|
|
23
23
|
/** Surface treatment for the content area. Defaults to `default`. */
|
|
24
24
|
variant?: ToolVariant;
|
|
25
|
-
/** Background override for the
|
|
25
|
+
/** Background override for the panel surface around the header and body (e.g. a host tool's
|
|
26
|
+
* branded panel). Any CSS `background` value, gradients included; overrides `variant`'s fill. */
|
|
26
27
|
background?: string;
|
|
28
|
+
/** Background override for the scrollable body under the header. Same rules as `background`. */
|
|
29
|
+
bodyBackground?: string;
|
|
27
30
|
/** Seed width (px) when this tool opens; clamped to min/max, overridden once the user resizes. */
|
|
28
31
|
expandedWidth?: number;
|
|
29
32
|
content?: ReactNode;
|
|
@@ -79,5 +82,8 @@ export interface ToolStyle {
|
|
|
79
82
|
export interface ToolHeaderActionsContextValue {
|
|
80
83
|
setHeaderActions: (actions: ReactNode) => void;
|
|
81
84
|
headerActions: ReactNode;
|
|
85
|
+
/** A layer over the whole visible body, outside its scroller (the AI-generation overlay). */
|
|
86
|
+
setBodyOverlay: (overlay: ReactNode) => void;
|
|
87
|
+
bodyOverlay: ReactNode;
|
|
82
88
|
}
|
|
83
89
|
//# sourceMappingURL=types.d.ts.map
|