@levo-so/studio 0.1.101 → 0.1.102

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 (46) hide show
  1. package/Beams-DkcjMVZl.js +102 -0
  2. package/{BillingStep-Brc1Mzo3.js → BillingStep-BTRobf00.js} +1 -1
  3. package/{Button-XTKnNIl9.js → Button-DTrN8kki.js} +32 -18
  4. package/{Input-Btdc1Dee.js → CollectionField-7uXvhxYK.js} +57 -76
  5. package/CollectionInput-lHOvWWav.js +147 -0
  6. package/{DateTimeWidget-B5lBr0_R.js → DateTimeWidget-BHCP5osb.js} +9 -9
  7. package/Dots-BrEPvoj3.js +100 -0
  8. package/{EntryCard-DTcx6wfA.js → EntryCard-CqZlbw1Z.js} +6 -6
  9. package/Grid-B4XWU9eL.js +99 -0
  10. package/{LoginCard-CnHmCKUF.js → LoginCard-DWLnYJJU.js} +3 -3
  11. package/{LoginForm-Ck-xFaDg.js → LoginForm-CEUbBeE3.js} +23 -22
  12. package/{LoginModal-BdYM8INu.js → LoginModal-AWNLO49X.js} +3 -3
  13. package/{MessageCard-ChDBqLVG.js → MessageCard-C5ULcfuw.js} +2 -2
  14. package/{MessageFooter-AzAtJWMo.js → MessageFooter-CATwNJJU.js} +1 -1
  15. package/{ModalManager-SggxCIno.js → ModalManager-DQXhkmyC.js} +1 -1
  16. package/{PendingApprovalCard-C6ORDqrY.js → PendingApprovalCard-BowwZMBu.js} +3 -3
  17. package/{PhoneWidget-BRIAve47.js → PhoneWidget-C6uZmrk8.js} +3 -3
  18. package/{Popover-BdKCElnb.js → Popover-Du4iigVw.js} +1 -1
  19. package/RichTextWidget-iYdVRBGB.js +112 -0
  20. package/Toolbar-BHi_B-nE.js +737 -0
  21. package/{Tooltip-BOq5vSOW.js → Tooltip-K_gFzjOa.js} +1 -1
  22. package/{VerifyButton-Bl2QqMpB.js → VerifyButton-D21AOIX3.js} +2 -2
  23. package/authentication-fXmNYss1.js +36 -0
  24. package/{bookingCard-D3ZSjq-P.js → bookingCard--NlgtcJs.js} +3 -3
  25. package/collection.d.ts +83 -0
  26. package/collection.js +9 -8
  27. package/{dist-DuTd566a.js → dist-x5VFEnQl.js} +1132 -1059
  28. package/index.d.ts +43 -7
  29. package/index.js +1517 -1441
  30. package/inlineRteTheme-Cn_Vqgsm.js +23 -0
  31. package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DoVbjk29.js} +39 -60
  32. package/package.json +2 -2
  33. package/studio.css +1 -1
  34. package/useLogin-D2VCOHYI.js +127 -0
  35. package/{utils-kDaDLLGt.js → utils-Bh9uGjo1.js} +1 -1
  36. package/{widgets-CWDiqXm9.js → widgets-CG5Z_dk7.js} +48 -48
  37. package/Beams-B0O3uyYF.js +0 -118
  38. package/CollectionInput-cmJ0RXzG.js +0 -132
  39. package/Dots-DjezbpLp.js +0 -137
  40. package/Grid-C9aUfXM-.js +0 -145
  41. package/RichTextWidget-CjEoGecM.js +0 -1136
  42. /package/{Gradient-B1K9Yi04.js → Gradient-B4Er9hym.js} +0 -0
  43. /package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DC-ySB_o.js} +0 -0
  44. /package/{Waves-BkaAfGqA.js → Waves-kW-EBDdJ.js} +0 -0
  45. /package/{card-BQr9258p.js → card-BwNr7kQS.js} +0 -0
  46. /package/{dialog-Dw6n_36P.js → dialog-CCWrvmHd.js} +0 -0
@@ -0,0 +1,23 @@
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
+ //#region ../../libraries/rich-text/dist/styles/content.cssm.js
7
+ var o = "_1b7up5r0", s = "jfprpn0", c = {
8
+ baseSpacing: "var(--oox3jg0)",
9
+ highlight: "var(--oox3jg1)",
10
+ highlightForeground: "var(--oox3jg2)"
11
+ }, l = (t) => {
12
+ let o = i(7), { children: c, theme: l } = t, u = l?.className, d;
13
+ o[0] === u ? d = o[1] : (d = a(n, s, u), o[0] = u, o[1] = d);
14
+ let f = l?.style, p = l?.portalToThemeRoot, m;
15
+ return o[2] !== c || o[3] !== d || o[4] !== f || o[5] !== p ? (m = /* @__PURE__ */ r(e, {
16
+ className: d,
17
+ style: f,
18
+ portalToThemeRoot: p,
19
+ children: c
20
+ }), o[2] = c, o[3] = d, o[4] = f, o[5] = p, o[6] = m) : m = o[6], m;
21
+ }, u = t(c);
22
+ //#endregion
23
+ export { l as n, o as r, u 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
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";
25
4
  //#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({
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
35
  //#region ../../libraries/rich-text/dist/utils/updateNodesAttr.js
57
- function g(e, t, n, r) {
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/rich-text/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.102",
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",
@@ -63,6 +63,7 @@
63
63
  "@vanilla-extract/recipes": "0.5.7",
64
64
  "clsx": "2.1.1",
65
65
  "@theinternetfolks/snowflake": "1.3.0",
66
+ "@tiptap/pm": "3.19.0",
66
67
  "altcha": "2.0.2",
67
68
  "lodash.range": "3.2.0",
68
69
  "react-hook-form": "^7.69.0",
@@ -115,7 +116,6 @@
115
116
  "@tiptap/extension-youtube": "3.19.0",
116
117
  "@tiptap/extensions": "3.19.0",
117
118
  "@tiptap/html": "3.20.0",
118
- "@tiptap/pm": "3.19.0",
119
119
  "@tiptap/react": "3.19.0",
120
120
  "@tiptap/starter-kit": "3.19.0",
121
121
  "@tiptap/static-renderer": "3.19.0",