@levo-so/studio 0.1.96 → 0.1.99
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-CD-nP5Zg.js} +1 -1
- package/{Button-CwN6jTXH.js → Button-BN9tHQ7U.js} +1 -1
- package/{CollectionInput-BoNAc4sq.js → CollectionInput-57OEuaRO.js} +1 -1
- package/{DateTimeWidget-IRleQI-3.js → DateTimeWidget-BlOQYia2.js} +4 -4
- package/{EntryCard-CZIUBwtE.js → EntryCard-DMxKxYzC.js} +1 -1
- package/{LoginCard-Bthy9dcf.js → LoginCard-Dgl3uq38.js} +1 -1
- package/{LoginModal-BPI5tOIZ.js → LoginModal-CVh8k24t.js} +2 -2
- package/{ModalManager-BaIL6HG-.js → ModalManager-D2pV7Ba2.js} +1 -1
- package/{PendingApprovalCard-DEnawzxD.js → PendingApprovalCard-ZIhBzT3K.js} +1 -1
- package/{PhoneWidget-CjhHfwuG.js → PhoneWidget-cSp-CqJl.js} +4 -4
- package/{Popover-DHVZdJuv.js → Popover-ieqK7ZXF.js} +1 -1
- package/{RichTextWidget-CgT1_zC3.js → RichTextWidget-BeUcHYmx.js} +337 -341
- package/Tooltip-9zds9Zoi.js +67 -0
- package/{VerifyButton-DFKzKYxC.js → VerifyButton-faa0wOES.js} +2 -2
- package/{bookingCard-Bw4tvDYh.js → bookingCard-OUT621LL.js} +3 -3
- package/collection.js +7 -7
- package/dist-IAADcuph.js +3113 -0
- package/{getFieldValidations-qVzuq6mv.js → getFieldValidations-j341NV59.js} +5 -2
- package/index.d.ts +90 -1
- package/index.js +1227 -1194
- package/{nodeAlignment-CG3qmAuQ.js → nodeAlignment-UpurkBVP.js} +37 -37
- package/package.json +3 -3
- package/studio.css +1 -1
- package/theme.cssm-2YTdd8Yh.js +15 -0
- package/{utils-F6eBcsyI.js → utils-C_ATWxPM.js} +1 -1
- package/widgets-BHUjv2OM.js +289 -0
- package/Tooltip-ByJRyayB.js +0 -78
- package/dist-D_jY4Tf1.js +0 -3168
- package/theme.cssm-De_pl52g.js +0 -4
- package/widgets-Dvyv5_uj.js +0 -215
- /package/{CollectionField-DnbpB0Z5.js → CollectionField-BpRjsPIl.js} +0 -0
- /package/{StripePaymentModal-BcePXzmC.js → StripePaymentModal-DC-ySB_o.js} +0 -0
- /package/{dialog-CCWrvmHd.js → dialog-BJpM4UEG.js} +0 -0
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { a as e } from "./getFieldValidations-
|
|
2
|
-
import { t } from "./theme.cssm-
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
6
|
-
import { NodeSelection as
|
|
7
|
-
import { Extension as
|
|
8
|
-
import { CellSelection as
|
|
1
|
+
import { a as e } from "./getFieldValidations-j341NV59.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
|
+
import { NodeSelection as o } from "@tiptap/pm/state";
|
|
7
|
+
import { Extension as s, findParentNodeClosestToPos as c } from "@tiptap/core";
|
|
8
|
+
import { CellSelection as l, cellAround as u } from "@tiptap/pm/tables";
|
|
9
9
|
//#region ../../libraries/rich-text-editor/dist/styles/content.cssm.js
|
|
10
|
-
var
|
|
11
|
-
let o =
|
|
12
|
-
o[0] === l ? u = o[1] : (u =
|
|
13
|
-
let
|
|
14
|
-
return o[2] !== s || o[3] !== u || o[4] !==
|
|
10
|
+
var d = "d3c9ok0", f = t({ baseSpacing: "var(--_1wlnmgm0)" }), p = "_7afiv40", m = (t) => {
|
|
11
|
+
let o = i(6), { children: s, theme: c } = t, l = c?.className, u;
|
|
12
|
+
o[0] === l ? u = o[1] : (u = a(n, p, l), o[0] = l, o[1] = u);
|
|
13
|
+
let d = c?.style, f;
|
|
14
|
+
return o[2] !== s || o[3] !== u || o[4] !== d ? (f = /* @__PURE__ */ r(e, {
|
|
15
15
|
className: u,
|
|
16
|
-
style:
|
|
16
|
+
style: d,
|
|
17
17
|
children: s
|
|
18
|
-
}), o[2] = s, o[3] = u, o[4] =
|
|
18
|
+
}), o[2] = s, o[3] = u, o[4] = d, o[5] = f) : f = o[5], f;
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region ../../libraries/rich-text-editor/dist/utils/isValidPosition.js
|
|
22
|
-
function
|
|
22
|
+
function h(e) {
|
|
23
23
|
return typeof e == "number" && e >= 0;
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region ../../libraries/rich-text-editor/dist/utils/getSelectedNodeOfType.js
|
|
27
|
-
function
|
|
27
|
+
function g(e, t) {
|
|
28
28
|
let n = [], r = new Set(t);
|
|
29
|
-
if (e instanceof
|
|
29
|
+
if (e instanceof l) return e.forEachCell((e, t) => {
|
|
30
30
|
r.has(e.type.name) && n.push({
|
|
31
31
|
node: e,
|
|
32
32
|
pos: t
|
|
33
33
|
});
|
|
34
34
|
}), n;
|
|
35
|
-
if (e instanceof
|
|
35
|
+
if (e instanceof o) {
|
|
36
36
|
let { node: t, from: i } = e;
|
|
37
37
|
return t && r.has(t.type.name) && n.push({
|
|
38
38
|
node: t,
|
|
39
39
|
pos: i
|
|
40
40
|
}), n;
|
|
41
41
|
}
|
|
42
|
-
let { $anchor: i } = e,
|
|
43
|
-
if (
|
|
44
|
-
let t = e.$anchor.doc.nodeAt(
|
|
42
|
+
let { $anchor: i } = e, a = u(i);
|
|
43
|
+
if (a) {
|
|
44
|
+
let t = e.$anchor.doc.nodeAt(a.pos);
|
|
45
45
|
if (t && r.has(t.type.name)) return n.push({
|
|
46
46
|
node: t,
|
|
47
|
-
pos:
|
|
47
|
+
pos: a.pos
|
|
48
48
|
}), n;
|
|
49
49
|
}
|
|
50
|
-
let
|
|
51
|
-
return
|
|
52
|
-
node:
|
|
53
|
-
pos:
|
|
50
|
+
let s = c(i, (e) => r.has(e.type.name));
|
|
51
|
+
return s && n.push({
|
|
52
|
+
node: s.node,
|
|
53
|
+
pos: s.pos
|
|
54
54
|
}), n;
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region ../../libraries/rich-text-editor/dist/utils/updateNodesAttr.js
|
|
58
|
-
function
|
|
58
|
+
function _(e, t, n, r) {
|
|
59
59
|
if (!t.length) return !1;
|
|
60
60
|
let i = !1;
|
|
61
61
|
for (let { pos: a } of t) {
|
|
@@ -70,12 +70,12 @@ function h(e, t, n, r) {
|
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../libraries/rich-text-editor/dist/features/nodeStyling/extension/nodeAlignment.js
|
|
73
|
-
function
|
|
73
|
+
function v(e, t, n) {
|
|
74
74
|
if (e.length === 0) return null;
|
|
75
75
|
for (let r of e) if ((r.node.attrs?.[t] ?? null) !== n) return n;
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var y = s.create({
|
|
79
79
|
name: "textAlign",
|
|
80
80
|
addOptions() {
|
|
81
81
|
return {
|
|
@@ -136,18 +136,18 @@ var _ = o.create({
|
|
|
136
136
|
},
|
|
137
137
|
addCommands() {
|
|
138
138
|
let e = (e, t) => (n) => ({ state: r, tr: i }) => {
|
|
139
|
-
let a =
|
|
140
|
-
return a.length === 0 ? !1 :
|
|
139
|
+
let a = g(r.selection, this.options.types);
|
|
140
|
+
return a.length === 0 ? !1 : _(i, a, e, t(a, n));
|
|
141
141
|
};
|
|
142
142
|
return {
|
|
143
143
|
setNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : t),
|
|
144
144
|
unsetNodeTextAlign: e("textAlign", () => null),
|
|
145
|
-
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null :
|
|
145
|
+
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : v(e, "textAlign", t)),
|
|
146
146
|
setNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : t),
|
|
147
147
|
unsetNodeVAlign: e("nodeVerticalAlign", () => null),
|
|
148
|
-
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null :
|
|
148
|
+
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : v(e, "nodeVerticalAlign", t)),
|
|
149
149
|
setNodeAlignment: (e, t) => ({ state: n, tr: r }) => {
|
|
150
|
-
let i =
|
|
150
|
+
let i = g(n.selection, this.options.types);
|
|
151
151
|
if (i.length === 0) return !1;
|
|
152
152
|
let a = !1;
|
|
153
153
|
for (let { node: n, pos: o } of i) {
|
|
@@ -157,7 +157,7 @@ var _ = o.create({
|
|
|
157
157
|
return a;
|
|
158
158
|
},
|
|
159
159
|
unsetNodeAlignment: () => ({ state: e, tr: t }) => {
|
|
160
|
-
let n =
|
|
160
|
+
let n = g(e.selection, this.options.types);
|
|
161
161
|
if (n.length === 0) return !1;
|
|
162
162
|
let r = !1;
|
|
163
163
|
for (let { node: e, pos: i } of n) {
|
|
@@ -177,4 +177,4 @@ var _ = o.create({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
//#endregion
|
|
180
|
-
export {
|
|
180
|
+
export { m as a, h as i, _ as n, f as o, g as r, d as s, y 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.99",
|
|
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",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"peerDependencies": {
|
|
133
133
|
"react": ">=18",
|
|
134
134
|
"react-dom": ">=18",
|
|
135
|
-
"@levo-so/
|
|
136
|
-
"@levo-so/
|
|
135
|
+
"@levo-so/react": "0.1.86",
|
|
136
|
+
"@levo-so/core": "0.1.82"
|
|
137
137
|
}
|
|
138
138
|
}
|