@webstudio-is/css-engine 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,43 +1,31 @@
1
1
  {
2
2
  "name": "@webstudio-is/css-engine",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "CSS Renderer for Webstudio",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
7
7
  "type": "module",
8
- "scripts": {
9
- "typecheck": "tsc --noEmit",
10
- "checks": "yarn typecheck && yarn lint && yarn test",
11
- "dev": "build-package --watch",
12
- "build": "build-package",
13
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
14
- "lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
15
- "storybook:run": "start-storybook -p 6006",
16
- "storybook:build": "build-storybook",
17
- "publish-to-npm": "bash ../../bin/publish-to-npm.sh"
18
- },
19
8
  "dependencies": {
20
9
  "hyphenate-style-name": "^1.0.4",
21
10
  "react": "^17.0.2",
22
11
  "react-dom": "^17.0.2",
23
- "@webstudio-is/fonts": "*"
12
+ "@webstudio-is/fonts": "^0.19.0"
24
13
  },
25
14
  "devDependencies": {
26
- "@storybook/addon-actions": "^6.5.6",
27
- "@storybook/addon-essentials": "^6.5.6",
28
- "@storybook/addon-interactions": "^6.5.12",
29
- "@storybook/addon-links": "^6.5.6",
30
- "@storybook/builder-webpack4": "^6.5.6",
15
+ "@jest/globals": "^29.3.1",
31
16
  "@storybook/jest": "^0.0.10",
32
- "@storybook/manager-webpack4": "^6.5.6",
33
- "@storybook/react": "^6.5.6",
17
+ "@storybook/react": "^6.5.14",
34
18
  "@storybook/testing-library": "^0.0.13",
35
- "@webstudio-is/jest-config": "*",
36
- "@webstudio-is/css-data": "*",
37
- "@webstudio-is/scripts": "*",
38
- "typescript": "4.7.4",
19
+ "@types/hyphenate-style-name": "^1.0.0",
39
20
  "@types/react": "^17.0.24",
40
- "@types/react-dom": "^17.0.9"
21
+ "@types/react-dom": "^17.0.9",
22
+ "jest": "^29.3.1",
23
+ "typescript": "4.7.4",
24
+ "@webstudio-is/css-data": "^0.19.0",
25
+ "@webstudio-is/jest-config": "^1.0.2",
26
+ "@webstudio-is/scripts": "^0.0.0",
27
+ "@webstudio-is/storybook-config": "^0.0.0",
28
+ "@webstudio-is/tsconfig": "^1.0.1"
41
29
  },
42
30
  "exports": "./lib/index.js",
43
31
  "types": "src/index.ts",
@@ -48,5 +36,15 @@
48
36
  ],
49
37
  "license": "MIT",
50
38
  "private": false,
51
- "sideEffects": false
52
- }
39
+ "sideEffects": false,
40
+ "scripts": {
41
+ "typecheck": "tsc --noEmit",
42
+ "checks": "pnpm typecheck && pnpm lint && pnpm test",
43
+ "dev": "build-package --watch",
44
+ "build": "build-package",
45
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest",
46
+ "lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
47
+ "storybook:run": "start-storybook -p 6006",
48
+ "storybook:build": "build-storybook"
49
+ }
50
+ }
@@ -1,3 +1,4 @@
1
+ import { describe, beforeEach, test, expect } from "@jest/globals";
1
2
  import { CssEngine } from "./css-engine";
2
3
 
3
4
  const style0 = {
@@ -1,3 +1,4 @@
1
+ import { describe, test, expect } from "@jest/globals";
1
2
  import { toValue } from "./to-value";
2
3
 
3
4
  describe("Convert WS CSS Values to native CSS strings", () => {