@ederzeel/nuxt-schema-form-nightly 0.1.0-28997862.98d468b → 0.1.0-28998035.65a0762

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.
@@ -6,18 +6,18 @@ type Properties = {
6
6
  }
7
7
 
8
8
  export type SComponentProps = {
9
- id: string
9
+ id?: string
10
10
  title?: string
11
11
  renderer?: string
12
12
  type: string
13
13
  properties?: Properties
14
14
  enum?: string[]
15
15
  description?: string
16
- jsonSchemaPath: string
17
- validateFields: (fields: string[]) => Promise<boolean>
16
+ jsonSchemaPath?: string
17
+ validateFields?: (fields: string[]) => Promise<boolean>
18
18
  }
19
19
 
20
- const props = defineProps<SComponentProps>()
20
+ const props = withDefaults(defineProps<SComponentProps>(), { id: '', jsonSchemaPath: 'test' })
21
21
  const value = defineModel<unknown>({ required: true, default: '' })
22
22
 
23
23
  const options = computed(() => ({
@@ -39,7 +39,6 @@ const validateFields = async (fields: string[]) => {
39
39
  @submit="onSubmit"
40
40
  >
41
41
  <SComponent
42
- id=""
43
42
  v-model="value"
44
43
  v-bind="schema"
45
44
  :validate-fields="validateFields"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ederzeel/nuxt-schema-form-nightly",
3
- "version": "0.1.0-28997862.98d468b",
3
+ "version": "0.1.0-28998035.65a0762",
4
4
  "description": "A runtime form generator for nuxt",
5
5
  "type": "module",
6
6
  "exports": {
@@ -50,19 +50,17 @@
50
50
  "eslint-config-prettier": "^10.0.1",
51
51
  "globals": "^15.14.0",
52
52
  "jiti": "^2.4.2",
53
+ "json-schema-library": "10.0.0-rc7",
54
+ "json-schema-yup-transformer": "^1.6.12",
53
55
  "magic-string": "^0.30.17",
54
56
  "mlly": "^1.7.4",
55
57
  "nuxt": "^3.15.4",
56
58
  "nuxt-component-meta": "^0.10.0",
57
- "prettier": "^3.4.2",
58
- "typescript": "~5.6.3",
59
- "typescript-eslint": "^8.22.0"
60
- },
61
- "dependencies": {
62
- "json-schema-library": "10.0.0-rc7",
63
- "json-schema-yup-transformer": "^1.6.12",
64
59
  "pathe": "^2.0.2",
60
+ "prettier": "^3.4.2",
65
61
  "tinyglobby": "^0.2.10",
62
+ "typescript": "~5.6.3",
63
+ "typescript-eslint": "^8.22.0",
66
64
  "unplugin": "^2.1.2",
67
65
  "unplugin-auto-import": "^19.0.0",
68
66
  "unplugin-vue-components": "^28.0.0",