@wordpress/annotations 3.36.1-next.76cff8c98.0 → 3.36.1-next.8fd3f8831.0
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/LICENSE.md +1 -1
- package/build/store/index.cjs +3 -3
- package/build-module/block/{index.mjs → index.js} +2 -2
- package/build-module/format/{annotation.mjs → annotation.js} +2 -2
- package/build-module/format/{index.mjs → index.js} +2 -2
- package/build-module/index.js +8 -0
- package/build-module/store/{actions.mjs → actions.js} +1 -1
- package/build-module/store/{constants.mjs → constants.js} +1 -1
- package/build-module/store/{index.mjs → index.js} +5 -5
- package/build-module/store/{reducer.mjs → reducer.js} +1 -1
- package/build-module/store/{selectors.mjs → selectors.js} +1 -1
- package/package.json +9 -8
- package/build-module/index.mjs +0 -8
- /package/build-module/block/{index.mjs.map → index.js.map} +0 -0
- /package/build-module/format/{annotation.mjs.map → annotation.js.map} +0 -0
- /package/build-module/format/{index.mjs.map → index.js.map} +0 -0
- /package/build-module/{index.mjs.map → index.js.map} +0 -0
- /package/build-module/store/{actions.mjs.map → actions.js.map} +0 -0
- /package/build-module/store/{constants.mjs.map → constants.js.map} +0 -0
- /package/build-module/store/{index.mjs.map → index.js.map} +0 -0
- /package/build-module/store/{reducer.mjs.map → reducer.js.map} +0 -0
- /package/build-module/store/{selectors.mjs.map → selectors.js.map} +0 -0
package/LICENSE.md
CHANGED
package/build/store/index.cjs
CHANGED
|
@@ -33,9 +33,9 @@ __export(store_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(store_exports);
|
|
35
35
|
var import_data = require("@wordpress/data");
|
|
36
|
-
var import_reducer = __toESM(require("./reducer.cjs"));
|
|
37
|
-
var selectors = __toESM(require("./selectors.cjs"));
|
|
38
|
-
var actions = __toESM(require("./actions.cjs"));
|
|
36
|
+
var import_reducer = __toESM(require("./reducer.cjs"), 1);
|
|
37
|
+
var selectors = __toESM(require("./selectors.cjs"), 1);
|
|
38
|
+
var actions = __toESM(require("./actions.cjs"), 1);
|
|
39
39
|
var import_constants = require("./constants.cjs");
|
|
40
40
|
var store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, {
|
|
41
41
|
reducer: import_reducer.default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/annotations/src/block/index.js
|
|
2
2
|
import { addFilter } from "@wordpress/hooks";
|
|
3
3
|
import { withSelect } from "@wordpress/data";
|
|
4
|
-
import { STORE_NAME } from "../store/constants.
|
|
4
|
+
import { STORE_NAME } from "../store/constants.js";
|
|
5
5
|
var addAnnotationClassName = (OriginalComponent) => {
|
|
6
6
|
return withSelect((select, { clientId, className }) => {
|
|
7
7
|
const annotations = select(STORE_NAME).__experimentalGetAnnotationsForBlock(
|
|
@@ -19,4 +19,4 @@ addFilter(
|
|
|
19
19
|
"core/annotations",
|
|
20
20
|
addAnnotationClassName
|
|
21
21
|
);
|
|
22
|
-
//# sourceMappingURL=index.
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/annotations/src/format/annotation.js
|
|
2
2
|
import { __ } from "@wordpress/i18n";
|
|
3
3
|
import { applyFormat, removeFormat } from "@wordpress/rich-text";
|
|
4
|
-
import { STORE_NAME } from "../store/constants.
|
|
4
|
+
import { STORE_NAME } from "../store/constants.js";
|
|
5
5
|
var FORMAT_NAME = "core/annotation";
|
|
6
6
|
var ANNOTATION_ATTRIBUTE_PREFIX = "annotation-text-";
|
|
7
7
|
function applyAnnotations(record, annotations = []) {
|
|
@@ -124,4 +124,4 @@ export {
|
|
|
124
124
|
applyAnnotations,
|
|
125
125
|
removeAnnotations
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=annotation.
|
|
127
|
+
//# sourceMappingURL=annotation.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/annotations/src/format/index.js
|
|
2
2
|
import { registerFormatType } from "@wordpress/rich-text";
|
|
3
|
-
import { annotation } from "./annotation.
|
|
3
|
+
import { annotation } from "./annotation.js";
|
|
4
4
|
var { name, ...settings } = annotation;
|
|
5
5
|
registerFormatType(name, settings);
|
|
6
|
-
//# sourceMappingURL=index.
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/annotations/src/store/index.js
|
|
2
2
|
import { register, createReduxStore } from "@wordpress/data";
|
|
3
|
-
import reducer from "./reducer.
|
|
4
|
-
import * as selectors from "./selectors.
|
|
5
|
-
import * as actions from "./actions.
|
|
6
|
-
import { STORE_NAME } from "./constants.
|
|
3
|
+
import reducer from "./reducer.js";
|
|
4
|
+
import * as selectors from "./selectors.js";
|
|
5
|
+
import * as actions from "./actions.js";
|
|
6
|
+
import { STORE_NAME } from "./constants.js";
|
|
7
7
|
var store = createReduxStore(STORE_NAME, {
|
|
8
8
|
reducer,
|
|
9
9
|
selectors,
|
|
@@ -13,4 +13,4 @@ register(store);
|
|
|
13
13
|
export {
|
|
14
14
|
store
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=index.
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/annotations",
|
|
3
|
-
"version": "3.36.1-next.
|
|
3
|
+
"version": "3.36.1-next.8fd3f8831.0",
|
|
4
4
|
"description": "Annotate content in the Gutenberg editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,11 +29,12 @@
|
|
|
29
29
|
"build-types",
|
|
30
30
|
"*.md"
|
|
31
31
|
],
|
|
32
|
+
"type": "module",
|
|
32
33
|
"main": "build/index.cjs",
|
|
33
|
-
"module": "build-module/index.
|
|
34
|
+
"module": "build-module/index.js",
|
|
34
35
|
"exports": {
|
|
35
36
|
".": {
|
|
36
|
-
"import": "./build-module/index.
|
|
37
|
+
"import": "./build-module/index.js",
|
|
37
38
|
"require": "./build/index.cjs"
|
|
38
39
|
},
|
|
39
40
|
"./package.json": "./package.json"
|
|
@@ -41,10 +42,10 @@
|
|
|
41
42
|
"react-native": "src/index",
|
|
42
43
|
"wpScript": true,
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@wordpress/data": "^10.36.1-next.
|
|
45
|
-
"@wordpress/hooks": "^4.36.1-next.
|
|
46
|
-
"@wordpress/i18n": "^6.9.1-next.
|
|
47
|
-
"@wordpress/rich-text": "^7.36.1-next.
|
|
45
|
+
"@wordpress/data": "^10.36.1-next.8fd3f8831.0",
|
|
46
|
+
"@wordpress/hooks": "^4.36.1-next.8fd3f8831.0",
|
|
47
|
+
"@wordpress/i18n": "^6.9.1-next.8fd3f8831.0",
|
|
48
|
+
"@wordpress/rich-text": "^7.36.1-next.8fd3f8831.0",
|
|
48
49
|
"uuid": "^9.0.1"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
@@ -53,5 +54,5 @@
|
|
|
53
54
|
"publishConfig": {
|
|
54
55
|
"access": "public"
|
|
55
56
|
},
|
|
56
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e582b351bc4c4b8734bb087f63a3beec9875c3c7"
|
|
57
58
|
}
|
package/build-module/index.mjs
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|