@wordpress/fields 0.21.1-next.e256d081a.0 → 0.22.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,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.22.0 (2025-09-03)
6
+
7
+ ### Enhancements
8
+
9
+ - Update the base `titleField` to enable hiding. [#71369](https://github.com/WordPress/gutenberg/pull/71369)
10
+
5
11
  ## 0.21.0 (2025-08-20)
6
12
 
7
13
  ## 0.20.0 (2025-08-07)
@@ -25,7 +25,7 @@ const titleField = {
25
25
  item
26
26
  }) => (0, _utils.getItemTitle)(item),
27
27
  render: _view.default,
28
- enableHiding: false,
28
+ enableHiding: true,
29
29
  enableGlobalSearch: true,
30
30
  filterBy: false
31
31
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_utils","_view","_interopRequireDefault","titleField","type","id","label","__","placeholder","getValue","item","getItemTitle","render","TitleView","enableHiding","enableGlobalSearch","filterBy","_default","exports","default"],"sources":["@wordpress/fields/src/fields/title/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { CommonPost } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from './view';\n\nconst titleField: Field< CommonPost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the any entity with a `title` property.\n * For patterns, pages or templates you should use the respective field\n * because there are some differences in the rendering, labels, etc.\n */\nexport default titleField;\n"],"mappings":";;;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AAXA;AACA;AACA;;AAIA;AACA;AACA;;AAKA,MAAMI,UAA+B,GAAG;EACvCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAE,IAAAC,QAAE,EAAE,OAAQ,CAAC;EACpBC,WAAW,EAAE,IAAAD,QAAE,EAAE,UAAW,CAAC;EAC7BE,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAM,IAAAC,mBAAY,EAAED,IAAK,CAAC;EAC9CE,MAAM,EAAEC,aAAS;EACjBC,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AAJA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKehB,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["_i18n","require","_utils","_view","_interopRequireDefault","titleField","type","id","label","__","placeholder","getValue","item","getItemTitle","render","TitleView","enableHiding","enableGlobalSearch","filterBy","_default","exports","default"],"sources":["@wordpress/fields/src/fields/title/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { CommonPost } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from './view';\n\nconst titleField: Field< CommonPost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: true,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the any entity with a `title` property.\n * For patterns, pages or templates you should use the respective field\n * because there are some differences in the rendering, labels, etc.\n */\nexport default titleField;\n"],"mappings":";;;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AAXA;AACA;AACA;;AAIA;AACA;AACA;;AAKA,MAAMI,UAA+B,GAAG;EACvCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAE,IAAAC,QAAE,EAAE,OAAQ,CAAC;EACpBC,WAAW,EAAE,IAAAD,QAAE,EAAE,UAAW,CAAC;EAC7BE,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAM,IAAAC,mBAAY,EAAED,IAAK,CAAC;EAC9CE,MAAM,EAAEC,aAAS;EACjBC,YAAY,EAAE,IAAI;EAClBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AAJA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKehB,UAAU","ignoreList":[]}
@@ -19,7 +19,7 @@ const titleField = {
19
19
  item
20
20
  }) => getItemTitle(item),
21
21
  render: TitleView,
22
- enableHiding: false,
22
+ enableHiding: true,
23
23
  enableGlobalSearch: true,
24
24
  filterBy: false
25
25
  };
