@levo-so/studio 0.1.100 → 0.1.102
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/Beams-DkcjMVZl.js +102 -0
- package/{BillingStep-Brc1Mzo3.js → BillingStep-BTRobf00.js} +1 -1
- package/{Button-XTKnNIl9.js → Button-DTrN8kki.js} +32 -18
- package/{Input-Btdc1Dee.js → CollectionField-7uXvhxYK.js} +57 -76
- package/CollectionInput-lHOvWWav.js +147 -0
- package/{DateTimeWidget-B5lBr0_R.js → DateTimeWidget-BHCP5osb.js} +9 -9
- package/Dots-BrEPvoj3.js +100 -0
- package/{EntryCard-CYdsSkIk.js → EntryCard-CqZlbw1Z.js} +6 -6
- package/Grid-B4XWU9eL.js +99 -0
- package/{LoginCard-5LaKaFCO.js → LoginCard-DWLnYJJU.js} +3 -3
- package/{LoginForm-Ck-xFaDg.js → LoginForm-CEUbBeE3.js} +23 -22
- package/{LoginModal-BdYM8INu.js → LoginModal-AWNLO49X.js} +3 -3
- package/{MessageCard-ChDBqLVG.js → MessageCard-C5ULcfuw.js} +2 -2
- package/{MessageFooter-AzAtJWMo.js → MessageFooter-CATwNJJU.js} +1 -1
- package/{ModalManager-SggxCIno.js → ModalManager-DQXhkmyC.js} +1 -1
- package/{PendingApprovalCard-z2sdLyCa.js → PendingApprovalCard-BowwZMBu.js} +3 -3
- package/{PhoneWidget-1ffYuESC.js → PhoneWidget-C6uZmrk8.js} +3 -3
- package/{Popover-BdKCElnb.js → Popover-Du4iigVw.js} +1 -1
- package/RichTextWidget-iYdVRBGB.js +112 -0
- package/Toolbar-BHi_B-nE.js +737 -0
- package/{Tooltip-BOq5vSOW.js → Tooltip-K_gFzjOa.js} +1 -1
- package/{VerifyButton-CdPQqtc2.js → VerifyButton-D21AOIX3.js} +92 -103
- package/authentication-fXmNYss1.js +36 -0
- package/{bookingCard-D3ZSjq-P.js → bookingCard--NlgtcJs.js} +3 -3
- package/collection.d.ts +83 -0
- package/collection.js +9 -8
- package/{dist-ir7pIkAm.js → dist-x5VFEnQl.js} +1167 -1097
- package/index.d.ts +43 -12
- package/index.js +1517 -1441
- package/inlineRteTheme-Cn_Vqgsm.js +23 -0
- package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DoVbjk29.js} +39 -60
- package/package.json +2 -2
- package/studio.css +1 -1
- package/useLogin-D2VCOHYI.js +127 -0
- package/{utils-CsfPGq4R.js → utils-Bh9uGjo1.js} +1 -1
- package/{widgets-DD4OjK2Y.js → widgets-CG5Z_dk7.js} +49 -54
- package/Beams-B0O3uyYF.js +0 -118
- package/CollectionInput-cmJ0RXzG.js +0 -132
- package/Dots-DjezbpLp.js +0 -137
- package/Grid-C9aUfXM-.js +0 -145
- package/RichTextWidget-CjEoGecM.js +0 -1136
- /package/{Gradient-B1K9Yi04.js → Gradient-B4Er9hym.js} +0 -0
- /package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DC-ySB_o.js} +0 -0
- /package/{Waves-BkaAfGqA.js → Waves-kW-EBDdJ.js} +0 -0
- /package/{card-BQr9258p.js → card-BwNr7kQS.js} +0 -0
- /package/{dialog-Dw6n_36P.js → dialog-CCWrvmHd.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { r as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
2
|
+
import { n as t, t as n } from "./theme.cssm-2YTdd8Yh.js";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { c as i } from "react/compiler-runtime";
|
|
5
|
+
import a from "clsx";
|
|
6
|
+
//#region ../../libraries/rich-text/dist/styles/content.cssm.js
|
|
7
|
+
var o = "_1b7up5r0", s = "jfprpn0", c = {
|
|
8
|
+
baseSpacing: "var(--oox3jg0)",
|
|
9
|
+
highlight: "var(--oox3jg1)",
|
|
10
|
+
highlightForeground: "var(--oox3jg2)"
|
|
11
|
+
}, l = (t) => {
|
|
12
|
+
let o = i(7), { children: c, theme: l } = t, u = l?.className, d;
|
|
13
|
+
o[0] === u ? d = o[1] : (d = a(n, s, u), o[0] = u, o[1] = d);
|
|
14
|
+
let f = l?.style, p = l?.portalToThemeRoot, m;
|
|
15
|
+
return o[2] !== c || o[3] !== d || o[4] !== f || o[5] !== p ? (m = /* @__PURE__ */ r(e, {
|
|
16
|
+
className: d,
|
|
17
|
+
style: f,
|
|
18
|
+
portalToThemeRoot: p,
|
|
19
|
+
children: c
|
|
20
|
+
}), o[2] = c, o[3] = d, o[4] = f, o[5] = p, o[6] = m) : m = o[6], m;
|
|
21
|
+
}, u = t(c);
|
|
22
|
+
//#endregion
|
|
23
|
+
export { l as n, o as r, u as t };
|
|
@@ -1,60 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as i } from "react/compiler-runtime";
|
|
5
|
-
import a from "clsx";
|
|
6
|
-
import { Extension as o, findParentNodeClosestToPos as s } from "@tiptap/core";
|
|
7
|
-
import { CellSelection as c, cellAround as l } from "@tiptap/pm/tables";
|
|
8
|
-
import { NodeSelection as u } from "@tiptap/pm/state";
|
|
9
|
-
//#region ../../libraries/rich-text/dist/styles/content.cssm.js
|
|
10
|
-
var d = "_1b7up5r0", f = t({
|
|
11
|
-
baseSpacing: "var(--oox3jg0)",
|
|
12
|
-
highlight: "var(--oox3jg1)",
|
|
13
|
-
highlightForeground: "var(--oox3jg2)"
|
|
14
|
-
}), p = "jfprpn0", m = (t) => {
|
|
15
|
-
let o = i(6), { children: s, theme: c } = t, l = c?.className, u;
|
|
16
|
-
o[0] === l ? u = o[1] : (u = a(n, p, l), o[0] = l, o[1] = u);
|
|
17
|
-
let d = c?.style, f;
|
|
18
|
-
return o[2] !== s || o[3] !== u || o[4] !== d ? (f = /* @__PURE__ */ r(e, {
|
|
19
|
-
className: u,
|
|
20
|
-
style: d,
|
|
21
|
-
children: s
|
|
22
|
-
}), o[2] = s, o[3] = u, o[4] = d, o[5] = f) : f = o[5], f;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
1
|
+
import { Extension as e, findParentNodeClosestToPos as t } from "@tiptap/core";
|
|
2
|
+
import { CellSelection as n, cellAround as r } from "@tiptap/pm/tables";
|
|
3
|
+
import { NodeSelection as i } from "@tiptap/pm/state";
|
|
25
4
|
//#region ../../libraries/rich-text/dist/utils/getSelectedNodeOfType.js
|
|
26
|
-
function
|
|
27
|
-
let
|
|
28
|
-
if (e instanceof
|
|
29
|
-
|
|
5
|
+
function a(e, a) {
|
|
6
|
+
let o = [], s = new Set(a);
|
|
7
|
+
if (e instanceof n) return e.forEachCell((e, t) => {
|
|
8
|
+
s.has(e.type.name) && o.push({
|
|
30
9
|
node: e,
|
|
31
10
|
pos: t
|
|
32
11
|
});
|
|
33
|
-
}),
|
|
34
|
-
if (e instanceof
|
|
35
|
-
let { node: t, from:
|
|
36
|
-
return t &&
|
|
12
|
+
}), o;
|
|
13
|
+
if (e instanceof i) {
|
|
14
|
+
let { node: t, from: n } = e;
|
|
15
|
+
return t && s.has(t.type.name) && o.push({
|
|
37
16
|
node: t,
|
|
38
|
-
pos:
|
|
39
|
-
}),
|
|
17
|
+
pos: n
|
|
18
|
+
}), o;
|
|
40
19
|
}
|
|
41
|
-
let { $anchor:
|
|
42
|
-
if (
|
|
43
|
-
let t = e.$anchor.doc.nodeAt(
|
|
44
|
-
if (t &&
|
|
20
|
+
let { $anchor: c } = e, l = r(c);
|
|
21
|
+
if (l) {
|
|
22
|
+
let t = e.$anchor.doc.nodeAt(l.pos);
|
|
23
|
+
if (t && s.has(t.type.name)) return o.push({
|
|
45
24
|
node: t,
|
|
46
|
-
pos:
|
|
47
|
-
}),
|
|
25
|
+
pos: l.pos
|
|
26
|
+
}), o;
|
|
48
27
|
}
|
|
49
|
-
let
|
|
50
|
-
return
|
|
51
|
-
node:
|
|
52
|
-
pos:
|
|
53
|
-
}),
|
|
28
|
+
let u = t(c, (e) => s.has(e.type.name));
|
|
29
|
+
return u && o.push({
|
|
30
|
+
node: u.node,
|
|
31
|
+
pos: u.pos
|
|
32
|
+
}), o;
|
|
54
33
|
}
|
|
55
34
|
//#endregion
|
|
56
35
|
//#region ../../libraries/rich-text/dist/utils/updateNodesAttr.js
|
|
57
|
-
function
|
|
36
|
+
function o(e, t, n, r) {
|
|
58
37
|
if (!t.length) return !1;
|
|
59
38
|
let i = !1;
|
|
60
39
|
for (let { pos: a } of t) {
|
|
@@ -68,13 +47,13 @@ function g(e, t, n, r) {
|
|
|
68
47
|
return i;
|
|
69
48
|
}
|
|
70
49
|
//#endregion
|
|
71
|
-
//#region ../../libraries/rich-text/dist/
|
|
72
|
-
function
|
|
50
|
+
//#region ../../libraries/rich-text/dist/extensions/nodeStyling/nodeAlignment.js
|
|
51
|
+
function s(e, t, n) {
|
|
73
52
|
if (e.length === 0) return null;
|
|
74
53
|
for (let r of e) if ((r.node.attrs?.[t] ?? null) !== n) return n;
|
|
75
54
|
return null;
|
|
76
55
|
}
|
|
77
|
-
var
|
|
56
|
+
var c = e.create({
|
|
78
57
|
name: "textAlign",
|
|
79
58
|
addOptions() {
|
|
80
59
|
return {
|
|
@@ -135,28 +114,28 @@ var v = o.create({
|
|
|
135
114
|
},
|
|
136
115
|
addCommands() {
|
|
137
116
|
let e = (e, t) => (n) => ({ state: r, tr: i }) => {
|
|
138
|
-
let
|
|
139
|
-
return
|
|
117
|
+
let s = a(r.selection, this.options.types);
|
|
118
|
+
return s.length === 0 ? !1 : o(i, s, e, t(s, n));
|
|
140
119
|
};
|
|
141
120
|
return {
|
|
142
121
|
setNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : t),
|
|
143
122
|
unsetNodeTextAlign: e("textAlign", () => null),
|
|
144
|
-
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null :
|
|
123
|
+
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : s(e, "textAlign", t)),
|
|
145
124
|
setNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : t),
|
|
146
125
|
unsetNodeVAlign: e("nodeVerticalAlign", () => null),
|
|
147
|
-
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null :
|
|
126
|
+
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : s(e, "nodeVerticalAlign", t)),
|
|
148
127
|
setNodeAlignment: (e, t) => ({ state: n, tr: r }) => {
|
|
149
|
-
let i =
|
|
128
|
+
let i = a(n.selection, this.options.types);
|
|
150
129
|
if (i.length === 0) return !1;
|
|
151
|
-
let
|
|
152
|
-
for (let { node: n, pos:
|
|
130
|
+
let o = !1;
|
|
131
|
+
for (let { node: n, pos: a } of i) {
|
|
153
132
|
let i = { ...n.attrs };
|
|
154
|
-
e && this.options.textAlignValues.includes(e) && (i.textAlign = e,
|
|
133
|
+
e && this.options.textAlignValues.includes(e) && (i.textAlign = e, o = !0), t && this.options.verticalAlignValues.includes(t) && (i.nodeVerticalAlign = t, o = !0), o && r.setNodeMarkup(a, void 0, i);
|
|
155
134
|
}
|
|
156
|
-
return
|
|
135
|
+
return o;
|
|
157
136
|
},
|
|
158
137
|
unsetNodeAlignment: () => ({ state: e, tr: t }) => {
|
|
159
|
-
let n =
|
|
138
|
+
let n = a(e.selection, this.options.types);
|
|
160
139
|
if (n.length === 0) return !1;
|
|
161
140
|
let r = !1;
|
|
162
141
|
for (let { node: e, pos: i } of n) {
|
|
@@ -176,4 +155,4 @@ var v = o.create({
|
|
|
176
155
|
}
|
|
177
156
|
});
|
|
178
157
|
//#endregion
|
|
179
|
-
export {
|
|
158
|
+
export { o as n, a as r, c as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.102",
|
|
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",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@vanilla-extract/recipes": "0.5.7",
|
|
64
64
|
"clsx": "2.1.1",
|
|
65
65
|
"@theinternetfolks/snowflake": "1.3.0",
|
|
66
|
+
"@tiptap/pm": "3.19.0",
|
|
66
67
|
"altcha": "2.0.2",
|
|
67
68
|
"lodash.range": "3.2.0",
|
|
68
69
|
"react-hook-form": "^7.69.0",
|
|
@@ -115,7 +116,6 @@
|
|
|
115
116
|
"@tiptap/extension-youtube": "3.19.0",
|
|
116
117
|
"@tiptap/extensions": "3.19.0",
|
|
117
118
|
"@tiptap/html": "3.20.0",
|
|
118
|
-
"@tiptap/pm": "3.19.0",
|
|
119
119
|
"@tiptap/react": "3.19.0",
|
|
120
120
|
"@tiptap/starter-kit": "3.19.0",
|
|
121
121
|
"@tiptap/static-renderer": "3.19.0",
|