@wordpress/nux 11.1.0 → 11.3.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/build/index.cjs CHANGED
@@ -11,12 +11,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
11
11
  var __getProtoOf = Object.getPrototypeOf;
12
12
  var __hasOwnProp = Object.prototype.hasOwnProperty;
13
13
  var __copyProps = (to, from, except, desc) => {
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
- });
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) {
16
+ desc = __getOwnPropDesc(from, key);
17
+ __defProp(to, key, {
18
+ get: desc && desc.get && !desc.configurable ? desc.get : () => from[key],
19
+ enumerable: !desc || desc.enumerable
20
+ });
21
+ }
20
22
  }
21
23
  return to;
22
24
  };
@@ -25,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
27
  enumerable: true
26
28
  }) : target, mod));
27
29
  let _wordpress_deprecated = require("@wordpress/deprecated");
28
- _wordpress_deprecated = __toESM(_wordpress_deprecated);
29
30
  let __store_index_js = require("./store/index.cjs");
30
31
  let __components_dot_tip_index_js = require("./components/dot-tip/index.cjs");
32
+ _wordpress_deprecated = __toESM(_wordpress_deprecated);
31
33
  __components_dot_tip_index_js = __toESM(__components_dot_tip_index_js);
32
34
  // packages/nux/src/index.js
33
35
  (0, _wordpress_deprecated.default)("wp.nux", {
@@ -1 +1 @@
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
+ {"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"}
@@ -11,12 +11,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
11
11
  var __getProtoOf = Object.getPrototypeOf;
12
12
  var __hasOwnProp = Object.prototype.hasOwnProperty;
13
13
  var __copyProps = (to, from, except, desc) => {
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
- });
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) {
16
+ desc = __getOwnPropDesc(from, key);
17
+ __defProp(to, key, {
18
+ get: desc && desc.get && !desc.configurable ? desc.get : () => from[key],
19
+ enumerable: !desc || desc.enumerable
20
+ });
21
+ }
20
22
  }
21
23
  return to;
22
24
  };
@@ -26,10 +28,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
28
  }) : target, mod));
27
29
  let _wordpress_data = require("@wordpress/data");
28
30
  let __reducer_js = require("./reducer.cjs");
29
- __reducer_js = __toESM(__reducer_js);
30
31
  let __actions_js = require("./actions.cjs");
31
- __actions_js = __toESM(__actions_js);
32
32
  let __selectors_js = require("./selectors.cjs");
33
+ __reducer_js = __toESM(__reducer_js);
34
+ __actions_js = __toESM(__actions_js);
33
35
  __selectors_js = __toESM(__selectors_js);
34
36
  // packages/nux/src/store/index.js
35
37
  const STORE_NAME = "core/nux";
@@ -1 +1 @@
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
+ {"version":3,"file":"index.cjs","names":["createReduxStore","reducer","actions","selectors","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;CAClDC,SAAAA,aAAAA;CACAC,SAAAA;CACAC,WAAAA;CACA,SAAS,CAAE,aAAc;AAC1B,CAAE;CAIFC,GAAAA,gBAAAA,cAAAA,CAAe,YAAY;CAC1BH,SAAAA,aAAAA;CACAC,SAAAA;CACAC,WAAAA;CACA,SAAS,CAAE,aAAc;AAC1B,CAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/nux",
3
- "version": "11.1.0",
3
+ "version": "11.3.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",
@@ -50,13 +50,13 @@
50
50
  "build-module/store/index.mjs"
51
51
  ],
52
52
  "dependencies": {
53
- "@wordpress/data": "^11.1.0",
54
- "@wordpress/deprecated": "^5.1.0"
53
+ "@wordpress/data": "^11.3.0",
54
+ "@wordpress/deprecated": "^5.3.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@testing-library/dom": "^10.4.2",
58
58
  "@testing-library/react": "^16.3.3",
59
- "vitest": "^5.0.5"
59
+ "vitest": "^5.1.1"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": "^18 || ^19",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
68
+ "gitHead": "7f19202f61aeba8f4bdce892a1a0df485ad76e2b"
69
69
  }