@zeng-alt/formkit-form-builder 0.1.4 → 1.0.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.
Files changed (133) hide show
  1. package/LICENSE +168 -0
  2. package/README.md +236 -61
  3. package/dist/builder.css +2 -0
  4. package/dist/builder.es.js +40347 -0
  5. package/dist/builder.umd.js +496 -0
  6. package/dist/index.d.ts +807 -1
  7. package/package.json +34 -26
  8. package/dist/index.cjs +0 -422
  9. package/dist/index.mjs +0 -9403
  10. package/dist/src/builder/BuilderDropArea.d.ts +0 -4
  11. package/dist/src/builder/BuilderHeader.d.ts +0 -17
  12. package/dist/src/builder/BuilderMain.d.ts +0 -68
  13. package/dist/src/builder/BuilderPreview.d.ts +0 -5
  14. package/dist/src/builder/BuilderProvider.d.ts +0 -21
  15. package/dist/src/builder/ImportExportModal.d.ts +0 -9
  16. package/dist/src/components/ai-prompt/AiPrompt.d.ts +0 -2
  17. package/dist/src/components/sidebar-left/DraggableList.d.ts +0 -8
  18. package/dist/src/components/sidebar-left/NavMain.d.ts +0 -2
  19. package/dist/src/components/sidebar-left/SidebarLeft.d.ts +0 -2
  20. package/dist/src/components/sidebar-right/FormEditMain.d.ts +0 -2
  21. package/dist/src/components/sidebar-right/SidebarRight.d.ts +0 -2
  22. package/dist/src/components/sidebar-right/edits/EditsSection.d.ts +0 -2
  23. package/dist/src/components/sidebar-right/edits/ExpressionEditor.d.ts +0 -2
  24. package/dist/src/components/sidebar-right/edits/common/EditsLayout.d.ts +0 -21
  25. package/dist/src/components/sidebar-right/edits/common/JsonTextarea.d.ts +0 -14
  26. package/dist/src/components/sidebar-right/edits/common/LabelHelpSection.d.ts +0 -2
  27. package/dist/src/components/sidebar-right/edits/common/NaiveBasicSection.d.ts +0 -7
  28. package/dist/src/components/sidebar-right/edits/common/NameInput.d.ts +0 -2
  29. package/dist/src/components/sidebar-right/edits/common/OptionsTagsSection.d.ts +0 -5
  30. package/dist/src/components/sidebar-right/edits/common/PlaceholderSection.d.ts +0 -2
  31. package/dist/src/components/sidebar-right/edits/common/RangeInputs.d.ts +0 -16
  32. package/dist/src/components/sidebar-right/edits/common/SelectInput.d.ts +0 -15
  33. package/dist/src/components/sidebar-right/edits/common/SelectSwitchesSection.d.ts +0 -2
  34. package/dist/src/components/sidebar-right/edits/common/SwitchInput.d.ts +0 -12
  35. package/dist/src/components/sidebar-right/edits/common/TagsInput.d.ts +0 -11
  36. package/dist/src/components/sidebar-right/edits/common/TextInput.d.ts +0 -14
  37. package/dist/src/components/sidebar-right/edits/common/ToggleInput.d.ts +0 -15
  38. package/dist/src/components/sidebar-right/edits/common/TreeOptionsJsonSection.d.ts +0 -2
  39. package/dist/src/components/sidebar-right/edits/editors/CheckboxEditor.d.ts +0 -2
  40. package/dist/src/components/sidebar-right/edits/editors/ColorEditor.d.ts +0 -2
  41. package/dist/src/components/sidebar-right/edits/editors/DateLikeEditor.d.ts +0 -2
  42. package/dist/src/components/sidebar-right/edits/editors/DateTimeEditor.d.ts +0 -2
  43. package/dist/src/components/sidebar-right/edits/editors/FileEditor.d.ts +0 -2
  44. package/dist/src/components/sidebar-right/edits/editors/GroupEditor.d.ts +0 -2
  45. package/dist/src/components/sidebar-right/edits/editors/NaiveAvatarEditor.d.ts +0 -2
  46. package/dist/src/components/sidebar-right/edits/editors/NaiveBlockquoteEditor.d.ts +0 -2
  47. package/dist/src/components/sidebar-right/edits/editors/NaiveButtonEditor.d.ts +0 -2
  48. package/dist/src/components/sidebar-right/edits/editors/NaiveCascaderEditor.d.ts +0 -2
  49. package/dist/src/components/sidebar-right/edits/editors/NaiveCheckboxEditor.d.ts +0 -2
  50. package/dist/src/components/sidebar-right/edits/editors/NaiveDividerEditor.d.ts +0 -2
  51. package/dist/src/components/sidebar-right/edits/editors/NaiveH1Editor.d.ts +0 -2
  52. package/dist/src/components/sidebar-right/edits/editors/NaiveH2Editor.d.ts +0 -2
  53. package/dist/src/components/sidebar-right/edits/editors/NaiveH3Editor.d.ts +0 -2
  54. package/dist/src/components/sidebar-right/edits/editors/NaiveH4Editor.d.ts +0 -2
  55. package/dist/src/components/sidebar-right/edits/editors/NaiveH5Editor.d.ts +0 -2
  56. package/dist/src/components/sidebar-right/edits/editors/NaiveH6Editor.d.ts +0 -2
  57. package/dist/src/components/sidebar-right/edits/editors/NaiveHeaderEditor.d.ts +0 -2
  58. package/dist/src/components/sidebar-right/edits/editors/NaiveLiEditor.d.ts +0 -2
  59. package/dist/src/components/sidebar-right/edits/editors/NaiveLinkEditor.d.ts +0 -2
  60. package/dist/src/components/sidebar-right/edits/editors/NaiveMentionEditor.d.ts +0 -2
  61. package/dist/src/components/sidebar-right/edits/editors/NaiveOlEditor.d.ts +0 -2
  62. package/dist/src/components/sidebar-right/edits/editors/NaiveParagraphEditor.d.ts +0 -2
  63. package/dist/src/components/sidebar-right/edits/editors/NaiveRateEditor.d.ts +0 -2
  64. package/dist/src/components/sidebar-right/edits/editors/NaiveSwitchEditor.d.ts +0 -2
  65. package/dist/src/components/sidebar-right/edits/editors/NaiveTextEditor.d.ts +0 -2
  66. package/dist/src/components/sidebar-right/edits/editors/NaiveTreeSelectEditor.d.ts +0 -2
  67. package/dist/src/components/sidebar-right/edits/editors/NaiveUlEditor.d.ts +0 -2
  68. package/dist/src/components/sidebar-right/edits/editors/NumberEditor.d.ts +0 -2
  69. package/dist/src/components/sidebar-right/edits/editors/RadioEditor.d.ts +0 -2
  70. package/dist/src/components/sidebar-right/edits/editors/RangeEditor.d.ts +0 -2
  71. package/dist/src/components/sidebar-right/edits/editors/SelectEditor.d.ts +0 -2
  72. package/dist/src/components/sidebar-right/edits/editors/SubmitEditor.d.ts +0 -2
  73. package/dist/src/components/sidebar-right/edits/editors/TextLikeEditor.d.ts +0 -2
  74. package/dist/src/components/sidebar-right/validations/DoubleParamValidation.d.ts +0 -11
  75. package/dist/src/components/sidebar-right/validations/SingleParamValidation.d.ts +0 -8
  76. package/dist/src/components/sidebar-right/validations/SingleValueValidation.d.ts +0 -7
  77. package/dist/src/components/sidebar-right/validations/ValidationSection.d.ts +0 -2
  78. package/dist/src/components/sidebar-right/validations/index.d.ts +0 -3
  79. package/dist/src/components/ui/button/CustomButton.d.ts +0 -5
  80. package/dist/src/components/ui/formkit/NaiveAvatar.d.ts +0 -6
  81. package/dist/src/components/ui/formkit/NaiveCascader.d.ts +0 -6
  82. package/dist/src/components/ui/formkit/NaiveCheckbox.d.ts +0 -6
  83. package/dist/src/components/ui/formkit/NaiveCheckboxGroup.d.ts +0 -6
  84. package/dist/src/components/ui/formkit/NaiveColorPicker.d.ts +0 -6
  85. package/dist/src/components/ui/formkit/NaiveDatePicker.d.ts +0 -6
  86. package/dist/src/components/ui/formkit/NaiveDivider.d.ts +0 -6
  87. package/dist/src/components/ui/formkit/NaiveMention.d.ts +0 -6
  88. package/dist/src/components/ui/formkit/NaiveNumberInput.d.ts +0 -6
  89. package/dist/src/components/ui/formkit/NaiveRadioGroup.d.ts +0 -6
  90. package/dist/src/components/ui/formkit/NaiveRate.d.ts +0 -6
  91. package/dist/src/components/ui/formkit/NaiveSelect.d.ts +0 -6
  92. package/dist/src/components/ui/formkit/NaiveSlider.d.ts +0 -6
  93. package/dist/src/components/ui/formkit/NaiveSwitch.d.ts +0 -6
  94. package/dist/src/components/ui/formkit/NaiveTextInput.d.ts +0 -6
  95. package/dist/src/components/ui/formkit/NaiveTextarea.d.ts +0 -6
  96. package/dist/src/components/ui/formkit/NaiveTimePicker.d.ts +0 -6
  97. package/dist/src/components/ui/formkit/NaiveTreeSelect.d.ts +0 -6
  98. package/dist/src/components/ui/formkit/NaiveTypographyA.d.ts +0 -6
  99. package/dist/src/components/ui/formkit/NaiveTypographyBlockquote.d.ts +0 -6
  100. package/dist/src/components/ui/formkit/NaiveTypographyHeader.d.ts +0 -6
  101. package/dist/src/components/ui/formkit/NaiveTypographyHr.d.ts +0 -6
  102. package/dist/src/components/ui/formkit/NaiveTypographyLi.d.ts +0 -6
  103. package/dist/src/components/ui/formkit/NaiveTypographyOl.d.ts +0 -6
  104. package/dist/src/components/ui/formkit/NaiveTypographyP.d.ts +0 -6
  105. package/dist/src/components/ui/formkit/NaiveTypographyText.d.ts +0 -6
  106. package/dist/src/components/ui/formkit/NaiveTypographyUl.d.ts +0 -6
  107. package/dist/src/components/ui/formkit/NaiveUpload.d.ts +0 -6
  108. package/dist/src/components/ui/sonner/Sonner.d.ts +0 -3
  109. package/dist/src/components/ui/sonner/index.d.ts +0 -1
  110. package/dist/src/components/ui/theme-switcher/ThemeSwitcher.d.ts +0 -2
  111. package/dist/src/components/ui/validation-card/ValidationCard.d.ts +0 -21
  112. package/dist/src/components/ui/validation-card/ValidationSwitch.d.ts +0 -14
  113. package/dist/src/components/ui/validation-card/index.d.ts +0 -2
  114. package/dist/src/composables/form-fields.d.ts +0 -809
  115. package/dist/src/composables/schema-history.d.ts +0 -12
  116. package/dist/src/composables/use-config.d.ts +0 -5
  117. package/dist/src/formkit.config.d.ts +0 -11
  118. package/dist/src/formkit.theme.d.ts +0 -26
  119. package/dist/src/i18n/context.d.ts +0 -12
  120. package/dist/src/i18n/messages.d.ts +0 -332
  121. package/dist/src/index.d.ts +0 -7
  122. package/dist/src/style-entry.d.ts +0 -1
  123. package/dist/src/types/env.d.ts +0 -5
  124. package/dist/src/utils/custom-insert-plugin.d.ts +0 -17
  125. package/dist/src/utils/default-form-elements.d.ts +0 -1558
  126. package/dist/src/utils/expression-eval.d.ts +0 -10
  127. package/dist/src/utils/field-props.d.ts +0 -8
  128. package/dist/src/utils/format-schema.d.ts +0 -3
  129. package/dist/src/utils/utils.d.ts +0 -10
  130. package/dist/style.cjs +0 -0
  131. package/dist/style.css +0 -2
  132. package/dist/style.d.ts +0 -1
  133. package/dist/style.mjs +0 -0
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@zeng-alt/formkit-form-builder",
3
- "version": "0.1.4",
3
+ "version": "1.0.1",
4
4
  "description": "A visual FormKit schema builder for Vue 3",
