@humandialog/forms.svelte 0.4.31 → 0.4.33

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.
@@ -255,9 +255,7 @@ async function on_choose(itm) {
255
255
  if (is_association) {
256
256
  if (choice_callback) {
257
257
  let body = {
258
- choice: {
259
- $ref: itm.Key
260
- }
258
+ choice: itm.Key
261
259
  };
262
260
  let path;
263
261
  if (item.$ref)
@@ -282,9 +280,7 @@ async function on_choose(itm) {
282
280
  let result = await reef.post(
283
281
  path,
284
282
  {
285
- [a]: {
286
- $ref: itm.Key
287
- }
283
+ [a]: itm.Key
288
284
  }
289
285
  );
290
286
  if (result) {
@@ -84,7 +84,7 @@ function setup(...args) {
84
84
  typename = item.$type;
85
85
  else if (item.$ref) {
86
86
  let s2 = item.$ref.split("/");
87
- typename = s2[0];
87
+ typename = s2[1];
88
88
  }
89
89
  }
90
90
  if (!item[a])
@@ -35,7 +35,7 @@ if (!typename) {
35
35
  typename = item.$type;
36
36
  else if (item.$ref) {
37
37
  let s = item.$ref.split("/");
38
- typename = s[0];
38
+ typename = s[1];
39
39
  }
40
40
  }
41
41
  let item_key = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humandialog/forms.svelte",
3
- "version": "0.4.31",
3
+ "version": "0.4.33",
4
4
  "description": "Basic Svelte UI components for Object Reef applications",
5
5
  "devDependencies": {
6
6
  "@playwright/test": "^1.28.1",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "type": "module",
28
28
  "dependencies": {
29
- "@humandialog/auth.svelte": "^1.2.8",
29
+ "@humandialog/auth.svelte": "^1.2.9",
30
30
  "flowbite-svelte": "^0.29.13",
31
31
  "svelte-icons": "^2.1.0",
32
32
  "svelte-spa-router": "^3.3.0"