mt-block-editor-block 1.1.13 → 1.1.15
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/React.d.ts +2 -2
- package/React.js +3 -2
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/React.ts +2 -2
- package/src/index.d.ts +1 -1
package/React.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
declare const React: import(".").Map;
|
|
2
|
-
declare const useState: any, useEffect: any, useRef: any;
|
|
3
|
-
export { React as default, useState, useEffect, useRef };
|
|
2
|
+
declare const useState: any, useEffect: any, useRef: any, useCallback: any;
|
|
3
|
+
export { React as default, useState, useEffect, useRef, useCallback };
|
package/React.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.useRef = exports.useEffect = exports.useState = exports["default"] = void 0;
|
|
3
|
+
exports.useCallback = exports.useRef = exports.useEffect = exports.useState = exports["default"] = void 0;
|
|
4
4
|
var React = window.MTBlockEditor.React;
|
|
5
5
|
exports["default"] = React;
|
|
6
|
-
var useState = React.useState, useEffect = React.useEffect, useRef = React.useRef;
|
|
6
|
+
var useState = React.useState, useEffect = React.useEffect, useRef = React.useRef, useCallback = React.useCallback;
|
|
7
7
|
exports.useState = useState;
|
|
8
8
|
exports.useEffect = useEffect;
|
|
9
9
|
exports.useRef = useRef;
|
|
10
|
+
exports.useCallback = useCallback;
|
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
package/src/React.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const React = window.MTBlockEditor.React;
|
|
2
|
-
const { useState, useEffect, useRef } = React;
|
|
2
|
+
const { useState, useEffect, useRef, useCallback } = React;
|
|
3
3
|
|
|
4
|
-
export { React as default, useState, useEffect, useRef };
|
|
4
|
+
export { React as default, useState, useEffect, useRef, useCallback };
|
package/src/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;
|