@lunejs/admin-ui 0.1.4 → 0.2.0

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 (91) hide show
  1. package/dist/_virtual/index10.js +5 -2
  2. package/dist/_virtual/index11.js +4 -0
  3. package/dist/_virtual/index6.js +3 -3
  4. package/dist/_virtual/index8.js +3 -5
  5. package/dist/lib/api/fetchers/gql-fetcher.js +6 -6
  6. package/dist/lib/collections/components/collection-details/cards/general-card.js +20 -14
  7. package/dist/lib/custom-fields/components/fields/color.js +3 -3
  8. package/dist/lib/dashboard/pages/dashboard-page.js +5 -5
  9. package/dist/lib/product/components/product-details/cards/general-product-card.js +18 -12
  10. package/dist/node_modules/@tiptap/core/dist/index.js +3562 -0
  11. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +17 -0
  12. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +80 -0
  13. package/dist/node_modules/@tiptap/extension-document/dist/index.js +13 -0
  14. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +64 -0
  15. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +78 -0
  16. package/dist/node_modules/@tiptap/extension-link/dist/index.js +305 -0
  17. package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
  18. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +42 -0
  19. package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
  20. package/dist/node_modules/@tiptap/extension-text/dist/index.js +14 -0
  21. package/dist/node_modules/@tiptap/extension-text-style/dist/index.js +240 -0
  22. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +66 -0
  23. package/dist/node_modules/@tiptap/react/dist/index.js +481 -0
  24. package/dist/node_modules/eventemitter3/index.js +1 -1
  25. package/dist/node_modules/eventemitter3/index2.js +1 -1
  26. package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
  27. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  28. package/dist/node_modules/lucide-react/dist/esm/icons/baseline.js +10 -0
  29. package/dist/node_modules/lucide-react/dist/esm/icons/between-horizontal-end.js +10 -0
  30. package/dist/node_modules/lucide-react/dist/esm/icons/between-vertical-end.js +10 -0
  31. package/dist/node_modules/lucide-react/dist/esm/icons/bold.js +11 -0
  32. package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-plus.js +16 -0
  33. package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-x.js +16 -0
  34. package/dist/node_modules/lucide-react/dist/esm/icons/italic.js +10 -0
  35. package/dist/node_modules/lucide-react/dist/esm/icons/link.js +9 -0
  36. package/dist/node_modules/lucide-react/dist/esm/icons/list-ordered.js +13 -0
  37. package/dist/node_modules/lucide-react/dist/esm/icons/table-columns-split.js +18 -0
  38. package/dist/node_modules/lucide-react/dist/esm/icons/table-rows-split.js +18 -0
  39. package/dist/node_modules/lucide-react/dist/esm/icons/table.js +11 -0
  40. package/dist/node_modules/lucide-react/dist/esm/icons/underline.js +9 -0
  41. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  42. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  43. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  44. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  45. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  46. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  47. package/dist/node_modules/prosemirror-tables/dist/index.js +1446 -0
  48. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  49. package/dist/node_modules/prosemirror-view/dist/index.js +3772 -0
  50. package/dist/node_modules/react-is/index.js +1 -1
  51. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  52. package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
  53. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  54. package/dist/node_modules/w3c-keyname/index.js +93 -0
  55. package/dist/packages/lune-ui/dist/_virtual/index3.js +2 -5
  56. package/dist/packages/lune-ui/dist/_virtual/index6.js +5 -2
  57. package/dist/packages/lune-ui/dist/components/popover.js +15 -11
  58. package/dist/packages/lune-ui/dist/components/select.js +6 -6
  59. package/dist/packages/lune-ui/dist/form/form-date-picker.js +2 -2
  60. package/dist/packages/lune-ui/dist/form/form.js +4 -4
  61. package/dist/packages/lune-ui/dist/node_modules/@radix-ui/react-popover/dist/index.js +39 -38
  62. package/dist/packages/lune-ui/dist/node_modules/prop-types/index.js +1 -1
  63. package/dist/packages/lune-ui/dist/packages/lune-ui/node_modules/recharts/es6/util/Events.js +1 -1
  64. package/dist/shared/components/color-picker/color-picker.d.ts +2 -1
  65. package/dist/shared/components/color-picker/color-picker.js +11 -11
  66. package/dist/shared/components/data-table/data-table-filter.js +4 -4
  67. package/dist/shared/components/rich-editor/rich-editor.d.ts +6 -0
  68. package/dist/shared/components/rich-editor/rich-editor.js +93 -0
  69. package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.d.ts +1 -0
  70. package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.js +65 -0
  71. package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.d.ts +1 -0
  72. package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.js +65 -0
  73. package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.d.ts +1 -0
  74. package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.js +114 -0
  75. package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.d.ts +1 -0
  76. package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.js +65 -0
  77. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.d.ts +2 -0
  78. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.js +103 -0
  79. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.d.ts +1 -0
  80. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.js +63 -0
  81. package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.d.ts +1 -0
  82. package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.js +65 -0
  83. package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.d.ts +1 -0
  84. package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.js +107 -0
  85. package/dist/shared/components/rich-editor/toolbar/toolbar.d.ts +1 -0
  86. package/dist/shared/components/rich-editor/toolbar/toolbar.js +64 -0
  87. package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.d.ts +1 -0
  88. package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.js +65 -0
  89. package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.d.ts +1 -0
  90. package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.js +65 -0
  91. package/package.json +6 -1
