mt-block-editor-block 1.1.14 → 1.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/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/index.d.ts +5 -8
package/index.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export class Block {
|
|
|
115
115
|
public static selectable: boolean;
|
|
116
116
|
public static shouldBeCompiled: boolean;
|
|
117
117
|
public id: string;
|
|
118
|
-
public compiledHtml: string;
|
|
118
|
+
public compiledHtml: string | undefined;
|
|
119
119
|
public placeholderLabel(): string;
|
|
120
120
|
public placeholder(): JSX.Element;
|
|
121
121
|
public metadata(): Metadata | null;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mt-block-editor-block",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "This package helps you define custom block types.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "rimraf dist && tsc -d src/*.ts --outDir dist && cpy \"./src/index.d.ts\" \"./dist/*\" ./",
|
|
8
|
+
"build": "rimraf dist && tsc -d src/*.ts --skipLibCheck --outDir dist && cpy \"./src/index.d.ts\" \"./dist/*\" ./",
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
10
|
},
|
|
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 {
|
|
@@ -115,7 +112,7 @@ export class Block {
|
|
|
115
112
|
public static selectable: boolean;
|
|
116
113
|
public static shouldBeCompiled: boolean;
|
|
117
114
|
public id: string;
|
|
118
|
-
public compiledHtml: string;
|
|
115
|
+
public compiledHtml: string | undefined;
|
|
119
116
|
public placeholderLabel(): string;
|
|
120
117
|
public placeholder(): JSX.Element;
|
|
121
118
|
public metadata(): Metadata | null;
|