@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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.37.0 (2025-12-23)
6
+
5
7
  ## 3.36.0 (2025-11-26)
6
8
 
7
9
  ## 3.35.0 (2025-11-12)
@@ -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.cjs");
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.cjs.map
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.cjs");
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.cjs.map
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.cjs");
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.cjs.map
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/index.cjs");
26
- var import_block = require("./block/index.cjs");
27
- var import_store = require("./store/index.cjs");
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.cjs.map
32
+ //# sourceMappingURL=index.js.map
@@ -74,4 +74,4 @@ function __experimentalRemoveAnnotationsBySource(source) {
74
74
  __experimentalRemoveAnnotationsBySource,
75
75
  __experimentalUpdateAnnotationRange
76
76
  });
77
- //# sourceMappingURL=actions.cjs.map
77
+ //# sourceMappingURL=actions.js.map
@@ -27,4 +27,4 @@ var STORE_NAME = "core/annotations";
27
27
  0 && (module.exports = {
28
28
  STORE_NAME
29
29
  });
30
- //# sourceMappingURL=constants.cjs.map
30
+ //# sourceMappingURL=constants.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.cjs"), 1);
37
- var selectors = __toESM(require("./selectors.cjs"), 1);
38
- var actions = __toESM(require("./actions.cjs"), 1);
39
- var import_constants = require("./constants.cjs");
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.cjs.map
50
+ //# sourceMappingURL=index.js.map
@@ -106,4 +106,4 @@ var reducer_default = annotations;
106
106
  0 && (module.exports = {
107
107
  annotations
108
108
  });
109
- //# sourceMappingURL=reducer.cjs.map
109
+ //# sourceMappingURL=reducer.js.map
@@ -62,4 +62,4 @@ function __experimentalGetAnnotations(state) {
62
62
  __experimentalGetAnnotationsForBlock,
63
63
  __experimentalGetAnnotationsForRichText
64
64
  });
65
- //# sourceMappingURL=selectors.cjs.map
65
+ //# sourceMappingURL=selectors.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.js";
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.js";
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.js";
3
+ import { annotation } from "./annotation";
4
4
  var { name, ...settings } = annotation;
5
5
  registerFormatType(name, settings);
6
6
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  // packages/annotations/src/index.js
2
- import "./format/index.js";
3
- import "./block/index.js";
4
- import { store } from "./store/index.js";
2
+ import "./format";
3
+ import "./block";
4
+ import { store } from "./store";
5
5
  export {
6
6
  store
7
7
  };
@@ -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.js";
4
- import * as selectors from "./selectors.js";
5
- import * as actions from "./actions.js";
6
- import { STORE_NAME } from "./constants.js";
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.36.1-next.738bb1424.0",
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
- "files": [
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.cjs"
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.36.1-next.738bb1424.0",
46
- "@wordpress/hooks": "^4.36.1-next.738bb1424.0",
47
- "@wordpress/i18n": "^6.9.1-next.738bb1424.0",
48
- "@wordpress/rich-text": "^7.36.1-next.738bb1424.0",
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": "ab1b004c0d61c295aa34bc86ea07f979343983ce"
49
+ "gitHead": "2cf13ec6cf86153c9b3cf369bf5c59046f5cd950"
58
50
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes