reactjs-tiptap-editor 1.0.4 → 1.0.6

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 (155) hide show
  1. package/lib/{ActionMenuButton-Bzr6ICxv.cjs → ActionMenuButton-DYT5chmX.cjs} +1 -1
  2. package/lib/{ActionMenuButton-71gCEVbv.js → ActionMenuButton-htJNI0Fa.js} +4 -4
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +4 -4
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +3 -3
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +3 -3
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +3 -3
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +2 -2
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +3 -3
  15. package/lib/CodeBlock.cjs +1 -1
  16. package/lib/CodeBlock.js +4 -4
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +3 -3
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +5 -5
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +3 -3
  23. package/lib/{Drawer-GRyIh2y1.js → Drawer-1211urKj.js} +6 -6
  24. package/lib/{Drawer-DlX87Cl4.cjs → Drawer-DUFUd5BW.cjs} +1 -1
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +1 -1
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +5 -5
  29. package/lib/{Excalidraw-Bkq1fXLL.cjs → Excalidraw-CajgZDjU.cjs} +1 -1
  30. package/lib/{Excalidraw-BmyhdJCU.js → Excalidraw-Du3hBR8t.js} +5 -5
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +1 -1
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +3 -3
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +3 -3
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +5 -5
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +5 -5
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +5 -5
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +5 -5
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +3 -3
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +3 -3
  49. package/lib/{Icon-ztD4g9N4.cjs → Icon-BjR_or8V.cjs} +1 -1
  50. package/lib/{Icon-1z7VnLgz.js → Icon-C-qYUAS1.js} +1 -1
  51. package/lib/{Iframe-DhUlC9-Y.cjs → Iframe-CM6mRQmv.cjs} +1 -1
  52. package/lib/{Iframe-AiP8qPGF.js → Iframe-DTYTLQE6.js} +5 -5
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +1 -1
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +13 -13
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +6 -6
  59. package/lib/ImportWord.cjs +1 -1
  60. package/lib/ImportWord.js +4 -4
  61. package/lib/{Indent-fphgO8Eo.cjs → Indent-BmhiEb0S.cjs} +1 -1
  62. package/lib/{Indent-CBoQDISv.js → Indent-jOPn3eUM.js} +3 -3
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +1 -1
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +3 -3
  67. package/lib/{Katex-n2PVzaMd.js → Katex-CERSrcTP.js} +7 -7
  68. package/lib/{Katex-AfmTUUNS.cjs → Katex-CUd3LxLh.cjs} +1 -1
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +1 -1
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +6 -6
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +1 -1
  75. package/lib/{LinkEditBlock-CoXwYHlj.js → LinkEditBlock-B5SdhOfa.js} +10 -10
  76. package/lib/{LinkEditBlock-sADc32hF.cjs → LinkEditBlock-DaxljgJC.cjs} +1 -1
  77. package/lib/Mermaid.cjs +1 -1
  78. package/lib/Mermaid.js +6 -6
  79. package/lib/MoreMark.cjs +1 -1
  80. package/lib/MoreMark.js +5 -5
  81. package/lib/OrderedList.cjs +1 -1
  82. package/lib/OrderedList.js +3 -3
  83. package/lib/SearchAndReplace.cjs +1 -1
  84. package/lib/SearchAndReplace.js +10 -10
  85. package/lib/SlashCommand.cjs +1 -1
  86. package/lib/SlashCommand.js +40 -38
  87. package/lib/Strike.cjs +1 -1
  88. package/lib/Strike.js +3 -3
  89. package/lib/{Table-BshvoFRh.js → Table-39OkCQbu.js} +5 -5
  90. package/lib/{Table-BLb5576a.cjs → Table-3VstSlg4.cjs} +1 -1
  91. package/lib/Table.cjs +1 -1
  92. package/lib/Table.js +1 -1
  93. package/lib/TaskList.cjs +1 -1
  94. package/lib/TaskList.js +3 -3
  95. package/lib/TextAlign.cjs +1 -1
  96. package/lib/TextAlign.js +6 -6
  97. package/lib/TextDirection.cjs +1 -1
  98. package/lib/TextDirection.js +6 -6
  99. package/lib/TextUnderline.cjs +1 -1
  100. package/lib/TextUnderline.js +3 -3
  101. package/lib/{Twitter-CLVet4OM.js → Twitter-D7PhLycr.js} +9 -9
  102. package/lib/{Twitter-DEKTLWO5.cjs → Twitter-DuHPeVW1.cjs} +1 -1
  103. package/lib/Twitter.cjs +1 -1
  104. package/lib/Twitter.js +1 -1
  105. package/lib/Video.cjs +1 -1
  106. package/lib/Video.js +9 -9
  107. package/lib/bubble.cjs +4 -4
  108. package/lib/bubble.js +276 -263
  109. package/lib/{button-BnN1L5_T.js → button-Crm67hfl.js} +1 -1
  110. package/lib/{button-CjAogRMZ.cjs → button-xNppt_aK.cjs} +1 -1
  111. package/lib/{checkbox-sSQSzjls.js → checkbox-DViVmgJ6.js} +1 -1
  112. package/lib/{checkbox-BFgaCetY.cjs → checkbox-NQC2MdGT.cjs} +1 -1
  113. package/lib/{dialog-CzZSyyxS.js → dialog-Ce9Cjfft.js} +1 -1
  114. package/lib/{dialog-CUP7QBaG.cjs → dialog-DaHBd2zw.cjs} +1 -1
  115. package/lib/{dropdown-menu-y1rPk4dr.js → dropdown-menu-CQykJhBs.js} +1 -1
  116. package/lib/{dropdown-menu-CwHOwzLr.cjs → dropdown-menu-CSCDQtq0.cjs} +1 -1
  117. package/lib/events.constant-DQYeJpu5.cjs +1 -0
  118. package/lib/{events.constant-CBPIqO_g.js → events.constant-wrlJ_7JZ.js} +5 -4
  119. package/lib/{index-DGihe-wH.js → index-0OnGZkVF.js} +19 -16
  120. package/lib/{index-CnbtiTqP.cjs → index-CNzHZDls.cjs} +3 -3
  121. package/lib/{index--XZPCi0O.js → index-DuZCJJSp.js} +203 -179
  122. package/lib/{index-D4d-0Hqh.cjs → index-FSRjMsxW.cjs} +1 -1
  123. package/lib/index.cjs +1 -1
  124. package/lib/index.js +2 -2
  125. package/lib/{input-Byg4PPou.js → input-DfqFAyKo.js} +1 -1
  126. package/lib/{input-Dikmsjjj.cjs → input-tU3H__39.cjs} +1 -1
  127. package/lib/{label-BX7OqM6p.js → label-DC33TZy_.js} +1 -1
  128. package/lib/{label-ChxDmW-K.cjs → label-DkDE77kc.cjs} +1 -1
  129. package/lib/locale-bundle.cjs +1 -1
  130. package/lib/locale-bundle.js +1 -1
  131. package/lib/locales/index.d.ts +2 -1
  132. package/lib/{popover-DVD1y8Z_.cjs → popover-CZWSQZ0q.cjs} +1 -1
  133. package/lib/{popover-CheVmqgb.js → popover-CoepUobG.js} +1 -1
  134. package/lib/{separator-Y_Pbpi-5.js → separator-6SnwzytZ.js} +5 -5
  135. package/lib/{separator-CSuS-D6T.cjs → separator-DCQD8P6s.cjs} +1 -1
  136. package/lib/store-726Zjszt.cjs +1 -0
  137. package/lib/store-ibARMQ3h.js +10 -0
  138. package/lib/style.css +1 -1
  139. package/lib/{tabs-B9ooipwg.cjs → tabs-B_ArrG09.cjs} +1 -1
  140. package/lib/{tabs-p4pJGb6o.js → tabs-DrkJL_C2.js} +1 -1
  141. package/lib/{textarea-Byts1Pn0.js → textarea-CIs52G8B.js} +1 -1
  142. package/lib/{textarea-L53EceuF.cjs → textarea-CmZVZKOo.cjs} +1 -1
  143. package/lib/theme.cjs +1 -1
  144. package/lib/theme.js +1 -1
  145. package/lib/{toggle-DUPu3nnZ.cjs → toggle-DVCNvcqp.cjs} +1 -1
  146. package/lib/{toggle-WBgzE8Jm.js → toggle-xchtz-Kf.js} +3 -3
  147. package/lib/{tooltip-BOMwAoO1.js → tooltip-BTFcHrd9.js} +1 -1
  148. package/lib/{tooltip-DD5Ii8qI.cjs → tooltip-DFjcKu9a.cjs} +1 -1
  149. package/lib/{useButtonProps-BIOoOg6h.js → useButtonProps-D0SrPzuG.js} +2 -2
  150. package/lib/{useButtonProps-C4SCmCVo.cjs → useButtonProps-bei1vI37.cjs} +1 -1
  151. package/lib/utils/customEvents/events.constant.d.ts +1 -0
  152. package/package.json +1 -1
  153. package/lib/events.constant-B-VGURJp.cjs +0 -1
  154. package/lib/store-BVm_SgvL.js +0 -10
  155. package/lib/store-DznMm4Ug.cjs +0 -1
