@wordpress/block-editor 15.8.1-next.16d95556a.0 → 15.8.1-next.dc3f6d3c1.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/components/block-inspector/edit-contents.js +19 -23
- package/build/components/block-inspector/edit-contents.js.map +3 -3
- package/build/components/block-inspector/index.js +7 -1
- package/build/components/block-inspector/index.js.map +2 -2
- package/build/components/block-list/block.js +4 -0
- package/build/components/block-list/block.js.map +2 -2
- package/build/components/block-list/use-block-props/index.js +3 -1
- package/build/components/block-list/use-block-props/index.js.map +2 -2
- package/build/components/block-list/use-block-props/use-is-hovered.js +16 -10
- package/build/components/block-list/use-block-props/use-is-hovered.js.map +2 -2
- package/build/components/block-settings-menu-controls/edit-section-menu-item.js +64 -0
- package/build/components/block-settings-menu-controls/edit-section-menu-item.js.map +7 -0
- package/build/components/block-settings-menu-controls/index.js +8 -0
- package/build/components/block-settings-menu-controls/index.js.map +2 -2
- package/build/components/block-toolbar/block-toolbar-icon.js +9 -9
- package/build/components/block-toolbar/block-toolbar-icon.js.map +2 -2
- package/build/components/block-variation-transforms/index.js +32 -5
- package/build/components/block-variation-transforms/index.js.map +2 -2
- package/build/components/border-radius-control/single-input-control.js +1 -0
- package/build/components/border-radius-control/single-input-control.js.map +2 -2
- package/build/components/content-only-controls/index.js +263 -0
- package/build/components/content-only-controls/index.js.map +7 -0
- package/build/components/content-only-controls/link/index.js +204 -0
- package/build/components/content-only-controls/link/index.js.map +7 -0
- package/build/components/content-only-controls/media/index.js +264 -0
- package/build/components/content-only-controls/media/index.js.map +7 -0
- package/build/components/content-only-controls/plain-text/index.js +68 -0
- package/build/components/content-only-controls/plain-text/index.js.map +7 -0
- package/build/components/content-only-controls/rich-text/index.js +197 -0
- package/build/components/content-only-controls/rich-text/index.js.map +7 -0
- package/build/components/content-only-controls/use-inspector-popover-placement.js +41 -0
- package/build/components/content-only-controls/use-inspector-popover-placement.js.map +7 -0
- package/build/components/inserter/media-tab/media-tab.js +1 -33
- package/build/components/inserter/media-tab/media-tab.js.map +3 -3
- package/build/components/inspector-controls-tabs/content-tab.js +6 -2
- package/build/components/inspector-controls-tabs/content-tab.js.map +3 -3
- package/build/components/inspector-controls-tabs/index.js +7 -1
- package/build/components/inspector-controls-tabs/index.js.map +2 -2
- package/build/components/list-view/block-select-button.js +11 -4
- package/build/components/list-view/block-select-button.js.map +2 -2
- package/build/components/media-placeholder/index.js +1 -31
- package/build/components/media-placeholder/index.js.map +3 -3
- package/build/components/media-replace-flow/index.js +4 -30
- package/build/components/media-replace-flow/index.js.map +3 -3
- package/build/components/use-block-display-information/index.js +21 -1
- package/build/components/use-block-display-information/index.js.map +3 -3
- package/build/hooks/block-bindings.js +52 -61
- package/build/hooks/block-bindings.js.map +3 -3
- package/build/hooks/use-content-only-section-edit.js +67 -0
- package/build/hooks/use-content-only-section-edit.js.map +7 -0
- package/build/layouts/constrained.js +2 -2
- package/build/layouts/constrained.js.map +2 -2
- package/build/private-apis.js +2 -3
- package/build/private-apis.js.map +3 -3
- package/build/store/private-keys.js +3 -0
- package/build/store/private-keys.js.map +2 -2
- package/build/store/private-selectors.js +1 -2
- package/build/store/private-selectors.js.map +2 -2
- package/build/store/reducer.js +1 -2
- package/build/store/reducer.js.map +2 -2
- package/build/utils/fit-text-utils.js +9 -1
- package/build/utils/fit-text-utils.js.map +2 -2
- package/build-module/components/block-inspector/edit-contents.js +9 -23
- package/build-module/components/block-inspector/edit-contents.js.map +2 -2
- package/build-module/components/block-inspector/index.js +7 -1
- package/build-module/components/block-inspector/index.js.map +2 -2
- package/build-module/components/block-list/block.js +4 -0
- package/build-module/components/block-list/block.js.map +2 -2
- package/build-module/components/block-list/use-block-props/index.js +3 -1
- package/build-module/components/block-list/use-block-props/index.js.map +2 -2
- package/build-module/components/block-list/use-block-props/use-is-hovered.js +16 -10
- package/build-module/components/block-list/use-block-props/use-is-hovered.js.map +2 -2
- package/build-module/components/block-settings-menu-controls/edit-section-menu-item.js +29 -0
- package/build-module/components/block-settings-menu-controls/edit-section-menu-item.js.map +7 -0
- package/build-module/components/block-settings-menu-controls/index.js +8 -0
- package/build-module/components/block-settings-menu-controls/index.js.map +2 -2
- package/build-module/components/block-toolbar/block-toolbar-icon.js +10 -10
- package/build-module/components/block-toolbar/block-toolbar-icon.js.map +2 -2
- package/build-module/components/block-variation-transforms/index.js +32 -5
- package/build-module/components/block-variation-transforms/index.js.map +2 -2
- package/build-module/components/border-radius-control/single-input-control.js +1 -0
- package/build-module/components/border-radius-control/single-input-control.js.map +2 -2
- package/build-module/components/content-only-controls/index.js +237 -0
- package/build-module/components/content-only-controls/index.js.map +7 -0
- package/build-module/components/content-only-controls/link/index.js +172 -0
- package/build-module/components/content-only-controls/link/index.js.map +7 -0
- package/build-module/components/content-only-controls/media/index.js +243 -0
- package/build-module/components/content-only-controls/media/index.js.map +7 -0
- package/build-module/components/content-only-controls/plain-text/index.js +50 -0
- package/build-module/components/content-only-controls/plain-text/index.js.map +7 -0
- package/build-module/components/content-only-controls/rich-text/index.js +174 -0
- package/build-module/components/content-only-controls/rich-text/index.js.map +7 -0
- package/build-module/components/content-only-controls/use-inspector-popover-placement.js +16 -0
- package/build-module/components/content-only-controls/use-inspector-popover-placement.js.map +7 -0
- package/build-module/components/inserter/media-tab/media-tab.js +2 -34
- package/build-module/components/inserter/media-tab/media-tab.js.map +2 -2
- package/build-module/components/inspector-controls-tabs/content-tab.js +7 -3
- package/build-module/components/inspector-controls-tabs/content-tab.js.map +2 -2
- package/build-module/components/inspector-controls-tabs/index.js +7 -1
- package/build-module/components/inspector-controls-tabs/index.js.map +2 -2
- package/build-module/components/list-view/block-select-button.js +18 -5
- package/build-module/components/list-view/block-select-button.js.map +2 -2
- package/build-module/components/media-placeholder/index.js +1 -31
- package/build-module/components/media-placeholder/index.js.map +2 -2
- package/build-module/components/media-replace-flow/index.js +4 -30
- package/build-module/components/media-replace-flow/index.js.map +2 -2
- package/build-module/components/use-block-display-information/index.js +21 -1
- package/build-module/components/use-block-display-information/index.js.map +3 -3
- package/build-module/hooks/block-bindings.js +57 -62
- package/build-module/hooks/block-bindings.js.map +2 -2
- package/build-module/hooks/use-content-only-section-edit.js +46 -0
- package/build-module/hooks/use-content-only-section-edit.js.map +7 -0
- package/build-module/layouts/constrained.js +2 -2
- package/build-module/layouts/constrained.js.map +2 -2
- package/build-module/private-apis.js +3 -3
- package/build-module/private-apis.js.map +2 -2
- package/build-module/store/private-keys.js +2 -0
- package/build-module/store/private-keys.js.map +2 -2
- package/build-module/store/private-selectors.js +1 -2
- package/build-module/store/private-selectors.js.map +2 -2
- package/build-module/store/reducer.js +1 -2
- package/build-module/store/reducer.js.map +2 -2
- package/build-module/utils/fit-text-utils.js +9 -1
- package/build-module/utils/fit-text-utils.js.map +2 -2
- package/build-style/style-rtl.css +132 -0
- package/build-style/style.css +132 -0
- package/package.json +37 -37
- package/src/components/block-inspector/edit-contents.js +10 -29
- package/src/components/block-inspector/index.js +4 -2
- package/src/components/block-list/block.js +6 -0
- package/src/components/block-list/use-block-props/index.js +3 -1
- package/src/components/block-list/use-block-props/use-is-hovered.js +24 -12
- package/src/components/block-settings-menu-controls/edit-section-menu-item.js +39 -0
- package/src/components/block-settings-menu-controls/index.js +7 -0
- package/src/components/block-toolbar/block-toolbar-icon.js +14 -10
- package/src/components/block-variation-transforms/index.js +96 -35
- package/src/components/border-radius-control/single-input-control.js +1 -0
- package/src/components/content-only-controls/index.js +296 -0
- package/src/components/content-only-controls/link/index.js +195 -0
- package/src/components/content-only-controls/link/styles.scss +23 -0
- package/src/components/content-only-controls/media/index.js +285 -0
- package/src/components/content-only-controls/media/styles.scss +47 -0
- package/src/components/content-only-controls/plain-text/index.js +49 -0
- package/src/components/content-only-controls/rich-text/index.js +193 -0
- package/src/components/content-only-controls/rich-text/styles.scss +24 -0
- package/src/components/content-only-controls/styles.scss +35 -0
- package/src/components/content-only-controls/use-inspector-popover-placement.js +19 -0
- package/src/components/inserter/media-tab/media-tab.js +2 -44
- package/src/components/inspector-controls-tabs/content-tab.js +12 -4
- package/src/components/inspector-controls-tabs/index.js +4 -1
- package/src/components/list-view/block-select-button.js +37 -24
- package/src/components/media-placeholder/index.js +1 -41
- package/src/components/media-replace-flow/index.js +3 -39
- package/src/components/use-block-display-information/index.js +30 -2
- package/src/hooks/block-bindings.js +71 -82
- package/src/hooks/use-content-only-section-edit.js +63 -0
- package/src/layouts/constrained.js +8 -2
- package/src/private-apis.js +2 -2
- package/src/store/private-keys.js +1 -0
- package/src/store/private-selectors.js +1 -2
- package/src/store/reducer.js +0 -3
- package/src/store/test/reducer.js +7 -17
- package/src/style.scss +1 -0
- package/src/utils/fit-text-utils.js +19 -1
- package/build/components/media-upload-modal/index.js +0 -29
- package/build/components/media-upload-modal/index.js.map +0 -7
- package/build-module/components/media-upload-modal/index.js +0 -8
- package/build-module/components/media-upload-modal/index.js.map +0 -7
- package/src/components/media-upload-modal/index.js +0 -18
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { store as blockEditorStore } from '../store';
|
|
10
|
+
import { unlock } from '../lock-unlock';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Hook that provides section block editing state and actions.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} clientId Block client ID.
|
|
16
|
+
* @return {Object} Object containing section block state and actions.
|
|
17
|
+
*/
|
|
18
|
+
export default function useContentOnlySectionEdit( clientId ) {
|
|
19
|
+
const {
|
|
20
|
+
isSectionBlock,
|
|
21
|
+
isWithinSection,
|
|
22
|
+
isWithinEditedSection,
|
|
23
|
+
isEditingContentOnlySection,
|
|
24
|
+
editedContentOnlySection,
|
|
25
|
+
} = useSelect(
|
|
26
|
+
( select ) => {
|
|
27
|
+
const {
|
|
28
|
+
isSectionBlock: _isSectionBlock,
|
|
29
|
+
getParentSectionBlock,
|
|
30
|
+
getEditedContentOnlySection,
|
|
31
|
+
isWithinEditedContentOnlySection,
|
|
32
|
+
} = unlock( select( blockEditorStore ) );
|
|
33
|
+
|
|
34
|
+
const editedSection = getEditedContentOnlySection();
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
isSectionBlock: _isSectionBlock( clientId ),
|
|
38
|
+
isWithinSection:
|
|
39
|
+
_isSectionBlock( clientId ) ||
|
|
40
|
+
!! getParentSectionBlock( clientId ),
|
|
41
|
+
isWithinEditedSection:
|
|
42
|
+
isWithinEditedContentOnlySection( clientId ),
|
|
43
|
+
isEditingContentOnlySection: editedSection === clientId,
|
|
44
|
+
editedContentOnlySection: editedSection,
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
[ clientId ]
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
const blockEditorActions = useDispatch( blockEditorStore );
|
|
51
|
+
const { editContentOnlySection, stopEditingContentOnlySection } =
|
|
52
|
+
unlock( blockEditorActions );
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
isSectionBlock,
|
|
56
|
+
isWithinSection,
|
|
57
|
+
isWithinEditedSection,
|
|
58
|
+
isEditingContentOnlySection,
|
|
59
|
+
editedContentOnlySection,
|
|
60
|
+
editContentOnlySection,
|
|
61
|
+
stopEditingContentOnlySection,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -89,7 +89,10 @@ export default {
|
|
|
89
89
|
: nextWidth;
|
|
90
90
|
onChange( {
|
|
91
91
|
...layout,
|
|
92
|
-
contentSize:
|
|
92
|
+
contentSize:
|
|
93
|
+
nextWidth !== ''
|
|
94
|
+
? nextWidth
|
|
95
|
+
: undefined,
|
|
93
96
|
} );
|
|
94
97
|
} }
|
|
95
98
|
units={ units }
|
|
@@ -111,7 +114,10 @@ export default {
|
|
|
111
114
|
: nextWidth;
|
|
112
115
|
onChange( {
|
|
113
116
|
...layout,
|
|
114
|
-
wideSize:
|
|
117
|
+
wideSize:
|
|
118
|
+
nextWidth !== ''
|
|
119
|
+
? nextWidth
|
|
120
|
+
: undefined,
|
|
115
121
|
} );
|
|
116
122
|
} }
|
|
117
123
|
units={ units }
|
package/src/private-apis.js
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
globalStylesLinksDataKey,
|
|
41
41
|
sectionRootClientIdKey,
|
|
42
42
|
mediaEditKey,
|
|
43
|
+
getMediaSelectKey,
|
|
43
44
|
essentialFormatKey,
|
|
44
45
|
} from './store/private-keys';
|
|
45
46
|
import { requiresWrapperOnCopy } from './components/writing-flow/utils';
|
|
@@ -57,7 +58,6 @@ import {
|
|
|
57
58
|
useBlockElementRef,
|
|
58
59
|
useBlockElement,
|
|
59
60
|
} from './components/block-list/use-block-props/use-block-refs';
|
|
60
|
-
import { default as MediaUploadModal } from './components/media-upload-modal';
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Private @wordpress/block-editor APIs.
|
|
@@ -108,8 +108,8 @@ lock( privateApis, {
|
|
|
108
108
|
CommentIconSlotFill,
|
|
109
109
|
CommentIconToolbarSlotFill,
|
|
110
110
|
mediaEditKey,
|
|
111
|
+
getMediaSelectKey,
|
|
111
112
|
essentialFormatKey,
|
|
112
113
|
useBlockElement,
|
|
113
114
|
useBlockElementRef,
|
|
114
|
-
MediaUploadModal,
|
|
115
115
|
} );
|
|
@@ -4,4 +4,5 @@ export const selectBlockPatternsKey = Symbol( 'selectBlockPatternsKey' );
|
|
|
4
4
|
export const reusableBlocksSelectKey = Symbol( 'reusableBlocksSelect' );
|
|
5
5
|
export const sectionRootClientIdKey = Symbol( 'sectionRootClientIdKey' );
|
|
6
6
|
export const mediaEditKey = Symbol( 'mediaEditKey' );
|
|
7
|
+
export const getMediaSelectKey = Symbol( 'getMediaSelect' );
|
|
7
8
|
export const essentialFormatKey = Symbol( 'essentialFormat' );
|
|
@@ -526,9 +526,8 @@ export function isSectionBlock( state, clientId ) {
|
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
const attributes = getBlockAttributes( state, clientId );
|
|
529
|
-
const isTemplatePart = blockName === 'core/template-part';
|
|
530
529
|
if (
|
|
531
|
-
|
|
530
|
+
attributes?.metadata?.patternName &&
|
|
532
531
|
!! window?.__experimentalContentOnlyPatternInsertion
|
|
533
532
|
) {
|
|
534
533
|
return true;
|
package/src/store/reducer.js
CHANGED
|
@@ -2305,9 +2305,6 @@ function getDerivedBlockEditingModesForTree( state, treeClientId = '' ) {
|
|
|
2305
2305
|
const contentOnlyParents = [
|
|
2306
2306
|
...contentOnlyTemplateLockedClientIds,
|
|
2307
2307
|
...unsyncedPatternClientIds,
|
|
2308
|
-
...( window?.__experimentalContentOnlyPatternInsertion
|
|
2309
|
-
? templatePartClientIds
|
|
2310
|
-
: [] ),
|
|
2311
2308
|
];
|
|
2312
2309
|
|
|
2313
2310
|
traverseBlockTree( state, treeClientId, ( block ) => {
|
|
@@ -4540,16 +4540,11 @@ describe( 'state', () => {
|
|
|
4540
4540
|
);
|
|
4541
4541
|
} );
|
|
4542
4542
|
|
|
4543
|
-
it( 'returns the expected block editing modes for
|
|
4543
|
+
it( 'returns the expected block editing modes for template parts', () => {
|
|
4544
|
+
// Currently, template parts are not considered sections, so
|
|
4545
|
+
// child blocks are not set to contentOnly.
|
|
4544
4546
|
expect( initialState.derivedBlockEditingModes ).toEqual(
|
|
4545
|
-
new Map(
|
|
4546
|
-
Object.entries( {
|
|
4547
|
-
'template-part-paragraph': 'contentOnly',
|
|
4548
|
-
'template-part-group': 'disabled',
|
|
4549
|
-
'template-part-grouped-paragraph':
|
|
4550
|
-
'contentOnly',
|
|
4551
|
-
} )
|
|
4552
|
-
)
|
|
4547
|
+
new Map()
|
|
4553
4548
|
);
|
|
4554
4549
|
} );
|
|
4555
4550
|
|
|
@@ -4573,7 +4568,7 @@ describe( 'state', () => {
|
|
|
4573
4568
|
expect( derivedBlockEditingModes ).toEqual( new Map() );
|
|
4574
4569
|
} );
|
|
4575
4570
|
|
|
4576
|
-
it( '
|
|
4571
|
+
it( 'does not set contentOnly mode for children of template parts', () => {
|
|
4577
4572
|
const { derivedBlockEditingModes } = dispatchActions(
|
|
4578
4573
|
[
|
|
4579
4574
|
{
|
|
@@ -4587,13 +4582,8 @@ describe( 'state', () => {
|
|
|
4587
4582
|
);
|
|
4588
4583
|
|
|
4589
4584
|
expect( derivedBlockEditingModes ).toEqual(
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
'template-part-paragraph': 'contentOnly',
|
|
4593
|
-
'template-part-group': 'disabled',
|
|
4594
|
-
// template-part-grouped-paragraph already has an explicit mode, so isn't set as a derived mode.
|
|
4595
|
-
} )
|
|
4596
|
-
)
|
|
4585
|
+
// template-part-grouped-paragraph already has an explicit mode, so isn't set as a derived mode.
|
|
4586
|
+
new Map()
|
|
4597
4587
|
);
|
|
4598
4588
|
} );
|
|
4599
4589
|
} );
|
package/src/style.scss
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@use "./components/block-variation-transforms/style.scss" as *;
|
|
30
30
|
@use "./components/border-radius-control/style.scss" as *;
|
|
31
31
|
@use "./components/colors-gradients/style.scss" as *;
|
|
32
|
+
@use "./components/content-only-controls/styles.scss" as *;
|
|
32
33
|
@use "./components/date-format-picker/style.scss" as *;
|
|
33
34
|
@use "./components/duotone-control/style.scss" as *;
|
|
34
35
|
@use "./components/font-appearance-control/style.scss" as *;
|
|
@@ -17,11 +17,28 @@ function findOptimalFontSize( textElement, applyFontSize ) {
|
|
|
17
17
|
let maxSize = 2400;
|
|
18
18
|
let bestSize = minSize;
|
|
19
19
|
|
|
20
|
+
const computedStyle = window.getComputedStyle( textElement );
|
|
21
|
+
const paddingLeft = parseFloat( computedStyle.paddingLeft ) || 0;
|
|
22
|
+
const paddingRight = parseFloat( computedStyle.paddingRight ) || 0;
|
|
23
|
+
const range = document.createRange();
|
|
24
|
+
range.selectNodeContents( textElement );
|
|
25
|
+
|
|
20
26
|
while ( minSize <= maxSize ) {
|
|
21
27
|
const midSize = Math.floor( ( minSize + maxSize ) / 2 );
|
|
22
28
|
applyFontSize( midSize );
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
// When there is padding if the text overflows to the
|
|
31
|
+
// padding area, it should be considered overflowing.
|
|
32
|
+
// Use Range API to measure actual text content dimensions.
|
|
33
|
+
const rect = range.getBoundingClientRect();
|
|
34
|
+
const textWidth = rect.width;
|
|
35
|
+
|
|
36
|
+
// Check if text fits within the element's width and is not
|
|
37
|
+
// overflowing into the padding area.
|
|
38
|
+
const fitsWidth =
|
|
39
|
+
textElement.scrollWidth <= textElement.clientWidth &&
|
|
40
|
+
textWidth <= textElement.clientWidth - paddingLeft - paddingRight;
|
|
41
|
+
// Check if text fits within the element's height.
|
|
25
42
|
const fitsHeight =
|
|
26
43
|
alreadyHasScrollableHeight ||
|
|
27
44
|
textElement.scrollHeight <= textElement.clientHeight;
|
|
@@ -33,6 +50,7 @@ function findOptimalFontSize( textElement, applyFontSize ) {
|
|
|
33
50
|
maxSize = midSize - 1;
|
|
34
51
|
}
|
|
35
52
|
}
|
|
53
|
+
range.detach();
|
|
36
54
|
|
|
37
55
|
return bestSize;
|
|
38
56
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// packages/block-editor/src/components/media-upload-modal/index.js
|
|
21
|
-
var media_upload_modal_exports = {};
|
|
22
|
-
__export(media_upload_modal_exports, {
|
|
23
|
-
default: () => media_upload_modal_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(media_upload_modal_exports);
|
|
26
|
-
var import_components = require("@wordpress/components");
|
|
27
|
-
var MediaUploadModal = () => null;
|
|
28
|
-
var media_upload_modal_default = (0, import_components.withFilters)("editor.MediaUploadModal")(MediaUploadModal);
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/media-upload-modal/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { withFilters } from '@wordpress/components';\n\n/**\n * This is a placeholder for the media upload modal component necessary to make it possible to provide\n * an integration with the core blocks that handle media files. By default it renders nothing but\n * it provides a way to have it overridden with the `editor.MediaUploadModal` filter.\n *\n * @return {Component} The component to be rendered.\n */\nconst MediaUploadModal = () => null;\n\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload-modal/README.md\n */\nexport default withFilters( 'editor.MediaUploadModal' )( MediaUploadModal );\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAA4B;AAS5B,IAAM,mBAAmB,MAAM;AAK/B,IAAO,iCAAQ,+BAAa,yBAA0B,EAAG,gBAAiB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// packages/block-editor/src/components/media-upload-modal/index.js
|
|
2
|
-
import { withFilters } from "@wordpress/components";
|
|
3
|
-
var MediaUploadModal = () => null;
|
|
4
|
-
var media_upload_modal_default = withFilters("editor.MediaUploadModal")(MediaUploadModal);
|
|
5
|
-
export {
|
|
6
|
-
media_upload_modal_default as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/media-upload-modal/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { withFilters } from '@wordpress/components';\n\n/**\n * This is a placeholder for the media upload modal component necessary to make it possible to provide\n * an integration with the core blocks that handle media files. By default it renders nothing but\n * it provides a way to have it overridden with the `editor.MediaUploadModal` filter.\n *\n * @return {Component} The component to be rendered.\n */\nconst MediaUploadModal = () => null;\n\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload-modal/README.md\n */\nexport default withFilters( 'editor.MediaUploadModal' )( MediaUploadModal );\n"],
|
|
5
|
-
"mappings": ";AAGA,SAAS,mBAAmB;AAS5B,IAAM,mBAAmB,MAAM;AAK/B,IAAO,6BAAQ,YAAa,yBAA0B,EAAG,gBAAiB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { withFilters } from '@wordpress/components';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* This is a placeholder for the media upload modal component necessary to make it possible to provide
|
|
8
|
-
* an integration with the core blocks that handle media files. By default it renders nothing but
|
|
9
|
-
* it provides a way to have it overridden with the `editor.MediaUploadModal` filter.
|
|
10
|
-
*
|
|
11
|
-
* @return {Component} The component to be rendered.
|
|
12
|
-
*/
|
|
13
|
-
const MediaUploadModal = () => null;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/media-upload-modal/README.md
|
|
17
|
-
*/
|
|
18
|
-
export default withFilters( 'editor.MediaUploadModal' )( MediaUploadModal );
|