@levo-so/studio 0.1.98 → 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.
Files changed (33) hide show
  1. package/{BillingStep-C3jJkLXQ.js → BillingStep-CD-nP5Zg.js} +1 -1
  2. package/{Button-CwN6jTXH.js → Button-BN9tHQ7U.js} +1 -1
  3. package/{CollectionInput-BoNAc4sq.js → CollectionInput-57OEuaRO.js} +1 -1
  4. package/{DateTimeWidget-IRleQI-3.js → DateTimeWidget-BlOQYia2.js} +4 -4
  5. package/{EntryCard-xpo36vUc.js → EntryCard-DMxKxYzC.js} +1 -1
  6. package/{LoginCard-DG8NAN0B.js → LoginCard-Dgl3uq38.js} +1 -1
  7. package/{LoginModal-BPI5tOIZ.js → LoginModal-CVh8k24t.js} +2 -2
  8. package/{ModalManager-BaIL6HG-.js → ModalManager-D2pV7Ba2.js} +1 -1
  9. package/{PendingApprovalCard-DID1FhwF.js → PendingApprovalCard-ZIhBzT3K.js} +1 -1
  10. package/{PhoneWidget-CjhHfwuG.js → PhoneWidget-cSp-CqJl.js} +4 -4
  11. package/{Popover-DHVZdJuv.js → Popover-ieqK7ZXF.js} +1 -1
  12. package/{RichTextWidget-CgT1_zC3.js → RichTextWidget-BeUcHYmx.js} +337 -341
  13. package/Tooltip-9zds9Zoi.js +67 -0
  14. package/{VerifyButton-DFKzKYxC.js → VerifyButton-faa0wOES.js} +2 -2
  15. package/{bookingCard-Bw4tvDYh.js → bookingCard-OUT621LL.js} +3 -3
  16. package/collection.js +7 -7
  17. package/dist-IAADcuph.js +3113 -0
  18. package/{getFieldValidations-qVzuq6mv.js → getFieldValidations-j341NV59.js} +5 -2
  19. package/index.d.ts +90 -1
  20. package/index.js +1227 -1194
  21. package/{nodeAlignment-CG3qmAuQ.js → nodeAlignment-UpurkBVP.js} +37 -37
  22. package/package.json +3 -3
  23. package/studio.css +1 -1
  24. package/theme.cssm-2YTdd8Yh.js +15 -0
  25. package/{utils-F6eBcsyI.js → utils-C_ATWxPM.js} +1 -1
  26. package/widgets-BHUjv2OM.js +289 -0
  27. package/Tooltip-ByJRyayB.js +0 -78
  28. package/dist-B7TPxn7o.js +0 -3180
  29. package/theme.cssm-De_pl52g.js +0 -4
  30. package/widgets-Dvyv5_uj.js +0 -215
  31. /package/{CollectionField-DnbpB0Z5.js → CollectionField-BpRjsPIl.js} +0 -0
  32. /package/{StripePaymentModal-BcePXzmC.js → StripePaymentModal-DC-ySB_o.js} +0 -0
  33. /package/{dialog-CCWrvmHd.js → dialog-BJpM4UEG.js} +0 -0
@@ -1,61 +1,61 @@
1
- import { a as e } from "./getFieldValidations-qVzuq6mv.js";
2
- import { t } from "./theme.cssm-De_pl52g.js";
3
- import { jsx as n } from "react/jsx-runtime";
4
- import { c as r } from "react/compiler-runtime";
5
- import i from "clsx";
6
- import { NodeSelection as a } from "@tiptap/pm/state";
7
- import { Extension as o, findParentNodeClosestToPos as s } from "@tiptap/core";
8
- import { CellSelection as c, cellAround as l } from "@tiptap/pm/tables";
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 u = "d3c9ok0", d = "_7afiv40", f = (a) => {
11
- let o = r(6), { children: s, theme: c } = a, l = c?.className, u;
12
- o[0] === l ? u = o[1] : (u = i(t, d, l), o[0] = l, o[1] = u);
13
- let f = c?.style, p;
14
- return o[2] !== s || o[3] !== u || o[4] !== f ? (p = /* @__PURE__ */ n(e, {
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: f,
16
+ style: d,
17
17
  children: s
18
- }), o[2] = s, o[3] = u, o[4] = f, o[5] = p) : p = o[5], p;
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 p(e) {
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 m(e, t) {
27
+ function g(e, t) {
28
28
  let n = [], r = new Set(t);
29
- if (e instanceof c) return e.forEachCell((e, t) => {
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 a) {
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, o = l(i);
43
- if (o) {
44
- let t = e.$anchor.doc.nodeAt(o.pos);
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: o.pos
47
+ pos: a.pos
48
48
  }), n;
49
49
  }
50
- let u = s(i, (e) => r.has(e.type.name));
51
- return u && n.push({
52
- node: u.node,
53
- pos: u.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 h(e, t, n, r) {
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 g(e, t, n) {
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 _ = o.create({
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 = m(r.selection, this.options.types);
140
- return a.length === 0 ? !1 : h(i, a, e, t(a, n));
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 : g(e, "textAlign", t)),
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 : g(e, "nodeVerticalAlign", t)),
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 = m(n.selection, this.options.types);
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 = m(e.selection, this.options.types);
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 { f as a, p as i, h as n, u as o, m as r, _ as t };
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.98",
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/core": "0.1.82",
136
- "@levo-so/react": "0.1.86"
135
+ "@levo-so/react": "0.1.86",
136
+ "@levo-so/core": "0.1.82"
137
137
  }
138
138
  }