@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/build-module/components/app/router.mjs +24 -24
- package/build-module/components/app/router.mjs.map +1 -1
- package/build-module/components/error-boundary/index.mjs +2 -2
- package/build-module/components/error-boundary/index.mjs.map +1 -1
- package/build-module/components/navigation/drilldown-item/index.mjs +3 -3
- package/build-module/components/navigation/drilldown-item/index.mjs.map +1 -1
- package/build-module/components/navigation/dropdown-item/index.mjs +3 -3
- package/build-module/components/navigation/dropdown-item/index.mjs.map +1 -1
- package/build-module/components/navigation/navigation-item/index.mjs +3 -3
- package/build-module/components/navigation/navigation-item/index.mjs.map +1 -1
- package/build-module/components/navigation/navigation-screen/index.mjs +2 -2
- package/build-module/components/navigation/navigation-screen/index.mjs.map +1 -1
- package/build-module/components/root/index.mjs +27 -27
- package/build-module/components/root/index.mjs.map +1 -1
- package/build-module/components/root/single-page.mjs +24 -24
- package/build-module/components/root/single-page.mjs.map +1 -1
- package/build-types/components/root/index.d.ts.map +1 -1
- package/package.json +28 -28
- package/src/components/error-boundary/index.tsx +2 -2
- package/src/components/navigation/navigation-screen/index.tsx +2 -2
- package/src/components/root/_layout.module.scss +1 -1
- package/src/components/root/index.tsx +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/boot",
|
|
3
|
-
"version": "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.
|
|
42
|
-
"@wordpress/admin-ui": "^3.
|
|
43
|
-
"@wordpress/base-styles": "^15.
|
|
44
|
-
"@wordpress/components": "^
|
|
45
|
-
"@wordpress/compose": "^9.
|
|
46
|
-
"@wordpress/core-data": "^9.
|
|
47
|
-
"@wordpress/data": "^11.
|
|
48
|
-
"@wordpress/dom": "^5.
|
|
49
|
-
"@wordpress/editor": "^16.
|
|
50
|
-
"@wordpress/element": "^10.
|
|
51
|
-
"@wordpress/html-entities": "^5.
|
|
52
|
-
"@wordpress/i18n": "^7.
|
|
53
|
-
"@wordpress/icons": "^
|
|
54
|
-
"@wordpress/keyboard-shortcuts": "^6.
|
|
55
|
-
"@wordpress/keycodes": "^5.
|
|
56
|
-
"@wordpress/lazy-editor": "^2.
|
|
57
|
-
"@wordpress/notices": "^6.
|
|
58
|
-
"@wordpress/plugins": "^8.
|
|
59
|
-
"@wordpress/primitives": "^5.
|
|
60
|
-
"@wordpress/private-apis": "^3.
|
|
61
|
-
"@wordpress/react-inert-value": "^2.
|
|
62
|
-
"@wordpress/route": "^0.
|
|
63
|
-
"@wordpress/style-runtime": "^0.
|
|
64
|
-
"@wordpress/theme": "^
|
|
65
|
-
"@wordpress/ui": "^0.
|
|
66
|
-
"@wordpress/url": "^5.
|
|
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": "
|
|
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
|
-
{
|
|
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
|
};
|
|
@@ -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={ {
|
|
133
|
+
initial={ {
|
|
134
|
+
x: isRTL() ? '100%' : '-100%',
|
|
135
|
+
} }
|
|
134
136
|
animate={ { x: 0 } }
|
|
135
|
-
exit={ {
|
|
137
|
+
exit={ {
|
|
138
|
+
x: isRTL() ? '100%' : '-100%',
|
|
139
|
+
} }
|
|
136
140
|
transition={ {
|
|
137
141
|
type: 'tween',
|
|
138
142
|
duration: disableMotion
|