Bump version number of @types/wordpress__blocks (https://github.com/woocommerce/woocommerce-blocks/pull/7674)
* Bump version number of @types/wordpress__blocks * bot: update checkstyle.xml Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
5aae9940cb
commit
94734a968b
|
@ -1361,20 +1361,6 @@
|
||||||
<error line="20" column="3" severity="error" message="Type '{ textAlign: { type: string; }; productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }' is not assignable to type '{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }'.
|
<error line="20" column="3" severity="error" message="Type '{ textAlign: { type: string; }; productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }' is not assignable to type '{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }'.
|
||||||
Object literal may only specify known properties, and 'textAlign' does not exist in type '{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }'." source="TS2322" />
|
Object literal may only specify known properties, and 'textAlign' does not exist in type '{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }'." source="TS2322" />
|
||||||
</file>
|
</file>
|
||||||
<file name="assets/js/atomic/blocks/product-elements/price/index.js">
|
|
||||||
<error line="53" column="1" severity="error" message="No overload matches this call.
|
|
||||||
Overload 1 of 2, '(metadata: BlockConfiguration<{}>, settings?: Partial<BlockConfiguration<{}>> | undefined): Block<{}> | undefined', gave the following error.
|
|
||||||
Argument of type 'string' is not assignable to parameter of type 'BlockConfiguration<{}>'.
|
|
||||||
Type 'string' is not assignable to type 'Pick<Block<{}>, "title" | "category" | "attributes">'.
|
|
||||||
Overload 2 of 2, '(name: string, settings: BlockConfiguration<{}>): Block<{}> | undefined', gave the following error.
|
|
||||||
Argument of type '{ apiVersion: number; title: string; description: string; ancestor: string[]; usesContext: string[]; icon: { src: JSX.Element; }; attributes: { productId: { type: string; default: number; }; isDescendentOfQueryLoop: { ...; }; }; ... 19 more ...; merge?: ((attributes: {}, attributesToMerge: {}) => Partial<...>) | und...' is not assignable to parameter of type 'BlockConfiguration<{}>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
|
||||||
Type '{ apiVersion: number; title: string; description: string; ancestor: string[]; usesContext: string[]; icon: { src: JSX.Element; }; attributes: { productId: { type: string; default: number; }; isDescendentOfQueryLoop: { ...; }; }; ... 19 more ...; merge?: ((attributes: {}, attributesToMerge: {}) => Partial<...>) | und...' is not assignable to type 'Partial<Omit<Block<{}>, "icon">>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
|
||||||
The types of 'supports.color' are incompatible between these types.
|
|
||||||
Type 'Partial<ColorProps> | { text: boolean; background: boolean; link: boolean; __experimentalSkipSerialization: boolean; } | undefined' is not assignable to type 'Partial<ColorProps> | undefined'.
|
|
||||||
Type '{ text: boolean; background: boolean; link: boolean; __experimentalSkipSerialization: boolean; }' is not assignable to type 'Partial<ColorProps>'.
|
|
||||||
Types of property 'text' are incompatible.
|
|
||||||
Type 'boolean' is not assignable to type 'string'." source="TS2769" />
|
|
||||||
</file>
|
|
||||||
<file name="assets/js/atomic/blocks/product-elements/image/edit.js">
|
<file name="assets/js/atomic/blocks/product-elements/image/edit.js">
|
||||||
<error line="14" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToggleGroupControl'." source="TS2305" />
|
<error line="14" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToggleGroupControl'." source="TS2305" />
|
||||||
<error line="16" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToggleGroupControlOption'." source="TS2305" />
|
<error line="16" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToggleGroupControlOption'." source="TS2305" />
|
||||||
|
@ -1399,9 +1385,8 @@
|
||||||
Property 'context' is missing in type 'BlockEditProps<{}> & { children?: ReactNode; }' but required in type '{ attributes: any; setAttributes: any; context: any; }'." source="TS2769" />
|
Property 'context' is missing in type 'BlockEditProps<{}> & { children?: ReactNode; }' but required in type '{ attributes: any; setAttributes: any; context: any; }'." source="TS2769" />
|
||||||
</file>
|
</file>
|
||||||
<file name="assets/js/atomic/blocks/product-elements/rating/index.ts">
|
<file name="assets/js/atomic/blocks/product-elements/rating/index.ts">
|
||||||
<error line="32" column="2" severity="error" message="Type '{ __experimentalSelector?: string; spacing?: { margin: boolean; __experimentalSkipSerialization: boolean; }; color?: { text: boolean; background: boolean; link: boolean; __experimentalSkipSerialization: boolean; }; typography?: { ...; }; }' is not assignable to type 'BlockSupports'.
|
<error line="25" column="2" severity="error" message="Type '{ apiVersion: number; title: string; description: string; usesContext: string[]; ancestor: string[]; icon: { src: JSX.Element; }; attributes: { productId: { type: string; default: number; }; isDescendentOfQueryLoop: { ...; }; }; supports: { ...; }; edit: (props: any) => JSX.Element; }' is not assignable to type 'BlockConfiguration<{}>'.
|
||||||
The types of 'color.text' are incompatible between these types.
|
Object literal may only specify known properties, and 'ancestor' does not exist in type 'BlockConfiguration<{}>'." source="TS2322" />
|
||||||
Type 'boolean' is not assignable to type 'string'." source="TS2322" />
|
|
||||||
</file>
|
</file>
|
||||||
<file name="assets/js/atomic/blocks/product-elements/button/edit.js">
|
<file name="assets/js/atomic/blocks/product-elements/button/edit.js">
|
||||||
<error line="13" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
<error line="13" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
||||||
|
@ -1442,11 +1427,6 @@
|
||||||
Type 'Readonly<{}>' is not assignable to type 'Record<string, unknown> & { className: string; }'.
|
Type 'Readonly<{}>' is not assignable to type 'Record<string, unknown> & { className: string; }'.
|
||||||
Property 'className' is missing in type 'Readonly<{}>' but required in type '{ className: string; }'." source="TS2322" />
|
Property 'className' is missing in type 'Readonly<{}>' but required in type '{ className: string; }'." source="TS2322" />
|
||||||
</file>
|
</file>
|
||||||
<file name="assets/js/atomic/blocks/product-elements/tag-list/index.ts">
|
|
||||||
<error line="28" column="2" severity="error" message="Type '{ color?: { text: boolean; background: boolean; link: boolean; }; typography?: { fontSize: boolean; }; __experimentalSelector?: string; }' is not assignable to type 'BlockSupports'.
|
|
||||||
The types of 'color.text' are incompatible between these types.
|
|
||||||
Type 'boolean' is not assignable to type 'string'." source="TS2322" />
|
|
||||||
</file>
|
|
||||||
<file name="assets/js/atomic/blocks/product-elements/stock-indicator/edit.js">
|
<file name="assets/js/atomic/blocks/product-elements/stock-indicator/edit.js">
|
||||||
<error line="15" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
<error line="15" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
||||||
</file>
|
</file>
|
||||||
|
@ -1541,10 +1521,6 @@
|
||||||
Type 'Element | undefined' is not assignable to type 'Element'.
|
Type 'Element | undefined' is not assignable to type 'Element'.
|
||||||
Type 'undefined' is not assignable to type 'Element'." source="TS2375" />
|
Type 'undefined' is not assignable to type 'Element'." source="TS2375" />
|
||||||
</file>
|
</file>
|
||||||
<file name="assets/js/base/components/cart-checkout/product-details/index.tsx">
|
|
||||||
<error line="36" column="14" severity="error" message="Property 'className' does not exist on type 'ProductResponseItemData'.
|
|
||||||
Property 'className' does not exist on type 'ProductResponseItemBaseData & { key: string; name?: never; }'." source="TS2339" />
|
|
||||||
</file>
|
|
||||||
<file name="assets/js/base/components/cart-checkout/product-summary/index.tsx">
|
<file name="assets/js/base/components/cart-checkout/product-summary/index.tsx">
|
||||||
<error line="32" column="4" severity="error" message="Type '{ className: string | undefined; source: string; maxLength: number; countType: WordCountType; }' is not assignable to type 'SummaryProps' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
<error line="32" column="4" severity="error" message="Type '{ className: string | undefined; source: string; maxLength: number; countType: WordCountType; }' is not assignable to type 'SummaryProps' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
||||||
Types of property 'className' are incompatible.
|
Types of property 'className' are incompatible.
|
||||||
|
@ -3465,12 +3441,6 @@
|
||||||
Types of property 'columns' are incompatible.
|
Types of property 'columns' are incompatible.
|
||||||
Type '{ type: string; default: any; }' is not assignable to type 'BlockAttribute<unknown>'." source="TS2769" />
|
Type '{ type: string; default: any; }' is not assignable to type 'BlockAttribute<unknown>'." source="TS2769" />
|
||||||
</file>
|
</file>
|
||||||
<file name="assets/js/blocks/product-query/constants.ts">
|
|
||||||
<error line="71" column="4" severity="error" message="Type '[string]' is not assignable to type 'InnerBlockTemplate'.
|
|
||||||
Source has 1 element(s) but target requires 3." source="TS2322" />
|
|
||||||
<error line="82" column="2" severity="error" message="Type '[string]' is not assignable to type 'InnerBlockTemplate'." source="TS2322" />
|
|
||||||
<error line="83" column="2" severity="error" message="Type '[string]' is not assignable to type 'InnerBlockTemplate'." source="TS2322" />
|
|
||||||
</file>
|
|
||||||
<file name="assets/js/blocks/product-query/utils.tsx">
|
<file name="assets/js/blocks/product-query/utils.tsx">
|
||||||
<error line="5" column="10" severity="error" message="Module '"@wordpress/blocks"' has no exported member 'store'." source="TS2305" />
|
<error line="5" column="10" severity="error" message="Module '"@wordpress/blocks"' has no exported member 'store'." source="TS2305" />
|
||||||
<error line="74" column="30" severity="error" message="Property 'getActiveBlockVariation' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/selectors")'." source="TS2339" />
|
<error line="74" column="30" severity="error" message="Property 'getActiveBlockVariation' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/selectors")'." source="TS2339" />
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
"@types/react": "17.0.47",
|
"@types/react": "17.0.47",
|
||||||
"@types/react-dom": "17.0.17",
|
"@types/react-dom": "17.0.17",
|
||||||
"@types/wordpress__block-editor": "6.0.6",
|
"@types/wordpress__block-editor": "6.0.6",
|
||||||
"@types/wordpress__blocks": "11.0.5",
|
"@types/wordpress__blocks": "11.0.7",
|
||||||
"@types/wordpress__compose": "4.0.1",
|
"@types/wordpress__compose": "4.0.1",
|
||||||
"@types/wordpress__core-data": "^2.4.5",
|
"@types/wordpress__core-data": "^2.4.5",
|
||||||
"@types/wordpress__data": "^6.0.1",
|
"@types/wordpress__data": "^6.0.1",
|
||||||
|
@ -11137,13 +11137,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/wordpress__blocks": {
|
"node_modules/@types/wordpress__blocks": {
|
||||||
"version": "11.0.5",
|
"version": "11.0.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/wordpress__blocks/-/wordpress__blocks-11.0.7.tgz",
|
||||||
|
"integrity": "sha512-8BcT3CUxHt73CepaLtQHAhA7uBhDOK9x5HJOAxzV+Bl37W04u4jSNulXxwX/6tI7t7Knux5lnN9bvKf/1sg+Rw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/wordpress__components": "*",
|
"@types/wordpress__components": "*",
|
||||||
"@types/wordpress__data": "*",
|
|
||||||
"@wordpress/element": "^4.0.0"
|
"@wordpress/element": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -57445,12 +57445,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/wordpress__blocks": {
|
"@types/wordpress__blocks": {
|
||||||
"version": "11.0.5",
|
"version": "11.0.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/wordpress__blocks/-/wordpress__blocks-11.0.7.tgz",
|
||||||
|
"integrity": "sha512-8BcT3CUxHt73CepaLtQHAhA7uBhDOK9x5HJOAxzV+Bl37W04u4jSNulXxwX/6tI7t7Knux5lnN9bvKf/1sg+Rw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/wordpress__components": "*",
|
"@types/wordpress__components": "*",
|
||||||
"@types/wordpress__data": "*",
|
|
||||||
"@wordpress/element": "^4.0.0"
|
"@wordpress/element": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
"@types/react": "17.0.47",
|
"@types/react": "17.0.47",
|
||||||
"@types/react-dom": "17.0.17",
|
"@types/react-dom": "17.0.17",
|
||||||
"@types/wordpress__block-editor": "6.0.6",
|
"@types/wordpress__block-editor": "6.0.6",
|
||||||
"@types/wordpress__blocks": "11.0.5",
|
"@types/wordpress__blocks": "11.0.7",
|
||||||
"@types/wordpress__compose": "4.0.1",
|
"@types/wordpress__compose": "4.0.1",
|
||||||
"@types/wordpress__core-data": "^2.4.5",
|
"@types/wordpress__core-data": "^2.4.5",
|
||||||
"@types/wordpress__data": "^6.0.1",
|
"@types/wordpress__data": "^6.0.1",
|
||||||
|
|
Loading…
Reference in New Issue