@puckeditor/core 0.22.1 → 0.23.0-canary.1b6fc858
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/{Editor-ZZW3KF2T.css → Editor-T7TKW6NT.css} +7 -7
- package/dist/{Editor-MXSH3OSX.mjs → Editor-Z6P5UAVB.mjs} +9 -9
- package/dist/{actions-Csn3gOP8.d.mts → actions-3w-1VzY_.d.mts} +7 -1
- package/dist/{actions-Csn3gOP8.d.ts → actions-3w-1VzY_.d.ts} +7 -1
- package/dist/{chunk-73XKHVBN.mjs → chunk-3OLRWMRO.mjs} +37 -22
- package/dist/{chunk-FKYOVZNF.mjs → chunk-3TERNOIP.mjs} +2 -2
- package/dist/{chunk-54LFCIWQ.mjs → chunk-DIYX54ZO.mjs} +137 -8
- package/dist/{chunk-DATOBXTJ.mjs → chunk-L73ATZ55.mjs} +15 -8
- package/dist/{chunk-GR7NLT4T.mjs → chunk-NPAYGEG5.mjs} +2 -1
- package/dist/{chunk-BVKXFA4V.mjs → chunk-OCFR2FFG.mjs} +27 -12
- package/dist/{chunk-6PIQFZBM.mjs → chunk-OQD6Q7CY.mjs} +2075 -809
- package/dist/{chunk-2AATV7NG.mjs → chunk-OSPG5CWL.mjs} +21 -10
- package/dist/{chunk-VOB4L2BJ.mjs → chunk-PJYHZPJK.mjs} +3 -3
- package/dist/{chunk-74HKFKJU.mjs → chunk-QHQD3BMI.mjs} +7 -5
- package/dist/{chunk-HRNJ42TO.mjs → chunk-UAWUZ45G.mjs} +42 -19
- package/dist/{full-7JVAMOPS.mjs → full-67VCA5MX.mjs} +8 -8
- package/dist/{full-S3QQ2IBQ.css → full-AAZK6KLI.css} +7 -7
- package/dist/index-KWLAZybR.d.ts +206 -0
- package/dist/index-l1l-a8tj.d.mts +206 -0
- package/dist/index.css +308 -111
- package/dist/index.d.mts +24 -11
- package/dist/index.d.ts +24 -11
- package/dist/index.js +2389 -828
- package/dist/index.mjs +11 -11
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +47 -23
- package/dist/internal.mjs +2 -2
- package/dist/{loaded-EFZRGV2Y.mjs → loaded-4XVG2RKQ.mjs} +5 -5
- package/dist/{loaded-FVWRAJR3.css → loaded-CA3Q7UHH.css} +7 -7
- package/dist/{loaded-HECCGJKO.mjs → loaded-LM723CWI.mjs} +5 -5
- package/dist/{loaded-B7563MDT.mjs → loaded-VBJBTUSI.mjs} +5 -5
- package/dist/no-external.css +308 -111
- package/dist/no-external.d.mts +4 -4
- package/dist/no-external.d.ts +4 -4
- package/dist/no-external.js +2389 -828
- package/dist/no-external.mjs +11 -11
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +8 -5
- package/dist/rsc.mjs +3 -3
- package/dist/{walk-tree-CWrsBHHe.d.ts → walk-tree-ConR82Y6.d.ts} +1 -1
- package/dist/{walk-tree-BrW9VQ_t.d.mts → walk-tree-DJMo6GTF.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/index-B1b1cFug.d.ts +0 -117
- package/dist/index-ClzBCbx_.d.mts +0 -117
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
|
|
44
|
-
.
|
|
44
|
+
._IconButton_1pxxt_1 {
|
|
45
45
|
align-items: center;
|
|
46
46
|
background: var(--puck-iconbutton-color-bg, transparent);
|
|
47
47
|
border: none;
|
|
@@ -53,26 +53,26 @@
|
|
|
53
53
|
padding: var(--puck-iconbutton-space, var(--puck-space-1));
|
|
54
54
|
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
55
55
|
}
|
|
56
|
-
._IconButton--
|
|
56
|
+
._IconButton--active_1pxxt_15 {
|
|
57
57
|
color: var( --puck-iconbutton-color-icon-active, var(--puck-color-interactive) );
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
._IconButton_1pxxt_1:focus-visible {
|
|
60
60
|
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
61
61
|
outline-offset: calc(var(--puck-border-width-focus) * -1);
|
|
62
62
|
}
|
|
63
63
|
@media (hover: hover) and (pointer: fine) {
|
|
64
|
-
.
|
|
65
|
-
background: var( --puck-iconbutton-color-bg-hover, var(--puck-color-interactive-neutral-hover) );
|
|
64
|
+
._IconButton_1pxxt_1:hover:not(._IconButton--disabled_1pxxt_28) {
|
|
65
|
+
background: var( --_puck-iconbutton-color-bg-hover, var( --puck-iconbutton-color-bg-hover, var(--puck-color-interactive-neutral-hover) ) );
|
|
66
66
|
color: var( --puck-iconbutton-color-icon-hover, var(--puck-color-interactive) );
|
|
67
67
|
cursor: pointer;
|
|
68
68
|
transition: none;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
._IconButton_1pxxt_1:active {
|
|
72
72
|
background: var( --puck-iconbutton-color-bg-active, var(--puck-color-interactive-soft) );
|
|
73
73
|
transition: none;
|
|
74
74
|
}
|
|
75
|
-
._IconButton--
|
|
75
|
+
._IconButton--disabled_1pxxt_28 {
|
|
76
76
|
color: var( --puck-iconbutton-color-icon-disabled, var(--puck-color-text-subtle) );
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
EditorInner,
|
|
6
6
|
LoadedRichTextMenu
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PJYHZPJK.mjs";
|
|
8
8
|
import "./chunk-H635BA2V.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3OLRWMRO.mjs";
|
|
10
|
+
import "./chunk-OSPG5CWL.mjs";
|
|
11
|
+
import "./chunk-OCFR2FFG.mjs";
|
|
12
|
+
import "./chunk-L73ATZ55.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAppStore,
|
|
15
15
|
useAppStoreApi
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-DIYX54ZO.mjs";
|
|
17
|
+
import "./chunk-UAWUZ45G.mjs";
|
|
18
|
+
import "./chunk-NPAYGEG5.mjs";
|
|
19
19
|
import "./chunk-Y2EFNT5P.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-QHQD3BMI.mjs";
|
|
21
21
|
import {
|
|
22
22
|
__spreadProps,
|
|
23
23
|
__spreadValues,
|
|
@@ -556,6 +556,8 @@ type UiState = {
|
|
|
556
556
|
expanded?: boolean;
|
|
557
557
|
}>;
|
|
558
558
|
isDragging: boolean;
|
|
559
|
+
/** Outline items whose children are shown, keyed by item id */
|
|
560
|
+
itemExpanded?: Record<string, boolean>;
|
|
559
561
|
viewports: {
|
|
560
562
|
current: {
|
|
561
563
|
width: number | "100%";
|
|
@@ -736,6 +738,10 @@ type IframeConfig = {
|
|
|
736
738
|
waitForStyles?: boolean;
|
|
737
739
|
syncHostStyles?: boolean;
|
|
738
740
|
};
|
|
741
|
+
type DndConfig = {
|
|
742
|
+
disableAutoScroll?: boolean;
|
|
743
|
+
disableOutlineDrag?: boolean;
|
|
744
|
+
};
|
|
739
745
|
type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
|
|
740
746
|
type Plugin<UserConfig extends Config = Config> = {
|
|
741
747
|
name?: string;
|
|
@@ -837,4 +843,4 @@ type PuckAction = {
|
|
|
837
843
|
recordHistory?: boolean;
|
|
838
844
|
} & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
|
|
839
845
|
|
|
840
|
-
export { type
|
|
846
|
+
export { type Overrides as $, type Adaptor as A, type BaseData as B, type CacheOpts as C, type Data as D, type ExternalField as E, type ExternalFieldWithAdaptor as F, type ExtractConfigParams as G, type ExtractField as H, type Field as I, type FieldMetadata as J, type FieldProps as K, type FieldRenderFunctions as L, type FieldTransformFn as M, type FieldTransformFnParams as N, type FieldTransforms as O, type Fields as P, type History as Q, type IframeConfig as R, type InitialHistory as S, type ItemSelector as T, type ItemWithId as U, type MappedItem as V, type Metadata as W, type NumberField as X, type ObjectField as Y, type OnAction as Z, type OverrideKey as _, type AppState as a, type Permissions as a0, type Plugin as a1, type PluginInternal as a2, type PrivateAppState as a3, type PuckAction as a4, type PuckComponent as a5, type PuckContext as a6, type PuckMetadata as a7, type RadioField as a8, type ResolveDataTrigger as a9, type RichText as aa, type RichtextField as ab, type RootConfig as ac, type RootData as ad, type RootDataWithProps as ae, type RootDataWithoutProps as af, type SelectField as ag, type Slot as ah, type SlotComponent as ai, type SlotField as aj, type TextField as ak, type TextareaField as al, type UiState as am, type UserGenerics as an, type Viewport as ao, type Viewports as ap, type WithChildren as aq, type WithId as ar, type WithPuckProps as as, type WithSlotProps as at, overrideKeys as au, type ArrayField as b, type ArrayState as c, type AsFieldProps as d, type BaseField as e, type ComponentConfig as f, type ComponentConfigExtensions as g, type ComponentConfigParams as h, type ComponentData as i, type ComponentDataMap as j, type ComponentDataOptionalId as k, type ComponentMetadata as l, type Config as m, type ConfigParams as n, type Content as o, type CustomField as p, type CustomFieldRender as q, type DefaultComponentProps as r, type DefaultComponents as s, type DefaultRootFieldProps as t, type DefaultRootProps as u, type DefaultRootRenderProps as v, type Direction as w, type DndConfig as x, type DragAxis as y, type DropZoneProps as z };
|
|
@@ -556,6 +556,8 @@ type UiState = {
|
|
|
556
556
|
expanded?: boolean;
|
|
557
557
|
}>;
|
|
558
558
|
isDragging: boolean;
|
|
559
|
+
/** Outline items whose children are shown, keyed by item id */
|
|
560
|
+
itemExpanded?: Record<string, boolean>;
|
|
559
561
|
viewports: {
|
|
560
562
|
current: {
|
|
561
563
|
width: number | "100%";
|
|
@@ -736,6 +738,10 @@ type IframeConfig = {
|
|
|
736
738
|
waitForStyles?: boolean;
|
|
737
739
|
syncHostStyles?: boolean;
|
|
738
740
|
};
|
|
741
|
+
type DndConfig = {
|
|
742
|
+
disableAutoScroll?: boolean;
|
|
743
|
+
disableOutlineDrag?: boolean;
|
|
744
|
+
};
|
|
739
745
|
type OnAction<UserData extends Data = Data> = (action: PuckAction, appState: AppState<UserData>, prevAppState: AppState<UserData>) => void;
|
|
740
746
|
type Plugin<UserConfig extends Config = Config> = {
|
|
741
747
|
name?: string;
|
|
@@ -837,4 +843,4 @@ type PuckAction = {
|
|
|
837
843
|
recordHistory?: boolean;
|
|
838
844
|
} & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
|
|
839
845
|
|
|
840
|
-
export { type
|
|
846
|
+
export { type Overrides as $, type Adaptor as A, type BaseData as B, type CacheOpts as C, type Data as D, type ExternalField as E, type ExternalFieldWithAdaptor as F, type ExtractConfigParams as G, type ExtractField as H, type Field as I, type FieldMetadata as J, type FieldProps as K, type FieldRenderFunctions as L, type FieldTransformFn as M, type FieldTransformFnParams as N, type FieldTransforms as O, type Fields as P, type History as Q, type IframeConfig as R, type InitialHistory as S, type ItemSelector as T, type ItemWithId as U, type MappedItem as V, type Metadata as W, type NumberField as X, type ObjectField as Y, type OnAction as Z, type OverrideKey as _, type AppState as a, type Permissions as a0, type Plugin as a1, type PluginInternal as a2, type PrivateAppState as a3, type PuckAction as a4, type PuckComponent as a5, type PuckContext as a6, type PuckMetadata as a7, type RadioField as a8, type ResolveDataTrigger as a9, type RichText as aa, type RichtextField as ab, type RootConfig as ac, type RootData as ad, type RootDataWithProps as ae, type RootDataWithoutProps as af, type SelectField as ag, type Slot as ah, type SlotComponent as ai, type SlotField as aj, type TextField as ak, type TextareaField as al, type UiState as am, type UserGenerics as an, type Viewport as ao, type Viewports as ap, type WithChildren as aq, type WithId as ar, type WithPuckProps as as, type WithSlotProps as at, overrideKeys as au, type ArrayField as b, type ArrayState as c, type AsFieldProps as d, type BaseField as e, type ComponentConfig as f, type ComponentConfigExtensions as g, type ComponentConfigParams as h, type ComponentData as i, type ComponentDataMap as j, type ComponentDataOptionalId as k, type ComponentMetadata as l, type Config as m, type ConfigParams as n, type Content as o, type CustomField as p, type CustomFieldRender as q, type DefaultComponentProps as r, type DefaultComponents as s, type DefaultRootFieldProps as t, type DefaultRootProps as u, type DefaultRootRenderProps as v, type Direction as w, type DndConfig as x, type DragAxis as y, type DropZoneProps as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OSPG5CWL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useHeadingOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OCFR2FFG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useListOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L73ATZ55.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Action,
|
|
12
12
|
AlignCenter,
|
|
@@ -27,8 +27,9 @@ import {
|
|
|
27
27
|
SquareCode,
|
|
28
28
|
Strikethrough,
|
|
29
29
|
Underline,
|
|
30
|
-
useControlContext
|
|
31
|
-
|
|
30
|
+
useControlContext,
|
|
31
|
+
useMessage
|
|
32
|
+
} from "./chunk-DIYX54ZO.mjs";
|
|
32
33
|
import {
|
|
33
34
|
get_class_name_factory_default
|
|
34
35
|
} from "./chunk-Y2EFNT5P.mjs";
|
|
@@ -98,6 +99,7 @@ function Control({
|
|
|
98
99
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
99
100
|
function AlignLeft2() {
|
|
100
101
|
const { editor, editorState } = useControlContext();
|
|
102
|
+
const alignLeftLabel = useMessage("field-richtext-align-left");
|
|
101
103
|
return /* @__PURE__ */ jsx2(
|
|
102
104
|
Control,
|
|
103
105
|
{
|
|
@@ -108,7 +110,7 @@ function AlignLeft2() {
|
|
|
108
110
|
},
|
|
109
111
|
disabled: !(editorState == null ? void 0 : editorState.canAlignLeft),
|
|
110
112
|
active: editorState == null ? void 0 : editorState.isAlignLeft,
|
|
111
|
-
title:
|
|
113
|
+
title: alignLeftLabel
|
|
112
114
|
}
|
|
113
115
|
);
|
|
114
116
|
}
|
|
@@ -118,6 +120,7 @@ init_react_import();
|
|
|
118
120
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
119
121
|
function AlignCenter2() {
|
|
120
122
|
const { editor, editorState } = useControlContext();
|
|
123
|
+
const alignCenterLabel = useMessage("field-richtext-align-center");
|
|
121
124
|
return /* @__PURE__ */ jsx3(
|
|
122
125
|
Control,
|
|
123
126
|
{
|
|
@@ -128,7 +131,7 @@ function AlignCenter2() {
|
|
|
128
131
|
},
|
|
129
132
|
disabled: !(editorState == null ? void 0 : editorState.canAlignCenter),
|
|
130
133
|
active: editorState == null ? void 0 : editorState.isAlignCenter,
|
|
131
|
-
title:
|
|
134
|
+
title: alignCenterLabel
|
|
132
135
|
}
|
|
133
136
|
);
|
|
134
137
|
}
|
|
@@ -138,6 +141,7 @@ init_react_import();
|
|
|
138
141
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
139
142
|
function AlignRight2() {
|
|
140
143
|
const { editor, editorState } = useControlContext();
|
|
144
|
+
const alignRightLabel = useMessage("field-richtext-align-right");
|
|
141
145
|
return /* @__PURE__ */ jsx4(
|
|
142
146
|
Control,
|
|
143
147
|
{
|
|
@@ -148,7 +152,7 @@ function AlignRight2() {
|
|
|
148
152
|
},
|
|
149
153
|
disabled: !(editorState == null ? void 0 : editorState.canAlignRight),
|
|
150
154
|
active: editorState == null ? void 0 : editorState.isAlignRight,
|
|
151
|
-
title:
|
|
155
|
+
title: alignRightLabel
|
|
152
156
|
}
|
|
153
157
|
);
|
|
154
158
|
}
|
|
@@ -158,6 +162,7 @@ init_react_import();
|
|
|
158
162
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
159
163
|
function AlignJustify2() {
|
|
160
164
|
const { editor, editorState } = useControlContext();
|
|
165
|
+
const alignJustifyLabel = useMessage("field-richtext-align-justify");
|
|
161
166
|
return /* @__PURE__ */ jsx5(
|
|
162
167
|
Control,
|
|
163
168
|
{
|
|
@@ -168,7 +173,7 @@ function AlignJustify2() {
|
|
|
168
173
|
},
|
|
169
174
|
disabled: !(editorState == null ? void 0 : editorState.canAlignJustify),
|
|
170
175
|
active: editorState == null ? void 0 : editorState.isAlignJustify,
|
|
171
|
-
title:
|
|
176
|
+
title: alignJustifyLabel
|
|
172
177
|
}
|
|
173
178
|
);
|
|
174
179
|
}
|
|
@@ -199,7 +204,7 @@ function AlignSelectFallback() {
|
|
|
199
204
|
// components/RichTextMenu/controls/AlignSelect/index.tsx
|
|
200
205
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
201
206
|
var AlignSelectLoaded = lazy(
|
|
202
|
-
() => import("./loaded-
|
|
207
|
+
() => import("./loaded-4XVG2RKQ.mjs").then((m) => ({
|
|
203
208
|
default: m.AlignSelectLoaded
|
|
204
209
|
}))
|
|
205
210
|
);
|
|
@@ -210,6 +215,7 @@ init_react_import();
|
|
|
210
215
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
211
216
|
function Bold2() {
|
|
212
217
|
const { editor, editorState } = useControlContext();
|
|
218
|
+
const boldLabel = useMessage("field-richtext-bold");
|
|
213
219
|
return /* @__PURE__ */ jsx8(
|
|
214
220
|
Control,
|
|
215
221
|
{
|
|
@@ -220,7 +226,7 @@ function Bold2() {
|
|
|
220
226
|
},
|
|
221
227
|
disabled: !(editorState == null ? void 0 : editorState.canBold),
|
|
222
228
|
active: editorState == null ? void 0 : editorState.isBold,
|
|
223
|
-
title:
|
|
229
|
+
title: boldLabel
|
|
224
230
|
}
|
|
225
231
|
);
|
|
226
232
|
}
|
|
@@ -230,6 +236,7 @@ init_react_import();
|
|
|
230
236
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
231
237
|
function Italic2() {
|
|
232
238
|
const { editor, editorState } = useControlContext();
|
|
239
|
+
const italicLabel = useMessage("field-richtext-italic");
|
|
233
240
|
return /* @__PURE__ */ jsx9(
|
|
234
241
|
Control,
|
|
235
242
|
{
|
|
@@ -240,7 +247,7 @@ function Italic2() {
|
|
|
240
247
|
},
|
|
241
248
|
disabled: !(editorState == null ? void 0 : editorState.canItalic),
|
|
242
249
|
active: editorState == null ? void 0 : editorState.isItalic,
|
|
243
|
-
title:
|
|
250
|
+
title: italicLabel
|
|
244
251
|
}
|
|
245
252
|
);
|
|
246
253
|
}
|
|
@@ -250,6 +257,7 @@ init_react_import();
|
|
|
250
257
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
251
258
|
function Underline2() {
|
|
252
259
|
const { editor, editorState } = useControlContext();
|
|
260
|
+
const underlineLabel = useMessage("field-richtext-underline");
|
|
253
261
|
return /* @__PURE__ */ jsx10(
|
|
254
262
|
Control,
|
|
255
263
|
{
|
|
@@ -260,7 +268,7 @@ function Underline2() {
|
|
|
260
268
|
},
|
|
261
269
|
disabled: !(editorState == null ? void 0 : editorState.canUnderline),
|
|
262
270
|
active: editorState == null ? void 0 : editorState.isUnderline,
|
|
263
|
-
title:
|
|
271
|
+
title: underlineLabel
|
|
264
272
|
}
|
|
265
273
|
);
|
|
266
274
|
}
|
|
@@ -270,6 +278,7 @@ init_react_import();
|
|
|
270
278
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
271
279
|
function Strikethrough2() {
|
|
272
280
|
const { editor, editorState } = useControlContext();
|
|
281
|
+
const strikethroughLabel = useMessage("field-richtext-strikethrough");
|
|
273
282
|
return /* @__PURE__ */ jsx11(
|
|
274
283
|
Control,
|
|
275
284
|
{
|
|
@@ -280,7 +289,7 @@ function Strikethrough2() {
|
|
|
280
289
|
},
|
|
281
290
|
disabled: !(editorState == null ? void 0 : editorState.canStrike),
|
|
282
291
|
active: editorState == null ? void 0 : editorState.isStrike,
|
|
283
|
-
title:
|
|
292
|
+
title: strikethroughLabel
|
|
284
293
|
}
|
|
285
294
|
);
|
|
286
295
|
}
|
|
@@ -290,6 +299,7 @@ init_react_import();
|
|
|
290
299
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
291
300
|
function InlineCode() {
|
|
292
301
|
const { editor, editorState } = useControlContext();
|
|
302
|
+
const inlineCodeLabel = useMessage("field-richtext-code-inline");
|
|
293
303
|
return /* @__PURE__ */ jsx12(
|
|
294
304
|
Control,
|
|
295
305
|
{
|
|
@@ -300,7 +310,7 @@ function InlineCode() {
|
|
|
300
310
|
},
|
|
301
311
|
disabled: !(editorState == null ? void 0 : editorState.canInlineCode),
|
|
302
312
|
active: editorState == null ? void 0 : editorState.isInlineCode,
|
|
303
|
-
title:
|
|
313
|
+
title: inlineCodeLabel
|
|
304
314
|
}
|
|
305
315
|
);
|
|
306
316
|
}
|
|
@@ -310,6 +320,7 @@ init_react_import();
|
|
|
310
320
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
311
321
|
function BulletList() {
|
|
312
322
|
const { editor, editorState } = useControlContext();
|
|
323
|
+
const bulletListLabel = useMessage("field-richtext-list-bullet");
|
|
313
324
|
return /* @__PURE__ */ jsx13(
|
|
314
325
|
Control,
|
|
315
326
|
{
|
|
@@ -320,7 +331,7 @@ function BulletList() {
|
|
|
320
331
|
},
|
|
321
332
|
disabled: !(editorState == null ? void 0 : editorState.canBulletList),
|
|
322
333
|
active: editorState == null ? void 0 : editorState.isBulletList,
|
|
323
|
-
title:
|
|
334
|
+
title: bulletListLabel
|
|
324
335
|
}
|
|
325
336
|
);
|
|
326
337
|
}
|
|
@@ -330,6 +341,7 @@ init_react_import();
|
|
|
330
341
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
331
342
|
function OrderedList() {
|
|
332
343
|
const { editor, editorState } = useControlContext();
|
|
344
|
+
const orderedListLabel = useMessage("field-richtext-list-ordered");
|
|
333
345
|
return /* @__PURE__ */ jsx14(
|
|
334
346
|
Control,
|
|
335
347
|
{
|
|
@@ -340,7 +352,7 @@ function OrderedList() {
|
|
|
340
352
|
},
|
|
341
353
|
disabled: !(editorState == null ? void 0 : editorState.canOrderedList),
|
|
342
354
|
active: editorState == null ? void 0 : editorState.isOrderedList,
|
|
343
|
-
title:
|
|
355
|
+
title: orderedListLabel
|
|
344
356
|
}
|
|
345
357
|
);
|
|
346
358
|
}
|
|
@@ -350,6 +362,7 @@ init_react_import();
|
|
|
350
362
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
351
363
|
function CodeBlock() {
|
|
352
364
|
const { editor, editorState } = useControlContext();
|
|
365
|
+
const codeBlockLabel = useMessage("field-richtext-code-block");
|
|
353
366
|
return /* @__PURE__ */ jsx15(
|
|
354
367
|
Control,
|
|
355
368
|
{
|
|
@@ -360,7 +373,7 @@ function CodeBlock() {
|
|
|
360
373
|
},
|
|
361
374
|
disabled: !(editorState == null ? void 0 : editorState.canCodeBlock),
|
|
362
375
|
active: editorState == null ? void 0 : editorState.isCodeBlock,
|
|
363
|
-
title:
|
|
376
|
+
title: codeBlockLabel
|
|
364
377
|
}
|
|
365
378
|
);
|
|
366
379
|
}
|
|
@@ -370,6 +383,7 @@ init_react_import();
|
|
|
370
383
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
371
384
|
function Blockquote() {
|
|
372
385
|
const { editor, editorState } = useControlContext();
|
|
386
|
+
const blockquoteLabel = useMessage("field-richtext-blockquote");
|
|
373
387
|
return /* @__PURE__ */ jsx16(
|
|
374
388
|
Control,
|
|
375
389
|
{
|
|
@@ -380,7 +394,7 @@ function Blockquote() {
|
|
|
380
394
|
},
|
|
381
395
|
disabled: !(editorState == null ? void 0 : editorState.canBlockquote),
|
|
382
396
|
active: editorState == null ? void 0 : editorState.isBlockquote,
|
|
383
|
-
title:
|
|
397
|
+
title: blockquoteLabel
|
|
384
398
|
}
|
|
385
399
|
);
|
|
386
400
|
}
|
|
@@ -390,6 +404,7 @@ init_react_import();
|
|
|
390
404
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
391
405
|
function HorizontalRule() {
|
|
392
406
|
const { editor, editorState } = useControlContext();
|
|
407
|
+
const horizontalRuleLabel = useMessage("field-richtext-horizontalrule");
|
|
393
408
|
return /* @__PURE__ */ jsx17(
|
|
394
409
|
Control,
|
|
395
410
|
{
|
|
@@ -399,7 +414,7 @@ function HorizontalRule() {
|
|
|
399
414
|
editor == null ? void 0 : editor.chain().focus().setHorizontalRule().run();
|
|
400
415
|
},
|
|
401
416
|
disabled: !(editorState == null ? void 0 : editorState.canHorizontalRule),
|
|
402
|
-
title:
|
|
417
|
+
title: horizontalRuleLabel
|
|
403
418
|
}
|
|
404
419
|
);
|
|
405
420
|
}
|
|
@@ -430,7 +445,7 @@ function HeadingSelectFallback() {
|
|
|
430
445
|
// components/RichTextMenu/controls/HeadingSelect/index.tsx
|
|
431
446
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
432
447
|
var HeadingSelectLoaded = lazy2(
|
|
433
|
-
() => import("./loaded-
|
|
448
|
+
() => import("./loaded-VBJBTUSI.mjs").then((m) => ({
|
|
434
449
|
default: m.HeadingSelectLoaded
|
|
435
450
|
}))
|
|
436
451
|
);
|
|
@@ -462,7 +477,7 @@ function ListSelectFallback() {
|
|
|
462
477
|
// components/RichTextMenu/controls/ListSelect/index.tsx
|
|
463
478
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
464
479
|
var ListSelectLoaded = lazy3(
|
|
465
|
-
() => import("./loaded-
|
|
480
|
+
() => import("./loaded-LM723CWI.mjs").then((m) => ({
|
|
466
481
|
default: m.ListSelectLoaded
|
|
467
482
|
}))
|
|
468
483
|
);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
defaultAppState,
|
|
6
6
|
resolveComponentData
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NPAYGEG5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
get_class_name_factory_default
|
|
10
10
|
} from "./chunk-Y2EFNT5P.mjs";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
toComponent,
|
|
15
15
|
walkAppState,
|
|
16
16
|
walkTree
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QHQD3BMI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__async,
|
|
20
20
|
__objRest,
|