@levo-so/studio 0.1.101 → 0.1.103

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 (62) hide show
  1. package/{AuthProvider-56TywIOB.js → AuthProvider-C6bvedwF.js} +16 -16
  2. package/Beams-DboMUgCv.js +102 -0
  3. package/{BillingStep-Brc1Mzo3.js → BillingStep-BA3H9BVu.js} +1 -1
  4. package/{Button-XTKnNIl9.js → Button-CZycqusY.js} +249 -138
  5. package/Button-lUfKisu8.js +116 -0
  6. package/CollectionField-xa-jed3_.js +232 -0
  7. package/CollectionInput-CpNGIXJx.js +147 -0
  8. package/DateTimeWidget-DP_nMhqe.js +256 -0
  9. package/Dialog-IrII0ugb.js +130 -0
  10. package/Dots-a8xSboDv.js +100 -0
  11. package/{EntryCard-DTcx6wfA.js → EntryCard-CQpKNX7G.js} +4 -4
  12. package/Grid-BJQvxnks.js +99 -0
  13. package/{LoginCard-CnHmCKUF.js → LoginCard-Cyvm-y_q.js} +3 -3
  14. package/{LoginForm-Ck-xFaDg.js → LoginForm-_44FtvWg.js} +207 -206
  15. package/{LoginModal-BdYM8INu.js → LoginModal-Cyw_XKvz.js} +4 -4
  16. package/{MessageCard-ChDBqLVG.js → MessageCard-C2lNTxFx.js} +2 -2
  17. package/{MessageFooter-AzAtJWMo.js → MessageFooter-59Pziq3i.js} +2 -2
  18. package/{ModalManager-SggxCIno.js → ModalManager-DHkd0Zdb.js} +1 -1
  19. package/{PendingApprovalCard-C6ORDqrY.js → PendingApprovalCard-C8iZjo06.js} +3 -3
  20. package/PhoneWidget-CxxxDXkz.js +100 -0
  21. package/{Popover-BdKCElnb.js → Popover-DOvRAGzc.js} +19 -20
  22. package/PopupRenderer-C7OHYphU-Ct5T6tWM.js +2668 -0
  23. package/RichTextWidget-BqlcssWt.js +113 -0
  24. package/RteThemeProvider-Cfepkyer.js +20 -0
  25. package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DrLMN18M.js} +17 -17
  26. package/Toolbar-BwxoYWO_.js +738 -0
  27. package/Tooltip-NEMQqPyr.js +67 -0
  28. package/VerifyButton-TNkt-SDu.js +177 -0
  29. package/authentication-hnV1BI8s.js +36 -0
  30. package/bookingCard-BDyuBC6X.js +636 -0
  31. package/collection.d.ts +83 -0
  32. package/collection.js +9 -8
  33. package/{dialog-Dw6n_36P.js → dialog-C8-iHixJ.js} +32 -32
  34. package/dist-CG-pwDW0.js +3188 -0
  35. package/generateRadiusScale-BpcgkGtN.js +71 -0
  36. package/getFieldValidations-CSkSV2hW.js +90 -0
  37. package/index.d.ts +96 -9
  38. package/index.js +6021 -7731
  39. package/inlineRteTheme-Ajq9PNpQ.js +9 -0
  40. package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DKCIjzlR.js} +41 -62
  41. package/package.json +38 -40
  42. package/studio.css +1 -1
  43. package/useLogin-B2qE8710.js +127 -0
  44. package/{utils-kDaDLLGt.js → utils-CZLafTgN.js} +1 -1
  45. package/{widgets-CWDiqXm9.js → widgets-eu5zXTf-.js} +58 -125
  46. package/Beams-B0O3uyYF.js +0 -118
  47. package/CollectionInput-cmJ0RXzG.js +0 -132
  48. package/DateTimeWidget-B5lBr0_R.js +0 -255
  49. package/Dots-DjezbpLp.js +0 -137
  50. package/Grid-C9aUfXM-.js +0 -145
  51. package/Input-Btdc1Dee.js +0 -293
  52. package/PhoneWidget-BRIAve47.js +0 -100
  53. package/RichTextWidget-CjEoGecM.js +0 -1136
  54. package/Tooltip-BOq5vSOW.js +0 -68
  55. package/VerifyButton-Bl2QqMpB.js +0 -273
  56. package/bookingCard-D3ZSjq-P.js +0 -577
  57. package/dist-DuTd566a.js +0 -3112
  58. package/getFieldValidations-DZnDgNI0.js +0 -159
  59. /package/{Gradient-B1K9Yi04.js → Gradient-NacpoDCM.js} +0 -0
  60. /package/{Waves-BkaAfGqA.js → Waves-DUuT_IFr.js} +0 -0
  61. /package/{card-BQr9258p.js → card-E2LKF9nT.js} +0 -0
  62. /package/{theme.cssm-2YTdd8Yh.js → theme.cssm-BXDp-ojp.js} +0 -0
