@webstudio-is/css-data 0.74.0 → 0.76.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.
Files changed (43) hide show
  1. package/lib/__generated__/properties.js +2 -2
  2. package/lib/__generated__/property-value-descriptions.js +2733 -2930
  3. package/lib/cjs/__generated__/properties.js +2 -2
  4. package/lib/cjs/__generated__/property-value-descriptions.js +2733 -2930
  5. package/lib/cjs/property-parsers/box-shadow.js +128 -0
  6. package/lib/cjs/property-parsers/index.js +1 -0
  7. package/lib/cjs/property-parsers/parsers.js +3 -1
  8. package/lib/cjs/schema.js +17 -12
  9. package/lib/property-parsers/box-shadow.js +98 -0
  10. package/lib/property-parsers/index.js +1 -0
  11. package/lib/property-parsers/parsers.js +3 -1
  12. package/lib/schema.js +17 -12
  13. package/lib/types/{src/__generated__ → __generated__}/properties.d.ts +2 -2
  14. package/lib/types/__generated__/property-value-descriptions.d.ts +5446 -0
  15. package/lib/types/{src/index.d.ts → index.d.ts} +2 -2
  16. package/lib/types/property-parsers/box-shadow.d.ts +3 -0
  17. package/lib/types/{src/property-parsers → property-parsers}/index.d.ts +1 -0
  18. package/lib/types/{src/property-parsers → property-parsers}/parsers.d.ts +1 -0
  19. package/lib/types/{src/schema.d.ts → schema.d.ts} +671 -0
  20. package/package.json +5 -7
  21. package/src/__generated__/properties.ts +2 -2
  22. package/src/__generated__/property-value-descriptions.ts +3020 -3590
  23. package/src/property-parsers/background.ts +0 -1
  24. package/src/property-parsers/box-shadow.test.ts +294 -0
  25. package/src/property-parsers/box-shadow.ts +134 -0
  26. package/src/property-parsers/index.ts +1 -0
  27. package/src/property-parsers/parsers.ts +1 -0
  28. package/src/schema.ts +18 -11
  29. package/lib/types/bin/property-value-descriptions.d.ts +0 -1
  30. package/lib/types/src/__generated__/property-value-descriptions.d.ts +0 -2933
  31. /package/lib/types/{src/__generated__ → __generated__}/keyword-values.d.ts +0 -0
  32. /package/lib/types/{src/__generated__ → __generated__}/units.d.ts +0 -0
  33. /package/lib/types/{src/html-check.d.ts → html-check.d.ts} +0 -0
  34. /package/lib/types/{src/html.d.ts → html.d.ts} +0 -0
  35. /package/lib/types/{src/parse-css-value.d.ts → parse-css-value.d.ts} +0 -0
  36. /package/lib/types/{src/parse-css-value.test.d.ts → parse-css-value.test.d.ts} +0 -0
  37. /package/lib/types/{src/parse-css.d.ts → parse-css.d.ts} +0 -0
  38. /package/lib/types/{src/parse-css.test.d.ts → parse-css.test.d.ts} +0 -0
  39. /package/lib/types/{src/popularity-index.d.ts → popularity-index.d.ts} +0 -0
  40. /package/lib/types/{src/property-parsers → property-parsers}/background.d.ts +0 -0
  41. /package/lib/types/{src/property-parsers → property-parsers}/background.test.d.ts +0 -0
  42. /package/lib/types/{bin/mdn-data.d.ts → property-parsers/box-shadow.test.d.ts} +0 -0
  43. /package/lib/types/{src/property-parsers → property-parsers}/to-longhand.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/css-data",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
4
4
  "description": "CSS Data",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "exports": {
26
26
  "source": "./src/index.ts",
27
+ "types": "./lib/types/index.d.ts",
27
28
  "import": "./lib/index.js",
28
- "require": "./lib/cjs/index.js",
29
- "types": "./lib/types/index.d.ts"
29
+ "require": "./lib/cjs/index.js"
30
30
  },
31
31
  "files": [
32
32
  "lib/*",
@@ -41,18 +41,16 @@
41
41
  "css-tree": "^2.3.1",
42
42
  "hyphenate-style-name": "^1.0.4",
43
43
  "openai": "^3.2.1",
44
- "undici": "^5.22.1",
45
44
  "warn-once": "^0.1.1"
46
45
  },
47
46
  "scripts": {
48
47
  "typecheck": "tsc --noEmit --emitDeclarationOnly false",
49
- "checks": "pnpm typecheck && pnpm lint",
48
+ "checks": "pnpm typecheck",
50
49
  "dev": "build-package --watch",
51
50
  "build": "build-package",
52
51
  "build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/**/*.ts\"",
53
52
  "build:descriptions": "tsx ./bin/property-value-descriptions.ts",
54
- "dts": "tsc --declarationDir lib/types",
55
- "lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
53
+ "dts": "tsc --project tsconfig.dts.json",
56
54
  "test": "NODE_OPTIONS=--experimental-vm-modules jest"
57
55
  }
58
56
  }
@@ -933,7 +933,7 @@ export const properties = {
933
933
  inherited: true,
934
934
  initial: {
935
935
  type: "keyword",
936
- value: "inherit",
936
+ value: "black",
937
937
  },
938
938
  popularity: 0.90791486,
939
939
  appliesTo: "allElementsAndText",
@@ -3118,7 +3118,7 @@ export const properties = {
3118
3118
  inherited: true,
3119
3119
  initial: {
3120
3120
  type: "keyword",
3121
- value: "startOrNamelessValueIfLTRRightIfRTL",
3121
+ value: "start",
3122
3122
  },
3123
3123
  popularity: 0.89287477,
3124
3124
  appliesTo: "blockContainers",