@wordpress/nux 10.9.0 → 11.1.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.
@@ -1,34 +1,18 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // packages/nux/src/components/dot-tip/index.js
20
- var dot_tip_exports = {};
21
- __export(dot_tip_exports, {
22
- DotTip: () => DotTip,
23
- default: () => dot_tip_default
1
+ "use strict";
2
+ Object.defineProperties(exports, {
3
+ __esModule: { value: true },
4
+ [Symbol.toStringTag]: { value: "Module" }
24
5
  });
25
- module.exports = __toCommonJS(dot_tip_exports);
6
+ // packages/nux/src/components/dot-tip/index.js
7
+ /**
8
+ * Deprecated no-op DotTip component.
9
+ *
10
+ * @return {null} Nothing.
11
+ */
26
12
  function DotTip() {
27
- return null;
13
+ return null;
28
14
  }
29
- var dot_tip_default = DotTip;
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- DotTip
33
- });
34
- //# sourceMappingURL=index.cjs.map
15
+ exports.DotTip = DotTip;
16
+ exports.default = DotTip;
17
+
18
+ //# sourceMappingURL=index.cjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/dot-tip/index.js"],
4
- "sourcesContent": ["/**\n * Deprecated no-op DotTip component.\n *\n * @return {null} Nothing.\n */\nexport function DotTip() {\n\treturn null;\n}\n\nexport default DotTip;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,SAAS,SAAS;AACxB,SAAO;AACR;AAEA,IAAO,kBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../src/components/dot-tip/index.js"],"sourcesContent":["/**\n * Deprecated no-op DotTip component.\n *\n * @return {null} Nothing.\n */\nexport function DotTip() {\n\treturn null;\n}\n\nexport default DotTip;\n"],"mappings":";;;;;;;;;;;AAKA,SAAgB,SAAS;CACxB,OAAO;AACR"}
package/build/index.cjs CHANGED
@@ -1,49 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, {
3
+ __esModule: { value: true },
4
+ [Symbol.toStringTag]: { value: "Module" }
5
+ });
6
+ // \0rolldown/runtime.js
1
7
  var __create = Object.create;
2
8
  var __defProp = Object.defineProperty;
3
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
10
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
11
  var __getProtoOf = Object.getPrototypeOf;