5
5
  "type": "module",
6
- "license": "MIT",
6
+ "license": "LGPL",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/zeng-alt/formkit-form-builder.git"
@@ -16,16 +16,17 @@
16
16
  "schema",
17
17
  "drag-and-drop"
18
18
  ],
19
- "main": "./dist/index.cjs",
20
- "module": "./dist/index.mjs",
21
- "types": "./dist/src/index.d.ts",
19
+ "main": "./dist/builder.umd.js",
20
+ "module": "./dist/builder.es.js",
21
+ "types": "./dist/index.d.ts",
22
+ "style": "./dist/builder.css",
22
23
  "exports": {
23
24
  ".": {
24
- "types": "./dist/src/index.d.ts",
25
- "import": "./dist/index.mjs",
26
- "require": "./dist/index.cjs"
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/builder.es.js",
27
+ "require": "./dist/builder.umd.js"
27
28
  },
28
- "./style.css": "./dist/style.css"
29
+ "./builder.css": "./dist/builder.css"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "public"
@@ -37,57 +38,64 @@
37
38
  "**/*.css"
38
39
  ],
39
40
  "peerDependencies": {
40
- "vue": "^3.5.0",
41
41
  "@vueuse/core": "^14.2.1",
42
- "naive-ui": "^2.44.0"
42
+ "naive-ui": "^2.44.0",
43
+ "vue": "^3.5.0"
43
44
  },
