@wordpress/annotations 3.37.0 → 3.37.1-next.79a2f3cdd.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +0 -2
  2. package/LICENSE.md +1 -1
  3. package/build/block/{index.js → index.cjs} +2 -2
  4. package/build/format/{annotation.js → annotation.cjs} +2 -2
  5. package/build/format/{index.js → index.cjs} +2 -2
  6. package/build/{index.js → index.cjs} +4 -4
  7. package/build/store/{actions.js → actions.cjs} +1 -1
  8. package/build/store/{constants.js → constants.cjs} +1 -1
  9. package/build/store/{index.js → index.cjs} +5 -5
  10. package/build/store/{reducer.js → reducer.cjs} +1 -1
  11. package/build/store/{selectors.js → selectors.cjs} +1 -1
  12. package/build-module/block/{index.js → index.mjs} +2 -2
  13. package/build-module/format/{annotation.js → annotation.mjs} +2 -2
  14. package/build-module/format/{index.js → index.mjs} +2 -2
  15. package/build-module/index.mjs +8 -0
  16. package/build-module/store/{actions.js → actions.mjs} +1 -1
  17. package/build-module/store/{constants.js → constants.mjs} +1 -1
  18. package/build-module/store/{index.js → index.mjs} +5 -5
  19. package/build-module/store/{reducer.js → reducer.mjs} +1 -1
  20. package/build-module/store/{selectors.js → selectors.mjs} +1 -1
  21. package/package.json +17 -10
  22. package/build-module/index.js +0 -8
  23. /package/build/block/{index.js.map → index.cjs.map} +0 -0
  24. /package/build/format/{annotation.js.map → annotation.cjs.map} +0 -0
  25. /package/build/format/{index.js.map → index.cjs.map} +0 -0
  26. /package/build/{index.js.map → index.cjs.map} +0 -0
  27. /package/build/store/{actions.js.map → actions.cjs.map} +0 -0
  28. /package/build/store/{constants.js.map → constants.cjs.map} +0 -0
  29. /package/build/store/{index.js.map → index.cjs.map} +0 -0
  30. /package/build/store/{reducer.js.map → reducer.cjs.map} +0 -0
  31. /package/build/store/{selectors.js.map → selectors.cjs.map} +0 -0
  32. /package/build-module/block/{index.js.map → index.mjs.map} +0 -0
  33. /package/build-module/format/{annotation.js.map → annotation.mjs.map} +0 -0
  34. /package/build-module/format/{index.js.map → index.mjs.map} +0 -0
  35. /package/build-module/{index.js.map → index.mjs.map} +0 -0
  36. /package/build-module/store/{actions.js.map → actions.mjs.map} +0 -0
  37. /package/build-module/store/{constants.js.map → constants.mjs.map} +0 -0
  38. /package/build-module/store/{index.js.map → index.mjs.map} +0 -0
  39. /package/build-module/store/{reducer.js.map → reducer.mjs.map} +0 -0
  40. /package/build-module/store/{selectors.js.map → selectors.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 3.37.0 (2025-12-23)
6
-
7
5
  ## 3.36.0 (2025-11-26)
8
6
 
9
7
  ## 3.35.0 (2025-11-12)
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2025 by the contributors
3
+ Copyright 2016-2026 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
@@ -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.cjs");
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.js.map
22
+ //# sourceMappingURL=index.cjs.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.cjs");
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.js.map
153
+ //# sourceMappingURL=annotation.cjs.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.cjs");
4
4
  var { name, ...settings } = import_annotation.annotation;
5
5
  (0, import_rich_text.registerFormatType)(name, settings);
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.cjs.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/index.cjs");
26
+ var import_block = require("./block/index.cjs");
27
+ var import_store = require("./store/index.cjs");
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.js.map
32
+ //# sourceMappingURL=index.cjs.map
@@ -74,4 +74,4 @@ function __experimentalRemoveAnnotationsBySource(source) {
74
74
  __experimentalRemoveAnnotationsBySource,
75
75
  __experimentalUpdateAnnotationRange
76
76
  });
77
- //# sourceMappingURL=actions.js.map
77
+ //# sourceMappingURL=actions.cjs.map
@@ -27,4 +27,4 @@ var STORE_NAME = "core/annotations";
27
27
  0 && (module.exports = {
28
28
  STORE_NAME
29
29
  });
30
- //# sourceMappingURL=constants.js.map
30
+ //# sourceMappingURL=constants.cjs.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.cjs"));
37
+ var selectors = __toESM(require("./selectors.cjs"));
38
+ var actions = __toESM(require("./actions.cjs"));
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,
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.js.map
50
+ //# sourceMappingURL=index.cjs.map
@@ -106,4 +106,4 @@ var reducer_default = annotations;
106
106
  0 && (module.exports = {
107
107
  annotations
108
108
  });
