@soyio/soyio-widget 2.18.0 → 2.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/README.md +85 -0
- package/dist/index.d.ts +31 -2
- package/dist/index.js +1585 -1538
- package/dist/index.umd.cjs +61 -50
- package/package.json +9 -4
- package/src/schemas/appearance.schema.json +2189 -0
- package/src/schemas/config.schema.json +2473 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soyio/soyio-widget",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,10 +13,13 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/index.js",
|
|
15
15
|
"require": "./dist/index.umd.cjs"
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"./schemas/appearance": "./src/schemas/appearance.schema.json",
|
|
18
|
+
"./schemas/config": "./src/schemas/config.schema.json"
|
|
17
19
|
},
|
|
18
20
|
"files": [
|
|
19
21
|
"dist",
|
|
22
|
+
"src/schemas",
|
|
20
23
|
"README.md"
|
|
21
24
|
],
|
|
22
25
|
"scripts": {
|
|
@@ -27,8 +30,10 @@
|
|
|
27
30
|
"lint": "eslint . --ext .ts",
|
|
28
31
|
"test": "vitest",
|
|
29
32
|
"version:get": "node -p \"require('./package.json').version\"",
|
|
30
|
-
"generate-schema": "ts-json-schema-generator --path
|
|
31
|
-
"
|
|
33
|
+
"generate-schema:appearance": "ts-json-schema-generator --path src/embeds/appearance/types.ts --type SoyioAppearance --no-type-check --out src/schemas/appearance.schema.json",
|
|
34
|
+
"generate-schema:config": "ts-json-schema-generator --path src/schema-types.ts --type SoyioWidgetConfig --no-type-check --out src/schemas/config.schema.json",
|
|
35
|
+
"generate-schema": "yarn generate-schema:appearance && yarn generate-schema:config",
|
|
36
|
+
"smoke": "yarn generate-schema && vite serve smoke-test --config vite.smoke.config.ts"
|
|
32
37
|
},
|
|
33
38
|
"devDependencies": {
|
|
34
39
|
"@monaco-editor/react": "^4.7.0",
|