@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.
- package/BillingStep-ByiYjJ0S.js +251 -0
- package/BookingCard-DdwLHVGw.js +816 -0
- package/CollectionLabel-CmUFfc_7.js +35 -0
- package/DateTimeWidget-Bk2tk_CT.js +254 -0
- package/{KBChatWidget-GRi6sLpp.js → KBChatWidget-BXRRgelS.js} +223 -223
- package/PhoneWidget-FWE3jD_L.js +97 -0
- package/{Popover-C29yJ7rz.js → Popover-MSrVDAzg.js} +7 -7
- package/PopupBody-DWM55Zh5-B3ysApDM.js +158 -0
- package/PopupDialog-DwAAJ8JS-DkxjZaJL.js +260 -0
- package/PopupRenderer-BVtV4b9I-Dot4Syse.js +207 -0
- package/{RichTextWidget-DfakML79.js → RichTextWidget-KnIKESAD.js} +189 -190
- package/{RteThemeProvider-BQmfSXSl.js → RteThemeProvider-DtTXGcCT.js} +2 -3
- package/Sonner-BsE4Y_t4.js +21 -0
- package/blog-content.js +71 -72
- package/dist-BVFCdirT.js +4471 -0
- package/dist-DEXGyFeH.js +376 -0
- package/index.d.ts +21 -11
- package/index.js +1702 -1390
- package/{themeVars.cssm-ByhhC2Jm.js → inlineBaseTheme-DcNdMEYp.js} +35 -5
- package/{inlineCollectionTheme-CWcMCUti.js → inlineCollectionTheme-DjXuH3bK.js} +1 -1
- package/{inlineRteTheme-CRPtkNXy.js → inlineRteTheme-BYGIJM7P.js} +1 -1
- package/{kbChat-a2dXSeRc.js → kbChat-eFsau7hG.js} +27 -27
- package/package.json +23 -23
- package/{pillChrome-CEpWGNZB.js → pillChrome-Dy3ApFI5.js} +5 -5
- package/popups.js +1 -1
- package/{react-Cj_U6VZQ.js → react-CENbCy5d.js} +6 -5
- package/script.esm-D4nvz3-k.js +62 -0
- package/script.esm-uVCZU25S.js +62 -0
- package/start.js +1 -1
- package/styles.css +1 -1
- package/theme.cssm-iXnQwMCp.js +238 -0
- package/CollectionField-C-6a1ud4.js +0 -270
- package/CollectionInput-BJ__qcbk.js +0 -147
- package/DateTimeWidget-U3lD0q1q.js +0 -255
- package/Dialog-dT7y641z.js +0 -130
- package/LevoProvider-Bsjkcwc8.js +0 -20
- package/PhoneWidget-DQQa4bL6.js +0 -99
- package/PopupBody-BI-MJqmd-DgTQEzda.js +0 -159
- package/PopupRenderer-D66Gx63H-Cd9xJv33.js +0 -388
- package/ThemeProvider-DutrjSTF.js +0 -116
- package/Tooltip-CQB0LyxK.js +0 -67
- package/VerifyButton-BUT70lgz.js +0 -192
- package/createThemeExtension-4AUn51iJ.js +0 -15
- package/dist-6AIgW_iB.js +0 -79
- package/dist-CEdznbFW.js +0 -3668
- package/inlineBaseTheme-BB9e6h5f.js +0 -9
- package/popupState-JmpeKzgM-D_77LiAa.js +0 -229
- package/react-B9yvlbH0.js +0 -74
- package/theme.cssm-DUzmx76l.js +0 -4
- package/usePopupRedirect-CAAdcpaW-Ddjyf4KK.js +0 -82
- /package/{content.cssm-XdMsTGIB.js → content.cssm-D_LSloGW.js} +0 -0
- /package/{es-ByBbirnH.js → es-CK20DkgT.js} +0 -0
- /package/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
- /package/{routes-CyKmkoRM.js → routes-DO1BLfh9.js} +0 -0
- /package/{rteTheme.cssm-W4gTOijw.js → rteTheme.cssm-BRxusHY4.js} +0 -0
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
}),
|
|
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 {
|
|
101
|
+
export { o as a, c, u as i, f as n, a as o, d as r, s, m as t };
|
|
@@ -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-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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] =
|
|
25
|
-
|
|
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 =
|
|
33
|
-
return o.current = n,
|
|
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-
|
|
68
|
-
let [t, n] =
|
|
69
|
-
return t ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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:
|
|
91
|
-
let w =
|
|
92
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
95
|
+
children: /* @__PURE__ */ _("div", {
|
|
96
96
|
className: T(c, n, "ai-chat-intro-morph"),
|
|
97
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
107
|
+
children: m ? /* @__PURE__ */ _(O, {}) : /* @__PURE__ */ _(b, { className: "h-5 w-5" })
|
|
108
108
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ v("div", {
|
|
110
110
|
className: d,
|
|
111
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
132
|
+
/* @__PURE__ */ _("div", {
|
|
133
133
|
className: f,
|
|
134
|
-
children: /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
157
|
+
return u.status === "ready" ? /* @__PURE__ */ _("div", {
|
|
158
158
|
"data-ai-chat-root": !0,
|
|
159
|
-
children: /* @__PURE__ */
|
|
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.
|
|
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.
|
|
43
|
-
"@tiptap/extension-subscript": "3.30.
|
|
44
|
-
"@tiptap/extension-superscript": "3.30.
|
|
45
|
-
"@tiptap/extension-typography": "3.30.
|
|
46
|
-
"@tiptap/extension-unique-id": "3.30.
|
|
47
|
-
"@tiptap/extensions": "3.30.
|
|
48
|
-
"@tiptap/pm": "3.30.
|
|
49
|
-
"@tiptap/react": "3.30.
|
|
50
|
-
"@tiptap/starter-kit": "3.30.
|
|
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.
|
|
64
|
-
"@tiptap/extension-code-block": "3.30.
|
|
65
|
-
"@tiptap/extension-details": "3.30.
|
|
66
|
-
"@tiptap/extension-document": "3.30.
|
|
67
|
-
"@tiptap/extension-horizontal-rule": "3.30.
|
|
68
|
-
"@tiptap/extension-image": "3.30.
|
|
69
|
-
"@tiptap/extension-link": "3.30.
|
|
70
|
-
"@tiptap/extension-list": "3.30.
|
|
71
|
-
"@tiptap/extension-mention": "3.30.
|
|
72
|
-
"@tiptap/extension-table": "3.30.
|
|
73
|
-
"@tiptap/extension-text-style": "3.30.
|
|
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.
|
|
86
|
-
"@levo-so/insights": "0.3.
|
|
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 =
|
|
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 >
|
|
43
|
+
let n = t.scrollHeight > 28;
|
|
44
44
|
return e.classList.toggle(h, n), s(t, 120), n;
|
|
45
|
-
},
|
|
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
|
-
},
|
|
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,
|
|
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
|
@@ -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
|
-
|
|
2395
|
-
|
|
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.
|
|
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.
|
|
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(
|
|
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