@wordpress/dataviews 4.4.7 → 4.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dataviews",
3
- "version": "4.4.7",
3
+ "version": "4.4.9",
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",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@ariakit/react": "^0.4.10",
32
32
  "@babel/runtime": "^7.16.0",
33
- "@wordpress/components": "^28.8.7",
33
+ "@wordpress/components": "^28.8.9",
34
34
  "@wordpress/compose": "^7.8.3",
35
35
  "@wordpress/data": "^10.8.3",
36
36
  "@wordpress/element": "^6.8.1",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "b1ace05ee94f0803e51b205306c19fc706499ede"
51
+ "gitHead": "e392a1ef96df24a1e3be3b94e91670e0793b8cfe"
52
52
  }
@@ -33,8 +33,9 @@ export default function DataViewsSelectionCheckbox< Item >( {
33
33
  if ( primaryField?.getValue && item ) {
34
34
  // eslint-disable-next-line @wordpress/valid-sprintf
35
35
  selectionLabel = sprintf(
36
- /* translators: %s: item title. */
37
- checked ? __( 'Deselect item: %s' ) : __( 'Select item: %s' ),
36
+ checked
37
+ ? /* translators: %s: item title. */ __( 'Deselect item: %s' )
38
+ : /* translators: %s: item title. */ __( 'Select item: %s' ),
38
39
  primaryField.getValue( { item } )
39
40
  );
40
41
  } else {
@@ -359,12 +359,12 @@ function FieldItem( {
359
359
  isVisible
360
360
  ? sprintf(
361
361
  /* translators: %s: field label */
362
- __( 'Hide %s' ),
362
+ _x( 'Hide %s', 'field' ),
363
363
  label
364
364
  )
365
365
  : sprintf(
366
366
  /* translators: %s: field label */
367
- __( 'Show %s' ),
367
+ _x( 'Show %s', 'field' ),
368
368
  label
369
369
  )
370
370
  }
@@ -10,7 +10,7 @@ import {
10
10
  Button,
11
11
  } from '@wordpress/components';
12
12
  import { useState, useMemo } from '@wordpress/element';
13
- import { sprintf, __ } from '@wordpress/i18n';
13
+ import { sprintf, __, _x } from '@wordpress/i18n';
14
14
  import { closeSmall } from '@wordpress/icons';
15
15
 
16
16
  /**
@@ -104,7 +104,7 @@ function FormField< Item >( {
104
104
  aria-expanded={ isOpen }
105
105
  aria-label={ sprintf(
106
106
  // translators: %s: Field name.
107
- __( 'Edit %s' ),
107
+ _x( 'Edit %s', 'field' ),
108
108
  field.label
109
109
  ) }
110
110
  onClick={ onToggle }
@@ -33,7 +33,7 @@ ul.dataviews-view-list {
33
33
  .dataviews-view-list__item-actions {
34
34
  flex-basis: min-content;
35
35
  overflow: unset;
36
- margin-inline: $grid-unit-10 0;
36
+ padding-inline-end: $grid-unit-05;
37
37
 
38
38
  .components-button {
39
39
  opacity: 1;