@examind/block-editor 0.1.1 → 0.1.4
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 +3 -0
- package/dist/index.d.mts +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.js +248 -232
- package/dist/index.mjs +119 -107
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2391,6 +2391,7 @@ sl-progress-bar {
|
|
|
2391
2391
|
margin-bottom: var(--sl-spacing-large);
|
|
2392
2392
|
padding-left: var(--sl-spacing-x-large);
|
|
2393
2393
|
list-style-type: var(--be-ol-list-style-type);
|
|
2394
|
+
font-size: var(--sl-font-size-medium);
|
|
2394
2395
|
li {
|
|
2395
2396
|
padding-left: var(--sl-spacing-2x-small);
|
|
2396
2397
|
ol {
|
|
@@ -2407,6 +2408,7 @@ sl-progress-bar {
|
|
|
2407
2408
|
margin-bottom: var(--sl-spacing-large);
|
|
2408
2409
|
padding-left: var(--sl-spacing-x-large);
|
|
2409
2410
|
list-style-type: disc;
|
|
2411
|
+
font-size: var(--sl-font-size-medium);
|
|
2410
2412
|
li {
|
|
2411
2413
|
padding-left: var(--sl-spacing-2x-small);
|
|
2412
2414
|
ul {
|
|
@@ -3400,6 +3402,7 @@ article {
|
|
|
3400
3402
|
}
|
|
3401
3403
|
.financial-statement-question-cell {
|
|
3402
3404
|
position: relative;
|
|
3405
|
+
padding-left: var(--sl-spacing-large);
|
|
3403
3406
|
}
|
|
3404
3407
|
.financial-statement-question-cell-id {
|
|
3405
3408
|
position: absolute;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import React__default, { RefAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import { SerializedEditorState } from '@examind/block-types';
|
|
5
4
|
|
|
6
5
|
type Theme = 'light' | 'dark';
|
|
@@ -19,7 +18,7 @@ type BlockEditorProps = {
|
|
|
19
18
|
editorState?: SerializedEditorState;
|
|
20
19
|
theme?: Theme;
|
|
21
20
|
onChange?: (editorState: SerializedEditorState) => void;
|
|
22
|
-
children?:
|
|
21
|
+
children?: React.ReactNode;
|
|
23
22
|
};
|
|
24
23
|
declare function BlockEditor(props: BlockEditorProps): react_jsx_runtime.JSX.Element;
|
|
25
24
|
|
|
@@ -54,16 +53,14 @@ declare function Table(): react_jsx_runtime.JSX.Element;
|
|
|
54
53
|
|
|
55
54
|
type VariablesSettings = {
|
|
56
55
|
onCreated: (name: string) => void;
|
|
56
|
+
onUpdated: (newName: string, oldName: string) => void;
|
|
57
57
|
list: Array<string>;
|
|
58
58
|
getVariableValues: () => Record<string, string>;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
renameVariable: (prevName: string, newName: string) => void;
|
|
63
|
-
}
|
|
64
|
-
type VariablesProps = RefAttributes<VariablesHandler> & {
|
|
61
|
+
type VariablesProps = {
|
|
65
62
|
variablesSettings: VariablesSettings;
|
|
66
63
|
};
|
|
67
|
-
declare
|
|
64
|
+
declare function Variables(props: VariablesProps): react_jsx_runtime.JSX.Element;
|
|
68
65
|
|
|
69
|
-
export { BlockEditor, type BlockEditorProps, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, Variables, type
|
|
66
|
+
export { BlockEditor, type BlockEditorProps, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, Variables, type VariablesProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import React__default, { RefAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import { SerializedEditorState } from '@examind/block-types';
|
|
5
4
|
|
|
6
5
|
type Theme = 'light' | 'dark';
|
|
@@ -19,7 +18,7 @@ type BlockEditorProps = {
|
|
|
19
18
|
editorState?: SerializedEditorState;
|
|
20
19
|
theme?: Theme;
|
|
21
20
|
onChange?: (editorState: SerializedEditorState) => void;
|
|
22
|
-
children?:
|
|
21
|
+
children?: React.ReactNode;
|
|
23
22
|
};
|
|
24
23
|
declare function BlockEditor(props: BlockEditorProps): react_jsx_runtime.JSX.Element;
|
|
25
24
|
|
|
@@ -54,16 +53,14 @@ declare function Table(): react_jsx_runtime.JSX.Element;
|
|
|
54
53
|
|
|
55
54
|
type VariablesSettings = {
|
|
56
55
|
onCreated: (name: string) => void;
|
|
56
|
+
onUpdated: (newName: string, oldName: string) => void;
|
|
57
57
|
list: Array<string>;
|
|
58
58
|
getVariableValues: () => Record<string, string>;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
renameVariable: (prevName: string, newName: string) => void;
|
|
63
|
-
}
|
|
64
|
-
type VariablesProps = RefAttributes<VariablesHandler> & {
|
|
61
|
+
type VariablesProps = {
|
|
65
62
|
variablesSettings: VariablesSettings;
|
|
66
63
|
};
|
|
67
|
-
declare
|
|
64
|
+
declare function Variables(props: VariablesProps): react_jsx_runtime.JSX.Element;
|
|
68
65
|
|
|
69
|
-
export { BlockEditor, type BlockEditorProps, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, Variables, type
|
|
66
|
+
export { BlockEditor, type BlockEditorProps, Callout, Debug, Image, type ImageProps, Link, Questions, SettingsPanel, type SettingsPanelProps, Table, type Theme, Variables, type VariablesProps };
|