@levo-so/site-runtime 0.3.19 → 0.3.21

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.
Files changed (55) hide show
  1. package/BillingStep-ByiYjJ0S.js +251 -0
  2. package/BookingCard-DdwLHVGw.js +816 -0
  3. package/CollectionLabel-CmUFfc_7.js +35 -0
  4. package/DateTimeWidget-Bk2tk_CT.js +254 -0
  5. package/{KBChatWidget-GRi6sLpp.js → KBChatWidget-BXRRgelS.js} +223 -223
  6. package/PhoneWidget-FWE3jD_L.js +97 -0
  7. package/{Popover-C29yJ7rz.js → Popover-MSrVDAzg.js} +7 -7
  8. package/PopupBody-DWM55Zh5-B3ysApDM.js +158 -0
  9. package/PopupDialog-DwAAJ8JS-DkxjZaJL.js +260 -0
  10. package/PopupRenderer-BVtV4b9I-Dot4Syse.js +207 -0
  11. package/{RichTextWidget-DfakML79.js → RichTextWidget-KnIKESAD.js} +189 -190
  12. package/{RteThemeProvider-BQmfSXSl.js → RteThemeProvider-DtTXGcCT.js} +2 -3
  13. package/Sonner-BsE4Y_t4.js +21 -0
  14. package/blog-content.js +71 -72
  15. package/dist-BVFCdirT.js +4471 -0
  16. package/dist-DEXGyFeH.js +376 -0
  17. package/index.d.ts +21 -11
  18. package/index.js +1702 -1390
  19. package/{themeVars.cssm-ByhhC2Jm.js → inlineBaseTheme-DcNdMEYp.js} +35 -5
  20. package/{inlineCollectionTheme-CWcMCUti.js → inlineCollectionTheme-DjXuH3bK.js} +1 -1
  21. package/{inlineRteTheme-CRPtkNXy.js → inlineRteTheme-BYGIJM7P.js} +1 -1
  22. package/{kbChat-a2dXSeRc.js → kbChat-eFsau7hG.js} +27 -27
  23. package/package.json +23 -23
  24. package/{pillChrome-CEpWGNZB.js → pillChrome-Dy3ApFI5.js} +5 -5
  25. package/popups.js +1 -1
  26. package/{react-Cj_U6VZQ.js → react-CENbCy5d.js} +6 -5
  27. package/script.esm-D4nvz3-k.js +62 -0
  28. package/script.esm-uVCZU25S.js +62 -0
  29. package/start.js +1 -1
  30. package/styles.css +1 -1
  31. package/theme.cssm-iXnQwMCp.js +238 -0
  32. package/CollectionField-C-6a1ud4.js +0 -270
  33. package/CollectionInput-BJ__qcbk.js +0 -147
  34. package/DateTimeWidget-U3lD0q1q.js +0 -255
  35. package/Dialog-dT7y641z.js +0 -130
  36. package/LevoProvider-Bsjkcwc8.js +0 -20
  37. package/PhoneWidget-DQQa4bL6.js +0 -99
  38. package/PopupBody-BI-MJqmd-DgTQEzda.js +0 -159
  39. package/PopupRenderer-D66Gx63H-Cd9xJv33.js +0 -388
  40. package/ThemeProvider-DutrjSTF.js +0 -116
  41. package/Tooltip-CQB0LyxK.js +0 -67
  42. package/VerifyButton-BUT70lgz.js +0 -192
  43. package/createThemeExtension-4AUn51iJ.js +0 -15
  44. package/dist-6AIgW_iB.js +0 -79
  45. package/dist-CEdznbFW.js +0 -3668
  46. package/inlineBaseTheme-BB9e6h5f.js +0 -9
  47. package/popupState-JmpeKzgM-D_77LiAa.js +0 -229
  48. package/react-B9yvlbH0.js +0 -74
  49. package/theme.cssm-DUzmx76l.js +0 -4
  50. package/usePopupRedirect-CAAdcpaW-Ddjyf4KK.js +0 -82
  51. /package/{content.cssm-XdMsTGIB.js → content.cssm-D_LSloGW.js} +0 -0
  52. /package/{es-ByBbirnH.js → es-CK20DkgT.js} +0 -0
  53. /package/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  54. /package/{routes-CyKmkoRM.js → routes-DO1BLfh9.js} +0 -0
  55. /package/{rteTheme.cssm-W4gTOijw.js → rteTheme.cssm-BRxusHY4.js} +0 -0