@@ -1,44 +1,44 @@
1
1
  import { C as Ee } from "./index-nFjllrEl.js";
2
2
  import { jsx as M, Fragment as X, jsxs as ze } from "react/jsx-runtime";
3
- import { useCallback as E, useState as Ae, useEffect as k, useRef as Q, createContext as ke, useContext as Re, useSyncExternalStore as Me, memo as Pe } from "react";
4
- import { x as Ne, a as Ge } from "./index-DGihe-wH.js";
3
+ import { useCallback as E, useState as Ae, useEffect as k, useRef as Q, createContext as ke, useContext as Re, useSyncExternalStore as Me, memo as Le } from "react";
4
+ import { x as Pe, a as Ge } from "./index-0OnGZkVF.js";
5
5
  import { THEME as le } from "./theme.js";
6
- import { l as _, E as W } from "./events.constant-CBPIqO_g.js";
7
- const Z = "-", Te = (e) => {
8
- const r = Le(e), {
6
+ import { l as j, E as O } from "./events.constant-wrlJ_7JZ.js";
7
+ const Z = "-", Ne = (e) => {
8
+ const r = Te(e), {
9
9
  conflictingClassGroups: t,
10
10
  conflictingClassGroupModifiers: o
11
11
  } = e;
12
12
  return {
13
- getClassGroupId: (a) => {
14
- const s = a.split(Z);
15
- return s[0] === "" && s.length !== 1 && s.shift(), ge(s, r) || Ie(a);
13
+ getClassGroupId: (i) => {
14
+ const s = i.split(Z);
15
+ return s[0] === "" && s.length !== 1 && s.shift(), fe(s, r) || Ie(i);
16
16
  },
17
- getConflictingClassGroupIds: (a, s) => {
18
- const c = t[a] || [];
19
- return s && o[a] ? [...c, ...o[a]] : c;
17
+ getConflictingClassGroupIds: (i, s) => {
18
+ const c = t[i] || [];
19
+ return s && o[i] ? [...c, ...o[i]] : c;
20
20
  }
21
21
  };
22
- }, ge = (e, r) => {
23
- var a;
22
+ }, fe = (e, r) => {
23
+ var i;
24
24
  if (e.length === 0)
25
25
  return r.classGroupId;
26
- const t = e[0], o = r.nextPart.get(t), i = o ? ge(e.slice(1), o) : void 0;
27
- if (i)
28
- return i;
26
+ const t = e[0], o = r.nextPart.get(t), a = o ? fe(e.slice(1), o) : void 0;
27
+ if (a)
28
+ return a;
29
29
  if (r.validators.length === 0)
30
30
  return;
31
31
  const n = e.join(Z);
32
- return (a = r.validators.find(({
32
+ return (i = r.validators.find(({
33
33
  validator: s
34
- }) => s(n))) == null ? void 0 : a.classGroupId;
34
+ }) => s(n))) == null ? void 0 : i.classGroupId;
35
35
  }, ce = /^\[(.+)\]$/, Ie = (e) => {
36
36
  if (ce.test(e)) {
37
37
  const r = ce.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
38
38
  if (t)
39
39
  return "arbitrary.." + t;
40
40
  }
41
- }, Le = (e) => {
41
+ }, Te = (e) => {
42
42
  const {
43
43
  theme: r,
44
44
  prefix: t
@@ -46,29 +46,29 @@ const Z = "-", Te = (e) => {
46
46
  nextPart: /* @__PURE__ */ new Map(),
47
47
  validators: []
48
48
  };
49
- return Oe(Object.entries(e.classGroups), t).forEach(([n, a]) => {
50
- Y(a, o, n, r);
49
+ return Oe(Object.entries(e.classGroups), t).forEach(([n, i]) => {
50
+ Y(i, o, n, r);
51
51
  }), o;
52
52
  }, Y = (e, r, t, o) => {
53
- e.forEach((i) => {
54
- if (typeof i == "string") {
55
- const n = i === "" ? r : de(r, i);
53
+ e.forEach((a) => {
54
+ if (typeof a == "string") {
55
+ const n = a === "" ? r : de(r, a);
56
56
  n.classGroupId = t;
57
57
  return;
58
58
  }
59
- if (typeof i == "function") {
60
- if (je(i)) {
61
- Y(i(o), r, t, o);
59
+ if (typeof a == "function") {
60
+ if (je(a)) {
61
+ Y(a(o), r, t, o);
62
62
  return;
63
63
  }
64
64
  r.validators.push({
65
- validator: i,
65
+ validator: a,
66
66
  classGroupId: t
67
67
  });
68
68
  return;
69
69
  }
70
- Object.entries(i).forEach(([n, a]) => {
71
- Y(a, de(r, n), t, o);
70
+ Object.entries(a).forEach(([n, i]) => {
71
+ Y(i, de(r, n), t, o);
72
72
  });
73
73
  });
74
74
  }, de = (e, r) => {
@@ -80,8 +80,8 @@ const Z = "-", Te = (e) => {
80
80
  }), t = t.nextPart.get(o);
81
81
  }), t;
82
82
  }, je = (e) => e.isThemeGetter, Oe = (e, r) => r ? e.map(([t, o]) => {
83
- const i = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, s]) => [r + a, s])) : n);
84
- return [t, i];
83
+ const a = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([i, s]) => [r + i, s])) : n);
84
+ return [t, a];
85
85
  }) : e, $e = (e) => {
86
86
  if (e < 1)
87
87
  return {
@@ -91,43 +91,43 @@ const Z = "-", Te = (e) => {
91
91
  }
92
92
  };
93
93
  let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
94
- const i = (n, a) => {
95
- t.set(n, a), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
94
+ const a = (n, i) => {
95
+ t.set(n, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
96
96
  };
97
97
  return {
98
98
  get(n) {
99
- let a = t.get(n);
100
- if (a !== void 0)
101
- return a;
102
- if ((a = o.get(n)) !== void 0)
103
- return i(n, a), a;
99
+ let i = t.get(n);
100
+ if (i !== void 0)
101
+ return i;
102
+ if ((i = o.get(n)) !== void 0)
103
+ return a(n, i), i;
104
104
  },
105
- set(n, a) {
106
- t.has(n) ? t.set(n, a) : i(n, a);
105
+ set(n, i) {
106
+ t.has(n) ? t.set(n, i) : a(n, i);
107
107
  }
108
108
  };
109
109
  }, be = "!", _e = (e) => {
110
110
  const {
111
111
  separator: r,
112
112
  experimentalParseClassName: t
113
- } = e, o = r.length === 1, i = r[0], n = r.length, a = (s) => {
113
+ } = e, o = r.length === 1, a = r[0], n = r.length, i = (s) => {
114
114
  const c = [];
115
- let u = 0, p = 0, f;
115
+ let u = 0, p = 0, g;
116
116
  for (let h = 0; h < s.length; h++) {
117
117
  let w = s[h];
118
118
  if (u === 0) {
119
- if (w === i && (o || s.slice(h, h + n) === r)) {
119
+ if (w === a && (o || s.slice(h, h + n) === r)) {
120
120
  c.push(s.slice(p, h)), p = h + n;
121
121
  continue;
122
122
  }
123
123
  if (w === "/") {
124
- f = h;
124
+ g = h;
125
125
  continue;
126
126
  }
127
127
  }
128
128
  w === "[" ? u++ : w === "]" && u--;
129
129
  }
130
- const d = c.length === 0 ? s : s.substring(p), m = d.startsWith(be), y = m ? d.substring(1) : d, x = f && f > p ? f - p : void 0;
130
+ const d = c.length === 0 ? s : s.substring(p), m = d.startsWith(be), y = m ? d.substring(1) : d, x = g && g > p ? g - p : void 0;
131
131
  return {
132
132
  modifiers: c,
133
133
  hasImportantModifier: m,
@@ -137,9 +137,9 @@ const Z = "-", Te = (e) => {
137
137
  };
138
138
  return t ? (s) => t({
139
139
  className: s,
140
- parseClassName: a
141
- }) : a;
142
- }, We = (e) => {
140
+ parseClassName: i
141
+ }) : i;
142
+ }, Fe = (e) => {
143
143
  if (e.length <= 1)
144
144
  return e;
145
145
  const r = [];
@@ -147,21 +147,21 @@ const Z = "-", Te = (e) => {
147
147
  return e.forEach((o) => {
148
148
  o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
149
149
  }), r.push(...t.sort()), r;
150
- }, Fe = (e) => ({
150
+ }, We = (e) => ({
151
151
  cache: $e(e.cacheSize),
152
152
  parseClassName: _e(e),
153
- ...Te(e)
154
- }), He = /\s+/, Be = (e, r) => {
153
+ ...Ne(e)
154
+ }), He = /\s+/, Ue = (e, r) => {
155
155
  const {
156
156
  parseClassName: t,
157
157
  getClassGroupId: o,
158
- getConflictingClassGroupIds: i
159
- } = r, n = [], a = e.trim().split(He);
158
+ getConflictingClassGroupIds: a
159
+ } = r, n = [], i = e.trim().split(He);
160
160
  let s = "";
161
- for (let c = a.length - 1; c >= 0; c -= 1) {
162
- const u = a[c], {
161
+ for (let c = i.length - 1; c >= 0; c -= 1) {
162
+ const u = i[c], {
163
163
  modifiers: p,
164
- hasImportantModifier: f,
164
+ hasImportantModifier: g,
165
165
  baseClassName: d,
166
166
  maybePostfixModifierPosition: m
167
167
  } = t(u);
@@ -177,20 +177,20 @@ const Z = "-", Te = (e) => {
177
177
  }
178
178
  y = !1;
179
179
  }
180
- const h = We(p).join(":"), w = f ? h + be : h, v = w + x;
180
+ const h = Fe(p).join(":"), w = g ? h + be : h, v = w + x;
181
181
  if (n.includes(v))
182
182
  continue;
183
183
  n.push(v);
184
- const G = i(x, y);
184
+ const G = a(x, y);
185
185
  for (let R = 0; R < G.length; ++R) {
186
- const j = G[R];
187
- n.push(w + j);
186
+ const $ = G[R];
187
+ n.push(w + $);
188
188
  }
189
189
  s = u + (s.length > 0 ? " " + s : s);
190
190
  }
191
191
  return s;
192
192
  };
193
- function Ue() {
193
+ function Be() {
194
194
  let e = 0, r, t, o = "";
195
195
  for (; e < arguments.length; )
196
196
  (r = arguments[e++]) && (t = me(r)) && (o && (o += " "), o += t);
@@ -205,40 +205,40 @@ const me = (e) => {
205
205
  return t;
206
206
  };
207
207
  function Ve(e, ...r) {
208
- let t, o, i, n = a;
209
- function a(c) {
210
- const u = r.reduce((p, f) => f(p), e());
211
- return t = Fe(u), o = t.cache.get, i = t.cache.set, n = s, s(c);
208
+ let t, o, a, n = i;
209
+ function i(c) {
210
+ const u = r.reduce((p, g) => g(p), e());
211
+ return t = We(u), o = t.cache.get, a = t.cache.set, n = s, s(c);
212
212
  }
213
213
  function s(c) {
214
214
  const u = o(c);
215
215
  if (u)
216
216
  return u;
217
- const p = Be(c, t);
218
- return i(c, p), p;
217
+ const p = Ue(c, t);
218
+ return a(c, p), p;
219
219
  }
220
220
  return function() {
221
- return n(Ue.apply(null, arguments));
221
+ return n(Be.apply(null, arguments));
222
222
  };
223
223
  }
224
- const g = (e) => {
224
+ const f = (e) => {
225
225
  const r = (t) => t[e] || [];
226
226
  return r.isThemeGetter = !0, r;
227
- }, he = /^\[(?:([a-z-]+):)?(.+)\]$/i, qe = /^\d+\/\d+$/, Je = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ye = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ke = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Xe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ze = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, S = (e) => P(e) || Je.has(e) || qe.test(e), z = (e) => N(e, "length", ir), P = (e) => !!e && !Number.isNaN(Number(e)), V = (e) => N(e, "number", P), I = (e) => !!e && Number.isInteger(Number(e)), De = (e) => e.endsWith("%") && P(e.slice(0, -1)), l = (e) => he.test(e), A = (e) => Qe.test(e), er = /* @__PURE__ */ new Set(["length", "size", "percentage"]), rr = (e) => N(e, er, xe), tr = (e) => N(e, "position", xe), or = /* @__PURE__ */ new Set(["image", "url"]), nr = (e) => N(e, or, lr), sr = (e) => N(e, "", ar), L = () => !0, N = (e, r, t) => {
227
+ }, he = /^\[(?:([a-z-]+):)?(.+)\]$/i, qe = /^\d+\/\d+$/, Je = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ye = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ke = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Xe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ze = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, S = (e) => L(e) || Je.has(e) || qe.test(e), z = (e) => P(e, "length", ar), L = (e) => !!e && !Number.isNaN(Number(e)), V = (e) => P(e, "number", L), I = (e) => !!e && Number.isInteger(Number(e)), De = (e) => e.endsWith("%") && L(e.slice(0, -1)), l = (e) => he.test(e), A = (e) => Qe.test(e), er = /* @__PURE__ */ new Set(["length", "size", "percentage"]), rr = (e) => P(e, er, xe), tr = (e) => P(e, "position", xe), or = /* @__PURE__ */ new Set(["image", "url"]), nr = (e) => P(e, or, lr), sr = (e) => P(e, "", ir), T = () => !0, P = (e, r, t) => {
228
228
  const o = he.exec(e);
229
229
  return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
230
- }, ir = (e) => (
230
+ }, ar = (e) => (
231
231
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
232
232
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
233
233
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
234
234
  Ye.test(e) && !Ke.test(e)
235
- ), xe = () => !1, ar = (e) => Xe.test(e), lr = (e) => Ze.test(e), cr = () => {
236
- const e = g("colors"), r = g("spacing"), t = g("blur"), o = g("brightness"), i = g("borderColor"), n = g("borderRadius"), a = g("borderSpacing"), s = g("borderWidth"), c = g("contrast"), u = g("grayscale"), p = g("hueRotate"), f = g("invert"), d = g("gap"), m = g("gradientColorStops"), y = g("gradientColorStopPositions"), x = g("inset"), h = g("margin"), w = g("opacity"), v = g("padding"), G = g("saturate"), R = g("scale"), j = g("sepia"), re = g("skew"), te = g("space"), oe = g("translate"), F = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", l, r], b = () => [l, r], ne = () => ["", S, z], O = () => ["auto", P, l], se = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], T = () => ["", "0", l], ae = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [P, l];
235
+ ), xe = () => !1, ir = (e) => Xe.test(e), lr = (e) => Ze.test(e), cr = () => {
236
+ const e = f("colors"), r = f("spacing"), t = f("blur"), o = f("brightness"), a = f("borderColor"), n = f("borderRadius"), i = f("borderSpacing"), s = f("borderWidth"), c = f("contrast"), u = f("grayscale"), p = f("hueRotate"), g = f("invert"), d = f("gap"), m = f("gradientColorStops"), y = f("gradientColorStopPositions"), x = f("inset"), h = f("margin"), w = f("opacity"), v = f("padding"), G = f("saturate"), R = f("scale"), $ = f("sepia"), re = f("skew"), te = f("space"), oe = f("translate"), W = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", l, r], b = () => [l, r], ne = () => ["", S, z], _ = () => ["auto", L, l], se = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], ae = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], N = () => ["", "0", l], ie = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [L, l];
237
237
  return {
238
238
  cacheSize: 500,
239
239
  separator: ":",
240
240
  theme: {
241
- colors: [L],
241
+ colors: [T],
242
242
  spacing: [S, z],
243
243
  blur: ["none", "", A, l],
244
244
  brightness: C(),
@@ -247,19 +247,19 @@ const g = (e) => {
247
247
  borderSpacing: b(),
248
248
  borderWidth: ne(),
249
249
  contrast: C(),
250
- grayscale: T(),
250
+ grayscale: N(),
251
251
  hueRotate: C(),
252
- invert: T(),
252
+ invert: N(),
253
253
  gap: b(),
254
254
  gradientColorStops: [e],
255
255
  gradientColorStopPositions: [De, z],
256
- inset: B(),
257
- margin: B(),
256
+ inset: U(),
257
+ margin: U(),
258
258
  opacity: C(),
259
259
  padding: b(),
260
260
  saturate: C(),
261
261
  scale: C(),
262
- sepia: T(),
262
+ sepia: N(),
263
263
  skew: C(),
264
264
  space: b(),
265
265
  translate: b()
@@ -290,14 +290,14 @@ const g = (e) => {
290
290
  * @see https://tailwindcss.com/docs/break-after
291
291
  */
292
292
  "break-after": [{
293
- "break-after": ae()
293
+ "break-after": ie()
294
294
  }],
295
295
  /**
296
296
  * Break Before
297
297
  * @see https://tailwindcss.com/docs/break-before
298
298
  */
299
299
  "break-before": [{
300
- "break-before": ae()
300
+ "break-before": ie()
301
301
  }],
302
302
  /**
303
303
  * Break Inside
@@ -384,21 +384,21 @@ const g = (e) => {
384
384
  * @see https://tailwindcss.com/docs/overscroll-behavior
385
385
  */
386
386
  overscroll: [{
387
- overscroll: F()
387
+ overscroll: W()
388
388
  }],
389
389
  /**
390
390
  * Overscroll Behavior X
391
391
  * @see https://tailwindcss.com/docs/overscroll-behavior
392
392
  */
393
393
  "overscroll-x": [{
394
- "overscroll-x": F()
394
+ "overscroll-x": W()
395
395
  }],
396
396
  /**
397
397
  * Overscroll Behavior Y
398
398
  * @see https://tailwindcss.com/docs/overscroll-behavior
399
399
  */
400
400
  "overscroll-y": [{
401
- "overscroll-y": F()
401
+ "overscroll-y": W()
402
402
  }],
403
403
  /**
404
404
  * Position
@@ -486,7 +486,7 @@ const g = (e) => {
486
486
  * @see https://tailwindcss.com/docs/flex-basis
487
487
  */
488
488
  basis: [{
489
- basis: B()
489
+ basis: U()
490
490
  }],
491
491
  /**
492
492
  * Flex Direction
@@ -514,14 +514,14 @@ const g = (e) => {
514
514
  * @see https://tailwindcss.com/docs/flex-grow
515
515
  */
516
516
  grow: [{
517
- grow: T()
517
+ grow: N()
518
518
  }],
519
519
  /**
520
520
  * Flex Shrink
521
521
  * @see https://tailwindcss.com/docs/flex-shrink
522
522
  */
523
523
  shrink: [{
524
- shrink: T()
524
+ shrink: N()
525
525
  }],
526
526
  /**
527
527
  * Order
@@ -535,7 +535,7 @@ const g = (e) => {
535
535
  * @see https://tailwindcss.com/docs/grid-template-columns
536
536
  */
537
537
  "grid-cols": [{
538
- "grid-cols": [L]
538
+ "grid-cols": [T]
539
539
  }],
540
540
  /**
541
541
  * Grid Column Start / End
@@ -551,21 +551,21 @@ const g = (e) => {
551
551
  * @see https://tailwindcss.com/docs/grid-column
552
552
  */
553
553
  "col-start": [{
554
- "col-start": O()
554
+ "col-start": _()
555
555
  }],
556
556
  /**
557
557
  * Grid Column End
558
558
  * @see https://tailwindcss.com/docs/grid-column
559
559
  */
560
560
  "col-end": [{
561
- "col-end": O()
561
+ "col-end": _()
562
562
  }],
563
563
  /**
564
564
  * Grid Template Rows
565
565
  * @see https://tailwindcss.com/docs/grid-template-rows
566
566
  */
567
567
  "grid-rows": [{
568
- "grid-rows": [L]
568
+ "grid-rows": [T]
569
569
  }],
570
570
  /**
571
571
  * Grid Row Start / End
@@ -581,14 +581,14 @@ const g = (e) => {
581
581
  * @see https://tailwindcss.com/docs/grid-row
582
582
  */
583
583
  "row-start": [{
584
- "row-start": O()
584
+ "row-start": _()
585
585
  }],
586
586
  /**
587
587
  * Grid Row End
588
588
  * @see https://tailwindcss.com/docs/grid-row
589
589
  */
590
590
  "row-end": [{
591
- "row-end": O()
591
+ "row-end": _()
592
592
  }],
593
593
  /**
594
594
  * Grid Auto Flow
@@ -637,7 +637,7 @@ const g = (e) => {
637
637
  * @see https://tailwindcss.com/docs/justify-content
638
638
  */
639
639
  "justify-content": [{
640
- justify: ["normal", ...U()]
640
+ justify: ["normal", ...B()]
641
641
  }],
642
642
  /**
643
643
  * Justify Items
@@ -658,7 +658,7 @@ const g = (e) => {
658
658
  * @see https://tailwindcss.com/docs/align-content
659
659
  */
660
660
  "align-content": [{
661
- content: ["normal", ...U(), "baseline"]
661
+ content: ["normal", ...B(), "baseline"]
662
662
  }],
663
663
  /**
664
664
  * Align Items
@@ -679,7 +679,7 @@ const g = (e) => {
679
679
  * @see https://tailwindcss.com/docs/place-content
680
680
  */
681
681
  "place-content": [{
682
- "place-content": [...U(), "baseline"]
682
+ "place-content": [...B(), "baseline"]
683
683
  }],
684
684
  /**
685
685
  * Place Items
@@ -928,7 +928,7 @@ const g = (e) => {
928
928
  * @see https://tailwindcss.com/docs/font-family
929
929
  */
930
930
  "font-family": [{
931
- font: [L]
931
+ font: [T]
932
932
  }],
933
933
  /**
934
934
  * Font Variant Numeric
@@ -972,7 +972,7 @@ const g = (e) => {
972
972
  * @see https://tailwindcss.com/docs/line-clamp
973
973
  */
974
974
  "line-clamp": [{
975
- "line-clamp": ["none", P, V]
975
+ "line-clamp": ["none", L, V]
976
976
  }],
977
977
  /**
978
978
  * Line Height
@@ -1048,7 +1048,7 @@ const g = (e) => {
1048
1048
  * @see https://tailwindcss.com/docs/text-decoration-style
1049
1049
  */
1050
1050
  "text-decoration-style": [{
1051
- decoration: [...$(), "wavy"]
1051
+ decoration: [...F(), "wavy"]
1052
1052
  }],
1053
1053
  /**
1054
1054
  * Text Decoration Thickness
@@ -1422,7 +1422,7 @@ const g = (e) => {
1422
1422
  * @see https://tailwindcss.com/docs/border-style
1423
1423
  */
1424
1424
  "border-style": [{
1425
- border: [...$(), "hidden"]
1425
+ border: [...F(), "hidden"]
1426
1426
  }],
1427
1427
  /**
1428
1428
  * Divide Width X
@@ -1460,84 +1460,84 @@ const g = (e) => {
1460
1460
  * @see https://tailwindcss.com/docs/divide-style
1461
1461
  */
1462
1462
  "divide-style": [{
1463
- divide: $()
1463
+ divide: F()
1464
1464
  }],
1465
1465
  /**
1466
1466
  * Border Color
1467
1467
  * @see https://tailwindcss.com/docs/border-color
1468
1468
  */
1469
1469
  "border-color": [{
1470
- border: [i]
1470
+ border: [a]
1471
1471
  }],
1472
1472
  /**
1473
1473
  * Border Color X
1474
1474
  * @see https://tailwindcss.com/docs/border-color
1475
1475
  */
1476
1476
  "border-color-x": [{
1477
- "border-x": [i]
1477
+ "border-x": [a]
1478
1478
  }],
1479
1479
  /**
1480
1480
  * Border Color Y
1481
1481
  * @see https://tailwindcss.com/docs/border-color
1482
1482
  */
1483
1483
  "border-color-y": [{
1484
- "border-y": [i]
1484
+ "border-y": [a]
1485
1485
  }],
1486
1486
  /**
1487
1487
  * Border Color S
1488
1488
  * @see https://tailwindcss.com/docs/border-color
1489
1489
  */
1490
1490
  "border-color-s": [{
1491
- "border-s": [i]
1491
+ "border-s": [a]
1492
1492
  }],
1493
1493
  /**
1494
1494
  * Border Color E
1495
1495
  * @see https://tailwindcss.com/docs/border-color
1496
1496
  */
1497
1497
  "border-color-e": [{
1498
- "border-e": [i]
1498
+ "border-e": [a]
1499
1499
  }],
1500
1500
  /**
1501
1501
  * Border Color Top
1502
1502
  * @see https://tailwindcss.com/docs/border-color
1503
1503
  */
1504
1504
  "border-color-t": [{
1505
- "border-t": [i]
1505
+ "border-t": [a]
1506
1506
  }],
1507
1507
  /**
1508
1508
  * Border Color Right
1509
1509
  * @see https://tailwindcss.com/docs/border-color
1510
1510
  */
1511
1511
  "border-color-r": [{
1512
- "border-r": [i]
1512
+ "border-r": [a]
1513
1513
  }],
1514
1514
  /**
1515
1515
  * Border Color Bottom
1516
1516
  * @see https://tailwindcss.com/docs/border-color
1517
1517
  */
1518
1518
  "border-color-b": [{
1519
- "border-b": [i]
1519
+ "border-b": [a]
1520
1520
  }],
1521
1521
  /**
1522
1522
  * Border Color Left
1523
1523
  * @see https://tailwindcss.com/docs/border-color
1524
1524
  */
1525
1525
  "border-color-l": [{
1526
- "border-l": [i]
1526
+ "border-l": [a]
1527
1527
  }],
1528
1528
  /**
1529
1529
  * Divide Color
1530
1530
  * @see https://tailwindcss.com/docs/divide-color
1531
1531
  */
1532
1532
  "divide-color": [{
1533
- divide: [i]
1533
+ divide: [a]
1534
1534
  }],
1535
1535
  /**
1536
1536
  * Outline Style
1537
1537
  * @see https://tailwindcss.com/docs/outline-style
1538
1538
  */
1539
1539
  "outline-style": [{
1540
- outline: ["", ...$()]
1540
+ outline: ["", ...F()]
1541
1541
  }],
1542
1542
  /**
1543
1543
  * Outline Offset
@@ -1613,7 +1613,7 @@ const g = (e) => {
1613
1613
  * @see https://tailwindcss.com/docs/box-shadow-color
1614
1614
  */
1615
1615
  "shadow-color": [{
1616
- shadow: [L]
1616
+ shadow: [T]
1617
1617
  }],
1618
1618
  /**
1619
1619
  * Opacity
@@ -1627,14 +1627,14 @@ const g = (e) => {
1627
1627
  * @see https://tailwindcss.com/docs/mix-blend-mode
1628
1628
  */
1629
1629
  "mix-blend": [{
1630
- "mix-blend": [...ie(), "plus-lighter", "plus-darker"]
1630
+ "mix-blend": [...ae(), "plus-lighter", "plus-darker"]
1631
1631
  }],
1632
1632
  /**
1633
1633
  * Background Blend Mode
1634
1634
  * @see https://tailwindcss.com/docs/background-blend-mode
1635
1635
  */
1636
1636
  "bg-blend": [{
1637
- "bg-blend": ie()
1637
+ "bg-blend": ae()
1638
1638
  }],
1639
1639
  // Filters
1640
1640
  /**
@@ -1692,7 +1692,7 @@ const g = (e) => {
1692
1692
  * @see https://tailwindcss.com/docs/invert
1693
1693
  */
1694
1694
  invert: [{
1695
- invert: [f]
1695
+ invert: [g]
1696
1696
  }],
1697
1697
  /**
1698
1698
  * Saturate
@@ -1706,7 +1706,7 @@ const g = (e) => {
1706
1706
  * @see https://tailwindcss.com/docs/sepia
1707
1707
  */
1708
1708
  sepia: [{
1709
- sepia: [j]
1709
+ sepia: [$]
1710
1710
  }],
1711
1711
  /**
1712
1712
  * Backdrop Filter
@@ -1756,7 +1756,7 @@ const g = (e) => {
1756
1756
  * @see https://tailwindcss.com/docs/backdrop-invert
1757
1757
  */
1758
1758
  "backdrop-invert": [{
1759
- "backdrop-invert": [f]
1759
+ "backdrop-invert": [g]
1760
1760
  }],
1761
1761
  /**
1762
1762
  * Backdrop Opacity
@@ -1777,7 +1777,7 @@ const g = (e) => {
1777
1777
  * @see https://tailwindcss.com/docs/backdrop-sepia
1778
1778
  */
1779
1779
  "backdrop-sepia": [{
1780
- "backdrop-sepia": [j]
1780
+ "backdrop-sepia": [$]
1781
1781
  }],
1782
1782
  // Tables
1783
1783
  /**
@@ -1792,21 +1792,21 @@ const g = (e) => {
1792
1792
  * @see https://tailwindcss.com/docs/border-spacing
1793
1793
  */
1794
1794
  "border-spacing": [{
1795
- "border-spacing": [a]
1795
+ "border-spacing": [i]
1796
1796
  }],
1797
1797
  /**
1798
1798
  * Border Spacing X
1799
1799
  * @see https://tailwindcss.com/docs/border-spacing
1800
1800
  */
1801
1801
  "border-spacing-x": [{
1802
- "border-spacing-x": [a]
1802
+ "border-spacing-x": [i]
1803
1803
  }],
1804
1804
  /**
1805
1805
  * Border Spacing Y
1806
1806
  * @see https://tailwindcss.com/docs/border-spacing
1807
1807
  */
1808
1808
  "border-spacing-y": [{
1809
- "border-spacing-y": [a]
1809
+ "border-spacing-y": [i]
1810
1810
  }],
1811
1811
  /**
1812
1812
  * Table Layout
@@ -2272,8 +2272,8 @@ function ue(e, r, t = window) {
2272
2272
  o.current = r;
2273
2273
  }, [r]), k(() => {
2274
2274
  if (!(t && t.addEventListener)) return;
2275
- const n = (a) => {
2276
- o.current && o.current(a);
2275
+ const n = (i) => {
2276
+ o.current && o.current(i);
2277
2277
  };
2278
2278
  return t.addEventListener(e, n), () => {
2279
2279
  t.removeEventListener(e, n);
@@ -2281,7 +2281,7 @@ function ue(e, r, t = window) {
2281
2281
  }, [e, t]);
2282
2282
  }
2283
2283
  function J(e, r, t = {}) {
2284
- const { initializeWithValue: o = !0 } = t, i = E(
2284
+ const { initializeWithValue: o = !0 } = t, a = E(
2285
2285
  (d) => t.serializer ? t.serializer(d) : JSON.stringify(d),
2286
2286
  [t]
2287
2287
  ), n = E(
@@ -2300,7 +2300,7 @@ function J(e, r, t = {}) {
2300
2300
  return y;
2301
2301
  },
2302
2302
  [t, r]
2303
- ), a = E(() => {
2303
+ ), i = E(() => {
2304
2304
  const d = r instanceof Function ? r() : r;
2305
2305
  if (q)
2306
2306
  return d;
@@ -2313,13 +2313,13 @@ function J(e, r, t = {}) {
2313
2313
  m
2314
2314
  ), d;
2315
2315
  }
2316
- }, [r, e, n]), [s, c] = Ae(() => o ? a() : r instanceof Function ? r() : r), u = E((d) => {
2316
+ }, [r, e, n]), [s, c] = Ae(() => o ? i() : r instanceof Function ? r() : r), u = E((d) => {
2317
2317
  q && console.warn(
2318
2318
  `Tried setting localStorage key “${e}” even though environment is not a client`
2319
2319
  );
2320
2320
  try {
2321
- const m = d instanceof Function ? d(a()) : d;
2322
- window.localStorage.setItem(e, i(m)), c(m), window.dispatchEvent(
2321
+ const m = d instanceof Function ? d(i()) : d;
2322
+ window.localStorage.setItem(e, a(m)), c(m), window.dispatchEvent(
2323
2323
  new StorageEvent("local-storage", {
2324
2324
  key: e
2325
2325
  })
@@ -2330,7 +2330,7 @@ function J(e, r, t = {}) {
2330
2330
  m
2331
2331
  );
2332
2332
  }
2333
- }, [e, i, a]), p = E(() => {
2333
+ }, [e, a, i]), p = E(() => {
2334
2334
  q && console.warn(
2335
2335
  `Tried removing localStorage key “${e}” even though environment is not a client`
2336
2336
  );
@@ -2342,23 +2342,23 @@ function J(e, r, t = {}) {
2342
2342
  );
2343
2343
  }, [e, r]);
2344
2344
  k(() => {
2345
- c(a());
2345
+ c(i());
2346
2346
  }, [e]);
2347
- const f = E(
2347
+ const g = E(
2348
2348
  (d) => {
2349
- d.key && d.key !== e || c(a());
2349
+ d.key && d.key !== e || c(i());
2350
2350
  },
2351
- [e, a]
2351
+ [e, i]
2352
2352
  );
2353
- return ue("storage", f), ue("local-storage", f), [s, u, p];
2353
+ return ue("storage", g), ue("local-storage", g), [s, u, p];
2354
2354
  }
2355
2355
  function D(e) {
2356
2356
  function r() {
2357
- const n = Q(e), a = E(() => n.current, []), s = Q(/* @__PURE__ */ new Set()), c = E((p) => {
2358
- n.current = { ...n.current, ...p }, s.current.forEach((f) => f());
2357
+ const n = Q(e), i = E(() => n.current, []), s = Q(/* @__PURE__ */ new Set()), c = E((p) => {
2358
+ n.current = { ...n.current, ...p }, s.current.forEach((g) => g());
2359
2359
  }, []), u = E((p) => (s.current.add(p), () => s.current.delete(p)), []);
2360
2360
  return {
2361
- get: a,
2361
+ get: i,
2362
2362
  set: c,
2363
2363
  subscribe: u
2364
2364
  };
@@ -2367,19 +2367,19 @@ function D(e) {
2367
2367
  function o({ children: n }) {
2368
2368
  return /* @__PURE__ */ M(t.Provider, { value: r(), children: n });
2369
2369
  }
2370
- function i(n) {
2371
- const a = Re(t);
2372
- if (!a)
2370
+ function a(n) {
2371
+ const i = Re(t);
2372
+ if (!i)
2373
2373
  throw new Error("Store not found");
2374
2374
  return [Me(
2375
- a.subscribe,
2376
- () => n(a.get()),
2375
+ i.subscribe,
2376
+ () => n(i.get()),
2377
2377
  () => n(e)
2378
- ), a.set];
2378
+ ), i.set];
2379
2379
  }
2380
2380
  return {
2381
2381
  Provider: o,
2382
- useStore: i
2382
+ useStore: a
2383
2383
  };
2384
2384
  }
2385
2385
  D({
@@ -2395,8 +2395,8 @@ function Rr() {
2395
2395
  const [e] = we((r) => r.value);
2396
2396
  return e;
2397
2397
  }
2398
- const pe = "data-rc-order", fe = "data-rc-priority", pr = "rc-util-key", K = /* @__PURE__ */ new Map();
2399
- function fr(e, r) {
2398
+ const pe = "data-rc-order", ge = "data-rc-priority", pr = "rc-util-key", K = /* @__PURE__ */ new Map();
2399
+ function gr(e, r) {
2400
2400
  if (!e)
2401
2401
  return !1;
2402
2402
  if (e.contains)
@@ -2415,7 +2415,7 @@ function ye({ mark: e } = {}) {
2415
2415
  function ee(e) {
2416
2416
  return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
2417
2417
  }
2418
- function gr(e) {
2418
+ function fr(e) {
2419
2419
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
2420
2420
  }
2421
2421
  function ve(e) {
@@ -2424,16 +2424,16 @@ function ve(e) {
2424
2424
  );
2425
2425
  }
2426
2426
  function Ce(e, r = {}) {
2427
- const { csp: t, prepend: o, priority: i = 0 } = r, n = gr(o), a = n === "prependQueue", s = document.createElement("style");
2428
- s.setAttribute(pe, n), a && i && s.setAttribute(fe, `${i}`), t != null && t.nonce && (s.nonce = t == null ? void 0 : t.nonce), s.innerHTML = e;
2427
+ const { csp: t, prepend: o, priority: a = 0 } = r, n = fr(o), i = n === "prependQueue", s = document.createElement("style");
2428
+ s.setAttribute(pe, n), i && a && s.setAttribute(ge, `${a}`), t != null && t.nonce && (s.nonce = t == null ? void 0 : t.nonce), s.innerHTML = e;
2429
2429
  const c = ee(r), { firstChild: u } = c;
2430
2430
  if (o) {
2431
- if (a) {
2432
- const p = ve(c).filter((f) => {
2433
- if (!["prepend", "prependQueue"].includes(f.getAttribute(pe)))
2431
+ if (i) {
2432
+ const p = ve(c).filter((g) => {
2433
+ if (!["prepend", "prependQueue"].includes(g.getAttribute(pe)))
2434
2434
  return !1;
2435
- const d = Number(f.getAttribute(fe) || 0);
2436
- return i >= d;
2435
+ const d = Number(g.getAttribute(ge) || 0);
2436
+ return a >= d;
2437
2437
  });
2438
2438
  if (p.length > 0)
2439
2439
  return c.insertBefore(s, p.at(-1).nextSibling), s;
@@ -2453,23 +2453,23 @@ function br(e, r = {}) {
2453
2453
  }
2454
2454
  function mr(e, r) {
2455
2455
  const t = K.get(e);
2456
- if (!t || !fr(document, t)) {
2457
- const o = Ce("", r), { parentNode: i } = o;
2458
- K.set(e, i), o.remove();
2456
+ if (!t || !gr(document, t)) {
2457
+ const o = Ce("", r), { parentNode: a } = o;
2458
+ K.set(e, a), o.remove();
2459
2459
  }
2460
2460
  }
2461
2461
  function hr(e, r, t = {}) {
2462
- var a, s, c;
2462
+ var i, s, c;
2463
2463
  const o = ee(t);
2464
2464
  mr(o, t);
2465
- const i = Se(r, t);
2466
- if (i)
2467
- return (a = t.csp) != null && a.nonce && i.nonce !== ((s = t.csp) == null ? void 0 : s.nonce) && (i.nonce = (c = t.csp) == null ? void 0 : c.nonce), i.innerHTML !== e && (i.innerHTML = e), i;
2465
+ const a = Se(r, t);
2466
+ if (a)
2467
+ return (i = t.csp) != null && i.nonce && a.nonce !== ((s = t.csp) == null ? void 0 : s.nonce) && (a.nonce = (c = t.csp) == null ? void 0 : c.nonce), a.innerHTML !== e && (a.innerHTML = e), a;
2468
2468
  const n = Ce(e, t);
2469
2469
  return n.setAttribute(ye(t), r), n;
2470
2470
  }
2471
- const xr = Pe(({ editor: e, children: r }) => {
2472
- const [, t] = we((i) => i.value);
2471
+ const xr = Le(({ editor: e, children: r }) => {
2472
+ const [, t] = we((a) => a.value);
2473
2473
  k(() => {
2474
2474
  t({
2475
2475
  value: e == null ? void 0 : e.isEditable
@@ -2485,32 +2485,56 @@ const xr = Pe(({ editor: e, children: r }) => {
2485
2485
  }), [e]), /* @__PURE__ */ M(X, { children: r });
2486
2486
  });
2487
2487
  function wr() {
2488
- const [e, r] = Ne(Ge), t = (o) => {
2489
- r({
2490
- ...e,
2488
+ const [, e] = Pe(Ge), r = (o) => {
2489
+ e((a) => ({
2490
+ ...a,
2491
2491
  currentLang: o.detail
2492
+ }));
2493
+ }, t = (o) => {
2494
+ const { lang: a, messages: n } = o.detail;
2495
+ e((i) => {
2496
+ if (i.message[a]) {
2497
+ const s = {
2498
+ ...i.message[a],
2499
+ ...n
2500
+ };
2501
+ return {
2502
+ currentLang: i.currentLang,
2503
+ message: {
2504
+ ...i.message,
2505
+ [a]: s
2506
+ }
2507
+ };
2508
+ } else
2509
+ return {
2510
+ currentLang: i.currentLang,
2511
+ message: {
2512
+ ...i.message,
2513
+ [a]: n
2514
+ }
2515
+ };
2492
2516
  });
2493
2517
  };
2494
2518
  return k(() => {
2495
- const o = _(W.CHANGE_LANGUAGE, t);
2519
+ const o = j(O.CHANGE_LANGUAGE, r), a = j(O.MODIFY_LANGUAGE, t);
2496
2520
  return () => {
2497
- o();
2521
+ o(), a();
2498
2522
  };
2499
2523
  }, []), /* @__PURE__ */ M(X, {});
2500
2524
  }
2501
2525
  function yr() {
2502
- const [e, r] = J("richtext-theme", "light"), [t, o] = J("richtext-color", "default"), [i, n] = J("richtext-border-radius", "0.65rem");
2526
+ const [e, r] = J("richtext-theme", "light"), [t, o] = J("richtext-color", "default"), [a, n] = J("richtext-border-radius", "0.65rem");
2503
2527
  k(() => {
2504
2528
  const u = e || "light", p = t || "default";
2505
- let f = le[u][p];
2506
- if (!f) {
2507
- f = le.light.default;
2529
+ let g = le[u][p];
2530
+ if (!g) {
2531
+ g = le.light.default;
2508
2532
  return;
2509
2533
  }
2510
2534
  return hr(`
2511
2535
  .reactjs-tiptap-editor, .reactjs-tiptap-editor *,
2512
2536
  div[data-richtext-portal], div[data-richtext-portal] * {
2513
- ${Object.entries(f).map(([d, m]) => typeof i == "string" && d === "radius" ? `--${d}: ${i};` : `--${d}: ${m};`).join(`
2537
+ ${Object.entries(g).map(([d, m]) => typeof a == "string" && d === "radius" ? `--${d}: ${a};` : `--${d}: ${m};`).join(`
2514
2538
  `)}
2515
2539
  }
2516
2540
  `, "richtext-theme", {
@@ -2518,8 +2542,8 @@ function yr() {
2518
2542
  }), () => {
2519
2543
  br("richtext-theme");
2520
2544
  };
2521
- }, [e, t, i]);
2522
- const a = (u) => {
2545
+ }, [e, t, a]);
2546
+ const i = (u) => {
2523
2547
  r(u.detail);
2524
2548
  }, s = (u) => {
2525
2549
  o(u.detail);
@@ -2527,9 +2551,9 @@ function yr() {
2527
2551
  n(u.detail);
2528
2552
  };
2529
2553
  return k(() => {
2530
- const u = _(W.CHANGE_THEME, a), p = _(W.CHANGE_COLOR, s), f = _(W.CHANGE_BORDER_RADIUS, c);
2554
+ const u = j(O.CHANGE_THEME, i), p = j(O.CHANGE_COLOR, s), g = j(O.CHANGE_BORDER_RADIUS, c);
2531
2555
  return () => {
2532
- u(), p(), f();
2556
+ u(), p(), g();
2533
2557
  };
2534
2558
  }, []), /* @__PURE__ */ M(X, {});
2535
2559
  }