mt-block-editor-block 1.1.15 → 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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.d.ts +4 -7
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "mt-block-editor-block",
3
- "version": "1.1.15",
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": "^8.1.2",
15
- "cpy-cli": "^3.1.1",
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 SetFocusedIdOptions {
44
+ interface SetFocusedIdsOptions {
45
45
  forceUpdate: boolean;
46
46
  }
47
47
 
48
- type SetFocusedId = (
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
- setFocusedId: SetFocusedId;
56
- getFocusedId: () => string | null;
52
+ setFocusedIds: SetFocusedIds;
53
+ getFocusedIds: () => string[];
57
54
  }
58
55
 
59
56
  export interface EditHistoryHandlers {