@wordpress/edit-post 8.50.0 → 8.51.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 +6 -0
- package/build/components/back-button/fullscreen-mode-close.cjs +11 -119
- package/build/components/back-button/fullscreen-mode-close.cjs.map +3 -3
- package/build/components/layout/index.cjs +3 -14
- package/build/components/layout/index.cjs.map +2 -2
- package/build/index.cjs +12 -1
- package/build/index.cjs.map +2 -2
- package/build-module/components/back-button/fullscreen-mode-close.mjs +14 -122
- package/build-module/components/back-button/fullscreen-mode-close.mjs.map +2 -2
- package/build-module/components/layout/index.mjs +3 -14
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/index.mjs +12 -1
- package/build-module/index.mjs.map +2 -2
- package/build-style/classic-rtl.css +6 -0
- package/build-style/classic.css +6 -0
- package/build-style/style-rtl.css +21 -155
- package/build-style/style.css +21 -155
- package/package.json +36 -36
- package/src/components/back-button/fullscreen-mode-close.js +13 -145
- package/src/components/layout/index.js +3 -18
- package/src/components/meta-boxes/meta-boxes-area/style.scss +1 -1
- package/src/components/preferences-modal/test/__snapshots__/enable-custom-fields.js.snap +20 -152
- package/src/components/preferences-modal/test/__snapshots__/meta-boxes-section.js.snap +27 -120
- package/src/index.js +14 -1
- package/src/style.scss +14 -8
- package/build/components/layout/use-should-iframe.cjs +0 -56
- package/build/components/layout/use-should-iframe.cjs.map +0 -7
- package/build-module/components/layout/use-should-iframe.mjs +0 -32
- package/build-module/components/layout/use-should-iframe.mjs.map +0 -7
- package/build-style/experimental-omnibar-rtl.css +0 -50
- package/build-style/experimental-omnibar.css +0 -50
- package/src/components/back-button/style.scss +0 -110
- package/src/components/layout/use-should-iframe.js +0 -45
- package/src/experimental-omnibar.scss +0 -67
|
@@ -1,122 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* WordPress dependencies
|
|
8
3
|
*/
|
|
9
4
|
import { useSelect } from '@wordpress/data';
|
|
10
|
-
import {
|
|
11
|
-
Button,
|
|
12
|
-
Icon as WCIcon,
|
|
13
|
-
__unstableMotion as motion,
|
|
14
|
-
} from '@wordpress/components';
|
|
5
|
+
import { Button } from '@wordpress/components';
|
|
15
6
|
import { __, isRTL } from '@wordpress/i18n';
|
|
16
7
|
import { addQueryArgs } from '@wordpress/url';
|
|
17
|
-
import {
|
|
18
|
-
wordpress,
|
|
19
|
-
arrowUpLeft,
|
|
20
|
-
arrowUpRight,
|
|
21
|
-
chevronLeft,
|
|
22
|
-
chevronRight,
|
|
23
|
-
} from '@wordpress/icons';
|
|
8
|
+
import { chevronLeft, chevronRight } from '@wordpress/icons';
|
|
24
9
|
import { store as editorStore } from '@wordpress/editor';
|
|
25
10
|
import { store as coreStore } from '@wordpress/core-data';
|
|
26
|
-
import { useReducedMotion } from '@wordpress/compose';
|
|
27
|
-
|
|
28
|
-
const siteIconVariants = {
|
|
29
|
-
edit: {
|
|
30
|
-
clipPath: 'inset(0% round 0px)',
|
|
31
|
-
},
|
|
32
|
-
hover: {
|
|
33
|
-
clipPath: 'inset( 22% round 2px )',
|
|
34
|
-
},
|
|
35
|
-
tap: {
|
|
36
|
-
clipPath: 'inset(0% round 0px)',
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const toggleHomeIconVariants = {
|
|
41
|
-
edit: {
|
|
42
|
-
opacity: 0,
|
|
43
|
-
scale: 0.2,
|
|
44
|
-
},
|
|
45
|
-
hover: {
|
|
46
|
-
opacity: 1,
|
|
47
|
-
scale: 1,
|
|
48
|
-
clipPath: 'inset( 22% round 2px )',
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
11
|
|
|
52
12
|
function FullscreenModeClose( { showTooltip, icon, href, initialPost } ) {
|
|
53
|
-
const
|
|
13
|
+
const postType = useSelect(
|
|
54
14
|
( select ) => {
|
|
55
15
|
const { getCurrentPostType } = select( editorStore );
|
|
56
|
-
const {
|
|
57
|
-
|
|
58
|
-
const siteData =
|
|
59
|
-
getEntityRecord( 'root', '__unstableBase', undefined ) || {};
|
|
60
|
-
const _postType = initialPost?.type || getCurrentPostType();
|
|
61
|
-
return {
|
|
62
|
-
isRequestingSiteIcon: isResolving( 'getEntityRecord', [
|
|
63
|
-
'root',
|
|
64
|
-
'__unstableBase',
|
|
65
|
-
undefined,
|
|
66
|
-
] ),
|
|
67
|
-
postType: getPostType( _postType ),
|
|
68
|
-
siteIconUrl: siteData.site_icon_url,
|
|
69
|
-
};
|
|
16
|
+
const { getPostType } = select( coreStore );
|
|
17
|
+
return getPostType( initialPost?.type || getCurrentPostType() );
|
|
70
18
|
},
|
|
71
19
|
[ initialPost?.type ]
|
|
72
20
|
);
|
|
73
21
|
|
|
74
|
-
const disableMotion = useReducedMotion();
|
|
75
|
-
const transition = {
|
|
76
|
-
duration: disableMotion ? 0 : 0.2,
|
|
77
|
-
};
|
|
78
|
-
|
|
79
22
|
if ( ! postType ) {
|
|
80
23
|
return null;
|
|
81
24
|
}
|
|
82
25
|
|
|
83
|
-
// Create SiteIcon equivalent structure exactly like edit-site
|
|
84
|
-
let siteIconContent;
|
|
85
|
-
if ( isRequestingSiteIcon && ! siteIconUrl ) {
|
|
86
|
-
siteIconContent = (
|
|
87
|
-
<div className="edit-post-fullscreen-mode-close-site-icon__image" />
|
|
88
|
-
);
|
|
89
|
-
} else if ( siteIconUrl ) {
|
|
90
|
-
siteIconContent = (
|
|
91
|
-
<img
|
|
92
|
-
className="edit-post-fullscreen-mode-close-site-icon__image"
|
|
93
|
-
alt={ __( 'Site Icon' ) }
|
|
94
|
-
src={ siteIconUrl }
|
|
95
|
-
/>
|
|
96
|
-
);
|
|
97
|
-
} else {
|
|
98
|
-
siteIconContent = (
|
|
99
|
-
<WCIcon
|
|
100
|
-
className="edit-post-fullscreen-mode-close-site-icon__icon"
|
|
101
|
-
icon={ wordpress }
|
|
102
|
-
size={ 48 }
|
|
103
|
-
/>
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Override default icon if custom icon is provided via props.
|
|
108
|
-
const buttonIcon = icon ? (
|
|
109
|
-
<WCIcon size="36px" icon={ icon } />
|
|
110
|
-
) : (
|
|
111
|
-
<div className="edit-post-fullscreen-mode-close-site-icon">
|
|
112
|
-
{ siteIconContent }
|
|
113
|
-
</div>
|
|
114
|
-
);
|
|
115
|
-
|
|
116
|
-
const classes = clsx( 'edit-post-fullscreen-mode-close', {
|
|
117
|
-
'has-icon': siteIconUrl,
|
|
118
|
-
} );
|
|
119
|
-
|
|
120
26
|
const buttonHref =
|
|
121
27
|
href ??
|
|
122
28
|
addQueryArgs( 'edit.php', {
|
|
@@ -125,53 +31,15 @@ function FullscreenModeClose( { showTooltip, icon, href, initialPost } ) {
|
|
|
125
31
|
|
|
126
32
|
const buttonLabel = postType?.labels?.view_items ?? __( 'Back' );
|
|
127
33
|
|
|
128
|
-
const hasAdminBarInEditor = window.__experimentalAdminBarInEditor;
|
|
129
|
-
|
|
130
34
|
return (
|
|
131
|
-
<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
<Button
|
|
140
|
-
__next40pxDefaultSize
|
|
141
|
-
className={ classes }
|
|
142
|
-
href={ buttonHref }
|
|
143
|
-
label={ buttonLabel }
|
|
144
|
-
showTooltip={ showTooltip }
|
|
145
|
-
tooltipPosition="bottom"
|
|
146
|
-
>
|
|
147
|
-
{ ! hasAdminBarInEditor && (
|
|
148
|
-
<motion.div
|
|
149
|
-
variants={ ! disableMotion && siteIconVariants }
|
|
150
|
-
>
|
|
151
|
-
<div className="edit-post-fullscreen-mode-close__view-mode-toggle-icon">
|
|
152
|
-
{ buttonIcon }
|
|
153
|
-
</div>
|
|
154
|
-
</motion.div>
|
|
155
|
-
) }
|
|
156
|
-
</Button>
|
|
157
|
-
{ hasAdminBarInEditor ? (
|
|
158
|
-
<div className="edit-post-fullscreen-mode-close__back-icon">
|
|
159
|
-
<WCIcon icon={ isRTL() ? chevronRight : chevronLeft } />
|
|
160
|
-
</div>
|
|
161
|
-
) : (
|
|
162
|
-
<motion.div
|
|
163
|
-
className={ clsx(
|
|
164
|
-
'edit-post-fullscreen-mode-close__back-icon',
|
|
165
|
-
{
|
|
166
|
-
'has-site-icon': siteIconUrl,
|
|
167
|
-
}
|
|
168
|
-
) }
|
|
169
|
-
variants={ ! disableMotion && toggleHomeIconVariants }
|
|
170
|
-
>
|
|
171
|
-
<WCIcon icon={ isRTL() ? arrowUpRight : arrowUpLeft } />
|
|
172
|
-
</motion.div>
|
|
173
|
-
) }
|
|
174
|
-
</motion.div>
|
|
35
|
+
<Button
|
|
36
|
+
size="compact"
|
|
37
|
+
href={ buttonHref }
|
|
38
|
+
label={ buttonLabel }
|
|
39
|
+
showTooltip={ showTooltip }
|
|
40
|
+
tooltipPosition="bottom"
|
|
41
|
+
icon={ icon ?? ( isRTL() ? chevronRight : chevronLeft ) }
|
|
42
|
+
/>
|
|
175
43
|
);
|
|
176
44
|
}
|
|
177
45
|
|
|
@@ -65,7 +65,6 @@ import WelcomeGuide from '../welcome-guide';
|
|
|
65
65
|
import { store as editPostStore } from '../../store';
|
|
66
66
|
import { unlock } from '../../lock-unlock';
|
|
67
67
|
import useEditPostCommands from '../../commands/use-commands';
|
|
68
|
-
import { useShouldIframe } from './use-should-iframe';
|
|
69
68
|
import useNavigateToEntityRecord from '../../hooks/use-navigate-to-entity-record';
|
|
70
69
|
import { useMetaBoxInitialization } from '../meta-boxes/use-meta-box-initialization';
|
|
71
70
|
|
|
@@ -131,11 +130,7 @@ function useEditorStyles( settings ) {
|
|
|
131
130
|
] );
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
* @param {Object} props
|
|
136
|
-
* @param {boolean} props.isLegacy True for device previews where split view is disabled.
|
|
137
|
-
*/
|
|
138
|
-
function MetaBoxesMain( { isLegacy } ) {
|
|
133
|
+
function MetaBoxesMain() {
|
|
139
134
|
const [ isOpen, openHeight, hasAnyVisible ] = useSelect( ( select ) => {
|
|
140
135
|
const { get } = select( preferencesStore );
|
|
141
136
|
const { isMetaBoxLocationVisible } = select( editPostStore );
|
|
@@ -284,17 +279,13 @@ function MetaBoxesMain( { isLegacy } ) {
|
|
|
284
279
|
<div
|
|
285
280
|
// The class name 'edit-post-layout__metaboxes' is retained because some plugins use it.
|
|
286
281
|
className="edit-post-layout__metaboxes edit-post-meta-boxes-main__liner"
|
|
287
|
-
hidden={ !
|
|
282
|
+
hidden={ ! isOpen }
|
|
288
283
|
>
|
|
289
284
|
<MetaBoxes location="normal" />
|
|
290
285
|
<MetaBoxes location="advanced" />
|
|
291
286
|
</div>
|
|
292
287
|
);
|
|
293
288
|
|
|
294
|
-
if ( isLegacy ) {
|
|
295
|
-
return contents;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
289
|
const isAutoHeight = openHeight === undefined;
|
|
299
290
|
const usedOpenHeight = isShort ? 'auto' : openHeight;
|
|
300
291
|
const usedHeight = isOpen ? usedOpenHeight : min;
|
|
@@ -377,7 +368,6 @@ function Layout( {
|
|
|
377
368
|
initialEdits,
|
|
378
369
|
} ) {
|
|
379
370
|
useEditPostCommands();
|
|
380
|
-
const shouldIframe = useShouldIframe();
|
|
381
371
|
const { createErrorNotice } = useDispatch( noticesStore );
|
|
382
372
|
const {
|
|
383
373
|
currentPost: { postId: currentPostId, postType: currentPostType },
|
|
@@ -588,7 +578,6 @@ function Layout( {
|
|
|
588
578
|
templateId={ templateId }
|
|
589
579
|
className={ className }
|
|
590
580
|
forceIsDirty={ hasActiveMetaboxes }
|
|
591
|
-
disableIframe={ ! shouldIframe }
|
|
592
581
|
// We should auto-focus the canvas (title) on load.
|
|
593
582
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
594
583
|
autoFocus={ ! isWelcomeGuideVisible }
|
|
@@ -598,11 +587,7 @@ function Layout( {
|
|
|
598
587
|
}
|
|
599
588
|
extraContent={
|
|
600
589
|
! isDistractionFree &&
|
|
601
|
-
showMetaBoxes &&
|
|
602
|
-
<MetaBoxesMain
|
|
603
|
-
isLegacy={ ! shouldIframe }
|
|
604
|
-
/>
|
|
605
|
-
)
|
|
590
|
+
showMetaBoxes && <MetaBoxesMain />
|
|
606
591
|
}
|
|
607
592
|
>
|
|
608
593
|
<PostLockedModal />
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation message when toggled on 1`] = `
|
|
4
4
|
.emotion-0 {
|
|
5
|
-
font-family: -apple-system,
|
|
5
|
+
font-family: -apple-system,system-ui,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
|
|
6
6
|
font-size: 13px;
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
@@ -17,41 +17,6 @@ exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation
|
|
|
17
17
|
margin-bottom: inherit;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.emotion-4 {
|
|
21
|
-
display: -webkit-box;
|
|
22
|
-
display: -webkit-flex;
|
|
23
|
-
display: -ms-flexbox;
|
|
24
|
-
display: flex;
|
|
25
|
-
-webkit-align-items: center;
|
|
26
|
-
-webkit-box-align: center;
|
|
27
|
-
-ms-flex-align: center;
|
|
28
|
-
align-items: center;
|
|
29
|
-
-webkit-flex-direction: row;
|
|
30
|
-
-ms-flex-direction: row;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
gap: calc(4px * 2);
|
|
33
|
-
-webkit-box-pack: start;
|
|
34
|
-
-ms-flex-pack: start;
|
|
35
|
-
-webkit-justify-content: flex-start;
|
|
36
|
-
justify-content: flex-start;
|
|
37
|
-
width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.emotion-4>* {
|
|
41
|
-
min-width: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.emotion-6 {
|
|
45
|
-
display: block;
|
|
46
|
-
max-height: 100%;
|
|
47
|
-
max-width: 100%;
|
|
48
|
-
min-height: 0;
|
|
49
|
-
min-width: 0;
|
|
50
|
-
-webkit-flex: 1;
|
|
51
|
-
-ms-flex: 1;
|
|
52
|
-
flex: 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
20
|
<div>
|
|
56
21
|
<div
|
|
57
22
|
class="preference-base-option"
|
|
@@ -63,9 +28,10 @@ exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation
|
|
|
63
28
|
class="components-base-control__field emotion-2 emotion-3"
|
|
64
29
|
>
|
|
65
30
|
<div
|
|
66
|
-
class="components-flex components-h-stack
|
|
31
|
+
class="style-flex style-items-row style-expanded-row components-flex components-h-stack"
|
|
67
32
|
data-wp-c16t="true"
|
|
68
33
|
data-wp-component="HStack"
|
|
34
|
+
style="--wp-components-flex-align: center; --wp-components-flex-direction: row; --wp-components-flex-wrap: nowrap; --wp-components-flex-gap: calc(4px * 2); --wp-components-flex-justify: flex-start;"
|
|
69
35
|
>
|
|
70
36
|
<span
|
|
71
37
|
class="components-form-toggle is-checked"
|
|
@@ -83,10 +49,11 @@ exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation
|
|
|
83
49
|
/>
|
|
84
50
|
</span>
|
|
85
51
|
<label
|
|
86
|
-
class="components-flex-item components-flex-block components-toggle-control__label
|
|
52
|
+
class="style-item style-block components-flex-item components-flex-block components-toggle-control__label"
|
|
87
53
|
data-wp-c16t="true"
|
|
88
54
|
data-wp-component="FlexBlock"
|
|
89
55
|
for="inspector-toggle-control-3"
|
|
56
|
+
style="--wp-components-flex-item-display: block;"
|
|
90
57
|
/>
|
|
91
58
|
</div>
|
|
92
59
|
</div>
|
|
@@ -108,7 +75,7 @@ exports[`EnableCustomFieldsOption renders a checked checkbox and a confirmation
|
|
|
108
75
|
|
|
109
76
|
exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields are enabled 1`] = `
|
|
110
77
|
.emotion-0 {
|
|
111
|
-
font-family: -apple-system,
|
|
78
|
+
font-family: -apple-system,system-ui,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
|
|
112
79
|
font-size: 13px;
|
|
113
80
|
box-sizing: border-box;
|
|
114
81
|
}
|
|
@@ -123,41 +90,6 @@ exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields
|
|
|
123
90
|
margin-bottom: inherit;
|
|
124
91
|
}
|
|
125
92
|
|
|
126
|
-
.emotion-4 {
|
|
127
|
-
display: -webkit-box;
|
|
128
|
-
display: -webkit-flex;
|
|
129
|
-
display: -ms-flexbox;
|
|
130
|
-
display: flex;
|
|
131
|
-
-webkit-align-items: center;
|
|
132
|
-
-webkit-box-align: center;
|
|
133
|
-
-ms-flex-align: center;
|
|
134
|
-
align-items: center;
|
|
135
|
-
-webkit-flex-direction: row;
|
|
136
|
-
-ms-flex-direction: row;
|
|
137
|
-
flex-direction: row;
|
|
138
|
-
gap: calc(4px * 2);
|
|
139
|
-
-webkit-box-pack: start;
|
|
140
|
-
-ms-flex-pack: start;
|
|
141
|
-
-webkit-justify-content: flex-start;
|
|
142
|
-
justify-content: flex-start;
|
|
143
|
-
width: 100%;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.emotion-4>* {
|
|
147
|
-
min-width: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.emotion-6 {
|
|
151
|
-
display: block;
|
|
152
|
-
max-height: 100%;
|
|
153
|
-
max-width: 100%;
|
|
154
|
-
min-height: 0;
|
|
155
|
-
min-width: 0;
|
|
156
|
-
-webkit-flex: 1;
|
|
157
|
-
-ms-flex: 1;
|
|
158
|
-
flex: 1;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
93
|
<div>
|
|
162
94
|
<div
|
|
163
95
|
class="preference-base-option"
|
|
@@ -169,9 +101,10 @@ exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields
|
|
|
169
101
|
class="components-base-control__field emotion-2 emotion-3"
|
|
170
102
|
>
|
|
171
103
|
<div
|
|
172
|
-
class="components-flex components-h-stack
|
|
104
|
+
class="style-flex style-items-row style-expanded-row components-flex components-h-stack"
|
|
173
105
|
data-wp-c16t="true"
|
|
174
106
|
data-wp-component="HStack"
|
|
107
|
+
style="--wp-components-flex-align: center; --wp-components-flex-direction: row; --wp-components-flex-wrap: nowrap; --wp-components-flex-gap: calc(4px * 2); --wp-components-flex-justify: flex-start;"
|
|
175
108
|
>
|
|
176
109
|
<span
|
|
177
110
|
class="components-form-toggle is-checked"
|
|
@@ -190,10 +123,11 @@ exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields
|
|
|
190
123
|
/>
|
|
191
124
|
</span>
|
|
192
125
|
<label
|
|
193
|
-
class="components-flex-item components-flex-block components-toggle-control__label
|
|
126
|
+
class="style-item style-block components-flex-item components-flex-block components-toggle-control__label"
|
|
194
127
|
data-wp-c16t="true"
|
|
195
128
|
data-wp-component="FlexBlock"
|
|
196
129
|
for="inspector-toggle-control-0"
|
|
130
|
+
style="--wp-components-flex-item-display: block;"
|
|
197
131
|
/>
|
|
198
132
|
</div>
|
|
199
133
|
</div>
|
|
@@ -204,7 +138,7 @@ exports[`EnableCustomFieldsOption renders a checked checkbox when custom fields
|
|
|
204
138
|
|
|
205
139
|
exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmation message when toggled off 1`] = `
|
|
206
140
|
.emotion-0 {
|
|
207
|
-
font-family: -apple-system,
|
|
141
|
+
font-family: -apple-system,system-ui,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
|
|
208
142
|
font-size: 13px;
|
|
209
143
|
box-sizing: border-box;
|
|
210
144
|
}
|
|
@@ -219,41 +153,6 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmati
|
|
|
219
153
|
margin-bottom: inherit;
|
|
220
154
|
}
|
|
221
155
|
|
|
222
|
-
.emotion-4 {
|
|
223
|
-
display: -webkit-box;
|
|
224
|
-
display: -webkit-flex;
|
|
225
|
-
display: -ms-flexbox;
|
|
226
|
-
display: flex;
|
|
227
|
-
-webkit-align-items: center;
|
|
228
|
-
-webkit-box-align: center;
|
|
229
|
-
-ms-flex-align: center;
|
|
230
|
-
align-items: center;
|
|
231
|
-
-webkit-flex-direction: row;
|
|
232
|
-
-ms-flex-direction: row;
|
|
233
|
-
flex-direction: row;
|
|
234
|
-
gap: calc(4px * 2);
|
|
235
|
-
-webkit-box-pack: start;
|
|
236
|
-
-ms-flex-pack: start;
|
|
237
|
-
-webkit-justify-content: flex-start;
|
|
238
|
-
justify-content: flex-start;
|
|
239
|
-
width: 100%;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.emotion-4>* {
|
|
243
|
-
min-width: 0;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.emotion-6 {
|
|
247
|
-
display: block;
|
|
248
|
-
max-height: 100%;
|
|
249
|
-
max-width: 100%;
|
|
250
|
-
min-height: 0;
|
|
251
|
-
min-width: 0;
|
|
252
|
-
-webkit-flex: 1;
|
|
253
|
-
-ms-flex: 1;
|
|
254
|
-
flex: 1;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
156
|
<div>
|
|
258
157
|
<div
|
|
259
158
|
class="preference-base-option"
|
|
@@ -265,9 +164,10 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmati
|
|
|
265
164
|
class="components-base-control__field emotion-2 emotion-3"
|
|
266
165
|
>
|
|
267
166
|
<div
|
|
268
|
-
class="components-flex components-h-stack
|
|
167
|
+
class="style-flex style-items-row style-expanded-row components-flex components-h-stack"
|
|
269
168
|
data-wp-c16t="true"
|
|
270
169
|
data-wp-component="HStack"
|
|
170
|
+
style="--wp-components-flex-align: center; --wp-components-flex-direction: row; --wp-components-flex-wrap: nowrap; --wp-components-flex-gap: calc(4px * 2); --wp-components-flex-justify: flex-start;"
|
|
271
171
|
>
|
|
272
172
|
<span
|
|
273
173
|
class="components-form-toggle"
|
|
@@ -286,10 +186,11 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmati
|
|
|
286
186
|
/>
|
|
287
187
|
</span>
|
|
288
188
|
<label
|
|
289
|
-
class="components-flex-item components-flex-block components-toggle-control__label
|
|
189
|
+
class="style-item style-block components-flex-item components-flex-block components-toggle-control__label"
|
|
290
190
|
data-wp-c16t="true"
|
|
291
191
|
data-wp-component="FlexBlock"
|
|
292
192
|
for="inspector-toggle-control-2"
|
|
193
|
+
style="--wp-components-flex-item-display: block;"
|
|
293
194
|
/>
|
|
294
195
|
</div>
|
|
295
196
|
</div>
|
|
@@ -311,7 +212,7 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox and a confirmati
|
|
|
311
212
|
|
|
312
213
|
exports[`EnableCustomFieldsOption renders an unchecked checkbox when custom fields are disabled 1`] = `
|
|
313
214
|
.emotion-0 {
|
|
314
|
-
font-family: -apple-system,
|
|
215
|
+
font-family: -apple-system,system-ui,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
|
|
315
216
|
font-size: 13px;
|
|
316
217
|
box-sizing: border-box;
|
|
317
218
|
}
|
|
@@ -326,41 +227,6 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox when custom fiel
|
|
|
326
227
|
margin-bottom: inherit;
|
|
327
228
|
}
|
|
328
229
|
|
|
329
|
-
.emotion-4 {
|
|
330
|
-
display: -webkit-box;
|
|
331
|
-
display: -webkit-flex;
|
|
332
|
-
display: -ms-flexbox;
|
|
333
|
-
display: flex;
|
|
334
|
-
-webkit-align-items: center;
|
|
335
|
-
-webkit-box-align: center;
|
|
336
|
-
-ms-flex-align: center;
|
|
337
|
-
align-items: center;
|
|
338
|
-
-webkit-flex-direction: row;
|
|
339
|
-
-ms-flex-direction: row;
|
|
340
|
-
flex-direction: row;
|
|
341
|
-
gap: calc(4px * 2);
|
|
342
|
-
-webkit-box-pack: start;
|
|
343
|
-
-ms-flex-pack: start;
|
|
344
|
-
-webkit-justify-content: flex-start;
|
|
345
|
-
justify-content: flex-start;
|
|
346
|
-
width: 100%;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.emotion-4>* {
|
|
350
|
-
min-width: 0;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.emotion-6 {
|
|
354
|
-
display: block;
|
|
355
|
-
max-height: 100%;
|
|
356
|
-
max-width: 100%;
|
|
357
|
-
min-height: 0;
|
|
358
|
-
min-width: 0;
|
|
359
|
-
-webkit-flex: 1;
|
|
360
|
-
-ms-flex: 1;
|
|
361
|
-
flex: 1;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
230
|
<div>
|
|
365
231
|
<div
|
|
366
232
|
class="preference-base-option"
|
|
@@ -372,9 +238,10 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox when custom fiel
|
|
|
372
238
|
class="components-base-control__field emotion-2 emotion-3"
|
|
373
239
|
>
|
|
374
240
|
<div
|
|
375
|
-
class="components-flex components-h-stack
|
|
241
|
+
class="style-flex style-items-row style-expanded-row components-flex components-h-stack"
|
|
376
242
|
data-wp-c16t="true"
|
|
377
243
|
data-wp-component="HStack"
|
|
244
|
+
style="--wp-components-flex-align: center; --wp-components-flex-direction: row; --wp-components-flex-wrap: nowrap; --wp-components-flex-gap: calc(4px * 2); --wp-components-flex-justify: flex-start;"
|
|
378
245
|
>
|
|
379
246
|
<span
|
|
380
247
|
class="components-form-toggle"
|
|
@@ -392,10 +259,11 @@ exports[`EnableCustomFieldsOption renders an unchecked checkbox when custom fiel
|
|
|
392
259
|
/>
|
|
393
260
|
</span>
|
|
394
261
|
<label
|
|
395
|
-
class="components-flex-item components-flex-block components-toggle-control__label
|
|
262
|
+
class="style-item style-block components-flex-item components-flex-block components-toggle-control__label"
|
|
396
263
|
data-wp-c16t="true"
|
|
397
264
|
data-wp-component="FlexBlock"
|
|
398
265
|
for="inspector-toggle-control-1"
|
|
266
|
+
style="--wp-components-flex-item-display: block;"
|
|
399
267
|
/>
|
|
400
268
|
</div>
|
|
401
269
|
</div>
|