@levo-so/studio 0.3.27 → 0.3.28

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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as e } from "./dist-vBo7O9cF.js";
2
+ import { r as e } from "./dist-cdYkmL-9.js";
3
3
  import { r as t } from "./useLogin-BYVekOp9.js";
4
4
  import { t as n } from "./card-BIebVDA0.js";
5
5
  import { t as r } from "./MessageFooter-DrlKXE9a.js";
@@ -8,7 +8,7 @@ var s = {
8
8
  title: "_title_s7k8g_7",
9
9
  subtitle: "_subtitle_s7k8g_14",
10
10
  formWrapper: "_formWrapper_s7k8g_20"
11
- }, c = r(() => import("./PendingApprovalCard-BjSHrAHA.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-BuRubxOD.js")), l = ({ logo: r, siteName: l, page: u }) => {
12
12
  let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
13
13
  return p ? /* @__PURE__ */ a(n, {
14
14
  fallback: /* @__PURE__ */ a("div", {}),
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as e } from "./dist-vBo7O9cF.js";
2
+ import { r as e } from "./dist-cdYkmL-9.js";
3
3
  import { t } from "./card-BIebVDA0.js";
4
4
  import { t as n } from "./MessageFooter-DrlKXE9a.js";
5
5
  import { useState as r } from "react";
@@ -1,7 +1,7 @@
1
1
  import { D as e, a as t, c as n, r, s as i } from "./price-BUDkN5Me.js";
2
2
  import { n as a, t as o } from "./fontSize-DowUyWe-.js";
3
3
  import { a as s, i as c, t as l } from "./inlineRteTheme-DFg69bqP.js";
4
- import { a as u, i as d, l as f, n as p, o as m, r as h, u as g } from "./PopupDialog-DwAAJ8JS-1gMlHxwM.js";
4
+ import { a as u, i as d, l as f, n as p, o as m, r as h, u as g } from "./PopupDialog-DwAAJ8JS-CxX73VkK.js";
5
5
  import { c as _ } from "react/compiler-runtime";
6
6
  import { LevoProvider as v } from "@levo-so/react";
7
7
  import { Suspense as y, lazy as b, useMemo as x, useState as S } from "react";
@@ -73,7 +73,7 @@ var Q = [
73
73
  ...r,
74
74
  children: a
75
75
  }) : null;
76
- }, te = /* @__PURE__ */ g({ PopupBody: () => oe }), ne = b(() => import("./dist-vBo7O9cF.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = l({ baseSpacing: ".625rem" }), ie = { style: r({ form: { gap: "1rem" } }) }, ae = {
76
+ }, te = /* @__PURE__ */ g({ PopupBody: () => oe }), ne = b(() => import("./dist-cdYkmL-9.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = l({ baseSpacing: ".625rem" }), ie = { style: r({ form: { gap: "1rem" } }) }, ae = {
77
77
  left: p,
78
78
  center: d,
79
79
  right: f
@@ -172,7 +172,7 @@ var R = Object.defineProperty, z = (e, t) => {
172
172
  ...a,
173
173
  children: r
174
174
  }), n[15] = r, n[16] = a, n[17] = _, n[18] = v) : v = n[18], v;
175
- }, ce = y(() => import("./PopupBody-DWM55Zh5-DsryJsq8.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), le = (e) => {
175
+ }, ce = y(() => import("./PopupBody-DWM55Zh5-BaANxXxc.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), le = (e) => {
176
176
  let t = g(7), { size: n } = e, r = n ?? "medium", i;
177
177
  t[0] === r ? i = t[1] : (i = U({ size: r }), t[0] = r, t[1] = i);
178
178
  let a, o, s;
@@ -1,5 +1,5 @@
1
1
  import { c as e, f as t, l as n } from "./themeMapping-DH_NoXK8-H-EHXbBt.js";
2
- import { c as r, r as i, s as a, t as o, u as s } from "./PopupDialog-DwAAJ8JS-1gMlHxwM.js";
2
+ import { c as r, r as i, s as a, t as o, u as s } from "./PopupDialog-DwAAJ8JS-CxX73VkK.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { $activity as l, $isIdentityContextReady as u, $pageLifecycle as d, $scrollBehavior as f, $session as p, getTabCount as m } from "@levo-so/insights/stores";
5
5
  import { useLevo as h, useLevoInsights as g } from "@levo-so/react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as e } from "./dist-vBo7O9cF.js";
2
+ import { c as e } from "./dist-cdYkmL-9.js";
3
3
  import { r as t } from "./useLogin-BYVekOp9.js";
4
4
  import { t as n } from "./Spinner-LdYfm4S7.js";
5
5
  import { t as r } from "./card-BIebVDA0.js";
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-vBo7O9cF.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-cdYkmL-9.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 };
@@ -2276,7 +2276,7 @@ var $r = ((e) => (t) => t ? Qr(e, t) : e)({
2276
2276
  }), t[23] = f, t[24] = m, t[25] = a, t[26] = o, t[27] = s, t[28] = _, t[29] = v) : v = t[29], v;
2277
2277
  }, ai = (e, t) => e?.map((e) => ({
2278
2278
  ...e,
2279
- hidden: e.hidden || t.includes(e.key) || t.includes(e.id) || e.allow_public_view === !1 || e.allow_public_submit === !1,
2279
+ hidden: e.hidden || t.includes(e.key) || t.includes(e.id) || e.allow_public_submit === !1,
2280
2280
  fields: ai(e.fields, t)
2281
2281
  })), oi = (e, t = []) => ({
2282
2282
  ...e,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { l as e, r as t } from "./dist-vBo7O9cF.js";
2
+ import { l as e, r as t } from "./dist-cdYkmL-9.js";
3
3
  import { r as n } from "./price-BUDkN5Me.js";
4
4
  import { c as r, d as i, f as a, h as o, i as s, o as c, t as l, u } from "./themeMapping-DH_NoXK8-H-EHXbBt.js";
5
5
  import { n as d, r as f, t as p } from "./useLogin-BYVekOp9.js";
@@ -83,7 +83,7 @@ import { FlagImage as Yn, defaultCountries as Xn, parseCountry as Zn } from "rea
83
83
  var Qn = async (e, t) => {
84
84
  let n = {};
85
85
  return t?.site_id && (n.site_id = t.site_id), t?.locale && (n.locale = t.locale), t?.country && (n.country = t.country), (await e.url("/v1/studio/popup/list-active").query(n).get().json())?.content?.data ?? [];
86
- }, $n = M(() => import("./PopupRenderer-BVtV4b9I-IVW7SyIb.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), er = (e) => {
86
+ }, $n = M(() => import("./PopupRenderer-BVtV4b9I-DmHgIqsp.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), er = (e) => {
87
87
  let t = k(9), { siteId: n, pageId: r } = e, { fetch: i, logger: o } = A(), [s, c] = L(null), l = I(!1), u, d;
88
88
  if (t[0] !== i || t[1] !== o || t[2] !== n ? (u = () => {
89
89
  if (l.current) return;
@@ -4147,7 +4147,7 @@ var Co = ({ site: e }) => {
4147
4147
  siteSlug: e?.slug,
4148
4148
  siteName: e?.name
4149
4149
  })] });
4150
- }, wo = { loadingContainer: "_loadingContainer_1d4on_1" }, To = M(() => import("./LoginCard-BuJtu8Qi.js")), Eo = M(() => import("./EntryCard-CkmYAlSr.js")), Do = M(() => import("./MessageCard-B5MbVDJ8.js")), Oo = M(() => import("./ProfileCard-BiCPzk3n.js")), ko = {
4150
+ }, wo = { loadingContainer: "_loadingContainer_1d4on_1" }, To = M(() => import("./LoginCard-B10IplY5.js")), Eo = M(() => import("./EntryCard-BzTpXgVJ.js")), Do = M(() => import("./MessageCard-B5MbVDJ8.js")), Oo = M(() => import("./ProfileCard-Cn9_ZE8H.js")), ko = {
4151
4151
  "authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t, page: n }) => /* @__PURE__ */ z(de, {
4152
4152
  fallback: /* @__PURE__ */ z("div", {}),
4153
4153
  children: /* @__PURE__ */ z(To, {
@@ -6726,7 +6726,7 @@ var kl = X(Sl), Al = pe(({ children: e, className: t, elementKey: n, generatedCl
6726
6726
  children: [/* @__PURE__ */ z(fl, { backgroundVideo: a?.backgroundVideo }), e]
6727
6727
  }));
6728
6728
  Al.displayName = "BaseContainer";
6729
- var jl = X(Al), Ml = M(() => import("./dist-vBo7O9cF.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), Nl = X(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ z("div", {
6729
+ var jl = X(Al), Ml = M(() => import("./dist-cdYkmL-9.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), Nl = X(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ z("div", {
6730
6730
  "data-levo_element_key": e,
6731
6731
  className: C(r, t),
6732
6732
  children: /* @__PURE__ */ z(de, {
@@ -6748,7 +6748,7 @@ var jl = X(Al), Ml = M(() => import("./dist-vBo7O9cF.js").then((e) => e.t).then(
6748
6748
  isLoading: s
6749
6749
  })
6750
6750
  })
6751
- })), Pl = M(() => import("./dist-vBo7O9cF.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), Fl = X(({ elementKey: e, generatedClassName: t, config: r, className: i, initialValues: a, theme: s }) => {
6751
+ })), Pl = M(() => import("./dist-cdYkmL-9.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), Fl = X(({ elementKey: e, generatedClassName: t, config: r, className: i, initialValues: a, theme: s }) => {
6752
6752
  let { workspace: c, isLoggedIn: l, isAuthLoaded: u } = f(), d = F(() => {
6753
6753
  if (!r?.theme && !s) return;
6754
6754
  let e = r?.theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo Studio components and utilities for building block-based pages",
6
6
  "type": "module",
@@ -120,9 +120,9 @@
120
120
  "yup": "1.7.1"
121
121
  },
122
122
  "peerDependencies": {
123
- "@levo-so/insights": "0.3.27",
124
- "@levo-so/core": "0.3.27",
125
- "@levo-so/react": "0.3.27",
123
+ "@levo-so/insights": "0.3.28",
124
+ "@levo-so/core": "0.3.28",
125
+ "@levo-so/react": "0.3.28",
126
126
  "react": ">=19",
127
127
  "next": ">=14",
128
128
  "react-dom": ">=19"