@@ -1,5 +1,32 @@
1
- //#region ../../libraries/levocn/dist/theme/utils/generateRadiusScale.js
2
- var e = (e) => ({
1
+ "use client";
2
+ import { createContext as e, useContext as t } from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { assignInlineVars as r } from "@vanilla-extract/dynamic";
5
+ //#region ../react/dist/providers/LevoProvider.js
6
+ var i = e({
7
+ client: null,
8
+ insights: null
9
+ }), a = ({ children: e, client: t, insights: r = null }) => /* @__PURE__ */ n(i.Provider, {
10
+ value: {
11
+ client: t,
12
+ insights: r
13
+ },
14
+ children: e
15
+ }), o = () => {
16
+ let e = t(i);
17
+ if (!e.client) throw Error("useLevo must be used within a LevoProvider. Please ensure you have wrapped your component tree with LevoProvider.");
18
+ return e.client;
19
+ }, s = () => t(i).client, c = () => t(i).insights, l = (e, t) => {
20
+ let n = {};
21
+ for (let r of Object.keys(t)) {
22
+ let i = t[r], a = e[r];
23
+ if (!(i === void 0 || a === void 0)) if (typeof i == "object" && i && !Array.isArray(i)) {
24
+ let e = l(a, i);
25
+ Object.assign(n, e);
26
+ } else typeof a == "string" && (n[a] = String(i));
27
+ }
28
+ return n;
29
+ }, u = (e) => (t) => t ? r(l(e, t)) : {}, d = (e) => ({
3
30
  sm: `calc(${e} * 0.5)`,
4
31
  base: e,
5
32
  md: `calc(${e} * 1.5)`,
@@ -13,7 +40,7 @@ var e = (e) => ({
13
40
  "7xl": `calc(${e} * 20)`,
14
41
  "8xl": `calc(${e} * 24)`,
15
42
  full: "100%"
16
- }), t = {
43
+ }), f = {
17
44
  colors: {
18
45
  background: "var(--_1i5egzy0)",
19
46
  foreground: "var(--_1i5egzy1)",
@@ -66,6 +93,9 @@ var e = (e) => ({
66
93
  xl: "var(--_1i5egzy16)",
67
94
  inner: "var(--_1i5egzy17)"
68
95
  }
69
- };
96
+ }, p = u(f), m = (e) => e ? e.radius && !e.radiusScale ? p({
97
+ ...e,
98
+ radiusScale: d(e.radius)
99
+ }) : p(e) : {};
70
100
  //#endregion
71
- export { e as n, t };
101
+ export { o as a, c, u as i, f as n, a as o, d as r, s, m as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createThemeExtension-4AUn51iJ.js";
1
+ import { i as e } from "./inlineBaseTheme-DcNdMEYp.js";
2
2
  //#region ../../libraries/react-collection/dist/theme/collectionThemeVars.cssm.js
3
3
  var t = {
4
4
  form: {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createThemeExtension-4AUn51iJ.js";
1
+ import { i as e } from "./inlineBaseTheme-DcNdMEYp.js";
2
2
  //#endregion
3
3
  //#region ../../libraries/editor-core/dist/theme/inlineRteTheme.js
4
4
  var t = e({
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { C as e, a as t, c as n, f as r, g as i, h as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p } from "./pillChrome-CEpWGNZB.js";
3
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
4
- import { useEffect as g, useRef as _, useState as v } from "react";
2
+ import { C as e, a as t, c as n, f as r, g as i, h as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p } from "./pillChrome-Dy3ApFI5.js";
3
+ import { useEffect as m, useRef as h, useState as g } from "react";
4
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
5
5
  import { ArrowUp as y, Sparkles as b } from "lucide-react";
6
6
  //#region ../../libraries/ai-chat/src/useActiveAgent.ts
7
7
  var x = (t) => e("active_agent", t), S = (e) => {
@@ -21,16 +21,16 @@ var x = (t) => e("active_agent", t), S = (e) => {
21
21
  t === null ? window.sessionStorage.removeItem(n) : window.sessionStorage.setItem(n, JSON.stringify(t));
22
22
  } catch {}
23
23
  }, w = ({ url: e, workspaceId: t, headers: n, path: r }) => {
24
- let [i, a] = v({ status: "loading" });
25
- g(() => {
24
+ let [i, a] = g({ status: "loading" });
25
+ m(() => {
26
26
  let e = S(t);
27
27
  a(e ? {
28
28
  status: "ready",
29
29
  agent: e
30
30
  } : (e) => e.status === "ready" ? { status: "loading" } : e);
31
31
  }, [t]);
32
- let o = _(n);
33
- return o.current = n, g(() => {
32
+ let o = h(n);
33
+ return o.current = n, m(() => {
34
34
  if (!t || !e) return;
35
35
  let n = r ? `${e}${e.includes("?") ? "&" : "?"}path=${encodeURIComponent(r)}` : e, i = new AbortController();
36
36
  return (async () => {
@@ -64,13 +64,13 @@ var x = (t) => e("active_agent", t), S = (e) => {
64
64
  e,
65
65
  r
66
66
  ]), i;
67
- }, T = (...e) => e.filter(Boolean).join(" "), E = () => import("./KBChatWidget-GRi6sLpp.js"), D = (e) => {
68
- let [t, n] = v(null), [r, i] = v(!1), [a, o] = v("");
69
- return t ? /* @__PURE__ */ m(t, {
67
+ }, T = (...e) => e.filter(Boolean).join(" "), E = () => import("./KBChatWidget-BXRRgelS.js"), D = (e) => {
68
+ let [t, n] = g(null), [r, i] = g(!1), [a, o] = g("");
69
+ return t ? /* @__PURE__ */ _(t, {
70
70
  initialOpen: !0,
71
71
  initialDraft: a,
72
72
  ...e
73
- }) : /* @__PURE__ */ m(k, {
73
+ }) : /* @__PURE__ */ _(k, {
74
74
  siteName: e.siteName,
75
75
  draft: a,
76
76
  loading: r,
@@ -84,31 +84,31 @@ var x = (t) => e("active_agent", t), S = (e) => {
84
84
  E().catch(() => {});
85
85
  }
86
86
  });
87
- }, O = () => /* @__PURE__ */ m("span", {
87
+ }, O = () => /* @__PURE__ */ _("span", {
88
88
  "aria-hidden": !0,
89
89
  className: "h-5 w-5 animate-spin rounded-full border-2 border-current border-t-transparent"
90
- }), k = ({ siteName: e, draft: i, loading: g, onDraftChange: x, onActivate: S, onPrefetch: C }) => {
91
- let w = _(null), E = _(null), D = a(e), [k, A] = v(!1);
92
- return /* @__PURE__ */ m("div", {
90
+ }), k = ({ siteName: e, draft: i, loading: m, onDraftChange: x, onActivate: S, onPrefetch: C }) => {
91
+ let w = h(null), E = h(null), D = a(e), [k, A] = g(!1);
92
+ return /* @__PURE__ */ _("div", {
93
93
  onPointerEnter: C,
94
94
  className: T("ai-chat-launcher fixed bottom-8 left-1/2 z-[60] -translate-x-1/2", u),
95
- children: /* @__PURE__ */ m("div", {
95
+ children: /* @__PURE__ */ _("div", {
96
96
  className: T(c, n, "ai-chat-intro-morph"),
97
- children: /* @__PURE__ */ h("div", {
97
+ children: /* @__PURE__ */ v("div", {
98
98
  ref: E,
99
99
  className: T(p, k && "ai-chat-pill-surface--stacked"),
100
100
  children: [
101
- /* @__PURE__ */ m("button", {
101
+ /* @__PURE__ */ _("button", {
102
102
  type: "button",
103
103
  onClick: S,
104
104
  onFocus: C,
105
105
  "aria-label": "Open AI chat",
106
106
  className: o,
107
- children: g ? /* @__PURE__ */ m(O, {}) : /* @__PURE__ */ m(b, { className: "h-5 w-5" })
107
+ children: m ? /* @__PURE__ */ _(O, {}) : /* @__PURE__ */ _(b, { className: "h-5 w-5" })
108
108
  }),
109
- /* @__PURE__ */ h("div", {
109
+ /* @__PURE__ */ v("div", {
110
110
  className: d,
111
- children: [/* @__PURE__ */ m("textarea", {
111
+ children: [/* @__PURE__ */ _("textarea", {
112
112
  ref: w,
113
113
  rows: 1,
114
114
  autoComplete: "off",
@@ -123,21 +123,21 @@ var x = (t) => e("active_agent", t), S = (e) => {
123
123
  x(t.value), E.current && A(s(E.current, t));
124
124
  },
125
125
  className: r
126
- }), !i && /* @__PURE__ */ m("span", {
126
+ }), !i && /* @__PURE__ */ _("span", {
127
127
  className: T("ai-chat-pill-label pointer-events-none absolute inset-y-0 left-0 flex max-w-full items-center truncate bg-clip-text font-semibold text-[15px] text-transparent", "ai-chat-intro-label"),
128
128
  "aria-hidden": !0,
129
129
  children: D
130
130
  })]
131
131
  }),
132
- /* @__PURE__ */ m("div", {
132
+ /* @__PURE__ */ _("div", {
133
133
  className: f,
134
- children: /* @__PURE__ */ m("button", {
134
+ children: /* @__PURE__ */ _("button", {
135
135
  type: "button",
136
136
  onClick: S,
137
137
  "aria-label": "Open AI chat",
138
138
  className: t,
139
139
  style: l,
140
- children: g ? /* @__PURE__ */ m(O, {}) : /* @__PURE__ */ m(y, { className: "h-5 w-5 stroke-[2.5px]" })
140
+ children: m ? /* @__PURE__ */ _(O, {}) : /* @__PURE__ */ _(y, { className: "h-5 w-5 stroke-[2.5px]" })
141
141
  })
142
142
  })
143
143
  ]
@@ -154,9 +154,9 @@ var x = (t) => e("active_agent", t), S = (e) => {
154
154
  } : i(o),
155
155
  path: l
156
156
  });
157
- return u.status === "ready" ? /* @__PURE__ */ m("div", {
157
+ return u.status === "ready" ? /* @__PURE__ */ _("div", {
158
158
  "data-ai-chat-root": !0,
159
- children: /* @__PURE__ */ m(D, {
159
+ children: /* @__PURE__ */ _(D, {
160
160
  workspaceId: e,
161
161
  siteName: t,
162
162
  siteLogo: n,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/site-runtime",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "Runtime for Levo Studio v3 sites — the editor preview inspector, page head metadata, and the Levo data client.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -39,15 +39,15 @@
39
39
  "dependencies": {
40
40
  "@tabler/icons-react": "3.34.1",
41
41
  "@theinternetfolks/snowflake": "1.3.0",
42
- "@tiptap/core": "3.30.0",
43
- "@tiptap/extension-subscript": "3.30.0",
44
- "@tiptap/extension-superscript": "3.30.0",
45
- "@tiptap/extension-typography": "3.30.0",
46
- "@tiptap/extension-unique-id": "3.30.0",
47
- "@tiptap/extensions": "3.30.0",
48
- "@tiptap/pm": "3.30.0",
49
- "@tiptap/react": "3.30.0",
50
- "@tiptap/starter-kit": "3.30.0",
42
+ "@tiptap/core": "3.30.6",
43
+ "@tiptap/extension-subscript": "3.30.6",
44
+ "@tiptap/extension-superscript": "3.30.6",
45
+ "@tiptap/extension-typography": "3.30.6",
46
+ "@tiptap/extension-unique-id": "3.30.6",
47
+ "@tiptap/extensions": "3.30.6",
48
+ "@tiptap/pm": "3.30.6",
49
+ "@tiptap/react": "3.30.6",
50
+ "@tiptap/starter-kit": "3.30.6",
51
51
  "altcha": "2.0.2",
52
52
  "clsx": "2.1.1",
53
53
  "dayjs": "1.11.13",
@@ -60,17 +60,17 @@
60
60
  "react-select-async-paginate": "0.7.5",
61
61
  "use-debounce": "10.0.2",
62
62
  "yup": "1.7.1",
63
- "@tiptap/extension-blockquote": "3.30.0",
64
- "@tiptap/extension-code-block": "3.30.0",
65
- "@tiptap/extension-details": "3.30.0",
66
- "@tiptap/extension-document": "3.30.0",
67
- "@tiptap/extension-horizontal-rule": "3.30.0",
68
- "@tiptap/extension-image": "3.30.0",
69
- "@tiptap/extension-link": "3.30.0",
70
- "@tiptap/extension-list": "3.30.0",
71
- "@tiptap/extension-mention": "3.30.0",
72
- "@tiptap/extension-table": "3.30.0",
73
- "@tiptap/extension-text-style": "3.30.0",
63
+ "@tiptap/extension-blockquote": "3.30.6",
64
+ "@tiptap/extension-code-block": "3.30.6",
65
+ "@tiptap/extension-details": "3.30.6",
66
+ "@tiptap/extension-document": "3.30.6",
67
+ "@tiptap/extension-horizontal-rule": "3.30.6",
68
+ "@tiptap/extension-image": "3.30.6",
69
+ "@tiptap/extension-link": "3.30.6",
70
+ "@tiptap/extension-list": "3.30.6",
71
+ "@tiptap/extension-mention": "3.30.6",
72
+ "@tiptap/extension-table": "3.30.6",
73
+ "@tiptap/extension-text-style": "3.30.6",
74
74
  "@vanilla-extract/recipes": "0.5.7",
75
75
  "lowlight": "3.1.0",
76
76
  "@vanilla-extract/dynamic": "2.1.5",
@@ -82,8 +82,8 @@
82
82
  "@assistant-ui/store": "0.3.13",
83
83
  "@assistant-ui/tap": "0.9.17",
84
84
  "remark-gfm": "4.0.1",
85
- "@levo-so/core": "0.3.19",
86
- "@levo-so/insights": "0.3.19",
85
+ "@levo-so/core": "0.3.21",
86
+ "@levo-so/insights": "0.3.21",
87
87
  "@stripe/react-stripe-js": "3.1.1",
88
88
  "@stripe/stripe-js": "5.5.0",
89
89
  "react-razorpay": "3.0.1"
@@ -38,13 +38,13 @@ var e = "disabled:cursor-not-allowed disabled:opacity-40", t = (e) => {
38
38
  let t = e.value.length;
39
39
  e.setSelectionRange(t, t);
40
40
  });
41
- }, l = (e) => typeof e == "function" ? e() : e ?? {}, u = "w-72", d = "ai-chat-pill-gradient relative rounded-[30px] p-[2px] transition-shadow duration-300", f = "shadow-lg shadow-zinc-950/10", p = "shadow-md", m = "ai-chat-pill-surface min-h-14 w-full rounded-[28px] bg-white p-1.5", h = "ai-chat-pill-surface--stacked", g = "ai-chat-pill-input relative min-w-0", _ = "ai-chat-pill-actions flex items-center gap-1.5", v = "ai-chat-pill-spark flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full text-blue-500 transition-[background-color,transform] duration-150 hover:bg-zinc-50 active:scale-95", y = "flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full shadow-sm transition-[transform,box-shadow] duration-150 hover:scale-105 hover:shadow-md active:scale-95", b = "block h-6 max-h-[120px] w-full resize-none overflow-y-auto bg-transparent text-base text-zinc-900 leading-6 placeholder:text-zinc-400 focus:outline-none", x = 24, S = (e, t) => {
41
+ }, l = (e) => typeof e == "function" ? e() : e ?? {}, u = "w-72", d = "ai-chat-pill-gradient relative rounded-[30px] p-[2px] transition-shadow duration-300", f = "shadow-lg shadow-zinc-950/10", p = "shadow-md", m = "ai-chat-pill-surface min-h-14 w-full rounded-[28px] bg-white p-1.5", h = "ai-chat-pill-surface--stacked", g = "ai-chat-pill-input relative min-w-0", _ = "ai-chat-pill-actions flex items-center gap-1.5", v = "ai-chat-pill-spark flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full text-blue-500 transition-[background-color,transform] duration-150 hover:bg-zinc-50 active:scale-95", y = "flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full shadow-sm transition-[transform,box-shadow] duration-150 hover:scale-105 hover:shadow-md active:scale-95", b = "block h-6 max-h-[120px] w-full resize-none overflow-y-auto bg-transparent text-base text-zinc-900 leading-6 placeholder:text-zinc-400 focus:outline-none", x = (e, t) => {
42
42
  e.classList.remove(h), t.style.height = "auto";
43
- let n = t.scrollHeight > x + 4;
43
+ let n = t.scrollHeight > 28;
44
44
  return e.classList.toggle(h, n), s(t, 120), n;
45
- }, C = "ai-chat-pill-label pointer-events-none absolute inset-y-0 left-0 flex max-w-full items-center truncate bg-clip-text font-semibold text-[15px] text-transparent", w = {
45
+ }, S = "ai-chat-pill-label pointer-events-none absolute inset-y-0 left-0 flex max-w-full items-center truncate bg-clip-text font-semibold text-[15px] text-transparent", C = {
46
46
  backgroundColor: "var(--color-brand, #0a0a0a)",
47
47
  color: "var(--color-brand-foreground, #fff)"
48
- }, T = (e) => e ? `Ask ${e}` : "Ask AI";
48
+ }, w = (e) => e ? `Ask ${e}` : "Ask AI";
49
49
  //#endregion
50
- export { o as C, a as S, e as _, y as a, i as b, f as c, h as d, b as f, l as g, T as h, C as i, v as l, S as m, d as n, w as o, u as p, g as r, p as s, _ as t, m as u, s as v, r as x, c as y };
50
+ export { o as C, a as S, e as _, y as a, i as b, f as c, h as d, b as f, l as g, w as h, S as i, v as l, x as m, d as n, C as o, u as p, g as r, p as s, _ as t, m as u, s as v, r as x, c as y };
package/popups.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./dist-6AIgW_iB.js";
1
+ import { t as e } from "./dist-DEXGyFeH.js";
2
2
  //#region src/popups/usePopup.ts
3
3
  var t = () => e();
4
4
  //#endregion
@@ -2391,8 +2391,9 @@ var oe = {
2391
2391
  if (!e) return "";
2392
2392
  let r = Array.isArray(e.content) ? e.content : [];
2393
2393
  if (r.length === 0) {
2394
- let e = Array.isArray(n?.previousNode?.content) ? n.previousNode.content : [];
2395
- return n?.previousNode?.type === "paragraph" && e.length === 0 ? F : "";
2394
+ var i, a;
2395
+ let e = Array.isArray(n == null || (i = n.previousNode) == null ? void 0 : i.content) ? n.previousNode.content : [];
2396
+ return (n == null || (a = n.previousNode) == null ? void 0 : a.type) === "paragraph" && e.length === 0 ? F : "";
2396
2397
  }
2397
2398
  return t.renderChildren(r);
2398
2399
  },
@@ -2517,7 +2518,7 @@ var oe = {
2517
2518
  }
2518
2519
  });
2519
2520
  //#endregion
2520
- //#region ../../node_modules/.pnpm/@tiptap+html@3.30.0_@tiptap+core@3.30.0_@tiptap+pm@3.30.0__@tiptap+pm@3.30.0_happy-dom@20.9.0/node_modules/@tiptap/html/dist/index.js
2521
+ //#region ../../node_modules/.pnpm/@tiptap+html@3.30.6_@tiptap+core@3.30.6_@tiptap+pm@3.30.6__@tiptap+pm@3.30.6_happy-dom@20.9.0/node_modules/@tiptap/html/dist/index.js
2521
2522
  function pe(e, t, n) {
2522
2523
  if (typeof window > "u") throw Error("generateJSON can only be used in a browser environment\nIf you want to use this in a Node environment, use the `@tiptap/html/server` import instead.");
2523
2524
  let r = s(t), i = new window.DOMParser().parseFromString(e, "text/html");
@@ -2525,7 +2526,7 @@ function pe(e, t, n) {
2525
2526
  return ie.fromSchema(r).parse(i.body, n).toJSON();
2526
2527
  }
2527
2528
  //#endregion
2528
- //#region ../../node_modules/.pnpm/@tiptap+static-renderer@3.30.0_@tiptap+core@3.30.0_@tiptap+pm@3.30.0__@tiptap+pm@3.30.0_32db194579d7d1b9da503a9162bec3c3/node_modules/@tiptap/static-renderer/dist/pm/react/index.js
2529
+ //#region ../../node_modules/.pnpm/@tiptap+static-renderer@3.30.6_@tiptap+core@3.30.6_@tiptap+pm@3.30.6__@tiptap+pm@3.30.6_cbb94780370b8be64a55ef8138214007/node_modules/@tiptap/static-renderer/dist/pm/react/index.js
2529
2530
  function me(e, t, n) {
2530
2531
  let r = e.attrs;
2531
2532
  return r ? t.filter((t) => t.type === (typeof e.type == "string" ? e.type : e.type.name) ? n ? t.attribute.rendered : !0 : !1).map((e) => e.attribute.renderHTML && e.attribute.renderHTML(r) || { [e.name]: e.name in r ? r[e.name] : e.attribute.default }).reduce((e, t) => f(e, t), {}) : {};
@@ -2641,7 +2642,7 @@ function Y(e) {
2641
2642
  };
2642
2643
  }
2643
2644
  function X(e) {
2644
- let t = Object.assign(/* @__PURE__ */ Object.create(null), {
2645
+ let t = Object.assign(Object.create(null), {
2645
2646
  type: { name: e.attrs[G] },
2646
2647
  attrs: e.attrs[K],
2647
2648
  toJSON: () => Y(e.toJSON())
@@ -0,0 +1,62 @@
1
+ //#region ../../node_modules/.pnpm/@cashfreepayments+cashfree-js@1.0.7/node_modules/@cashfreepayments/cashfree-js/dist/script.esm.js
2
+ var e = "https://sdk.cashfree.com/js/v3/cashfree.js", t = /^https:\/\/sdk\.cashfree\.com\/js\/v3\/.*$/, n = "load was called but an existing Cashfree.js script already exists in the document; existing script parameters will be used", r = function() {
3
+ for (var n = document.querySelectorAll(`script[src^="${e}"]`), r = 0; r < n.length; r++) {
4
+ var i = n[r];
5
+ if (t.test(i.src)) return i;
6
+ }
7
+ return null;
8
+ }, i = function(t) {
9
+ var n = "", r = document.createElement("script");
10
+ r.src = `${e}${n}`;
11
+ var i = document.head || document.body;
12
+ if (!i) throw Error("Expected document.body not to be null. Cashfree.js requires a <body> element.");
13
+ return i.appendChild(r), r;
14
+ }, a = null, o = function(e) {
15
+ return a === null && (a = new Promise(function(t, o) {
16
+ if (typeof window > "u" || typeof document > "u") {
17
+ t(null);
18
+ return;
19
+ }
20
+ if (window.Cashfree && e && console.warn(n), window.Cashfree) {
21
+ t(window.Cashfree);
22
+ return;
23
+ }
24
+ var s = 3, c = 0, l = !1;
25
+ function u(n) {
26
+ n.addEventListener("load", function() {
27
+ window.Cashfree ? t(window.Cashfree) : o(/* @__PURE__ */ Error("Cashfree.js not available"));
28
+ }), n.addEventListener("error", function() {
29
+ l || (c < s ? (l = !0, c++, n.parentNode && n.parentNode.removeChild(n), setTimeout(function() {
30
+ l = !1;
31
+ try {
32
+ u(r() || i(e));
33
+ } catch (e) {
34
+ o(e);
35
+ }
36
+ }, 100)) : (a = null, o(/* @__PURE__ */ Error("Failed to load Cashfree.js"))));
37
+ });
38
+ }
39
+ try {
40
+ var d = r();
41
+ d && e ? console.warn(n) : d ||= i(e), u(d);
42
+ } catch (e) {
43
+ o(e);
44
+ return;
45
+ }
46
+ })), a;
47
+ }, s = function(e, t, n) {
48
+ return e === null ? null : e.apply(void 0, t);
49
+ }, c = Promise.resolve().then(function() {
50
+ return o(null);
51
+ }), l = !1;
52
+ c.catch(function(e) {
53
+ l || console.warn(e);
54
+ });
55
+ var u = async function() {
56
+ var e = [...arguments];
57
+ l = !0;
58
+ var t = Date.now();
59
+ return s(await c, e, t);
60
+ };
61
+ //#endregion
62
+ export { u as load };
@@ -0,0 +1,62 @@
1
+ //#region ../../libraries/react-collection/dist/node_modules/.pnpm/@cashfreepayments_cashfree-js@1.0.7/node_modules/@cashfreepayments/cashfree-js/dist/script.esm.js
2
+ var e = "https://sdk.cashfree.com/js/v3/cashfree.js", t = /^https:\/\/sdk\.cashfree\.com\/js\/v3\/.*$/, n = "load was called but an existing Cashfree.js script already exists in the document; existing script parameters will be used", r = function() {
3
+ for (var n = document.querySelectorAll(`script[src^="${e}"]`), r = 0; r < n.length; r++) {
4
+ var i = n[r];
5
+ if (t.test(i.src)) return i;
6
+ }
7
+ return null;
8
+ }, i = function(t) {
9
+ var n = "", r = document.createElement("script");
10
+ r.src = `${e}${n}`;
11
+ var i = document.head || document.body;
12
+ if (!i) throw Error("Expected document.body not to be null. Cashfree.js requires a <body> element.");
13
+ return i.appendChild(r), r;
14
+ }, a = null, o = function(e) {
15
+ return a === null && (a = new Promise(function(t, o) {
16
+ if (typeof window > "u" || typeof document > "u") {
17
+ t(null);
18
+ return;
19
+ }
20
+ if (window.Cashfree && e && console.warn(n), window.Cashfree) {
21
+ t(window.Cashfree);
22
+ return;
23
+ }
24
+ var s = 3, c = 0, l = !1;
25
+ function u(n) {
26
+ n.addEventListener("load", function() {
27
+ window.Cashfree ? t(window.Cashfree) : o(/* @__PURE__ */ Error("Cashfree.js not available"));
28
+ }), n.addEventListener("error", function() {
29
+ l || (c < s ? (l = !0, c++, n.parentNode && n.parentNode.removeChild(n), setTimeout(function() {
30
+ l = !1;
31
+ try {
32
+ u(r() || i(e));
33
+ } catch (e) {
34
+ o(e);
35
+ }
36
+ }, 100)) : (a = null, o(/* @__PURE__ */ Error("Failed to load Cashfree.js"))));
37
+ });
38
+ }
39
+ try {
40
+ var d = r();
41
+ d && e ? console.warn(n) : d ||= i(e), u(d);
42
+ } catch (e) {
43
+ o(e);
44
+ return;
45
+ }
46
+ })), a;
47
+ }, s = function(e, t, n) {
48
+ return e === null ? null : e.apply(void 0, t);
49
+ }, c = Promise.resolve().then(function() {
50
+ return o(null);
51
+ }), l = !1;
52
+ c.catch(function(e) {
53
+ l || console.warn(e);
54
+ });
55
+ var u = async function() {
56
+ var e = [...arguments];
57
+ l = !0;
58
+ var t = Date.now();
59
+ return s(await c, e, t);
60
+ };
61
+ //#endregion
62
+ export { u as load };
package/start.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, r as n } from "./routes-CyKmkoRM.js";
1
+ import { a as e, i as t, r as n } from "./routes-DO1BLfh9.js";
2
2
  import { createMiddleware as r } from "@tanstack/react-start";
3
3
  //#region src/start/index.ts
4
4
  var i = (i, a) => {