@@ -0,0 +1,9 @@
1
+ import { n as e } from "./theme.cssm-BXDp-ojp.js";
2
+ //#region ../../libraries/editor-core/dist/styles/content.cssm.js
3
+ var t = "_12oclrg0", n = "u2k86a0", r = e({
4
+ baseSpacing: "var(--_1q6hy0o0)",
5
+ highlight: "var(--_1q6hy0o1)",
6
+ highlightForeground: "var(--_1q6hy0o2)"
7
+ });
8
+ //#endregion
9
+ export { n, t as r, r as t };
@@ -1,60 +1,39 @@
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";
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) => {
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, {
19
- className: u,
20
- style: d,
21
- children: s
22
- }), o[2] = s, o[3] = u, o[4] = d, o[5] = f) : f = o[5], f;
23
- };
24
- //#endregion
25
- //#region ../../libraries/rich-text/dist/utils/getSelectedNodeOfType.js
26
- function h(e, t) {
27
- let n = [], r = new Set(t);
28
- if (e instanceof c) return e.forEachCell((e, t) => {
29
- r.has(e.type.name) && n.push({
1
+ import { Extension as e, findParentNodeClosestToPos as t } from "@tiptap/core";
2
+ import { CellSelection as n, cellAround as r } from "@tiptap/pm/tables";
3
+ import { NodeSelection as i } from "@tiptap/pm/state";
4
+ //#region ../../libraries/editor-core/dist/utils/getSelectedNodeOfType.js
5
+ function a(e, a) {
6
+ let o = [], s = new Set(a);
7
+ if (e instanceof n) return e.forEachCell((e, t) => {
8
+ s.has(e.type.name) && o.push({
30
9
  node: e,
31
10
  pos: t
32
11
  });
33
- }), n;
34
- if (e instanceof u) {
35
- let { node: t, from: i } = e;
36
- return t && r.has(t.type.name) && n.push({
12
+ }), o;
13
+ if (e instanceof i) {
14
+ let { node: t, from: n } = e;
15
+ return t && s.has(t.type.name) && o.push({
37
16
  node: t,
38
- pos: i
39
- }), n;
17
+ pos: n
18
+ }), o;
40
19
  }
41
- let { $anchor: i } = e, a = l(i);
42
- if (a) {
43
- let t = e.$anchor.doc.nodeAt(a.pos);
44
- if (t && r.has(t.type.name)) return n.push({
20
+ let { $anchor: c } = e, l = r(c);
21
+ if (l) {
22
+ let t = e.$anchor.doc.nodeAt(l.pos);
23
+ if (t && s.has(t.type.name)) return o.push({
45
24
  node: t,
46
- pos: a.pos
47
- }), n;
25
+ pos: l.pos
26
+ }), o;
48
27
  }
49
- let o = s(i, (e) => r.has(e.type.name));
50
- return o && n.push({
51
- node: o.node,
52
- pos: o.pos
53
- }), n;
28
+ let u = t(c, (e) => s.has(e.type.name));
29
+ return u && o.push({
30
+ node: u.node,
31
+ pos: u.pos
32
+ }), o;
54
33
  }
55
34
  //#endregion
56
- //#region ../../libraries/rich-text/dist/utils/updateNodesAttr.js
57
- function g(e, t, n, r) {
35
+ //#region ../../libraries/editor-core/dist/utils/updateNodesAttr.js
36
+ function o(e, t, n, r) {
58
37
  if (!t.length) return !1;
59
38
  let i = !1;
60
39
  for (let { pos: a } of t) {
@@ -68,13 +47,13 @@ function g(e, t, n, r) {
68
47
  return i;
69
48
  }
70
49
  //#endregion
71
- //#region ../../libraries/rich-text/dist/features/nodeStyling/extension/nodeAlignment.js
72
- function _(e, t, n) {
50
+ //#region ../../libraries/editor-core/dist/extensions/nodeStyling/nodeAlignment.js
51
+ function s(e, t, n) {
73
52
  if (e.length === 0) return null;
74
53
  for (let r of e) if ((r.node.attrs?.[t] ?? null) !== n) return n;
75
54
  return null;
76
55
  }
77
- var v = o.create({
56
+ var c = e.create({
78
57
  name: "textAlign",
79
58
  addOptions() {
80
59
  return {
@@ -135,28 +114,28 @@ var v = o.create({
135
114
  },
136
115
  addCommands() {
137
116
  let e = (e, t) => (n) => ({ state: r, tr: i }) => {
138
- let a = h(r.selection, this.options.types);
139
- return a.length === 0 ? !1 : g(i, a, e, t(a, n));
117
+ let s = a(r.selection, this.options.types);
118
+ return s.length === 0 ? !1 : o(i, s, e, t(s, n));
140
119
  };
141
120
  return {
142
121
  setNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : t),
143
122
  unsetNodeTextAlign: e("textAlign", () => null),
144
- toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : _(e, "textAlign", t)),
123
+ toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : s(e, "textAlign", t)),
145
124
  setNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : t),
146
125
  unsetNodeVAlign: e("nodeVerticalAlign", () => null),
147
- toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : _(e, "nodeVerticalAlign", t)),
126
+ toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : s(e, "nodeVerticalAlign", t)),
148
127
  setNodeAlignment: (e, t) => ({ state: n, tr: r }) => {
149
- let i = h(n.selection, this.options.types);
128
+ let i = a(n.selection, this.options.types);
150
129
  if (i.length === 0) return !1;
151
- let a = !1;
152
- for (let { node: n, pos: o } of i) {
130
+ let o = !1;
131
+ for (let { node: n, pos: a } of i) {
153
132
  let i = { ...n.attrs };
154
- e && this.options.textAlignValues.includes(e) && (i.textAlign = e, a = !0), t && this.options.verticalAlignValues.includes(t) && (i.nodeVerticalAlign = t, a = !0), a && r.setNodeMarkup(o, void 0, i);
133
+ e && this.options.textAlignValues.includes(e) && (i.textAlign = e, o = !0), t && this.options.verticalAlignValues.includes(t) && (i.nodeVerticalAlign = t, o = !0), o && r.setNodeMarkup(a, void 0, i);
155
134
  }
156
- return a;
135
+ return o;
157
136
  },
158
137
  unsetNodeAlignment: () => ({ state: e, tr: t }) => {
159
- let n = h(e.selection, this.options.types);
138
+ let n = a(e.selection, this.options.types);
160
139
  if (n.length === 0) return !1;
161
140
  let r = !1;
162
141
  for (let { node: e, pos: i } of n) {
@@ -176,4 +155,4 @@ var v = o.create({
176
155
  }
177
156
  });
178
157
  //#endregion
179
- export { f as a, m as i, g as n, d as o, h as r, v as t };
158
+ export { o as n, a as r, c as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.1.101",
3
+ "version": "0.1.103",
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",
@@ -30,43 +30,17 @@
30
30
  "!**/*.js.map"
31
31
  ],
32
32
  "dependencies": {
33
- "@emotion/is-prop-valid": "1.3.1",
34
- "@stripe/react-stripe-js": "3.1.1",
35
- "@stripe/stripe-js": "5.5.0",
36
- "class-variance-authority": "0.7.0",
37
- "culori": "4.0.1",
38
- "dayjs": "1.11.13",
39
- "deepmerge-ts": "7.1.5",
40
- "embla-carousel-auto-scroll": "8.6.0",
41
- "embla-carousel-autoplay": "8.6.0",
42
- "embla-carousel-react": "8.6.0",
43
- "embla-carousel-wheel-gestures": "8.1.0",
44
- "fast-deep-equal": "3.1.3",
45
- "formik": "2.4.6",
46
- "html-react-parser": "5.2.6",
47
- "isomorphic-dompurify": "2.14.0",
48
- "libphonenumber-js": "1.12.31",
49
- "lucide-react": "0.424.0",
50
- "motion": "12.23.12",
51
- "radix-ui": "1.4.3",
52
- "react-day-picker": "9.11.1",
53
- "react-icons": "5.2.1",
54
- "react-international-phone": "4.6.0",
55
- "react-otp-input": "3.1.1",
56
- "react-razorpay": "3.0.1",
57
- "react-select": "5.10.1",
58
- "use-debounce": "10.0.2",
59
- "yup": "1.7.1",
60
33
  "@base-ui/react": "1.1.0",
61
34
  "@tabler/icons-react": "3.34.1",
62
35
  "@vanilla-extract/dynamic": "2.1.5",
63
36
  "@vanilla-extract/recipes": "0.5.7",
64
37
  "clsx": "2.1.1",
65
38
  "@theinternetfolks/snowflake": "1.3.0",
39
+ "@tiptap/pm": "3.19.0",
66
40
  "altcha": "2.0.2",
67
41
  "lodash.range": "3.2.0",
68
- "react-hook-form": "^7.69.0",
69
42
  "react-dropzone": "14.3.8",
43
+ "react-hook-form": "7.69.0",
70
44
  "react-number-format": "5.4.4",
71
45
  "react-phone-number-input": "3.4.14",
72
46
  "react-select-async-paginate": "0.7.5",
@@ -114,25 +88,49 @@
114
88
  "@tiptap/extension-unique-id": "3.19.0",
115
89
  "@tiptap/extension-youtube": "3.19.0",
116
90
  "@tiptap/extensions": "3.19.0",
117
- "@tiptap/html": "3.20.0",
118
- "@tiptap/pm": "3.19.0",
119
91
  "@tiptap/react": "3.19.0",
120
92
  "@tiptap/starter-kit": "3.19.0",
121
- "@tiptap/static-renderer": "3.19.0",
122
93
  "@tiptap/suggestion": "3.19.0",
123
94
  "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
- "react-colorful": "5.6.1",
129
- "react-hotkeys-hook": "5.2.1",
130
- "react-textarea-autosize": "8.5.9"
95
+ "@tiptap/html": "3.20.0",
96
+ "@tiptap/static-renderer": "3.19.0",
97
+ "@nanostores/persistent": "1.3.3",
98
+ "@nanostores/react": "0.8.4",
99
+ "nanostores": "0.11.4",
100
+ "@emotion/is-prop-valid": "1.3.1",
101
+ "@stripe/react-stripe-js": "3.1.1",
102
+ "@stripe/stripe-js": "5.5.0",
103
+ "class-variance-authority": "0.7.0",
104
+ "culori": "4.0.1",
105
+ "dayjs": "1.11.13",
106
+ "deepmerge-ts": "7.1.5",
107
+ "embla-carousel-auto-scroll": "8.6.0",
108
+ "embla-carousel-autoplay": "8.6.0",
109
+ "embla-carousel-react": "8.6.0",
110
+ "embla-carousel-wheel-gestures": "8.1.0",
111
+ "fast-deep-equal": "3.1.3",
112
+ "formik": "2.4.6",
113
+ "html-react-parser": "5.2.6",
114
+ "isomorphic-dompurify": "2.14.0",
115
+ "libphonenumber-js": "1.12.31",
116
+ "lucide-react": "0.575.0",
117
+ "motion": "12.23.12",
118
+ "radix-ui": "1.4.3",
119
+ "react-day-picker": "9.14.0",
120
+ "react-icons": "5.2.1",
121
+ "react-international-phone": "4.6.0",
122
+ "react-otp-input": "3.1.1",
123
+ "react-razorpay": "3.0.1",
124
+ "react-select": "5.10.1",
125
+ "use-debounce": "10.0.2",
126
+ "yup": "1.7.1"
131
127
  },
132
128
  "peerDependencies": {
133
129
  "react": ">=19",
130
+ "next": ">=14",
134
131
  "react-dom": ">=19",
135
132
  "@levo-so/core": "0.1.82",
136
- "@levo-so/react": "0.1.86"
133
+ "@levo-so/react": "0.1.86",
134
+ "@levo-so/insights": "0.1.86"
137
135
  }
138
136
  }