@wordpress/boot 0.26.0 → 0.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/boot",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Minimal boot package for WordPress admin pages.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -38,32 +38,32 @@
38
38
  "wpScriptModuleExports": "./build-module/index.mjs",
39
39
  "types": "build-types",
40
40
  "dependencies": {
41
- "@wordpress/a11y": "^5.1.0",
42
- "@wordpress/admin-ui": "^3.1.0",
43
- "@wordpress/base-styles": "^15.0.0",
44
- "@wordpress/components": "^44.0.0",
45
- "@wordpress/compose": "^9.1.0",
46
- "@wordpress/core-data": "^9.1.0",
47
- "@wordpress/data": "^11.1.0",
48
- "@wordpress/dom": "^5.1.0",
49
- "@wordpress/editor": "^16.1.0",
50
- "@wordpress/element": "^10.1.0",
51
- "@wordpress/html-entities": "^5.1.0",
52
- "@wordpress/i18n": "^7.1.0",
53
- "@wordpress/icons": "^20.0.0",
54
- "@wordpress/keyboard-shortcuts": "^6.1.0",
55
- "@wordpress/keycodes": "^5.1.0",
56
- "@wordpress/lazy-editor": "^2.1.0",
57
- "@wordpress/notices": "^6.1.0",
58
- "@wordpress/plugins": "^8.1.0",
59
- "@wordpress/primitives": "^5.1.0",
60
- "@wordpress/private-apis": "^3.1.0",
61
- "@wordpress/react-inert-value": "^2.1.0",
62
- "@wordpress/route": "^0.25.0",
63
- "@wordpress/style-runtime": "^0.15.0",
64
- "@wordpress/theme": "^4.0.0",
65
- "@wordpress/ui": "^0.26.0",
66
- "@wordpress/url": "^5.1.0",
41
+ "@wordpress/a11y": "^5.2.0",
42
+ "@wordpress/admin-ui": "^3.2.0",
43
+ "@wordpress/base-styles": "^15.1.0",
44
+ "@wordpress/components": "^45.0.0",
45
+ "@wordpress/compose": "^9.2.0",
46
+ "@wordpress/core-data": "^9.2.0",
47
+ "@wordpress/data": "^11.2.0",
48
+ "@wordpress/dom": "^5.2.0",
49
+ "@wordpress/editor": "^16.2.0",
50
+ "@wordpress/element": "^10.2.0",
51
+ "@wordpress/html-entities": "^5.2.0",
52
+ "@wordpress/i18n": "^7.2.0",
53
+ "@wordpress/icons": "^21.0.0",
54
+ "@wordpress/keyboard-shortcuts": "^6.2.0",
55
+ "@wordpress/keycodes": "^5.2.0",
56
+ "@wordpress/lazy-editor": "^2.2.0",
57
+ "@wordpress/notices": "^6.2.0",
58
+ "@wordpress/plugins": "^8.2.0",
59
+ "@wordpress/primitives": "^5.2.0",
60
+ "@wordpress/private-apis": "^3.2.0",
61
+ "@wordpress/react-inert-value": "^2.2.0",
62
+ "@wordpress/route": "^0.26.0",
63
+ "@wordpress/style-runtime": "^0.16.0",
64
+ "@wordpress/theme": "^5.0.0",
65
+ "@wordpress/ui": "^0.27.0",
66
+ "@wordpress/url": "^5.2.0",
67
67
  "clsx": "^2.1.1"
68
68
  },
69
69
  "peerDependencies": {
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
82
+ "gitHead": "1000cdf1dffd5b5e69f75cc4360aa76db8252264"
83
83
  }
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { speak } from '@wordpress/a11y';
3
3
  import { Component, useEffect, useState } from '@wordpress/element';
4
- import { __ } from '@wordpress/i18n';
4
+ import { __, _x } from '@wordpress/i18n';
5
5
  import { Button } from '@wordpress/components';
6
6
  import { EmptyState } from '@wordpress/ui';
7
7
  import { useCopyToClipboard } from '@wordpress/compose';
@@ -66,7 +66,7 @@ function CopyErrorButton( { error }: { error: Error } ) {
66
66
  ref={ ref }
67
67
  icon={ RESULT_ICON[ feedback.result ] }
68
68
  >
69
- { __( 'Copy error' ) }
69
+ { _x( 'Copy error', 'button label' ) }
70
70
  </Button>
71
71
  );
72
72
  }
@@ -14,7 +14,7 @@ import styles from './style.module.scss';
14
14
  const ANIMATION_DURATION = 0.3;
15
15
  const slideVariants = {
16
16
  initial: ( direction: 'forward' | 'backward' ) => ( {
17
- x: direction === 'forward' ? 100 : -100,
17
+ x: ( direction === 'forward' ? 100 : -100 ) * ( isRTL() ? -1 : 1 ),
18
18
  opacity: 0,
19
19
  } ),
20
20
  animate: {
@@ -22,7 +22,7 @@ const slideVariants = {
22
22
  opacity: 1,
23
23
  },
24
24
  exit: ( direction: 'forward' | 'backward' ) => ( {
25
- x: direction === 'forward' ? 100 : -100,
25
+ x: ( direction === 'forward' ? 100 : -100 ) * ( isRTL() ? -1 : 1 ),
26
26
  opacity: 0,
27
27
  } ),
28
28
  };
@@ -70,7 +70,7 @@
70
70
  max-width: 85vw;
71
71
  background: var(--wpds-color-background-surface-neutral-weak);
72
72
  z-index: 100003;
73
- box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
73
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
74
74
  }
75
75
  }
76
76
 
@@ -10,7 +10,7 @@ import {
10
10
  } from '@wordpress/components';
11
11
  import { menu } from '@wordpress/icons';
12
12
  import { useState, useEffect, useMemo } from '@wordpress/element';
13
- import { __ } from '@wordpress/i18n';
13
+ import { __, isRTL } from '@wordpress/i18n';
14
14
  import { UnsavedChangesWarning } from '@wordpress/editor';
15
15
  import { Page, getAdminThemeColors } from '@wordpress/admin-ui';
16
16
  import { Tooltip } from '@wordpress/ui';
@@ -130,9 +130,13 @@ export default function Root() {
130
130
  isMobileSidebarOpen &&
131
131
  ! isFullScreen && (
132
132
  <motion.div
133
- initial={ { x: '-100%' } }
133
+ initial={ {
134
+ x: isRTL() ? '100%' : '-100%',
135
+ } }
134
136
  animate={ { x: 0 } }
135
- exit={ { x: '-100%' } }
137
+ exit={ {
138
+ x: isRTL() ? '100%' : '-100%',
139
+ } }
136
140
  transition={ {
137
141
  type: 'tween',
138
142
  duration: disableMotion