mt-block-editor-block 1.1.15 → 1.1.17
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/index.d.ts +4 -7
- package/package.json +3 -3
- package/src/index.d.ts +4 -7
package/index.d.ts
CHANGED
|
@@ -41,19 +41,16 @@ export interface SerializeOptions {
|
|
|
41
41
|
editor: Editor;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
interface
|
|
44
|
+
interface SetFocusedIdsOptions {
|
|
45
45
|
forceUpdate: boolean;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
type
|
|
49
|
-
id: string | null,
|
|
50
|
-
opts?: SetFocusedIdOptions
|
|
51
|
-
) => void;
|
|
48
|
+
type SetFocusedIds = (ids: string[], opts?: SetFocusedIdsOptions) => void;
|
|
52
49
|
|
|
53
50
|
interface EditorContextProps {
|
|
54
51
|
editor: Editor;
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
setFocusedIds: SetFocusedIds;
|
|
53
|
+
getFocusedIds: () => string[];
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
export interface EditHistoryHandlers {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mt-block-editor-block",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "This package helps you define custom block types.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"cpy": "^
|
|
15
|
-
"cpy-cli": "^
|
|
14
|
+
"cpy": "^11.0.1",
|
|
15
|
+
"cpy-cli": "^5.0.0",
|
|
16
16
|
"rimraf": "^3.0.2",
|
|
17
17
|
"typescript": "^3.9.2"
|
|
18
18
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -41,19 +41,16 @@ export interface SerializeOptions {
|
|
|
41
41
|
editor: Editor;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
interface
|
|
44
|
+
interface SetFocusedIdsOptions {
|
|
45
45
|
forceUpdate: boolean;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
type
|
|
49
|
-
id: string | null,
|
|
50
|
-
opts?: SetFocusedIdOptions
|
|
51
|
-
) => void;
|
|
48
|
+
type SetFocusedIds = (ids: string[], opts?: SetFocusedIdsOptions) => void;
|
|
52
49
|
|
|
53
50
|
interface EditorContextProps {
|
|
54
51
|
editor: Editor;
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
setFocusedIds: SetFocusedIds;
|
|
53
|
+
getFocusedIds: () => string[];
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
export interface EditHistoryHandlers {
|