@levo-so/studio 0.3.12 → 0.3.14

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.
@@ -104,7 +104,7 @@ var oe = (e) => (e ?? "16:9").replace(":", " / "), se = (e) => {
104
104
  ...i,
105
105
  children: n
106
106
  }), t[15] = n, t[16] = i, t[17] = g, t[18] = _) : _ = t[18], _;
107
- }, ue = F(() => import("./PopupBody-BI-MJqmd-Cj3VgwnW.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), de = (e) => {
107
+ }, ue = F(() => import("./PopupBody-BI-MJqmd-C9i44N2h.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), de = (e) => {
108
108
  let t = D(7), { size: n } = e, r = n ?? "medium", i;
109
109
  t[0] === r ? i = t[1] : (i = E({ size: r }), t[0] = r, t[1] = i);
110
110
  let a, o, s;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as e } from "./dist-CveI0e3_.js";
2
+ import { c as e } from "./dist-Dq-z9c3T.js";
3
3
  import { n as t } from "./AuthProvider-B5NfFwbG.js";
4
4
  import { t as n } from "./Spinner-D5spB_Mv.js";
5
5
  import { t as r } from "./card-5ooLmYSr.js";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as e } from "./Button-CYXSFoBr.js";
2
+ import { t as e } from "./Button-D6OAkNtW.js";
3
3
  import { n as t } from "./AuthProvider-B5NfFwbG.js";
4
4
  import { t as n } from "./cn-B6c1DjO_.js";
5
5
  import { n as r, t as i } from "./StripePaymentModal-CiKqmQwK.js";
6
- import { BillingStep as a } from "./BillingStep-BG4hhiaE.js";
6
+ import { BillingStep as a } from "./BillingStep-Cskl5Sbc.js";
7
7
  import { errorHandler as o, useLevo as s } from "@levo-so/react";
8
8
  import { useEffect as c, useRef as l, useState as u } from "react";
9
9
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
package/collection.d.ts CHANGED
@@ -38,7 +38,7 @@ export declare interface ICollectionFormBuilderProps extends Omit<ILevoFormConte
38
38
  formVariant?: FormVariantType;
39
39
  collection_id: string;
40
40
  hiddenFields?: string[];
41
- workspace_id?: string;
41
+ workspace_id: string;
42
42
  }
43
43
 
44
44
  export declare interface ICollectionFormProps extends Omit<ILevoFormContext, "onSuccess" | "externalInitialValues" | "onError" | "isLoggedIn" | "toastConfig" | "onFormDirty" | "disableCaptcha" | "enableVerification"> {
package/collection.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-CveI0e3_.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-Dq-z9c3T.js";
2
2
  export { t as CollectionForm, a as CollectionFormBuilder, r as CollectionFormRenderer, n as FormBuilder, i as LevoFormProvider, e as useLevoForm, o as useLevoFormContext };
@@ -3633,15 +3633,15 @@ var Aa = (e) => {
3633
3633
  let t = E(17), n, r, i, a;
3634
3634
  t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({collection_id: n, hiddenFields: r, enableVerification: a, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
3635
3635
  let o = a === void 0 ? !0 : a, { collection: s } = A(), [c, l] = B(!0), [u, d] = B(null), f;
3636
- t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i?.workspace_id ? (f = () => {
3637
- n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i?.workspace_id } }).then((e) => {
3636
+ t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i ? (f = () => {
3637
+ n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i.workspace_id } }).then((e) => {
3638
3638
  let t = e?.content?.data;
3639
3639
  if (t) t.sections = t?.sections?.map((e) => (e.fields = e?.fields?.map((e) => (r?.includes(e?.key) && (e.hidden = !0), e)), e)), d(t);
3640
3640
  else throw Error(`API response invalid: ${t}`);
3641
3641
  }).catch(Ma).finally(() => {
3642
3642
  l(!1);
3643
3643
  }) : (console.error("[CollectionFormBuilder] Collection ID or Workspace ID is missing."), l(!1));
3644
- }, t[5] = s, t[6] = n, t[7] = r, t[8] = i?.workspace_id, t[9] = f) : f = t[9];
3644
+ }, t[5] = s, t[6] = n, t[7] = r, t[8] = i, t[9] = f) : f = t[9];
3645
3645
  let p;
3646
3646
  t[10] === n ? p = t[11] : (p = [n], t[10] = n, t[11] = p), L(f, p);
3647
3647
  let m;