@blocklet/editor 2.0.52 → 2.0.53
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const mode: string;
|
|
2
2
|
export declare const propertyTypes: readonly ["string", "number", "boolean", "json", "url"];
|
|
3
|
-
export type PropertyType = typeof propertyTypes[number];
|
|
3
|
+
export type PropertyType = (typeof propertyTypes)[number];
|
|
4
4
|
export type Properties = {
|
|
5
5
|
[locale: string]: {
|
|
6
6
|
[key: string]: any;
|
package/lib/main/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import styled from '@emotion/styled';
|
|
|
11
11
|
import { LexicalComposer } from '@lexical/react/LexicalComposer';
|
|
12
12
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
13
13
|
import { useCallback, useEffect, useRef } from 'react';
|
|
14
|
+
import { $convertFromMarkdownString } from '@lexical/markdown';
|
|
14
15
|
import { SettingsContext } from './context/SettingsContext';
|
|
15
16
|
import { SharedAutocompleteContext } from './context/SharedAutocompleteContext';
|
|
16
17
|
import { SharedHistoryContext } from './context/SharedHistoryContext';
|
|
@@ -18,7 +19,6 @@ import Editor from './editor';
|
|
|
18
19
|
import PlaygroundNodes from './nodes/PlaygroundNodes';
|
|
19
20
|
import { TableContext } from './plugins/TablePlugin';
|
|
20
21
|
import { useCustomTheme } from './themes/customTheme';
|
|
21
|
-
import { $convertFromMarkdownString } from '@lexical/markdown';
|
|
22
22
|
import { PLAYGROUND_TRANSFORMERS } from './plugins/MarkdownTransformers';
|
|
23
23
|
export default function BlockletEditor({ editorState, nodes = PlaygroundNodes, editable = true, markdown, ...props }) {
|
|
24
24
|
const theme = useCustomTheme();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.53",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run storybook",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcblock/ux": "^2.10.
|
|
40
|
+
"@arcblock/ux": "^2.10.5",
|
|
41
41
|
"@blocklet/embed": "^0.1.11",
|
|
42
|
-
"@blocklet/pages-kit": "^0.2.
|
|
43
|
-
"@blocklet/pdf": "2.0.
|
|
42
|
+
"@blocklet/pages-kit": "^0.2.370",
|
|
43
|
+
"@blocklet/pdf": "2.0.53",
|
|
44
44
|
"@excalidraw/excalidraw": "^0.14.2",
|
|
45
45
|
"@iconify/iconify": "^3.0.1",
|
|
46
46
|
"@iconify/icons-tabler": "^1.2.95",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"react": "*",
|
|
114
114
|
"react-dom": "*"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "3b69eb3eff2c8d36d32eb61d4c4a98117bbc55c8"
|
|
117
117
|
}
|