6
12
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
13
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
+ key = keys[i];
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: ((k) => from[k]).bind(null, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
18
22
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+ let _wordpress_deprecated = require("@wordpress/deprecated");
28
+ _wordpress_deprecated = __toESM(_wordpress_deprecated);
29
+ let __store_index_js = require("./store/index.cjs");
30
+ let __components_dot_tip_index_js = require("./components/dot-tip/index.cjs");
31
+ __components_dot_tip_index_js = __toESM(__components_dot_tip_index_js);
29
32
  // packages/nux/src/index.js
30
- var index_exports = {};
31
- __export(index_exports, {
32
- DotTip: () => import_dot_tip.default,
33
- store: () => import_store.store
33
+ (0, _wordpress_deprecated.default)("wp.nux", {
34
+ since: "5.4",
35
+ hint: "wp.components.Guide can be used to show a user guide.",
36
+ version: "6.2"
34
37
  });
35
- module.exports = __toCommonJS(index_exports);
36
- var import_deprecated = __toESM(require("@wordpress/deprecated"));
37
- var import_store = require("./store/index.cjs");
38
- var import_dot_tip = __toESM(require("./components/dot-tip/index.cjs"));
39
- (0, import_deprecated.default)("wp.nux", {
40
- since: "5.4",
41
- hint: "wp.components.Guide can be used to show a user guide.",
42
- version: "6.2"
38
+ Object.defineProperty(exports, "DotTip", {
39
+ enumerable: true,
40
+ get: function() {
41
+ return __components_dot_tip_index_js.default;
42
+ }
43
43
  });
44
- // Annotate the CommonJS export names for ESM import in node:
45
- 0 && (module.exports = {
46
- DotTip,
47
- store
44
+ Object.defineProperty(exports, "store", {
45
+ enumerable: true,
46
+ get: function() {
47
+ return __store_index_js.store;
48
+ }
48
49
  });
49
- //# sourceMappingURL=index.cjs.map
50
+
51
+ //# sourceMappingURL=index.cjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.js"],
4
- "sourcesContent": ["import deprecated from '@wordpress/deprecated';\n\nexport { store } from './store';\nexport { default as DotTip } from './components/dot-tip';\n\ndeprecated( 'wp.nux', {\n\tsince: '5.4',\n\thint: 'wp.components.Guide can be used to show a user guide.',\n\tversion: '6.2',\n} );\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAuB;AAEvB,mBAAsB;AACtB,qBAAkC;AAAA,IAElC,kBAAAA,SAAY,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AACV,CAAE;",
6
- "names": ["deprecated"]
7
- }
1
+ {"version":3,"file":"index.cjs","names":["deprecated"],"sources":["../src/index.js"],"sourcesContent":["import deprecated from '@wordpress/deprecated';\n\nexport { store } from './store';\nexport { default as DotTip } from './components/dot-tip';\n\ndeprecated( 'wp.nux', {\n\tsince: '5.4',\n\thint: 'wp.components.Guide can be used to show a user guide.',\n\tversion: '6.2',\n} );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKAA,GAAAA,sBAAAA,QAAAA,CAAY,UAAU;CACrB,OAAO;CACP,MAAM;CACN,SAAS;AACV,CAAE"}
@@ -1,57 +1,58 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // packages/nux/src/store/actions.js
20
- var actions_exports = {};
21
- __export(actions_exports, {
22
- disableTips: () => disableTips,
23
- dismissTip: () => dismissTip,
24
- enableTips: () => enableTips,
25
- triggerGuide: () => triggerGuide
1
+ "use strict";
2
+ Object.defineProperties(exports, {
3
+ __esModule: { value: true },
4
+ [Symbol.toStringTag]: { value: "Module" }
26
5
  });
27
- module.exports = __toCommonJS(actions_exports);
6
+ // packages/nux/src/store/actions.js
7
+ /**
8
+ * Returns a no-op action object. This package is deprecated and no longer
9
+ * displays tips, but the action remains for backward compatibility.
10
+ *
11
+ * @param {string[]} tipIds Which tips would have been shown in the guide.
12
+ *
13
+ * @return {Object} Action object.
14
+ */
28
15
  function triggerGuide(tipIds) {
29
- return {
30
- type: "TRIGGER_GUIDE",
31
- tipIds
32
- };
16
+ return {
17
+ type: "TRIGGER_GUIDE",
18
+ tipIds
19
+ };
33
20
  }
21
+ /**
22
+ * Returns a no-op action object. This package is deprecated and no longer
23
+ * displays tips, but the action remains for backward compatibility.
24
+ *
25
+ * @param {string} id The tip that would have been dismissed.
26
+ *
27
+ * @return {Object} Action object.
28
+ */
34
29
  function dismissTip(id) {
35
- return {
36
- type: "DISMISS_TIP",
37
- id
38
- };
30
+ return {
31
+ type: "DISMISS_TIP",
32
+ id
33
+ };
39
34
  }
35
+ /**
36
+ * Returns a no-op action object. This package is deprecated and no longer
37
+ * displays tips, but the action remains for backward compatibility.
38
+ *
39
+ * @return {Object} Action object.
40
+ */
40
41
  function disableTips() {
41
- return {
42
- type: "DISABLE_TIPS"
43
- };
42
+ return { type: "DISABLE_TIPS" };
44
43
  }
44
+ /**
45
+ * Returns a no-op action object. This package is deprecated and no longer
46
+ * displays tips, but the action remains for backward compatibility.
47
+ *
48
+ * @return {Object} Action object.
49
+ */
45
50
  function enableTips() {
46
- return {
47
- type: "ENABLE_TIPS"
48
- };
51
+ return { type: "ENABLE_TIPS" };
49
52
  }
50
- // Annotate the CommonJS export names for ESM import in node:
51
- 0 && (module.exports = {
52
- disableTips,
53
- dismissTip,
54
- enableTips,
55
- triggerGuide
56
- });
57
- //# sourceMappingURL=actions.cjs.map
53
+ exports.disableTips = disableTips;
54
+ exports.dismissTip = dismissTip;
55
+ exports.enableTips = enableTips;
56
+ exports.triggerGuide = triggerGuide;
57
+
58
+ //# sourceMappingURL=actions.cjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/actions.js"],
4
- "sourcesContent": ["/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string[]} tipIds Which tips would have been shown in the guide.\n *\n * @return {Object} Action object.\n */\nexport function triggerGuide( tipIds ) {\n\treturn {\n\t\ttype: 'TRIGGER_GUIDE',\n\t\ttipIds,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string} id The tip that would have been dismissed.\n *\n * @return {Object} Action object.\n */\nexport function dismissTip( id ) {\n\treturn {\n\t\ttype: 'DISMISS_TIP',\n\t\tid,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function disableTips() {\n\treturn {\n\t\ttype: 'DISABLE_TIPS',\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function enableTips() {\n\treturn {\n\t\ttype: 'ENABLE_TIPS',\n\t};\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,SAAS,aAAc,QAAS;AACtC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;AAUO,SAAS,WAAY,IAAK;AAChC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;AAQO,SAAS,cAAc;AAC7B,SAAO;AAAA,IACN,MAAM;AAAA,EACP;AACD;AAQO,SAAS,aAAa;AAC5B,SAAO;AAAA,IACN,MAAM;AAAA,EACP;AACD;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"actions.cjs","names":[],"sources":["../../src/store/actions.js"],"sourcesContent":["/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string[]} tipIds Which tips would have been shown in the guide.\n *\n * @return {Object} Action object.\n */\nexport function triggerGuide( tipIds ) {\n\treturn {\n\t\ttype: 'TRIGGER_GUIDE',\n\t\ttipIds,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string} id The tip that would have been dismissed.\n *\n * @return {Object} Action object.\n */\nexport function dismissTip( id ) {\n\treturn {\n\t\ttype: 'DISMISS_TIP',\n\t\tid,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function disableTips() {\n\treturn {\n\t\ttype: 'DISABLE_TIPS',\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function enableTips() {\n\treturn {\n\t\ttype: 'ENABLE_TIPS',\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;AAQA,SAAgB,aAAc,QAAS;CACtC,OAAO;EACN,MAAM;EACN;CACD;AACD;;;;;;;;;AAUA,SAAgB,WAAY,IAAK;CAChC,OAAO;EACN,MAAM;EACN;CACD;AACD;;;;;;;AAQA,SAAgB,cAAc;CAC7B,OAAO,EACN,MAAM,eACP;AACD;;;;;;;AAQA,SAAgB,aAAa;CAC5B,OAAO,EACN,MAAM,cACP;AACD"}
@@ -1,56 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, {
3
+ __esModule: { value: true },
4
+ [Symbol.toStringTag]: { value: "Module" }
5
+ });
6
+ // \0rolldown/runtime.js
1
7
  var __create = Object.create;
2
8
  var __defProp = Object.defineProperty;
3
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
10
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
11
  var __getProtoOf = Object.getPrototypeOf;
6
12
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
13
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
+ key = keys[i];
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: ((k) => from[k]).bind(null, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
18
22
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+ let _wordpress_data = require("@wordpress/data");
28
+ let __reducer_js = require("./reducer.cjs");
29
+ __reducer_js = __toESM(__reducer_js);
30
+ let __actions_js = require("./actions.cjs");
31
+ __actions_js = __toESM(__actions_js);
32
+ let __selectors_js = require("./selectors.cjs");
33
+ __selectors_js = __toESM(__selectors_js);
29
34
  // packages/nux/src/store/index.js
30
- var store_exports = {};
31
- __export(store_exports, {
32
- store: () => store
35
+ const STORE_NAME = "core/nux";
36
+ /**
37
+ * Store definition for the nux namespace.
38
+ *
39
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
40
+ *
41
+ * @type {Object}
42
+ */
43
+ const store = (0, _wordpress_data.createReduxStore)(STORE_NAME, {
44
+ reducer: __reducer_js.default,
45
+ actions: __actions_js,
46
+ selectors: __selectors_js,
47
+ persist: ["preferences"]
33
48
  });
34
- module.exports = __toCommonJS(store_exports);
35
- var import_data = require("@wordpress/data");
36
- var import_reducer = __toESM(require("./reducer.cjs"));
37
- var actions = __toESM(require("./actions.cjs"));
38
- var selectors = __toESM(require("./selectors.cjs"));
39
- var STORE_NAME = "core/nux";
40
- var store = (0, import_data.createReduxStore)(STORE_NAME, {
41
- reducer: import_reducer.default,
42
- actions,
43
- selectors,
44
- persist: ["preferences"]
49
+ (0, _wordpress_data.registerStore)(STORE_NAME, {
50
+ reducer: __reducer_js.default,
51
+ actions: __actions_js,
52
+ selectors: __selectors_js,
53
+ persist: ["preferences"]
45
54
  });
46
- (0, import_data.registerStore)(STORE_NAME, {
47
- reducer: import_reducer.default,
48
- actions,
49
- selectors,
50
- persist: ["preferences"]
51
- });
52
- // Annotate the CommonJS export names for ESM import in node:
53
- 0 && (module.exports = {
54
- store
55
- });
56
- //# sourceMappingURL=index.cjs.map
55
+ exports.store = store;
56
+
57
+ //# sourceMappingURL=index.cjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/index.js"],
4
- "sourcesContent": ["import { createReduxStore, registerStore } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as selectors from './selectors';\n\nconst STORE_NAME = 'core/nux';\n\n/**\n * Store definition for the nux namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n\n// Once we build a more generic persistence plugin that works across types of stores\n// we'd be able to replace this with a register call.\nregisterStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAgD;AAChD,qBAAoB;AACpB,cAAyB;AACzB,gBAA2B;AAE3B,IAAM,aAAa;AASZ,IAAM,YAAQ,8BAAkB,YAAY;AAAA,EAClD,wBAAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,CAAE,aAAc;AAC1B,CAAE;AAAA,IAIF,2BAAe,YAAY;AAAA,EAC1B,wBAAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,CAAE,aAAc;AAC1B,CAAE;",
6
- "names": ["reducer"]
7
- }
1
+ {"version":3,"file":"index.cjs","names":["createReduxStore","registerStore"],"sources":["../../src/store/index.js"],"sourcesContent":["import { createReduxStore, registerStore } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as selectors from './selectors';\n\nconst STORE_NAME = 'core/nux';\n\n/**\n * Store definition for the nux namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n\n// Once we build a more generic persistence plugin that works across types of stores\n// we'd be able to replace this with a register call.\nregisterStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,aAAa;;;;;;;;AASnB,MAAa,SAAA,GAAQA,gBAAAA,iBAAAA,CAAkB,YAAY;CAClD,SAAA,aAAA;CACA,SAAA;CACA,WAAA;CACA,SAAS,CAAE,aAAc;AAC1B,CAAE;CAIFC,GAAAA,gBAAAA,cAAAA,CAAe,YAAY;CAC1B,SAAA,aAAA;CACA,SAAA;CACA,WAAA;CACA,SAAS,CAAE,aAAc;AAC1B,CAAE"}
@@ -1,35 +1,30 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // packages/nux/src/store/reducer.js
20
- var reducer_exports = {};
21
- __export(reducer_exports, {
22
- default: () => reducer
1
+ "use strict";
2
+ Object.defineProperties(exports, {
3
+ __esModule: { value: true },
4
+ [Symbol.toStringTag]: { value: "Module" }
23
5
  });
24
- module.exports = __toCommonJS(reducer_exports);
25
- var DEFAULT_STATE = {
26
- guides: [],
27
- preferences: {
28
- areTipsEnabled: false,
29
- dismissedTips: {}
30
- }
6
+ // packages/nux/src/store/reducer.js
7
+ /**
8
+ * Deprecated NUX store state kept only so the core/nux store can still be
9
+ * registered for backward compatibility.
10
+ */
11
+ const DEFAULT_STATE = {
12
+ guides: [],
13
+ preferences: {
14
+ areTipsEnabled: false,
15
+ dismissedTips: {}
16
+ }
31
17
  };
18
+ /**
19
+ * Reducer that preserves state without responding to actions.
20
+ *
21
+ * @param {Object} state Current state.
22
+ *
23
+ * @return {Object} Current state.
24
+ */
32
25
  function reducer(state = DEFAULT_STATE) {
33
- return state;
26
+ return state;
34
27
  }
35
- //# sourceMappingURL=reducer.cjs.map
28
+ exports.default = reducer;
29
+
30
+ //# sourceMappingURL=reducer.cjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/reducer.js"],
4
- "sourcesContent": ["/**\n * Deprecated NUX store state kept only so the core/nux store can still be\n * registered for backward compatibility.\n */\nconst DEFAULT_STATE = {\n\tguides: [],\n\tpreferences: {\n\t\tareTipsEnabled: false,\n\t\tdismissedTips: {},\n\t},\n};\n\n/**\n * Reducer that preserves state without responding to actions.\n *\n * @param {Object} state Current state.\n *\n * @return {Object} Current state.\n */\nexport default function reducer( state = DEFAULT_STATE ) {\n\treturn state;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,IAAM,gBAAgB;AAAA,EACrB,QAAQ,CAAC;AAAA,EACT,aAAa;AAAA,IACZ,gBAAgB;AAAA,IAChB,eAAe,CAAC;AAAA,EACjB;AACD;AASe,SAAR,QAA0B,QAAQ,eAAgB;AACxD,SAAO;AACR;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"reducer.cjs","names":[],"sources":["../../src/store/reducer.js"],"sourcesContent":["/**\n * Deprecated NUX store state kept only so the core/nux store can still be\n * registered for backward compatibility.\n */\nconst DEFAULT_STATE = {\n\tguides: [],\n\tpreferences: {\n\t\tareTipsEnabled: false,\n\t\tdismissedTips: {},\n\t},\n};\n\n/**\n * Reducer that preserves state without responding to actions.\n *\n * @param {Object} state Current state.\n *\n * @return {Object} Current state.\n */\nexport default function reducer( state = DEFAULT_STATE ) {\n\treturn state;\n}\n"],"mappings":";;;;;;;;;;AAIA,MAAM,gBAAgB;CACrB,QAAQ,CAAC;CACT,aAAa;EACZ,gBAAgB;EAChB,eAAe,CAAC;CACjB;AACD;;;;;;;;AASA,SAAwB,QAAS,QAAQ,eAAgB;CACxD,OAAO;AACR"}
@@ -1,42 +1,43 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // packages/nux/src/store/selectors.js
20
- var selectors_exports = {};
21
- __export(selectors_exports, {
22
- areTipsEnabled: () => areTipsEnabled,
23
- getAssociatedGuide: () => getAssociatedGuide,
24
- isTipVisible: () => isTipVisible
1
+ "use strict";
2
+ Object.defineProperties(exports, {
3
+ __esModule: { value: true },
4
+ [Symbol.toStringTag]: { value: "Module" }
25
5
  });
26
- module.exports = __toCommonJS(selectors_exports);
6
+ // packages/nux/src/store/selectors.js
7
+ /**
8
+ * An object containing information about a guide.
9
+ *
10
+ * @typedef {Object} NUXGuideInfo
11
+ * @property {string[]} tipIds Which tips the guide contains.
12
+ * @property {?string} currentTipId The guide's currently showing tip.
13
+ * @property {?string} nextTipId The guide's next tip to show.
14
+ */
15
+ /**
16
+ * Returns null because the deprecated NUX package no longer displays guides.
17
+ *
18
+ * @return {null} No associated guide.
19
+ */
27
20
  function getAssociatedGuide() {
28
- return null;
21
+ return null;
29
22
  }
23
+ /**
24
+ * Returns false because the deprecated NUX package no longer displays tips.
25
+ *
26
+ * @return {boolean} Whether or not the given tip is showing.
27
+ */
30
28
  function isTipVisible() {
31
- return false;
29
+ return false;
32
30
  }
31
+ /**
32
+ * Returns false because the deprecated NUX package no longer displays tips.
33
+ *
34
+ * @return {boolean} Whether tips are globally enabled.
35
+ */
33
36
  function areTipsEnabled() {
34
- return false;
37
+ return false;
35
38
  }
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {
38
- areTipsEnabled,
39
- getAssociatedGuide,
40
- isTipVisible
41
- });
42
- //# sourceMappingURL=selectors.cjs.map
39
+ exports.areTipsEnabled = areTipsEnabled;
40
+ exports.getAssociatedGuide = getAssociatedGuide;
41
+ exports.isTipVisible = isTipVisible;
42
+
43
+ //# sourceMappingURL=selectors.cjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/selectors.js"],
4
- "sourcesContent": ["/**\n * An object containing information about a guide.\n *\n * @typedef {Object} NUXGuideInfo\n * @property {string[]} tipIds Which tips the guide contains.\n * @property {?string} currentTipId The guide's currently showing tip.\n * @property {?string} nextTipId The guide's next tip to show.\n */\n\n/**\n * Returns null because the deprecated NUX package no longer displays guides.\n *\n * @return {null} No associated guide.\n */\nexport function getAssociatedGuide() {\n\treturn null;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether or not the given tip is showing.\n */\nexport function isTipVisible() {\n\treturn false;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether tips are globally enabled.\n */\nexport function areTipsEnabled() {\n\treturn false;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,SAAS,qBAAqB;AACpC,SAAO;AACR;AAOO,SAAS,eAAe;AAC9B,SAAO;AACR;AAOO,SAAS,iBAAiB;AAChC,SAAO;AACR;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"selectors.cjs","names":[],"sources":["../../src/store/selectors.js"],"sourcesContent":["/**\n * An object containing information about a guide.\n *\n * @typedef {Object} NUXGuideInfo\n * @property {string[]} tipIds Which tips the guide contains.\n * @property {?string} currentTipId The guide's currently showing tip.\n * @property {?string} nextTipId The guide's next tip to show.\n */\n\n/**\n * Returns null because the deprecated NUX package no longer displays guides.\n *\n * @return {null} No associated guide.\n */\nexport function getAssociatedGuide() {\n\treturn null;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether or not the given tip is showing.\n */\nexport function isTipVisible() {\n\treturn false;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether tips are globally enabled.\n */\nexport function areTipsEnabled() {\n\treturn false;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,SAAgB,qBAAqB;CACpC,OAAO;AACR;;;;;;AAOA,SAAgB,eAAe;CAC9B,OAAO;AACR;;;;;;AAOA,SAAgB,iBAAiB;CAChC,OAAO;AACR"}
@@ -1,10 +1,12 @@
1
1
  // packages/nux/src/components/dot-tip/index.js
2
+ /**
3
+ * Deprecated no-op DotTip component.
4
+ *
5
+ * @return {null} Nothing.
6
+ */
2
7
  function DotTip() {
3
- return null;
8
+ return null;
4
9
  }
5
- var dot_tip_default = DotTip;
6
- export {
7
- DotTip,
8
- dot_tip_default as default
9
- };
10
- //# sourceMappingURL=index.mjs.map
10
+ export { DotTip, DotTip as default };
11
+
12
+ //# sourceMappingURL=index.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/dot-tip/index.js"],
4
- "sourcesContent": ["/**\n * Deprecated no-op DotTip component.\n *\n * @return {null} Nothing.\n */\nexport function DotTip() {\n\treturn null;\n}\n\nexport default DotTip;\n"],
5
- "mappings": ";AAKO,SAAS,SAAS;AACxB,SAAO;AACR;AAEA,IAAO,kBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/dot-tip/index.js"],"sourcesContent":["/**\n * Deprecated no-op DotTip component.\n *\n * @return {null} Nothing.\n */\nexport function DotTip() {\n\treturn null;\n}\n\nexport default DotTip;\n"],"mappings":";;;;;;AAKA,SAAgB,SAAS;CACxB,OAAO;AACR"}
@@ -1,14 +1,12 @@
1
- // packages/nux/src/index.js
2
1
  import deprecated from "@wordpress/deprecated";
3
2
  import { store } from "./store/index.mjs";
4
- import { default as default2 } from "./components/dot-tip/index.mjs";
3
+ import DotTip from "./components/dot-tip/index.mjs";
4
+ // packages/nux/src/index.js
5
5
  deprecated("wp.nux", {
6
- since: "5.4",
7
- hint: "wp.components.Guide can be used to show a user guide.",
8
- version: "6.2"
6
+ since: "5.4",
7
+ hint: "wp.components.Guide can be used to show a user guide.",
8
+ version: "6.2"
9
9
  });
10
- export {
11
- default2 as DotTip,
12
- store
13
- };
14
- //# sourceMappingURL=index.mjs.map
10
+ export { DotTip, store };
11
+
12
+ //# sourceMappingURL=index.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.js"],
4
- "sourcesContent": ["import deprecated from '@wordpress/deprecated';\n\nexport { store } from './store';\nexport { default as DotTip } from './components/dot-tip';\n\ndeprecated( 'wp.nux', {\n\tsince: '5.4',\n\thint: 'wp.components.Guide can be used to show a user guide.',\n\tversion: '6.2',\n} );\n"],
5
- "mappings": ";AAAA,OAAO,gBAAgB;AAEvB,SAAS,aAAa;AACtB,SAAoB,WAAXA,gBAAyB;AAElC,WAAY,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AACV,CAAE;",
6
- "names": ["default"]
7
- }
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.js"],"sourcesContent":["import deprecated from '@wordpress/deprecated';\n\nexport { store } from './store';\nexport { default as DotTip } from './components/dot-tip';\n\ndeprecated( 'wp.nux', {\n\tsince: '5.4',\n\thint: 'wp.components.Guide can be used to show a user guide.',\n\tversion: '6.2',\n} );\n"],"mappings":";;;;AAKA,WAAY,UAAU;CACrB,OAAO;CACP,MAAM;CACN,SAAS;AACV,CAAE"}
@@ -1,30 +1,50 @@
1
1
  // packages/nux/src/store/actions.js
2
+ /**
3
+ * Returns a no-op action object. This package is deprecated and no longer
4
+ * displays tips, but the action remains for backward compatibility.
5
+ *
6
+ * @param {string[]} tipIds Which tips would have been shown in the guide.
7
+ *
8
+ * @return {Object} Action object.
9
+ */
2
10
  function triggerGuide(tipIds) {
3
- return {
4
- type: "TRIGGER_GUIDE",
5
- tipIds
6
- };
11
+ return {
12
+ type: "TRIGGER_GUIDE",
13
+ tipIds
14
+ };
7
15
  }
16
+ /**
17
+ * Returns a no-op action object. This package is deprecated and no longer
18
+ * displays tips, but the action remains for backward compatibility.
19
+ *
20
+ * @param {string} id The tip that would have been dismissed.
21
+ *
22
+ * @return {Object} Action object.
23
+ */
8
24
  function dismissTip(id) {
9
- return {
10
- type: "DISMISS_TIP",
11
- id
12
- };
25
+ return {
26
+ type: "DISMISS_TIP",
27
+ id
28
+ };
13
29
  }
30
+ /**
31
+ * Returns a no-op action object. This package is deprecated and no longer
32
+ * displays tips, but the action remains for backward compatibility.
33
+ *
34
+ * @return {Object} Action object.
35
+ */
14
36
  function disableTips() {
15
- return {
16
- type: "DISABLE_TIPS"
17
- };
37
+ return { type: "DISABLE_TIPS" };
18
38
  }
39
+ /**
40
+ * Returns a no-op action object. This package is deprecated and no longer
41
+ * displays tips, but the action remains for backward compatibility.
42
+ *
43
+ * @return {Object} Action object.
44
+ */
19
45
  function enableTips() {
20
- return {
21
- type: "ENABLE_TIPS"
22
- };
46
+ return { type: "ENABLE_TIPS" };
23
47
  }
24
- export {
25
- disableTips,
26
- dismissTip,
27
- enableTips,
28
- triggerGuide
29
- };
30
- //# sourceMappingURL=actions.mjs.map
48
+ export { disableTips, dismissTip, enableTips, triggerGuide };
49
+
50
+ //# sourceMappingURL=actions.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/actions.js"],
4
- "sourcesContent": ["/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string[]} tipIds Which tips would have been shown in the guide.\n *\n * @return {Object} Action object.\n */\nexport function triggerGuide( tipIds ) {\n\treturn {\n\t\ttype: 'TRIGGER_GUIDE',\n\t\ttipIds,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string} id The tip that would have been dismissed.\n *\n * @return {Object} Action object.\n */\nexport function dismissTip( id ) {\n\treturn {\n\t\ttype: 'DISMISS_TIP',\n\t\tid,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function disableTips() {\n\treturn {\n\t\ttype: 'DISABLE_TIPS',\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function enableTips() {\n\treturn {\n\t\ttype: 'ENABLE_TIPS',\n\t};\n}\n"],
5
- "mappings": ";AAQO,SAAS,aAAc,QAAS;AACtC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;AAUO,SAAS,WAAY,IAAK;AAChC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;AAQO,SAAS,cAAc;AAC7B,SAAO;AAAA,IACN,MAAM;AAAA,EACP;AACD;AAQO,SAAS,aAAa;AAC5B,SAAO;AAAA,IACN,MAAM;AAAA,EACP;AACD;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"actions.mjs","names":[],"sources":["../../src/store/actions.js"],"sourcesContent":["/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string[]} tipIds Which tips would have been shown in the guide.\n *\n * @return {Object} Action object.\n */\nexport function triggerGuide( tipIds ) {\n\treturn {\n\t\ttype: 'TRIGGER_GUIDE',\n\t\ttipIds,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @param {string} id The tip that would have been dismissed.\n *\n * @return {Object} Action object.\n */\nexport function dismissTip( id ) {\n\treturn {\n\t\ttype: 'DISMISS_TIP',\n\t\tid,\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function disableTips() {\n\treturn {\n\t\ttype: 'DISABLE_TIPS',\n\t};\n}\n\n/**\n * Returns a no-op action object. This package is deprecated and no longer\n * displays tips, but the action remains for backward compatibility.\n *\n * @return {Object} Action object.\n */\nexport function enableTips() {\n\treturn {\n\t\ttype: 'ENABLE_TIPS',\n\t};\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,aAAc,QAAS;CACtC,OAAO;EACN,MAAM;EACN;CACD;AACD;;;;;;;;;AAUA,SAAgB,WAAY,IAAK;CAChC,OAAO;EACN,MAAM;EACN;CACD;AACD;;;;;;;AAQA,SAAgB,cAAc;CAC7B,OAAO,EACN,MAAM,eACP;AACD;;;;;;;AAQA,SAAgB,aAAa;CAC5B,OAAO,EACN,MAAM,cACP;AACD"}
@@ -1,22 +1,28 @@
1
- // packages/nux/src/store/index.js
2
1
  import { createReduxStore, registerStore } from "@wordpress/data";
3
2
  import reducer from "./reducer.mjs";
4
3
  import * as actions from "./actions.mjs";
5
4
  import * as selectors from "./selectors.mjs";
6
- var STORE_NAME = "core/nux";
7
- var store = createReduxStore(STORE_NAME, {
8
- reducer,
9
- actions,
10
- selectors,
11
- persist: ["preferences"]
5
+ // packages/nux/src/store/index.js
6
+ const STORE_NAME = "core/nux";
7
+ /**
8
+ * Store definition for the nux namespace.
9
+ *
10
+ * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
11
+ *
12
+ * @type {Object}
13
+ */
14
+ const store = createReduxStore(STORE_NAME, {
15
+ reducer,
16
+ actions,
17
+ selectors,
18
+ persist: ["preferences"]
12
19
  });
13
20
  registerStore(STORE_NAME, {
14
- reducer,
15
- actions,
16
- selectors,
17
- persist: ["preferences"]
21
+ reducer,
22
+ actions,
23
+ selectors,
24
+ persist: ["preferences"]
18
25
  });
19
- export {
20
- store
21
- };
22
- //# sourceMappingURL=index.mjs.map
26
+ export { store };
27
+
28
+ //# sourceMappingURL=index.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/index.js"],
4
- "sourcesContent": ["import { createReduxStore, registerStore } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as selectors from './selectors';\n\nconst STORE_NAME = 'core/nux';\n\n/**\n * Store definition for the nux namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n\n// Once we build a more generic persistence plugin that works across types of stores\n// we'd be able to replace this with a register call.\nregisterStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n"],
5
- "mappings": ";AAAA,SAAS,kBAAkB,qBAAqB;AAChD,OAAO,aAAa;AACpB,YAAY,aAAa;AACzB,YAAY,eAAe;AAE3B,IAAM,aAAa;AASZ,IAAM,QAAQ,iBAAkB,YAAY;AAAA,EAClD;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,CAAE,aAAc;AAC1B,CAAE;AAIF,cAAe,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,CAAE,aAAc;AAC1B,CAAE;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/store/index.js"],"sourcesContent":["import { createReduxStore, registerStore } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as selectors from './selectors';\n\nconst STORE_NAME = 'core/nux';\n\n/**\n * Store definition for the nux namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n\n// Once we build a more generic persistence plugin that works across types of stores\n// we'd be able to replace this with a register call.\nregisterStore( STORE_NAME, {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n"],"mappings":";;;;;AAKA,MAAM,aAAa;;;;;;;;AASnB,MAAa,QAAQ,iBAAkB,YAAY;CAClD;CACA;CACA;CACA,SAAS,CAAE,aAAc;AAC1B,CAAE;AAIF,cAAe,YAAY;CAC1B;CACA;CACA;CACA,SAAS,CAAE,aAAc;AAC1B,CAAE"}
@@ -1,15 +1,25 @@
1
1
  // packages/nux/src/store/reducer.js
2
- var DEFAULT_STATE = {
3
- guides: [],
4
- preferences: {
5
- areTipsEnabled: false,
6
- dismissedTips: {}
7
- }
2
+ /**
3
+ * Deprecated NUX store state kept only so the core/nux store can still be
4
+ * registered for backward compatibility.
5
+ */
6
+ const DEFAULT_STATE = {
7
+ guides: [],
8
+ preferences: {
9
+ areTipsEnabled: false,
10
+ dismissedTips: {}
11
+ }
8
12
  };
13
+ /**
14
+ * Reducer that preserves state without responding to actions.
15
+ *
16
+ * @param {Object} state Current state.
17
+ *
18
+ * @return {Object} Current state.
19
+ */
9
20
  function reducer(state = DEFAULT_STATE) {
10
- return state;
21
+ return state;
11
22
  }
12
- export {
13
- reducer as default
14
- };
15
- //# sourceMappingURL=reducer.mjs.map
23
+ export { reducer as default };
24
+
25
+ //# sourceMappingURL=reducer.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/reducer.js"],
4
- "sourcesContent": ["/**\n * Deprecated NUX store state kept only so the core/nux store can still be\n * registered for backward compatibility.\n */\nconst DEFAULT_STATE = {\n\tguides: [],\n\tpreferences: {\n\t\tareTipsEnabled: false,\n\t\tdismissedTips: {},\n\t},\n};\n\n/**\n * Reducer that preserves state without responding to actions.\n *\n * @param {Object} state Current state.\n *\n * @return {Object} Current state.\n */\nexport default function reducer( state = DEFAULT_STATE ) {\n\treturn state;\n}\n"],
5
- "mappings": ";AAIA,IAAM,gBAAgB;AAAA,EACrB,QAAQ,CAAC;AAAA,EACT,aAAa;AAAA,IACZ,gBAAgB;AAAA,IAChB,eAAe,CAAC;AAAA,EACjB;AACD;AASe,SAAR,QAA0B,QAAQ,eAAgB;AACxD,SAAO;AACR;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"reducer.mjs","names":[],"sources":["../../src/store/reducer.js"],"sourcesContent":["/**\n * Deprecated NUX store state kept only so the core/nux store can still be\n * registered for backward compatibility.\n */\nconst DEFAULT_STATE = {\n\tguides: [],\n\tpreferences: {\n\t\tareTipsEnabled: false,\n\t\tdismissedTips: {},\n\t},\n};\n\n/**\n * Reducer that preserves state without responding to actions.\n *\n * @param {Object} state Current state.\n *\n * @return {Object} Current state.\n */\nexport default function reducer( state = DEFAULT_STATE ) {\n\treturn state;\n}\n"],"mappings":";;;;;AAIA,MAAM,gBAAgB;CACrB,QAAQ,CAAC;CACT,aAAa;EACZ,gBAAgB;EAChB,eAAe,CAAC;CACjB;AACD;;;;;;;;AASA,SAAwB,QAAS,QAAQ,eAAgB;CACxD,OAAO;AACR"}
@@ -1,16 +1,36 @@
1
1
  // packages/nux/src/store/selectors.js
2
+ /**
3
+ * An object containing information about a guide.
4
+ *
5
+ * @typedef {Object} NUXGuideInfo
6
+ * @property {string[]} tipIds Which tips the guide contains.
7
+ * @property {?string} currentTipId The guide's currently showing tip.
8
+ * @property {?string} nextTipId The guide's next tip to show.
9
+ */
10
+ /**
11
+ * Returns null because the deprecated NUX package no longer displays guides.
12
+ *
13
+ * @return {null} No associated guide.
14
+ */
2
15
  function getAssociatedGuide() {
3
- return null;
16
+ return null;
4
17
  }
18
+ /**
19
+ * Returns false because the deprecated NUX package no longer displays tips.
20
+ *
21
+ * @return {boolean} Whether or not the given tip is showing.
22
+ */
5
23
  function isTipVisible() {
6
- return false;
24
+ return false;
7
25
  }
26
+ /**
27
+ * Returns false because the deprecated NUX package no longer displays tips.
28
+ *
29
+ * @return {boolean} Whether tips are globally enabled.
30
+ */
8
31
  function areTipsEnabled() {
9
- return false;
32
+ return false;
10
33
  }
11
- export {
12
- areTipsEnabled,
13
- getAssociatedGuide,
14
- isTipVisible
15
- };
16
- //# sourceMappingURL=selectors.mjs.map
34
+ export { areTipsEnabled, getAssociatedGuide, isTipVisible };
35
+
36
+ //# sourceMappingURL=selectors.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/selectors.js"],
4
- "sourcesContent": ["/**\n * An object containing information about a guide.\n *\n * @typedef {Object} NUXGuideInfo\n * @property {string[]} tipIds Which tips the guide contains.\n * @property {?string} currentTipId The guide's currently showing tip.\n * @property {?string} nextTipId The guide's next tip to show.\n */\n\n/**\n * Returns null because the deprecated NUX package no longer displays guides.\n *\n * @return {null} No associated guide.\n */\nexport function getAssociatedGuide() {\n\treturn null;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether or not the given tip is showing.\n */\nexport function isTipVisible() {\n\treturn false;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether tips are globally enabled.\n */\nexport function areTipsEnabled() {\n\treturn false;\n}\n"],
5
- "mappings": ";AAcO,SAAS,qBAAqB;AACpC,SAAO;AACR;AAOO,SAAS,eAAe;AAC9B,SAAO;AACR;AAOO,SAAS,iBAAiB;AAChC,SAAO;AACR;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"selectors.mjs","names":[],"sources":["../../src/store/selectors.js"],"sourcesContent":["/**\n * An object containing information about a guide.\n *\n * @typedef {Object} NUXGuideInfo\n * @property {string[]} tipIds Which tips the guide contains.\n * @property {?string} currentTipId The guide's currently showing tip.\n * @property {?string} nextTipId The guide's next tip to show.\n */\n\n/**\n * Returns null because the deprecated NUX package no longer displays guides.\n *\n * @return {null} No associated guide.\n */\nexport function getAssociatedGuide() {\n\treturn null;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether or not the given tip is showing.\n */\nexport function isTipVisible() {\n\treturn false;\n}\n\n/**\n * Returns false because the deprecated NUX package no longer displays tips.\n *\n * @return {boolean} Whether tips are globally enabled.\n */\nexport function areTipsEnabled() {\n\treturn false;\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,SAAgB,qBAAqB;CACpC,OAAO;AACR;;;;;;AAOA,SAAgB,eAAe;CAC9B,OAAO;AACR;;;;;;AAOA,SAAgB,iBAAiB;CAChC,OAAO;AACR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/nux",
3
- "version": "10.9.0",
3
+ "version": "11.1.0",
4
4
  "description": "Deprecated no-op NUX (New User eXperience) compatibility module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -19,15 +19,14 @@
19
19
  "url": "https://github.com/WordPress/gutenberg/issues"
20
20
  },
21
21
  "engines": {
22
- "node": ">=18.12.0"
22
+ "node": ">=22.13.0"
23
23
  },
24
24
  "files": [
25
25
  "src",
26
26
  "build",
27
27
  "build-module",
28
28
  "build-style",
29
- "build-types",
30
- "*.md"
29
+ "build-types"
31
30
  ],
32
31
  "main": "build/index.cjs",
33
32
  "module": "build-module/index.mjs",
@@ -51,13 +50,13 @@
51
50
  "build-module/store/index.mjs"
52
51
  ],
53
52
  "dependencies": {
54
- "@wordpress/data": "^10.57.0",
55
- "@wordpress/deprecated": "^4.57.0"
53
+ "@wordpress/data": "^11.1.0",
54
+ "@wordpress/deprecated": "^5.1.0"
56
55
  },
57
56
  "devDependencies": {
58
57
  "@testing-library/dom": "^10.4.2",
59
58
  "@testing-library/react": "^16.3.3",
60
- "vitest": "^5.0.3"
59
+ "vitest": "^5.0.5"
61
60
  },
62
61
  "peerDependencies": {
63
62
  "react": "^18 || ^19",
@@ -66,5 +65,5 @@
66
65
  "publishConfig": {
67
66
  "access": "public"
68
67
  },
69
- "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
68
+ "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
70
69
  }
package/CHANGELOG.md DELETED
@@ -1,303 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 10.9.0 (2026-10-07)
6
-
7
- ## 10.8.0 (2026-09-23)
8
-
9
- ## 10.7.0 (2026-09-10)
10
-
11
- ### Internal
12
-
13
- - Remove unused dependency `@testing-library/user-event` ([#82103](https://github.com/WordPress/gutenberg/pull/82103)).
14
-
15
- ## 10.6.0 (2026-08-26)
16
-
17
- ## 10.5.0 (2026-08-12)
18
-
19
-
20
- ## 10.4.0 (2026-07-29)
21
-
22
- ### Internal
23
-
24
- - Update `exports` to use subpath patterns instead of deprecated trailing `/` folder mappings ([#80270](https://github.com/WordPress/gutenberg/pull/80270)).
25
-
26
- ## 10.3.0 (2026-07-14)
27
-
28
- ### Enhancements
29
-
30
- - Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
31
-
32
- ## 10.2.0 (2026-07-01)
33
-
34
- ## 10.1.0 (2026-06-24)
35
-
36
- ## 10.0.1 (2026-06-16)
37
-
38
- ## 10.0.0 (2026-06-10)
39
-
40
- ### Breaking Changes
41
-
42
- - Turn `@wordpress/nux` into a deprecated no-op compatibility package. `DotTip` renders nothing, selectors return empty disabled values, and actions no longer have runtime effects ([#77773](https://github.com/WordPress/gutenberg/pull/77773)).
43
-
44
- ## 9.47.0 (2026-05-27)
45
-
46
- ## 9.46.0 (2026-05-14)
47
-
48
- ## 9.45.0 (2026-04-29)
49
-
50
- ## 9.44.0 (2026-04-15)
51
-
52
- ## 9.43.0 (2026-04-01)
53
-
54
- ## 9.42.0 (2026-03-18)
55
-
56
- ## 9.41.0 (2026-03-04)
57
-
58
- ## 9.40.0 (2026-02-18)
59
-
60
- ## 9.39.0 (2026-01-29)
61
-
62
- ## 9.38.0 (2026-01-16)
63
-
64
- ## 9.36.0 (2025-11-26)
65
-
66
- ## 9.35.0 (2025-11-12)
67
-
68
- ## 9.34.0 (2025-10-29)
69
-
70
- ## 9.33.0 (2025-10-17)
71
-
72
- ## 9.32.0 (2025-10-01)
73
-
74
- ## 9.31.0 (2025-09-17)
75
-
76
- ## 9.30.0 (2025-09-03)
77
-
78
- ## 9.29.0 (2025-08-20)
79
-
80
- ## 9.28.0 (2025-08-07)
81
-
82
- ## 9.27.0 (2025-07-23)
83
-
84
- ## 9.26.0 (2025-06-25)
85
-
86
- ## 9.25.0 (2025-06-04)
87
-
88
- ## 9.24.0 (2025-05-22)
89
-
90
- ## 9.23.0 (2025-05-07)
91
-
92
- ## 9.22.0 (2025-04-11)
93
-
94
- ## 9.21.0 (2025-03-27)
95
-
96
- ## 9.20.0 (2025-03-13)
97
-
98
- ## 9.19.0 (2025-02-28)
99
-
100
- ## 9.18.0 (2025-02-12)
101
-
102
- ## 9.17.0 (2025-01-29)
103
-
104
- ## 9.16.0 (2025-01-15)
105
-
106
- ## 9.15.0 (2025-01-02)
107
-
108
- ## 9.14.0 (2024-12-11)
109
-
110
- ## 9.13.0 (2024-11-27)
111
-
112
- ## 9.12.0 (2024-11-16)
113
-
114
- ## 9.11.0 (2024-10-30)
115
-
116
- ## 9.10.0 (2024-10-16)
117
-
118
- ## 9.9.0 (2024-10-03)
119
-
120
- ## 9.8.0 (2024-09-19)
121
-
122
- ## 9.7.0 (2024-09-05)
123
-
124
- ## 9.6.0 (2024-08-21)
125
-
126
- ## 9.5.0 (2024-08-07)
127
-
128
- ## 9.4.0 (2024-07-24)
129
-
130
- ## 9.3.0 (2024-07-10)
131
-
132
- ## 9.2.0 (2024-06-26)
133
-
134
- ## 9.1.0 (2024-06-15)
135
-
136
- ## 9.0.0 (2024-05-31)
137
-
138
- ### Breaking Changes
139
-
140
- - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases).
141
-
142
- ## 8.20.0 (2024-05-16)
143
-
144
- ## 8.19.0 (2024-05-02)
145
-
146
- ## 8.18.0 (2024-04-19)
147
-
148
- ## 8.17.0 (2024-04-03)
149
-
150
- ## 8.16.0 (2024-03-21)
151
-
152
- ## 8.15.0 (2024-03-06)
153
-
154
- ## 8.14.0 (2024-02-21)
155
-
156
- ## 8.13.0 (2024-02-09)
157
-
158
- ## 8.12.0 (2024-01-24)
159
-
160
- ## 8.11.0 (2024-01-10)
161
-
162
- ## 8.10.0 (2023-12-13)
163
-
164
- ## 8.9.0 (2023-11-29)
165
-
166
- ## 8.8.0 (2023-11-16)
167
-
168
- ## 8.7.0 (2023-11-02)
169
-
170
- ## 8.6.0 (2023-10-18)
171
-
172
- ## 8.5.0 (2023-10-05)
173
-
174
- ## 8.4.0 (2023-09-20)
175
-
176
- ## 8.3.0 (2023-08-31)
177
-
178
- ## 8.2.0 (2023-08-16)
179
-
180
- ## 8.1.0 (2023-08-10)
181
-
182
- ## 8.0.0 (2023-07-20)
183
-
184
- ### Breaking Changes
185
-
186
- - Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235))
187
-
188
- ## 5.20.0 (2022-11-16)
189
-
190
- ## 5.19.0 (2022-11-02)
191
-
192
- ## 5.18.0 (2022-10-19)
193
-
194
- ## 5.17.0 (2022-10-05)
195
-
196
- ## 5.16.0 (2022-09-21)
197
-
198
- ## 5.15.0 (2022-09-13)
199
-
200
- ## 5.14.0 (2022-08-24)
201
-
202
- ## 5.13.0 (2022-08-10)
203
-
204
- ## 5.12.0 (2022-07-27)
205
-
206
- ## 5.11.0 (2022-07-13)
207
-
208
- ## 5.10.0 (2022-06-29)
209
-
210
- ## 5.9.0 (2022-06-15)
211
-
212
- ## 5.8.0 (2022-06-01)
213
-
214
- ## 5.7.0 (2022-05-18)
215
-
216
- ## 5.6.0 (2022-05-04)
217
-
218
- ## 5.5.0 (2022-04-21)
219
-
220
- ## 5.4.0 (2022-04-08)
221
-
222
- ## 5.3.0 (2022-03-23)
223
-
224
- ## 5.2.0 (2022-03-11)
225
-
226
- ## 5.1.0 (2022-01-27)
227
-
228
- ## 5.0.0 (2021-07-29)
229
-
230
- ### Breaking Changes
231
-
232
- - Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
233
-
234
- ## 4.2.0 (2021-07-21)
235
-
236
- ## 4.1.0 (2021-05-20)
237
-
238
- ## 4.0.0 (2021-05-14)
239
-
240
- ### Breaking Changes
241
-
242
- - Drop support for Internet Explorer 11 ([#31110](https://github.com/WordPress/gutenberg/pull/31110)). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
243
- - Increase the minimum Node.js version to v12 matching Long Term Support releases ([#31270](https://github.com/WordPress/gutenberg/pull/31270)). Learn more at https://nodejs.org/en/about/releases/.
244
-
245
- ## 3.25.0 (2021-03-17)
246
-
247
- ## 3.24.0 (2020-12-17)
248
-
249
- ### New Features
250
-
251
- - Added a store definition `store` for the core data namespace to use with `@wordpress/data` API ([#26655](https://github.com/WordPress/gutenberg/pull/26655)).
252
-
253
- # 3.1.0 (2019-06-03)
254
-
255
- - The `@wordpress/nux` package has been deprecated. Please use the `Guide` component in `@wordpress/components` to show a user guide.
256
-
257
- ## 3.0.6 (2019-01-03)
258
-
259
- ## 3.0.5 (2018-12-12)
260
-
261
- ## 3.0.4 (2018-11-30)
262
-
263
- ## 3.0.3 (2018-11-22)
264
-
265
- ## 3.0.2 (2018-11-21)
266
-
267
- ## 3.0.1 (2018-11-20)
268
-
269
- ## 3.0.0 (2018-11-15)
270
-
271
- ### Breaking Changes
272
-
273
- - The id prop of DotTip has been removed. Please use the tipId prop instead.
274
-
275
- ## 2.0.13 (2018-11-12)
276
-
277
- ## 2.0.12 (2018-11-12)
278
-
279
- ## 2.0.11 (2018-11-09)
280
-
281
- ## 2.0.10 (2018-11-09)
282
-
283
- ## 2.0.9 (2018-11-03)
284
-
285
- ## 2.0.8 (2018-10-30)
286
-
287
- ## 2.0.7 (2018-10-29)
288
-
289
- ### Deprecations
290
-
291
- - The id prop of DotTip has been deprecated. Please use the tipId prop instead.
292
-
293
- ## 2.0.6 (2018-10-22)
294
-
295
- ## 2.0.5 (2018-10-19)
296
-
297
- ## 2.0.4 (2018-10-18)
298
-
299
- ## 2.0.0 (2018-09-05)
300
-
301
- ### Breaking Changes
302
-
303
- - Change how required built-ins are polyfilled with Babel 7 ([#9171](https://github.com/WordPress/gutenberg/pull/9171)). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods.