@schematichq/schematic-react 0.1.8 → 0.2.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -4,11 +4,16 @@
4
4
  "module": "dist/schematic-react.esm.js",
5
5
  "author": "Ben Papillon <ben@schematichq.com>",
6
6
  "devDependencies": {
7
+ "@craftjs/core": "^0.2.10",
7
8
  "@microsoft/api-extractor": "^7.38.3",
9
+ "@openapitools/openapi-generator-cli": "^2.13.4",
8
10
  "@types/jest": "^29.5.11",
9
- "@types/react": "^18.2.48",
11
+ "@types/pako": "^2.0.3",
12
+ "@types/react": "^18.2.79",
13
+ "@types/react-dom": "^18.2.25",
10
14
  "@typescript-eslint/eslint-plugin": "^6.19.1",
11
15
  "@typescript-eslint/parser": "^6.13.2",
16
+ "classnames": "^2.5.1",
12
17
  "esbuild": "^0.19.9",
13
18
  "esbuild-jest": "^0.5.0",
14
19
  "eslint": "^8.55.0",
@@ -18,7 +23,9 @@
18
23
  "jest-environment-jsdom": "^29.7.0",
19
24
  "jest-esbuild": "^0.3.0",
20
25
  "jest-fetch-mock": "^3.0.3",
26
+ "prettier": "^3.3.3",
21
27
  "react": "^18.2.0",
28
+ "react-dom": "^18.2.0",
22
29
  "ts-jest": "^29.1.1",
23
30
  "typescript": "^5.0.2"
24
31
  },
@@ -33,20 +40,28 @@
33
40
  "url": "git+ssh://git@github.com/SchematicHQ/schematic-js.git"
34
41
  },
35
42
  "scripts": {
36
- "build": "npx tsc && yarn clean && yarn build:cjs && yarn build:esm && yarn build:types",
37
- "build:cjs": "npx esbuild src/index.tsx --bundle --external:react --format=cjs --outfile=dist/schematic-react.cjs.js",
38
- "build:esm": "npx esbuild src/index.tsx --bundle --external:react --format=esm --outfile=dist/schematic-react.esm.js",
43
+ "dev": "yarn tsc --watch",
44
+ "build": "yarn tsc && yarn openapi && yarn format && yarn lint && yarn clean && yarn build:cjs && yarn build:esm && yarn build:types",
45
+ "build:cjs": "npx esbuild src/index.ts --bundle --external:react --external:react-dom --format=cjs --outfile=dist/schematic-react.cjs.js",
46
+ "build:esm": "npx esbuild src/index.ts --bundle --external:react --external:react-dom --format=esm --outfile=dist/schematic-react.esm.js",
39
47
  "build:types": "npx tsc && npx api-extractor run",
40
48
  "clean": "rm -rf dist",
49
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
41
50
  "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --fix",
42
- "test": "jest --config jest.config.js"
51
+ "openapi": "rm -rf src/api/ && npx openapi-generator-cli generate -c openapi-config.yaml && prettier --write \"src/api/**/*.{ts,tsx}\"",
52
+ "test": "jest --config jest.config.js",
53
+ "tsc": "npx tsc"
43
54
  },
44
55
  "types": "dist/schematic-react.d.ts",
45
- "version": "0.1.8",
56
+ "version": "0.2.0-rc.1",
46
57
  "dependencies": {
47
- "@schematichq/schematic-js": "^0.1.10"
58
+ "@schematichq/schematic-js": "^0.1.13",
59
+ "pako": "^2.1.0",
60
+ "styled-components": "^6.1.12"
48
61
  },
49
62
  "peerDependencies": {
50
- "react": ">=18"
51
- }
63
+ "react": ">=18",
64
+ "react-dom": ">=18"
65
+ },
66
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
52
67
  }