@levo-so/studio 0.1.102 → 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.
- package/{AuthProvider-56TywIOB.js → AuthProvider-C6bvedwF.js} +16 -16
- package/{BillingStep-BTRobf00.js → BillingStep-BA3H9BVu.js} +1 -1
- package/{Button-DTrN8kki.js → Button-CZycqusY.js} +240 -143
- package/Button-lUfKisu8.js +116 -0
- package/CollectionField-xa-jed3_.js +232 -0
- package/{CollectionInput-lHOvWWav.js → CollectionInput-CpNGIXJx.js} +32 -32
- package/DateTimeWidget-DP_nMhqe.js +256 -0
- package/Dialog-IrII0ugb.js +130 -0
- package/{EntryCard-CqZlbw1Z.js → EntryCard-CQpKNX7G.js} +6 -6
- package/{LoginCard-DWLnYJJU.js → LoginCard-Cyvm-y_q.js} +3 -3
- package/{LoginForm-CEUbBeE3.js → LoginForm-_44FtvWg.js} +200 -200
- package/{LoginModal-AWNLO49X.js → LoginModal-Cyw_XKvz.js} +4 -4
- package/{MessageCard-C5ULcfuw.js → MessageCard-C2lNTxFx.js} +2 -2
- package/{MessageFooter-CATwNJJU.js → MessageFooter-59Pziq3i.js} +2 -2
- package/{ModalManager-DQXhkmyC.js → ModalManager-DHkd0Zdb.js} +1 -1
- package/{PendingApprovalCard-BowwZMBu.js → PendingApprovalCard-C8iZjo06.js} +3 -3
- package/PhoneWidget-CxxxDXkz.js +100 -0
- package/{Popover-Du4iigVw.js → Popover-DOvRAGzc.js} +19 -20
- package/PopupRenderer-C7OHYphU-Ct5T6tWM.js +2668 -0
- package/{RichTextWidget-iYdVRBGB.js → RichTextWidget-BqlcssWt.js} +13 -12
- package/RteThemeProvider-Cfepkyer.js +20 -0
- package/{StripePaymentModal-DC-ySB_o.js → StripePaymentModal-DrLMN18M.js} +17 -17
- package/{Toolbar-BHi_B-nE.js → Toolbar-BwxoYWO_.js} +251 -250
- package/Tooltip-NEMQqPyr.js +67 -0
- package/VerifyButton-TNkt-SDu.js +177 -0
- package/bookingCard-BDyuBC6X.js +636 -0
- package/collection.js +8 -8
- package/{dialog-CCWrvmHd.js → dialog-C8-iHixJ.js} +32 -32
- package/dist-CG-pwDW0.js +3188 -0
- package/generateRadiusScale-BpcgkGtN.js +71 -0
- package/getFieldValidations-CSkSV2hW.js +90 -0
- package/index.d.ts +53 -2
- package/index.js +5869 -7655
- package/inlineRteTheme-Ajq9PNpQ.js +9 -0
- package/{nodeAlignment-DoVbjk29.js → nodeAlignment-DKCIjzlR.js} +3 -3
- package/package.json +37 -39
- package/studio.css +1 -1
- package/{useLogin-D2VCOHYI.js → useLogin-B2qE8710.js} +23 -23
- package/{utils-Bh9uGjo1.js → utils-CZLafTgN.js} +1 -1
- package/{widgets-CG5Z_dk7.js → widgets-eu5zXTf-.js} +38 -105
- package/CollectionField-7uXvhxYK.js +0 -274
- package/DateTimeWidget-BHCP5osb.js +0 -255
- package/PhoneWidget-C6uZmrk8.js +0 -100
- package/Tooltip-K_gFzjOa.js +0 -68
- package/VerifyButton-D21AOIX3.js +0 -273
- package/bookingCard--NlgtcJs.js +0 -577
- package/dist-x5VFEnQl.js +0 -3185
- package/getFieldValidations-DZnDgNI0.js +0 -159
- package/inlineRteTheme-Cn_Vqgsm.js +0 -23
- /package/{Beams-DkcjMVZl.js → Beams-DboMUgCv.js} +0 -0
- /package/{Dots-BrEPvoj3.js → Dots-a8xSboDv.js} +0 -0
- /package/{Gradient-B4Er9hym.js → Gradient-NacpoDCM.js} +0 -0
- /package/{Grid-B4XWU9eL.js → Grid-BJQvxnks.js} +0 -0
- /package/{Waves-kW-EBDdJ.js → Waves-DUuT_IFr.js} +0 -0
- /package/{authentication-fXmNYss1.js → authentication-hnV1BI8s.js} +0 -0
- /package/{card-BwNr7kQS.js → card-E2LKF9nT.js} +0 -0
- /package/{theme.cssm-2YTdd8Yh.js → theme.cssm-BXDp-ojp.js} +0 -0
|
@@ -1,115 +1,116 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { t as e } from "./Button-lUfKisu8.js";
|
|
2
|
+
import { t } from "./nodeAlignment-DKCIjzlR.js";
|
|
3
|
+
import { l as n } from "./CollectionField-xa-jed3_.js";
|
|
4
|
+
import { n as r, r as i, t as a } from "./Tooltip-NEMQqPyr.js";
|
|
5
|
+
import { a as o, i as s, n as c, o as l, r as u } from "./Popover-DOvRAGzc.js";
|
|
6
|
+
import { c as d } from "react/compiler-runtime";
|
|
7
|
+
import { forwardRef as f, useEffect as p, useState as m } from "react";
|
|
8
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
8
9
|
import v from "clsx";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { CharacterCount as
|
|
38
|
-
import { DragHandle as
|
|
39
|
-
import { DragHandle as
|
|
40
|
-
import { Dropcursor as
|
|
41
|
-
import { Emoji as
|
|
42
|
-
import { FileHandler as
|
|
43
|
-
import { Focus as
|
|
44
|
-
import { Gapcursor as
|
|
45
|
-
import { ListKeymap as
|
|
46
|
-
import { TextAlign as
|
|
10
|
+
import { IconAlignCenter as y, IconAlignJustified as b, IconAlignLeft as x, IconAlignRight as S, IconArrowBackUp as C, IconArrowForwardUp as w, IconBold as T, IconChevronDown as E, IconCode as ee, IconCornerDownLeft as te, IconExternalLink as ne, IconH1 as D, IconH2 as re, IconH3 as O, IconH4 as k, IconH5 as A, IconH6 as j, IconItalic as M, IconLink as ie, IconList as N, IconListNumbers as P, IconPencil as F, IconPilcrow as I, IconRotate2 as L, IconStrikethrough as ae, IconSubscript as R, IconSuperscript as z, IconTrash as oe, IconUnderline as B } from "@tabler/icons-react";
|
|
11
|
+
import { BulletList as V } from "@tiptap/extension-bullet-list";
|
|
12
|
+
import { Color as H } from "@tiptap/extension-color";
|
|
13
|
+
import { Document as U } from "@tiptap/extension-document";
|
|
14
|
+
import { HardBreak as W } from "@tiptap/extension-hard-break";
|
|
15
|
+
import { Heading as G } from "@tiptap/extension-heading";
|
|
16
|
+
import { Highlight as K } from "@tiptap/extension-highlight";
|
|
17
|
+
import { Link as q } from "@tiptap/extension-link";
|
|
18
|
+
import { ListItem as J } from "@tiptap/extension-list-item";
|
|
19
|
+
import { OrderedList as se } from "@tiptap/extension-ordered-list";
|
|
20
|
+
import { Paragraph as ce } from "@tiptap/extension-paragraph";
|
|
21
|
+
import { Subscript as le } from "@tiptap/extension-subscript";
|
|
22
|
+
import { Superscript as ue } from "@tiptap/extension-superscript";
|
|
23
|
+
import { Text as de } from "@tiptap/extension-text";
|
|
24
|
+
import { TextStyle as fe } from "@tiptap/extension-text-style";
|
|
25
|
+
import { Typography as pe } from "@tiptap/extension-typography";
|
|
26
|
+
import { Underline as me } from "@tiptap/extension-underline";
|
|
27
|
+
import { UniqueID as he } from "@tiptap/extension-unique-id";
|
|
28
|
+
import { CodeBlock as ge } from "@tiptap/extension-code-block";
|
|
29
|
+
import { Details as _e } from "@tiptap/extension-details";
|
|
30
|
+
import { DetailsContent as ve } from "@tiptap/extension-details-content";
|
|
31
|
+
import { DetailsSummary as ye } from "@tiptap/extension-details-summary";
|
|
32
|
+
import { HorizontalRule as be } from "@tiptap/extension-horizontal-rule";
|
|
33
|
+
import { Image as xe } from "@tiptap/extension-image";
|
|
34
|
+
import { Mention as Se } from "@tiptap/extension-mention";
|
|
35
|
+
import { AllSelection as Ce, NodeSelection as we, TextSelection as Te } from "@tiptap/pm/state";
|
|
36
|
+
import { Table as Ee, TableCell as De, TableHeader as Oe, TableRow as ke } from "@tiptap/extension-table";
|
|
37
|
+
import { Youtube as Ae } from "@tiptap/extension-youtube";
|
|
38
|
+
import { CharacterCount as je } from "@tiptap/extension-character-count";
|
|
39
|
+
import { DragHandle as Me } from "@tiptap/extension-drag-handle";
|
|
40
|
+
import { DragHandle as Ne } from "@tiptap/extension-drag-handle-react";
|
|
41
|
+
import { Dropcursor as Pe } from "@tiptap/extension-dropcursor";
|
|
42
|
+
import { Emoji as Fe } from "@tiptap/extension-emoji";
|
|
43
|
+
import { FileHandler as Ie } from "@tiptap/extension-file-handler";
|
|
44
|
+
import { Focus as Le } from "@tiptap/extension-focus";
|
|
45
|
+
import { Gapcursor as Re } from "@tiptap/extension-gapcursor";
|
|
46
|
+
import { ListKeymap as ze } from "@tiptap/extension-list-keymap";
|
|
47
|
+
import { TextAlign as Be } from "@tiptap/extension-text-align";
|
|
47
48
|
//#region \0rolldown/runtime.js
|
|
48
|
-
var
|
|
49
|
+
var Ve = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ue = Object.getOwnPropertyNames, We = Object.prototype.hasOwnProperty, Ge = (e, t) => {
|
|
49
50
|
let n = {};
|
|
50
|
-
for (var r in e)
|
|
51
|
+
for (var r in e) Ve(n, r, {
|
|
51
52
|
get: e[r],
|
|
52
53
|
enumerable: !0
|
|
53
54
|
});
|
|
54
|
-
return t ||
|
|
55
|
-
},
|
|
56
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
55
|
+
return t || Ve(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
56
|
+
}, Ke = (e, t, n, r) => {
|
|
57
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Ue(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !We.call(e, s) && s !== n && Ve(e, s, {
|
|
57
58
|
get: ((e) => t[e]).bind(null, s),
|
|
58
|
-
enumerable: !(r =
|
|
59
|
+
enumerable: !(r = He(t, s)) || r.enumerable
|
|
59
60
|
});
|
|
60
61
|
return e;
|
|
61
|
-
},
|
|
62
|
-
BulletList: () =>
|
|
63
|
-
CharacterCount: () =>
|
|
64
|
-
CodeBlock: () =>
|
|
65
|
-
Color: () =>
|
|
66
|
-
Details: () =>
|
|
67
|
-
DetailsContent: () =>
|
|
68
|
-
DetailsSummary: () =>
|
|
69
|
-
Document: () =>
|
|
70
|
-
DragHandle: () =>
|
|
71
|
-
DragHandleReact: () =>
|
|
72
|
-
Dropcursor: () =>
|
|
73
|
-
Emoji: () =>
|
|
74
|
-
FileHandler: () =>
|
|
75
|
-
Focus: () =>
|
|
76
|
-
Gapcursor: () =>
|
|
77
|
-
HardBreak: () =>
|
|
78
|
-
Heading: () =>
|
|
79
|
-
Highlight: () =>
|
|
80
|
-
HorizontalRule: () =>
|
|
81
|
-
Image: () =>
|
|
82
|
-
Link: () =>
|
|
83
|
-
ListItem: () =>
|
|
84
|
-
ListKeymap: () =>
|
|
85
|
-
Mention: () =>
|
|
86
|
-
OrderedList: () =>
|
|
87
|
-
Paragraph: () =>
|
|
88
|
-
Subscript: () =>
|
|
89
|
-
Superscript: () =>
|
|
90
|
-
Table: () =>
|
|
91
|
-
TableCell: () =>
|
|
92
|
-
TableHeader: () =>
|
|
93
|
-
TableRow: () =>
|
|
94
|
-
Text: () =>
|
|
95
|
-
TextAlign: () =>
|
|
96
|
-
TextStyle: () =>
|
|
97
|
-
Typography: () =>
|
|
98
|
-
Underline: () =>
|
|
99
|
-
UniqueID: () =>
|
|
100
|
-
Youtube: () =>
|
|
62
|
+
}, Y = (e, t, n) => (Ke(e, t, "default"), n && Ke(n, t, "default")), X = /* @__PURE__ */ Ge({
|
|
63
|
+
BulletList: () => V,
|
|
64
|
+
CharacterCount: () => je,
|
|
65
|
+
CodeBlock: () => ge,
|
|
66
|
+
Color: () => H,
|
|
67
|
+
Details: () => _e,
|
|
68
|
+
DetailsContent: () => ve,
|
|
69
|
+
DetailsSummary: () => ye,
|
|
70
|
+
Document: () => U,
|
|
71
|
+
DragHandle: () => Me,
|
|
72
|
+
DragHandleReact: () => Ne,
|
|
73
|
+
Dropcursor: () => Pe,
|
|
74
|
+
Emoji: () => Fe,
|
|
75
|
+
FileHandler: () => Ie,
|
|
76
|
+
Focus: () => Le,
|
|
77
|
+
Gapcursor: () => Re,
|
|
78
|
+
HardBreak: () => W,
|
|
79
|
+
Heading: () => G,
|
|
80
|
+
Highlight: () => K,
|
|
81
|
+
HorizontalRule: () => be,
|
|
82
|
+
Image: () => xe,
|
|
83
|
+
Link: () => q,
|
|
84
|
+
ListItem: () => J,
|
|
85
|
+
ListKeymap: () => ze,
|
|
86
|
+
Mention: () => Se,
|
|
87
|
+
OrderedList: () => se,
|
|
88
|
+
Paragraph: () => ce,
|
|
89
|
+
Subscript: () => le,
|
|
90
|
+
Superscript: () => ue,
|
|
91
|
+
Table: () => Ee,
|
|
92
|
+
TableCell: () => De,
|
|
93
|
+
TableHeader: () => Oe,
|
|
94
|
+
TableRow: () => ke,
|
|
95
|
+
Text: () => de,
|
|
96
|
+
TextAlign: () => Be,
|
|
97
|
+
TextStyle: () => fe,
|
|
98
|
+
Typography: () => pe,
|
|
99
|
+
Underline: () => me,
|
|
100
|
+
UniqueID: () => he,
|
|
101
|
+
Youtube: () => Ae
|
|
101
102
|
});
|
|
102
103
|
import * as qe from "@tiptap/core";
|
|
103
|
-
|
|
104
|
+
Y(X, qe);
|
|
104
105
|
import * as Je from "@tiptap/extensions";
|
|
105
|
-
|
|
106
|
+
Y(X, Je);
|
|
106
107
|
import * as Ye from "@tiptap/react";
|
|
107
|
-
|
|
108
|
+
Y(X, Ye);
|
|
108
109
|
import * as Xe from "@tiptap/starter-kit";
|
|
109
|
-
|
|
110
|
+
Y(X, Xe);
|
|
110
111
|
//#endregion
|
|
111
112
|
//#region ../../libraries/react-collection/dist/components/editor/extensionKit.js
|
|
112
|
-
var Ze = (
|
|
113
|
+
var Ze = (e = { placeholder: "Write something ..." }) => [
|
|
113
114
|
X.StarterKit.configure({
|
|
114
115
|
blockquote: !1,
|
|
115
116
|
codeBlock: !1,
|
|
@@ -120,30 +121,30 @@ var Ze = (t = { placeholder: "Write something ..." }) => [
|
|
|
120
121
|
HTMLAttributes: { target: "_blank" }
|
|
121
122
|
}
|
|
122
123
|
}),
|
|
123
|
-
X.Placeholder.configure({ placeholder:
|
|
124
|
-
|
|
124
|
+
X.Placeholder.configure({ placeholder: e?.placeholder }),
|
|
125
|
+
pe,
|
|
125
126
|
X.Selection,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
ue,
|
|
128
|
+
le,
|
|
129
|
+
t,
|
|
130
|
+
he.configure({ types: [
|
|
130
131
|
"paragraph",
|
|
131
132
|
"heading",
|
|
132
133
|
"bulletList",
|
|
133
134
|
"orderedList"
|
|
134
135
|
] })
|
|
135
|
-
], Z =
|
|
136
|
-
let o =
|
|
137
|
-
o[0] ===
|
|
138
|
-
let
|
|
136
|
+
], Z = f((t, n) => {
|
|
137
|
+
let o = d(27), s, c, l, u, f, p, m;
|
|
138
|
+
o[0] === t ? (s = o[1], c = o[2], l = o[3], u = o[4], f = o[5], p = o[6], m = o[7]) : ({label: u, Icon: s, isActive: l, iconSize: p, trailing: m, className: c, ...f} = t, o[0] = t, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = f, o[6] = p, o[7] = m);
|
|
139
|
+
let h = p === void 0 ? 16 : p, y = l || void 0, b = l && "_1vaxhty0", x;
|
|
139
140
|
o[8] !== c || o[9] !== b ? (x = v(b, c), o[8] = c, o[9] = b, o[10] = x) : x = o[10];
|
|
140
141
|
let S;
|
|
141
|
-
o[11] !== s || o[12] !==
|
|
142
|
+
o[11] !== s || o[12] !== h ? (S = /* @__PURE__ */ g(s, { size: h }), o[11] = s, o[12] = h, o[13] = S) : S = o[13];
|
|
142
143
|
let C;
|
|
143
|
-
o[14] !== u || o[15] !==
|
|
144
|
+
o[14] !== u || o[15] !== f || o[16] !== n || o[17] !== y || o[18] !== x || o[19] !== S || o[20] !== m ? (C = /* @__PURE__ */ g(r, {
|
|
144
145
|
onPointerDown: Qe,
|
|
145
|
-
render: /* @__PURE__ */
|
|
146
|
-
ref:
|
|
146
|
+
render: /* @__PURE__ */ _(e, {
|
|
147
|
+
ref: n,
|
|
147
148
|
type: "button",
|
|
148
149
|
variant: "ghost",
|
|
149
150
|
size: "sm",
|
|
@@ -151,14 +152,14 @@ var Ze = (t = { placeholder: "Write something ..." }) => [
|
|
|
151
152
|
"aria-label": u,
|
|
152
153
|
"aria-pressed": y,
|
|
153
154
|
className: x,
|
|
154
|
-
...
|
|
155
|
-
children: [S,
|
|
155
|
+
...f,
|
|
156
|
+
children: [S, m]
|
|
156
157
|
})
|
|
157
|
-
}), o[14] = u, o[15] =
|
|
158
|
+
}), o[14] = u, o[15] = f, o[16] = n, o[17] = y, o[18] = x, o[19] = S, o[20] = m, o[21] = C) : C = o[21];
|
|
158
159
|
let w;
|
|
159
|
-
o[22] === u ? w = o[23] : (w = /* @__PURE__ */
|
|
160
|
+
o[22] === u ? w = o[23] : (w = /* @__PURE__ */ g(i, { children: u }), o[22] = u, o[23] = w);
|
|
160
161
|
let T;
|
|
161
|
-
return o[24] !== C || o[25] !== w ? (T = /* @__PURE__ */
|
|
162
|
+
return o[24] !== C || o[25] !== w ? (T = /* @__PURE__ */ _(a, { children: [C, w] }), o[24] = C, o[25] = w, o[26] = T) : T = o[26], T;
|
|
162
163
|
});
|
|
163
164
|
Z.displayName = "ToolbarButton";
|
|
164
165
|
function Qe(e) {
|
|
@@ -186,11 +187,11 @@ var $e = "_261ja30", Q = "_261ja31", et = [
|
|
|
186
187
|
}, rt = (e, t) => {
|
|
187
188
|
if (!e || t.length === 0) return !1;
|
|
188
189
|
let { selection: n } = e.state, r = new Set(t);
|
|
189
|
-
if (n instanceof
|
|
190
|
+
if (n instanceof we) {
|
|
190
191
|
let e = n.node?.type?.name;
|
|
191
192
|
return !!e && r.has(e);
|
|
192
193
|
}
|
|
193
|
-
if (n instanceof
|
|
194
|
+
if (n instanceof Te || n instanceof Ce) {
|
|
194
195
|
let t = !0;
|
|
195
196
|
return e.state.doc.nodesBetween(n.from, n.to, (e) => e.isTextblock && !r.has(e.type.name) ? (t = !1, !1) : t), t;
|
|
196
197
|
}
|
|
@@ -226,39 +227,39 @@ var $e = "_261ja30", Q = "_261ja31", et = [
|
|
|
226
227
|
}
|
|
227
228
|
return !1;
|
|
228
229
|
}, lt = "j67x6z0", ut = "j67x6z1", dt = "_5pk5r80", ft = (e) => {
|
|
229
|
-
let t =
|
|
230
|
+
let t = d(50), { editor: n } = e, [f, h] = m(!1), { isActive: v, currentUrl: y } = (0, X.useEditorState)({
|
|
230
231
|
editor: n,
|
|
231
232
|
selector: pt
|
|
232
233
|
}) ?? {
|
|
233
234
|
isActive: !1,
|
|
234
235
|
currentUrl: ""
|
|
235
|
-
}, [b, x] =
|
|
236
|
-
t[0] !== y || t[1] !==
|
|
237
|
-
|
|
238
|
-
}, C = [
|
|
236
|
+
}, [b, x] = m(y), S, C;
|
|
237
|
+
t[0] !== y || t[1] !== f ? (S = () => {
|
|
238
|
+
f && x(y);
|
|
239
|
+
}, C = [f, y], t[0] = y, t[1] = f, t[2] = S, t[3] = C) : (S = t[2], C = t[3]), p(S, C);
|
|
239
240
|
let w;
|
|
240
241
|
t[4] !== n || t[5] !== b ? (w = () => {
|
|
241
|
-
b && (n.chain().focus().extendMarkRange("link").setLink({ href: b }).run(),
|
|
242
|
+
b && (n.chain().focus().extendMarkRange("link").setLink({ href: b }).run(), h(!1));
|
|
242
243
|
}, t[4] = n, t[5] = b, t[6] = w) : w = t[6];
|
|
243
244
|
let T = w, E;
|
|
244
245
|
t[7] === n ? E = t[8] : (E = () => {
|
|
245
|
-
n.chain().focus().extendMarkRange("link").unsetLink().run(), x(""),
|
|
246
|
+
n.chain().focus().extendMarkRange("link").unsetLink().run(), x(""), h(!1);
|
|
246
247
|
}, t[7] = n, t[8] = E);
|
|
247
248
|
let ee = E, D;
|
|
248
249
|
t[9] === b ? D = t[10] : (D = () => {
|
|
249
250
|
let e = ot(b, window.location.href);
|
|
250
251
|
e !== "#" && window.open(e, "_blank", "noopener,noreferrer");
|
|
251
252
|
}, t[9] = b, t[10] = D);
|
|
252
|
-
let
|
|
253
|
+
let re = D, O;
|
|
253
254
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => {
|
|
254
|
-
e.preventDefault(),
|
|
255
|
+
e.preventDefault(), h(!0);
|
|
255
256
|
}, t[11] = O) : O = t[11];
|
|
256
257
|
let k;
|
|
257
|
-
t[12] === v ? k = t[13] : (k = /* @__PURE__ */
|
|
258
|
+
t[12] === v ? k = t[13] : (k = /* @__PURE__ */ g(l, {
|
|
258
259
|
onPointerDown: mt,
|
|
259
|
-
render: /* @__PURE__ */
|
|
260
|
+
render: /* @__PURE__ */ g(Z, {
|
|
260
261
|
label: "Link",
|
|
261
|
-
Icon:
|
|
262
|
+
Icon: ie,
|
|
262
263
|
isActive: v,
|
|
263
264
|
onClick: O
|
|
264
265
|
})
|
|
@@ -270,7 +271,7 @@ var $e = "_261ja30", Q = "_261ja31", et = [
|
|
|
270
271
|
e.key === "Enter" && (e.preventDefault(), T());
|
|
271
272
|
}, t[15] = T, t[16] = j);
|
|
272
273
|
let M;
|
|
273
|
-
t[17] !== j || t[18] !== b ? (M = /* @__PURE__ */
|
|
274
|
+
t[17] !== j || t[18] !== b ? (M = /* @__PURE__ */ g("input", {
|
|
274
275
|
className: ut,
|
|
275
276
|
value: b,
|
|
276
277
|
onChange: A,
|
|
@@ -278,9 +279,9 @@ var $e = "_261ja30", Q = "_261ja31", et = [
|
|
|
278
279
|
placeholder: "Paste a link..."
|
|
279
280
|
}), t[17] = j, t[18] = b, t[19] = M) : M = t[19];
|
|
280
281
|
let N = !b && !v, P;
|
|
281
|
-
t[20] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */
|
|
282
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ g(te, { size: 16 }), t[20] = P) : P = t[20];
|
|
282
283
|
let F;
|
|
283
|
-
t[21] !== T || t[22] !== N ? (F = /* @__PURE__ */
|
|
284
|
+
t[21] !== T || t[22] !== N ? (F = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
|
|
284
285
|
type: "button",
|
|
285
286
|
className: dt,
|
|
286
287
|
onClick: T,
|
|
@@ -289,59 +290,59 @@ var $e = "_261ja30", Q = "_261ja31", et = [
|
|
|
289
290
|
children: P
|
|
290
291
|
}) }), t[21] = T, t[22] = N, t[23] = F) : F = t[23];
|
|
291
292
|
let I;
|
|
292
|
-
t[24] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */
|
|
293
|
+
t[24] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ g(i, { children: "Apply link" }), t[24] = I) : I = t[24];
|
|
293
294
|
let L;
|
|
294
|
-
t[25] === F ? L = t[26] : (L = /* @__PURE__ */
|
|
295
|
-
let
|
|
296
|
-
t[27] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
297
|
-
let
|
|
298
|
-
t[28] !==
|
|
295
|
+
t[25] === F ? L = t[26] : (L = /* @__PURE__ */ _(a, { children: [F, I] }), t[25] = F, t[26] = L);
|
|
296
|
+
let ae = !b && !v, R;
|
|
297
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ g(ne, { size: 16 }), t[27] = R) : R = t[27];
|
|
298
|
+
let z;
|
|
299
|
+
t[28] !== re || t[29] !== ae ? (z = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
|
|
299
300
|
type: "button",
|
|
300
301
|
className: dt,
|
|
301
|
-
onClick:
|
|
302
|
-
disabled:
|
|
302
|
+
onClick: re,
|
|
303
|
+
disabled: ae,
|
|
303
304
|
"aria-label": "Open in new window",
|
|
304
|
-
children:
|
|
305
|
-
}) }), t[28] =
|
|
305
|
+
children: R
|
|
306
|
+
}) }), t[28] = re, t[29] = ae, t[30] = z) : z = t[30];
|
|
307
|
+
let B;
|
|
308
|
+
t[31] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ g(i, { children: "Open in new window" }), t[31] = B) : B = t[31];
|
|
306
309
|
let V;
|
|
307
|
-
t[
|
|
308
|
-
let H;
|
|
309
|
-
t[
|
|
310
|
-
let
|
|
311
|
-
t[
|
|
312
|
-
let G;
|
|
313
|
-
t[35] !== ee || t[36] !== U ? (G = /* @__PURE__ */ h(r, { render: /* @__PURE__ */ h("button", {
|
|
310
|
+
t[32] === z ? V = t[33] : (V = /* @__PURE__ */ _(a, { children: [z, B] }), t[32] = z, t[33] = V);
|
|
311
|
+
let H = !b && !v, U;
|
|
312
|
+
t[34] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ g(oe, { size: 16 }), t[34] = U) : U = t[34];
|
|
313
|
+
let W;
|
|
314
|
+
t[35] !== ee || t[36] !== H ? (W = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
|
|
314
315
|
type: "button",
|
|
315
316
|
className: dt,
|
|
316
317
|
onClick: ee,
|
|
317
|
-
disabled:
|
|
318
|
+
disabled: H,
|
|
318
319
|
"aria-label": "Remove link",
|
|
319
|
-
children:
|
|
320
|
-
}) }), t[35] = ee, t[36] =
|
|
320
|
+
children: U
|
|
321
|
+
}) }), t[35] = ee, t[36] = H, t[37] = W) : W = t[37];
|
|
322
|
+
let G;
|
|
323
|
+
t[38] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ g(i, { children: "Remove link" }), t[38] = G) : G = t[38];
|
|
321
324
|
let K;
|
|
322
|
-
t[
|
|
325
|
+
t[39] === W ? K = t[40] : (K = /* @__PURE__ */ _(a, { children: [W, G] }), t[39] = W, t[40] = K);
|
|
323
326
|
let q;
|
|
324
|
-
t[
|
|
325
|
-
let J;
|
|
326
|
-
t[41] !== M || t[42] !== L || t[43] !== H || t[44] !== q ? (J = /* @__PURE__ */ h(s, { children: /* @__PURE__ */ h(u, {
|
|
327
|
+
t[41] !== M || t[42] !== L || t[43] !== V || t[44] !== K ? (q = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
|
|
327
328
|
side: "bottom",
|
|
328
329
|
align: "center",
|
|
329
|
-
children: /* @__PURE__ */
|
|
330
|
+
children: /* @__PURE__ */ _(o.Popup, {
|
|
330
331
|
className: lt,
|
|
331
332
|
children: [
|
|
332
333
|
M,
|
|
333
334
|
L,
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
V,
|
|
336
|
+
K
|
|
336
337
|
]
|
|
337
338
|
})
|
|
338
|
-
}) }), t[41] = M, t[42] = L, t[43] =
|
|
339
|
-
let
|
|
340
|
-
return t[46] !==
|
|
341
|
-
open:
|
|
342
|
-
onOpenChange:
|
|
343
|
-
children: [k,
|
|
344
|
-
}), t[46] =
|
|
339
|
+
}) }), t[41] = M, t[42] = L, t[43] = V, t[44] = K, t[45] = q) : q = t[45];
|
|
340
|
+
let J;
|
|
341
|
+
return t[46] !== f || t[47] !== q || t[48] !== k ? (J = /* @__PURE__ */ _(c, {
|
|
342
|
+
open: f,
|
|
343
|
+
onOpenChange: h,
|
|
344
|
+
children: [k, q]
|
|
345
|
+
}), t[46] = f, t[47] = q, t[48] = k, t[49] = J) : J = t[49], J;
|
|
345
346
|
};
|
|
346
347
|
function pt(e) {
|
|
347
348
|
let { editor: t } = e;
|
|
@@ -359,7 +360,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
359
360
|
{
|
|
360
361
|
type: "paragraph",
|
|
361
362
|
label: "Text",
|
|
362
|
-
Icon:
|
|
363
|
+
Icon: I,
|
|
363
364
|
isActive: (e) => e.isActive("paragraph"),
|
|
364
365
|
canApply: (e) => e.can().setParagraph() || e.can().clearNodes(),
|
|
365
366
|
apply: (e) => e.chain().focus().setParagraph().run()
|
|
@@ -367,7 +368,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
367
368
|
{
|
|
368
369
|
type: "heading_1",
|
|
369
370
|
label: "Heading 1",
|
|
370
|
-
Icon:
|
|
371
|
+
Icon: D,
|
|
371
372
|
isActive: (e) => e.isActive("heading", { level: 1 }),
|
|
372
373
|
canApply: (e) => e.can().setHeading({ level: 1 }) || e.can().clearNodes(),
|
|
373
374
|
apply: $(1)
|
|
@@ -375,7 +376,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
375
376
|
{
|
|
376
377
|
type: "heading_2",
|
|
377
378
|
label: "Heading 2",
|
|
378
|
-
Icon:
|
|
379
|
+
Icon: re,
|
|
379
380
|
isActive: (e) => e.isActive("heading", { level: 2 }),
|
|
380
381
|
canApply: (e) => e.can().setHeading({ level: 2 }) || e.can().clearNodes(),
|
|
381
382
|
apply: $(2)
|
|
@@ -383,7 +384,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
383
384
|
{
|
|
384
385
|
type: "heading_3",
|
|
385
386
|
label: "Heading 3",
|
|
386
|
-
Icon:
|
|
387
|
+
Icon: O,
|
|
387
388
|
isActive: (e) => e.isActive("heading", { level: 3 }),
|
|
388
389
|
canApply: (e) => e.can().setHeading({ level: 3 }) || e.can().clearNodes(),
|
|
389
390
|
apply: $(3)
|
|
@@ -391,7 +392,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
391
392
|
{
|
|
392
393
|
type: "heading_4",
|
|
393
394
|
label: "Heading 4",
|
|
394
|
-
Icon:
|
|
395
|
+
Icon: k,
|
|
395
396
|
isActive: (e) => e.isActive("heading", { level: 4 }),
|
|
396
397
|
canApply: (e) => e.can().setHeading({ level: 4 }) || e.can().clearNodes(),
|
|
397
398
|
apply: $(4)
|
|
@@ -399,7 +400,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
399
400
|
{
|
|
400
401
|
type: "heading_5",
|
|
401
402
|
label: "Heading 5",
|
|
402
|
-
Icon:
|
|
403
|
+
Icon: A,
|
|
403
404
|
isActive: (e) => e.isActive("heading", { level: 5 }),
|
|
404
405
|
canApply: (e) => e.can().setHeading({ level: 5 }) || e.can().clearNodes(),
|
|
405
406
|
apply: $(5)
|
|
@@ -407,7 +408,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
407
408
|
{
|
|
408
409
|
type: "heading_6",
|
|
409
410
|
label: "Heading 6",
|
|
410
|
-
Icon:
|
|
411
|
+
Icon: j,
|
|
411
412
|
isActive: (e) => e.isActive("heading", { level: 6 }),
|
|
412
413
|
canApply: (e) => e.can().setHeading({ level: 6 }) || e.can().clearNodes(),
|
|
413
414
|
apply: $(6)
|
|
@@ -415,7 +416,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
415
416
|
{
|
|
416
417
|
type: "bulletList",
|
|
417
418
|
label: "Bullet List",
|
|
418
|
-
Icon:
|
|
419
|
+
Icon: N,
|
|
419
420
|
isActive: (e) => e.isActive("bulletList"),
|
|
420
421
|
canApply: (e) => e.can().toggleBulletList() || e.can().clearNodes(),
|
|
421
422
|
apply: (e) => e.chain().focus().toggleBulletList().run()
|
|
@@ -423,60 +424,60 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
|
|
|
423
424
|
{
|
|
424
425
|
type: "orderedList",
|
|
425
426
|
label: "Ordered List",
|
|
426
|
-
Icon:
|
|
427
|
+
Icon: P,
|
|
427
428
|
isActive: (e) => e.isActive("orderedList"),
|
|
428
429
|
canApply: (e) => e.can().toggleOrderedList() || e.can().clearNodes(),
|
|
429
430
|
apply: (e) => e.chain().focus().toggleOrderedList().run()
|
|
430
431
|
}
|
|
431
432
|
], vt = (e) => {
|
|
432
|
-
let t =
|
|
433
|
+
let t = d(19), { editor: n } = e, [r, i] = m(!1), { activeBlock: a, canConvert: f, structural: p } = (0, X.useEditorState)({
|
|
433
434
|
editor: n,
|
|
434
435
|
selector: yt
|
|
435
436
|
}) ?? {
|
|
436
437
|
activeBlock: null,
|
|
437
438
|
canConvert: !1,
|
|
438
439
|
structural: !1
|
|
439
|
-
},
|
|
440
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */
|
|
440
|
+
}, h = a?.Icon ?? F, v = a?.label ?? "Turn Into", y = p || !f, b, x;
|
|
441
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ g(E, { size: 12 }), x = (e) => {
|
|
441
442
|
e.preventDefault(), i(!0);
|
|
442
443
|
}, t[0] = b, t[1] = x) : (b = t[0], x = t[1]);
|
|
443
444
|
let S;
|
|
444
|
-
t[2] !==
|
|
445
|
+
t[2] !== h || t[3] !== y || t[4] !== v ? (S = /* @__PURE__ */ g(l, {
|
|
445
446
|
onPointerDown: bt,
|
|
446
|
-
render: /* @__PURE__ */
|
|
447
|
+
render: /* @__PURE__ */ g(Z, {
|
|
447
448
|
label: v,
|
|
448
|
-
Icon:
|
|
449
|
+
Icon: h,
|
|
449
450
|
disabled: y,
|
|
450
451
|
trailing: b,
|
|
451
452
|
onClick: x
|
|
452
453
|
})
|
|
453
|
-
}), t[2] =
|
|
454
|
+
}), t[2] = h, t[3] = y, t[4] = v, t[5] = S) : S = t[5];
|
|
454
455
|
let C;
|
|
455
456
|
if (t[6] !== a?.type || t[7] !== n) {
|
|
456
457
|
let e;
|
|
457
458
|
t[9] === a?.type ? e = t[10] : (e = (e) => a?.type !== e.type, t[9] = a?.type, t[10] = e);
|
|
458
459
|
let r;
|
|
459
|
-
t[11] === n ? r = t[12] : (r = (e) => /* @__PURE__ */
|
|
460
|
+
t[11] === n ? r = t[12] : (r = (e) => /* @__PURE__ */ _("button", {
|
|
460
461
|
type: "button",
|
|
461
462
|
className: gt,
|
|
462
463
|
disabled: !e.canApply(n),
|
|
463
464
|
onClick: () => {
|
|
464
465
|
e.apply(n), i(!1);
|
|
465
466
|
},
|
|
466
|
-
children: [/* @__PURE__ */
|
|
467
|
+
children: [/* @__PURE__ */ g(e.Icon, { size: 16 }), /* @__PURE__ */ g("span", { children: e.label })]
|
|
467
468
|
}, e.type), t[11] = n, t[12] = r), C = _t.filter(e).map(r), t[6] = a?.type, t[7] = n, t[8] = C;
|
|
468
469
|
} else C = t[8];
|
|
469
470
|
let w;
|
|
470
|
-
t[13] === C ? w = t[14] : (w = /* @__PURE__ */
|
|
471
|
+
t[13] === C ? w = t[14] : (w = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
|
|
471
472
|
side: "bottom",
|
|
472
473
|
align: "start",
|
|
473
|
-
children: /* @__PURE__ */
|
|
474
|
+
children: /* @__PURE__ */ g(o.Popup, {
|
|
474
475
|
className: ht,
|
|
475
476
|
children: C
|
|
476
477
|
})
|
|
477
478
|
}) }), t[13] = C, t[14] = w);
|
|
478
479
|
let T;
|
|
479
|
-
return t[15] !== r || t[16] !== S || t[17] !== w ? (T = /* @__PURE__ */
|
|
480
|
+
return t[15] !== r || t[16] !== S || t[17] !== w ? (T = /* @__PURE__ */ _(c, {
|
|
480
481
|
open: r,
|
|
481
482
|
onOpenChange: i,
|
|
482
483
|
children: [S, w]
|
|
@@ -499,59 +500,59 @@ var xt = [
|
|
|
499
500
|
{
|
|
500
501
|
mark: "bold",
|
|
501
502
|
label: "Bold",
|
|
502
|
-
Icon:
|
|
503
|
+
Icon: T
|
|
503
504
|
},
|
|
504
505
|
{
|
|
505
506
|
mark: "italic",
|
|
506
507
|
label: "Italic",
|
|
507
|
-
Icon:
|
|
508
|
+
Icon: M
|
|
508
509
|
},
|
|
509
510
|
{
|
|
510
511
|
mark: "underline",
|
|
511
512
|
label: "Underline",
|
|
512
|
-
Icon:
|
|
513
|
+
Icon: B
|
|
513
514
|
},
|
|
514
515
|
{
|
|
515
516
|
mark: "strike",
|
|
516
517
|
label: "Strike",
|
|
517
|
-
Icon:
|
|
518
|
+
Icon: ae
|
|
518
519
|
},
|
|
519
520
|
{
|
|
520
521
|
mark: "code",
|
|
521
522
|
label: "Code",
|
|
522
|
-
Icon:
|
|
523
|
+
Icon: ee
|
|
523
524
|
}
|
|
524
525
|
], St = [{
|
|
525
526
|
mark: "superscript",
|
|
526
527
|
label: "Superscript",
|
|
527
|
-
Icon:
|
|
528
|
+
Icon: z
|
|
528
529
|
}, {
|
|
529
530
|
mark: "subscript",
|
|
530
531
|
label: "Subscript",
|
|
531
|
-
Icon:
|
|
532
|
+
Icon: R
|
|
532
533
|
}], Ct = [
|
|
533
534
|
{
|
|
534
535
|
align: "left",
|
|
535
536
|
label: "Align left",
|
|
536
|
-
Icon:
|
|
537
|
+
Icon: x
|
|
537
538
|
},
|
|
538
539
|
{
|
|
539
540
|
align: "center",
|
|
540
541
|
label: "Align center",
|
|
541
|
-
Icon:
|
|
542
|
+
Icon: y
|
|
542
543
|
},
|
|
543
544
|
{
|
|
544
545
|
align: "right",
|
|
545
546
|
label: "Align right",
|
|
546
|
-
Icon:
|
|
547
|
+
Icon: S
|
|
547
548
|
},
|
|
548
549
|
{
|
|
549
550
|
align: "justify",
|
|
550
551
|
label: "Align justify",
|
|
551
|
-
Icon:
|
|
552
|
+
Icon: b
|
|
552
553
|
}
|
|
553
554
|
], wt = (e) => {
|
|
554
|
-
let t =
|
|
555
|
+
let t = d(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
|
|
555
556
|
editor: n,
|
|
556
557
|
selector: (e) => {
|
|
557
558
|
let { editor: t } = e;
|
|
@@ -566,7 +567,7 @@ var xt = [
|
|
|
566
567
|
}, c = !s, l;
|
|
567
568
|
t[0] !== n || t[1] !== r ? (l = () => n.chain().focus().toggleMark(r).run(), t[0] = n, t[1] = r, t[2] = l) : l = t[2];
|
|
568
569
|
let u;
|
|
569
|
-
return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */
|
|
570
|
+
return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ g(Z, {
|
|
570
571
|
label: i,
|
|
571
572
|
Icon: a,
|
|
572
573
|
isActive: o,
|
|
@@ -574,7 +575,7 @@ var xt = [
|
|
|
574
575
|
onClick: l
|
|
575
576
|
}), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
|
|
576
577
|
}, Tt = (e) => {
|
|
577
|
-
let t =
|
|
578
|
+
let t = d(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
|
|
578
579
|
editor: n,
|
|
579
580
|
selector: (e) => {
|
|
580
581
|
let { editor: t } = e;
|
|
@@ -589,7 +590,7 @@ var xt = [
|
|
|
589
590
|
}, c = !s, l;
|
|
590
591
|
t[0] !== r || t[1] !== n ? (l = () => n.chain().focus().setNodeTextAlign(r).run(), t[0] = r, t[1] = n, t[2] = l) : l = t[2];
|
|
591
592
|
let u;
|
|
592
|
-
return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */
|
|
593
|
+
return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ g(Z, {
|
|
593
594
|
label: i,
|
|
594
595
|
Icon: a,
|
|
595
596
|
isActive: o,
|
|
@@ -597,113 +598,113 @@ var xt = [
|
|
|
597
598
|
onClick: l
|
|
598
599
|
}), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
|
|
599
600
|
}, Et = (e) => {
|
|
600
|
-
let t =
|
|
601
|
+
let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
|
|
601
602
|
editor: n,
|
|
602
603
|
selector: At
|
|
603
604
|
}) ?? !1), i;
|
|
604
605
|
t[0] === n ? i = t[1] : (i = () => n.chain().focus().undo().run(), t[0] = n, t[1] = i);
|
|
605
606
|
let a;
|
|
606
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */
|
|
607
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
|
|
607
608
|
label: "Undo",
|
|
608
|
-
Icon:
|
|
609
|
+
Icon: C,
|
|
609
610
|
disabled: r,
|
|
610
611
|
onClick: i
|
|
611
612
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
612
613
|
}, Dt = (e) => {
|
|
613
|
-
let t =
|
|
614
|
+
let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
|
|
614
615
|
editor: n,
|
|
615
616
|
selector: jt
|
|
616
617
|
}) ?? !1), i;
|
|
617
618
|
t[0] === n ? i = t[1] : (i = () => n.chain().focus().redo().run(), t[0] = n, t[1] = i);
|
|
618
619
|
let a;
|
|
619
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */
|
|
620
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
|
|
620
621
|
label: "Redo",
|
|
621
|
-
Icon:
|
|
622
|
+
Icon: w,
|
|
622
623
|
disabled: r,
|
|
623
624
|
onClick: i
|
|
624
625
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
625
626
|
}, Ot = (e) => {
|
|
626
|
-
let t =
|
|
627
|
+
let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
|
|
627
628
|
editor: n,
|
|
628
629
|
selector: Mt
|
|
629
630
|
}) ?? !1), i;
|
|
630
631
|
t[0] === n ? i = t[1] : (i = () => st(n), t[0] = n, t[1] = i);
|
|
631
632
|
let a;
|
|
632
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */
|
|
633
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
|
|
633
634
|
label: "Reset formatting",
|
|
634
|
-
Icon:
|
|
635
|
+
Icon: L,
|
|
635
636
|
disabled: r,
|
|
636
637
|
onClick: i
|
|
637
638
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
638
639
|
}, kt = (e) => {
|
|
639
|
-
let
|
|
640
|
+
let t = d(33), { children: r } = e, { editor: i } = (0, X.useCurrentEditor)();
|
|
640
641
|
if (!i) return null;
|
|
641
642
|
let a;
|
|
642
|
-
|
|
643
|
+
t[0] === i ? a = t[1] : (a = /* @__PURE__ */ g("div", {
|
|
643
644
|
className: Q,
|
|
644
|
-
children: /* @__PURE__ */
|
|
645
|
-
}),
|
|
645
|
+
children: /* @__PURE__ */ g(vt, { editor: i })
|
|
646
|
+
}), t[0] = i, t[1] = a);
|
|
646
647
|
let o;
|
|
647
|
-
|
|
648
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[2] = o) : o = t[2];
|
|
648
649
|
let s;
|
|
649
|
-
|
|
650
|
+
t[3] === i ? s = t[4] : (s = xt.map((e) => /* @__PURE__ */ g(wt, {
|
|
650
651
|
editor: i,
|
|
651
652
|
...e
|
|
652
|
-
}, e.mark)),
|
|
653
|
+
}, e.mark)), t[3] = i, t[4] = s);
|
|
653
654
|
let c;
|
|
654
|
-
|
|
655
|
+
t[5] === s ? c = t[6] : (c = /* @__PURE__ */ g("div", {
|
|
655
656
|
className: Q,
|
|
656
657
|
children: s
|
|
657
|
-
}),
|
|
658
|
+
}), t[5] = s, t[6] = c);
|
|
658
659
|
let l;
|
|
659
|
-
|
|
660
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[7] = l) : l = t[7];
|
|
660
661
|
let u;
|
|
661
|
-
|
|
662
|
+
t[8] === i ? u = t[9] : (u = /* @__PURE__ */ g("div", {
|
|
662
663
|
className: Q,
|
|
663
|
-
children: /* @__PURE__ */
|
|
664
|
-
}),
|
|
665
|
-
let d;
|
|
666
|
-
n[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ h(t, { orientation: "vertical" }), n[10] = d) : d = n[10];
|
|
664
|
+
children: /* @__PURE__ */ g(ft, { editor: i })
|
|
665
|
+
}), t[8] = i, t[9] = u);
|
|
667
666
|
let f;
|
|
668
|
-
|
|
667
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[10] = f) : f = t[10];
|
|
668
|
+
let p;
|
|
669
|
+
t[11] === i ? p = t[12] : (p = Ct.map((e) => /* @__PURE__ */ g(Tt, {
|
|
669
670
|
editor: i,
|
|
670
671
|
...e
|
|
671
|
-
}, e.align)),
|
|
672
|
-
let
|
|
673
|
-
|
|
672
|
+
}, e.align)), t[11] = i, t[12] = p);
|
|
673
|
+
let m;
|
|
674
|
+
t[13] === p ? m = t[14] : (m = /* @__PURE__ */ g("div", {
|
|
674
675
|
className: Q,
|
|
675
|
-
children:
|
|
676
|
-
}),
|
|
676
|
+
children: p
|
|
677
|
+
}), t[13] = p, t[14] = m);
|
|
677
678
|
let v;
|
|
678
|
-
|
|
679
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[15] = v) : v = t[15];
|
|
679
680
|
let y;
|
|
680
|
-
|
|
681
|
+
t[16] === i ? y = t[17] : (y = St.map((e) => /* @__PURE__ */ g(wt, {
|
|
681
682
|
editor: i,
|
|
682
683
|
...e
|
|
683
|
-
}, e.mark)),
|
|
684
|
+
}, e.mark)), t[16] = i, t[17] = y);
|
|
684
685
|
let b;
|
|
685
|
-
|
|
686
|
+
t[18] === y ? b = t[19] : (b = /* @__PURE__ */ g("div", {
|
|
686
687
|
className: Q,
|
|
687
688
|
children: y
|
|
688
|
-
}),
|
|
689
|
+
}), t[18] = y, t[19] = b);
|
|
689
690
|
let x;
|
|
690
|
-
|
|
691
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[20] = x) : x = t[20];
|
|
691
692
|
let S;
|
|
692
|
-
|
|
693
|
+
t[21] === i ? S = t[22] : (S = /* @__PURE__ */ _("div", {
|
|
693
694
|
className: Q,
|
|
694
695
|
children: [
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ g(Ot, { editor: i }),
|
|
697
|
+
/* @__PURE__ */ g(Et, { editor: i }),
|
|
698
|
+
/* @__PURE__ */ g(Dt, { editor: i })
|
|
698
699
|
]
|
|
699
|
-
}),
|
|
700
|
+
}), t[21] = i, t[22] = S);
|
|
700
701
|
let C;
|
|
701
|
-
|
|
702
|
+
t[23] === r ? C = t[24] : (C = r && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(n, { orientation: "vertical" }), /* @__PURE__ */ g("div", {
|
|
702
703
|
className: "_261ja31",
|
|
703
704
|
children: r
|
|
704
|
-
})] }),
|
|
705
|
+
})] }), t[23] = r, t[24] = C);
|
|
705
706
|
let w;
|
|
706
|
-
return
|
|
707
|
+
return t[25] !== a || t[26] !== b || t[27] !== S || t[28] !== C || t[29] !== c || t[30] !== u || t[31] !== m ? (w = /* @__PURE__ */ _("div", {
|
|
707
708
|
className: $e,
|
|
708
709
|
children: [
|
|
709
710
|
a,
|
|
@@ -711,15 +712,15 @@ var xt = [
|
|
|
711
712
|
c,
|
|
712
713
|
l,
|
|
713
714
|
u,
|
|
714
|
-
|
|
715
|
-
|
|
715
|
+
f,
|
|
716
|
+
m,
|
|
716
717
|
v,
|
|
717
718
|
b,
|
|
718
719
|
x,
|
|
719
720
|
S,
|
|
720
721
|
C
|
|
721
722
|
]
|
|
722
|
-
}),
|
|
723
|
+
}), t[25] = a, t[26] = b, t[27] = S, t[28] = C, t[29] = c, t[30] = u, t[31] = m, t[32] = w) : w = t[32], w;
|
|
723
724
|
};
|
|
724
725
|
function At(e) {
|
|
725
726
|
let { editor: t } = e;
|
|
@@ -734,4 +735,4 @@ function Mt(e) {
|
|
|
734
735
|
return t.isEditable && ct(t);
|
|
735
736
|
}
|
|
736
737
|
//#endregion
|
|
737
|
-
export {
|
|
738
|
+
export { Ge as a, X as i, Z as n, Ze as r, kt as t };
|