Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion routes/connectors-home/default-connectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import {
import { select } from '@wordpress/data';
import { __, sprintf } from '@wordpress/i18n';
import { Badge, Link } from '@wordpress/ui';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import { useConnectorPlugin } from './use-connector-plugin';
import {
OpenAILogo,
Expand Down
1 change: 1 addition & 0 deletions routes/connectors-home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@wordpress/element": "file:../../packages/element",
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/icons": "file:../../packages/icons",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/ui": "file:../../packages/ui",
"@wordpress/url": "file:../../packages/url"
},
Expand Down
2 changes: 1 addition & 1 deletion routes/connectors-home/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { __ } from '@wordpress/i18n';
import { store as coreStore } from '@wordpress/core-data';
// eslint-disable-next-line @wordpress/use-recommended-components
import { Notice } from '@wordpress/ui';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
Expand All @@ -28,7 +29,6 @@ import {
getIsFileModDisabled,
registerDefaultConnectors,
} from './default-connectors';
import { unlock } from '../lock-unlock';

const { store } = unlock( connectorsPrivateApis );

Expand Down
2 changes: 1 addition & 1 deletion routes/guidelines/components/block-guideline-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import {
store as blocksStore,
} from '@wordpress/blocks';
import { store as noticesStore } from '@wordpress/notices';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { saveGuidelines } from '../api';
import { store as coreGuidelinesStore } from '../store';
import { unlock } from '../../lock-unlock';
import './block-guideline-modal.scss';

const { isContentBlock } = unlock( blocksPrivateApis );
Expand Down
1 change: 1 addition & 0 deletions routes/guidelines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@wordpress/element": "file:../../packages/element",
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/icons": "file:../../packages/icons",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/dataviews": "file:../../packages/dataviews",
"@wordpress/notices": "file:../../packages/notices",
"@wordpress/block-library": "file:../../packages/block-library",
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions routes/lock-unlock/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "@wordpress/lock-unlock",
"version": "1.0.0",
"private": true,
"exports": {
".": "./index.ts",
"./package.json": "./package.json"
},
"dependencies": {
"@wordpress/private-apis": "file:../../packages/private-apis"
}
}
2 changes: 1 addition & 1 deletion routes/media-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@wordpress/element": "file:../../packages/element",
"@wordpress/html-entities": "file:../../packages/html-entities",
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/media-editor": "file:../../packages/media-editor",
"@wordpress/private-apis": "file:../../packages/private-apis",
"@wordpress/route": "file:../../packages/route"
}
}
2 changes: 1 addition & 1 deletion routes/media-editor/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import {
type Media,
} from '@wordpress/media-editor';
import { useNavigate, useParams } from '@wordpress/route';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import './style.scss';

const { usePostFields } = unlock( editorPrivateApis );
Expand Down
2 changes: 1 addition & 1 deletion routes/navigation-edit/editor/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import { useDispatch, useSelect } from '@wordpress/data';
import { createBlock } from '@wordpress/blocks';
import { useCallback } from '@wordpress/element';
import { store as coreStore } from '@wordpress/core-data';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';
import LeafMoreMenu from './leaf-more-menu';

type Block = {
Expand Down
1 change: 1 addition & 0 deletions routes/navigation-edit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/icons": "file:../../packages/icons",
"@wordpress/lazy-editor": "file:../../packages/lazy-editor",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/route": "file:../../packages/route"
}
}
1 change: 1 addition & 0 deletions routes/navigation-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@wordpress/html-entities": "file:../../packages/html-entities",
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/icons": "file:../../packages/icons",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/notices": "file:../../packages/notices",
"@wordpress/route": "file:../../packages/route",
"@wordpress/views": "file:../../packages/views"
Expand Down
2 changes: 1 addition & 1 deletion routes/navigation-list/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import { useView } from '@wordpress/views';
import { DataViews } from '@wordpress/dataviews';
import { Button } from '@wordpress/components';
import { privateApis as editorPrivateApis } from '@wordpress/editor';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import { getDefaultView } from './view-utils';
import { useEditNavigationAction } from './actions/edit-navigation';
import { AddNavigationModal } from './add-navigation';
Expand Down
2 changes: 1 addition & 1 deletion routes/pattern-list/fields/sync-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*/
import { __, _x } from '@wordpress/i18n';
import { privateApis as patternPrivateApis } from '@wordpress/patterns';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';
import type { NormalizedPattern } from '../use-patterns';