44
45
  "dependencies": {
45
- "@internationalized/date": "^3.12.0",
46
46
  "@codemirror/commands": "^6.8.1",
47
47
  "@codemirror/lang-javascript": "^6.2.4",
48
48
  "@codemirror/state": "^6.5.2",
49
49
  "@codemirror/theme-one-dark": "^6.1.3",
50
50
  "@codemirror/view": "^6.38.2",
51
- "class-variance-authority": "^0.7.1",
52
- "clsx": "^2.1.1",
53
- "axios": "^1.12.2",
54
- "openai": "^6.34.0",
55
- "vue-sonner": "^2.0.9",
56
51
  "@formkit/core": "^2.0.0",
52
+ "@formkit/drag-and-drop": "^0.5.0",
57
53
  "@formkit/i18n": "^2.0.0",
58
54
  "@formkit/vue": "^2.0.0",
59
- "@formkit/drag-and-drop": "^0.5.0"
55
+ "@internationalized/date": "^3.12.0",
56
+ "@unocss/preset-rem-to-px": "^66.7.5",
57
+ "axios": "^1.12.2",
58
+ "class-variance-authority": "^0.7.1",
59
+ "clsx": "^2.1.1",
60
+ "openai": "^6.34.0",
61
+ "vue-sonner": "^2.0.9"
60
62
  },
