@wordpress/edit-site 6.37.1-next.v.0 → 6.39.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 +4 -0
- package/build/components/editor/index.cjs +2 -0
- package/build/components/editor/index.cjs.map +3 -3
- package/build/components/editor/use-resolve-edited-entity.cjs +3 -0
- package/build/components/editor/use-resolve-edited-entity.cjs.map +2 -2
- package/build/components/layout/index.cjs +1 -1
- package/build/components/layout/index.cjs.map +2 -2
- package/build/components/page-patterns/index.cjs +9 -3
- package/build/components/page-patterns/index.cjs.map +2 -2
- package/build/components/site-editor-routes/attachment-item.cjs +60 -0
- package/build/components/site-editor-routes/attachment-item.cjs.map +7 -0
- package/build/components/site-editor-routes/index.cjs +2 -0
- package/build/components/site-editor-routes/index.cjs.map +2 -2
- package/build/utils/constants.cjs +3 -0
- package/build/utils/constants.cjs.map +2 -2
- package/build-module/components/editor/index.mjs +4 -1
- package/build-module/components/editor/index.mjs.map +2 -2
- package/build-module/components/editor/use-resolve-edited-entity.mjs +4 -0
- package/build-module/components/editor/use-resolve-edited-entity.mjs.map +2 -2
- package/build-module/components/layout/index.mjs +1 -1
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/components/page-patterns/index.mjs +9 -3
- package/build-module/components/page-patterns/index.mjs.map +2 -2
- package/build-module/components/site-editor-routes/attachment-item.mjs +25 -0
- package/build-module/components/site-editor-routes/attachment-item.mjs.map +7 -0
- package/build-module/components/site-editor-routes/index.mjs +2 -0
- package/build-module/components/site-editor-routes/index.mjs.map +2 -2
- package/build-module/utils/constants.mjs +2 -0
- package/build-module/utils/constants.mjs.map +2 -2
- package/build-style/style-rtl.css +18 -36
- package/build-style/style.css +18 -36
- package/package.json +46 -46
- package/src/components/editor/index.js +3 -0
- package/src/components/editor/use-resolve-edited-entity.js +4 -0
- package/src/components/layout/index.js +2 -1
- package/src/components/page-patterns/index.js +6 -3
- package/src/components/site-editor-routes/attachment-item.js +27 -0
- package/src/components/site-editor-routes/index.js +2 -0
- package/src/utils/constants.js +3 -0
package/build-style/style.css
CHANGED
|
@@ -278,15 +278,15 @@
|
|
|
278
278
|
* Autogenerated by ⛋ Terrazzo. DO NOT EDIT!
|
|
279
279
|
* ------------------------------------------- */
|
|
280
280
|
:root {
|
|
281
|
-
--wpds-border-radius-
|
|
282
|
-
--wpds-border-radius-
|
|
283
|
-
--wpds-border-radius-
|
|
284
|
-
--wpds-border-radius-
|
|
285
|
-
--wpds-border-width-
|
|
286
|
-
--wpds-border-width-
|
|
287
|
-
--wpds-border-width-
|
|
288
|
-
--wpds-border-width-
|
|
289
|
-
--wpds-border-width-
|
|
281
|
+
--wpds-border-radius-lg: 8px; /* Large radius */
|
|
282
|
+
--wpds-border-radius-md: 4px; /* Medium radius */
|
|
283
|
+
--wpds-border-radius-sm: 2px; /* Small radius */
|
|
284
|
+
--wpds-border-radius-xs: 1px; /* Extra small radius */
|
|
285
|
+
--wpds-border-width-focus: 2px; /* Border width for focus ring */
|
|
286
|
+
--wpds-border-width-lg: 8px; /* Large width */
|
|
287
|
+
--wpds-border-width-md: 4px; /* Medium width */
|
|
288
|
+
--wpds-border-width-sm: 2px; /* Small width */
|
|
289
|
+
--wpds-border-width-xs: 1px; /* Extra small width */
|
|
290
290
|
--wpds-color-bg-interactive-brand-strong: #3858e9; /* Background color for interactive elements with brand tone and strong emphasis. */
|
|
291
291
|
--wpds-color-bg-interactive-brand-strong-active: #2e49d9; /* Background color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
|
|
292
292
|
--wpds-color-bg-interactive-brand-weak: #00000000; /* Background color for interactive elements with brand tone and weak emphasis. */
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
|
|
462
462
|
@media (min-resolution: 192dpi) {
|
|
463
463
|
:root {
|
|
464
|
-
--wpds-border-width-
|
|
464
|
+
--wpds-border-width-focus: 1.5px; /* Border width for focus ring */
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
@@ -679,9 +679,6 @@
|
|
|
679
679
|
|
|
680
680
|
.dataviews-bulk-actions-footer__item-count {
|
|
681
681
|
color: #1e1e1e;
|
|
682
|
-
font-weight: 499;
|
|
683
|
-
font-size: 11px;
|
|
684
|
-
text-transform: uppercase;
|
|
685
682
|
}
|
|
686
683
|
|
|
687
684
|
.dataviews-bulk-actions-footer__container {
|
|
@@ -2003,7 +2000,7 @@ div.dataviews-view-list {
|
|
|
2003
2000
|
background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff);
|
|
2004
2001
|
}
|
|
2005
2002
|
|
|
2006
|
-
.dataviews-view-table
|
|
2003
|
+
.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
2007
2004
|
opacity: 1;
|
|
2008
2005
|
}
|
|
2009
2006
|
|
|
@@ -2138,6 +2135,8 @@ div.dataviews-view-list {
|
|
|
2138
2135
|
}
|
|
2139
2136
|
.dataviews-column-primary__media {
|
|
2140
2137
|
max-width: 60px;
|
|
2138
|
+
min-width: 32px;
|
|
2139
|
+
min-height: 32px;
|
|
2141
2140
|
overflow: hidden;
|
|
2142
2141
|
position: relative;
|
|
2143
2142
|
flex-shrink: 0;
|
|
@@ -2146,8 +2145,8 @@ div.dataviews-view-list {
|
|
|
2146
2145
|
}
|
|
2147
2146
|
|
|
2148
2147
|
.dataviews-column-primary__media img {
|
|
2149
|
-
width:
|
|
2150
|
-
height:
|
|
2148
|
+
width: 32px;
|
|
2149
|
+
height: 32px;
|
|
2151
2150
|
object-fit: cover;
|
|
2152
2151
|
}
|
|
2153
2152
|
|
|
@@ -3208,36 +3207,19 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3208
3207
|
font-weight: 600;
|
|
3209
3208
|
}
|
|
3210
3209
|
|
|
3211
|
-
.
|
|
3212
|
-
.
|
|
3213
|
-
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
3214
|
-
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
3215
|
-
.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,
|
|
3216
|
-
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
3210
|
+
.fields-controls__featured-image-image,
|
|
3211
|
+
.fields-controls__featured-image-placeholder {
|
|
3217
3212
|
width: 100%;
|
|
3218
3213
|
height: 100%;
|
|
3219
3214
|
display: block;
|
|
3220
3215
|
border-radius: 4px;
|
|
3221
3216
|
}
|
|
3222
3217
|
|
|
3223
|
-
.
|
|
3224
|
-
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
3225
|
-
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
3218
|
+
.fields-controls__featured-image-placeholder {
|
|
3226
3219
|
box-shadow: none;
|
|
3227
3220
|
background: #f0f0f0;
|
|
3228
3221
|
}
|
|
3229
3222
|
|
|
3230
|
-
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
3231
|
-
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder {
|
|
3232
|
-
width: 32px;
|
|
3233
|
-
height: 32px;
|
|
3234
|
-
}
|
|
3235
|
-
|
|
3236
|
-
.dataforms-layouts-panel__field-control .fields-controls__featured-image-image {
|
|
3237
|
-
width: 16px;
|
|
3238
|
-
height: 16px;
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
3223
|
.fields-controls__parent {
|
|
3242
3224
|
border: 0;
|
|
3243
3225
|
padding: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.39.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -48,50 +48,50 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@react-spring/web": "^9.4.5",
|
|
51
|
-
"@wordpress/a11y": "^4.
|
|
52
|
-
"@wordpress/admin-ui": "^1.
|
|
53
|
-
"@wordpress/api-fetch": "^7.
|
|
54
|
-
"@wordpress/base-styles": "^6.
|
|
55
|
-
"@wordpress/blob": "^4.
|
|
56
|
-
"@wordpress/block-editor": "^15.
|
|
57
|
-
"@wordpress/block-library": "^9.
|
|
58
|
-
"@wordpress/blocks": "^15.
|
|
59
|
-
"@wordpress/commands": "^1.
|
|
60
|
-
"@wordpress/components": "^32.
|
|
61
|
-
"@wordpress/compose": "^7.
|
|
62
|
-
"@wordpress/core-data": "^7.
|
|
63
|
-
"@wordpress/data": "^10.
|
|
64
|
-
"@wordpress/dataviews": "^11.
|
|
65
|
-
"@wordpress/date": "^5.
|
|
66
|
-
"@wordpress/deprecated": "^4.
|
|
67
|
-
"@wordpress/dom": "^4.
|
|
68
|
-
"@wordpress/editor": "^14.
|
|
69
|
-
"@wordpress/element": "^6.
|
|
70
|
-
"@wordpress/escape-html": "^3.
|
|
71
|
-
"@wordpress/fields": "^0.
|
|
72
|
-
"@wordpress/global-styles-engine": "^1.
|
|
73
|
-
"@wordpress/global-styles-ui": "^1.
|
|
74
|
-
"@wordpress/hooks": "^4.
|
|
75
|
-
"@wordpress/html-entities": "^4.
|
|
76
|
-
"@wordpress/i18n": "^6.
|
|
77
|
-
"@wordpress/icons": "^11.
|
|
78
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
79
|
-
"@wordpress/keycodes": "^4.
|
|
80
|
-
"@wordpress/media-utils": "^5.
|
|
81
|
-
"@wordpress/notices": "^5.
|
|
82
|
-
"@wordpress/patterns": "^2.
|
|
83
|
-
"@wordpress/plugins": "^7.
|
|
84
|
-
"@wordpress/preferences": "^4.
|
|
85
|
-
"@wordpress/primitives": "^4.
|
|
86
|
-
"@wordpress/private-apis": "^1.
|
|
87
|
-
"@wordpress/reusable-blocks": "^5.
|
|
88
|
-
"@wordpress/router": "^1.
|
|
89
|
-
"@wordpress/style-engine": "^2.
|
|
90
|
-
"@wordpress/url": "^4.
|
|
91
|
-
"@wordpress/viewport": "^6.
|
|
92
|
-
"@wordpress/views": "^1.
|
|
93
|
-
"@wordpress/widgets": "^4.
|
|
94
|
-
"@wordpress/wordcount": "^4.
|
|
51
|
+
"@wordpress/a11y": "^4.39.0",
|
|
52
|
+
"@wordpress/admin-ui": "^1.7.0",
|
|
53
|
+
"@wordpress/api-fetch": "^7.39.0",
|
|
54
|
+
"@wordpress/base-styles": "^6.15.0",
|
|
55
|
+
"@wordpress/blob": "^4.39.0",
|
|
56
|
+
"@wordpress/block-editor": "^15.12.0",
|
|
57
|
+
"@wordpress/block-library": "^9.39.0",
|
|
58
|
+
"@wordpress/blocks": "^15.12.0",
|
|
59
|
+
"@wordpress/commands": "^1.39.0",
|
|
60
|
+
"@wordpress/components": "^32.1.0",
|
|
61
|
+
"@wordpress/compose": "^7.39.0",
|
|
62
|
+
"@wordpress/core-data": "^7.39.0",
|
|
63
|
+
"@wordpress/data": "^10.39.0",
|
|
64
|
+
"@wordpress/dataviews": "^11.3.0",
|
|
65
|
+
"@wordpress/date": "^5.39.0",
|
|
66
|
+
"@wordpress/deprecated": "^4.39.0",
|
|
67
|
+
"@wordpress/dom": "^4.39.0",
|
|
68
|
+
"@wordpress/editor": "^14.39.0",
|
|
69
|
+
"@wordpress/element": "^6.39.0",
|
|
70
|
+
"@wordpress/escape-html": "^3.39.0",
|
|
71
|
+
"@wordpress/fields": "^0.31.0",
|
|
72
|
+
"@wordpress/global-styles-engine": "^1.6.0",
|
|
73
|
+
"@wordpress/global-styles-ui": "^1.6.0",
|
|
74
|
+
"@wordpress/hooks": "^4.39.0",
|
|
75
|
+
"@wordpress/html-entities": "^4.39.0",
|
|
76
|
+
"@wordpress/i18n": "^6.12.0",
|
|
77
|
+
"@wordpress/icons": "^11.6.0",
|
|
78
|
+
"@wordpress/keyboard-shortcuts": "^5.39.0",
|
|
79
|
+
"@wordpress/keycodes": "^4.39.0",
|
|
80
|
+
"@wordpress/media-utils": "^5.39.0",
|
|
81
|
+
"@wordpress/notices": "^5.39.0",
|
|
82
|
+
"@wordpress/patterns": "^2.39.0",
|
|
83
|
+
"@wordpress/plugins": "^7.39.0",
|
|
84
|
+
"@wordpress/preferences": "^4.39.0",
|
|
85
|
+
"@wordpress/primitives": "^4.39.0",
|
|
86
|
+
"@wordpress/private-apis": "^1.39.0",
|
|
87
|
+
"@wordpress/reusable-blocks": "^5.39.0",
|
|
88
|
+
"@wordpress/router": "^1.39.0",
|
|
89
|
+
"@wordpress/style-engine": "^2.39.0",
|
|
90
|
+
"@wordpress/url": "^4.39.0",
|
|
91
|
+
"@wordpress/viewport": "^6.39.0",
|
|
92
|
+
"@wordpress/views": "^1.6.0",
|
|
93
|
+
"@wordpress/widgets": "^4.39.0",
|
|
94
|
+
"@wordpress/wordcount": "^4.39.0",
|
|
95
95
|
"change-case": "^4.1.2",
|
|
96
96
|
"clsx": "^2.1.1",
|
|
97
97
|
"colord": "^2.9.2",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "eee1cfb1472f11183e40fb77465a5f13145df7ad"
|
|
110
110
|
}
|
|
@@ -12,6 +12,7 @@ import { useInstanceId, useReducedMotion } from '@wordpress/compose';
|
|
|
12
12
|
import {
|
|
13
13
|
EditorKeyboardShortcutsRegister,
|
|
14
14
|
privateApis as editorPrivateApis,
|
|
15
|
+
store as editorStore,
|
|
15
16
|
} from '@wordpress/editor';
|
|
16
17
|
import { __, sprintf } from '@wordpress/i18n';
|
|
17
18
|
import { store as coreDataStore } from '@wordpress/core-data';
|
|
@@ -145,6 +146,7 @@ export default function EditSiteEditor( { isHomeRoute = false } ) {
|
|
|
145
146
|
const settings = useSpecificEditorSettings();
|
|
146
147
|
const { initialBlockSelection, ...editorSettings } = settings;
|
|
147
148
|
const { resetZoomLevel } = unlock( useDispatch( blockEditorStore ) );
|
|
149
|
+
const { setCurrentRevisionId } = unlock( useDispatch( editorStore ) );
|
|
148
150
|
const { createSuccessNotice } = useDispatch( noticesStore );
|
|
149
151
|
const history = useHistory();
|
|
150
152
|
const onActionPerformed = useCallback(
|
|
@@ -257,6 +259,7 @@ export default function EditSiteEditor( { isHomeRoute = false } ) {
|
|
|
257
259
|
tooltipPosition="middle right"
|
|
258
260
|
onClick={ () => {
|
|
259
261
|
resetZoomLevel();
|
|
262
|
+
setCurrentRevisionId( null );
|
|
260
263
|
history.navigate(
|
|
261
264
|
getNavigationPath(
|
|
262
265
|
location,
|
|
@@ -12,6 +12,7 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
|
12
12
|
import { store as editSiteStore } from '../../store';
|
|
13
13
|
import { unlock } from '../../lock-unlock';
|
|
14
14
|
import {
|
|
15
|
+
ATTACHMENT_POST_TYPE,
|
|
15
16
|
TEMPLATE_POST_TYPE,
|
|
16
17
|
TEMPLATE_PART_POST_TYPE,
|
|
17
18
|
NAVIGATION_POST_TYPE,
|
|
@@ -21,6 +22,7 @@ import {
|
|
|
21
22
|
const { useLocation } = unlock( routerPrivateApis );
|
|
22
23
|
|
|
23
24
|
const postTypesWithoutParentTemplate = [
|
|
25
|
+
ATTACHMENT_POST_TYPE,
|
|
24
26
|
TEMPLATE_POST_TYPE,
|
|
25
27
|
TEMPLATE_PART_POST_TYPE,
|
|
26
28
|
NAVIGATION_POST_TYPE,
|
|
@@ -45,6 +47,8 @@ function getPostType( name ) {
|
|
|
45
47
|
postType = 'page';
|
|
46
48
|
} else if ( name === 'post-item' || name === 'posts' ) {
|
|
47
49
|
postType = 'post';
|
|
50
|
+
} else if ( name === 'attachment-item' ) {
|
|
51
|
+
postType = ATTACHMENT_POST_TYPE;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
return postType;
|
|
@@ -53,7 +53,8 @@ const ANIMATION_DURATION = 0.3;
|
|
|
53
53
|
|
|
54
54
|
function Layout() {
|
|
55
55
|
const { query, name: routeKey, areas, widths } = useLocation();
|
|
56
|
-
|
|
56
|
+
// Force canvas to 'view' on notfound route to show the error message and allow navigation.
|
|
57
|
+
const canvas = routeKey === 'notfound' ? 'view' : query?.canvas ?? 'view';
|
|
57
58
|
const isMobileViewport = useViewportMatch( 'medium', '<' );
|
|
58
59
|
const toggleRef = useRef();
|
|
59
60
|
const navigateRegionsProps = useNavigateRegions();
|
|
@@ -11,6 +11,8 @@ import { privateApis as editorPrivateApis } from '@wordpress/editor';
|
|
|
11
11
|
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
12
12
|
import { useView } from '@wordpress/views';
|
|
13
13
|
import { useSelect } from '@wordpress/data';
|
|
14
|
+
import { addQueryArgs } from '@wordpress/url';
|
|
15
|
+
import { Button } from '@wordpress/components';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Internal dependencies
|
|
@@ -32,9 +34,7 @@ import {
|
|
|
32
34
|
previewField,
|
|
33
35
|
templatePartAuthorField,
|
|
34
36
|
} from './fields';
|
|
35
|
-
import { addQueryArgs } from '@wordpress/url';
|
|
36
37
|
import usePatternCategories from '../sidebar-navigation-screen-patterns/use-pattern-categories';
|
|
37
|
-
import { Button } from '@wordpress/components';
|
|
38
38
|
|
|
39
39
|
const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );
|
|
40
40
|
const { usePostActions, patternTitleField } = unlock( editorPrivateApis );
|
|
@@ -214,7 +214,10 @@ export default function DataviewsPatterns() {
|
|
|
214
214
|
{ __( 'Reset view' ) }
|
|
215
215
|
</Button>
|
|
216
216
|
) }
|
|
217
|
-
<PatternsActions
|
|
217
|
+
<PatternsActions
|
|
218
|
+
categoryId={ categoryId }
|
|
219
|
+
postType={ postType }
|
|
220
|
+
/>
|
|
218
221
|
</>
|
|
219
222
|
}
|
|
220
223
|
>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { __ } from '@wordpress/i18n';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import Editor from '../editor';
|
|
10
|
+
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
11
|
+
|
|
12
|
+
export const attachmentItemRoute = {
|
|
13
|
+
name: 'attachment-item',
|
|
14
|
+
path: '/attachment/:postId',
|
|
15
|
+
areas: {
|
|
16
|
+
sidebar: (
|
|
17
|
+
<SidebarNavigationScreen
|
|
18
|
+
title={ __( 'Media' ) }
|
|
19
|
+
backPath="/"
|
|
20
|
+
// Empty content - no sidebar list needed for attachments
|
|
21
|
+
content={ null }
|
|
22
|
+
/>
|
|
23
|
+
),
|
|
24
|
+
mobile: <Editor />,
|
|
25
|
+
preview: <Editor />,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
@@ -20,10 +20,12 @@ import { templatesRoute } from './templates';
|
|
|
20
20
|
import { templateItemRoute } from './template-item';
|
|
21
21
|
import { pagesRoute } from './pages';
|
|
22
22
|
import { pageItemRoute } from './page-item';
|
|
23
|
+
import { attachmentItemRoute } from './attachment-item';
|
|
23
24
|
import { stylebookRoute } from './stylebook';
|
|
24
25
|
import { notFoundRoute } from './notfound';
|
|
25
26
|
|
|
26
27
|
const routes = [
|
|
28
|
+
...( window?.__experimentalMediaEditor ? [ attachmentItemRoute ] : [] ),
|
|
27
29
|
pageItemRoute,
|
|
28
30
|
pagesRoute,
|
|
29
31
|
templateItemRoute,
|
package/src/utils/constants.js
CHANGED
|
@@ -9,6 +9,9 @@ import { privateApis as patternPrivateApis } from '@wordpress/patterns';
|
|
|
9
9
|
*/
|
|
10
10
|
import { unlock } from '../lock-unlock';
|
|
11
11
|
|
|
12
|
+
// Attachments / media
|
|
13
|
+
export const ATTACHMENT_POST_TYPE = 'attachment';
|
|
14
|
+
|
|
12
15
|
// Navigation
|
|
13
16
|
export const NAVIGATION_POST_TYPE = 'wp_navigation';
|
|
14
17
|
|