mt-block-editor-block 1.1.10 → 1.1.13

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/Component.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const BlockIframePreview: any, BlockToolbar: any, BlockToolbarButton: any, BlockConfigPanel: any, BlockSetup: any, BlockSetupCommon: any, BlockLabel: any, EditorMode: any;
2
- export { BlockIframePreview, BlockToolbar, BlockToolbarButton, BlockConfigPanel, BlockSetup, BlockSetupCommon, BlockLabel, EditorMode, };
1
+ declare const BlockIframePreview: any, BlockToolbar: any, BlockToolbarButton: any, BlockConfigPanel: any, BlockSetup: any, BlockSetupCommon: any, BlockLabel: any, EditorMode: any, Dialog: any, DialogHeader: any, DialogBody: any, DialogFooter: any;
2
+ export { BlockIframePreview, BlockToolbar, BlockToolbarButton, BlockConfigPanel, BlockSetup, BlockSetupCommon, BlockLabel, EditorMode, Dialog, DialogHeader, DialogBody, DialogFooter, };
package/Component.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.EditorMode = exports.BlockLabel = exports.BlockSetupCommon = exports.BlockSetup = exports.BlockConfigPanel = exports.BlockToolbarButton = exports.BlockToolbar = exports.BlockIframePreview = void 0;
4
- var _a = window.MTBlockEditor.Component, BlockIframePreview = _a.BlockIframePreview, BlockToolbar = _a.BlockToolbar, BlockToolbarButton = _a.BlockToolbarButton, BlockConfigPanel = _a.BlockConfigPanel, BlockSetup = _a.BlockSetup, BlockSetupCommon = _a.BlockSetupCommon, BlockLabel = _a.BlockLabel, EditorMode = _a.EditorMode;
3
+ exports.DialogFooter = exports.DialogBody = exports.DialogHeader = exports.Dialog = exports.EditorMode = exports.BlockLabel = exports.BlockSetupCommon = exports.BlockSetup = exports.BlockConfigPanel = exports.BlockToolbarButton = exports.BlockToolbar = exports.BlockIframePreview = void 0;
4
+ var _a = window.MTBlockEditor.Component, BlockIframePreview = _a.BlockIframePreview, BlockToolbar = _a.BlockToolbar, BlockToolbarButton = _a.BlockToolbarButton, BlockConfigPanel = _a.BlockConfigPanel, BlockSetup = _a.BlockSetup, BlockSetupCommon = _a.BlockSetupCommon, BlockLabel = _a.BlockLabel, EditorMode = _a.EditorMode, Dialog = _a.Dialog, DialogHeader = _a.DialogHeader, DialogBody = _a.DialogBody, DialogFooter = _a.DialogFooter;
5
5
  exports.BlockIframePreview = BlockIframePreview;
6
6
  exports.BlockToolbar = BlockToolbar;
7
7
  exports.BlockToolbarButton = BlockToolbarButton;
@@ -10,3 +10,7 @@ exports.BlockSetup = BlockSetup;
10
10
  exports.BlockSetupCommon = BlockSetupCommon;
11
11
  exports.BlockLabel = BlockLabel;
12
12
  exports.EditorMode = EditorMode;
13
+ exports.Dialog = Dialog;
14
+ exports.DialogHeader = DialogHeader;
15
+ exports.DialogBody = DialogBody;
16
+ exports.DialogFooter = DialogFooter;
package/Hook.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const useCommands: any;
2
+ export { useCommands };
package/Hook.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.useCommands = void 0;
4
+ var useCommands = window.MTBlockEditor.Hook.useCommands;
5
+ exports.useCommands = useCommands;
package/icon.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const edit: any;
2
- export { edit };
1
+ declare const edit: any, link: any;
2
+ export { edit, link };
package/icon.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.edit = void 0;
4
- var edit = window.MTBlockEditor.icon.edit;
3
+ exports.link = exports.edit = void 0;
4
+ var _a = window.MTBlockEditor.icon, edit = _a.edit, link = _a.link;
5
5
  exports.edit = edit;
6
+ exports.link = link;
package/index.d.ts CHANGED
@@ -133,6 +133,7 @@ export class EditorUtil {
133
133
  public static util: Map;
134
134
  public static React: Map;
135
135
  public static Context: Map;
136
+ public static Hook: Map;
136
137
  public static Block: typeof Block;
137
138
  public static apply(opts: EditorOptions): Promise<Editor>;
138
139
  public static get({ id }: { id: string }): Editor | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mt-block-editor-block",
3
- "version": "1.1.10",
3
+ "version": "1.1.13",
4
4
  "description": "This package helps you define custom block types.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "author": "",
12
12
  "license": "ISC",
13
13
  "devDependencies": {
14
- "cpy": "^8.1.0",
14
+ "cpy": "^8.1.2",
15
15
  "cpy-cli": "^3.1.1",
16
16
  "rimraf": "^3.0.2",
17
17
  "typescript": "^3.9.2"
package/src/Component.ts CHANGED
@@ -7,6 +7,10 @@ const {
7
7
  BlockSetupCommon,
8
8
  BlockLabel,
9
9
  EditorMode,
10
+ Dialog,
11
+ DialogHeader,
12
+ DialogBody,
13
+ DialogFooter,
10
14
  } = window.MTBlockEditor.Component;
11
15
 
12
16
  export {
@@ -18,4 +22,8 @@ export {
18
22
  BlockSetupCommon,
19
23
  BlockLabel,
20
24
  EditorMode,
25
+ Dialog,
26
+ DialogHeader,
27
+ DialogBody,
28
+ DialogFooter,
21
29
  };
package/src/Hook.ts ADDED
@@ -0,0 +1,7 @@
1
+ const {
2
+ useCommands
3
+ } = window.MTBlockEditor.Hook;
4
+
5
+ export {
6
+ useCommands
7
+ };
package/src/icon.ts CHANGED
@@ -1,3 +1,3 @@
1
- const { edit } = window.MTBlockEditor.icon;
1
+ const { edit, link } = window.MTBlockEditor.icon;
2
2
 
3
- export { edit };
3
+ export { edit, link };
package/src/index.d.ts CHANGED
@@ -133,6 +133,7 @@ export class EditorUtil {
133
133
  public static util: Map;
134
134
  public static React: Map;
135
135
  public static Context: Map;
136
+ public static Hook: Map;
136
137
  public static Block: typeof Block;
137
138
  public static apply(opts: EditorOptions): Promise<Editor>;
138
139
  public static get({ id }: { id: string }): Editor | undefined;