@@ -1 +1 @@
1
- {"version":3,"names":["__","getItemTitle","TitleView","titleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch","filterBy"],"sources":["@wordpress/fields/src/fields/title/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { CommonPost } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from './view';\n\nconst titleField: Field< CommonPost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the any entity with a `title` property.\n * For patterns, pages or templates you should use the respective field\n * because there are some differences in the rendering, labels, etc.\n */\nexport default titleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,SAAS,MAAM,QAAQ;AAE9B,MAAMC,UAA+B,GAAG;EACvCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,SAAS;EACjBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,eAAeV,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["__","getItemTitle","TitleView","titleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch","filterBy"],"sources":["@wordpress/fields/src/fields/title/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { CommonPost } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from './view';\n\nconst titleField: Field< CommonPost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: true,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the any entity with a `title` property.\n * For patterns, pages or templates you should use the respective field\n * because there are some differences in the rendering, labels, etc.\n */\nexport default titleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,SAAS,MAAM,QAAQ;AAE9B,MAAMC,UAA+B,GAAG;EACvCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,SAAS;EACjBS,YAAY,EAAE,IAAI;EAClBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,eAAeV,UAAU","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/fields",
3
- "version": "0.21.1-next.e256d081a.0",
3
+ "version": "0.22.0",
4
4
  "description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -33,29 +33,29 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@babel/runtime": "7.25.7",
36
- "@wordpress/api-fetch": "^7.29.1-next.e256d081a.0",
37
- "@wordpress/blob": "^4.29.1-next.e256d081a.0",
38
- "@wordpress/block-editor": "^15.2.1-next.e256d081a.0",
39
- "@wordpress/blocks": "^15.2.1-next.e256d081a.0",
40
- "@wordpress/components": "^30.2.2-next.e256d081a.0",
41
- "@wordpress/compose": "^7.29.1-next.e256d081a.0",
42
- "@wordpress/core-data": "^7.29.1-next.e256d081a.0",
43
- "@wordpress/data": "^10.29.1-next.e256d081a.0",
44
- "@wordpress/dataviews": "^8.0.1-next.e256d081a.0",
45
- "@wordpress/date": "^5.30.1-next.e256d081a.0",
46
- "@wordpress/element": "^6.29.1-next.e256d081a.0",
47
- "@wordpress/hooks": "^4.29.1-next.e256d081a.0",
48
- "@wordpress/html-entities": "^4.29.1-next.e256d081a.0",
49
- "@wordpress/i18n": "^6.2.1-next.e256d081a.0",
50
- "@wordpress/icons": "^10.29.1-next.e256d081a.0",
51
- "@wordpress/media-utils": "^5.29.1-next.e256d081a.0",
52
- "@wordpress/notices": "^5.29.1-next.e256d081a.0",
53
- "@wordpress/patterns": "^2.29.1-next.e256d081a.0",
54
- "@wordpress/primitives": "^4.29.1-next.e256d081a.0",
55
- "@wordpress/private-apis": "^1.29.1-next.e256d081a.0",
56
- "@wordpress/router": "^1.29.1-next.e256d081a.0",
57
- "@wordpress/url": "^4.29.1-next.e256d081a.0",
58
- "@wordpress/warning": "^3.29.1-next.e256d081a.0",
36
+ "@wordpress/api-fetch": "^7.30.0",
37
+ "@wordpress/blob": "^4.30.0",
38
+ "@wordpress/block-editor": "^15.3.0",
39
+ "@wordpress/blocks": "^15.3.0",
40
+ "@wordpress/components": "^30.3.0",
41
+ "@wordpress/compose": "^7.30.0",
42
+ "@wordpress/core-data": "^7.30.0",
43
+ "@wordpress/data": "^10.30.0",
44
+ "@wordpress/dataviews": "^8.0.0",
45
+ "@wordpress/date": "^5.30.0",
46
+ "@wordpress/element": "^6.30.0",
47
+ "@wordpress/hooks": "^4.30.0",
48
+ "@wordpress/html-entities": "^4.30.0",
49
+ "@wordpress/i18n": "^6.3.0",
50
+ "@wordpress/icons": "^10.30.0",
51
+ "@wordpress/media-utils": "^5.30.0",
52
+ "@wordpress/notices": "^5.30.0",
53
+ "@wordpress/patterns": "^2.30.0",
54
+ "@wordpress/primitives": "^4.30.0",
55
+ "@wordpress/private-apis": "^1.30.0",
56
+ "@wordpress/router": "^1.30.0",
57
+ "@wordpress/url": "^4.30.0",
58
+ "@wordpress/warning": "^3.30.0",
59
59
  "change-case": "4.1.2",
60
60
  "client-zip": "^2.4.5",
61
61
  "clsx": "2.1.1",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "7d529ba9a461795d5f1572d3856de33f744287c2"
70
+ "gitHead": "c66cb089eed19d4f4956962fa7b4c81abe6dd513"
71
71
  }
@@ -18,7 +18,7 @@ const titleField: Field< CommonPost > = {
18
18
  placeholder: __( 'No title' ),
19
19
  getValue: ( { item } ) => getItemTitle( item ),
20
20
  render: TitleView,
21
- enableHiding: false,
21
+ enableHiding: true,
22
22
  enableGlobalSearch: true,
23
23
  filterBy: false,
24
24
  };