109
- //# sourceMappingURL=reducer.js.map
109
+ //# sourceMappingURL=reducer.cjs.map
@@ -62,4 +62,4 @@ function __experimentalGetAnnotations(state) {
62
62
  __experimentalGetAnnotationsForBlock,
63
63
  __experimentalGetAnnotationsForRichText
64
64
  });
65
- //# sourceMappingURL=selectors.js.map
65
+ //# sourceMappingURL=selectors.cjs.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.mjs";
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.js.map
22
+ //# sourceMappingURL=index.mjs.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.mjs";
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.js.map
127
+ //# sourceMappingURL=annotation.mjs.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.mjs";
4
4
  var { name, ...settings } = annotation;
5
5
  registerFormatType(name, settings);
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,8 @@
1
+ // packages/annotations/src/index.js
2
+ import "./format/index.mjs";
3
+ import "./block/index.mjs";
4
+ import { store } from "./store/index.mjs";
5
+ export {
6
+ store
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -47,4 +47,4 @@ export {
47
47
  __experimentalRemoveAnnotationsBySource,
48
48
  __experimentalUpdateAnnotationRange
49
49
  };
50
- //# sourceMappingURL=actions.js.map
50
+ //# sourceMappingURL=actions.mjs.map
@@ -3,4 +3,4 @@ var STORE_NAME = "core/annotations";
3
3
  export {
4
4
  STORE_NAME
5
5
  };
6
- //# sourceMappingURL=constants.js.map
6
+ //# sourceMappingURL=constants.mjs.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.mjs";
4
+ import * as selectors from "./selectors.mjs";
5
+ import * as actions from "./actions.mjs";
6
+ import { STORE_NAME } from "./constants.mjs";
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.js.map
16
+ //# sourceMappingURL=index.mjs.map
@@ -82,4 +82,4 @@ export {
82
82
  annotations,
83
83
  reducer_default as default
84
84
  };
85
- //# sourceMappingURL=reducer.js.map
85
+ //# sourceMappingURL=reducer.mjs.map
@@ -35,4 +35,4 @@ export {
35
35
  __experimentalGetAnnotationsForBlock,
36
36
  __experimentalGetAnnotationsForRichText
37
37
  };
38
- //# sourceMappingURL=selectors.js.map
38
+ //# sourceMappingURL=selectors.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/annotations",
3
- "version": "3.37.0",
3
+ "version": "3.37.1-next.79a2f3cdd.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,22 +22,29 @@
22
22
  "node": ">=18.12.0",
23
23
  "npm": ">=8.19.2"
24
24
  },
25
- "main": "build/index.js",
26
- "module": "build-module/index.js",
25
+ "files": [
26
+ "src",
27
+ "build",
28
+ "build-module",
29
+ "build-types",
30
+ "*.md"
31
+ ],
32
+ "main": "build/index.cjs",
33
+ "module": "build-module/index.mjs",
27
34
  "exports": {
28
35
  ".": {
29
- "import": "./build-module/index.js",
30
- "require": "./build/index.js"
36
+ "import": "./build-module/index.mjs",
37
+ "require": "./build/index.cjs"
31
38
  },
32
39
  "./package.json": "./package.json"
33
40
  },
34
41
  "react-native": "src/index",
35
42
  "wpScript": true,
36
43
  "dependencies": {
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",
44
+ "@wordpress/data": "^10.37.1-next.79a2f3cdd.0",
45
+ "@wordpress/hooks": "^4.37.1-next.79a2f3cdd.0",
46
+ "@wordpress/i18n": "^6.10.1-next.79a2f3cdd.0",
47
+ "@wordpress/rich-text": "^7.37.1-next.79a2f3cdd.0",
41
48
  "uuid": "^9.0.1"
42
49
  },
43
50
  "peerDependencies": {
@@ -46,5 +53,5 @@
46
53
  "publishConfig": {
47
54
  "access": "public"
48
55
  },
49
- "gitHead": "2cf13ec6cf86153c9b3cf369bf5c59046f5cd950"
56
+ "gitHead": "6a324496a37d9a333a11d4d7fe5fb93b8152a5ba"
50
57
  }
@@ -1,8 +0,0 @@
1
- // packages/annotations/src/index.js
2
- import "./format";
3
- import "./block";
4
- import { store } from "./store";
5
- export {
6
- store
7
- };
8
- //# sourceMappingURL=index.js.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes