@wordpress/block-library 8.3.2 → 8.3.3

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.
Files changed (46) hide show
  1. package/build/cover/edit/index.js +3 -2
  2. package/build/cover/edit/index.js.map +1 -1
  3. package/build/image/image.js +10 -5
  4. package/build/image/image.js.map +1 -1
  5. package/build/navigation/edit/index.js +2 -28
  6. package/build/navigation/edit/index.js.map +1 -1
  7. package/build/navigation/edit/menu-inspector-controls.js +2 -2
  8. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  9. package/build/navigation/edit/unsaved-inner-blocks.js +4 -5
  10. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  11. package/build/navigation/edit/use-create-navigation-menu.js +11 -2
  12. package/build/navigation/edit/use-create-navigation-menu.js.map +1 -1
  13. package/build/{experiments.js → private-apis.js} +3 -3
  14. package/build/private-apis.js.map +1 -0
  15. package/build-module/cover/edit/index.js +3 -2
  16. package/build-module/cover/edit/index.js.map +1 -1
  17. package/build-module/image/image.js +10 -5
  18. package/build-module/image/image.js.map +1 -1
  19. package/build-module/navigation/edit/index.js +3 -29
  20. package/build-module/navigation/edit/index.js.map +1 -1
  21. package/build-module/navigation/edit/menu-inspector-controls.js +3 -3
  22. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  23. package/build-module/navigation/edit/unsaved-inner-blocks.js +4 -5
  24. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  25. package/build-module/navigation/edit/use-create-navigation-menu.js +11 -2
  26. package/build-module/navigation/edit/use-create-navigation-menu.js.map +1 -1
  27. package/build-module/{experiments.js → private-apis.js} +2 -2
  28. package/build-module/private-apis.js.map +1 -0
  29. package/build-style/classic-rtl.css +5 -0
  30. package/build-style/classic.css +5 -0
  31. package/build-style/editor-rtl.css +4 -1
  32. package/build-style/editor.css +4 -1
  33. package/package.json +16 -16
  34. package/src/classic.scss +5 -0
  35. package/src/cover/edit/index.js +4 -1
  36. package/src/editor.scss +5 -0
  37. package/src/image/image.js +36 -25
  38. package/src/navigation/edit/index.js +1 -30
  39. package/src/navigation/edit/menu-inspector-controls.js +4 -3
  40. package/src/navigation/edit/unsaved-inner-blocks.js +29 -36
  41. package/src/navigation/edit/use-create-navigation-menu.js +13 -1
  42. package/src/{experiments.js → private-apis.js} +1 -1
  43. package/tsconfig.json +24 -1
  44. package/tsconfig.tsbuildinfo +1 -1
  45. package/build/experiments.js.map +0 -1
  46. package/build-module/experiments.js.map +0 -1
package/src/classic.scss CHANGED
@@ -13,3 +13,8 @@
13
13
 
14
14
  font-size: 1.125em;
15
15
  }