@@ -0,0 +1,324 @@
1
+ const { getOwnPropertyNames: P, getOwnPropertySymbols: v } = Object, { hasOwnProperty: M } = Object.prototype;
2
+ function I(e, r) {
3
+ return function(t, o, a) {
4
+ return e(t, o, a) && r(t, o, a);
5
+ };
6
+ }
7
+ function _(e) {
8
+ return function(n, t, o) {
9
+ if (!n || !t || typeof n != "object" || typeof t != "object")
10
+ return e(n, t, o);
11
+ const { cache: a } = o, c = a.get(n), u = a.get(t);
12
+ if (c && u)
13
+ return c === t && u === n;
14
+ a.set(n, t), a.set(t, n);
15
+ const f = e(n, t, o);
16
+ return a.delete(n), a.delete(t), f;
17
+ };
18
+ }
19
+ function k(e) {
20
+ return e?.[Symbol.toStringTag];
21
+ }
22
+ function S(e) {
23
+ return P(e).concat(v(e));
24
+ }
25
+ const L = (
26
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
27
+ Object.hasOwn || ((e, r) => M.call(e, r))
28
+ );
29
+ function g(e, r) {
30
+ return e === r || !e && !r && e !== e && r !== r;
31
+ }
32
+ const N = "__v", D = "__o", F = "_owner", { getOwnPropertyDescriptor: x, keys: G } = Object;
33
+ function W(e, r) {
34
+ return e.byteLength === r.byteLength && w(new Uint8Array(e), new Uint8Array(r));
35
+ }
36
+ function z(e, r, n) {
37
+ let t = e.length;
38
+ if (r.length !== t)
39
+ return !1;
40
+ for (; t-- > 0; )
41
+ if (!n.equals(e[t], r[t], t, t, e, r, n))
42
+ return !1;
43
+ return !0;
44
+ }
45
+ function V(e, r) {
46
+ return e.byteLength === r.byteLength && w(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(r.buffer, r.byteOffset, r.byteLength));
47
+ }
48
+ function $(e, r) {
49
+ return g(e.getTime(), r.getTime());
50
+ }
51
+ function Y(e, r) {
52
+ return e.name === r.name && e.message === r.message && e.cause === r.cause && e.stack === r.stack;
53
+ }
54
+ function K(e, r) {
55
+ return e === r;
56
+ }
57
+ function U(e, r, n) {
58
+ const t = e.size;
59
+ if (t !== r.size)
60
+ return !1;
61
+ if (!t)
62
+ return !0;
63
+ const o = new Array(t), a = e.entries();
64
+ let c, u, f = 0;
65
+ for (; (c = a.next()) && !c.done; ) {
66
+ const A = r.entries();
67
+ let y = !1, p = 0;
68
+ for (; (u = A.next()) && !u.done; ) {
69
+ if (o[p]) {
70
+ p++;
71
+ continue;
72
+ }
73
+ const q = c.value, d = u.value;
74
+ if (n.equals(q[0], d[0], f, p, e, r, n) && n.equals(q[1], d[1], q[0], d[0], e, r, n)) {
75
+ y = o[p] = !0;
76
+ break;
77
+ }
78
+ p++;
79
+ }
80
+ if (!y)
81
+ return !1;
82
+ f++;
83
+ }
84
+ return !0;
85
+ }
86
+ const J = g;
87
+ function X(e, r, n) {
88
+ const t = G(e);
89
+ let o = t.length;
90
+ if (G(r).length !== o)
91
+ return !1;
92
+ for (; o-- > 0; )
93
+ if (!B(e, r, n, t[o]))
94
+ return !1;
95
+ return !0;
96
+ }
97
+ function j(e, r, n) {
98
+ const t = S(e);
99
+ let o = t.length;
100
+ if (S(r).length !== o)
101
+ return !1;
102
+ let a, c, u;
103
+ for (; o-- > 0; )
104
+ if (a = t[o], !B(e, r, n, a) || (c = x(e, a), u = x(r, a), (c || u) && (!c || !u || c.configurable !== u.configurable || c.enumerable !== u.enumerable || c.writable !== u.writable)))
105
+ return !1;
106
+ return !0;
107
+ }
108
+ function Z(e, r) {
109
+ return g(e.valueOf(), r.valueOf());
110
+ }
111
+ function H(e, r) {
112
+ return e.source === r.source && e.flags === r.flags;
113
+ }
114
+ function b(e, r, n) {
115
+ const t = e.size;
116
+ if (t !== r.size)
117
+ return !1;
118
+ if (!t)
119
+ return !0;
120
+ const o = new Array(t), a = e.values();
121
+ let c, u;
122
+ for (; (c = a.next()) && !c.done; ) {
123
+ const f = r.values();
124
+ let A = !1, y = 0;
125
+ for (; (u = f.next()) && !u.done; ) {
126
+ if (!o[y] && n.equals(c.value, u.value, c.value, u.value, e, r, n)) {
127
+ A = o[y] = !0;
128
+ break;
129
+ }
130
+ y++;
131
+ }
132
+ if (!A)
133
+ return !1;
134
+ }
135
+ return !0;
136
+ }
137
+ function w(e, r) {
138
+ let n = e.byteLength;
139
+ if (r.byteLength !== n || e.byteOffset !== r.byteOffset)
140
+ return !1;
141
+ for (; n-- > 0; )
142
+ if (e[n] !== r[n])
143
+ return !1;
144
+ return !0;
145
+ }
146
+ function Q(e, r) {
147
+ return e.hostname === r.hostname && e.pathname === r.pathname && e.protocol === r.protocol && e.port === r.port && e.hash === r.hash && e.username === r.username && e.password === r.password;
148
+ }
149
+ function B(e, r, n, t) {
150
+ return (t === F || t === D || t === N) && (e.$$typeof || r.$$typeof) ? !0 : L(r, t) && n.equals(e[t], r[t], t, t, e, r, n);
151
+ }
152
+ const ee = "[object ArrayBuffer]", re = "[object Arguments]", te = "[object Boolean]", ne = "[object DataView]", ue = "[object Date]", oe = "[object Error]", ce = "[object Map]", ie = "[object Number]", ae = "[object Object]", le = "[object RegExp]", se = "[object Set]", fe = "[object String]", Ee = {
153
+ "[object Int8Array]": !0,
154
+ "[object Uint8Array]": !0,
155
+ "[object Uint8ClampedArray]": !0,
156
+ "[object Int16Array]": !0,
157
+ "[object Uint16Array]": !0,
158
+ "[object Int32Array]": !0,
159
+ "[object Uint32Array]": !0,
160
+ "[object Float16Array]": !0,
161
+ "[object Float32Array]": !0,
162
+ "[object Float64Array]": !0,
163
+ "[object BigInt64Array]": !0,
164
+ "[object BigUint64Array]": !0
165
+ }, ye = "[object URL]", Ae = Object.prototype.toString;
166
+ function pe({ areArrayBuffersEqual: e, areArraysEqual: r, areDataViewsEqual: n, areDatesEqual: t, areErrorsEqual: o, areFunctionsEqual: a, areMapsEqual: c, areNumbersEqual: u, areObjectsEqual: f, arePrimitiveWrappersEqual: A, areRegExpsEqual: y, areSetsEqual: p, areTypedArraysEqual: q, areUrlsEqual: d, unknownTagComparators: R }) {
167
+ return function(i, l, s) {
168
+ if (i === l)
169
+ return !0;
170
+ if (i == null || l == null)
171
+ return !1;
172
+ const O = typeof i;
173
+ if (O !== typeof l)
174
+ return !1;
175
+ if (O !== "object")
176
+ return O === "number" ? u(i, l, s) : O === "function" ? a(i, l, s) : !1;
177
+ const m = i.constructor;
178
+ if (m !== l.constructor)
179
+ return !1;
180
+ if (m === Object)
181
+ return f(i, l, s);
182
+ if (Array.isArray(i))
183
+ return r(i, l, s);
184
+ if (m === Date)
185
+ return t(i, l, s);
186
+ if (m === RegExp)
187
+ return y(i, l, s);
188
+ if (m === Map)
189
+ return c(i, l, s);
190
+ if (m === Set)
191
+ return p(i, l, s);
192
+ const E = Ae.call(i);
193
+ if (E === ue)
194
+ return t(i, l, s);
195
+ if (E === le)
196
+ return y(i, l, s);
197
+ if (E === ce)
198
+ return c(i, l, s);
199
+ if (E === se)
200
+ return p(i, l, s);
201
+ if (E === ae)
202
+ return typeof i.then != "function" && typeof l.then != "function" && f(i, l, s);
203
+ if (E === ye)
204
+ return d(i, l, s);
205
+ if (E === oe)
206
+ return o(i, l, s);
207
+ if (E === re)
208
+ return f(i, l, s);
209
+ if (Ee[E])
210
+ return q(i, l, s);
211
+ if (E === ee)
212
+ return e(i, l, s);
213
+ if (E === ne)
214
+ return n(i, l, s);
215
+ if (E === te || E === ie || E === fe)
216
+ return A(i, l, s);
217
+ if (R) {
218
+ let T = R[E];
219
+ if (!T) {
220
+ const C = k(i);
221
+ C && (T = R[C]);
222
+ }
223
+ if (T)
224
+ return T(i, l, s);
225
+ }
226
+ return !1;
227
+ };
228
+ }
229
+ function he({ circular: e, createCustomConfig: r, strict: n }) {
230
+ let t = {
231
+ areArrayBuffersEqual: W,
232
+ areArraysEqual: n ? j : z,
233
+ areDataViewsEqual: V,
234
+ areDatesEqual: $,
235
+ areErrorsEqual: Y,
236
+ areFunctionsEqual: K,
237
+ areMapsEqual: n ? I(U, j) : U,
238
+ areNumbersEqual: J,
239
+ areObjectsEqual: n ? j : X,
240
+ arePrimitiveWrappersEqual: Z,
241
+ areRegExpsEqual: H,
242
+ areSetsEqual: n ? I(b, j) : b,
243
+ areTypedArraysEqual: n ? I(w, j) : w,
244
+ areUrlsEqual: Q,
245
+ unknownTagComparators: void 0
246
+ };
247
+ if (r && (t = Object.assign({}, t, r(t))), e) {
248
+ const o = _(t.areArraysEqual), a = _(t.areMapsEqual), c = _(t.areObjectsEqual), u = _(t.areSetsEqual);
249
+ t = Object.assign({}, t, {
250
+ areArraysEqual: o,
251
+ areMapsEqual: a,
252
+ areObjectsEqual: c,
253
+ areSetsEqual: u
254
+ });
255
+ }
256
+ return t;
257
+ }
258
+ function ge(e) {
259
+ return function(r, n, t, o, a, c, u) {
260
+ return e(r, n, u);
261
+ };
262
+ }
263
+ function me({ circular: e, comparator: r, createState: n, equals: t, strict: o }) {
264
+ if (n)
265
+ return function(u, f) {
266
+ const { cache: A = e ? /* @__PURE__ */ new WeakMap() : void 0, meta: y } = n();
267
+ return r(u, f, {
268
+ cache: A,
269
+ equals: t,
270
+ meta: y,
271
+ strict: o
272
+ });
273
+ };
274
+ if (e)
275
+ return function(u, f) {
276
+ return r(u, f, {
277
+ cache: /* @__PURE__ */ new WeakMap(),
278
+ equals: t,
279
+ meta: void 0,
280
+ strict: o
281
+ });
282
+ };
283
+ const a = {
284
+ cache: void 0,
285
+ equals: t,
286
+ meta: void 0,
287
+ strict: o
288
+ };
289
+ return function(u, f) {
290
+ return r(u, f, a);
291
+ };
292
+ }
293
+ const de = h();
294
+ h({ strict: !0 });
295
+ h({ circular: !0 });
296
+ h({
297
+ circular: !0,
298
+ strict: !0
299
+ });
300
+ h({
301
+ createInternalComparator: () => g
302
+ });
303
+ h({
304
+ strict: !0,
305
+ createInternalComparator: () => g
306
+ });
307
+ h({
308
+ circular: !0,
309
+ createInternalComparator: () => g
310
+ });
311
+ h({
312
+ circular: !0,
313
+ createInternalComparator: () => g,
314
+ strict: !0
315
+ });
316
+ function h(e = {}) {
317
+ const { circular: r = !1, createInternalComparator: n, createState: t, strict: o = !1 } = e, a = he(e), c = pe(a), u = n ? n(c) : ge(c);
318
+ return me({ circular: r, comparator: c, createState: t, equals: u, strict: o });
319
+ }
320
+ export {
321
+ h as createCustomEqual,
322
+ de as deepEqual,
323
+ g as sameValueZeroEqual
324
+ };