From 319a8fcdbf89dd001532c68e7ce7d82a6b69ee0a Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Fri, 10 Apr 2020 18:52:20 +0200 Subject: [PATCH] Primitives: Add types (#21482) --- package-lock.json | 6 + package.json | 1 + .../test/__snapshots__/control.js.snap | 4 +- .../test/__snapshots__/index.js.snap | 4 +- .../test/__snapshots__/index.js.snap | 24 +- .../test/__snapshots__/index.js.snap | 4 +- .../test/__snapshots__/index.js.snap | 4 +- .../enable-custom-fields.js.snap | 8 +- packages/primitives/CHANGELOG.md | 4 + packages/primitives/package.json | 1 + packages/primitives/src/svg/index.js | 69 +- packages/primitives/tsconfig.json | 9 + storybook/test/__snapshots__/index.js.snap | 1916 ++++++++--------- tsconfig.json | 1 + 14 files changed, 1071 insertions(+), 984 deletions(-) create mode 100644 packages/primitives/tsconfig.json diff --git a/package-lock.json b/package-lock.json index ad0c7ad9bbec35..243abb8e3407a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9837,6 +9837,12 @@ "@types/responselike": "*" } }, + "@types/classnames": { + "version": "2.2.10", + "resolved": "https://registry.npmjs.org/@types/classnames/-/classnames-2.2.10.tgz", + "integrity": "sha512-1UzDldn9GfYYEsWWnn/P4wkTlkZDH7lDb0wBMGbtIQc9zXEQq7FlKBdZUn6OBqD8sKZZ2RQO2mAjGpXiDGoRmQ==", + "dev": true + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", diff --git a/package.json b/package.json index c58b999948fa3f..1b389b5c5407d2 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,7 @@ "@storybook/addon-viewport": "5.3.2", "@storybook/react": "5.3.2", "@testing-library/react": "10.0.2", + "@types/classnames": "2.2.10", "@types/lodash": "4.14.149", "@types/prettier": "1.19.0", "@types/qs": "6.9.1", diff --git a/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap b/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap index 0c9032a1c70c99..58b41fe54e38a3 100644 --- a/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap +++ b/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap @@ -53,9 +53,9 @@ exports[`ColorPaletteControl matches the snapshot 1`] = ` type="button" />