@dmitryvim/form-builder 0.1.42 → 0.2.1
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 +260 -22
- package/dist/browser/formbuilder.min.js +184 -0
- package/dist/browser/formbuilder.v0.2.1.min.js +184 -0
- package/dist/cjs/index.cjs +3652 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/esm/index.js +3603 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/form-builder.js +154 -3369
- package/dist/types/components/container.d.ts +15 -0
- package/dist/types/components/file.d.ts +26 -0
- package/dist/types/components/group.d.ts +24 -0
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/number.d.ts +11 -0
- package/dist/types/components/registry.d.ts +15 -0
- package/dist/types/components/select.d.ts +11 -0
- package/dist/types/components/text.d.ts +11 -0
- package/dist/types/components/textarea.d.ts +11 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/instance/FormBuilderInstance.d.ts +134 -0
- package/dist/types/instance/state.d.ts +13 -0
- package/dist/types/styles/theme.d.ts +63 -0
- package/dist/types/types/component-operations.d.ts +45 -0
- package/dist/types/types/config.d.ts +47 -0
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types/types/schema.d.ts +115 -0
- package/dist/types/types/state.d.ts +11 -0
- package/dist/types/utils/helpers.d.ts +4 -0
- package/dist/types/utils/styles.d.ts +21 -0
- package/dist/types/utils/translation.d.ts +8 -0
- package/dist/types/utils/validation.d.ts +2 -0
- package/package.json +32 -15
- package/dist/demo.js +0 -861
- package/dist/elements.html +0 -1130
- package/dist/elements.js +0 -488
- package/dist/index.html +0 -315
package/package.json
CHANGED
|
@@ -3,32 +3,41 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1
|
|
6
|
+
"version": "0.2.1",
|
|
7
7
|
"description": "A reusable JSON schema form builder library",
|
|
8
|
-
"main": "dist/
|
|
9
|
-
"module": "dist/
|
|
8
|
+
"main": "./dist/cjs/index.cjs",
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
10
11
|
"type": "module",
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
}
|
|
17
|
-
"./dist/form-builder.js": "./dist/form-builder.js"
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"import": "./dist/esm/index.js",
|
|
16
|
+
"require": "./dist/cjs/index.cjs"
|
|
17
|
+
}
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"dist",
|
|
21
|
-
"
|
|
20
|
+
"dist/esm",
|
|
21
|
+
"dist/cjs",
|
|
22
|
+
"dist/types",
|
|
23
|
+
"dist/browser",
|
|
24
|
+
"dist/form-builder.js"
|
|
22
25
|
],
|
|
23
26
|
"scripts": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
27
|
+
"clean": "rm -rf dist && mkdir -p dist",
|
|
28
|
+
"build:lib": "tsup --config tsup.config.ts",
|
|
29
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
30
|
+
"build:browser": "rollup -c && node -e \"const fs=require('fs');fs.copyFileSync('dist/browser/formbuilder.min.js','dist/form-builder.js');\"",
|
|
31
|
+
"build:demo": "rm -rf dist/demo && mkdir -p dist/demo && cp -R public/. dist/demo && cp dist/browser/formbuilder.min.js dist/demo/form-builder.js",
|
|
32
|
+
"build:artifacts": "npm run clean && npm run build:lib && npm run build:types && npm run build:browser",
|
|
33
|
+
"build": "npm run build:artifacts && npm run build:demo",
|
|
34
|
+
"dev": "npm run build && serve dist/demo --single",
|
|
35
|
+
"pretest": "npm run build",
|
|
26
36
|
"test": "jest",
|
|
27
37
|
"format": "prettier --write .",
|
|
28
38
|
"lint": "eslint src/ public/ test/ *.config.js",
|
|
29
39
|
"lint:fix": "eslint src/ public/ test/ *.config.js --fix",
|
|
30
|
-
"
|
|
31
|
-
"prepublishOnly": "npm run test && npm run lint && npm run build"
|
|
40
|
+
"prepublishOnly": "npm run lint && npm run test && npm run build"
|
|
32
41
|
},
|
|
33
42
|
"keywords": [
|
|
34
43
|
"form",
|
|
@@ -46,11 +55,19 @@
|
|
|
46
55
|
"@babel/core": "^7.28.5",
|
|
47
56
|
"@babel/preset-env": "^7.28.5",
|
|
48
57
|
"@eslint/js": "^9.35.0",
|
|
58
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
60
|
+
"@types/node": "^20.0.0",
|
|
49
61
|
"babel-jest": "^30.2.0",
|
|
50
62
|
"eslint": "^9.35.0",
|
|
51
63
|
"jest": "^29.0.0",
|
|
52
64
|
"jest-environment-jsdom": "^29.7.0",
|
|
53
65
|
"prettier": "^3.0.0",
|
|
54
|
-
"
|
|
66
|
+
"rollup": "^4.24.3",
|
|
67
|
+
"rollup-plugin-esbuild": "^6.1.0",
|
|
68
|
+
"serve": "^14.0.0",
|
|
69
|
+
"tsup": "^8.2.4",
|
|
70
|
+
"typescript": "^5.0.0",
|
|
71
|
+
"typescript-eslint": "^8.0.0"
|
|
55
72
|
}
|
|
56
73
|
}
|