@gomusdev/web-components 1.8.2 → 1.8.3

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.
@@ -13791,11 +13791,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
13791
13791
  let when = prop($$props, "when", 7), then = prop($$props, "then", 7, "show");
13792
13792
  const data = /* @__PURE__ */ state(proxy({}));
13793
13793
  get(data).ticketSelection = getTicketSelectionDetails($$props.$$host);
13794
+ let formDetails = /* @__PURE__ */ state(void 0);
13794
13795
  user_effect(() => {
13795
- var _a2;
13796
- const formDetails = getDetails($$props.$$host);
13797
- if (!formDetails) return;
13798
- get(data).formData = (_a2 = getDetails($$props.$$host)) == null ? void 0 : _a2.formData;
13796
+ if (!get(formDetails)) return;
13797
+ get(data).formData = get(formDetails).formData;
13799
13798
  });
13800
13799
  let evaluatedWhen = /* @__PURE__ */ user_derived(() => evaluateExpression(when(), get(data)));
13801
13800
  let content = null;
@@ -13815,6 +13814,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
13815
13814
  }
13816
13815
  }
13817
13816
  });
13817
+ onMount(async () => {
13818
+ set(formDetails, await pollUntilTruthy(() => getDetails($$props.$$host)), true);
13819
+ });
13818
13820
  return pop({
13819
13821
  get data() {
13820
13822
  return get(data);
@@ -13791,11 +13791,10 @@ function If($$anchor, $$props) {
13791
13791
  let when = prop($$props, "when", 7), then = prop($$props, "then", 7, "show");
13792
13792
  const data = /* @__PURE__ */ state(proxy({}));
13793
13793
  get(data).ticketSelection = getTicketSelectionDetails($$props.$$host);
13794
+ let formDetails = /* @__PURE__ */ state(void 0);
13794
13795
  user_effect(() => {
13795
- var _a2;
13796
- const formDetails = getDetails($$props.$$host);
13797
- if (!formDetails) return;
13798
- get(data).formData = (_a2 = getDetails($$props.$$host)) == null ? void 0 : _a2.formData;
13796
+ if (!get(formDetails)) return;
13797
+ get(data).formData = get(formDetails).formData;
13799
13798
  });
13800
13799
  let evaluatedWhen = /* @__PURE__ */ user_derived(() => evaluateExpression(when(), get(data)));
13801
13800
  let content = null;
@@ -13815,6 +13814,9 @@ function If($$anchor, $$props) {
13815
13814
  }
13816
13815
  }
13817
13816
  });
13817
+ onMount(async () => {
13818
+ set(formDetails, await pollUntilTruthy(() => getDetails($$props.$$host)), true);
13819
+ });
13818
13820
  return pop({
13819
13821
  get data() {
13820
13822
  return get(data);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.8.2",
7
+ "version": "1.8.3",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",