@levo-so/studio 0.1.99 → 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-CD-nP5Zg.js → BillingStep-Brc1Mzo3.js} +1 -1
- package/{Button-BN9tHQ7U.js → Button-XTKnNIl9.js} +11 -5
- package/{CollectionInput-57OEuaRO.js → CollectionInput-cmJ0RXzG.js} +1 -1
- package/DateTimeWidget-B5lBr0_R.js +255 -0
- package/{EntryCard-DMxKxYzC.js → EntryCard-CYdsSkIk.js} +3 -3
- package/{CollectionField-BpRjsPIl.js → Input-Btdc1Dee.js} +115 -76
- package/{LoginCard-Dgl3uq38.js → LoginCard-5LaKaFCO.js} +3 -3
- package/{LoginModal-CVh8k24t.js → LoginModal-BdYM8INu.js} +3 -3
- package/{MessageCard-BYxgc9dl.js → MessageCard-ChDBqLVG.js} +2 -2
- package/{ModalManager-D2pV7Ba2.js → ModalManager-SggxCIno.js} +1 -1
- package/{PendingApprovalCard-ZIhBzT3K.js → PendingApprovalCard-z2sdLyCa.js} +3 -3
- package/{PhoneWidget-cSp-CqJl.js → PhoneWidget-1ffYuESC.js} +11 -11
- package/{Popover-ieqK7ZXF.js → Popover-BdKCElnb.js} +2 -1
- package/RichTextWidget-CjEoGecM.js +1136 -0
- package/{Tooltip-9zds9Zoi.js → Tooltip-BOq5vSOW.js} +2 -1
- package/{VerifyButton-faa0wOES.js → VerifyButton-CdPQqtc2.js} +3 -2
- package/{bookingCard-OUT621LL.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-j341NV59.js → getFieldValidations-DZnDgNI0.js} +48 -87
- package/index.d.ts +6 -4
- package/index.js +3017 -1242
- package/{nodeAlignment-UpurkBVP.js → nodeAlignment-BZbdafVA.js} +31 -32
- package/package.json +10 -10
- package/studio.css +1 -1
- package/{utils-C_ATWxPM.js → utils-CsfPGq4R.js} +1 -1
- package/{widgets-BHUjv2OM.js → widgets-DD4OjK2Y.js} +87 -74
- package/DateTimeWidget-BlOQYia2.js +0 -255
- package/RichTextWidget-BeUcHYmx.js +0 -1131
- package/dist-IAADcuph.js +0 -3113
- /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-DC-ySB_o.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-BJpM4UEG.js → dialog-Dw6n_36P.js} +0 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
2
2
|
import { n as t, t as n } from "./theme.cssm-2YTdd8Yh.js";
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { c as i } from "react/compiler-runtime";
|
|
5
5
|
import a from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
//#region ../../libraries/rich-text
|
|
10
|
-
var d = "
|
|
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) => {
|
|
11
15
|
let o = i(6), { children: s, theme: c } = t, l = c?.className, u;
|
|
12
16
|
o[0] === l ? u = o[1] : (u = a(n, p, l), o[0] = l, o[1] = u);
|
|
13
17
|
let d = c?.style, f;
|
|
@@ -18,28 +22,23 @@ var d = "d3c9ok0", f = t({ baseSpacing: "var(--_1wlnmgm0)" }), p = "_7afiv40", m
|
|
|
18
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 h(e) {
|
|
23
|
-
return typeof e == "number" && e >= 0;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../../libraries/rich-text-editor/dist/utils/getSelectedNodeOfType.js
|
|
27
|
-
function g(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
|
-
if (e instanceof
|
|
28
|
+
if (e instanceof c) return e.forEachCell((e, t) => {
|
|
30
29
|
r.has(e.type.name) && n.push({
|
|
31
30
|
node: e,
|
|
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, a =
|
|
41
|
+
let { $anchor: i } = e, a = l(i);
|
|
43
42
|
if (a) {
|
|
44
43
|
let t = e.$anchor.doc.nodeAt(a.pos);
|
|
45
44
|
if (t && r.has(t.type.name)) return n.push({
|
|
@@ -47,15 +46,15 @@ function g(e, t) {
|
|
|
47
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 _(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 y = s.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 y = s.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 y = s.create({
|
|
|
177
176
|
}
|
|
178
177
|
});
|
|
179
178
|
//#endregion
|
|
180
|
-
export {
|
|
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,16 +120,19 @@
|
|
|
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": ">=
|
|
135
|
-
"@levo-so/
|
|
136
|
-
"@levo-so/
|
|
133
|
+
"react": ">=19",
|
|
134
|
+
"react-dom": ">=19",
|
|
135
|
+
"@levo-so/core": "0.1.82",
|
|
136
|
+
"@levo-so/react": "0.1.86"
|
|
137
137
|
}
|
|
138
138
|
}
|