@wordpress/annotations 3.36.1-next.738bb1424.0 → 3.37.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/CHANGELOG.md +2 -0
- package/build/block/{index.cjs → index.js} +2 -2
- package/build/format/{annotation.cjs → annotation.js} +2 -2
- package/build/format/{index.cjs → index.js} +2 -2
- package/build/{index.cjs → index.js} +4 -4
- package/build/store/{actions.cjs → actions.js} +1 -1
- package/build/store/{constants.cjs → constants.js} +1 -1
- package/build/store/{index.cjs → index.js} +5 -5
- package/build/store/{reducer.cjs → reducer.js} +1 -1
- package/build/store/{selectors.cjs → selectors.js} +1 -1
- package/build-module/block/index.js +1 -1
- package/build-module/format/annotation.js +1 -1
- package/build-module/format/index.js +1 -1
- package/build-module/index.js +3 -3
- package/build-module/store/index.js +4 -4
- package/package.json +8 -16
- /package/build/block/{index.cjs.map → index.js.map} +0 -0
- /package/build/format/{annotation.cjs.map → annotation.js.map} +0 -0
- /package/build/format/{index.cjs.map → index.js.map} +0 -0
- /package/build/{index.cjs.map → index.js.map} +0 -0
- /package/build/store/{actions.cjs.map → actions.js.map} +0 -0
- /package/build/store/{constants.cjs.map → constants.js.map} +0 -0
- /package/build/store/{index.cjs.map → index.js.map} +0 -0
- /package/build/store/{reducer.cjs.map → reducer.js.map} +0 -0
- /package/build/store/{selectors.cjs.map → selectors.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/annotations/src/block/index.js
|
|
2
2
|
var import_hooks = require("@wordpress/hooks");
|
|
3
3
|
var import_data = require("@wordpress/data");
|
|
4
|
-
var import_constants = require("../store/constants
|
|
4
|
+
var import_constants = require("../store/constants");
|
|
5
5
|
var addAnnotationClassName = (OriginalComponent) => {
|
|
6
6
|
return (0, import_data.withSelect)((select, { clientId, className }) => {
|
|
7
7
|
const annotations = select(import_constants.STORE_NAME).__experimentalGetAnnotationsForBlock(
|
|
@@ -19,4 +19,4 @@ var addAnnotationClassName = (OriginalComponent) => {
|
|
|
19
19
|
"core/annotations",
|
|
20
20
|
addAnnotationClassName
|
|
21
21
|
);
|
|
22
|
-
//# sourceMappingURL=index.
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -26,7 +26,7 @@ __export(annotation_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(annotation_exports);
|
|
27
27
|
var import_i18n = require("@wordpress/i18n");
|
|
28
28
|
var import_rich_text = require("@wordpress/rich-text");
|
|
29
|
-
var import_constants = require("../store/constants
|
|
29
|
+
var import_constants = require("../store/constants");
|
|
30
30
|
var FORMAT_NAME = "core/annotation";
|
|
31
31
|
var ANNOTATION_ATTRIBUTE_PREFIX = "annotation-text-";
|
|
32
32
|
function applyAnnotations(record, annotations = []) {
|
|
@@ -150,4 +150,4 @@ var annotation = {
|
|
|
150
150
|
applyAnnotations,
|
|
151
151
|
removeAnnotations
|
|
152
152
|
});
|
|
153
|
-
//# sourceMappingURL=annotation.
|
|
153
|
+
//# sourceMappingURL=annotation.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/annotations/src/format/index.js
|
|
2
2
|
var import_rich_text = require("@wordpress/rich-text");
|
|
3
|
-
var import_annotation = require("./annotation
|
|
3
|
+
var import_annotation = require("./annotation");
|
|
4
4
|
var { name, ...settings } = import_annotation.annotation;
|
|
5
5
|
(0, import_rich_text.registerFormatType)(name, settings);
|
|
6
|
-
//# sourceMappingURL=index.
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -22,11 +22,11 @@ __export(index_exports, {
|
|
|
22
22
|
store: () => import_store.store
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(index_exports);
|
|
25
|
-
var import_format = require("./format
|
|
26
|
-
var import_block = require("./block
|
|
27
|
-
var import_store = require("./store
|
|
25
|
+
var import_format = require("./format");
|
|
26
|
+
var import_block = require("./block");
|
|
27
|
+
var import_store = require("./store");
|
|
28
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
29
|
0 && (module.exports = {
|
|
30
30
|
store
|
|
31
31
|
});
|
|
32
|
-
//# sourceMappingURL=index.
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -33,10 +33,10 @@ __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
|
|
37
|
-
var selectors = __toESM(require("./selectors
|
|
38
|
-
var actions = __toESM(require("./actions
|
|
39
|
-
var import_constants = require("./constants
|
|
36
|
+
var import_reducer = __toESM(require("./reducer"));
|
|
37
|
+
var selectors = __toESM(require("./selectors"));
|
|
38
|
+
var actions = __toESM(require("./actions"));
|
|
39
|
+
var import_constants = require("./constants");
|
|
40
40
|
var store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, {
|
|
41
41
|
reducer: import_reducer.default,
|
|
42
42
|
selectors,
|
|
@@ -47,4 +47,4 @@ var store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, {
|
|
|
47
47
|
0 && (module.exports = {
|
|
48
48
|
store
|
|
49
49
|
});
|
|
50
|
-
//# sourceMappingURL=index.
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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";
|
|
5
5
|
var addAnnotationClassName = (OriginalComponent) => {
|
|
6
6
|
return withSelect((select, { clientId, className }) => {
|
|
7
7
|
const annotations = select(STORE_NAME).__experimentalGetAnnotationsForBlock(
|
|
@@ -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";
|
|
5
5
|
var FORMAT_NAME = "core/annotation";
|
|
6
6
|
var ANNOTATION_ATTRIBUTE_PREFIX = "annotation-text-";
|
|
7
7
|
function applyAnnotations(record, annotations = []) {
|
|
@@ -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";
|
|
4
4
|
var { name, ...settings } = annotation;
|
|
5
5
|
registerFormatType(name, settings);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/build-module/index.js
CHANGED
|
@@ -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";
|
|
4
|
+
import * as selectors from "./selectors";
|
|
5
|
+
import * as actions from "./actions";
|
|
6
|
+
import { STORE_NAME } from "./constants";
|
|
7
7
|
var store = createReduxStore(STORE_NAME, {
|
|
8
8
|
reducer,
|
|
9
9
|
selectors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/annotations",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.0",
|
|
4
4
|
"description": "Annotate content in the Gutenberg editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -22,30 +22,22 @@
|
|
|
22
22
|
"node": ">=18.12.0",
|
|
23
23
|
"npm": ">=8.19.2"
|
|
24
24
|
},
|
|
25
|
-
"
|
|
26
|
-
"src",
|
|
27
|
-
"build",
|
|
28
|
-
"build-module",
|
|
29
|
-
"build-types",
|
|
30
|
-
"*.md"
|
|
31
|
-
],
|
|
32
|
-
"type": "module",
|
|
33
|
-
"main": "build/index.cjs",
|
|
25
|
+
"main": "build/index.js",
|
|
34
26
|
"module": "build-module/index.js",
|
|
35
27
|
"exports": {
|
|
36
28
|
".": {
|
|
37
29
|
"import": "./build-module/index.js",
|
|
38
|
-
"require": "./build/index.
|
|
30
|
+
"require": "./build/index.js"
|
|
39
31
|
},
|
|
40
32
|
"./package.json": "./package.json"
|
|
41
33
|
},
|
|
42
34
|
"react-native": "src/index",
|
|
43
35
|
"wpScript": true,
|
|
44
36
|
"dependencies": {
|
|
45
|
-
"@wordpress/data": "^10.
|
|
46
|
-
"@wordpress/hooks": "^4.
|
|
47
|
-
"@wordpress/i18n": "^6.
|
|
48
|
-
"@wordpress/rich-text": "^7.
|
|
37
|
+
"@wordpress/data": "^10.37.0",
|
|
38
|
+
"@wordpress/hooks": "^4.37.0",
|
|
39
|
+
"@wordpress/i18n": "^6.10.0",
|
|
40
|
+
"@wordpress/rich-text": "^7.37.0",
|
|
49
41
|
"uuid": "^9.0.1"
|
|
50
42
|
},
|
|
51
43
|
"peerDependencies": {
|
|
@@ -54,5 +46,5 @@
|
|
|
54
46
|
"publishConfig": {
|
|
55
47
|
"access": "public"
|
|
56
48
|
},
|
|
57
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2cf13ec6cf86153c9b3cf369bf5c59046f5cd950"
|
|
58
50
|
}
|
|
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
|