svelte-json-schema-form 0.0.1-alpha2 → 0.0.1-alpha4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "svelte-json-schema-form",
3
3
  "private": false,
4
- "version": "0.0.1-alpha2",
4
+ "version": "0.0.1-alpha4",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "check": "svelte-check --tsconfig ./tsconfig.json",
@@ -33,6 +33,6 @@
33
33
  "vite": "^5.1.0"
34
34
  },
35
35
  "dependencies": {
36
- "json-form-core": "0.0.1-alpha1"
36
+ "json-form-core": "0.0.1-alpha5"
37
37
  }
38
38
  }
package/src/Form.svelte CHANGED
@@ -64,18 +64,11 @@
64
64
  formController.logger = logger;
65
65
  }
66
66
 
67
- // TODO remove this
68
- $: {
69
- console.log("STORE VALUE!", JSON.stringify(value));
70
- }
71
-
72
67
  // svelte-compatible read-only store for components
73
68
  const componentsStore = {
74
69
  subscribe: (callback) => formController.subscribeComponents(callback)
75
70
  };
76
71
 
77
-
78
-
79
72
  setContext(context, formController); // make form controller available to all children
80
73
 
81
74
  /*
@@ -98,10 +91,7 @@
98
91
  */
99
92
 
100
93
  onMount(() => {
101
- console.log("MOUNT", formController);
102
-
103
94
  const unsubscribeValue = formController.subscribeValue((storeValue) => {
104
- console.log("STORE VALUE", storeValue)
105
95
  value = storeValue;
106
96
  });
107
97
 
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * Svelte Object Store v0.0.2
2
3
  * Returns a Svelte-compatible writeable store from an object-subscriptions object store or object store child
3
4
  * @param nestedObject
4
5
  * @param pathOrPathParts
@@ -24,7 +25,7 @@ const svelteObjectStore = (nestedObject, pathOrPathParts = [], options = {}) =>
24
25
  ? mergedOptions.set(value)
25
26
  : value;
26
27
 
27
- nestedObject.set(pathParts, setValue);
28
+ nestedObject.set(pathParts, setValue, options);
28
29
  }
29
30
  }
30
31