@levo-so/studio 0.1.99 → 0.1.101

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 (41) hide show
  1. package/{BillingStep-CD-nP5Zg.js → BillingStep-Brc1Mzo3.js} +1 -1
  2. package/{Button-BN9tHQ7U.js → Button-XTKnNIl9.js} +11 -5
  3. package/{CollectionInput-57OEuaRO.js → CollectionInput-cmJ0RXzG.js} +1 -1
  4. package/DateTimeWidget-B5lBr0_R.js +255 -0
  5. package/{EntryCard-DMxKxYzC.js → EntryCard-DTcx6wfA.js} +3 -3
  6. package/{CollectionField-BpRjsPIl.js → Input-Btdc1Dee.js} +115 -76
  7. package/{LoginCard-Dgl3uq38.js → LoginCard-CnHmCKUF.js} +3 -3
  8. package/{LoginModal-CVh8k24t.js → LoginModal-BdYM8INu.js} +3 -3
  9. package/{MessageCard-BYxgc9dl.js → MessageCard-ChDBqLVG.js} +2 -2
  10. package/{ModalManager-D2pV7Ba2.js → ModalManager-SggxCIno.js} +1 -1
  11. package/{PendingApprovalCard-ZIhBzT3K.js → PendingApprovalCard-C6ORDqrY.js} +3 -3
  12. package/{PhoneWidget-cSp-CqJl.js → PhoneWidget-BRIAve47.js} +11 -11
  13. package/{Popover-ieqK7ZXF.js → Popover-BdKCElnb.js} +2 -1
  14. package/RichTextWidget-CjEoGecM.js +1136 -0
  15. package/{Tooltip-9zds9Zoi.js → Tooltip-BOq5vSOW.js} +2 -1
  16. package/{VerifyButton-faa0wOES.js → VerifyButton-Bl2QqMpB.js} +93 -103
  17. package/{bookingCard-OUT621LL.js → bookingCard-D3ZSjq-P.js} +3 -3
  18. package/collection.d.ts +20 -7
  19. package/collection.js +7 -7
  20. package/dist-DuTd566a.js +3112 -0
  21. package/{getFieldValidations-j341NV59.js → getFieldValidations-DZnDgNI0.js} +48 -87
  22. package/index.d.ts +6 -9
  23. package/index.js +3017 -1242
  24. package/{nodeAlignment-UpurkBVP.js → nodeAlignment-BZbdafVA.js} +31 -32
  25. package/package.json +10 -10
  26. package/studio.css +1 -1
  27. package/{utils-C_ATWxPM.js → utils-kDaDLLGt.js} +1 -1
  28. package/{widgets-BHUjv2OM.js → widgets-CWDiqXm9.js} +84 -76
  29. package/DateTimeWidget-BlOQYia2.js +0 -255
  30. package/RichTextWidget-BeUcHYmx.js +0 -1131
  31. package/dist-IAADcuph.js +0 -3113
  32. /package/{Beams-Blr-zwvz.js → Beams-B0O3uyYF.js} +0 -0
  33. /package/{Dots-DeBKuibU.js → Dots-DjezbpLp.js} +0 -0
  34. /package/{Gradient-DGFxOjft.js → Gradient-B1K9Yi04.js} +0 -0
  35. /package/{Grid-A7HRCQ0T.js → Grid-C9aUfXM-.js} +0 -0
  36. /package/{LoginForm-CPMtCyMF.js → LoginForm-Ck-xFaDg.js} +0 -0
  37. /package/{MessageFooter-C6DivT4m.js → MessageFooter-AzAtJWMo.js} +0 -0
  38. /package/{StripePaymentModal-DC-ySB_o.js → StripePaymentModal-BHIBBvRj.js} +0 -0
  39. /package/{Waves-CIT6Ngng.js → Waves-BkaAfGqA.js} +0 -0
  40. /package/{card-izMd2DvE.js → card-BQr9258p.js} +0 -0
  41. /package/{dialog-BJpM4UEG.js → dialog-Dw6n_36P.js} +0 -0
@@ -1,13 +1,17 @@
1
- import { a as e } from "./getFieldValidations-j341NV59.js";
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 { 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
- //#region ../../libraries/rich-text-editor/dist/styles/content.cssm.js
10
- var d = "d3c9ok0", f = t({ baseSpacing: "var(--_1wlnmgm0)" }), p = "_7afiv40", m = (t) => {
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-editor/dist/utils/isValidPosition.js
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 l) return e.forEachCell((e, t) => {
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 o) {
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 = u(i);
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 s = c(i, (e) => r.has(e.type.name));
51
- return s && n.push({
52
- node: s.node,
53
- pos: s.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-editor/dist/utils/updateNodesAttr.js
58
- function _(e, t, n, r) {
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-editor/dist/features/nodeStyling/extension/nodeAlignment.js
73
- function v(e, t, n) {
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 y = s.create({
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 = g(r.selection, this.options.types);
140
- return a.length === 0 ? !1 : _(i, a, e, t(a, n));
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 : v(e, "textAlign", t)),
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 : v(e, "nodeVerticalAlign", t)),
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 = g(n.selection, this.options.types);
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 = g(e.selection, this.options.types);
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 { m as a, h as i, _ as n, f as o, g as r, d as s, y as t };
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.99",
3
+ "version": "0.1.101",
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": ">=18",
134
- "react-dom": ">=18",
135
- "@levo-so/react": "0.1.86",
136
- "@levo-so/core": "0.1.82"
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
  }