@fluid-app/fluid-cli-theme-dev 0.1.172 → 0.1.174
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/dist/dist-cli-preview/.vite/manifest.json +609 -181
- package/dist/dist-cli-preview/account-screens.css +1 -0
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Breadcrumb-BQKo8hPc.js → Breadcrumb-8-7shsB6.js} +1 -1
- package/dist/dist-cli-preview/chunks/Combobox-m3vSk0_A.js +521 -0
- package/dist/dist-cli-preview/chunks/{ContactsScreen-IsIZ_lQ0.js → ContactsScreen-CBjQOWmH.js} +1523 -1854
- package/dist/dist-cli-preview/chunks/MediaScreen-DlrLPYRf.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DiQkiWzc.js → MemberManagementProviders-WSjb3a8B.js} +189 -199
- package/dist/dist-cli-preview/chunks/MemberShareablesScreen-D-5-JyQq.js +17426 -0
- package/dist/dist-cli-preview/chunks/{MessagingScreen-B8ZxAE0L.js → MessagingScreen-By-jZq6v.js} +27645 -30195
- package/dist/dist-cli-preview/chunks/{MobileActionSheet-DMeTsLlK.js → MobileActionSheet-ERpw3qUF.js} +644 -589
- package/dist/dist-cli-preview/chunks/MySiteScreen-JAGvVMx-.js +1706 -0
- package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-DrZ3SwEu.js → OrdersScreen-Cb32bBjd.js} +35 -35
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-DgYA1qcv.js +8 -0
- package/dist/dist-cli-preview/chunks/PortalTenantClientProvider-CguU_uRG.js +15 -0
- package/dist/dist-cli-preview/chunks/{ProfileScreen-Dxspc-6p.js → ProfileScreen-CCWM6TBs.js} +454 -463
- package/dist/dist-cli-preview/chunks/Select-5fzq5MB-.js +940 -0
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-Be0C29uw.js → SubscriptionsScreen-DLdsaVJK.js} +3 -3
- package/dist/dist-cli-preview/chunks/Textarea-xoKqLVgY.js +330 -0
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-DYMunv0A.js → account-screen-runtime-CCBl8DXt.js} +866 -860
- package/dist/dist-cli-preview/chunks/ar-D6LJV1_E.js +679 -0
- package/dist/dist-cli-preview/chunks/{arrow-left-Bd7dJtIV.js → arrow-left-CTYaRdTX.js} +1 -1
- package/dist/dist-cli-preview/chunks/bg-C5Ldmily.js +679 -0
- package/dist/dist-cli-preview/chunks/bn-kfMPWNR6.js +679 -0
- package/dist/dist-cli-preview/chunks/{cli-preview-C7Db08Ij.js → cli-preview-CMcquUEN.js} +37 -23
- package/dist/dist-cli-preview/chunks/{client.gen-Ck6Pm2jV.js → client.gen-B7RMYGYu.js} +1 -1
- package/dist/dist-cli-preview/chunks/copy-DHN1DxE_.js +14 -0
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-InKUzF1q.js → countries-api-adapter-B4TefdRP.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-C9z7JILL.js → create-card-entry-container-5NqOQ4D_.js} +3612 -3932
- package/dist/dist-cli-preview/chunks/cs-DqEgtV8D.js +679 -0
- package/dist/dist-cli-preview/chunks/da-BbuvL7Gx.js +679 -0
- package/dist/dist-cli-preview/chunks/de-BfJ7rQig.js +679 -0
- package/dist/dist-cli-preview/chunks/el-BO0rLq6D.js +679 -0
- package/dist/dist-cli-preview/chunks/es-BEVtEUXk.js +679 -0
- package/dist/dist-cli-preview/chunks/eye-qMoMW7-Z.js +20 -0
- package/dist/dist-cli-preview/chunks/fi-DjISV3UN.js +679 -0
- package/dist/dist-cli-preview/chunks/fr-1fFd-aKy.js +679 -0
- package/dist/dist-cli-preview/chunks/he-CaT9bwVp.js +679 -0
- package/dist/dist-cli-preview/chunks/{hey-api-client-DGRBsZ7Y.js → hey-api-client-JMNyZwcF.js} +79 -39
- package/dist/dist-cli-preview/chunks/hi-DkzEm57l.js +679 -0
- package/dist/dist-cli-preview/chunks/hr-DqM5N_bj.js +679 -0
- package/dist/dist-cli-preview/chunks/hu-DiLqjo5c.js +679 -0
- package/dist/dist-cli-preview/chunks/id-DA1KmwgX.js +679 -0
- package/dist/dist-cli-preview/chunks/index-BS4PnEcu.js +353 -0
- package/dist/dist-cli-preview/chunks/index-BhMjUmAr.js +2572 -0
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-BDjSpDoe.js → index-Dor8vM2o.js} +2417 -3035
- package/dist/dist-cli-preview/chunks/it-CTEVWCRz.js +679 -0
- package/dist/dist-cli-preview/chunks/ja-fxqg1hhg.js +679 -0
- package/dist/dist-cli-preview/chunks/ko-Btp1_5YS.js +679 -0
- package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +14 -0
- package/dist/dist-cli-preview/chunks/{log-out-CSPZjXTK.js → log-out-DUdRJX4l.js} +1 -1
- package/dist/dist-cli-preview/chunks/{map-pin-B2ScoijR.js → map-pin-DyIkpqP0.js} +1 -1
- package/dist/dist-cli-preview/chunks/media-vkLeBb90.js +4 -0
- package/dist/dist-cli-preview/chunks/member-permissions-ndhNmlOk.js +19 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-5thBUz3X.js → mount-account-screen-BuQhxURX.js} +2271 -2260
- package/dist/dist-cli-preview/chunks/ms-DqRbmHx8.js +679 -0
- package/dist/dist-cli-preview/chunks/navigate-account-screen-mT0rqVLT.js +38 -0
- package/dist/dist-cli-preview/chunks/nl-CkPNddxO.js +679 -0
- package/dist/dist-cli-preview/chunks/no-ftcy0RcQ.js +679 -0
- package/dist/dist-cli-preview/chunks/pl-wyJLqfip.js +679 -0
- package/dist/dist-cli-preview/chunks/playlists-vkLeBb90.js +4 -0
- package/dist/dist-cli-preview/chunks/{plus-CocoE5gC.js → plus-DZjrp536.js} +1 -1
- package/dist/dist-cli-preview/chunks/pt-7uHLacuI.js +679 -0
- package/dist/dist-cli-preview/chunks/ro-Dh12ghww.js +679 -0
- package/dist/dist-cli-preview/chunks/ru-DFM7xWFz.js +679 -0
- package/dist/dist-cli-preview/chunks/{schemas-D94nZk5x.js → schemas-BTblatUV.js} +1107 -1062
- package/dist/dist-cli-preview/chunks/screen-route-slug-utils-DozJp-uc.js +620 -0
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-iOjKcNDj.js → sheet-haptics-context-CYrEaGtf.js} +3 -3
- package/dist/dist-cli-preview/chunks/sidebar-9qopXeR1.js +598 -0
- package/dist/dist-cli-preview/chunks/sk-CsuNYa1k.js +679 -0
- package/dist/dist-cli-preview/chunks/sortable.esm-Dlen88Fc.js +3283 -0
- package/dist/dist-cli-preview/chunks/{store-api-context-B96Ip2FB.js → store-api-context-B9pW_xao.js} +1 -1
- package/dist/dist-cli-preview/chunks/sv-DVrPaJbh.js +679 -0
- package/dist/dist-cli-preview/chunks/th-BEkMpcVW.js +679 -0
- package/dist/dist-cli-preview/chunks/tl-CqwwplQC.js +679 -0
- package/dist/dist-cli-preview/chunks/tr-XEp4ekrM.js +679 -0
- package/dist/dist-cli-preview/chunks/{trash-2-wVweQZMw.js → trash-2-ClRyi9iY.js} +12 -12
- package/dist/dist-cli-preview/chunks/uk-DWdZFWBl.js +679 -0
- package/dist/dist-cli-preview/chunks/use-mobile-srOt50VV.js +254 -0
- package/dist/dist-cli-preview/chunks/{use-optional-store-lZUz976C.js → use-optional-store-BgrOjfZJ.js} +2 -2
- package/dist/dist-cli-preview/chunks/{use-store-DVmgsDXy.js → use-store-CUSQx1E-.js} +25 -36
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dtzov9uh.js → useInfiniteQuery-DGc8fotv.js} +1 -1
- package/dist/dist-cli-preview/chunks/user-Ca2sKJ-h.js +14 -0
- package/dist/dist-cli-preview/chunks/users-Dh7zTrKY.js +16 -0
- package/dist/dist-cli-preview/chunks/vi-H__PaPsC.js +679 -0
- package/dist/dist-cli-preview/chunks/zh_CN-B62j_w_1.js +679 -0
- package/dist/dist-cli-preview/chunks/zh_TW-CYUIGBvP.js +679 -0
- package/package.json +1 -1
- package/dist/dist-cli-preview/chunks/Combobox-cf11L_T-.js +0 -1455
- package/dist/dist-cli-preview/chunks/MySiteScreen-Dtw1rsF9.js +0 -4950
- package/dist/dist-cli-preview/chunks/OrdersScreen-DkltVCtr.js +0 -9
- package/dist/dist-cli-preview/chunks/sidebar-Ckzom4Xc.js +0 -848
- package/dist/dist-cli-preview/chunks/user-B81IrSgp.js +0 -31
- package/dist/dist-cli-preview/chunks/users-BXTjoCUz.js +0 -27
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { c as b, l as g, ak as E, aW as H, j as i, aa as L, ba as R, ab as x, am as v, al as $, M as m } from "./account-screen-runtime-CCBl8DXt.js";
|
|
2
|
+
import { a as F, p as P, d as U, e as D } from "./index-Dor8vM2o.js";
|
|
3
|
+
import { F as y, H as G, J as V } from "./MobileActionSheet-ERpw3qUF.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.575.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const z = [
|
|
11
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
12
|
+
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
13
|
+
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
14
|
+
], ne = b("ellipsis", z);
|
|
15
|
+
/**
|
|
16
|
+
* @license lucide-react v0.575.0 - ISC
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the ISC license.
|
|
19
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const K = [
|
|
22
|
+
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
23
|
+
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
24
|
+
["path", { d: "M19 19H5", key: "vjpgq2" }]
|
|
25
|
+
], se = b("text-align-center", K);
|
|
26
|
+
/**
|
|
27
|
+
* @license lucide-react v0.575.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
const O = [
|
|
33
|
+
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
34
|
+
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
35
|
+
["path", { d: "M21 19H7", key: "4cu937" }]
|
|
36
|
+
], ae = b("text-align-end", O);
|
|
37
|
+
/**
|
|
38
|
+
* @license lucide-react v0.575.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
const q = [
|
|
44
|
+
["path", { d: "M3 5h18", key: "1u36vt" }],
|
|
45
|
+
["path", { d: "M3 12h18", key: "1i2n21" }],
|
|
46
|
+
["path", { d: "M3 19h18", key: "awlh7x" }]
|
|
47
|
+
], ie = b("text-align-justify", q);
|
|
48
|
+
var h = "Tabs", [B] = L(h, [
|
|
49
|
+
y
|
|
50
|
+
]), A = y(), [J, T] = B(h), M = g.forwardRef(
|
|
51
|
+
(e, t) => {
|
|
52
|
+
const {
|
|
53
|
+
__scopeTabs: n,
|
|
54
|
+
value: s,
|
|
55
|
+
onValueChange: o,
|
|
56
|
+
defaultValue: c,
|
|
57
|
+
orientation: a = "horizontal",
|
|
58
|
+
dir: d,
|
|
59
|
+
activationMode: f = "automatic",
|
|
60
|
+
...p
|
|
61
|
+
} = e, l = E(d), [r, u] = H({
|
|
62
|
+
prop: s,
|
|
63
|
+
onChange: o,
|
|
64
|
+
defaultProp: c ?? "",
|
|
65
|
+
caller: h
|
|
66
|
+
});
|
|
67
|
+
return /* @__PURE__ */ i.jsx(
|
|
68
|
+
J,
|
|
69
|
+
{
|
|
70
|
+
scope: n,
|
|
71
|
+
baseId: R(),
|
|
72
|
+
value: r,
|
|
73
|
+
onValueChange: u,
|
|
74
|
+
orientation: a,
|
|
75
|
+
dir: l,
|
|
76
|
+
activationMode: f,
|
|
77
|
+
children: /* @__PURE__ */ i.jsx(
|
|
78
|
+
x.div,
|
|
79
|
+
{
|
|
80
|
+
dir: l,
|
|
81
|
+
"data-orientation": a,
|
|
82
|
+
...p,
|
|
83
|
+
ref: t
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
M.displayName = h;
|
|
91
|
+
var _ = "TabsList", j = g.forwardRef(
|
|
92
|
+
(e, t) => {
|
|
93
|
+
const { __scopeTabs: n, loop: s = !0, ...o } = e, c = T(_, n), a = A(n);
|
|
94
|
+
return /* @__PURE__ */ i.jsx(
|
|
95
|
+
G,
|
|
96
|
+
{
|
|
97
|
+
asChild: !0,
|
|
98
|
+
...a,
|
|
99
|
+
orientation: c.orientation,
|
|
100
|
+
dir: c.dir,
|
|
101
|
+
loop: s,
|
|
102
|
+
children: /* @__PURE__ */ i.jsx(
|
|
103
|
+
x.div,
|
|
104
|
+
{
|
|
105
|
+
role: "tablist",
|
|
106
|
+
"aria-orientation": c.orientation,
|
|
107
|
+
...o,
|
|
108
|
+
ref: t
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
j.displayName = _;
|
|
116
|
+
var k = "TabsTrigger", C = g.forwardRef(
|
|
117
|
+
(e, t) => {
|
|
118
|
+
const { __scopeTabs: n, value: s, disabled: o = !1, ...c } = e, a = T(k, n), d = A(n), f = I(a.baseId, s), p = w(a.baseId, s), l = s === a.value;
|
|
119
|
+
return /* @__PURE__ */ i.jsx(
|
|
120
|
+
V,
|
|
121
|
+
{
|
|
122
|
+
asChild: !0,
|
|
123
|
+
...d,
|
|
124
|
+
focusable: !o,
|
|
125
|
+
active: l,
|
|
126
|
+
children: /* @__PURE__ */ i.jsx(
|
|
127
|
+
x.button,
|
|
128
|
+
{
|
|
129
|
+
type: "button",
|
|
130
|
+
role: "tab",
|
|
131
|
+
"aria-selected": l,
|
|
132
|
+
"aria-controls": p,
|
|
133
|
+
"data-state": l ? "active" : "inactive",
|
|
134
|
+
"data-disabled": o ? "" : void 0,
|
|
135
|
+
disabled: o,
|
|
136
|
+
id: f,
|
|
137
|
+
...c,
|
|
138
|
+
ref: t,
|
|
139
|
+
onMouseDown: v(e.onMouseDown, (r) => {
|
|
140
|
+
!o && r.button === 0 && r.ctrlKey === !1 ? a.onValueChange(s) : r.preventDefault();
|
|
141
|
+
}),
|
|
142
|
+
onKeyDown: v(e.onKeyDown, (r) => {
|
|
143
|
+
[" ", "Enter"].includes(r.key) && a.onValueChange(s);
|
|
144
|
+
}),
|
|
145
|
+
onFocus: v(e.onFocus, () => {
|
|
146
|
+
const r = a.activationMode !== "manual";
|
|
147
|
+
!l && !o && r && a.onValueChange(s);
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
C.displayName = k;
|
|
156
|
+
var N = "TabsContent", S = g.forwardRef(
|
|
157
|
+
(e, t) => {
|
|
158
|
+
const { __scopeTabs: n, value: s, forceMount: o, children: c, ...a } = e, d = T(N, n), f = I(d.baseId, s), p = w(d.baseId, s), l = s === d.value, r = g.useRef(l);
|
|
159
|
+
return g.useEffect(() => {
|
|
160
|
+
const u = requestAnimationFrame(() => r.current = !1);
|
|
161
|
+
return () => cancelAnimationFrame(u);
|
|
162
|
+
}, []), /* @__PURE__ */ i.jsx($, { present: o || l, children: ({ present: u }) => /* @__PURE__ */ i.jsx(
|
|
163
|
+
x.div,
|
|
164
|
+
{
|
|
165
|
+
"data-state": l ? "active" : "inactive",
|
|
166
|
+
"data-orientation": d.orientation,
|
|
167
|
+
role: "tabpanel",
|
|
168
|
+
"aria-labelledby": f,
|
|
169
|
+
hidden: !u,
|
|
170
|
+
id: p,
|
|
171
|
+
tabIndex: 0,
|
|
172
|
+
...a,
|
|
173
|
+
ref: t,
|
|
174
|
+
style: {
|
|
175
|
+
...e.style,
|
|
176
|
+
animationDuration: r.current ? "0s" : void 0
|
|
177
|
+
},
|
|
178
|
+
children: u && c
|
|
179
|
+
}
|
|
180
|
+
) });
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
S.displayName = N;
|
|
184
|
+
function I(e, t) {
|
|
185
|
+
return `${e}-trigger-${t}`;
|
|
186
|
+
}
|
|
187
|
+
function w(e, t) {
|
|
188
|
+
return `${e}-content-${t}`;
|
|
189
|
+
}
|
|
190
|
+
var W = M, Q = j, X = C, Y = S;
|
|
191
|
+
function re({
|
|
192
|
+
className: e,
|
|
193
|
+
...t
|
|
194
|
+
}) {
|
|
195
|
+
return /* @__PURE__ */ i.jsx(
|
|
196
|
+
F,
|
|
197
|
+
{
|
|
198
|
+
"data-slot": "spinner",
|
|
199
|
+
role: "status",
|
|
200
|
+
"aria-label": "Loading",
|
|
201
|
+
className: m("size-4 animate-spin", e),
|
|
202
|
+
...t
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
function oe({
|
|
207
|
+
className: e,
|
|
208
|
+
...t
|
|
209
|
+
}) {
|
|
210
|
+
return /* @__PURE__ */ i.jsx(
|
|
211
|
+
W,
|
|
212
|
+
{
|
|
213
|
+
"data-slot": "tabs",
|
|
214
|
+
className: m("flex flex-col gap-2", e),
|
|
215
|
+
...t
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
function le({
|
|
220
|
+
className: e,
|
|
221
|
+
...t
|
|
222
|
+
}) {
|
|
223
|
+
return /* @__PURE__ */ i.jsx(
|
|
224
|
+
Q,
|
|
225
|
+
{
|
|
226
|
+
"data-slot": "tabs-list",
|
|
227
|
+
className: m(
|
|
228
|
+
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
229
|
+
e
|
|
230
|
+
),
|
|
231
|
+
...t
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
function ce({
|
|
236
|
+
className: e,
|
|
237
|
+
...t
|
|
238
|
+
}) {
|
|
239
|
+
return /* @__PURE__ */ i.jsx(
|
|
240
|
+
X,
|
|
241
|
+
{
|
|
242
|
+
"data-slot": "tabs-trigger",
|
|
243
|
+
className: m(
|
|
244
|
+
"text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring data-[state=active]:bg-background inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
245
|
+
e
|
|
246
|
+
),
|
|
247
|
+
...t
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
function de({
|
|
252
|
+
className: e,
|
|
253
|
+
...t
|
|
254
|
+
}) {
|
|
255
|
+
return /* @__PURE__ */ i.jsx(
|
|
256
|
+
Y,
|
|
257
|
+
{
|
|
258
|
+
"data-slot": "tabs-content",
|
|
259
|
+
className: m("flex-1 outline-none", e),
|
|
260
|
+
...t
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
const ue = P.create({
|
|
265
|
+
name: "textAlign",
|
|
266
|
+
addOptions() {
|
|
267
|
+
return {
|
|
268
|
+
types: [],
|
|
269
|
+
alignments: ["left", "center", "right", "justify"],
|
|
270
|
+
defaultAlignment: null
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
addGlobalAttributes() {
|
|
274
|
+
return [
|
|
275
|
+
{
|
|
276
|
+
types: this.options.types,
|
|
277
|
+
attributes: {
|
|
278
|
+
textAlign: {
|
|
279
|
+
default: this.options.defaultAlignment,
|
|
280
|
+
parseHTML: (e) => {
|
|
281
|
+
const t = e.style.textAlign;
|
|
282
|
+
return this.options.alignments.includes(t) ? t : this.options.defaultAlignment;
|
|
283
|
+
},
|
|
284
|
+
renderHTML: (e) => e.textAlign ? { style: `text-align: ${e.textAlign}` } : {}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
];
|
|
289
|
+
},
|
|
290
|
+
addCommands() {
|
|
291
|
+
return {
|
|
292
|
+
setTextAlign: (e) => ({ commands: t }) => this.options.alignments.includes(e) ? this.options.types.map((n) => t.updateAttributes(n, { textAlign: e })).every((n) => n) : !1,
|
|
293
|
+
unsetTextAlign: () => ({ commands: e }) => this.options.types.map((t) => e.resetAttributes(t, "textAlign")).every((t) => t),
|
|
294
|
+
toggleTextAlign: (e) => ({ editor: t, commands: n }) => this.options.alignments.includes(e) ? t.isActive({ textAlign: e }) ? n.unsetTextAlign() : n.setTextAlign(e) : !1
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
addKeyboardShortcuts() {
|
|
298
|
+
return {
|
|
299
|
+
"Mod-Shift-l": () => this.editor.commands.setTextAlign("left"),
|
|
300
|
+
"Mod-Shift-e": () => this.editor.commands.setTextAlign("center"),
|
|
301
|
+
"Mod-Shift-r": () => this.editor.commands.setTextAlign("right"),
|
|
302
|
+
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
}), ge = U.create({
|
|
306
|
+
name: "underline",
|
|
307
|
+
addOptions() {
|
|
308
|
+
return {
|
|
309
|
+
HTMLAttributes: {}
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
parseHTML() {
|
|
313
|
+
return [
|
|
314
|
+
{
|
|
315
|
+
tag: "u"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
style: "text-decoration",
|
|
319
|
+
consuming: !1,
|
|
320
|
+
getAttrs: (e) => e.includes("underline") ? {} : !1
|
|
321
|
+
}
|
|
322
|
+
];
|
|
323
|
+
},
|
|
324
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
325
|
+
return ["u", D(this.options.HTMLAttributes, e), 0];
|
|
326
|
+
},
|
|
327
|
+
addCommands() {
|
|
328
|
+
return {
|
|
329
|
+
setUnderline: () => ({ commands: e }) => e.setMark(this.name),
|
|
330
|
+
toggleUnderline: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
331
|
+
unsetUnderline: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
332
|
+
};
|
|
333
|
+
},
|
|
334
|
+
addKeyboardShortcuts() {
|
|
335
|
+
return {
|
|
336
|
+
"Mod-u": () => this.editor.commands.toggleUnderline(),
|
|
337
|
+
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
export {
|
|
342
|
+
ne as E,
|
|
343
|
+
re as S,
|
|
344
|
+
oe as T,
|
|
345
|
+
ge as U,
|
|
346
|
+
le as a,
|
|
347
|
+
ce as b,
|
|
348
|
+
ue as c,
|
|
349
|
+
se as d,
|
|
350
|
+
ae as e,
|
|
351
|
+
ie as f,
|
|
352
|
+
de as g
|
|
353
|
+
};
|