@instructure/platform-block-content-editor 4.0.1 → 4.1.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 +16 -1
- package/dist/components/MediaPlaceholder/MediaPlaceholder.d.ts +1 -1
- package/dist/components/MediaPlaceholder/MediaPlaceholder.d.ts.map +1 -1
- package/dist/components/blocks/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/blocks/Accordion/accordionPropsSchema.d.ts +7 -7
- package/dist/components/blocks/Accordion/createAccordionBlock.d.ts +1 -1
- package/dist/components/blocks/Accordion/getAccordionViewProps.d.ts +13 -11
- package/dist/components/blocks/Accordion/getAccordionViewProps.d.ts.map +1 -1
- package/dist/components/blocks/Banner/bannerPropsSchema.d.ts +9 -9
- package/dist/components/blocks/Banner/createBannerBlock.d.ts +3 -3
- package/dist/components/blocks/Banner/getBannerViewProps.d.ts +2 -2
- package/dist/components/blocks/Banner/getBannerViewProps.d.ts.map +1 -1
- package/dist/components/blocks/CodeBlock/codeBlockPropsSchema.d.ts +3 -3
- package/dist/components/blocks/CodeBlock/createCodeBlock.d.ts +1 -1
- package/dist/components/blocks/CodeBlock/getCodeBlockViewProps.d.ts +1 -1
- package/dist/components/blocks/CodeBlock/getCodeBlockViewProps.d.ts.map +1 -1
- package/dist/components/blocks/FlashCards/getFlashCardsViewProps.d.ts +1 -1
- package/dist/components/blocks/FlashCards/getFlashCardsViewProps.d.ts.map +1 -1
- package/dist/components/blocks/ImageBlock/createImageBlock.d.ts +2 -2
- package/dist/components/blocks/ImageBlock/imageBlockPropsSchema.d.ts +6 -6
- package/dist/components/blocks/InsetFocusRing.d.ts +14 -0
- package/dist/components/blocks/InsetFocusRing.d.ts.map +1 -0
- package/dist/components/blocks/KnowledgeCheck/createKnowledgeCheckBlock.d.ts +1 -1
- package/dist/components/blocks/KnowledgeCheck/getKnowledgeCheckViewProps.d.ts +1 -1
- package/dist/components/blocks/KnowledgeCheck/getKnowledgeCheckViewProps.d.ts.map +1 -1
- package/dist/components/blocks/KnowledgeCheck/knowledgeCheckPropsSchema.d.ts +7 -7
- package/dist/components/blocks/MixAndMatch/MatchCard.d.ts +3 -1
- package/dist/components/blocks/MixAndMatch/MatchCard.d.ts.map +1 -1
- package/dist/components/blocks/MixAndMatch/MixAndMatch.d.ts +4 -0
- package/dist/components/blocks/MixAndMatch/MixAndMatch.d.ts.map +1 -1
- package/dist/components/blocks/MixAndMatch/getMixAndMatchViewProps.d.ts +4 -2
- package/dist/components/blocks/MixAndMatch/getMixAndMatchViewProps.d.ts.map +1 -1
- package/dist/components/blocks/Quote/createQuoteBlock.d.ts +1 -1
- package/dist/components/blocks/Quote/quotePropsSchema.d.ts +3 -3
- package/dist/components/blocks/TabsBlock/createTabsBlock.d.ts +5 -5
- package/dist/components/blocks/TabsBlock/getTabsBlockViewProps.d.ts +4 -6
- package/dist/components/blocks/TabsBlock/getTabsBlockViewProps.d.ts.map +1 -1
- package/dist/components/blocks/TabsBlock/tabsBlockPropsSchema.d.ts +19 -19
- package/dist/components/blocks/VideoBlock/createVideoBlock.d.ts +2 -2
- package/dist/components/blocks/VideoBlock/videoBlockPropsSchema.d.ts +6 -6
- package/dist/components/blocks/brandTheming.d.ts +4 -4
- package/dist/components/blocks/brandTheming.d.ts.map +1 -1
- package/dist/components/blocks/commonViewProps.d.ts +1 -1
- package/dist/components/blocks/commonViewProps.d.ts.map +1 -1
- package/dist/components/blocks/commonViewProps.test.d.ts +2 -0
- package/dist/components/blocks/commonViewProps.test.d.ts.map +1 -0
- package/dist/contexts/RichTextEditorContext.d.ts +2 -0
- package/dist/contexts/RichTextEditorContext.d.ts.map +1 -1
- package/dist/editor/BlockContentEditor.d.ts +11 -1
- package/dist/editor/BlockContentEditor.d.ts.map +1 -1
- package/dist/editor/ai/BlockAIMenu.d.ts +1 -1
- package/dist/editor/ai/BlockAIMenu.d.ts.map +1 -1
- package/dist/editor/ai/BlockAIMenuContent.d.ts.map +1 -1
- package/dist/editor/ai/isItemEmpty.d.ts.map +1 -1
- package/dist/editor/ai/useBlockAIPopover.d.ts.map +1 -1
- package/dist/editor/ai/useGenerateAltText.d.ts +2 -2
- package/dist/editor/ai/useGenerateAltText.d.ts.map +1 -1
- package/dist/editor/canvas/DesignerArea.d.ts +7 -2
- package/dist/editor/canvas/DesignerArea.d.ts.map +1 -1
- package/dist/editor/canvas/DesignerCanvas.d.ts +4 -2
- package/dist/editor/canvas/DesignerCanvas.d.ts.map +1 -1
- package/dist/editor/canvas/GridDndProvider.d.ts +4 -1
- package/dist/editor/canvas/GridDndProvider.d.ts.map +1 -1
- package/dist/editor/canvas/GridItemChild.d.ts +0 -4
- package/dist/editor/canvas/GridItemChild.d.ts.map +1 -1
- package/dist/editor/canvas/GridItemContainer.d.ts +1 -5
- package/dist/editor/canvas/GridItemContainer.d.ts.map +1 -1
- package/dist/editor/canvas/GridViewer.d.ts +7 -3
- package/dist/editor/canvas/GridViewer.d.ts.map +1 -1
- package/dist/editor/canvas/TwoColumnDesigner.d.ts.map +1 -1
- package/dist/editor/canvas/canvasTranslations.d.ts +6 -0
- package/dist/editor/canvas/canvasTranslations.d.ts.map +1 -1
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/sidebar/DesignerNav.d.ts.map +1 -1
- package/dist/editor/sidebar/form/ComponentEditorForm.d.ts.map +1 -1
- package/dist/editor/sidebar/form/fieldRendererUtils.d.ts +3 -1
- package/dist/editor/sidebar/form/fieldRendererUtils.d.ts.map +1 -1
- package/dist/editor/sidebar/form/fieldRenderers.d.ts.map +1 -1
- package/dist/editor/sidebar/form/formTranslations.d.ts +4 -0
- package/dist/editor/sidebar/form/formTranslations.d.ts.map +1 -1
- package/dist/editor/sidebar/form/formUtils.test.d.ts +2 -0
- package/dist/editor/sidebar/form/formUtils.test.d.ts.map +1 -0
- package/dist/editor/sidebar/form/renderers/AltTextFieldRenderer.d.ts +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/form/renderers/ObjectArrayFieldRenderer.d.ts +1 -1
- package/dist/editor/sidebar/form/renderers/ObjectArrayFieldRenderer.d.ts.map +1 -1
- package/dist/editor/sidebar/form/uploaders/FileUploader.d.ts +3 -1
- package/dist/editor/sidebar/form/uploaders/FileUploader.d.ts.map +1 -1
- package/dist/editor/sidebar/form/uploaders/ImageUploader.d.ts +2 -1
- package/dist/editor/sidebar/form/uploaders/ImageUploader.d.ts.map +1 -1
- package/dist/editor/sidebar/form/uploaders/VideoUploader.d.ts +2 -1
- package/dist/editor/sidebar/form/uploaders/VideoUploader.d.ts.map +1 -1
- package/dist/editor/sidebar/panel/types.d.ts +2 -1
- package/dist/editor/sidebar/panel/types.d.ts.map +1 -1
- package/dist/editor/sidebar/sidebarTranslations.d.ts +4 -0
- package/dist/editor/sidebar/sidebarTranslations.d.ts.map +1 -1
- package/dist/editor/sidebar/tray/BlockTray.d.ts.map +1 -1
- package/dist/editor/state/editorAccess.d.ts +14 -0
- package/dist/editor/state/editorAccess.d.ts.map +1 -0
- package/dist/index.js +6740 -6625
- package/dist/registry/templateTypes.d.ts.map +1 -1
- package/dist/schema/schemaRegistry.d.ts +16 -16
- package/dist/utils/shuffleCards.test.d.ts +2 -0
- package/dist/utils/shuffleCards.test.d.ts.map +1 -0
- package/locales/en.json +7 -0
- package/package.json +28 -27
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const createTabsBlock: (options: import('../../..').BlockFactoryOptions<import('./tabsBlockTranslations').TabsBlockTranslations>) => import('../../..').BlockRegistryEntry<{
|
|
7
7
|
tabs: {
|
|
8
|
+
label: string;
|
|
8
9
|
id: string;
|
|
9
10
|
content: string;
|
|
10
|
-
label: string;
|
|
11
11
|
}[];
|
|
12
|
-
|
|
12
|
+
style?: "simple" | "folder" | "segments" | undefined;
|
|
13
13
|
title?: string | undefined;
|
|
14
|
+
color?: "light" | "dark" | "neutral" | undefined;
|
|
15
|
+
outline?: "none" | "outline" | undefined;
|
|
14
16
|
variant?: "h2" | "h3" | "h4" | undefined;
|
|
15
17
|
supportingText?: string | undefined;
|
|
16
18
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
17
|
-
style?: "simple" | "folder" | "segments" | undefined;
|
|
18
|
-
color?: "light" | "dark" | "neutral" | undefined;
|
|
19
19
|
tabsRowBackground?: "none" | "filled" | undefined;
|
|
20
20
|
tabsWidth?: "relative" | "full-width" | undefined;
|
|
21
|
-
alignment?: "
|
|
21
|
+
alignment?: "center" | "left" | undefined;
|
|
22
22
|
selectedTabStyle?: "outline" | "filled" | undefined;
|
|
23
23
|
selectedTabCorners?: "rounded" | "square" | "pill" | undefined;
|
|
24
24
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Flex } from '@instructure/ui-flex';
|
|
2
|
-
import { View } from '@instructure/ui-view';
|
|
1
|
+
import { Flex } from '@instructure/ui-flex/latest';
|
|
2
|
+
import { View } from '@instructure/ui-view/latest';
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
|
-
import { BlockTextColor } from '../brandTheming';
|
|
4
|
+
import { BlockTextColor, BlockTextThemeOverride } from '../brandTheming';
|
|
5
5
|
import { ColorTheme, CornerStyle } from '../commonSchemas';
|
|
6
6
|
import { SelectedTabCorners, SelectedTabStyle, TabsAlignment, TabsOutline, TabsRowBackground, TabsStyle, TabsWidth } from './tabsBlockPropsSchema';
|
|
7
7
|
type ViewProps = ComponentProps<typeof View>;
|
|
@@ -17,9 +17,7 @@ export interface TabViewProps {
|
|
|
17
17
|
/** Token accepted by both `Text` and `Heading`; omitted when the default is right. */
|
|
18
18
|
textColor?: BlockTextColor;
|
|
19
19
|
/** Set only when a brand color themes the label. */
|
|
20
|
-
textThemeOverride?:
|
|
21
|
-
primaryColor: string;
|
|
22
|
-
};
|
|
20
|
+
textThemeOverride?: BlockTextThemeOverride;
|
|
23
21
|
}
|
|
24
22
|
export interface TabsBlockViewProps {
|
|
25
23
|
container: Pick<ViewProps, 'background' | 'borderWidth' | 'borderColor' | 'borderRadius' | 'padding'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTabsBlockViewProps.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/TabsBlock/getTabsBlockViewProps.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getTabsBlockViewProps.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/TabsBlock/getTabsBlockViewProps.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAE5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,SAAS,EACV,MAAM,wBAAwB,CAAA;AAE/B,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAA;AAE5C,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,IAAI,CACR,SAAS,EACT,YAAY,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,SAAS,GAAG,eAAe,CAC5F,CAAA;IACD,sFAAsF;IACtF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String;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
label: string;
|
|
14
15
|
id: string;
|
|
15
16
|
content: string;
|
|
16
|
-
label: string;
|
|
17
17
|
}, {
|
|
18
|
+
label: string;
|
|
18
19
|
id: string;
|
|
19
20
|
content: string;
|
|
20
|
-
label: string;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
23
23
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -28,13 +28,13 @@ export declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
28
28
|
label: z.ZodString;
|
|
29
29
|
content: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
label: string;
|
|
31
32
|
id: string;
|
|
32
33
|
content: string;
|
|
33
|
-
label: string;
|
|
34
34
|
}, {
|
|
35
|
+
label: string;
|
|
35
36
|
id: string;
|
|
36
37
|
content: string;
|
|
37
|
-
label: string;
|
|
38
38
|
}>, "many">;
|
|
39
39
|
style: z.ZodOptional<z.ZodDefault<z.ZodEnum<["simple", "folder", "segments"]>>>;
|
|
40
40
|
outline: z.ZodOptional<z.ZodDefault<z.ZodEnum<["outline", "none"]>>>;
|
|
@@ -47,38 +47,38 @@ export declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
47
47
|
selectedTabCorners: z.ZodOptional<z.ZodDefault<z.ZodEnum<["pill", "rounded", "square"]>>>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
tabs: {
|
|
50
|
+
label: string;
|
|
50
51
|
id: string;
|
|
51
52
|
content: string;
|
|
52
|
-
label: string;
|
|
53
53
|
}[];
|
|
54
|
-
|
|
54
|
+
style?: "simple" | "folder" | "segments" | undefined;
|
|
55
55
|
title?: string | undefined;
|
|
56
|
+
color?: "light" | "dark" | "neutral" | undefined;
|
|
57
|
+
outline?: "none" | "outline" | undefined;
|
|
56
58
|
variant?: "h2" | "h3" | "h4" | undefined;
|
|
57
59
|
supportingText?: string | undefined;
|
|
58
60
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
59
|
-
style?: "simple" | "folder" | "segments" | undefined;
|
|
60
|
-
color?: "light" | "dark" | "neutral" | undefined;
|
|
61
61
|
tabsRowBackground?: "none" | "filled" | undefined;
|
|
62
62
|
tabsWidth?: "relative" | "full-width" | undefined;
|
|
63
|
-
alignment?: "
|
|
63
|
+
alignment?: "center" | "left" | undefined;
|
|
64
64
|
selectedTabStyle?: "outline" | "filled" | undefined;
|
|
65
65
|
selectedTabCorners?: "rounded" | "square" | "pill" | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
tabs: {
|
|
68
|
+
label: string;
|
|
68
69
|
id: string;
|
|
69
70
|
content: string;
|
|
70
|
-
label: string;
|
|
71
71
|
}[];
|
|
72
|
-
|
|
72
|
+
style?: "simple" | "folder" | "segments" | undefined;
|
|
73
73
|
title?: string | undefined;
|
|
74
|
+
color?: "light" | "dark" | "neutral" | undefined;
|
|
75
|
+
outline?: "none" | "outline" | undefined;
|
|
74
76
|
variant?: "h2" | "h3" | "h4" | undefined;
|
|
75
77
|
supportingText?: string | undefined;
|
|
76
78
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
77
|
-
style?: "simple" | "folder" | "segments" | undefined;
|
|
78
|
-
color?: "light" | "dark" | "neutral" | undefined;
|
|
79
79
|
tabsRowBackground?: "none" | "filled" | undefined;
|
|
80
80
|
tabsWidth?: "relative" | "full-width" | undefined;
|
|
81
|
-
alignment?: "
|
|
81
|
+
alignment?: "center" | "left" | undefined;
|
|
82
82
|
selectedTabStyle?: "outline" | "filled" | undefined;
|
|
83
83
|
selectedTabCorners?: "rounded" | "square" | "pill" | undefined;
|
|
84
84
|
}>;
|
|
@@ -107,20 +107,20 @@ export type SelectedTabCorners = z.infer<typeof SelectedTabCornersSchema>;
|
|
|
107
107
|
export declare const TabsBlockDefaultProps: TabsBlockProps;
|
|
108
108
|
export declare const RegisteredTabsBlockPropsSchema: import('../../..').RegisteredComponentSchema<{
|
|
109
109
|
tabs: {
|
|
110
|
+
label: string;
|
|
110
111
|
id: string;
|
|
111
112
|
content: string;
|
|
112
|
-
label: string;
|
|
113
113
|
}[];
|
|
114
|
-
|
|
114
|
+
style?: "simple" | "folder" | "segments" | undefined;
|
|
115
115
|
title?: string | undefined;
|
|
116
|
+
color?: "light" | "dark" | "neutral" | undefined;
|
|
117
|
+
outline?: "none" | "outline" | undefined;
|
|
116
118
|
variant?: "h2" | "h3" | "h4" | undefined;
|
|
117
119
|
supportingText?: string | undefined;
|
|
118
120
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
119
|
-
style?: "simple" | "folder" | "segments" | undefined;
|
|
120
|
-
color?: "light" | "dark" | "neutral" | undefined;
|
|
121
121
|
tabsRowBackground?: "none" | "filled" | undefined;
|
|
122
122
|
tabsWidth?: "relative" | "full-width" | undefined;
|
|
123
|
-
alignment?: "
|
|
123
|
+
alignment?: "center" | "left" | undefined;
|
|
124
124
|
selectedTabStyle?: "outline" | "filled" | undefined;
|
|
125
125
|
selectedTabCorners?: "rounded" | "square" | "pill" | undefined;
|
|
126
126
|
}>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* `VideoBlockTranslations` here; anything omitted falls back to bundled English.
|
|
5
5
|
*/
|
|
6
6
|
export declare const createVideoBlock: (options: import('../../..').BlockFactoryOptions<import('./videoBlockTranslations').VideoBlockTranslations>) => import('../../..').BlockRegistryEntry<{
|
|
7
|
+
source: "link" | "file";
|
|
7
8
|
alt: string;
|
|
8
9
|
size: number;
|
|
9
|
-
|
|
10
|
-
align: "left" | "center" | "right";
|
|
10
|
+
align: "center" | "left" | "right";
|
|
11
11
|
asset_id: string;
|
|
12
12
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
13
13
|
video_url?: string | undefined;
|
|
@@ -9,30 +9,30 @@ export declare const VideoBlockPropsSchema: z.ZodObject<{
|
|
|
9
9
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
10
10
|
cornerStyle: z.ZodOptional<z.ZodDefault<z.ZodEnum<["rounded", "square"]>>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
source: "link" | "file";
|
|
12
13
|
alt: string;
|
|
13
14
|
size: number;
|
|
14
|
-
|
|
15
|
-
align: "left" | "center" | "right";
|
|
15
|
+
align: "center" | "left" | "right";
|
|
16
16
|
asset_id: string;
|
|
17
17
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
18
18
|
video_url?: string | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
alt: string;
|
|
21
21
|
asset_id: string;
|
|
22
|
+
source?: "link" | "file" | undefined;
|
|
22
23
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
23
24
|
size?: number | undefined;
|
|
24
|
-
|
|
25
|
-
align?: "left" | "center" | "right" | undefined;
|
|
25
|
+
align?: "center" | "left" | "right" | undefined;
|
|
26
26
|
video_url?: string | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type VideoBlockProps = z.infer<typeof VideoBlockPropsSchema>;
|
|
29
29
|
export type VideoSource = z.infer<typeof VideoSourceSchema>;
|
|
30
30
|
export declare const VideoBlockDefaultProps: VideoBlockProps;
|
|
31
31
|
export declare const RegisteredVideoBlockPropsSchema: import('../../..').RegisteredComponentSchema<{
|
|
32
|
+
source: "link" | "file";
|
|
32
33
|
alt: string;
|
|
33
34
|
size: number;
|
|
34
|
-
|
|
35
|
-
align: "left" | "center" | "right";
|
|
35
|
+
align: "center" | "left" | "right";
|
|
36
36
|
asset_id: string;
|
|
37
37
|
cornerStyle?: "rounded" | "square" | undefined;
|
|
38
38
|
video_url?: string | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { View } from '@instructure/ui-view';
|
|
1
|
+
import { View } from '@instructure/ui-view/latest';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
3
|
type ViewProps = ComponentProps<typeof View>;
|
|
4
4
|
type ViewThemeOverride = ViewProps['themeOverride'];
|
|
5
5
|
/**
|
|
6
6
|
* The text theme override a block applies. Only the primary text color is
|
|
7
|
-
* recolored, and `
|
|
7
|
+
* recolored, and `baseColor` is a key both InstUI `Text` and `Heading` accept,
|
|
8
8
|
* so the same override works on either.
|
|
9
9
|
*/
|
|
10
|
-
type BlockTextThemeOverride = {
|
|
11
|
-
|
|
10
|
+
export type BlockTextThemeOverride = {
|
|
11
|
+
baseColor: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Text color tokens accepted by both InstUI `Text` and `Heading`, so a block can
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brandTheming.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/brandTheming.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"brandTheming.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/brandTheming.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAA;AAC5C,KAAK,iBAAiB,GAAG,SAAS,CAAC,eAAe,CAAC,CAAA;AAEnD;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;AAE9F;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ,UAAU,EAAE,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAA;QAChD,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAA;QAClD,WAAW,EAAE,SAAS,CAAC,a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;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAW7D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,GACjD,OAAO,CAKT;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAUlD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,GACjD,OAAO,CAWT;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAWhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonViewProps.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/commonViewProps.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"commonViewProps.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/commonViewProps.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAIL,KAAK,UAAU,EAEf,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAErE,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAA;AAE5C,0DAA0D;AAC1D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAIzE,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAA;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAA;CACrD;AAwBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAK5F;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAIrC,CAAA;AAmDD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,UAAU,EACjB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAYT;AAmBD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;CACvB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,GAClB,eAAe,CAiBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonViewProps.test.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/commonViewProps.test.ts"],"names":[],"mappings":""}
|
|
@@ -16,6 +16,8 @@ export interface RichTextEditorProps {
|
|
|
16
16
|
id: string;
|
|
17
17
|
/** Optional editor height (CSS length), e.g. `"400px"`. */
|
|
18
18
|
height?: string;
|
|
19
|
+
/** Shows the content without letting the author change it. Can change while mounted. */
|
|
20
|
+
readOnly?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export type RichTextEditorComponent = ComponentType<RichTextEditorProps>;
|
|
21
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditorContext.d.ts","sourceRoot":"","sources":["../../src/contexts/RichTextEditorContext.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAA;AAErE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"RichTextEditorContext.d.ts","sourceRoot":"","sources":["../../src/contexts/RichTextEditorContext.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAA;AAErE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAA;AAExE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,8DAAgE,CAAA;AAElG,eAAO,MAAM,iBAAiB,QAAO,uBAAuB,GAAG,SAC5B,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { BlockRegistry } from '../registry';
|
|
2
3
|
import { PreviewViewport } from './preview';
|
|
3
4
|
import { Tool } from './sidebar/panel/types';
|
|
5
|
+
import { EditorAccess } from './state/editorAccess';
|
|
4
6
|
import { UseBlockEditorStateReturn } from './state/useBlockEditorState';
|
|
5
7
|
/** The trays the package ships. A host appends its own tools (widget tray, AI assistant). */
|
|
6
8
|
export declare const BUILT_IN_TOOL_IDS: readonly ["components", "interactive"];
|
|
@@ -49,6 +51,14 @@ export interface BlockContentEditorProps<HostToolId extends string = never> {
|
|
|
49
51
|
* Opening a block's settings from the canvas is not routed through here.
|
|
50
52
|
*/
|
|
51
53
|
onBeforeToolChange?: (nextToolId: BuiltInToolId | HostToolId | null, proceed: () => void) => void;
|
|
54
|
+
/**
|
|
55
|
+
* What the author may change. `content-only` locks the layout: blocks can't be added, removed,
|
|
56
|
+
* reordered, or duplicated, but their settings stay editable. `read-only` also makes the
|
|
57
|
+
* settings form read-only. Defaults to `editable`, and can change at any time without a remount.
|
|
58
|
+
*/
|
|
59
|
+
access?: EditorAccess;
|
|
60
|
+
/** Shown on the canvas while the document has no blocks. The host picks copy that fits `access`. */
|
|
61
|
+
emptyState?: ReactNode;
|
|
52
62
|
}
|
|
53
63
|
/**
|
|
54
64
|
* The authoring editor: the tool-panel sidebar over the drag-and-drop canvas, wired to the
|
|
@@ -62,5 +72,5 @@ export interface BlockContentEditorProps<HostToolId extends string = never> {
|
|
|
62
72
|
* place — this composition's layout call; `PreviewArea` stays standalone for a host that wants
|
|
63
73
|
* its own presentation.
|
|
64
74
|
*/
|
|
65
|
-
export declare function BlockContentEditor<HostToolId extends string = never>({ engine, registry, tools, builtInToolIds, initialToolId, height, hasExpandPanelButton, isPreviewOn, previewViewport, isEditorOverlayOpen, onBeforeToolChange, }: BlockContentEditorProps<HostToolId>): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export declare function BlockContentEditor<HostToolId extends string = never>({ engine, registry, tools, builtInToolIds, initialToolId, height, hasExpandPanelButton, isPreviewOn, previewViewport, isEditorOverlayOpen, onBeforeToolChange, access, emptyState, }: BlockContentEditorProps<HostToolId>): import("react/jsx-runtime").JSX.Element;
|
|
66
76
|
//# sourceMappingURL=BlockContentEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockContentEditor.d.ts","sourceRoot":"","sources":["../../src/editor/BlockContentEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockContentEditor.d.ts","sourceRoot":"","sources":["../../src/editor/BlockContentEditor.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,KAAK,aAAa,EAAqB,MAAM,aAAa,CAAA;AAMnE,OAAO,EAAkC,KAAK,eAAe,EAAmB,MAAM,WAAW,CAAA;AAIjG,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAMjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,6FAA6F;AAC7F,eAAO,MAAM,iBAAiB,wCAAyC,CAAA;AACvE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAkC9D,MAAM,WAAW,uBAAuB,CAAC,UAAU,SAAS,MAAM,GAAG,KAAK;IACxE;+FAC2F;IAC3F,MAAM,EAAE,yBAAyB,CAAA;IACjC,qGAAqG;IACrG,QAAQ,EAAE,aAAa,CAAA;IACvB;;;;wEAIoE;IACpE,KAAK,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAA;IAC1B;;4BAEwB;IACxB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAA;IAChC;qDACiD;IACjD,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,CAAA;IAC1C,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;uFACmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;mGAC+F;IAC/F,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAA;IACnC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,GAAG,UAAU,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;IACjG;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oGAAoG;IACpG,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,SAAS,MAAM,GAAG,KAAK,EAAE,EACpE,MAAM,EACN,QAAQ,EACR,KAAK,EACL,cAAuC,EACvC,aAAa,EACb,MAAM,EACN,oBAAoB,EACpB,WAAmB,EACnB,eAA2C,EAC3C,mBAAmB,EACnB,kBAAkB,EAClB,MAAM,EACN,UAAU,GACX,EAAE,uBAAuB,CAAC,UAAU,CAAC,2CAiIrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockAIMenu.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/BlockAIMenu.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BlockAIMenu.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/BlockAIMenu.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,KAAK,cAAc,EAA4C,MAAM,OAAO,CAAA;AAErF,OAAO,KAAK,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAA;AAU7E,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACpD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,iGAAiG;IACjG,iBAAiB,EAAE,aAAa,CAAA;IAChC,kGAAkG;IAClG,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IAC1C;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,WAAW,CAAC,CAAA;CACxD;AAED,eAAO,MAAM,WAAW,GAAI,wNAgBzB,gBAAgB,mDAkNlB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockAIMenuContent.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/BlockAIMenuContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockAIMenuContent.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/BlockAIMenuContent.tsx"],"names":[],"mappings":"AA6CA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,eAAe,GAAG,sBAAsB,CAAA;AA4DnG,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,QAAQ,CAAA;IACd,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACnC,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,2FAA2F;IAC3F,UAAU,EAAE,OAAO,CAAA;IACnB,6FAA6F;IAC7F,OAAO,EAAE,MAAM,IAAI,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,eAAO,MAAM,kBAAkB,GAAI,4KAehC,uBAAuB,4CAsPzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isItemEmpty.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/isItemEmpty.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,iBAAiB,EAAiB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"isItemEmpty.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/isItemEmpty.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,iBAAiB,EAAiB,MAAM,cAAc,CAAA;AA8CpE;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,EACjD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GACxC,OAAO,CAKT;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,OAAO,CAI5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBlockAIPopover.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/useBlockAIPopover.ts"],"names":[],"mappings":"AAyBA,UAAU,sBAAsB;IAC9B,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACpD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,oFAO/B,sBAAsB;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"useBlockAIPopover.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/useBlockAIPopover.ts"],"names":[],"mappings":"AAyBA,UAAU,sBAAsB;IAC9B,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACpD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,oFAO/B,sBAAsB;;;;;;;;;+BA6DiB,MAAM;;uCAwBE,MAAM;;;CAgDvD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generates image alt text via the injected AI-action seam: reads a `File`/`Blob` to base64 and
|
|
3
|
-
* sends the `generate_alt_text` tool, returning the `alt_text` string. Reports failure
|
|
4
|
-
* `error` rather than throwing. Inert (returns null) when no seam is provided.
|
|
3
|
+
* sends the `generate_alt_text` tool, returning the non-blank `alt_text` string. Reports failure
|
|
4
|
+
* through `error` rather than throwing. Inert (returns null) when no seam is provided.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useGenerateAltText(): {
|
|
7
7
|
isLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGenerateAltText.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/useGenerateAltText.ts"],"names":[],"mappings":"AAmDA;;;;GAIG;AACH,wBAAgB,kBAAkB;;;4BAMK,IAAI,GAAG,IAAI,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useGenerateAltText.d.ts","sourceRoot":"","sources":["../../../src/editor/ai/useGenerateAltText.ts"],"names":[],"mappings":"AAmDA;;;;GAIG;AACH,wBAAgB,kBAAkB;;;4BAMK,IAAI,GAAG,IAAI,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;EA0C1E"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
3
3
|
import { TrayDropTarget, TreePath } from '../document/utils';
|
|
4
4
|
import { BlockDataStore } from '../state/blockDataStore';
|
|
5
|
+
import { EditorAccess } from '../state/editorAccess';
|
|
5
6
|
import { SelectionStore } from '../state/selectionStore';
|
|
6
7
|
export interface DesignerAreaProps {
|
|
7
8
|
/** The layout tree to author. */
|
|
@@ -27,6 +28,10 @@ export interface DesignerAreaProps {
|
|
|
27
28
|
/** Optional external ref to the canvas content element, so an orchestrator can wire the
|
|
28
29
|
* canvas↔panel selection-focus coordination (`useDesignerSelectionFocus`). */
|
|
29
30
|
canvasRef?: RefObject<HTMLDivElement>;
|
|
31
|
+
/** What the author may change. Defaults to `editable`. */
|
|
32
|
+
access?: EditorAccess;
|
|
33
|
+
/** Shown on the canvas while the document has no blocks. */
|
|
34
|
+
emptyState?: ReactNode;
|
|
30
35
|
}
|
|
31
36
|
/**
|
|
32
37
|
* The drag-and-drop authoring surface, self-contained with its own DnD context. Renders a
|
|
@@ -36,5 +41,5 @@ export interface DesignerAreaProps {
|
|
|
36
41
|
* host that wants tray drag sources to reach the canvas across a shared context composes
|
|
37
42
|
* `GridDndProvider` around both the sidebar and a bare `DesignerCanvas` instead.
|
|
38
43
|
*/
|
|
39
|
-
export declare function DesignerArea({ templateLayout, store, componentRegistry, selection, onLayoutChange, onSelectComponent, onAddComponent, onDeleteNode, onDuplicateNode, onAIApply, canvasRef: externalCanvasRef, }: DesignerAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function DesignerArea({ templateLayout, store, componentRegistry, selection, onLayoutChange, onSelectComponent, onAddComponent, onDeleteNode, onDuplicateNode, onAIApply, canvasRef: externalCanvasRef, access, emptyState, }: DesignerAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
40
45
|
//# 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;
|
|
1
|
+
{"version":3,"file":"DesignerArea.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/DesignerArea.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;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E,SAAS,CAAC,cAAc,CAAC,CAAA;IACrC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB;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,EAC5B,MAAM,EACN,UAAU,GACX,EAAE,iBAAiB,2CA4BnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
3
3
|
import { TreePath } from '../document/utils';
|
|
4
4
|
export interface DesignerCanvasProps {
|
|
@@ -19,6 +19,8 @@ export interface DesignerCanvasProps {
|
|
|
19
19
|
/** Optional external ref to the canvas content element, so an orchestrator can wire the
|
|
20
20
|
* canvas↔panel selection-focus coordination (`useDesignerSelectionFocus`). */
|
|
21
21
|
canvasRef?: RefObject<HTMLDivElement>;
|
|
22
|
+
/** Shown on the canvas while the document has no blocks, and hidden during a drag. */
|
|
23
|
+
emptyState?: ReactNode;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* The authoring canvas *without* its own DnD context. It reads DnD state from an ambient
|
|
@@ -27,5 +29,5 @@ export interface DesignerCanvasProps {
|
|
|
27
29
|
* and renders this. Turns on `DesignerModeContext` for the blocks it renders (its one owned
|
|
28
30
|
* piece of context); brand color, block data and translations come from the host's providers.
|
|
29
31
|
*/
|
|
30
|
-
export declare function DesignerCanvas({ templateLayout, componentRegistry, onLayoutChange, onSelectComponent, onDeleteNode, onDuplicateNode, onAIApply, canvasRef: externalCanvasRef, }: DesignerCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function DesignerCanvas({ templateLayout, componentRegistry, onLayoutChange, onSelectComponent, onDeleteNode, onDuplicateNode, onAIApply, canvasRef: externalCanvasRef, emptyState, }: DesignerCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
//# 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;
|
|
1
|
+
{"version":3,"file":"DesignerCanvas.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/DesignerCanvas.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAC9D,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;IACrC,sFAAsF;IACtF,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,SAAS,EACT,SAAS,EAAE,iBAAiB,EAC5B,UAAU,GACX,EAAE,mBAAmB,2CAoBrB"}
|
|
@@ -2,6 +2,7 @@ import { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
3
3
|
import { TrayDropTarget } from '../document/utils';
|
|
4
4
|
import { BlockDataStore } from '../state/blockDataStore';
|
|
5
|
+
import { EditorAccess } from '../state/editorAccess';
|
|
5
6
|
import { SelectionStore } from '../state/selectionStore';
|
|
6
7
|
export interface GridDndProviderProps {
|
|
7
8
|
templateLayout: LayoutNode[];
|
|
@@ -15,8 +16,10 @@ export interface GridDndProviderProps {
|
|
|
15
16
|
onAddFromTray?: (componentType: string, dropTarget?: TrayDropTarget, propsOverride?: Record<string, unknown>) => void;
|
|
16
17
|
/** The canvas content element, used to cancel drops that leave the canvas. */
|
|
17
18
|
canvasRef?: RefObject<HTMLElement | null>;
|
|
19
|
+
/** What the author may change. Defaults to `editable`. */
|
|
20
|
+
access?: EditorAccess;
|
|
18
21
|
children: ReactNode;
|
|
19
22
|
}
|
|
20
23
|
/** The single `DndContext` for the designer, wiring `useGridDnd` in and rendering the overlays. */
|
|
21
|
-
export declare function GridDndProvider({ templateLayout, store, selection, componentRegistry, onLayoutChange, onAddFromTray, canvasRef, children, }: GridDndProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function GridDndProvider({ templateLayout, store, selection, componentRegistry, onLayoutChange, onAddFromTray, canvasRef, access, children, }: GridDndProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
25
|
//# 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,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"GridDndProvider.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridDndProvider.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,uBAAuB,CAAA;AAG9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAK7D,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,UAAU,EAAE,CAAA;IAC5B,oEAAoE;IACpE,KAAK,EAAE,cAAc,CAAA;IACrB,wEAAwE;IACxE,SAAS,EAAE,cAAc,CAAA;IACzB,iBAAiB,EAAE,aAAa,CAAA;IAChC,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IAC9C,2DAA2D;IAC3D,aAAa,CAAC,EAAE,CACd,aAAa,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,cAAc,EAC3B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACpC,IAAI,CAAA;IACT,8EAA8E;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACzC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,mGAAmG;AACnG,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,MAAmB,EACnB,QAAQ,GACT,EAAE,oBAAoB,2CAwDtB"}
|
|
@@ -30,10 +30,6 @@ export interface DesignerItemUIProps {
|
|
|
30
30
|
* e.g. a data-driven widget hides "edit", "ai" and "duplicate", leaving move and delete.
|
|
31
31
|
*/
|
|
32
32
|
hiddenActions?: DesignerItemAction[];
|
|
33
|
-
/** Host permission to edit content — gates move / duplicate / the edit overlay. */
|
|
34
|
-
canEditContent?: boolean;
|
|
35
|
-
/** Host permission to delete content — gates the delete action. */
|
|
36
|
-
canDeleteContent?: boolean;
|
|
37
33
|
}
|
|
38
34
|
export declare const DesignerItemUI: import('react').ForwardRefExoticComponent<DesignerItemUIProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
35
|
export default DesignerItemUI;
|
|
@@ -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,EAAgD,MAAM,OAAO,CAAA;AAGhG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAKnE,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;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,wDAAwD;IACxD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACvD,iGAAiG;IACjG,iBAAiB,CAAC,EAAE,aAAa,CAAA;IACjC,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;CACrC;AASD,eAAO,MAAM,cAAc,gHA+M1B,CAAA;AAID,eAAe,cAAc,CAAA"}
|
|
@@ -39,11 +39,7 @@ export interface DesignerItemProps {
|
|
|
39
39
|
componentRegistry?: BlockRegistry;
|
|
40
40
|
/** Toolbar actions to hide for this item. */
|
|
41
41
|
hiddenActions?: DesignerItemAction[];
|
|
42
|
-
/** Host permission to edit content. */
|
|
43
|
-
canEditContent?: boolean;
|
|
44
|
-
/** Host permission to delete content. */
|
|
45
|
-
canDeleteContent?: boolean;
|
|
46
42
|
}
|
|
47
|
-
export declare const DesignerItem: ({ node, path, depth, onSelect, children, componentTypeLabel, isSelected, disabled, isAnyDragActive, activeId, showTrayGapAbove, trayGapHeight, onDeleteNode, onDuplicateNode, componentData, onAIApply, componentRegistry, hiddenActions,
|
|
43
|
+
export declare const DesignerItem: ({ node, path, depth, onSelect, children, componentTypeLabel, isSelected, disabled, isAnyDragActive, activeId, showTrayGapAbove, trayGapHeight, onDeleteNode, onDuplicateNode, componentData, onAIApply, componentRegistry, hiddenActions, }: DesignerItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
44
|
export default DesignerItem;
|
|
49
45
|
//# sourceMappingURL=GridItemContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridItemContainer.d.ts","sourceRoot":"","sources":["../../../src/editor/canvas/GridItemContainer.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAsB,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAA;AACxF,OAAO,KAAK,EAAE,aAAa,EAAqB,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAClF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAIxE,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,IAAI,EAAE,UAAU,CAAA;IAChB,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAA;IACd,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC1D,0BAA0B;IAC1B,QAAQ,EAAE,SAAS,CAAA;IACnB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,UAAU,CAAC,EAAE,O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ollisionDetection, DragEndEvent, DragMoveEvent, DragOverEvent, DragStartEvent, useSensors } from '@dnd-kit/core';
|
|
2
2
|
import { SortingStrategy } from '@dnd-kit/sortable';
|
|
3
|
-
import { RefObject } from 'react';
|
|
3
|
+
import { ReactNode, RefObject } from 'react';
|
|
4
4
|
import { BlockRegistry, LayoutNode } from '../../registry';
|
|
5
5
|
import { SortableInsertTarget, TrayDropTarget, TreePath } from '../document/utils';
|
|
6
6
|
export declare const DEFAULT_BLOCK_HEIGHT = 60;
|
|
@@ -71,6 +71,8 @@ interface UseGridDndProps {
|
|
|
71
71
|
* closest block.
|
|
72
72
|
*/
|
|
73
73
|
canvasRef?: RefObject<HTMLElement | null>;
|
|
74
|
+
/** Drops add or move nothing; a move already in progress snaps back. */
|
|
75
|
+
isLayoutLocked?: boolean;
|
|
74
76
|
}
|
|
75
77
|
export interface UseGridDndReturn {
|
|
76
78
|
activeId: string | null;
|
|
@@ -89,10 +91,12 @@ export interface UseGridDndReturn {
|
|
|
89
91
|
numRows: number;
|
|
90
92
|
trayInsertTarget: SortableInsertTarget | null;
|
|
91
93
|
}
|
|
92
|
-
export declare function useGridDnd({ templateLayout, componentRegistry, onLayoutChange, onAddFromTray, canvasRef, }: UseGridDndProps): UseGridDndReturn;
|
|
94
|
+
export declare function useGridDnd({ templateLayout, componentRegistry, onLayoutChange, onAddFromTray, canvasRef, isLayoutLocked, }: UseGridDndProps): UseGridDndReturn;
|
|
93
95
|
export interface GridViewerCanvasProps extends Omit<GridViewerProps, 'activeId' | 'trayInsertTarget' | 'depth' | 'currentPath' | 'parentNode'> {
|
|
96
|
+
/** Shown while the document has no blocks, and hidden during a drag. */
|
|
97
|
+
emptyState?: ReactNode;
|
|
94
98
|
}
|
|
95
|
-
export declare const GridViewerCanvas: ({ templateLayout, componentRegistry, onLayoutChange, onSelectComponent, onDeleteNode, onDuplicateNode, onAIApply, }: GridViewerCanvasProps) => import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export declare const GridViewerCanvas: ({ templateLayout, componentRegistry, onLayoutChange, onSelectComponent, onDeleteNode, onDuplicateNode, onAIApply, emptyState, }: GridViewerCanvasProps) => import("react/jsx-runtime").JSX.Element;
|
|
96
100
|
export interface GridDragOverlayProps {
|
|
97
101
|
activeId: string | null;
|
|
98
102
|
activeNode: LayoutNode | null;
|
|
@@ -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,mBAAmB,CAAA;AAExD,OAAO,
|
|
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,mBAAmB,CAAA;AAExD,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AACd,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,UAAU,EAEhB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAWL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,QAAQ,EAEd,MAAM,mBAAmB,CAAA;AAU1B,eAAO,MAAM,oBAAoB,KAAK,CAAA;AAEtC,eAAO,MAAM,mBAAmB,EAAE,eAwCjC,CAAA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
@@ -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;
|
|
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;AAK1B,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,iDAAiD;IACjD,iBAAiB,EAAE,OAAO,gBAAgB,EAAE,aAAa,CAAA;IACzD,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACnE,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IAC9C,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,WAAW,EAAE,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