@examind/block-editor 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +71 -1020
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +1613 -892
- package/dist/index.mjs +1447 -728
- package/package.json +14 -12
package/dist/index.d.mts
CHANGED
|
@@ -3,26 +3,35 @@ import React from 'react';
|
|
|
3
3
|
import { SerializedEditorState } from '@examind/block-types';
|
|
4
4
|
|
|
5
5
|
type Theme = 'light' | 'dark';
|
|
6
|
-
type
|
|
6
|
+
type ThemeSettings = {
|
|
7
7
|
borderBase?: string;
|
|
8
8
|
fontSans?: string;
|
|
9
9
|
fontSerif?: string;
|
|
10
10
|
fontMono?: string;
|
|
11
11
|
spacingBase?: string;
|
|
12
12
|
fontSizeBase?: string;
|
|
13
|
+
focusRingWidth?: string;
|
|
14
|
+
shadowLarge?: string;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
type BlockEditorProps = {
|
|
16
|
-
themeSettings?: ThemeVariables;
|
|
17
18
|
editable?: boolean;
|
|
18
19
|
editorState?: SerializedEditorState;
|
|
19
20
|
theme?: Theme;
|
|
21
|
+
themeSettings?: ThemeSettings;
|
|
20
22
|
onChange?: (editorState: SerializedEditorState) => void;
|
|
21
23
|
children?: React.ReactNode;
|
|
22
24
|
renderSettings?: () => React.ReactNode;
|
|
23
25
|
};
|
|
24
26
|
declare function BlockEditor(props: BlockEditorProps): react_jsx_runtime.JSX.Element;
|
|
25
27
|
|
|
28
|
+
type BlockEditorStyleProps = {
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
themeSettings?: ThemeSettings;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
};
|
|
33
|
+
declare function BlockEditorStyle(props: BlockEditorStyleProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
26
35
|
declare function Callout(): react_jsx_runtime.JSX.Element;
|
|
27
36
|
|
|
28
37
|
declare function Debug(): react_jsx_runtime.JSX.Element;
|
|
@@ -56,7 +65,7 @@ type VariablesSettings = {
|
|
|
56
65
|
onCreated: (name: string) => void;
|
|
57
66
|
onUpdated: (newName: string, oldName: string) => void;
|
|
58
67
|
list: Array<string>;
|
|
59
|
-
getVariableValues: () => Record<string,
|
|
68
|
+
getVariableValues: () => Record<string, any>;
|
|
60
69
|
};
|
|
61
70
|
|
|
62
71
|
type VariablesProps = {
|
|
@@ -64,4 +73,4 @@ type VariablesProps = {
|
|
|
64
73
|
};
|
|
65
74
|
declare function Variables(props: VariablesProps): react_jsx_runtime.JSX.Element;
|
|
66
75
|
|
|
67
|
-
export { BlockEditor, type BlockEditorProps, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, Variables, type VariablesProps };
|
|
76
|
+
export { BlockEditor, type BlockEditorProps, BlockEditorStyle, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, type ThemeSettings, Variables, type VariablesProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,26 +3,35 @@ import React from 'react';
|
|
|
3
3
|
import { SerializedEditorState } from '@examind/block-types';
|
|
4
4
|
|
|
5
5
|
type Theme = 'light' | 'dark';
|
|
6
|
-
type
|
|
6
|
+
type ThemeSettings = {
|
|
7
7
|
borderBase?: string;
|
|
8
8
|
fontSans?: string;
|
|
9
9
|
fontSerif?: string;
|
|
10
10
|
fontMono?: string;
|
|
11
11
|
spacingBase?: string;
|
|
12
12
|
fontSizeBase?: string;
|
|
13
|
+
focusRingWidth?: string;
|
|
14
|
+
shadowLarge?: string;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
type BlockEditorProps = {
|
|
16
|
-
themeSettings?: ThemeVariables;
|
|
17
18
|
editable?: boolean;
|
|
18
19
|
editorState?: SerializedEditorState;
|
|
19
20
|
theme?: Theme;
|
|
21
|
+
themeSettings?: ThemeSettings;
|
|
20
22
|
onChange?: (editorState: SerializedEditorState) => void;
|
|
21
23
|
children?: React.ReactNode;
|
|
22
24
|
renderSettings?: () => React.ReactNode;
|
|
23
25
|
};
|
|
24
26
|
declare function BlockEditor(props: BlockEditorProps): react_jsx_runtime.JSX.Element;
|
|
25
27
|
|
|
28
|
+
type BlockEditorStyleProps = {
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
themeSettings?: ThemeSettings;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
};
|
|
33
|
+
declare function BlockEditorStyle(props: BlockEditorStyleProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
26
35
|
declare function Callout(): react_jsx_runtime.JSX.Element;
|
|
27
36
|
|
|
28
37
|
declare function Debug(): react_jsx_runtime.JSX.Element;
|
|
@@ -56,7 +65,7 @@ type VariablesSettings = {
|
|
|
56
65
|
onCreated: (name: string) => void;
|
|
57
66
|
onUpdated: (newName: string, oldName: string) => void;
|
|
58
67
|
list: Array<string>;
|
|
59
|
-
getVariableValues: () => Record<string,
|
|
68
|
+
getVariableValues: () => Record<string, any>;
|
|
60
69
|
};
|
|
61
70
|
|
|
62
71
|
type VariablesProps = {
|
|
@@ -64,4 +73,4 @@ type VariablesProps = {
|
|
|
64
73
|
};
|
|
65
74
|
declare function Variables(props: VariablesProps): react_jsx_runtime.JSX.Element;
|
|
66
75
|
|
|
67
|
-
export { BlockEditor, type BlockEditorProps, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, Variables, type VariablesProps };
|
|
76
|
+
export { BlockEditor, type BlockEditorProps, BlockEditorStyle, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, type ThemeSettings, Variables, type VariablesProps };
|