const { PATTERN_SYNC_TYPES } = unlock( patternPrivateApis );
Expand Down
1 change: 1 addition & 0 deletions routes/pattern-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@wordpress/element": "file:../../packages/element",
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/lazy-editor": "file:../../packages/lazy-editor",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/patterns": "file:../../packages/patterns",
"@wordpress/route": "file:../../packages/route",
"@wordpress/views": "file:../../packages/views"
Expand Down
2 changes: 1 addition & 1 deletion routes/pattern-list/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import { useMemo, useCallback, useState } from '@wordpress/element';
import { privateApis as editorPrivateApis } from '@wordpress/editor';
import { privateApis as patternPrivateApis } from '@wordpress/patterns';
import { __ } from '@wordpress/i18n';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import { DEFAULT_VIEW, DEFAULT_VIEWS, DEFAULT_LAYOUTS } from './view-utils';
import { previewField } from './fields/preview';
import { patternStatusField } from './fields/sync-status';
Expand Down
2 changes: 1 addition & 1 deletion routes/pattern-list/use-patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { store as coreStore } from '@wordpress/core-data';
import { useMemo } from '@wordpress/element';
import { privateApis as patternPrivateApis } from '@wordpress/patterns';
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { filterOutDuplicatesByName } from './utils';
import { unlock } from '../lock-unlock';

const {
PATTERN_TYPES,
Expand Down
2 changes: 1 addition & 1 deletion routes/post-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/icons": "file:../../packages/icons",
"@wordpress/keycodes": "file:../../packages/keycodes",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/route": "file:../../packages/route",
"@wordpress/notices": "file:../../packages/notices",
"@wordpress/private-apis": "file:../../packages/private-apis",
"@wordpress/views": "file:../../packages/views",
"clsx": "^2.1.1",
"dequal": "^2.0.3"
Expand Down
6 changes: 1 addition & 5 deletions routes/post-list/quick-edit-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import {
} from '@wordpress/components';
import { useEffect, useMemo, useState } from '@wordpress/element';
import { privateApis as editorPrivateApis } from '@wordpress/editor';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import { unlock } from '@wordpress/lock-unlock';

const { usePostFields, PostCardPanel } = unlock( editorPrivateApis );

Expand Down
2 changes: 1 addition & 1 deletion routes/post-list/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import { privateApis as editorPrivateApis } from '@wordpress/editor';
import { __ } from '@wordpress/i18n';
import { drawerRight } from '@wordpress/icons';
import type { Post } from '@wordpress/core-data';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import {
getDefaultView,
getActiveViewOverridesForTab,
Expand Down
6 changes: 1 addition & 5 deletions routes/styles/canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { useNavigate, useSearch } from '@wordpress/route';
import { privateApis as editorPrivateApis } from '@wordpress/editor';
import { useEditorAssets } from '@wordpress/lazy-editor';
import { Spinner } from '@wordpress/components';

/**
* Internal dependencies
*/
import { unlock } from '../lock-unlock';
import { unlock } from '@wordpress/lock-unlock';

const { StyleBookPreview } = unlock( editorPrivateApis );

Expand Down
1 change: 1 addition & 0 deletions routes/styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@wordpress/i18n": "file:../../packages/i18n",
"@wordpress/icons": "file:../../packages/icons",
"@wordpress/lazy-editor": "file:../../packages/lazy-editor",
"@wordpress/lock-unlock": "file:../lock-unlock",
"@wordpress/route": "file:../../packages/route",
"@wordpress/url": "file:../../packages/url"
}
Expand Down
2 changes: 1 addition & 1 deletion routes/styles/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { Button, __experimentalHStack as HStack } from '@wordpress/components';
import { seen } from '@wordpress/icons';
import { useState } from '@wordpress/element';
import { useEditorSettings } from '@wordpress/lazy-editor';
import { unlock } from '@wordpress/lock-unlock';

/**
* Internal dependencies
*/
import './style.scss';
import { unlock } from '../lock-unlock';

const { GlobalStylesUIWrapper, GlobalStylesActionMenu } =
unlock( editorPrivateApis );
Expand Down
6 changes: 1 addition & 5 deletions routes/template-list/fields/active.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
*/
import { __, _x } from '@wordpress/i18n';
import { privateApis as componentsPrivateApis } from '@wordpress/components';

/**
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';
import { unlock } from '@wordpress/lock-unlock';

const { Badge: WCBadge } = unlock( componentsPrivateApis );

Expand Down
6 changes: 1 addition & 5 deletions routes/template-list/fields/description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
import { __ } from '@wordpress/i18n';
import { decodeEntities } from '@wordpress/html-entities';
import { privateApis as corePrivateApis } from '@wordpress/core-data';

/**
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';
import { unlock } from '@wordpress/lock-unlock';

const { useEntityRecordsWithPermissions } = unlock( corePrivateApis );

Expand Down
Loading
Loading