16
+
17
+ .wp-block-file__button {
18
+ background: #32373c;
19
+ color: $white;
20
+ }
@@ -116,7 +116,10 @@ function CoverEdit( {
116
116
  // we define the url and background type
117
117
  // depending on the value of the useFeaturedImage flag
118
118
  // to preview in edit the dynamic featured image
119
- const url = useFeaturedImage ? mediaUrl : attributes.url;
119
+ const url = useFeaturedImage
120
+ ? mediaUrl
121
+ : // Ensure the url is not malformed due to sanitization through `wp_kses`.
122
+ attributes.url?.replaceAll( '&', '&' );
120
123
  const backgroundType = useFeaturedImage
121
124
  ? IMAGE_BACKGROUND_TYPE
122
125
  : attributes.backgroundType;
package/src/editor.scss CHANGED
@@ -93,3 +93,8 @@
93
93
  * These are only output in the editor, but styles here are NOT prefixed .editor-styles-wrapper.
94
94
  * This allows us to create normalization styles that are easily overridden by editor styles.
95
95
  */
96
+
97
+ // Remove the browser default border for iframe in Custom HTML block, Embed block, etc.
98
+ .editor-styles-wrapper iframe:not([frameborder]) {
99
+ border: 0;
100
+ }
@@ -124,30 +124,37 @@ export default function Image( {
124
124
  },
125
125
  [ id, isSelected, clientId ]
126
126
  );
127
- const { canInsertCover, imageEditing, imageSizes, mediaUpload } = useSelect(
128
- ( select ) => {
129
- const { getBlockRootClientId, getSettings, canInsertBlockType } =
130
- select( blockEditorStore );
131
-
132
- const rootClientId = getBlockRootClientId( clientId );
133
- const settings = Object.fromEntries(
134
- Object.entries( getSettings() ).filter( ( [ key ] ) =>
135
- [ 'imageEditing', 'imageSizes', 'mediaUpload' ].includes(
136
- key
127
+ const { canInsertCover, imageEditing, imageSizes, maxWidth, mediaUpload } =
128
+ useSelect(
129
+ ( select ) => {
130
+ const {
131
+ getBlockRootClientId,
132
+ getSettings,
133
+ canInsertBlockType,
134
+ } = select( blockEditorStore );
135
+
136
+ const rootClientId = getBlockRootClientId( clientId );
137
+ const settings = Object.fromEntries(
138
+ Object.entries( getSettings() ).filter( ( [ key ] ) =>
139
+ [
140
+ 'imageEditing',
141
+ 'imageSizes',
142
+ 'maxWidth',
143
+ 'mediaUpload',
144
+ ].includes( key )
137
145
  )
138
- )
139
- );
146
+ );
140
147
 
141
- return {
142
- ...settings,
143
- canInsertCover: canInsertBlockType(
144
- 'core/cover',
145
- rootClientId
146
- ),
147
- };
148
- },
149
- [ clientId ]
150
- );
148
+ return {
149
+ ...settings,
150
+ canInsertCover: canInsertBlockType(
151
+ 'core/cover',
152
+ rootClientId
153
+ ),
154
+ };
155
+ },
156
+ [ clientId ]
157
+ );
151
158
  const { replaceBlocks, toggleSelection } = useDispatch( blockEditorStore );
152
159
  const { createErrorNotice, createSuccessNotice } =
153
160
  useDispatch( noticesStore );
@@ -548,9 +555,13 @@ export default function Image( {
548
555
  // With the current implementation of ResizableBox, an image needs an
549
556
  // explicit pixel value for the max-width. In absence of being able to
550
557
  // set the content-width, this max-width is currently dictated by the
551
- // vanilla editor style. We'll use the clientWidth here, to prevent the width
552
- // of the image growing larger than the width of the block column.
553
- const maxWidthBuffer = clientWidth;
558
+ // vanilla editor style. The following variable adds a buffer to this
559
+ // vanilla style, so 3rd party themes have some wiggleroom. This does,
560
+ // in most cases, allow you to scale the image beyond the width of the
561
+ // main column, though not infinitely.
562
+ // @todo It would be good to revisit this once a content-width variable
563
+ // becomes available.
564
+ const maxWidthBuffer = maxWidth * 2.5;
554
565
 
555
566
  let showRightHandle = false;
556
567
  let showLeftHandle = false;
@@ -27,7 +27,7 @@ import {
27
27
  __experimentalUseBlockOverlayActive as useBlockOverlayActive,
28
28
  __experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,
29
29
  } from '@wordpress/block-editor';
30
- import { EntityProvider, store as coreStore } from '@wordpress/core-data';
30
+ import { EntityProvider } from '@wordpress/core-data';
31
31
 
32
32
  import { useDispatch } from '@wordpress/data';
33
33
  import {
@@ -112,7 +112,6 @@ function Navigation( {
112
112
 
113
113
  const recursionId = `navigationMenu/${ ref }`;
114
114
  const hasAlreadyRendered = useHasRecursion( recursionId );
115
- const { editEntityRecord } = useDispatch( coreStore );
116
115
 
117
116
  // Preload classic menus, so that they don't suddenly pop-in when viewing
118
117
  // the Select Menu dropdown.
@@ -128,11 +127,6 @@ function Navigation( {
128
127
  name: 'block-library/core/navigation/classic-menu-conversion',
129
128
  } );
130
129
 
131
- const [ showMenuAutoPublishDraftNotice, hideMenuAutoPublishDraftNotice ] =
132
- useNavigationNotice( {
133
- name: 'block-library/core/navigation/auto-publish-draft',
134
- } );
135
-
136
130
  const [
137
131
  showNavigationMenuPermissionsNotice,
138
132
  hideNavigationMenuPermissionsNotice,
@@ -209,7 +203,6 @@ function Navigation( {
209
203
  isNavigationMenuResolved,
210
204
  isNavigationMenuMissing,
211
205
  navigationMenus,
212
- navigationMenu,
213
206
  canUserUpdateNavigationMenu,
214
207
  hasResolvedCanUserUpdateNavigationMenu,
215
208
  canUserDeleteNavigationMenu,
@@ -536,26 +529,6 @@ function Navigation( {
536
529
  { open: overlayMenuPreview }
537
530
  );
538
531
 
539
- // Prompt the user to publish the menu they have set as a draft
540
- const isDraftNavigationMenu = navigationMenu?.status === 'draft';
541
- useEffect( () => {
542
- hideMenuAutoPublishDraftNotice();
543
- if ( ! isDraftNavigationMenu ) {
544
- return;
545
- }
546
- editEntityRecord(
547
- 'postType',
548
- 'wp_navigation',
549
- navigationMenu?.id,
550
- { status: 'publish' },
551
- { throwOnError: true }
552
- ).catch( () => {
553
- showMenuAutoPublishDraftNotice(
554
- __( 'Error occurred while publishing the navigation menu.' )
555
- );
556
- } );
557
- }, [ isDraftNavigationMenu, navigationMenu ] );
558
-
559
532
  const colorGradientSettings = useMultipleOriginColorsAndGradients();
560
533
  const stylingInspectorControls = (
561
534
  <>
@@ -752,8 +725,6 @@ function Navigation( {
752
725
  <UnsavedInnerBlocks
753
726
  createNavigationMenu={ createNavigationMenu }
754
727
  blocks={ uncontrolledInnerBlocks }
755
- templateLock={ templateLock }
756
- navigationMenus={ navigationMenus }
757
728
  hasSelection={ isSelected || isInnerBlockSelected }
758
729
  />
759
730
  </ResponsiveWrapper>
@@ -2,7 +2,7 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import {
5
- experiments as blockEditorExperiments,
5
+ privateApis as blockEditorPrivateApis,
6
6
  InspectorControls,
7
7
  store as blockEditorStore,
8
8
  } from '@wordpress/block-editor';
@@ -20,7 +20,7 @@ import { __, sprintf } from '@wordpress/i18n';
20
20
  */
21
21
  import NavigationMenuSelector from './navigation-menu-selector';
22
22
  import { LeafMoreMenu } from '../leaf-more-menu';
23
- import { unlock } from '../../experiments';
23
+ import { unlock } from '../../private-apis';
24
24
  import DeletedNavigationWarning from './deleted-navigation-warning';
25
25
  import useNavigationMenu from '../use-navigation-menu';
26
26
 
@@ -34,7 +34,8 @@ const MainContent = ( {
34
34
  isNavigationMenuMissing,
35
35
  onCreateNew,
36
36
  } ) => {
37
- const { OffCanvasEditor } = unlock( blockEditorExperiments );
37
+ const { OffCanvasEditor } = unlock( blockEditorPrivateApis );
38
+
38
39
  // Provide a hierarchy of clientIds for the given Navigation block (clientId).
39
40
  // This is required else the list view will display the entire block tree.
40
41
  const clientIdsTree = useSelect(
@@ -39,7 +39,6 @@ const ALLOWED_BLOCKS = [
39
39
  export default function UnsavedInnerBlocks( {
40
40
  blocks,
41
41
  createNavigationMenu,
42
-
43
42
  hasSelection,
44
43
  } ) {
45
44
  const originalBlocks = useRef();
@@ -91,37 +90,34 @@ export default function UnsavedInnerBlocks( {
91
90
  }
92
91
  );
93
92
 
94
- const { isSaving, draftNavigationMenus, hasResolvedDraftNavigationMenus } =
95
- useSelect(
96
- ( select ) => {
97
- if ( isDisabled ) {
98
- return EMPTY_OBJECT;
99
- }
100
-
101
- const {
102
- getEntityRecords,
103
- hasFinishedResolution,
104
- isSavingEntityRecord,
105
- } = select( coreStore );
106
-
107
- return {
108
- isSaving: isSavingEntityRecord(
109
- 'postType',
110
- 'wp_navigation'
111
- ),
112
- draftNavigationMenus: getEntityRecords(
113
- ...DRAFT_MENU_PARAMS
114
- ),
115
- hasResolvedDraftNavigationMenus: hasFinishedResolution(
116
- 'getEntityRecords',
117
- DRAFT_MENU_PARAMS
118
- ),
119
- };
120
- },
121
- [ isDisabled ]
122
- );
123
-
124
- const { hasResolvedNavigationMenus, navigationMenus } = useNavigationMenu();
93
+ const { isSaving, hasResolvedDraftNavigationMenus } = useSelect(
94
+ ( select ) => {
95
+ if ( isDisabled ) {
96
+ return EMPTY_OBJECT;
97
+ }
98
+
99
+ const {
100
+ getEntityRecords,
101
+ hasFinishedResolution,
102
+ isSavingEntityRecord,
103
+ } = select( coreStore );
104
+
105
+ return {
106
+ isSaving: isSavingEntityRecord( 'postType', 'wp_navigation' ),
107
+ draftNavigationMenus: getEntityRecords(
108
+ // This is needed so that hasResolvedDraftNavigationMenus gives the correct status.
109
+ ...DRAFT_MENU_PARAMS
110
+ ),
111
+ hasResolvedDraftNavigationMenus: hasFinishedResolution(
112
+ 'getEntityRecords',
113
+ DRAFT_MENU_PARAMS
114
+ ),
115
+ };
116
+ },
117
+ [ isDisabled ]
118
+ );
119
+
120
+ const { hasResolvedNavigationMenus } = useNavigationMenu();
125
121
 
126
122
  // Automatically save the uncontrolled blocks.
127
123
  useEffect( () => {
@@ -154,11 +150,8 @@ export default function UnsavedInnerBlocks( {
154
150
  isSaving,
155
151
  hasResolvedDraftNavigationMenus,
156
152
  hasResolvedNavigationMenus,
157
- draftNavigationMenus,
158
- navigationMenus,
153
+ innerBlocksAreDirty,
159
154
  hasSelection,
160
- createNavigationMenu,
161
- blocks,
162
155
  ] );
163
156
 
164
157
  const Wrapper = isSaving ? Disabled : 'div';
@@ -21,7 +21,7 @@ export default function useCreateNavigationMenu( clientId ) {
21
21
  const [ value, setValue ] = useState( null );
22
22
  const [ error, setError ] = useState( null );
23
23
 
24
- const { saveEntityRecord } = useDispatch( coreStore );
24
+ const { saveEntityRecord, editEntityRecord } = useDispatch( coreStore );
25
25
  const generateDefaultTitle = useGenerateDefaultNavigationTitle( clientId );
26
26
 
27
27
  // This callback uses data from the two placeholder steps and only creates
@@ -68,6 +68,18 @@ export default function useCreateNavigationMenu( clientId ) {
68
68
  .then( ( response ) => {
69
69
  setValue( response );
70
70
  setStatus( CREATE_NAVIGATION_MENU_SUCCESS );
71
+
72
+ // Set the status to publish so that the Navigation block
73
+ // shows up in the multi entity save flow.
74
+ if ( postStatus !== 'publish' ) {
75
+ editEntityRecord(
76
+ 'postType',
77
+ 'wp_navigation',
78
+ response.id,
79
+ { status: 'publish' }
80
+ );
81
+ }
82
+
71
83
  return response;
72
84
  } )
73
85
  .catch( ( err ) => {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/experiments';
4
+ import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
5
5
 
6
6
  export const { lock, unlock } =
7
7
  __dangerousOptInToUnstableAPIsOnlyForCoreModules(
package/tsconfig.json CHANGED
@@ -6,6 +6,29 @@
6
6
  "types": [ "gutenberg-env" ],
7
7
  "strictNullChecks": true
8
8
  },
9
- "references": [ { "path": "../element" } ],
9
+ "references": [
10
+ { "path": "../a11y" },
11
+ { "path": "../api-fetch" },
12
+ { "path": "../autop" },
13
+ { "path": "../blob" },
14
+ { "path": "../block-editor" },
15
+ { "path": "../components" },
16
+ { "path": "../compose" },
17
+ { "path": "../core-data" },
18
+ { "path": "../data" },
19
+ { "path": "../date" },
20
+ { "path": "../deprecated" },
21
+ { "path": "../dom" },
22
+ { "path": "../element" },
23
+ { "path": "../escape-html" },
24
+ { "path": "../private-apis" },
25
+ { "path": "../hooks" },
26
+ { "path": "../html-entities" },
27
+ { "path": "../i18n" },
28
+ { "path": "../icons" },
29
+ { "path": "../keycodes" },
30
+ { "path": "../primitives" },
31
+ { "path": "../url" }
32
+ ],
10
33
  "include": [ "src/**/*.ts", "src/**/*.tsx" ]
11
34
  }
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","./src/table-of-contents/utils.ts","../element/node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../element/node_modules/@types/react/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-dom/client.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/table-of-contents/list.tsx","../../typings/gutenberg-env/index.d.ts","../../node_modules/@types/react/global.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"b748401d3c3ec6955b1d189492122c36b69e2127e2fe2ee515591e463af5cc8b",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"6fb72c65c5af8c4ed7d41afecd1ebb463d1e074291ae5e8a187d0922fd40f59b","e47b8ec56eb49bc1c53c9012daa9874de14ad0c5da442485aec333571c74b526",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","83e27bbd7304ea67f9afa1535f1d4fdb15866089f0d893c784cbb5b1c6fb3386","3f92e5a12ec6b30d7de129e9283a6a3e0e7a988457074950ec1e983812c2f2ff","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff","6a32e965fda149787817aefc75730a8d028cac8c8f15af547214e009c2c55172",{"version":"f254c1abf6bb4c92633159831f924588908da902aa5e04ae45c39bd001f62e2e","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"strictNullChecks":true,"target":99},"fileIdsList":[[50],[47,48,49,64],[45,61],[51],[51,52,56,57,58,59,60],[54,55],[50,51],[46,47,48,49]],"referencedMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"exportedModulesMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"semanticDiagnosticsPerFile":[48,55,54,53,49,47,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,62,45,52,61,58,60,56,51,59,57,46,50,63]},"version":"4.4.2"}
1
+ {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","./src/table-of-contents/utils.ts","../element/node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../element/node_modules/@types/react/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-dom/client.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/table-of-contents/list.tsx","../../typings/gutenberg-env/index.d.ts","../../node_modules/@types/react/global.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"b748401d3c3ec6955b1d189492122c36b69e2127e2fe2ee515591e463af5cc8b",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"6fb72c65c5af8c4ed7d41afecd1ebb463d1e074291ae5e8a187d0922fd40f59b","e47b8ec56eb49bc1c53c9012daa9874de14ad0c5da442485aec333571c74b526",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","83e27bbd7304ea67f9afa1535f1d4fdb15866089f0d893c784cbb5b1c6fb3386","3f92e5a12ec6b30d7de129e9283a6a3e0e7a988457074950ec1e983812c2f2ff","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff","6a32e965fda149787817aefc75730a8d028cac8c8f15af547214e009c2c55172",{"version":"7b1b47a00ea238e04189f6a4796282ea252bf4f3afce92cdeaed4fe01c669a40","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"strictNullChecks":true,"target":99},"fileIdsList":[[50],[47,48,49,64],[45,61],[51],[51,52,56,57,58,59,60],[54,55],[50,51],[46,47,48,49]],"referencedMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"exportedModulesMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"semanticDiagnosticsPerFile":[48,55,54,53,49,47,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,62,45,52,61,58,60,56,51,59,57,46,50,63]},"version":"4.4.2"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["@wordpress/block-library/src/experiments.js"],"names":["lock","unlock"],"mappings":";;;;;;;AAGA;;AAHA;AACA;AACA;AAGO,MAAM;AAAEA,EAAAA,IAAF;AAAQC,EAAAA;AAAR,IACZ,mEACC,8GADD,EAEC,0BAFD,CADM","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/experiments';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.',\n\t\t'@wordpress/block-library'\n\t);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["@wordpress/block-library/src/experiments.js"],"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAT,QAAiE,wBAAjE;AAEA,OAAO,MAAM;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,IACZF,gDAAgD,CAC/C,8GAD+C,EAE/C,0BAF+C,CAD1C","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/experiments';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.',\n\t\t'@wordpress/block-library'\n\t);\n"]}