Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit c6c31b3

Browse files
Bump version number of @types/wordpress__blocks (#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>
1 parent 6da4de1 commit c6c31b3

File tree

3 files changed

+10
-39
lines changed

3 files changed

+10
-39
lines changed

checkstyle.xml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,20 +1361,6 @@
13611361
<error line="20" column="3" severity="error" message="Type &apos;{ textAlign: { type: string; }; productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }&apos; is not assignable to type &apos;{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }&apos;.
13621362
Object literal may only specify known properties, and &apos;textAlign&apos; does not exist in type &apos;{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }&apos;." source="TS2322" />
13631363
</file>
1364-
<file name="assets/js/atomic/blocks/product-elements/price/index.js">
1365-
<error line="53" column="1" severity="error" message="No overload matches this call.
1366-
Overload 1 of 2, &apos;(metadata: BlockConfiguration&lt;{}&gt;, settings?: Partial&lt;BlockConfiguration&lt;{}&gt;&gt; | undefined): Block&lt;{}&gt; | undefined&apos;, gave the following error.
1367-
Argument of type &apos;string&apos; is not assignable to parameter of type &apos;BlockConfiguration&lt;{}&gt;&apos;.
1368-
Type &apos;string&apos; is not assignable to type &apos;Pick&lt;Block&lt;{}&gt;, &quot;title&quot; | &quot;category&quot; | &quot;attributes&quot;&gt;&apos;.
1369-
Overload 2 of 2, &apos;(name: string, settings: BlockConfiguration&lt;{}&gt;): Block&lt;{}&gt; | undefined&apos;, gave the following error.
1370-
Argument of type &apos;{ 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: {}) =&gt; Partial&lt;...&gt;) | und...&apos; is not assignable to parameter of type &apos;BlockConfiguration&lt;{}&gt;&apos; with &apos;exactOptionalPropertyTypes: true&apos;. Consider adding &apos;undefined&apos; to the types of the target&apos;s properties.
1371-
Type &apos;{ 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: {}) =&gt; Partial&lt;...&gt;) | und...&apos; is not assignable to type &apos;Partial&lt;Omit&lt;Block&lt;{}&gt;, &quot;icon&quot;&gt;&gt;&apos; with &apos;exactOptionalPropertyTypes: true&apos;. Consider adding &apos;undefined&apos; to the types of the target&apos;s properties.
1372-
The types of &apos;supports.color&apos; are incompatible between these types.
1373-
Type &apos;Partial&lt;ColorProps&gt; | { text: boolean; background: boolean; link: boolean; __experimentalSkipSerialization: boolean; } | undefined&apos; is not assignable to type &apos;Partial&lt;ColorProps&gt; | undefined&apos;.
1374-
Type &apos;{ text: boolean; background: boolean; link: boolean; __experimentalSkipSerialization: boolean; }&apos; is not assignable to type &apos;Partial&lt;ColorProps&gt;&apos;.
1375-
Types of property &apos;text&apos; are incompatible.
1376-
Type &apos;boolean&apos; is not assignable to type &apos;string&apos;." source="TS2769" />
1377-
</file>
13781364
<file name="assets/js/atomic/blocks/product-elements/image/edit.js">
13791365
<error line="14" column="2" severity="error" message="Module &apos;&quot;@wordpress/components&quot;&apos; has no exported member &apos;__experimentalToggleGroupControl&apos;." source="TS2305" />
13801366
<error line="16" column="2" severity="error" message="Module &apos;&quot;@wordpress/components&quot;&apos; has no exported member &apos;__experimentalToggleGroupControlOption&apos;." source="TS2305" />
@@ -1399,9 +1385,8 @@
13991385
Property &apos;context&apos; is missing in type &apos;BlockEditProps&lt;{}&gt; &amp; { children?: ReactNode; }&apos; but required in type &apos;{ attributes: any; setAttributes: any; context: any; }&apos;." source="TS2769" />
14001386
</file>
14011387
<file name="assets/js/atomic/blocks/product-elements/rating/index.ts">
1402-
<error line="32" column="2" severity="error" message="Type &apos;{ __experimentalSelector?: string; spacing?: { margin: boolean; __experimentalSkipSerialization: boolean; }; color?: { text: boolean; background: boolean; link: boolean; __experimentalSkipSerialization: boolean; }; typography?: { ...; }; }&apos; is not assignable to type &apos;BlockSupports&apos;.
1403-
The types of &apos;color.text&apos; are incompatible between these types.
1404-
Type &apos;boolean&apos; is not assignable to type &apos;string&apos;." source="TS2322" />
1388+
<error line="25" column="2" severity="error" message="Type &apos;{ 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) =&gt; JSX.Element; }&apos; is not assignable to type &apos;BlockConfiguration&lt;{}&gt;&apos;.
1389+
Object literal may only specify known properties, and &apos;ancestor&apos; does not exist in type &apos;BlockConfiguration&lt;{}&gt;&apos;." source="TS2322" />
14051390
</file>
14061391
<file name="assets/js/atomic/blocks/product-elements/button/edit.js">
14071392
<error line="13" column="18" severity="error" message="Binding element &apos;attributes&apos; implicitly has an &apos;any&apos; type." source="TS7031" />
@@ -1442,11 +1427,6 @@
14421427
Type &apos;Readonly&lt;{}&gt;&apos; is not assignable to type &apos;Record&lt;string, unknown&gt; &amp; { className: string; }&apos;.
14431428
Property &apos;className&apos; is missing in type &apos;Readonly&lt;{}&gt;&apos; but required in type &apos;{ className: string; }&apos;." source="TS2322" />
14441429
</file>
1445-
<file name="assets/js/atomic/blocks/product-elements/tag-list/index.ts">
1446-
<error line="28" column="2" severity="error" message="Type &apos;{ color?: { text: boolean; background: boolean; link: boolean; }; typography?: { fontSize: boolean; }; __experimentalSelector?: string; }&apos; is not assignable to type &apos;BlockSupports&apos;.
1447-
The types of &apos;color.text&apos; are incompatible between these types.
1448-
Type &apos;boolean&apos; is not assignable to type &apos;string&apos;." source="TS2322" />
1449-
</file>
14501430
<file name="assets/js/atomic/blocks/product-elements/stock-indicator/edit.js">
14511431
<error line="15" column="18" severity="error" message="Binding element &apos;attributes&apos; implicitly has an &apos;any&apos; type." source="TS7031" />
14521432
</file>
@@ -1541,10 +1521,6 @@
15411521
Type &apos;Element | undefined&apos; is not assignable to type &apos;Element&apos;.
15421522
Type &apos;undefined&apos; is not assignable to type &apos;Element&apos;." source="TS2375" />
15431523
</file>
1544-
<file name="assets/js/base/components/cart-checkout/product-details/index.tsx">
1545-
<error line="36" column="14" severity="error" message="Property &apos;className&apos; does not exist on type &apos;ProductResponseItemData&apos;.
1546-
Property &apos;className&apos; does not exist on type &apos;ProductResponseItemBaseData &amp; { key: string; name?: never; }&apos;." source="TS2339" />
1547-
</file>
15481524
<file name="assets/js/base/components/cart-checkout/product-summary/index.tsx">
15491525
<error line="32" column="4" severity="error" message="Type &apos;{ className: string | undefined; source: string; maxLength: number; countType: WordCountType; }&apos; is not assignable to type &apos;SummaryProps&apos; with &apos;exactOptionalPropertyTypes: true&apos;. Consider adding &apos;undefined&apos; to the types of the target&apos;s properties.
15501526
Types of property &apos;className&apos; are incompatible.
@@ -3465,12 +3441,6 @@
34653441
Types of property &apos;columns&apos; are incompatible.
34663442
Type &apos;{ type: string; default: any; }&apos; is not assignable to type &apos;BlockAttribute&lt;unknown&gt;&apos;." source="TS2769" />
34673443
</file>
3468-
<file name="assets/js/blocks/product-query/constants.ts">
3469-
<error line="71" column="4" severity="error" message="Type &apos;[string]&apos; is not assignable to type &apos;InnerBlockTemplate&apos;.
3470-
Source has 1 element(s) but target requires 3." source="TS2322" />
3471-
<error line="82" column="2" severity="error" message="Type &apos;[string]&apos; is not assignable to type &apos;InnerBlockTemplate&apos;." source="TS2322" />
3472-
<error line="83" column="2" severity="error" message="Type &apos;[string]&apos; is not assignable to type &apos;InnerBlockTemplate&apos;." source="TS2322" />
3473-
</file>
34743444
<file name="assets/js/blocks/product-query/utils.tsx">
34753445
<error line="5" column="10" severity="error" message="Module &apos;&quot;@wordpress/blocks&quot;&apos; has no exported member &apos;store&apos;." source="TS2305" />
34763446
<error line="74" column="30" severity="error" message="Property &apos;getActiveBlockVariation&apos; does not exist on type &apos;typeof import(&quot;/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/selectors&quot;)&apos;." source="TS2339" />

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"@types/react": "17.0.47",
122122
"@types/react-dom": "17.0.17",
123123
"@types/wordpress__block-editor": "6.0.6",
124-
"@types/wordpress__blocks": "11.0.5",
124+
"@types/wordpress__blocks": "11.0.7",
125125
"@types/wordpress__compose": "4.0.1",
126126
"@types/wordpress__core-data": "^2.4.5",
127127
"@types/wordpress__data": "^6.0.1",

0 commit comments

Comments
 (0)