Resolved Type Errors
This commit is contained in:
parent
b26488c8bb
commit
6c8207541a
|
@ -118,7 +118,6 @@ export const useUserPreferences = () => {
|
||||||
// Get our dispatch methods now - this can't happen inside the callback below.
|
// Get our dispatch methods now - this can't happen inside the callback below.
|
||||||
const dispatch = useDispatch( STORE_NAME );
|
const dispatch = useDispatch( STORE_NAME );
|
||||||
const { addEntities, receiveCurrentUser, saveEntityRecord } = dispatch;
|
const { addEntities, receiveCurrentUser, saveEntityRecord } = dispatch;
|
||||||
// @ts-expect-error WP 5.3.x doesn't have the User entity defined.
|
|
||||||
let { saveUser } = dispatch;
|
let { saveUser } = dispatch;
|
||||||
|
|
||||||
const userData = useSelect( ( select ) => {
|
const userData = useSelect( ( select ) => {
|
||||||
|
@ -126,11 +125,8 @@ export const useUserPreferences = () => {
|
||||||
getCurrentUser,
|
getCurrentUser,
|
||||||
getEntity,
|
getEntity,
|
||||||
getEntityRecord,
|
getEntityRecord,
|
||||||
// @ts-expect-error type definition is missing.
|
|
||||||
getLastEntitySaveError,
|
getLastEntitySaveError,
|
||||||
// @ts-expect-error type definition is missing.
|
|
||||||
hasStartedResolution,
|
hasStartedResolution,
|
||||||
// @ts-expect-error type definition is missing.
|
|
||||||
hasFinishedResolution,
|
hasFinishedResolution,
|
||||||
} = select( STORE_NAME );
|
} = select( STORE_NAME );
|
||||||
|
|
||||||
|
@ -154,6 +150,7 @@ export const useUserPreferences = () => {
|
||||||
// WP 5.3.x doesn't have the User entity defined.
|
// WP 5.3.x doesn't have the User entity defined.
|
||||||
if ( typeof saveUser !== 'function' ) {
|
if ( typeof saveUser !== 'function' ) {
|
||||||
// Polyfill saveUser() - wrapper of saveEntityRecord.
|
// Polyfill saveUser() - wrapper of saveEntityRecord.
|
||||||
|
// @ts-expect-error No types exist.
|
||||||
saveUser = async ( userToSave: {
|
saveUser = async ( userToSave: {
|
||||||
id: number;
|
id: number;
|
||||||
woocommerce_meta: { [ key: string ]: boolean };
|
woocommerce_meta: { [ key: string ]: boolean };
|
||||||
|
|
|
@ -17,7 +17,6 @@ import { WCUser } from './types';
|
||||||
export const useUser = () => {
|
export const useUser = () => {
|
||||||
const userData = useSelect( ( select ) => {
|
const userData = useSelect( ( select ) => {
|
||||||
// TODO: Update @types/wordpress__core-data to include the 'hasStartedResolution', 'hasFinishedResolution' method.
|
// TODO: Update @types/wordpress__core-data to include the 'hasStartedResolution', 'hasFinishedResolution' method.
|
||||||
// @ts-expect-errors Property 'hasStartedResolution', 'hasFinishedResolution' does not exist on type @types/wordpress__core-data
|
|
||||||
const { getCurrentUser, hasStartedResolution, hasFinishedResolution } =
|
const { getCurrentUser, hasStartedResolution, hasFinishedResolution } =
|
||||||
select( STORE_NAME );
|
select( STORE_NAME );
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ export const withCurrentUserHydration = ( currentUser: WCUser ) =>
|
||||||
if ( ! currentUser ) {
|
if ( ! currentUser ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// @ts-expect-error both functions are not defined in the wp.data typings
|
|
||||||
const { isResolving, hasFinishedResolution } =
|
const { isResolving, hasFinishedResolution } =
|
||||||
select( STORE_NAME );
|
select( STORE_NAME );
|
||||||
return (
|
return (
|
||||||
|
@ -35,9 +34,7 @@ export const withCurrentUserHydration = ( currentUser: WCUser ) =>
|
||||||
} );
|
} );
|
||||||
|
|
||||||
const {
|
const {
|
||||||
// @ts-expect-error startResolution is not defined in the wp.data typings
|
|
||||||
startResolution,
|
startResolution,
|
||||||
// @ts-expect-error finishResolution is not defined in the wp.data typings
|
|
||||||
finishResolution,
|
finishResolution,
|
||||||
receiveCurrentUser,
|
receiveCurrentUser,
|
||||||
} = useDispatch( STORE_NAME );
|
} = useDispatch( STORE_NAME );
|
||||||
|
|
|
@ -106,6 +106,7 @@
|
||||||
"eslint": "^8.55.0",
|
"eslint": "^8.55.0",
|
||||||
"jest": "~27.5.1",
|
"jest": "~27.5.1",
|
||||||
"jest-cli": "~27.5.1",
|
"jest-cli": "~27.5.1",
|
||||||
|
"mini-css-extract-plugin": "^2.7.6",
|
||||||
"postcss": "^8.4.32",
|
"postcss": "^8.4.32",
|
||||||
"postcss-loader": "^4.3.0",
|
"postcss-loader": "^4.3.0",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
|
@ -115,7 +116,9 @@
|
||||||
"ts-jest": "~29.1.1",
|
"ts-jest": "~29.1.1",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"webpack": "^5.89.0",
|
"webpack": "^5.89.0",
|
||||||
"webpack-cli": "^3.3.12"
|
"webpack-cli": "^3.3.12",
|
||||||
|
"webpack-remove-empty-scripts": "^0.7.3",
|
||||||
|
"webpack-rtl-plugin": "^2.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"turbo:build": "pnpm run build:js && pnpm run build:css",
|
"turbo:build": "pnpm run build:js && pnpm run build:css",
|
||||||
|
|
|
@ -39,6 +39,7 @@ export function Edit( {
|
||||||
|
|
||||||
const displayBlocks = useSelect(
|
const displayBlocks = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const product: Product = select( 'core' ).getEditedEntityRecord(
|
const product: Product = select( 'core' ).getEditedEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
postType,
|
postType,
|
||||||
|
|
|
@ -73,6 +73,7 @@ export const CreateTaxonomyModal: React.FC< CreateTaxonomyModalProps > = ( {
|
||||||
setErrorMessage( null );
|
setErrorMessage( null );
|
||||||
setIsCreating( true );
|
setIsCreating( true );
|
||||||
try {
|
try {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const newTaxonomy: Taxonomy = await saveEntityRecord(
|
const newTaxonomy: Taxonomy = await saveEntityRecord(
|
||||||
'taxonomy',
|
'taxonomy',
|
||||||
slug,
|
slug,
|
||||||
|
@ -80,6 +81,7 @@ export const CreateTaxonomyModal: React.FC< CreateTaxonomyModalProps > = ( {
|
||||||
name,
|
name,
|
||||||
parent: parent ? parent.id : null,
|
parent: parent ? parent.id : null,
|
||||||
},
|
},
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
{
|
{
|
||||||
throwOnError: true,
|
throwOnError: true,
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ export function Edit( {
|
||||||
const blockProps = useWooBlockProps( attributes );
|
const blockProps = useWooBlockProps( attributes );
|
||||||
const { hierarchical }: TaxonomyMetadata = useSelect(
|
const { hierarchical }: TaxonomyMetadata = useSelect(
|
||||||
( select ) =>
|
( select ) =>
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
select( 'core' ).getTaxonomy( attributes.slug ) || {
|
select( 'core' ).getTaxonomy( attributes.slug ) || {
|
||||||
hierarchical: false,
|
hierarchical: false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ export function Edit( {
|
||||||
}: ProductEditorBlockEditProps< NameBlockAttributes > ) {
|
}: ProductEditorBlockEditProps< NameBlockAttributes > ) {
|
||||||
const blockProps = useWooBlockProps( attributes );
|
const blockProps = useWooBlockProps( attributes );
|
||||||
|
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { editEntityRecord, saveEntityRecord } = useDispatch( 'core' );
|
const { editEntityRecord, saveEntityRecord } = useDispatch( 'core' );
|
||||||
|
|
||||||
const { hasEdit } = useProductEdits();
|
const { hasEdit } = useProductEdits();
|
||||||
|
@ -56,6 +57,7 @@ export function Edit( {
|
||||||
|
|
||||||
const productId = useEntityId( 'postType', 'product' );
|
const productId = useEntityId( 'postType', 'product' );
|
||||||
const product: Product = useSelect( ( select ) =>
|
const product: Product = useSelect( ( select ) =>
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
select( 'core' ).getEditedEntityRecord(
|
select( 'core' ).getEditedEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
'product',
|
'product',
|
||||||
|
@ -198,6 +200,7 @@ export function Edit( {
|
||||||
onCancel={ () => setShowProductLinkEditModal( false ) }
|
onCancel={ () => setShowProductLinkEditModal( false ) }
|
||||||
onSaved={ () => setShowProductLinkEditModal( false ) }
|
onSaved={ () => setShowProductLinkEditModal( false ) }
|
||||||
saveHandler={ async ( updatedSlug ) => {
|
saveHandler={ async ( updatedSlug ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { slug, permalink }: Product =
|
const { slug, permalink }: Product =
|
||||||
await saveEntityRecord( 'postType', 'product', {
|
await saveEntityRecord( 'postType', 'product', {
|
||||||
id: product.id,
|
id: product.id,
|
||||||
|
|
|
@ -37,6 +37,7 @@ export function Edit( {
|
||||||
isParentResolving,
|
isParentResolving,
|
||||||
}: { parentName: string; isParentResolving: boolean } = useSelect(
|
}: { parentName: string; isParentResolving: boolean } = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { getEditedEntityRecord, hasFinishedResolution } =
|
const { getEditedEntityRecord, hasFinishedResolution } =
|
||||||
select( 'core' );
|
select( 'core' );
|
||||||
const { name }: Product = getEditedEntityRecord(
|
const { name }: Product = getEditedEntityRecord(
|
||||||
|
|
|
@ -26,7 +26,7 @@ export function BlockIcon( { clientId }: BlockIconProps ) {
|
||||||
// Then try to get icon from block's metadata
|
// Then try to get icon from block's metadata
|
||||||
const { getBlockType } = select( 'core/blocks' );
|
const { getBlockType } = select( 'core/blocks' );
|
||||||
const blockName = getBlockName( clientId );
|
const blockName = getBlockName( clientId );
|
||||||
const block = getBlockType< Block >( blockName );
|
const block = getBlockType< Block >( blockName ?? undefined );
|
||||||
return block?.icon;
|
return block?.icon;
|
||||||
},
|
},
|
||||||
[ clientId ]
|
[ clientId ]
|
||||||
|
|
|
@ -46,7 +46,7 @@ export function Header( {
|
||||||
const lastPersistedProduct = useSelect(
|
const lastPersistedProduct = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
const { getEntityRecord } = select( 'core' );
|
const { getEntityRecord } = select( 'core' );
|
||||||
return getEntityRecord< Product | ProductVariation >(
|
return getEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
productType,
|
productType,
|
||||||
productId
|
productId
|
||||||
|
@ -95,7 +95,7 @@ export function Header( {
|
||||||
);
|
);
|
||||||
const url = getNewPath(
|
const url = getNewPath(
|
||||||
{ tab: 'variations' },
|
{ tab: 'variations' },
|
||||||
`/product/${ lastPersistedProduct.parent_id }`
|
`/product/${ lastPersistedProduct?.parent_id }`
|
||||||
);
|
);
|
||||||
navigateTo( { url } );
|
navigateTo( { url } );
|
||||||
} }
|
} }
|
||||||
|
@ -117,13 +117,13 @@ export function Header( {
|
||||||
{ lastPersistedProduct?.name }
|
{ lastPersistedProduct?.name }
|
||||||
</span>
|
</span>
|
||||||
<span className="woocommerce-product-header__variable-product-id">
|
<span className="woocommerce-product-header__variable-product-id">
|
||||||
# { lastPersistedProduct.id }
|
# { lastPersistedProduct?.id }
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
getHeaderTitle(
|
getHeaderTitle(
|
||||||
editedProductName,
|
editedProductName,
|
||||||
lastPersistedProduct.name
|
lastPersistedProduct?.name
|
||||||
)
|
)
|
||||||
) }
|
) }
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -132,18 +132,18 @@ export function Header( {
|
||||||
{ ! isVariation && (
|
{ ! isVariation && (
|
||||||
<SaveDraftButton
|
<SaveDraftButton
|
||||||
productType={ productType }
|
productType={ productType }
|
||||||
productStatus={ lastPersistedProduct.status }
|
productStatus={ lastPersistedProduct?.status }
|
||||||
/>
|
/>
|
||||||
) }
|
) }
|
||||||
|
|
||||||
<PreviewButton
|
<PreviewButton
|
||||||
productType={ productType }
|
productType={ productType }
|
||||||
productStatus={ lastPersistedProduct.status }
|
productStatus={ lastPersistedProduct?.status }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<PublishButton
|
<PublishButton
|
||||||
productType={ productType }
|
productType={ productType }
|
||||||
productStatus={ lastPersistedProduct.status }
|
productStatus={ lastPersistedProduct?.status }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<WooHeaderItem.Slot name="product" />
|
<WooHeaderItem.Slot name="product" />
|
||||||
|
|
|
@ -44,6 +44,7 @@ export function usePreview( {
|
||||||
|
|
||||||
const { hasEdits, isDisabled } = useSelect(
|
const { hasEdits, isDisabled } = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { hasEditsForEntityRecord, isSavingEntityRecord } =
|
const { hasEditsForEntityRecord, isSavingEntityRecord } =
|
||||||
select( 'core' );
|
select( 'core' );
|
||||||
const isSaving = isSavingEntityRecord< boolean >(
|
const isSaving = isSavingEntityRecord< boolean >(
|
||||||
|
@ -68,6 +69,7 @@ export function usePreview( {
|
||||||
|
|
||||||
const ariaDisabled = disabled || isDisabled || isValidating;
|
const ariaDisabled = disabled || isDisabled || isValidating;
|
||||||
|
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { editEntityRecord, saveEditedEntityRecord } = useDispatch( 'core' );
|
const { editEntityRecord, saveEditedEntityRecord } = useDispatch( 'core' );
|
||||||
|
|
||||||
let previewLink: URL | undefined;
|
let previewLink: URL | undefined;
|
||||||
|
|
|
@ -38,8 +38,11 @@ export function usePublish( {
|
||||||
const { isSaving, isDirty } = useSelect(
|
const { isSaving, isDirty } = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
const {
|
const {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
isSavingEntityRecord,
|
isSavingEntityRecord,
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
hasEditsForEntityRecord,
|
hasEditsForEntityRecord,
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
getRawEntityRecord,
|
getRawEntityRecord,
|
||||||
} = select( 'core' );
|
} = select( 'core' );
|
||||||
|
|
||||||
|
@ -70,6 +73,7 @@ export function usePublish( {
|
||||||
const isPublished =
|
const isPublished =
|
||||||
productType === 'product' ? productStatus === 'publish' : true;
|
productType === 'product' ? productStatus === 'publish' : true;
|
||||||
|
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { editEntityRecord, saveEditedEntityRecord } = useDispatch( 'core' );
|
const { editEntityRecord, saveEditedEntityRecord } = useDispatch( 'core' );
|
||||||
|
|
||||||
async function handleClick( event: MouseEvent< HTMLButtonElement > ) {
|
async function handleClick( event: MouseEvent< HTMLButtonElement > ) {
|
||||||
|
|
|
@ -37,6 +37,7 @@ export function useSaveDraft( {
|
||||||
|
|
||||||
const { hasEdits, isDisabled } = useSelect(
|
const { hasEdits, isDisabled } = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { hasEditsForEntityRecord, isSavingEntityRecord } =
|
const { hasEditsForEntityRecord, isSavingEntityRecord } =
|
||||||
select( 'core' );
|
select( 'core' );
|
||||||
const isSaving = isSavingEntityRecord< boolean >(
|
const isSaving = isSavingEntityRecord< boolean >(
|
||||||
|
@ -65,6 +66,7 @@ export function useSaveDraft( {
|
||||||
( productStatus !== 'publish' && ! hasEdits ) ||
|
( productStatus !== 'publish' && ! hasEdits ) ||
|
||||||
isValidating;
|
isValidating;
|
||||||
|
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { editEntityRecord, saveEditedEntityRecord } = useDispatch( 'core' );
|
const { editEntityRecord, saveEditedEntityRecord } = useDispatch( 'core' );
|
||||||
|
|
||||||
async function handleClick( event: MouseEvent< HTMLButtonElement > ) {
|
async function handleClick( event: MouseEvent< HTMLButtonElement > ) {
|
||||||
|
@ -82,6 +84,7 @@ export function useSaveDraft( {
|
||||||
await editEntityRecord( 'postType', productType, productId, {
|
await editEntityRecord( 'postType', productType, productId, {
|
||||||
status: 'draft',
|
status: 'draft',
|
||||||
} );
|
} );
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const publishedProduct = await saveEditedEntityRecord< Product >(
|
const publishedProduct = await saveEditedEntityRecord< Product >(
|
||||||
'postType',
|
'postType',
|
||||||
productType,
|
productType,
|
||||||
|
|
|
@ -37,6 +37,7 @@ export function Tabs( { onChange = () => {} }: TabsProps ) {
|
||||||
'id'
|
'id'
|
||||||
);
|
);
|
||||||
const product: Product = useSelect( ( select ) =>
|
const product: Product = useSelect( ( select ) =>
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
select( 'core' ).getEditedEntityRecord(
|
select( 'core' ).getEditedEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
'product',
|
'product',
|
||||||
|
|
|
@ -48,14 +48,14 @@ export function VariationSwitcherFooter( {
|
||||||
return {
|
return {
|
||||||
previousVariation:
|
previousVariation:
|
||||||
previousVariationId !== null &&
|
previousVariationId !== null &&
|
||||||
getEntityRecord< ProductVariation >(
|
getEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
'product_variation',
|
'product_variation',
|
||||||
previousVariationId
|
previousVariationId
|
||||||
),
|
),
|
||||||
nextVariation:
|
nextVariation:
|
||||||
nextVariationId !== null &&
|
nextVariationId !== null &&
|
||||||
getEntityRecord< ProductVariation >(
|
getEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
'product_variation',
|
'product_variation',
|
||||||
nextVariationId
|
nextVariationId
|
||||||
|
|
|
@ -266,6 +266,7 @@ export function useVariations( { productId }: UseVariationsProps ) {
|
||||||
{ product_id: productId, id: variationId },
|
{ product_id: productId, id: variationId },
|
||||||
variation
|
variation
|
||||||
).then( async ( response: ProductVariation ) => {
|
).then( async ( response: ProductVariation ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
await dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
await dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
||||||
'postType',
|
'postType',
|
||||||
'product_variation',
|
'product_variation',
|
||||||
|
@ -293,12 +294,14 @@ export function useVariations( { productId }: UseVariationsProps ) {
|
||||||
} ).then( async ( response: ProductVariation ) => {
|
} ).then( async ( response: ProductVariation ) => {
|
||||||
onSelect( response )( false );
|
onSelect( response )( false );
|
||||||
|
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
await dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
await dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
||||||
'postType',
|
'postType',
|
||||||
'product',
|
'product',
|
||||||
productId,
|
productId,
|
||||||
] );
|
] );
|
||||||
|
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
await dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
await dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
||||||
'postType',
|
'postType',
|
||||||
'product_variation',
|
'product_variation',
|
||||||
|
@ -317,6 +320,7 @@ export function useVariations( { productId }: UseVariationsProps ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onBatchUpdate( values: Partial< ProductVariation >[] ) {
|
async function onBatchUpdate( values: Partial< ProductVariation >[] ) {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { invalidateResolution: coreInvalidateResolution } =
|
const { invalidateResolution: coreInvalidateResolution } =
|
||||||
dispatch( 'core' );
|
dispatch( 'core' );
|
||||||
|
|
||||||
|
@ -377,6 +381,7 @@ export function useVariations( { productId }: UseVariationsProps ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onBatchDelete( values: Pick< ProductVariation, 'id' >[] ) {
|
async function onBatchDelete( values: Pick< ProductVariation, 'id' >[] ) {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { invalidateResolution: coreInvalidateResolution } =
|
const { invalidateResolution: coreInvalidateResolution } =
|
||||||
dispatch( 'core' );
|
dispatch( 'core' );
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ export function useConfirmUnsavedProductChanges(
|
||||||
const { hasEdits } = useProductEdits( productType );
|
const { hasEdits } = useProductEdits( productType );
|
||||||
const { isSaving } = useSelect(
|
const { isSaving } = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { isSavingEntityRecord } = select( 'core' );
|
const { isSavingEntityRecord } = select( 'core' );
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -30,6 +30,7 @@ export function useProductEdits( productType = <string>'product' ) {
|
||||||
|
|
||||||
const { edits } = useSelect(
|
const { edits } = useSelect(
|
||||||
( select ) => {
|
( select ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { getEntityRecordNonTransientEdits } = select( 'core' );
|
const { getEntityRecordNonTransientEdits } = select( 'core' );
|
||||||
|
|
||||||
const _edits = getEntityRecordNonTransientEdits(
|
const _edits = getEntityRecordNonTransientEdits(
|
||||||
|
|
|
@ -104,6 +104,7 @@ export function useProductVariationsHelper() {
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
variations.map( ( variationId ) =>
|
variations.map( ( variationId ) =>
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
dispatch( 'core' ).invalidateResolution( 'getEntityRecord', [
|
||||||
'postType',
|
'postType',
|
||||||
'product_variation',
|
'product_variation',
|
||||||
|
@ -135,6 +136,7 @@ export function useProductVariationsHelper() {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then( async ( response ) => {
|
.then( async ( response ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
await dispatch( 'core' ).invalidateResolution(
|
await dispatch( 'core' ).invalidateResolution(
|
||||||
'getEntityRecord',
|
'getEntityRecord',
|
||||||
[ 'postType', 'product', productId ]
|
[ 'postType', 'product', productId ]
|
||||||
|
|
|
@ -19,6 +19,7 @@ export function useVariationSwitcher( {
|
||||||
parentId,
|
parentId,
|
||||||
parentProductType,
|
parentProductType,
|
||||||
}: VariationSwitcherProps ) {
|
}: VariationSwitcherProps ) {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const { invalidateResolution } = useDispatch( 'core' );
|
const { invalidateResolution } = useDispatch( 'core' );
|
||||||
const { invalidateResolutionForStoreSelector } = useDispatch(
|
const { invalidateResolutionForStoreSelector } = useDispatch(
|
||||||
EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME
|
EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME
|
||||||
|
@ -29,7 +30,7 @@ export function useVariationSwitcher( {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
const { getEntityRecord } = select( 'core' );
|
const { getEntityRecord } = select( 'core' );
|
||||||
const parentProduct = getEntityRecord< Product >(
|
const parentProduct = getEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
parentProductType || 'product',
|
parentProductType || 'product',
|
||||||
parentId
|
parentId
|
||||||
|
|
|
@ -21,6 +21,7 @@ function useEvaluationContext( context: Record< string, unknown > ) {
|
||||||
const productId = useEntityId( 'postType', postType );
|
const productId = useEntityId( 'postType', postType );
|
||||||
|
|
||||||
const getEvaluationContext = ( select: typeof WPSelect ) => {
|
const getEvaluationContext = ( select: typeof WPSelect ) => {
|
||||||
|
// @ts-expect-error There are no types for this.
|
||||||
const editedProduct = select( 'core' ).getEditedEntityRecord(
|
const editedProduct = select( 'core' ).getEditedEntityRecord(
|
||||||
'postType',
|
'postType',
|
||||||
postType,
|
postType,
|
||||||
|
|
|
@ -165,6 +165,7 @@ export const SaveHub = () => {
|
||||||
resetHighlightedBlockIndex();
|
resetHighlightedBlockIndex();
|
||||||
navigator.goToParent();
|
navigator.goToParent();
|
||||||
} catch ( error ) {
|
} catch ( error ) {
|
||||||
|
// @ts-expect-error The types for this are wrong.
|
||||||
createErrorNotice(
|
createErrorNotice(
|
||||||
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
|
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
|
||||||
);
|
);
|
||||||
|
@ -179,6 +180,7 @@ export const SaveHub = () => {
|
||||||
await save();
|
await save();
|
||||||
sendEvent( 'FINISH_CUSTOMIZATION' );
|
sendEvent( 'FINISH_CUSTOMIZATION' );
|
||||||
} catch ( error ) {
|
} catch ( error ) {
|
||||||
|
// @ts-expect-error The types for this are wrong.
|
||||||
createErrorNotice(
|
createErrorNotice(
|
||||||
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
|
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
|
||||||
);
|
);
|
||||||
|
|
|
@ -130,6 +130,7 @@ const useLogoEdit = ( {
|
||||||
|
|
||||||
const { createErrorNotice } = useDispatch( noticesStore );
|
const { createErrorNotice } = useDispatch( noticesStore );
|
||||||
const onUploadError = ( message: string ) => {
|
const onUploadError = ( message: string ) => {
|
||||||
|
// @ts-expect-error The types for this are wrong.
|
||||||
createErrorNotice( message, { type: 'snackbar' } );
|
createErrorNotice( message, { type: 'snackbar' } );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
101
pnpm-lock.yaml
101
pnpm-lock.yaml
|
@ -2649,6 +2649,9 @@ importers:
|
||||||
jest-cli:
|
jest-cli:
|
||||||
specifier: ~27.5.1
|
specifier: ~27.5.1
|
||||||
version: 27.5.1
|
version: 27.5.1
|
||||||
|
mini-css-extract-plugin:
|
||||||
|
specifier: ^2.7.6
|
||||||
|
version: 2.7.6(webpack@5.89.0)
|
||||||
postcss:
|
postcss:
|
||||||
specifier: ^8.4.32
|
specifier: ^8.4.32
|
||||||
version: 8.4.32
|
version: 8.4.32
|
||||||
|
@ -2679,6 +2682,12 @@ importers:
|
||||||
webpack-cli:
|
webpack-cli:
|
||||||
specifier: ^3.3.12
|
specifier: ^3.3.12
|
||||||
version: 3.3.12(webpack@5.89.0)
|
version: 3.3.12(webpack@5.89.0)
|
||||||
|
webpack-remove-empty-scripts:
|
||||||
|
specifier: ^0.7.3
|
||||||
|
version: 0.7.3(webpack@5.89.0)
|
||||||
|
webpack-rtl-plugin:
|
||||||
|
specifier: ^2.0.0
|
||||||
|
version: 2.0.0
|
||||||
|
|
||||||
packages/js/tracks:
|
packages/js/tracks:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -3357,7 +3366,7 @@ importers:
|
||||||
version: 20.0.3(postcss@8.4.32)(stylelint@14.16.1)
|
version: 20.0.3(postcss@8.4.32)(stylelint@14.16.1)
|
||||||
'@xstate/inspect':
|
'@xstate/inspect':
|
||||||
specifier: 0.8.0
|
specifier: 0.8.0
|
||||||
version: 0.8.0(ws@8.14.2)(xstate@4.37.1)
|
version: 0.8.0(ws@8.15.0)(xstate@4.37.1)
|
||||||
'@xstate/test':
|
'@xstate/test':
|
||||||
specifier: 0.5.1
|
specifier: 0.5.1
|
||||||
version: 0.5.1(xstate@4.37.1)
|
version: 0.5.1(xstate@4.37.1)
|
||||||
|
@ -4833,28 +4842,28 @@ packages:
|
||||||
'@jridgewell/gen-mapping': 0.3.3
|
'@jridgewell/gen-mapping': 0.3.3
|
||||||
'@jridgewell/trace-mapping': 0.3.20
|
'@jridgewell/trace-mapping': 0.3.20
|
||||||
|
|
||||||
/@ariakit/core@0.3.7:
|
/@ariakit/core@0.3.8:
|
||||||
resolution: {integrity: sha512-xp3+vofiIzXAocQIDx6vEQk0u2fgqn474NjM90mNCd9Kz7hi6Ks/VJwOlRaNV1oJyuPJALd6Mc6kUjz/fJRfow==}
|
resolution: {integrity: sha512-LlSCwbyyozMX4ZEobpYGcv1LFqOdBTdTYPZw3lAVgLcFSNivsazi3NkKM9qNWNIu00MS+xTa0+RuIcuWAjlB2Q==}
|
||||||
|
|
||||||
/@ariakit/react-core@0.3.8(react-dom@17.0.2)(react@17.0.2):
|
/@ariakit/react-core@0.3.9(react-dom@17.0.2)(react@17.0.2):
|
||||||
resolution: {integrity: sha512-uWCpUSYvehrY6hiU+wUbtAPmQ21yfEgzaw2THhU9sAIMXFxceV1f2MSbKdeuQ8lgumkNGh14N1r5uR4VbujGPQ==}
|
resolution: {integrity: sha512-K1Rcxr6FpF0n3L7Uvo+e5hm+zqoZmXLRcYF/skI+/j+ole+uNbnsnfGhG1avqJlklqH4bmkFkjZzmMdOnUC0Ig==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: ^17.0.2
|
react: ^17.0.2
|
||||||
react-dom: ^17.0.0 || ^18.0.0
|
react-dom: ^17.0.0 || ^18.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ariakit/core': 0.3.7
|
'@ariakit/core': 0.3.8
|
||||||
'@floating-ui/dom': 1.5.3
|
'@floating-ui/dom': 1.5.3
|
||||||
react: 17.0.2
|
react: 17.0.2
|
||||||
react-dom: 17.0.2(react@17.0.2)
|
react-dom: 17.0.2(react@17.0.2)
|
||||||
use-sync-external-store: 1.2.0(react@17.0.2)
|
use-sync-external-store: 1.2.0(react@17.0.2)
|
||||||
|
|
||||||
/@ariakit/react@0.3.8(react-dom@17.0.2)(react@17.0.2):
|
/@ariakit/react@0.3.9(react-dom@17.0.2)(react@17.0.2):
|
||||||
resolution: {integrity: sha512-3nvjL2RSTiWjFsaTeRm5/RBZjGsMAUMPdxne1LNTFpwVEwbgVUDnoTsf1yQp9TwB1cldHDJiDDSKC4Cvza7YfA==}
|
resolution: {integrity: sha512-gC+gibh2go8wvBqzYXavlHKwAfmee5GUMrPSQ9WBBLIfm9nQElujxcHJydaRx+ULR5FbOnbZVC3vU2ic8hSrNw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: ^17.0.2
|
react: ^17.0.2
|
||||||
react-dom: ^17.0.0 || ^18.0.0
|
react-dom: ^17.0.0 || ^18.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ariakit/react-core': 0.3.8(react-dom@17.0.2)(react@17.0.2)
|
'@ariakit/react-core': 0.3.9(react-dom@17.0.2)(react@17.0.2)
|
||||||
react: 17.0.2
|
react: 17.0.2
|
||||||
react-dom: 17.0.2(react@17.0.2)
|
react-dom: 17.0.2(react@17.0.2)
|
||||||
|
|
||||||
|
@ -15678,7 +15687,7 @@ packages:
|
||||||
util-deprecate: 1.0.2
|
util-deprecate: 1.0.2
|
||||||
watchpack: 2.4.0
|
watchpack: 2.4.0
|
||||||
webpack: 4.47.0(webpack-cli@3.3.12)
|
webpack: 4.47.0(webpack-cli@3.3.12)
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
x-default-browser: 0.4.0
|
x-default-browser: 0.4.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@storybook/mdx2-csf'
|
- '@storybook/mdx2-csf'
|
||||||
|
@ -15755,7 +15764,7 @@ packages:
|
||||||
util-deprecate: 1.0.2
|
util-deprecate: 1.0.2
|
||||||
watchpack: 2.4.0
|
watchpack: 2.4.0
|
||||||
webpack: 4.47.0(webpack-cli@3.3.12)
|
webpack: 4.47.0(webpack-cli@3.3.12)
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
x-default-browser: 0.4.0
|
x-default-browser: 0.4.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@storybook/mdx2-csf'
|
- '@storybook/mdx2-csf'
|
||||||
|
@ -15813,7 +15822,7 @@ packages:
|
||||||
util: 0.12.5
|
util: 0.12.5
|
||||||
util-deprecate: 1.0.2
|
util-deprecate: 1.0.2
|
||||||
watchpack: 2.4.0
|
watchpack: 2.4.0
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- encoding
|
- encoding
|
||||||
|
@ -18599,9 +18608,9 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 17.0.71
|
'@types/react': 17.0.71
|
||||||
'@types/wordpress__blocks': 11.0.7(react-dom@17.0.2)(react@17.0.2)
|
'@types/wordpress__blocks': 11.0.7(react-dom@17.0.2)(react@17.0.2)
|
||||||
'@types/wordpress__components': 19.10.5(react-dom@17.0.2)(react@17.0.2)
|
'@types/wordpress__components': 23.0.10(react-dom@17.0.2)(react@17.0.2)
|
||||||
'@types/wordpress__data': 6.0.2
|
'@types/wordpress__data': 7.0.0(react@17.0.2)
|
||||||
'@types/wordpress__keycodes': 2.3.1
|
'@types/wordpress__keycodes': 2.3.3
|
||||||
'@wordpress/element': 4.4.1
|
'@wordpress/element': 4.4.1
|
||||||
react-autosize-textarea: 7.1.0(react-dom@17.0.2)(react@17.0.2)
|
react-autosize-textarea: 7.1.0(react-dom@17.0.2)(react@17.0.2)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -18637,7 +18646,6 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 17.0.71
|
'@types/react': 17.0.71
|
||||||
'@types/tinycolor2': 1.4.6
|
'@types/tinycolor2': 1.4.6
|
||||||
'@types/wordpress__components': 23.0.10(react-dom@16.14.0)(react@17.0.2)
|
|
||||||
'@types/wordpress__notices': 3.27.6(react@17.0.2)
|
'@types/wordpress__notices': 3.27.6(react@17.0.2)
|
||||||
'@types/wordpress__rich-text': 6.4.5(react@17.0.2)
|
'@types/wordpress__rich-text': 6.4.5(react@17.0.2)
|
||||||
'@wordpress/element': 4.4.1
|
'@wordpress/element': 4.4.1
|
||||||
|
@ -18653,7 +18661,6 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 17.0.71
|
'@types/react': 17.0.71
|
||||||
'@types/tinycolor2': 1.4.6
|
'@types/tinycolor2': 1.4.6
|
||||||
'@types/wordpress__components': 23.0.10(react-dom@17.0.2)(react@17.0.2)
|
|
||||||
'@types/wordpress__notices': 3.27.6(react@17.0.2)
|
'@types/wordpress__notices': 3.27.6(react@17.0.2)
|
||||||
'@types/wordpress__rich-text': 6.4.5(react@17.0.2)
|
'@types/wordpress__rich-text': 6.4.5(react@17.0.2)
|
||||||
'@wordpress/element': 4.4.1
|
'@wordpress/element': 4.4.1
|
||||||
|
@ -18663,21 +18670,6 @@ packages:
|
||||||
- react
|
- react
|
||||||
- react-dom
|
- react-dom
|
||||||
|
|
||||||
/@types/wordpress__components@23.0.10(react-dom@16.14.0)(react@17.0.2):
|
|
||||||
resolution: {integrity: sha512-dI1wP88AkEjhZAdqfz6Pz3lK0EMUEfpXH0omgb6IZ/toz6qpXOG/aemlLskNtPFuNkYYHvD+bwFkLPqKWo9ATA==}
|
|
||||||
dependencies:
|
|
||||||
'@types/react': 17.0.71
|
|
||||||
'@types/tinycolor2': 1.4.6
|
|
||||||
'@types/wordpress__notices': 3.27.6(react@17.0.2)
|
|
||||||
'@types/wordpress__rich-text': 3.4.6
|
|
||||||
'@wordpress/element': 5.22.0
|
|
||||||
downshift: 6.1.12(react@17.0.2)
|
|
||||||
re-resizable: 6.9.11(react-dom@16.14.0)(react@17.0.2)
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- react
|
|
||||||
- react-dom
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@types/wordpress__components@23.0.10(react-dom@17.0.2)(react@17.0.2):
|
/@types/wordpress__components@23.0.10(react-dom@17.0.2)(react@17.0.2):
|
||||||
resolution: {integrity: sha512-dI1wP88AkEjhZAdqfz6Pz3lK0EMUEfpXH0omgb6IZ/toz6qpXOG/aemlLskNtPFuNkYYHvD+bwFkLPqKWo9ATA==}
|
resolution: {integrity: sha512-dI1wP88AkEjhZAdqfz6Pz3lK0EMUEfpXH0omgb6IZ/toz6qpXOG/aemlLskNtPFuNkYYHvD+bwFkLPqKWo9ATA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -18731,6 +18723,15 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 17.0.71
|
'@types/react': 17.0.71
|
||||||
redux: 4.2.1
|
redux: 4.2.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@types/wordpress__data@7.0.0(react@17.0.2):
|
||||||
|
resolution: {integrity: sha512-d3IBynESbBBEFNl9xwlbZvNB1uy1+yw17YpFGAnfp6vk78e28fD6wnlIVyfWN8xsDcAVPakTmcRvJ57ycoubAQ==}
|
||||||
|
deprecated: This is a stub types definition. @wordpress/data provides its own type definitions, so you do not need this installed.
|
||||||
|
dependencies:
|
||||||
|
'@wordpress/data': 6.6.1(react@17.0.2)
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- react
|
||||||
|
|
||||||
/@types/wordpress__date@3.3.2:
|
/@types/wordpress__date@3.3.2:
|
||||||
resolution: {integrity: sha512-8ZW580Rn/NMVNC0uTHaPyWEMgtvymBDXybiJY6mufX5PdWGn4TGMik9ev3+nvwSXlOlz4Wsug/6jUwLfGJJH0w==}
|
resolution: {integrity: sha512-8ZW580Rn/NMVNC0uTHaPyWEMgtvymBDXybiJY6mufX5PdWGn4TGMik9ev3+nvwSXlOlz4Wsug/6jUwLfGJJH0w==}
|
||||||
|
@ -18792,10 +18793,10 @@ packages:
|
||||||
|
|
||||||
/@types/wordpress__keycodes@2.3.1:
|
/@types/wordpress__keycodes@2.3.1:
|
||||||
resolution: {integrity: sha512-CUZv3WdPvWqnEwojbc4yEttwZlvsMGI8YurgB9CHVJXx6nQ4U2RU6PB0Mv7nxATufduFDMKq8TNpCHBenZqEjQ==}
|
resolution: {integrity: sha512-CUZv3WdPvWqnEwojbc4yEttwZlvsMGI8YurgB9CHVJXx6nQ4U2RU6PB0Mv7nxATufduFDMKq8TNpCHBenZqEjQ==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@types/wordpress__keycodes@2.3.3:
|
/@types/wordpress__keycodes@2.3.3:
|
||||||
resolution: {integrity: sha512-jOI0L5NbLc0Ht/vkbZwgBfgWZbPKexXS+nxlYZ0kHQCjVCM7tdSwptItksCY3Qc9IV2nRc1pTnj/UJC2E2cUQw==}
|
resolution: {integrity: sha512-jOI0L5NbLc0Ht/vkbZwgBfgWZbPKexXS+nxlYZ0kHQCjVCM7tdSwptItksCY3Qc9IV2nRc1pTnj/UJC2E2cUQw==}
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@types/wordpress__media-utils@3.0.0(react-dom@17.0.2)(react@17.0.2):
|
/@types/wordpress__media-utils@3.0.0(react-dom@17.0.2)(react@17.0.2):
|
||||||
resolution: {integrity: sha512-iNQoyc9BD8HevjABZPh4L2bKEy/UYMb8+iswjn8AgUYjBpu8Y1x+9f+Zc6JRu/HEsFyEprY5LjSOxRLjti1gRQ==}
|
resolution: {integrity: sha512-iNQoyc9BD8HevjABZPh4L2bKEy/UYMb8+iswjn8AgUYjBpu8Y1x+9f+Zc6JRu/HEsFyEprY5LjSOxRLjti1gRQ==}
|
||||||
|
@ -21254,7 +21255,7 @@ packages:
|
||||||
react: ^17.0.2
|
react: ^17.0.2
|
||||||
react-dom: ^18.0.0
|
react-dom: ^18.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ariakit/react': 0.3.8(react-dom@17.0.2)(react@17.0.2)
|
'@ariakit/react': 0.3.9(react-dom@17.0.2)(react@17.0.2)
|
||||||
'@babel/runtime': 7.23.5
|
'@babel/runtime': 7.23.5
|
||||||
'@emotion/cache': 11.11.0
|
'@emotion/cache': 11.11.0
|
||||||
'@emotion/css': 11.11.2
|
'@emotion/css': 11.11.2
|
||||||
|
@ -24693,7 +24694,7 @@ packages:
|
||||||
xstate: 4.37.1
|
xstate: 4.37.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@xstate/inspect@0.8.0(ws@8.14.2)(xstate@4.37.1):
|
/@xstate/inspect@0.8.0(ws@8.15.0)(xstate@4.37.1):
|
||||||
resolution: {integrity: sha512-wSkFeOnp+7dhn+zTThO0M4D2FEqZN9lGIWowJu5JLa2ojjtlzRwK8SkjcHZ4rLX8VnMev7kGjgQLrGs8kxy+hw==}
|
resolution: {integrity: sha512-wSkFeOnp+7dhn+zTThO0M4D2FEqZN9lGIWowJu5JLa2ojjtlzRwK8SkjcHZ4rLX8VnMev7kGjgQLrGs8kxy+hw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@types/ws': ^8.0.0
|
'@types/ws': ^8.0.0
|
||||||
|
@ -24704,7 +24705,7 @@ packages:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-safe-stringify: 2.1.1
|
fast-safe-stringify: 2.1.1
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
xstate: 4.37.1
|
xstate: 4.37.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -25164,7 +25165,6 @@ packages:
|
||||||
/ansis@1.5.6:
|
/ansis@1.5.6:
|
||||||
resolution: {integrity: sha512-vKn0k5V0oiaOClcUMNDFb7DvI3+asAozhg1wI8bLkYxV0lhfPtIuwjUa1wG9/YaUY/KwO9U2B7m0FMqzn/jXUQ==}
|
resolution: {integrity: sha512-vKn0k5V0oiaOClcUMNDFb7DvI3+asAozhg1wI8bLkYxV0lhfPtIuwjUa1wG9/YaUY/KwO9U2B7m0FMqzn/jXUQ==}
|
||||||
engines: {node: '>=12.13'}
|
engines: {node: '>=12.13'}
|
||||||
dev: false
|
|
||||||
|
|
||||||
/anymatch@2.0.0:
|
/anymatch@2.0.0:
|
||||||
resolution: {integrity: sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==}
|
resolution: {integrity: sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==}
|
||||||
|
@ -39124,7 +39124,7 @@ packages:
|
||||||
whatwg-encoding: 2.0.0
|
whatwg-encoding: 2.0.0
|
||||||
whatwg-mimetype: 3.0.0
|
whatwg-mimetype: 3.0.0
|
||||||
whatwg-url: 11.0.0
|
whatwg-url: 11.0.0
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
xml-name-validator: 4.0.0
|
xml-name-validator: 4.0.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
|
@ -43619,7 +43619,7 @@ packages:
|
||||||
postcss: 8.4.32
|
postcss: 8.4.32
|
||||||
schema-utils: 3.3.0
|
schema-utils: 3.3.0
|
||||||
semver: 7.5.4
|
semver: 7.5.4
|
||||||
webpack: 5.89.0(webpack-cli@3.3.12)
|
webpack: 5.89.0(webpack-cli@5.1.4)
|
||||||
|
|
||||||
/postcss-loader@6.2.1(postcss@8.4.31)(webpack@5.88.2):
|
/postcss-loader@6.2.1(postcss@8.4.31)(webpack@5.88.2):
|
||||||
resolution: {integrity: sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==}
|
resolution: {integrity: sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==}
|
||||||
|
@ -47660,7 +47660,7 @@ packages:
|
||||||
sass: 1.69.5
|
sass: 1.69.5
|
||||||
schema-utils: 3.3.0
|
schema-utils: 3.3.0
|
||||||
semver: 7.5.4
|
semver: 7.5.4
|
||||||
webpack: 5.89.0(webpack-cli@3.3.12)
|
webpack: 5.89.0(webpack-cli@5.1.4)
|
||||||
|
|
||||||
/sass-loader@12.6.0(sass@1.69.5)(webpack@5.88.2):
|
/sass-loader@12.6.0(sass@1.69.5)(webpack@5.88.2):
|
||||||
resolution: {integrity: sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==}
|
resolution: {integrity: sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==}
|
||||||
|
@ -52293,7 +52293,7 @@ packages:
|
||||||
webpack: 5.89.0(webpack-cli@4.10.0)
|
webpack: 5.89.0(webpack-cli@4.10.0)
|
||||||
webpack-cli: 4.10.0(webpack-bundle-analyzer@3.9.0)(webpack-dev-server@4.15.1)(webpack@5.89.0)
|
webpack-cli: 4.10.0(webpack-bundle-analyzer@3.9.0)(webpack-dev-server@4.15.1)(webpack@5.89.0)
|
||||||
webpack-dev-middleware: 5.3.3(webpack@5.89.0)
|
webpack-dev-middleware: 5.3.3(webpack@5.89.0)
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- debug
|
- debug
|
||||||
|
@ -52344,7 +52344,7 @@ packages:
|
||||||
webpack: 5.88.2(@swc/core@1.3.100)(esbuild@0.18.20)(webpack-cli@4.10.0)
|
webpack: 5.88.2(@swc/core@1.3.100)(esbuild@0.18.20)(webpack-cli@4.10.0)
|
||||||
webpack-cli: 4.10.0(webpack-bundle-analyzer@4.7.0)(webpack-dev-server@4.15.1)(webpack@5.88.2)
|
webpack-cli: 4.10.0(webpack-bundle-analyzer@4.7.0)(webpack-dev-server@4.15.1)(webpack@5.88.2)
|
||||||
webpack-dev-middleware: 5.3.3(webpack@5.88.2)
|
webpack-dev-middleware: 5.3.3(webpack@5.88.2)
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- debug
|
- debug
|
||||||
|
@ -52396,7 +52396,7 @@ packages:
|
||||||
webpack: 5.89.0(webpack-cli@5.1.4)
|
webpack: 5.89.0(webpack-cli@5.1.4)
|
||||||
webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.1)(webpack-dev-server@4.15.1)(webpack@5.89.0)
|
webpack-cli: 5.1.4(webpack-bundle-analyzer@4.10.1)(webpack-dev-server@4.15.1)(webpack@5.89.0)
|
||||||
webpack-dev-middleware: 5.3.3(webpack@5.89.0)
|
webpack-dev-middleware: 5.3.3(webpack@5.89.0)
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- debug
|
- debug
|
||||||
|
@ -52473,7 +52473,6 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
ansis: 1.5.6
|
ansis: 1.5.6
|
||||||
webpack: 5.89.0(webpack-cli@5.1.4)
|
webpack: 5.89.0(webpack-cli@5.1.4)
|
||||||
dev: false
|
|
||||||
|
|
||||||
/webpack-rtl-plugin@2.0.0:
|
/webpack-rtl-plugin@2.0.0:
|
||||||
resolution: {integrity: sha512-lROgFkiPjapg9tcZ8FiLWeP5pJoG00018aEjLTxSrVldPD1ON+LPlhKPHjb7eE8Bc0+KL23pxcAjWDGOv9+UAw==}
|
resolution: {integrity: sha512-lROgFkiPjapg9tcZ8FiLWeP5pJoG00018aEjLTxSrVldPD1ON+LPlhKPHjb7eE8Bc0+KL23pxcAjWDGOv9+UAw==}
|
||||||
|
@ -53332,6 +53331,18 @@ packages:
|
||||||
utf-8-validate:
|
utf-8-validate:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/ws@8.15.0:
|
||||||
|
resolution: {integrity: sha512-H/Z3H55mrcrgjFwI+5jKavgXvwQLtfPCUEp6pi35VhoB0pfcHnSoyuTzkBEZpzq49g1193CUEwIvmsjcotenYw==}
|
||||||
|
engines: {node: '>=10.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
bufferutil: ^4.0.1
|
||||||
|
utf-8-validate: '>=5.0.2'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
bufferutil:
|
||||||
|
optional: true
|
||||||
|
utf-8-validate:
|
||||||
|
optional: true
|
||||||
|
|
||||||
/ws@8.5.0:
|
/ws@8.5.0:
|
||||||
resolution: {integrity: sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==}
|
resolution: {integrity: sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==}
|
||||||
engines: {node: '>=10.0.0'}
|
engines: {node: '>=10.0.0'}
|
||||||
|
@ -53455,7 +53466,7 @@ packages:
|
||||||
y-protocols: 1.0.6(yjs@13.6.10)
|
y-protocols: 1.0.6(yjs@13.6.10)
|
||||||
yjs: 13.6.10
|
yjs: 13.6.10
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
ws: 8.14.2
|
ws: 8.15.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
Loading…
Reference in New Issue