Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Install missing deps with types (#647)

Bogdan Chadkinff7c1c923e44
diff --git a/apps/designer/package.json b/apps/designer/package.json
index 077fcabb9e..49b90ff4e9 100644
--- a/apps/designer/package.json
+++ b/apps/designer/package.json
@@ -29,6 +29,7 @@
"@remix-run/serve": "^1.6.4",
"@remix-run/vercel": "^1.6.4",
"@sentry/remix": "^7.5.0",
+ "@sentry/types": "7.5.0",
"@vercel/node": "^2.4.1",
"@webstudio-is/asset-uploader": "*",
"@webstudio-is/css-data": "*",
@@ -103,6 +104,7 @@
"@types/css-tree": "^2.0.0",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/hyphenate-style-name": "^1.0.0",
+ "@types/lodash": "4.14.182",
"@types/lodash.capitalize": "^4.2.6",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.memoize": "^4.1.6",
@@ -113,6 +115,7 @@
"@types/react-color": "^3.0.6",
"@types/react-dom": "^17.0.9",
"@types/sharp": "^0.30.4",
+ "@types/uuid": "^8.3.4",
"@types/w3c-css-typed-object-model-level-1": "^20180410.0.4",
"@webstudio-is/eslint-config-custom": "*",
"@webstudio-is/jest-config": "*",
diff --git a/package.json b/package.json
index 7287345cad..630ab4dc37 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"@changesets/get-dependents-graph": "^1.3.4",
"@manypkg/get-packages": "^1.1.3",
"@storybook/react": "^6.5.9",
+ "@types/css-tree": "^2.0.0",
"@webstudio-is/eslint-config-custom": "*",
"chromatic": "^6.11.4",
"golden-fleece": "^1.0.9",
diff --git a/packages/css-engine/package.json b/packages/css-engine/package.json
index bb9e368802..fcb8b80f9e 100644
--- a/packages/css-engine/package.json
+++ b/packages/css-engine/package.json
@@ -33,6 +33,7 @@
"@storybook/manager-webpack4": "^6.5.6",
"@storybook/react": "^6.5.6",
"@storybook/testing-library": "^0.0.13",
+ "@types/hyphenate-style-name": "^1.0.0",
"@types/react": "^17.0.24",
"@types/react-dom": "^17.0.9",
"@webstudio-is/css-data": "*",
diff --git a/packages/design-system/package.json b/packages/design-system/package.json
index 3ea58cf73c..31796a04e8 100644
--- a/packages/design-system/package.json
+++ b/packages/design-system/package.json
@@ -27,6 +27,11 @@
"@storybook/manager-webpack4": "^6.5.6",
"@storybook/react": "^6.5.6",
"@storybook/testing-library": "^0.0.13",
+ "@testing-library/react-hooks": "^8.0.1",
+ "@types/lodash.merge": "^4.6.6",
+ "@types/react": "^17.0.24",
+ "@types/react-dom": "^17.0.9",
+ "@types/testing-library__jest-dom": "5.14.5",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
"@webstudio-is/tsconfig": "*",
@@ -71,9 +76,10 @@
"@react-aria/interactions": "^3.11.0",
"@react-aria/utils": "^3.13.3",
"@stitches/react": "^1.2.8",
- "@webstudio-is/icons": "*",
"@webstudio-is/css-vars": "*",
+ "@webstudio-is/icons": "*",
"downshift": "^6.1.7",
+ "immer": "^9.0.12",
"lodash.merge": "^4.6.2",
"match-sorter": "^6.3.1",
"react-hot-toast": "^2.3.0"
diff --git a/packages/design-tokens/package.json b/packages/design-tokens/package.json
index b885a5ec59..2a0aa3ea0a 100644
--- a/packages/design-tokens/package.json
+++ b/packages/design-tokens/package.json
@@ -20,6 +20,7 @@
"zod": "^3.19.1"
},
"devDependencies": {
+ "@types/node": "^17.0.21",
"@webstudio-is/scripts": "*",
"@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
diff --git a/packages/icons/package.json b/packages/icons/package.json
index 3818500db2..300dac06fa 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -27,6 +27,7 @@
"@storybook/react": "^6.5.6",
"@storybook/testing-library": "^0.0.13",
"@svgo/jsx": "^0.4.2",
+ "@types/react": "^17.0.24",
"@webstudio-is/scripts": "*",
"@webstudio-is/tsconfig": "*",
"tsx": "^3.9.0",
diff --git a/packages/image/package.json b/packages/image/package.json
index 310b6bd3a3..dae707a546 100644
--- a/packages/image/package.json
+++ b/packages/image/package.json
@@ -33,6 +33,7 @@
"@storybook/manager-webpack4": "^6.5.6",
"@storybook/react": "^6.5.6",
"@storybook/testing-library": "^0.0.13",
+ "@types/react": "^17.0.24",
"@webstudio-is/generate-arg-types": "*",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.json
index 794993a0a0..d3656f25a9 100644
--- a/packages/prisma-client/package.json
+++ b/packages/prisma-client/package.json
@@ -17,6 +17,7 @@
"migrations": "./migrations-cli/cli.ts"
},
"devDependencies": {
+ "@types/node": "^17.0.21",
"@types/uuid": "^8.3.4",
"@webstudio-is/scripts": "*",
"@webstudio-is/tsconfig": "*",
diff --git a/packages/project/package.json b/packages/project/package.json
index aa93facc71..6da2dcab5c 100644
--- a/packages/project/package.json
+++ b/packages/project/package.json
@@ -15,11 +15,12 @@
"publish-to-npm": "bash ../../bin/publish-to-npm.sh"
},
"dependencies": {
- "@webstudio-is/design-tokens": "*",
- "@webstudio-is/fonts": "*",
- "@webstudio-is/css-engine": "*",
+ "@prisma/client": "^4.3.1",
"@webstudio-is/asset-uploader": "*",
"@webstudio-is/css-data": "*",
+ "@webstudio-is/css-engine": "*",
+ "@webstudio-is/design-tokens": "*",
+ "@webstudio-is/fonts": "*",
"@webstudio-is/prisma-client": "*",
"@webstudio-is/react-sdk": "*",
"bson-objectid": "^2.0.2",
@@ -32,8 +33,12 @@
"zod": "^3.19.1"
},
"devDependencies": {
+ "@jest/globals": "^29.3.1",
+ "@types/uuid": "^8.3.4",
+ "@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
"@webstudio-is/tsconfig": "*",
+ "jest": "^29.3.1",
"typescript": "4.7.4"
},
"exports": {
diff --git a/packages/project/src/shared/breakpoints/sort.test.ts b/packages/project/src/shared/breakpoints/sort.test.ts
index 5140abd247..7cf47f39a2 100644
--- a/packages/project/src/shared/breakpoints/sort.test.ts
+++ b/packages/project/src/shared/breakpoints/sort.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import {
initialBreakpoints,
type BaseBreakpoint,
diff --git a/packages/project/src/shared/pages/find-by-id-or-path.test.ts b/packages/project/src/shared/pages/find-by-id-or-path.test.ts
index 4cd14164c0..37dd0a60e8 100644
--- a/packages/project/src/shared/pages/find-by-id-or-path.test.ts
+++ b/packages/project/src/shared/pages/find-by-id-or-path.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { findByIdOrPath } from "./find-by-id-or-path";
const pages = {
diff --git a/packages/project/src/shared/tree-utils/clone-instance.test.ts b/packages/project/src/shared/tree-utils/clone-instance.test.ts
index fca10ad496..e15fd68256 100644
--- a/packages/project/src/shared/tree-utils/clone-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/clone-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { cloneInstance } from "./clone-instance";
diff --git a/packages/project/src/shared/tree-utils/create-instance.test.ts b/packages/project/src/shared/tree-utils/create-instance.test.ts
index 2da713f8d6..69db50080f 100644
--- a/packages/project/src/shared/tree-utils/create-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/create-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { createInstance } from "./create-instance";
describe("create instance", () => {
diff --git a/packages/project/src/shared/tree-utils/delete-instance.test.ts b/packages/project/src/shared/tree-utils/delete-instance.test.ts
index 4091ffdf11..1f8a49bb63 100644
--- a/packages/project/src/shared/tree-utils/delete-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/delete-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { deleteInstanceMutable } from "./delete-instance";
diff --git a/packages/project/src/shared/tree-utils/find-closest-non-inline-parent.test.ts b/packages/project/src/shared/tree-utils/find-closest-non-inline-parent.test.ts
index 273abe8345..00740aa831 100644
--- a/packages/project/src/shared/tree-utils/find-closest-non-inline-parent.test.ts
+++ b/packages/project/src/shared/tree-utils/find-closest-non-inline-parent.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { createInstance } from "./create-instance";
import { findClosestNonInlineParent } from "./find-closest-non-inline-parent";
diff --git a/packages/project/src/shared/tree-utils/find-closest-sibling-instance.test.ts b/packages/project/src/shared/tree-utils/find-closest-sibling-instance.test.ts
index c40bd0bb9c..4a1249dc6b 100644
--- a/packages/project/src/shared/tree-utils/find-closest-sibling-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/find-closest-sibling-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { findClosestSiblingInstance } from "./find-closest-sibling-instance";
diff --git a/packages/project/src/shared/tree-utils/find-parent-instance.test.ts b/packages/project/src/shared/tree-utils/find-parent-instance.test.ts
index af14509cff..5be56cbdbe 100644
--- a/packages/project/src/shared/tree-utils/find-parent-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/find-parent-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { findParentInstance } from "./find-parent-instance";
diff --git a/packages/project/src/shared/tree-utils/get-css-rules.test.ts b/packages/project/src/shared/tree-utils/get-css-rules.test.ts
index a264d2c349..561cb6f5c1 100644
--- a/packages/project/src/shared/tree-utils/get-css-rules.test.ts
+++ b/packages/project/src/shared/tree-utils/get-css-rules.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { getCssRules } from "./get-css-rules";
diff --git a/packages/project/src/shared/tree-utils/get-instance-path.test.ts b/packages/project/src/shared/tree-utils/get-instance-path.test.ts
index c69fef0010..d0f505b7ff 100644
--- a/packages/project/src/shared/tree-utils/get-instance-path.test.ts
+++ b/packages/project/src/shared/tree-utils/get-instance-path.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import {
getInstancePath,
diff --git a/packages/project/src/shared/tree-utils/insert-instance.test.ts b/packages/project/src/shared/tree-utils/insert-instance.test.ts
index 4562b883a8..1d52e7bc4b 100644
--- a/packages/project/src/shared/tree-utils/insert-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/insert-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { insertInstanceMutable } from "./insert-instance";
import { createInstance } from "./create-instance";
diff --git a/packages/project/src/shared/tree-utils/reparent-instance.test.ts b/packages/project/src/shared/tree-utils/reparent-instance.test.ts
index b5ad253864..dd54115b7f 100644
--- a/packages/project/src/shared/tree-utils/reparent-instance.test.ts
+++ b/packages/project/src/shared/tree-utils/reparent-instance.test.ts
@@ -1,3 +1,4 @@
+import { describe, test, expect } from "@jest/globals";
import { type Instance } from "@webstudio-is/react-sdk";
import { reparentInstanceMutable } from "./reparent-instance";
diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json
index 40eee11f9d..9a5efa7a90 100644
--- a/packages/react-sdk/package.json
+++ b/packages/react-sdk/package.json
@@ -22,6 +22,7 @@
"@babel/core": "^7.20.2",
"@esbuild-kit/esm-loader": "^2.4.2",
"@jest/globals": "^29.3.1",
+ "@remix-run/node": "^1.6.4",
"@remix-run/react": "^1.2.3",
"@remix-run/server-runtime": "^1.2.3",
"@storybook/addon-actions": "^6.5.6",
@@ -33,6 +34,8 @@
"@storybook/react": "^6.5.6",
"@storybook/testing-library": "^0.0.11",
"@types/node": "^17.0.21",
+ "@types/react": "^17.0.24",
+ "@types/react-dom": "^17.0.9",
"@webstudio-is/generate-arg-types": "*",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
diff --git a/packages/scripts/package.json b/packages/scripts/package.json
index 07ca6ef383..7fde27d167 100644
--- a/packages/scripts/package.json
+++ b/packages/scripts/package.json
@@ -19,6 +19,7 @@
"tsx": "^3.12.1"
},
"devDependencies": {
+ "@types/node": "^17.0.21",
"@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
}
diff --git a/yarn.lock b/yarn.lock
index 5c2adc93b4..1d55be14de 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5423,7 +5423,7 @@
dependencies:
"@types/lodash" "*"
-"@types/lodash@*", "@types/lodash@^4.14.167":
+"@types/lodash@*", "@types/[email protected]", "@types/lodash@^4.14.167":
version "4.14.182"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
@@ -5600,7 +5600,7 @@
resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.8.tgz#b94a4391c85666c7b73299fd3ad79d4faa435310"
integrity sha512-ipixuVrh2OdNmauvtT51o3d8z12p6LtFW9in7U79der/kwejjdNchQC5UMn5u/KxNoM7VHHOs/l8KS8uHxhODQ==
-"@types/testing-library__jest-dom@^5.9.1":
+"@types/[email protected]", "@types/testing-library__jest-dom@^5.9.1":
version "5.14.5"
resolved "https://registry.yarnpkg.com/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.5.tgz#d113709c90b3c75fdb127ec338dad7d5f86c974f"
integrity sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==