@levo-so/studio 0.1.98 → 0.1.100
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-C3jJkLXQ.js → BillingStep-Brc1Mzo3.js} +1 -1
- package/{Button-CwN6jTXH.js → Button-XTKnNIl9.js} +11 -5
- package/{CollectionInput-BoNAc4sq.js → CollectionInput-cmJ0RXzG.js} +1 -1
- package/DateTimeWidget-B5lBr0_R.js +255 -0
- package/{EntryCard-xpo36vUc.js → EntryCard-CYdsSkIk.js} +3 -3
- package/{CollectionField-DnbpB0Z5.js → Input-Btdc1Dee.js} +115 -76
- package/{LoginCard-DG8NAN0B.js → LoginCard-5LaKaFCO.js} +3 -3
- package/{LoginModal-BPI5tOIZ.js → LoginModal-BdYM8INu.js} +3 -3
- package/{MessageCard-BYxgc9dl.js → MessageCard-ChDBqLVG.js} +2 -2
- package/{ModalManager-BaIL6HG-.js → ModalManager-SggxCIno.js} +1 -1
- package/{PendingApprovalCard-DID1FhwF.js → PendingApprovalCard-z2sdLyCa.js} +3 -3
- package/{PhoneWidget-CjhHfwuG.js → PhoneWidget-1ffYuESC.js} +11 -11
- package/{Popover-DHVZdJuv.js → Popover-BdKCElnb.js} +2 -1
- package/RichTextWidget-CjEoGecM.js +1136 -0
- package/Tooltip-BOq5vSOW.js +68 -0
- package/{VerifyButton-DFKzKYxC.js → VerifyButton-CdPQqtc2.js} +3 -2
- package/{bookingCard-Bw4tvDYh.js → bookingCard-D3ZSjq-P.js} +3 -3
- package/collection.d.ts +20 -7
- package/collection.js +7 -7
- package/dist-ir7pIkAm.js +3115 -0
- package/{getFieldValidations-qVzuq6mv.js → getFieldValidations-DZnDgNI0.js} +52 -88
- package/index.d.ts +94 -3
- package/index.js +3223 -1415
- package/{nodeAlignment-CG3qmAuQ.js → nodeAlignment-BZbdafVA.js} +41 -42
- package/package.json +8 -8
- package/studio.css +1 -1
- package/theme.cssm-2YTdd8Yh.js +15 -0
- package/{utils-F6eBcsyI.js → utils-CsfPGq4R.js} +1 -1
- package/widgets-DD4OjK2Y.js +302 -0
- package/DateTimeWidget-IRleQI-3.js +0 -255
- package/RichTextWidget-CgT1_zC3.js +0 -1135
- package/Tooltip-ByJRyayB.js +0 -78
- package/dist-B7TPxn7o.js +0 -3180
- package/theme.cssm-De_pl52g.js +0 -4
- package/widgets-Dvyv5_uj.js +0 -215
- /package/{Beams-Blr-zwvz.js → Beams-B0O3uyYF.js} +0 -0
- /package/{Dots-DeBKuibU.js → Dots-DjezbpLp.js} +0 -0
- /package/{Gradient-DGFxOjft.js → Gradient-B1K9Yi04.js} +0 -0
- /package/{Grid-A7HRCQ0T.js → Grid-C9aUfXM-.js} +0 -0
- /package/{LoginForm-CPMtCyMF.js → LoginForm-Ck-xFaDg.js} +0 -0
- /package/{MessageFooter-C6DivT4m.js → MessageFooter-AzAtJWMo.js} +0 -0
- /package/{StripePaymentModal-BcePXzmC.js → StripePaymentModal-BHIBBvRj.js} +0 -0
- /package/{Waves-CIT6Ngng.js → Waves-BkaAfGqA.js} +0 -0
- /package/{card-izMd2DvE.js → card-BQr9258p.js} +0 -0
- /package/{dialog-CCWrvmHd.js → dialog-Dw6n_36P.js} +0 -0
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./theme.cssm-
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
6
|
-
import { NodeSelection as a } from "@tiptap/pm/state";
|
|
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";
|
|
7
6
|
import { Extension as o, findParentNodeClosestToPos as s } from "@tiptap/core";
|
|
8
7
|
import { CellSelection as c, cellAround as l } from "@tiptap/pm/tables";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
19
|
className: u,
|
|
16
|
-
style:
|
|
20
|
+
style: d,
|
|
17
21
|
children: s
|
|
18
|
-
}), o[2] = s, o[3] = u, o[4] =
|
|
22
|
+
}), o[2] = s, o[3] = u, o[4] = d, o[5] = f) : f = o[5], f;
|
|
19
23
|
};
|
|
20
24
|
//#endregion
|
|
21
|
-
//#region ../../libraries/rich-text
|
|
22
|
-
function
|
|
23
|
-
return typeof e == "number" && e >= 0;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../../libraries/rich-text-editor/dist/utils/getSelectedNodeOfType.js
|
|
27
|
-
function m(e, t) {
|
|
25
|
+
//#region ../../libraries/rich-text/dist/utils/getSelectedNodeOfType.js
|
|
26
|
+
function h(e, t) {
|
|
28
27
|
let n = [], r = new Set(t);
|
|
29
28
|
if (e instanceof c) return e.forEachCell((e, t) => {
|
|
30
29
|
r.has(e.type.name) && n.push({
|
|
@@ -32,30 +31,30 @@ function m(e, t) {
|
|
|
32
31
|
pos: t
|
|
33
32
|
});
|
|
34
33
|
}), n;
|
|
35
|
-
if (e instanceof
|
|
34
|
+
if (e instanceof u) {
|
|
36
35
|
let { node: t, from: i } = e;
|
|
37
36
|
return t && r.has(t.type.name) && n.push({
|
|
38
37
|
node: t,
|
|
39
38
|
pos: i
|
|
40
39
|
}), n;
|
|
41
40
|
}
|
|
42
|
-
let { $anchor: i } = e,
|
|
43
|
-
if (
|
|
44
|
-
let t = e.$anchor.doc.nodeAt(
|
|
41
|
+
let { $anchor: i } = e, a = l(i);
|
|
42
|
+
if (a) {
|
|
43
|
+
let t = e.$anchor.doc.nodeAt(a.pos);
|
|
45
44
|
if (t && r.has(t.type.name)) return n.push({
|
|
46
45
|
node: t,
|
|
47
|
-
pos:
|
|
46
|
+
pos: a.pos
|
|
48
47
|
}), n;
|
|
49
48
|
}
|
|
50
|
-
let
|
|
51
|
-
return
|
|
52
|
-
node:
|
|
53
|
-
pos:
|
|
49
|
+
let o = s(i, (e) => r.has(e.type.name));
|
|
50
|
+
return o && n.push({
|
|
51
|
+
node: o.node,
|
|
52
|
+
pos: o.pos
|
|
54
53
|
}), n;
|
|
55
54
|
}
|
|
56
55
|
//#endregion
|
|
57
|
-
//#region ../../libraries/rich-text
|
|
58
|
-
function
|
|
56
|
+
//#region ../../libraries/rich-text/dist/utils/updateNodesAttr.js
|
|
57
|
+
function g(e, t, n, r) {
|
|
59
58
|
if (!t.length) return !1;
|
|
60
59
|
let i = !1;
|
|
61
60
|
for (let { pos: a } of t) {
|
|
@@ -69,13 +68,13 @@ function h(e, t, n, r) {
|
|
|
69
68
|
return i;
|
|
70
69
|
}
|
|
71
70
|
//#endregion
|
|
72
|
-
//#region ../../libraries/rich-text
|
|
73
|
-
function
|
|
71
|
+
//#region ../../libraries/rich-text/dist/features/nodeStyling/extension/nodeAlignment.js
|
|
72
|
+
function _(e, t, n) {
|
|
74
73
|
if (e.length === 0) return null;
|
|
75
74
|
for (let r of e) if ((r.node.attrs?.[t] ?? null) !== n) return n;
|
|
76
75
|
return null;
|
|
77
76
|
}
|
|
78
|
-
var
|
|
77
|
+
var v = o.create({
|
|
79
78
|
name: "textAlign",
|
|
80
79
|
addOptions() {
|
|
81
80
|
return {
|
|
@@ -136,18 +135,18 @@ var _ = o.create({
|
|
|
136
135
|
},
|
|
137
136
|
addCommands() {
|
|
138
137
|
let e = (e, t) => (n) => ({ state: r, tr: i }) => {
|
|
139
|
-
let a =
|
|
140
|
-
return a.length === 0 ? !1 :
|
|
138
|
+
let a = h(r.selection, this.options.types);
|
|
139
|
+
return a.length === 0 ? !1 : g(i, a, e, t(a, n));
|
|
141
140
|
};
|
|
142
141
|
return {
|
|
143
142
|
setNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : t),
|
|
144
143
|
unsetNodeTextAlign: e("textAlign", () => null),
|
|
145
|
-
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null :
|
|
144
|
+
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : _(e, "textAlign", t)),
|
|
146
145
|
setNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : t),
|
|
147
146
|
unsetNodeVAlign: e("nodeVerticalAlign", () => null),
|
|
148
|
-
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null :
|
|
147
|
+
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : _(e, "nodeVerticalAlign", t)),
|
|
149
148
|
setNodeAlignment: (e, t) => ({ state: n, tr: r }) => {
|
|
150
|
-
let i =
|
|
149
|
+
let i = h(n.selection, this.options.types);
|
|
151
150
|
if (i.length === 0) return !1;
|
|
152
151
|
let a = !1;
|
|
153
152
|
for (let { node: n, pos: o } of i) {
|
|
@@ -157,7 +156,7 @@ var _ = o.create({
|
|
|
157
156
|
return a;
|
|
158
157
|
},
|
|
159
158
|
unsetNodeAlignment: () => ({ state: e, tr: t }) => {
|
|
160
|
-
let n =
|
|
159
|
+
let n = h(e.selection, this.options.types);
|
|
161
160
|
if (n.length === 0) return !1;
|
|
162
161
|
let r = !1;
|
|
163
162
|
for (let { node: e, pos: i } of n) {
|
|
@@ -177,4 +176,4 @@ var _ = o.create({
|
|
|
177
176
|
}
|
|
178
177
|
});
|
|
179
178
|
//#endregion
|
|
180
|
-
export { f as a,
|
|
179
|
+
export { f as a, m as i, g as n, d as o, h as r, v 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.100",
|
|
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",
|
|
@@ -65,12 +65,11 @@
|
|
|
65
65
|
"@theinternetfolks/snowflake": "1.3.0",
|
|
66
66
|
"altcha": "2.0.2",
|
|
67
67
|
"lodash.range": "3.2.0",
|
|
68
|
+
"react-hook-form": "^7.69.0",
|
|
68
69
|
"react-dropzone": "14.3.8",
|
|
69
70
|
"react-number-format": "5.4.4",
|
|
70
71
|
"react-phone-number-input": "3.4.14",
|
|
71
72
|
"react-select-async-paginate": "0.7.5",
|
|
72
|
-
"react-hook-form": "^7.69.0",
|
|
73
|
-
"@floating-ui/react": "0.27.16",
|
|
74
73
|
"@tiptap/core": "3.19.0",
|
|
75
74
|
"@tiptap/extension-blockquote": "3.19.0",
|
|
76
75
|
"@tiptap/extension-bold": "3.19.0",
|
|
@@ -78,7 +77,6 @@
|
|
|
78
77
|
"@tiptap/extension-character-count": "3.19.0",
|
|
79
78
|
"@tiptap/extension-code": "3.19.0",
|
|
80
79
|
"@tiptap/extension-code-block": "3.19.0",
|
|
81
|
-
"@tiptap/extension-code-block-lowlight": "3.19.0",
|
|
82
80
|
"@tiptap/extension-color": "3.19.0",
|
|
83
81
|
"@tiptap/extension-details": "3.19.0",
|
|
84
82
|
"@tiptap/extension-details-content": "2.27.2",
|
|
@@ -108,7 +106,6 @@
|
|
|
108
106
|
"@tiptap/extension-subscript": "3.19.0",
|
|
109
107
|
"@tiptap/extension-superscript": "3.19.0",
|
|
110
108
|
"@tiptap/extension-table": "3.19.0",
|
|
111
|
-
"@tiptap/extension-table-of-contents": "3.19.0",
|
|
112
109
|
"@tiptap/extension-text": "3.19.0",
|
|
113
110
|
"@tiptap/extension-text-align": "3.19.0",
|
|
114
111
|
"@tiptap/extension-text-style": "3.19.0",
|
|
@@ -123,15 +120,18 @@
|
|
|
123
120
|
"@tiptap/starter-kit": "3.19.0",
|
|
124
121
|
"@tiptap/static-renderer": "3.19.0",
|
|
125
122
|
"@tiptap/suggestion": "3.19.0",
|
|
126
|
-
"is-hotkey": "0.2.0",
|
|
127
123
|
"lowlight": "3.1.0",
|
|
124
|
+
"@floating-ui/react": "0.27.16",
|
|
125
|
+
"@tiptap/extension-code-block-lowlight": "3.19.0",
|
|
126
|
+
"@tiptap/extension-table-of-contents": "3.19.0",
|
|
127
|
+
"is-hotkey": "0.2.0",
|
|
128
128
|
"react-colorful": "5.6.1",
|
|
129
129
|
"react-hotkeys-hook": "5.2.1",
|
|
130
130
|
"react-textarea-autosize": "8.5.9"
|
|
131
131
|
},
|
|
132
132
|
"peerDependencies": {
|
|
133
|
-
"react": ">=
|
|
134
|
-
"react-dom": ">=
|
|
133
|
+
"react": ">=19",
|
|
134
|
+
"react-dom": ">=19",
|
|
135
135
|
"@levo-so/core": "0.1.82",
|
|
136
136
|
"@levo-so/react": "0.1.86"
|
|
137
137
|
}
|