61
63
  "devDependencies": {
62
- "@vueuse/core": "^14.2.1",
63
64
  "@formkit/core": "^2.0.0",
64
65
  "@formkit/drag-and-drop": "^0.5.3",
65
66
  "@formkit/vue": "^2.0.0",
67
+ "@iconify-json/lucide": "^1.2.58",
68
+ "@iconify-json/stash": "^1.2.3",
69
+ "@iconify/utils": "^3.1.0",
66
70
  "@tsconfig/node24": "^24.0.4",
67
71
  "@types/node": "^24.12.0",
68
72
  "@vitejs/plugin-vue": "^6.0.5",
69
73
  "@vitejs/plugin-vue-jsx": "^5.1.5",
70
74
  "@vue/eslint-config-typescript": "^14.7.0",
71
75
  "@vue/tsconfig": "^0.9.1",
76
+ "@vueuse/core": "^14.2.1",
72
77
  "eslint": "^10.1.0",
73
78
  "eslint-config-prettier": "^10.1.8",
74
79
  "eslint-plugin-oxlint": "~1.57.0",
75
80
  "eslint-plugin-vue": "~10.8.0",
76
81
  "jiti": "^2.6.1",
82
+ "naive-ui": "^2.44.1",
77
83
  "npm-run-all2": "^8.0.4",
78
84
  "oxfmt": "^0.42.0",
79
85
  "oxlint": "~1.57.0",
86
+ "playwright-core": "^1.49.1",
87
+ "ts-node": "^10.9.2",
88
+ "tsx": "^4.21.0",
80
89
  "typescript": "~6.0.0",
90
+ "unocss": "^66.6.8",
91
+ "unocss-tw-animate-css": "^0.1.1",
92
+ "unplugin-auto-import": "^21.1.0",
93
+ "unplugin-vue-components": "^32.1.0",
81
94
  "vite": "^8.0.3",
82
95
  "vite-plugin-dts": "^4.5.4",
83
96
  "vite-plugin-vue-devtools": "^8.1.1",
84
- "vue-tsc": "^3.2.6",
85
- "@iconify-json/lucide": "^1.2.58",
86
- "@iconify-json/stash": "^1.2.3",
87
- "unocss": "^66.6.8",
88
- "unocss-tw-animate-css": "^0.1.1",
89
- "naive-ui": "^2.44.1",
90
- "vue": "^3.5.31"
97
+ "vue": "^3.5.31",
98
+ "vue-tsc": "^3.2.6"
91
99
  },
92
100
  "engines": {
93
101
  "node": "^20.19.0 || >=22.12.0"