@jvs-milkdown/crepe 1.2.10 → 1.2.12
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/lib/cjs/feature/block-edit/index.js +1 -0
- package/lib/cjs/feature/block-edit/index.js.map +1 -1
- package/lib/cjs/feature/toolbar/index.js +5 -1
- package/lib/cjs/feature/toolbar/index.js.map +1 -1
- package/lib/cjs/index.js +91 -85
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/feature/block-edit/index.js +1 -0
- package/lib/esm/feature/block-edit/index.js.map +1 -1
- package/lib/esm/feature/toolbar/index.js +5 -1
- package/lib/esm/feature/toolbar/index.js.map +1 -1
- package/lib/esm/index.js +152 -146
- package/lib/esm/index.js.map +1 -1
- package/lib/theme/common/block-edit.css +2 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/feature/attachment/view/components/attachment-block.d.ts +1 -1
- package/lib/types/feature/attachment/view/components/attachment-block.d.ts.map +1 -1
- package/lib/types/feature/block-edit/handle/component.d.ts +17 -1
- package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -1
- package/lib/types/feature/block-edit/menu/component.d.ts +13 -1
- package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/component.d.ts +13 -1
- package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/document-header.d.ts +21 -1
- package/lib/types/feature/fixed-toolbar/document-header.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/menu-bar.d.ts +21 -1
- package/lib/types/feature/fixed-toolbar/menu-bar.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/outline-panel.d.ts +12 -1
- package/lib/types/feature/fixed-toolbar/outline-panel.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/shortcut-help-modal.d.ts +8 -1
- package/lib/types/feature/fixed-toolbar/shortcut-help-modal.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts +20 -2
- package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts.map +1 -1
- package/lib/types/feature/latex/inline-tooltip/component.d.ts +12 -1
- package/lib/types/feature/latex/inline-tooltip/component.d.ts.map +1 -1
- package/lib/types/feature/toolbar/component.d.ts +14 -1
- package/lib/types/feature/toolbar/component.d.ts.map +1 -1
- package/package.json +12 -5
- package/src/feature/attachment/view/components/attachment-block.tsx +1 -1
- package/src/feature/block-edit/menu/index.ts +1 -0
- package/src/feature/fixed-toolbar/component.tsx +1 -1
- package/src/feature/fixed-toolbar/document-header.tsx +5 -0
- package/src/feature/fixed-toolbar/menu-bar.tsx +1 -1
- package/src/feature/fixed-toolbar/outline-panel.tsx +1 -1
- package/src/feature/toolbar/component.tsx +5 -1
- package/src/theme/common/block-edit.css +2 -1
package/lib/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { languages } from '@codemirror/language-data';
|
|
|
3
3
|
import { oneDark } from '@codemirror/theme-one-dark';
|
|
4
4
|
import { createSlice } from '@jvs-milkdown/kit/ctx';
|
|
5
5
|
import { $ctx, $nodeSchema, $view, $remark, $markAttr, $markSchema, $command, $prose, $useKeymap, $inputRule, getMarkdown } from '@jvs-milkdown/kit/utils';
|
|
6
|
-
import { defineComponent, shallowRef, ref, computed, createApp, watchEffect, watch, onUnmounted,
|
|
6
|
+
import { defineComponent, shallowRef, ref, computed, h, createApp, watchEffect, watch, onUnmounted, Fragment, reactive, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
|
7
7
|
import { Icon } from '@jvs-milkdown/kit/component';
|
|
8
8
|
import { blockConfig, block, BlockProvider } from '@jvs-milkdown/kit/plugin/block';
|
|
9
9
|
import { commandsCtx, editorViewCtx, editorCtx, EditorStatus, schemaCtx, editorViewOptionsCtx, Editor, rootCtx, defaultValueCtx } from '@jvs-milkdown/kit/core';
|
|
@@ -2481,7 +2481,7 @@ function getGroups$1(filter, config, ctx) {
|
|
|
2481
2481
|
};
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
2484
|
-
keepAlive(h
|
|
2484
|
+
keepAlive(h);
|
|
2485
2485
|
const Menu = defineComponent({
|
|
2486
2486
|
props: {
|
|
2487
2487
|
ctx: {
|
|
@@ -2827,7 +2827,7 @@ const Menu = defineComponent({
|
|
|
2827
2827
|
const api = ctx.get(menuAPI.key);
|
|
2828
2828
|
const showListMenu = (api == null ? void 0 : api.getMode()) === "list" || !(api == null ? void 0 : api.isProgrammatic()) || filter.value !== "";
|
|
2829
2829
|
if (showListMenu) {
|
|
2830
|
-
return /* @__PURE__ */ h
|
|
2830
|
+
return /* @__PURE__ */ h("div", { ref: host, onPointerdown: (e) => e.preventDefault() }, /* @__PURE__ */ h("div", { class: "menu-groups", onPointermove: onPointerMove }, groupInfo.value.groups.map((group) => /* @__PURE__ */ h("div", { key: group.key, class: "menu-group" }, /* @__PURE__ */ h("h6", null, group.label), /* @__PURE__ */ h("ul", null, group.items.map((item) => /* @__PURE__ */ h(
|
|
2831
2831
|
"li",
|
|
2832
2832
|
{
|
|
2833
2833
|
key: item.key,
|
|
@@ -2870,9 +2870,9 @@ const Menu = defineComponent({
|
|
|
2870
2870
|
runByIndex(item.index);
|
|
2871
2871
|
}
|
|
2872
2872
|
},
|
|
2873
|
-
/* @__PURE__ */ h
|
|
2874
|
-
/* @__PURE__ */ h
|
|
2875
|
-
item.key === "table" ? /* @__PURE__ */ h
|
|
2873
|
+
/* @__PURE__ */ h(Icon, { icon: item.icon }),
|
|
2874
|
+
/* @__PURE__ */ h("span", { style: item.key === "table" ? { flex: 1 } : {} }, item.label),
|
|
2875
|
+
item.key === "table" ? /* @__PURE__ */ h(
|
|
2876
2876
|
"div",
|
|
2877
2877
|
{
|
|
2878
2878
|
style: {
|
|
@@ -2882,9 +2882,9 @@ const Menu = defineComponent({
|
|
|
2882
2882
|
transform: "rotate(-90deg)"
|
|
2883
2883
|
}
|
|
2884
2884
|
},
|
|
2885
|
-
/* @__PURE__ */ h
|
|
2885
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
2886
2886
|
) : null
|
|
2887
|
-
)))))), showTableMenu.value ? /* @__PURE__ */ h
|
|
2887
|
+
)))))), showTableMenu.value ? /* @__PURE__ */ h(
|
|
2888
2888
|
"div",
|
|
2889
2889
|
{
|
|
2890
2890
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -2907,7 +2907,7 @@ const Menu = defineComponent({
|
|
|
2907
2907
|
},
|
|
2908
2908
|
onPointerleave: handleTableLeave
|
|
2909
2909
|
},
|
|
2910
|
-
/* @__PURE__ */ h
|
|
2910
|
+
/* @__PURE__ */ h(
|
|
2911
2911
|
"div",
|
|
2912
2912
|
{
|
|
2913
2913
|
style: {
|
|
@@ -2919,7 +2919,7 @@ const Menu = defineComponent({
|
|
|
2919
2919
|
},
|
|
2920
2920
|
i18n(ctx, "customMenu.insertTable")
|
|
2921
2921
|
),
|
|
2922
|
-
/* @__PURE__ */ h
|
|
2922
|
+
/* @__PURE__ */ h(
|
|
2923
2923
|
"div",
|
|
2924
2924
|
{
|
|
2925
2925
|
style: {
|
|
@@ -2932,7 +2932,7 @@ const Menu = defineComponent({
|
|
|
2932
2932
|
Array.from({ length: 9 }).map(
|
|
2933
2933
|
(_, r) => Array.from({ length: 9 }).map((_2, c) => {
|
|
2934
2934
|
const isHovered = r < tableHoverIndices.value.r && c < tableHoverIndices.value.c;
|
|
2935
|
-
return /* @__PURE__ */ h
|
|
2935
|
+
return /* @__PURE__ */ h(
|
|
2936
2936
|
"div",
|
|
2937
2937
|
{
|
|
2938
2938
|
key: `cell-${r}-${c}`,
|
|
@@ -2961,7 +2961,7 @@ const Menu = defineComponent({
|
|
|
2961
2961
|
})
|
|
2962
2962
|
)
|
|
2963
2963
|
),
|
|
2964
|
-
tableHoverIndices.value.r > 0 ? /* @__PURE__ */ h
|
|
2964
|
+
tableHoverIndices.value.r > 0 ? /* @__PURE__ */ h(
|
|
2965
2965
|
"div",
|
|
2966
2966
|
{
|
|
2967
2967
|
style: {
|
|
@@ -2974,7 +2974,7 @@ const Menu = defineComponent({
|
|
|
2974
2974
|
tableHoverIndices.value.r,
|
|
2975
2975
|
" x ",
|
|
2976
2976
|
tableHoverIndices.value.c
|
|
2977
|
-
) : /* @__PURE__ */ h
|
|
2977
|
+
) : /* @__PURE__ */ h(
|
|
2978
2978
|
"div",
|
|
2979
2979
|
{
|
|
2980
2980
|
style: {
|
|
@@ -3144,7 +3144,7 @@ const Menu = defineComponent({
|
|
|
3144
3144
|
const renderGridBtn = (key) => {
|
|
3145
3145
|
const item = findItem(key);
|
|
3146
3146
|
if (!item) return null;
|
|
3147
|
-
return /* @__PURE__ */ h
|
|
3147
|
+
return /* @__PURE__ */ h(
|
|
3148
3148
|
"div",
|
|
3149
3149
|
{
|
|
3150
3150
|
title: item.label,
|
|
@@ -3165,11 +3165,11 @@ const Menu = defineComponent({
|
|
|
3165
3165
|
},
|
|
3166
3166
|
"data-index": item.index
|
|
3167
3167
|
},
|
|
3168
|
-
/* @__PURE__ */ h
|
|
3168
|
+
/* @__PURE__ */ h(Icon, { icon: item.icon })
|
|
3169
3169
|
);
|
|
3170
3170
|
};
|
|
3171
3171
|
const renderCustomRow = (iconHtml, label, hasArrow, onPointerEnter, onPointerLeave, onClick) => {
|
|
3172
|
-
return /* @__PURE__ */ h
|
|
3172
|
+
return /* @__PURE__ */ h(
|
|
3173
3173
|
"div",
|
|
3174
3174
|
{
|
|
3175
3175
|
class: "custom-menu-row",
|
|
@@ -3185,12 +3185,12 @@ const Menu = defineComponent({
|
|
|
3185
3185
|
onClick == null ? void 0 : onClick();
|
|
3186
3186
|
}
|
|
3187
3187
|
},
|
|
3188
|
-
/* @__PURE__ */ h
|
|
3189
|
-
hasArrow ? /* @__PURE__ */ h
|
|
3188
|
+
/* @__PURE__ */ h("div", { class: "custom-menu-row-left" }, /* @__PURE__ */ h(Icon, { icon: iconHtml }), /* @__PURE__ */ h("span", null, label)),
|
|
3189
|
+
hasArrow ? /* @__PURE__ */ h(Icon, { icon: chevronDownIcon }) : null
|
|
3190
3190
|
);
|
|
3191
3191
|
};
|
|
3192
3192
|
const renderSubMenuItem = (iconHtml, label, isActive, onClick, disabled = false) => {
|
|
3193
|
-
return /* @__PURE__ */ h
|
|
3193
|
+
return /* @__PURE__ */ h(
|
|
3194
3194
|
"div",
|
|
3195
3195
|
{
|
|
3196
3196
|
class: ["custom-menu-row", disabled ? "disabled" : ""],
|
|
@@ -3208,7 +3208,7 @@ const Menu = defineComponent({
|
|
|
3208
3208
|
if (!disabled) onClick();
|
|
3209
3209
|
}
|
|
3210
3210
|
},
|
|
3211
|
-
/* @__PURE__ */ h
|
|
3211
|
+
/* @__PURE__ */ h("div", { class: "custom-menu-row-left" }, /* @__PURE__ */ h(Icon, { icon: iconHtml }), /* @__PURE__ */ h(
|
|
3212
3212
|
"span",
|
|
3213
3213
|
{
|
|
3214
3214
|
style: {
|
|
@@ -3217,18 +3217,18 @@ const Menu = defineComponent({
|
|
|
3217
3217
|
},
|
|
3218
3218
|
label
|
|
3219
3219
|
)),
|
|
3220
|
-
isActive ? /* @__PURE__ */ h
|
|
3220
|
+
isActive ? /* @__PURE__ */ h("span", { style: { color: "var(--crepe-color-primary)" } }, /* @__PURE__ */ h(Icon, { icon: confirmIcon })) : null
|
|
3221
3221
|
);
|
|
3222
3222
|
};
|
|
3223
|
-
return /* @__PURE__ */ h
|
|
3223
|
+
return /* @__PURE__ */ h(
|
|
3224
3224
|
"div",
|
|
3225
3225
|
{
|
|
3226
3226
|
ref: host,
|
|
3227
3227
|
onPointerdown: (e) => e.preventDefault(),
|
|
3228
3228
|
class: "custom-block-menu"
|
|
3229
3229
|
},
|
|
3230
|
-
!isMedia ? /* @__PURE__ */ h
|
|
3231
|
-
showAlign ? /* @__PURE__ */ h
|
|
3230
|
+
!isMedia ? /* @__PURE__ */ h("div", { class: "custom-grid-container" }, gridRows.map((rowKeys, rIndex) => /* @__PURE__ */ h("div", { class: "custom-grid-row", key: "row-" + rIndex }, rowKeys.map(renderGridBtn)))) : null,
|
|
3231
|
+
showAlign ? /* @__PURE__ */ h("div", { class: "custom-divider" }) : null,
|
|
3232
3232
|
showAlign && renderCustomRow(
|
|
3233
3233
|
alignLeftIcon,
|
|
3234
3234
|
i18n(ctx, "customMenu.indentAndAlign"),
|
|
@@ -3236,7 +3236,7 @@ const Menu = defineComponent({
|
|
|
3236
3236
|
handleIndentAlignEnter,
|
|
3237
3237
|
handleIndentAlignLeave
|
|
3238
3238
|
),
|
|
3239
|
-
showIndentAlignMenu.value ? /* @__PURE__ */ h
|
|
3239
|
+
showIndentAlignMenu.value ? /* @__PURE__ */ h(
|
|
3240
3240
|
"div",
|
|
3241
3241
|
{
|
|
3242
3242
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -3273,7 +3273,7 @@ const Menu = defineComponent({
|
|
|
3273
3273
|
currentAlign === "right",
|
|
3274
3274
|
() => setAlign("right")
|
|
3275
3275
|
),
|
|
3276
|
-
/* @__PURE__ */ h
|
|
3276
|
+
/* @__PURE__ */ h("div", { class: "custom-divider" }),
|
|
3277
3277
|
renderSubMenuItem(
|
|
3278
3278
|
indentIncreaseIcon,
|
|
3279
3279
|
i18n(ctx, "customMenu.increaseIndent"),
|
|
@@ -3295,7 +3295,7 @@ const Menu = defineComponent({
|
|
|
3295
3295
|
handleColorEnter,
|
|
3296
3296
|
handleColorLeave
|
|
3297
3297
|
),
|
|
3298
|
-
showColorMenu.value ? /* @__PURE__ */ h
|
|
3298
|
+
showColorMenu.value ? /* @__PURE__ */ h(
|
|
3299
3299
|
"div",
|
|
3300
3300
|
{
|
|
3301
3301
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -3319,7 +3319,7 @@ const Menu = defineComponent({
|
|
|
3319
3319
|
},
|
|
3320
3320
|
onPointerleave: handleColorLeave
|
|
3321
3321
|
},
|
|
3322
|
-
/* @__PURE__ */ h
|
|
3322
|
+
/* @__PURE__ */ h(
|
|
3323
3323
|
"div",
|
|
3324
3324
|
{
|
|
3325
3325
|
style: {
|
|
@@ -3330,7 +3330,7 @@ const Menu = defineComponent({
|
|
|
3330
3330
|
},
|
|
3331
3331
|
i18n(ctx, "customMenu.textColor")
|
|
3332
3332
|
),
|
|
3333
|
-
/* @__PURE__ */ h
|
|
3333
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: "4px", flexWrap: "wrap" } }, [
|
|
3334
3334
|
"#000000",
|
|
3335
3335
|
"#8C8C8C",
|
|
3336
3336
|
"#F5222D",
|
|
@@ -3339,7 +3339,7 @@ const Menu = defineComponent({
|
|
|
3339
3339
|
"#52C41A",
|
|
3340
3340
|
"#1677FF",
|
|
3341
3341
|
"#722ED1"
|
|
3342
|
-
].map((color) => /* @__PURE__ */ h
|
|
3342
|
+
].map((color) => /* @__PURE__ */ h(
|
|
3343
3343
|
"div",
|
|
3344
3344
|
{
|
|
3345
3345
|
key: color,
|
|
@@ -3369,7 +3369,7 @@ const Menu = defineComponent({
|
|
|
3369
3369
|
},
|
|
3370
3370
|
"A"
|
|
3371
3371
|
))),
|
|
3372
|
-
/* @__PURE__ */ h
|
|
3372
|
+
/* @__PURE__ */ h(
|
|
3373
3373
|
"div",
|
|
3374
3374
|
{
|
|
3375
3375
|
style: {
|
|
@@ -3381,7 +3381,7 @@ const Menu = defineComponent({
|
|
|
3381
3381
|
},
|
|
3382
3382
|
i18n(ctx, "customMenu.bgColor")
|
|
3383
3383
|
),
|
|
3384
|
-
/* @__PURE__ */ h
|
|
3384
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: "4px", flexWrap: "wrap" } }, [
|
|
3385
3385
|
"transparent",
|
|
3386
3386
|
"#F5F5F5",
|
|
3387
3387
|
"#FFCCC7",
|
|
@@ -3390,7 +3390,7 @@ const Menu = defineComponent({
|
|
|
3390
3390
|
"#D9F7BE",
|
|
3391
3391
|
"#D6E4FF",
|
|
3392
3392
|
"#EFDBFF"
|
|
3393
|
-
].map((color) => /* @__PURE__ */ h
|
|
3393
|
+
].map((color) => /* @__PURE__ */ h(
|
|
3394
3394
|
"div",
|
|
3395
3395
|
{
|
|
3396
3396
|
key: color,
|
|
@@ -3414,7 +3414,7 @@ const Menu = defineComponent({
|
|
|
3414
3414
|
overflow: "hidden"
|
|
3415
3415
|
}
|
|
3416
3416
|
},
|
|
3417
|
-
color === "transparent" ? /* @__PURE__ */ h
|
|
3417
|
+
color === "transparent" ? /* @__PURE__ */ h(
|
|
3418
3418
|
"div",
|
|
3419
3419
|
{
|
|
3420
3420
|
style: {
|
|
@@ -3438,7 +3438,7 @@ const Menu = defineComponent({
|
|
|
3438
3438
|
"#52C41A",
|
|
3439
3439
|
"#1677FF",
|
|
3440
3440
|
"#722ED1"
|
|
3441
|
-
].map((color) => /* @__PURE__ */ h
|
|
3441
|
+
].map((color) => /* @__PURE__ */ h(
|
|
3442
3442
|
"div",
|
|
3443
3443
|
{
|
|
3444
3444
|
key: color,
|
|
@@ -3461,7 +3461,7 @@ const Menu = defineComponent({
|
|
|
3461
3461
|
}
|
|
3462
3462
|
}
|
|
3463
3463
|
))),
|
|
3464
|
-
/* @__PURE__ */ h
|
|
3464
|
+
/* @__PURE__ */ h(
|
|
3465
3465
|
"button",
|
|
3466
3466
|
{
|
|
3467
3467
|
onPointerdown: (e) => {
|
|
@@ -3488,7 +3488,7 @@ const Menu = defineComponent({
|
|
|
3488
3488
|
i18n(ctx, "customMenu.restoreDefault")
|
|
3489
3489
|
)
|
|
3490
3490
|
) : null,
|
|
3491
|
-
!isMedia ? /* @__PURE__ */ h
|
|
3491
|
+
!isMedia ? /* @__PURE__ */ h("div", { class: "custom-divider" }) : null,
|
|
3492
3492
|
renderCustomRow(
|
|
3493
3493
|
clearIcon,
|
|
3494
3494
|
i18n(ctx, "customMenu.cut"),
|
|
@@ -3513,7 +3513,7 @@ const Menu = defineComponent({
|
|
|
3513
3513
|
void 0,
|
|
3514
3514
|
applyDelete
|
|
3515
3515
|
),
|
|
3516
|
-
/* @__PURE__ */ h
|
|
3516
|
+
/* @__PURE__ */ h("div", { class: "custom-divider" }),
|
|
3517
3517
|
renderCustomRow(
|
|
3518
3518
|
plusIcon,
|
|
3519
3519
|
i18n(ctx, "customMenu.addBelow"),
|
|
@@ -3521,7 +3521,7 @@ const Menu = defineComponent({
|
|
|
3521
3521
|
handleAddBelowEnter,
|
|
3522
3522
|
handleAddBelowLeave
|
|
3523
3523
|
),
|
|
3524
|
-
showAddBelowMenu.value ? /* @__PURE__ */ h
|
|
3524
|
+
showAddBelowMenu.value ? /* @__PURE__ */ h(
|
|
3525
3525
|
"div",
|
|
3526
3526
|
{
|
|
3527
3527
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -3541,14 +3541,14 @@ const Menu = defineComponent({
|
|
|
3541
3541
|
},
|
|
3542
3542
|
onPointerleave: handleAddBelowLeave
|
|
3543
3543
|
},
|
|
3544
|
-
/* @__PURE__ */ h
|
|
3544
|
+
/* @__PURE__ */ h(
|
|
3545
3545
|
"div",
|
|
3546
3546
|
{
|
|
3547
3547
|
class: "menu-groups",
|
|
3548
3548
|
onPointermove: onPointerMove,
|
|
3549
3549
|
style: { maxHeight: "300px", overflowY: "auto" }
|
|
3550
3550
|
},
|
|
3551
|
-
groupInfo.value.groups.map((group) => /* @__PURE__ */ h
|
|
3551
|
+
groupInfo.value.groups.map((group) => /* @__PURE__ */ h("div", { key: group.key, class: "menu-group" }, /* @__PURE__ */ h("h6", null, group.label), /* @__PURE__ */ h("ul", null, group.items.map((item) => /* @__PURE__ */ h(
|
|
3552
3552
|
"li",
|
|
3553
3553
|
{
|
|
3554
3554
|
key: item.key,
|
|
@@ -3575,8 +3575,8 @@ const Menu = defineComponent({
|
|
|
3575
3575
|
runByIndexForAddBelow(item.index);
|
|
3576
3576
|
}
|
|
3577
3577
|
},
|
|
3578
|
-
/* @__PURE__ */ h
|
|
3579
|
-
/* @__PURE__ */ h
|
|
3578
|
+
/* @__PURE__ */ h(Icon, { icon: item.icon }),
|
|
3579
|
+
/* @__PURE__ */ h("span", null, item.label)
|
|
3580
3580
|
)))))
|
|
3581
3581
|
)
|
|
3582
3582
|
) : null
|
|
@@ -3675,6 +3675,7 @@ class MenuView {
|
|
|
3675
3675
|
this.hide = () => {
|
|
3676
3676
|
__privateSet$5(this, _programmaticallyPos, null);
|
|
3677
3677
|
__privateSet$5(this, _mode, null);
|
|
3678
|
+
__privateGet$5(this, _content$4).removeAttribute("data-mode");
|
|
3678
3679
|
this.cancelHide();
|
|
3679
3680
|
__privateGet$5(this, _slashProvider).hide();
|
|
3680
3681
|
};
|
|
@@ -3823,7 +3824,7 @@ function getBlockKey(node) {
|
|
|
3823
3824
|
}
|
|
3824
3825
|
}
|
|
3825
3826
|
|
|
3826
|
-
keepAlive(h
|
|
3827
|
+
keepAlive(h, Fragment);
|
|
3827
3828
|
const BlockHandle = defineComponent({
|
|
3828
3829
|
props: {
|
|
3829
3830
|
onAdd: {
|
|
@@ -3871,7 +3872,7 @@ const BlockHandle = defineComponent({
|
|
|
3871
3872
|
const addButton = ref();
|
|
3872
3873
|
const menuButton = ref();
|
|
3873
3874
|
return () => {
|
|
3874
|
-
return /* @__PURE__ */ h
|
|
3875
|
+
return /* @__PURE__ */ h(Fragment, null, /* @__PURE__ */ h(
|
|
3875
3876
|
"div",
|
|
3876
3877
|
{
|
|
3877
3878
|
ref: addButton,
|
|
@@ -3897,8 +3898,8 @@ const BlockHandle = defineComponent({
|
|
|
3897
3898
|
props.onAdd(addButton.value);
|
|
3898
3899
|
}
|
|
3899
3900
|
},
|
|
3900
|
-
/* @__PURE__ */ h
|
|
3901
|
-
), /* @__PURE__ */ h
|
|
3901
|
+
/* @__PURE__ */ h(Icon, { icon: props.addIcon })
|
|
3902
|
+
), /* @__PURE__ */ h(
|
|
3902
3903
|
"div",
|
|
3903
3904
|
{
|
|
3904
3905
|
ref: menuButton,
|
|
@@ -3916,14 +3917,14 @@ const BlockHandle = defineComponent({
|
|
|
3916
3917
|
props.onLeaveMenu();
|
|
3917
3918
|
}
|
|
3918
3919
|
},
|
|
3919
|
-
/* @__PURE__ */ h
|
|
3920
|
-
), /* @__PURE__ */ h
|
|
3920
|
+
/* @__PURE__ */ h(Icon, { icon: props.state.icon })
|
|
3921
|
+
), /* @__PURE__ */ h("div", { class: "divider" }), /* @__PURE__ */ h(
|
|
3921
3922
|
"div",
|
|
3922
3923
|
{
|
|
3923
3924
|
class: "operation-item drag-item",
|
|
3924
3925
|
title: i18n(props.ctx, "handle.drag")
|
|
3925
3926
|
},
|
|
3926
|
-
/* @__PURE__ */ h
|
|
3927
|
+
/* @__PURE__ */ h(Icon, { icon: dragHandleIcon })
|
|
3927
3928
|
));
|
|
3928
3929
|
};
|
|
3929
3930
|
}
|
|
@@ -5324,7 +5325,7 @@ const activeIconMap = {
|
|
|
5324
5325
|
[dividerIcon]: dividerIconActive
|
|
5325
5326
|
// [highLineCodeIcon]: highLineCodeIconActive,
|
|
5326
5327
|
};
|
|
5327
|
-
keepAlive(h
|
|
5328
|
+
keepAlive(h, Fragment);
|
|
5328
5329
|
const formatPainterStates = /* @__PURE__ */ new WeakMap();
|
|
5329
5330
|
const formatPainterHandlers = /* @__PURE__ */ new WeakMap();
|
|
5330
5331
|
const formatPainterIgnoreNext = /* @__PURE__ */ new WeakMap();
|
|
@@ -6128,7 +6129,7 @@ const Toolbar = defineComponent({
|
|
|
6128
6129
|
showFontSizeMenu.value = false;
|
|
6129
6130
|
};
|
|
6130
6131
|
const renderSubMenuItem = (iconHtml, label, isActive, onClick2, disabled = false) => {
|
|
6131
|
-
return /* @__PURE__ */ h
|
|
6132
|
+
return /* @__PURE__ */ h(
|
|
6132
6133
|
"div",
|
|
6133
6134
|
{
|
|
6134
6135
|
class: ["custom-menu-row", disabled ? "disabled" : ""],
|
|
@@ -6160,13 +6161,13 @@ const Toolbar = defineComponent({
|
|
|
6160
6161
|
e.currentTarget.style.backgroundColor = "transparent";
|
|
6161
6162
|
}
|
|
6162
6163
|
},
|
|
6163
|
-
/* @__PURE__ */ h
|
|
6164
|
+
/* @__PURE__ */ h(
|
|
6164
6165
|
"div",
|
|
6165
6166
|
{
|
|
6166
6167
|
class: "custom-menu-row-left",
|
|
6167
6168
|
style: { display: "flex", alignItems: "center", gap: "8px" }
|
|
6168
6169
|
},
|
|
6169
|
-
/* @__PURE__ */ h
|
|
6170
|
+
/* @__PURE__ */ h(
|
|
6170
6171
|
"span",
|
|
6171
6172
|
{
|
|
6172
6173
|
style: {
|
|
@@ -6178,7 +6179,7 @@ const Toolbar = defineComponent({
|
|
|
6178
6179
|
innerHTML: iconHtml
|
|
6179
6180
|
}
|
|
6180
6181
|
),
|
|
6181
|
-
/* @__PURE__ */ h
|
|
6182
|
+
/* @__PURE__ */ h(
|
|
6182
6183
|
"span",
|
|
6183
6184
|
{
|
|
6184
6185
|
style: {
|
|
@@ -6189,7 +6190,7 @@ const Toolbar = defineComponent({
|
|
|
6189
6190
|
label
|
|
6190
6191
|
)
|
|
6191
6192
|
),
|
|
6192
|
-
isActive ? /* @__PURE__ */ h
|
|
6193
|
+
isActive ? /* @__PURE__ */ h(
|
|
6193
6194
|
"span",
|
|
6194
6195
|
{
|
|
6195
6196
|
style: {
|
|
@@ -6198,7 +6199,7 @@ const Toolbar = defineComponent({
|
|
|
6198
6199
|
color: "var(--crepe-color-primary)"
|
|
6199
6200
|
}
|
|
6200
6201
|
},
|
|
6201
|
-
/* @__PURE__ */ h
|
|
6202
|
+
/* @__PURE__ */ h(Icon, { icon: confirmIcon })
|
|
6202
6203
|
) : null
|
|
6203
6204
|
);
|
|
6204
6205
|
};
|
|
@@ -6218,11 +6219,15 @@ const Toolbar = defineComponent({
|
|
|
6218
6219
|
}
|
|
6219
6220
|
});
|
|
6220
6221
|
const nonHeadingGroups = toolbarGroupInfo.value.filter(
|
|
6221
|
-
(group) =>
|
|
6222
|
+
(group) => {
|
|
6223
|
+
if (group.key === "heading") return false;
|
|
6224
|
+
if (props.isFixed && group.key === "function") return false;
|
|
6225
|
+
return true;
|
|
6226
|
+
}
|
|
6222
6227
|
);
|
|
6223
6228
|
const isSectionOverflowed = (idx) => idx >= overflowVisibleCount.value;
|
|
6224
6229
|
const hasOverflow = overflowVisibleCount.value < totalSectionCount.value;
|
|
6225
|
-
return /* @__PURE__ */ h
|
|
6230
|
+
return /* @__PURE__ */ h(
|
|
6226
6231
|
"div",
|
|
6227
6232
|
{
|
|
6228
6233
|
ref: toolbarContainerRef,
|
|
@@ -6233,7 +6238,7 @@ const Toolbar = defineComponent({
|
|
|
6233
6238
|
overflow: "hidden"
|
|
6234
6239
|
}
|
|
6235
6240
|
},
|
|
6236
|
-
/* @__PURE__ */ h
|
|
6241
|
+
/* @__PURE__ */ h(
|
|
6237
6242
|
"div",
|
|
6238
6243
|
{
|
|
6239
6244
|
class: "toolbar-item",
|
|
@@ -6247,22 +6252,22 @@ const Toolbar = defineComponent({
|
|
|
6247
6252
|
flexShrink: 0
|
|
6248
6253
|
}
|
|
6249
6254
|
},
|
|
6250
|
-
/* @__PURE__ */ h
|
|
6255
|
+
/* @__PURE__ */ h(
|
|
6251
6256
|
"span",
|
|
6252
6257
|
{
|
|
6253
6258
|
style: { display: "inline-flex", alignItems: "center" },
|
|
6254
6259
|
innerHTML: activeBlockItem.value || textIcon
|
|
6255
6260
|
}
|
|
6256
6261
|
),
|
|
6257
|
-
/* @__PURE__ */ h
|
|
6262
|
+
/* @__PURE__ */ h(
|
|
6258
6263
|
"span",
|
|
6259
6264
|
{
|
|
6260
6265
|
style: { width: "20px", display: "flex", alignItems: "center" }
|
|
6261
6266
|
},
|
|
6262
|
-
/* @__PURE__ */ h
|
|
6267
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
6263
6268
|
)
|
|
6264
6269
|
),
|
|
6265
|
-
/* @__PURE__ */ h
|
|
6270
|
+
/* @__PURE__ */ h(
|
|
6266
6271
|
"div",
|
|
6267
6272
|
{
|
|
6268
6273
|
style: {
|
|
@@ -6271,7 +6276,7 @@ const Toolbar = defineComponent({
|
|
|
6271
6276
|
flexShrink: 0
|
|
6272
6277
|
}
|
|
6273
6278
|
},
|
|
6274
|
-
/* @__PURE__ */ h
|
|
6279
|
+
/* @__PURE__ */ h(
|
|
6275
6280
|
"button",
|
|
6276
6281
|
{
|
|
6277
6282
|
type: "button",
|
|
@@ -6292,7 +6297,7 @@ const Toolbar = defineComponent({
|
|
|
6292
6297
|
backgroundColor: formatPainterState.value ? "var(--crepe-color-selected, var(--crepe-color-hover))" : void 0
|
|
6293
6298
|
}
|
|
6294
6299
|
},
|
|
6295
|
-
/* @__PURE__ */ h
|
|
6300
|
+
/* @__PURE__ */ h(
|
|
6296
6301
|
"span",
|
|
6297
6302
|
{
|
|
6298
6303
|
style: {
|
|
@@ -6305,7 +6310,7 @@ const Toolbar = defineComponent({
|
|
|
6305
6310
|
)
|
|
6306
6311
|
)
|
|
6307
6312
|
),
|
|
6308
|
-
/* @__PURE__ */ h
|
|
6313
|
+
/* @__PURE__ */ h(
|
|
6309
6314
|
"div",
|
|
6310
6315
|
{
|
|
6311
6316
|
class: "divider",
|
|
@@ -6317,7 +6322,7 @@ const Toolbar = defineComponent({
|
|
|
6317
6322
|
}
|
|
6318
6323
|
}
|
|
6319
6324
|
),
|
|
6320
|
-
/* @__PURE__ */ h
|
|
6325
|
+
/* @__PURE__ */ h(
|
|
6321
6326
|
"div",
|
|
6322
6327
|
{
|
|
6323
6328
|
class: "toolbar-item custom-font-family-item",
|
|
@@ -6332,7 +6337,7 @@ const Toolbar = defineComponent({
|
|
|
6332
6337
|
flexShrink: 0
|
|
6333
6338
|
}
|
|
6334
6339
|
},
|
|
6335
|
-
/* @__PURE__ */ h
|
|
6340
|
+
/* @__PURE__ */ h(
|
|
6336
6341
|
"span",
|
|
6337
6342
|
{
|
|
6338
6343
|
style: {
|
|
@@ -6346,7 +6351,7 @@ const Toolbar = defineComponent({
|
|
|
6346
6351
|
},
|
|
6347
6352
|
currentFontState.value.fontFamily && currentFontState.value.fontFamily !== "mixed" ? currentFontState.value.fontFamily.split(",")[0].replace(/['"]/g, "") || (ctx ? i18n(ctx, "customMenu.fontDefault") : "\u9ED8\u8BA4") : ctx ? i18n(ctx, "customMenu.fontDefault") : "\u9ED8\u8BA4"
|
|
6348
6353
|
),
|
|
6349
|
-
/* @__PURE__ */ h
|
|
6354
|
+
/* @__PURE__ */ h(
|
|
6350
6355
|
"span",
|
|
6351
6356
|
{
|
|
6352
6357
|
style: {
|
|
@@ -6356,10 +6361,10 @@ const Toolbar = defineComponent({
|
|
|
6356
6361
|
marginLeft: "4px"
|
|
6357
6362
|
}
|
|
6358
6363
|
},
|
|
6359
|
-
/* @__PURE__ */ h
|
|
6364
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
6360
6365
|
)
|
|
6361
6366
|
),
|
|
6362
|
-
/* @__PURE__ */ h
|
|
6367
|
+
/* @__PURE__ */ h(
|
|
6363
6368
|
"div",
|
|
6364
6369
|
{
|
|
6365
6370
|
class: "toolbar-item custom-font-size-item",
|
|
@@ -6374,8 +6379,8 @@ const Toolbar = defineComponent({
|
|
|
6374
6379
|
flexShrink: 0
|
|
6375
6380
|
}
|
|
6376
6381
|
},
|
|
6377
|
-
/* @__PURE__ */ h
|
|
6378
|
-
/* @__PURE__ */ h
|
|
6382
|
+
/* @__PURE__ */ h("span", { style: { fontSize: "13px", color: "#363B4C" } }, currentFontState.value.fontSize && currentFontState.value.fontSize !== "mixed" ? currentFontState.value.fontSize : "16px"),
|
|
6383
|
+
/* @__PURE__ */ h(
|
|
6379
6384
|
"span",
|
|
6380
6385
|
{
|
|
6381
6386
|
style: {
|
|
@@ -6385,10 +6390,10 @@ const Toolbar = defineComponent({
|
|
|
6385
6390
|
marginLeft: "4px"
|
|
6386
6391
|
}
|
|
6387
6392
|
},
|
|
6388
|
-
/* @__PURE__ */ h
|
|
6393
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
6389
6394
|
)
|
|
6390
6395
|
),
|
|
6391
|
-
/* @__PURE__ */ h
|
|
6396
|
+
/* @__PURE__ */ h(
|
|
6392
6397
|
"div",
|
|
6393
6398
|
{
|
|
6394
6399
|
class: "divider",
|
|
@@ -6400,7 +6405,7 @@ const Toolbar = defineComponent({
|
|
|
6400
6405
|
}
|
|
6401
6406
|
}
|
|
6402
6407
|
),
|
|
6403
|
-
/* @__PURE__ */ h
|
|
6408
|
+
/* @__PURE__ */ h(
|
|
6404
6409
|
"div",
|
|
6405
6410
|
{
|
|
6406
6411
|
class: "toolbar-item",
|
|
@@ -6414,22 +6419,22 @@ const Toolbar = defineComponent({
|
|
|
6414
6419
|
flexShrink: 0
|
|
6415
6420
|
}
|
|
6416
6421
|
},
|
|
6417
|
-
/* @__PURE__ */ h
|
|
6422
|
+
/* @__PURE__ */ h(
|
|
6418
6423
|
"span",
|
|
6419
6424
|
{
|
|
6420
6425
|
style: { display: "inline-flex", alignItems: "center" },
|
|
6421
6426
|
innerHTML: currentAlignIndent.value.align === "center" ? alignCenterIcon : currentAlignIndent.value.align === "right" ? alignRightIcon : alignLeftIcon
|
|
6422
6427
|
}
|
|
6423
6428
|
),
|
|
6424
|
-
/* @__PURE__ */ h
|
|
6429
|
+
/* @__PURE__ */ h(
|
|
6425
6430
|
"span",
|
|
6426
6431
|
{
|
|
6427
6432
|
style: { width: "20px", display: "flex", alignItems: "center" }
|
|
6428
6433
|
},
|
|
6429
|
-
/* @__PURE__ */ h
|
|
6434
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
6430
6435
|
)
|
|
6431
6436
|
),
|
|
6432
|
-
/* @__PURE__ */ h
|
|
6437
|
+
/* @__PURE__ */ h(
|
|
6433
6438
|
"div",
|
|
6434
6439
|
{
|
|
6435
6440
|
class: "toolbar-item",
|
|
@@ -6443,7 +6448,7 @@ const Toolbar = defineComponent({
|
|
|
6443
6448
|
flexShrink: 0
|
|
6444
6449
|
}
|
|
6445
6450
|
},
|
|
6446
|
-
/* @__PURE__ */ h
|
|
6451
|
+
/* @__PURE__ */ h(
|
|
6447
6452
|
"span",
|
|
6448
6453
|
{
|
|
6449
6454
|
class: "milkdown-icon",
|
|
@@ -6456,12 +6461,12 @@ const Toolbar = defineComponent({
|
|
|
6456
6461
|
}
|
|
6457
6462
|
}
|
|
6458
6463
|
),
|
|
6459
|
-
/* @__PURE__ */ h
|
|
6464
|
+
/* @__PURE__ */ h(
|
|
6460
6465
|
"span",
|
|
6461
6466
|
{
|
|
6462
6467
|
style: { width: "20px", display: "flex", alignItems: "center" }
|
|
6463
6468
|
},
|
|
6464
|
-
/* @__PURE__ */ h
|
|
6469
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
6465
6470
|
)
|
|
6466
6471
|
),
|
|
6467
6472
|
(() => {
|
|
@@ -6471,7 +6476,7 @@ const Toolbar = defineComponent({
|
|
|
6471
6476
|
const idx = sectionIdx;
|
|
6472
6477
|
sectionIdx++;
|
|
6473
6478
|
const isTable = item.icon === tableIcon;
|
|
6474
|
-
return /* @__PURE__ */ h
|
|
6479
|
+
return /* @__PURE__ */ h(
|
|
6475
6480
|
"div",
|
|
6476
6481
|
{
|
|
6477
6482
|
key: item.label,
|
|
@@ -6483,7 +6488,7 @@ const Toolbar = defineComponent({
|
|
|
6483
6488
|
onMouseenter: isTable ? handleTableEnter : void 0,
|
|
6484
6489
|
onMouseleave: isTable ? handleTableLeave : void 0
|
|
6485
6490
|
},
|
|
6486
|
-
/* @__PURE__ */ h
|
|
6491
|
+
/* @__PURE__ */ h(
|
|
6487
6492
|
"button",
|
|
6488
6493
|
{
|
|
6489
6494
|
type: "button",
|
|
@@ -6506,14 +6511,14 @@ const Toolbar = defineComponent({
|
|
|
6506
6511
|
justifyContent: "center"
|
|
6507
6512
|
}
|
|
6508
6513
|
},
|
|
6509
|
-
/* @__PURE__ */ h
|
|
6514
|
+
/* @__PURE__ */ h(
|
|
6510
6515
|
"span",
|
|
6511
6516
|
{
|
|
6512
6517
|
style: { display: "inline-flex", alignItems: "center" },
|
|
6513
6518
|
innerHTML: ctx && checkActive(item.active) ? activeIconMap[item.icon] || item.icon : item.icon
|
|
6514
6519
|
}
|
|
6515
6520
|
),
|
|
6516
|
-
isTable ? /* @__PURE__ */ h
|
|
6521
|
+
isTable ? /* @__PURE__ */ h(
|
|
6517
6522
|
"span",
|
|
6518
6523
|
{
|
|
6519
6524
|
style: {
|
|
@@ -6524,7 +6529,7 @@ const Toolbar = defineComponent({
|
|
|
6524
6529
|
opacity: 0.5
|
|
6525
6530
|
}
|
|
6526
6531
|
},
|
|
6527
|
-
/* @__PURE__ */ h
|
|
6532
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
6528
6533
|
) : null
|
|
6529
6534
|
)
|
|
6530
6535
|
);
|
|
@@ -6533,7 +6538,7 @@ const Toolbar = defineComponent({
|
|
|
6533
6538
|
if (groupIndex < nonHeadingGroups.length - 1 && group.items.length > 0) {
|
|
6534
6539
|
sectionIdx++;
|
|
6535
6540
|
}
|
|
6536
|
-
return /* @__PURE__ */ h
|
|
6541
|
+
return /* @__PURE__ */ h(Fragment, { key: group.key }, items, groupIndex < nonHeadingGroups.length - 1 && group.items.length > 0 ? /* @__PURE__ */ h(
|
|
6537
6542
|
"div",
|
|
6538
6543
|
{
|
|
6539
6544
|
class: "divider",
|
|
@@ -6545,7 +6550,7 @@ const Toolbar = defineComponent({
|
|
|
6545
6550
|
) : null);
|
|
6546
6551
|
});
|
|
6547
6552
|
})(),
|
|
6548
|
-
hasOverflow ? /* @__PURE__ */ h
|
|
6553
|
+
hasOverflow ? /* @__PURE__ */ h(
|
|
6549
6554
|
"div",
|
|
6550
6555
|
{
|
|
6551
6556
|
"data-overflow-button": "true",
|
|
@@ -6572,7 +6577,7 @@ const Toolbar = defineComponent({
|
|
|
6572
6577
|
showOverflowMenu.value = true;
|
|
6573
6578
|
}
|
|
6574
6579
|
},
|
|
6575
|
-
/* @__PURE__ */ h
|
|
6580
|
+
/* @__PURE__ */ h(
|
|
6576
6581
|
"span",
|
|
6577
6582
|
{
|
|
6578
6583
|
style: { display: "inline-flex", alignItems: "center" },
|
|
@@ -6580,7 +6585,7 @@ const Toolbar = defineComponent({
|
|
|
6580
6585
|
}
|
|
6581
6586
|
)
|
|
6582
6587
|
) : null,
|
|
6583
|
-
showBlockMenu.value ? /* @__PURE__ */ h
|
|
6588
|
+
showBlockMenu.value ? /* @__PURE__ */ h(
|
|
6584
6589
|
"div",
|
|
6585
6590
|
{
|
|
6586
6591
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -6605,7 +6610,7 @@ const Toolbar = defineComponent({
|
|
|
6605
6610
|
},
|
|
6606
6611
|
onMouseleave: handleBlockLeave
|
|
6607
6612
|
},
|
|
6608
|
-
/* @__PURE__ */ h
|
|
6613
|
+
/* @__PURE__ */ h(
|
|
6609
6614
|
"div",
|
|
6610
6615
|
{
|
|
6611
6616
|
style: {
|
|
@@ -6662,7 +6667,7 @@ const Toolbar = defineComponent({
|
|
|
6662
6667
|
);
|
|
6663
6668
|
})
|
|
6664
6669
|
) : null,
|
|
6665
|
-
showAlignMenu.value ? /* @__PURE__ */ h
|
|
6670
|
+
showAlignMenu.value ? /* @__PURE__ */ h(
|
|
6666
6671
|
"div",
|
|
6667
6672
|
{
|
|
6668
6673
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -6685,7 +6690,7 @@ const Toolbar = defineComponent({
|
|
|
6685
6690
|
},
|
|
6686
6691
|
onMouseleave: handleAlignLeave
|
|
6687
6692
|
},
|
|
6688
|
-
/* @__PURE__ */ h
|
|
6693
|
+
/* @__PURE__ */ h(
|
|
6689
6694
|
"div",
|
|
6690
6695
|
{
|
|
6691
6696
|
style: {
|
|
@@ -6716,7 +6721,7 @@ const Toolbar = defineComponent({
|
|
|
6716
6721
|
currentAlignIndent.value.align === "right",
|
|
6717
6722
|
() => setAlign("right")
|
|
6718
6723
|
),
|
|
6719
|
-
/* @__PURE__ */ h
|
|
6724
|
+
/* @__PURE__ */ h(
|
|
6720
6725
|
"div",
|
|
6721
6726
|
{
|
|
6722
6727
|
style: {
|
|
@@ -6738,7 +6743,7 @@ const Toolbar = defineComponent({
|
|
|
6738
6743
|
() => setIndent(-1),
|
|
6739
6744
|
currentAlignIndent.value.indent <= 0
|
|
6740
6745
|
),
|
|
6741
|
-
canMerge.value || canSplit.value ? /* @__PURE__ */ h
|
|
6746
|
+
canMerge.value || canSplit.value ? /* @__PURE__ */ h(Fragment, null, /* @__PURE__ */ h(
|
|
6742
6747
|
"div",
|
|
6743
6748
|
{
|
|
6744
6749
|
style: {
|
|
@@ -6758,7 +6763,7 @@ const Toolbar = defineComponent({
|
|
|
6758
6763
|
onSplitCell
|
|
6759
6764
|
)) : null
|
|
6760
6765
|
) : null,
|
|
6761
|
-
showColorMenu.value ? /* @__PURE__ */ h
|
|
6766
|
+
showColorMenu.value ? /* @__PURE__ */ h(
|
|
6762
6767
|
"div",
|
|
6763
6768
|
{
|
|
6764
6769
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -6782,7 +6787,7 @@ const Toolbar = defineComponent({
|
|
|
6782
6787
|
},
|
|
6783
6788
|
onMouseleave: handleColorLeave
|
|
6784
6789
|
},
|
|
6785
|
-
/* @__PURE__ */ h
|
|
6790
|
+
/* @__PURE__ */ h(
|
|
6786
6791
|
"div",
|
|
6787
6792
|
{
|
|
6788
6793
|
style: {
|
|
@@ -6795,7 +6800,7 @@ const Toolbar = defineComponent({
|
|
|
6795
6800
|
}
|
|
6796
6801
|
}
|
|
6797
6802
|
),
|
|
6798
|
-
/* @__PURE__ */ h
|
|
6803
|
+
/* @__PURE__ */ h(
|
|
6799
6804
|
"div",
|
|
6800
6805
|
{
|
|
6801
6806
|
style: {
|
|
@@ -6806,7 +6811,7 @@ const Toolbar = defineComponent({
|
|
|
6806
6811
|
},
|
|
6807
6812
|
ctx ? i18n(ctx, "customMenu.textColor") : "\u5B57\u4F53\u989C\u8272"
|
|
6808
6813
|
),
|
|
6809
|
-
/* @__PURE__ */ h
|
|
6814
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: "4px", flexWrap: "wrap" } }, [
|
|
6810
6815
|
"#000000",
|
|
6811
6816
|
"#8C8C8C",
|
|
6812
6817
|
"#F5222D",
|
|
@@ -6815,7 +6820,7 @@ const Toolbar = defineComponent({
|
|
|
6815
6820
|
"#52C41A",
|
|
6816
6821
|
"#1677FF",
|
|
6817
6822
|
"#722ED1"
|
|
6818
|
-
].map((color) => /* @__PURE__ */ h
|
|
6823
|
+
].map((color) => /* @__PURE__ */ h(
|
|
6819
6824
|
"div",
|
|
6820
6825
|
{
|
|
6821
6826
|
key: color,
|
|
@@ -6838,7 +6843,7 @@ const Toolbar = defineComponent({
|
|
|
6838
6843
|
},
|
|
6839
6844
|
"A"
|
|
6840
6845
|
))),
|
|
6841
|
-
/* @__PURE__ */ h
|
|
6846
|
+
/* @__PURE__ */ h(
|
|
6842
6847
|
"div",
|
|
6843
6848
|
{
|
|
6844
6849
|
style: {
|
|
@@ -6850,7 +6855,7 @@ const Toolbar = defineComponent({
|
|
|
6850
6855
|
},
|
|
6851
6856
|
ctx ? i18n(ctx, "customMenu.bgColor") : "\u80CC\u666F\u989C\u8272"
|
|
6852
6857
|
),
|
|
6853
|
-
/* @__PURE__ */ h
|
|
6858
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: "4px", flexWrap: "wrap" } }, [
|
|
6854
6859
|
"transparent",
|
|
6855
6860
|
"#F5F5F5",
|
|
6856
6861
|
"#FFCCC7",
|
|
@@ -6859,7 +6864,7 @@ const Toolbar = defineComponent({
|
|
|
6859
6864
|
"#D9F7BE",
|
|
6860
6865
|
"#D6E4FF",
|
|
6861
6866
|
"#EFDBFF"
|
|
6862
|
-
].map((color) => /* @__PURE__ */ h
|
|
6867
|
+
].map((color) => /* @__PURE__ */ h(
|
|
6863
6868
|
"div",
|
|
6864
6869
|
{
|
|
6865
6870
|
key: color,
|
|
@@ -6876,7 +6881,7 @@ const Toolbar = defineComponent({
|
|
|
6876
6881
|
overflow: "hidden"
|
|
6877
6882
|
}
|
|
6878
6883
|
},
|
|
6879
|
-
color === "transparent" ? /* @__PURE__ */ h
|
|
6884
|
+
color === "transparent" ? /* @__PURE__ */ h(
|
|
6880
6885
|
"div",
|
|
6881
6886
|
{
|
|
6882
6887
|
style: {
|
|
@@ -6900,7 +6905,7 @@ const Toolbar = defineComponent({
|
|
|
6900
6905
|
"#52C41A",
|
|
6901
6906
|
"#1677FF",
|
|
6902
6907
|
"#722ED1"
|
|
6903
|
-
].map((color) => /* @__PURE__ */ h
|
|
6908
|
+
].map((color) => /* @__PURE__ */ h(
|
|
6904
6909
|
"div",
|
|
6905
6910
|
{
|
|
6906
6911
|
key: color,
|
|
@@ -6916,7 +6921,7 @@ const Toolbar = defineComponent({
|
|
|
6916
6921
|
}
|
|
6917
6922
|
}
|
|
6918
6923
|
))),
|
|
6919
|
-
/* @__PURE__ */ h
|
|
6924
|
+
/* @__PURE__ */ h(
|
|
6920
6925
|
"button",
|
|
6921
6926
|
{
|
|
6922
6927
|
onClick: clearColor,
|
|
@@ -6935,7 +6940,7 @@ const Toolbar = defineComponent({
|
|
|
6935
6940
|
ctx ? i18n(ctx, "customMenu.restoreDefault") : "\u6062\u590D\u9ED8\u8BA4"
|
|
6936
6941
|
)
|
|
6937
6942
|
) : null,
|
|
6938
|
-
showFontFamilyMenu.value ? /* @__PURE__ */ h
|
|
6943
|
+
showFontFamilyMenu.value ? /* @__PURE__ */ h(
|
|
6939
6944
|
"div",
|
|
6940
6945
|
{
|
|
6941
6946
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -6960,7 +6965,7 @@ const Toolbar = defineComponent({
|
|
|
6960
6965
|
},
|
|
6961
6966
|
onMouseleave: handleFontFamilyLeave
|
|
6962
6967
|
},
|
|
6963
|
-
/* @__PURE__ */ h
|
|
6968
|
+
/* @__PURE__ */ h(
|
|
6964
6969
|
"div",
|
|
6965
6970
|
{
|
|
6966
6971
|
style: {
|
|
@@ -7021,7 +7026,7 @@ const Toolbar = defineComponent({
|
|
|
7021
7026
|
}
|
|
7022
7027
|
].map((font) => {
|
|
7023
7028
|
const supported = isFontSupported(font.value);
|
|
7024
|
-
return /* @__PURE__ */ h
|
|
7029
|
+
return /* @__PURE__ */ h(
|
|
7025
7030
|
"div",
|
|
7026
7031
|
{
|
|
7027
7032
|
key: font.label,
|
|
@@ -7058,7 +7063,7 @@ const Toolbar = defineComponent({
|
|
|
7058
7063
|
e.currentTarget.style.backgroundColor = "transparent";
|
|
7059
7064
|
}
|
|
7060
7065
|
},
|
|
7061
|
-
/* @__PURE__ */ h
|
|
7066
|
+
/* @__PURE__ */ h(
|
|
7062
7067
|
"span",
|
|
7063
7068
|
{
|
|
7064
7069
|
style: {
|
|
@@ -7068,7 +7073,7 @@ const Toolbar = defineComponent({
|
|
|
7068
7073
|
},
|
|
7069
7074
|
font.label
|
|
7070
7075
|
),
|
|
7071
|
-
currentFontState.value.fontFamily === font.value ? /* @__PURE__ */ h
|
|
7076
|
+
currentFontState.value.fontFamily === font.value ? /* @__PURE__ */ h(
|
|
7072
7077
|
"span",
|
|
7073
7078
|
{
|
|
7074
7079
|
style: {
|
|
@@ -7077,12 +7082,12 @@ const Toolbar = defineComponent({
|
|
|
7077
7082
|
color: "var(--crepe-color-primary)"
|
|
7078
7083
|
}
|
|
7079
7084
|
},
|
|
7080
|
-
/* @__PURE__ */ h
|
|
7085
|
+
/* @__PURE__ */ h(Icon, { icon: confirmIcon })
|
|
7081
7086
|
) : null
|
|
7082
7087
|
);
|
|
7083
7088
|
})
|
|
7084
7089
|
) : null,
|
|
7085
|
-
showFontSizeMenu.value ? /* @__PURE__ */ h
|
|
7090
|
+
showFontSizeMenu.value ? /* @__PURE__ */ h(
|
|
7086
7091
|
"div",
|
|
7087
7092
|
{
|
|
7088
7093
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -7107,7 +7112,7 @@ const Toolbar = defineComponent({
|
|
|
7107
7112
|
},
|
|
7108
7113
|
onMouseleave: handleFontSizeLeave
|
|
7109
7114
|
},
|
|
7110
|
-
/* @__PURE__ */ h
|
|
7115
|
+
/* @__PURE__ */ h(
|
|
7111
7116
|
"div",
|
|
7112
7117
|
{
|
|
7113
7118
|
style: {
|
|
@@ -7132,7 +7137,7 @@ const Toolbar = defineComponent({
|
|
|
7132
7137
|
{ label: "28px", value: "28px" },
|
|
7133
7138
|
{ label: "32px", value: "32px" },
|
|
7134
7139
|
{ label: "36px", value: "36px" }
|
|
7135
|
-
].map((size) => /* @__PURE__ */ h
|
|
7140
|
+
].map((size) => /* @__PURE__ */ h(
|
|
7136
7141
|
"div",
|
|
7137
7142
|
{
|
|
7138
7143
|
key: size.label,
|
|
@@ -7163,7 +7168,7 @@ const Toolbar = defineComponent({
|
|
|
7163
7168
|
e.currentTarget.style.backgroundColor = "transparent";
|
|
7164
7169
|
}
|
|
7165
7170
|
},
|
|
7166
|
-
/* @__PURE__ */ h
|
|
7171
|
+
/* @__PURE__ */ h(
|
|
7167
7172
|
"span",
|
|
7168
7173
|
{
|
|
7169
7174
|
style: {
|
|
@@ -7173,7 +7178,7 @@ const Toolbar = defineComponent({
|
|
|
7173
7178
|
},
|
|
7174
7179
|
size.label
|
|
7175
7180
|
),
|
|
7176
|
-
currentFontState.value.fontSize === size.value ? /* @__PURE__ */ h
|
|
7181
|
+
currentFontState.value.fontSize === size.value ? /* @__PURE__ */ h(
|
|
7177
7182
|
"span",
|
|
7178
7183
|
{
|
|
7179
7184
|
style: {
|
|
@@ -7182,11 +7187,11 @@ const Toolbar = defineComponent({
|
|
|
7182
7187
|
color: "var(--crepe-color-primary)"
|
|
7183
7188
|
}
|
|
7184
7189
|
},
|
|
7185
|
-
/* @__PURE__ */ h
|
|
7190
|
+
/* @__PURE__ */ h(Icon, { icon: confirmIcon })
|
|
7186
7191
|
) : null
|
|
7187
7192
|
))
|
|
7188
7193
|
) : null,
|
|
7189
|
-
showTableMenu.value ? /* @__PURE__ */ h
|
|
7194
|
+
showTableMenu.value ? /* @__PURE__ */ h(
|
|
7190
7195
|
"div",
|
|
7191
7196
|
{
|
|
7192
7197
|
class: "milkdown-slash-menu custom-submenu",
|
|
@@ -7209,7 +7214,7 @@ const Toolbar = defineComponent({
|
|
|
7209
7214
|
},
|
|
7210
7215
|
onMouseleave: handleTableLeave
|
|
7211
7216
|
},
|
|
7212
|
-
/* @__PURE__ */ h
|
|
7217
|
+
/* @__PURE__ */ h(
|
|
7213
7218
|
"div",
|
|
7214
7219
|
{
|
|
7215
7220
|
style: {
|
|
@@ -7222,7 +7227,7 @@ const Toolbar = defineComponent({
|
|
|
7222
7227
|
}
|
|
7223
7228
|
}
|
|
7224
7229
|
),
|
|
7225
|
-
/* @__PURE__ */ h
|
|
7230
|
+
/* @__PURE__ */ h(
|
|
7226
7231
|
"div",
|
|
7227
7232
|
{
|
|
7228
7233
|
style: {
|
|
@@ -7234,7 +7239,7 @@ const Toolbar = defineComponent({
|
|
|
7234
7239
|
},
|
|
7235
7240
|
i18n(ctx, "customMenu.insertTable")
|
|
7236
7241
|
),
|
|
7237
|
-
/* @__PURE__ */ h
|
|
7242
|
+
/* @__PURE__ */ h(
|
|
7238
7243
|
"div",
|
|
7239
7244
|
{
|
|
7240
7245
|
style: {
|
|
@@ -7247,7 +7252,7 @@ const Toolbar = defineComponent({
|
|
|
7247
7252
|
Array.from({ length: 9 }).map(
|
|
7248
7253
|
(_, r) => Array.from({ length: 9 }).map((_2, c) => {
|
|
7249
7254
|
const isHovered = r < tableHoverIndices.value.r && c < tableHoverIndices.value.c;
|
|
7250
|
-
return /* @__PURE__ */ h
|
|
7255
|
+
return /* @__PURE__ */ h(
|
|
7251
7256
|
"div",
|
|
7252
7257
|
{
|
|
7253
7258
|
key: `cell-${r}-${c}`,
|
|
@@ -7276,7 +7281,7 @@ const Toolbar = defineComponent({
|
|
|
7276
7281
|
})
|
|
7277
7282
|
)
|
|
7278
7283
|
),
|
|
7279
|
-
tableHoverIndices.value.r > 0 ? /* @__PURE__ */ h
|
|
7284
|
+
tableHoverIndices.value.r > 0 ? /* @__PURE__ */ h(
|
|
7280
7285
|
"div",
|
|
7281
7286
|
{
|
|
7282
7287
|
style: {
|
|
@@ -7289,7 +7294,7 @@ const Toolbar = defineComponent({
|
|
|
7289
7294
|
tableHoverIndices.value.r,
|
|
7290
7295
|
" x ",
|
|
7291
7296
|
tableHoverIndices.value.c
|
|
7292
|
-
) : /* @__PURE__ */ h
|
|
7297
|
+
) : /* @__PURE__ */ h(
|
|
7293
7298
|
"div",
|
|
7294
7299
|
{
|
|
7295
7300
|
style: {
|
|
@@ -7302,7 +7307,7 @@ const Toolbar = defineComponent({
|
|
|
7302
7307
|
"0 x 0"
|
|
7303
7308
|
)
|
|
7304
7309
|
) : null,
|
|
7305
|
-
showOverflowMenu.value ? /* @__PURE__ */ h
|
|
7310
|
+
showOverflowMenu.value ? /* @__PURE__ */ h(
|
|
7306
7311
|
"div",
|
|
7307
7312
|
{
|
|
7308
7313
|
class: "overflow-menu-popup",
|
|
@@ -7327,7 +7332,7 @@ const Toolbar = defineComponent({
|
|
|
7327
7332
|
(() => {
|
|
7328
7333
|
const cutoff = overflowVisibleCount.value;
|
|
7329
7334
|
const items = [];
|
|
7330
|
-
const renderIconButton = (iconHtml, title, isActive, onClick2, hasDropdown = false, onMouseEnter, onMouseLeave) => /* @__PURE__ */ h
|
|
7335
|
+
const renderIconButton = (iconHtml, title, isActive, onClick2, hasDropdown = false, onMouseEnter, onMouseLeave) => /* @__PURE__ */ h(
|
|
7331
7336
|
"button",
|
|
7332
7337
|
{
|
|
7333
7338
|
type: "button",
|
|
@@ -7350,14 +7355,14 @@ const Toolbar = defineComponent({
|
|
|
7350
7355
|
justifyContent: "center"
|
|
7351
7356
|
}
|
|
7352
7357
|
},
|
|
7353
|
-
/* @__PURE__ */ h
|
|
7358
|
+
/* @__PURE__ */ h(
|
|
7354
7359
|
"span",
|
|
7355
7360
|
{
|
|
7356
7361
|
style: { display: "inline-flex", alignItems: "center" },
|
|
7357
7362
|
innerHTML: iconHtml
|
|
7358
7363
|
}
|
|
7359
7364
|
),
|
|
7360
|
-
hasDropdown ? /* @__PURE__ */ h
|
|
7365
|
+
hasDropdown ? /* @__PURE__ */ h(
|
|
7361
7366
|
"span",
|
|
7362
7367
|
{
|
|
7363
7368
|
style: {
|
|
@@ -7367,7 +7372,7 @@ const Toolbar = defineComponent({
|
|
|
7367
7372
|
opacity: 0.5
|
|
7368
7373
|
}
|
|
7369
7374
|
},
|
|
7370
|
-
/* @__PURE__ */ h
|
|
7375
|
+
/* @__PURE__ */ h(Icon, { icon: chevronDownIcon })
|
|
7371
7376
|
) : null
|
|
7372
7377
|
);
|
|
7373
7378
|
if (0 >= cutoff) {
|
|
@@ -8147,7 +8152,7 @@ const labelStyle = {
|
|
|
8147
8152
|
color: "var(--crepe-color-on-surface, #333)"
|
|
8148
8153
|
};
|
|
8149
8154
|
function renderGroup(ctx, group) {
|
|
8150
|
-
return /* @__PURE__ */ h
|
|
8155
|
+
return /* @__PURE__ */ h("div", { style: { marginBottom: "16px" }, key: group.titleKey }, /* @__PURE__ */ h("div", { style: groupTitleStyle }, i18n(ctx, group.titleKey)), /* @__PURE__ */ h("div", { style: { display: "flex", flexDirection: "column" } }, group.items.map((item) => /* @__PURE__ */ h("div", { key: item.labelKey, style: rowStyle }, /* @__PURE__ */ h("span", { style: labelStyle }, i18n(ctx, item.labelKey)), /* @__PURE__ */ h("div", { style: { display: "flex", gap: "4px", alignItems: "center" } }, item.keys.map((key, i) => /* @__PURE__ */ h("span", { key: i, style: badgeStyle }, fmt(key))))))));
|
|
8151
8156
|
}
|
|
8152
8157
|
const ShortcutHelpModal = defineComponent({
|
|
8153
8158
|
props: {
|
|
@@ -8163,7 +8168,7 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8163
8168
|
};
|
|
8164
8169
|
onMounted(() => document.addEventListener("keydown", onKeydown));
|
|
8165
8170
|
onBeforeUnmount(() => document.removeEventListener("keydown", onKeydown));
|
|
8166
|
-
return () => /* @__PURE__ */ h
|
|
8171
|
+
return () => /* @__PURE__ */ h(
|
|
8167
8172
|
"div",
|
|
8168
8173
|
{
|
|
8169
8174
|
style: {
|
|
@@ -8177,7 +8182,7 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8177
8182
|
},
|
|
8178
8183
|
onClick: close
|
|
8179
8184
|
},
|
|
8180
|
-
/* @__PURE__ */ h
|
|
8185
|
+
/* @__PURE__ */ h(
|
|
8181
8186
|
"div",
|
|
8182
8187
|
{
|
|
8183
8188
|
style: {
|
|
@@ -8191,7 +8196,7 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8191
8196
|
},
|
|
8192
8197
|
onClick: (e) => e.stopPropagation()
|
|
8193
8198
|
},
|
|
8194
|
-
/* @__PURE__ */ h
|
|
8199
|
+
/* @__PURE__ */ h(
|
|
8195
8200
|
"div",
|
|
8196
8201
|
{
|
|
8197
8202
|
style: {
|
|
@@ -8203,7 +8208,7 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8203
8208
|
borderBottom: "1px solid var(--crepe-color-outline-variant, color-mix(in srgb, var(--crepe-color-outline), transparent 80%))"
|
|
8204
8209
|
}
|
|
8205
8210
|
},
|
|
8206
|
-
/* @__PURE__ */ h
|
|
8211
|
+
/* @__PURE__ */ h(
|
|
8207
8212
|
"span",
|
|
8208
8213
|
{
|
|
8209
8214
|
style: {
|
|
@@ -8214,7 +8219,7 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8214
8219
|
},
|
|
8215
8220
|
i18n(props.ctx, "shortcuts.title")
|
|
8216
8221
|
),
|
|
8217
|
-
/* @__PURE__ */ h
|
|
8222
|
+
/* @__PURE__ */ h(
|
|
8218
8223
|
"button",
|
|
8219
8224
|
{
|
|
8220
8225
|
type: "button",
|
|
@@ -8232,10 +8237,10 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8232
8237
|
color: "var(--crepe-color-on-surface-variant, #666)"
|
|
8233
8238
|
}
|
|
8234
8239
|
},
|
|
8235
|
-
/* @__PURE__ */ h
|
|
8240
|
+
/* @__PURE__ */ h(Icon, { icon: closeIcon })
|
|
8236
8241
|
)
|
|
8237
8242
|
),
|
|
8238
|
-
/* @__PURE__ */ h
|
|
8243
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: "24px" } }, /* @__PURE__ */ h("div", { style: columnStyle }, leftGroups.map((g) => renderGroup(props.ctx, g))), /* @__PURE__ */ h(
|
|
8239
8244
|
"div",
|
|
8240
8245
|
{
|
|
8241
8246
|
style: {
|
|
@@ -8244,7 +8249,7 @@ const ShortcutHelpModal = defineComponent({
|
|
|
8244
8249
|
backgroundColor: "var(--crepe-color-outline-variant, color-mix(in srgb, var(--crepe-color-outline), transparent 80%))"
|
|
8245
8250
|
}
|
|
8246
8251
|
}
|
|
8247
|
-
), /* @__PURE__ */ h
|
|
8252
|
+
), /* @__PURE__ */ h("div", { style: columnStyle }, rightGroups.map((g) => renderGroup(props.ctx, g))))
|
|
8248
8253
|
)
|
|
8249
8254
|
);
|
|
8250
8255
|
}
|
|
@@ -8748,6 +8753,7 @@ function buildDefaultFixedToolbar(builder, _config, ctx) {
|
|
|
8748
8753
|
return builder.build();
|
|
8749
8754
|
}
|
|
8750
8755
|
|
|
8756
|
+
keepAlive(h);
|
|
8751
8757
|
const DocumentHeader = defineComponent({
|
|
8752
8758
|
props: {
|
|
8753
8759
|
ctx: { type: Object, required: true },
|
|
@@ -9609,7 +9615,7 @@ class FixedToolbarView {
|
|
|
9609
9615
|
__privateGet$3(this, _view).dom.style.margin = isFull ? "0" : "0 auto";
|
|
9610
9616
|
__privateGet$3(this, _view).dom.style.padding = `20px ${px} 0`;
|
|
9611
9617
|
if (__privateGet$3(this, _headerContent)) {
|
|
9612
|
-
__privateGet$3(this, _headerContent).style.margin = isFull ? "0" : "0
|
|
9618
|
+
__privateGet$3(this, _headerContent).style.margin = isFull && !viewState.showCover ? "0 auto" : "0";
|
|
9613
9619
|
__privateGet$3(this, _headerContent).style.padding = `0px`;
|
|
9614
9620
|
}
|
|
9615
9621
|
nextTick(() => {
|
|
@@ -9787,7 +9793,7 @@ const blockLatexSchema = codeBlockSchema.extendSchema((prev) => {
|
|
|
9787
9793
|
|
|
9788
9794
|
const inlineLatexTooltip = tooltipFactory("INLINE_LATEX");
|
|
9789
9795
|
|
|
9790
|
-
keepAlive(h
|
|
9796
|
+
keepAlive(h);
|
|
9791
9797
|
const LatexTooltip = defineComponent({
|
|
9792
9798
|
props: {
|
|
9793
9799
|
ctx: {
|
|
@@ -9823,7 +9829,7 @@ const LatexTooltip = defineComponent({
|
|
|
9823
9829
|
}
|
|
9824
9830
|
};
|
|
9825
9831
|
return () => {
|
|
9826
|
-
return /* @__PURE__ */ h
|
|
9832
|
+
return /* @__PURE__ */ h("div", { class: "container container-large" }, /* @__PURE__ */ h("div", { class: "input-container" }, props.innerView ? /* @__PURE__ */ h("div", { ref: innerViewRef }) : null), /* @__PURE__ */ h("div", { class: "footer" }, /* @__PURE__ */ h("span", { class: "left" }, i18n(props.ctx, "latex.escToExit")), /* @__PURE__ */ h(
|
|
9827
9833
|
"a",
|
|
9828
9834
|
{
|
|
9829
9835
|
class: "right",
|
|
@@ -9831,7 +9837,7 @@ const LatexTooltip = defineComponent({
|
|
|
9831
9837
|
target: "_blank",
|
|
9832
9838
|
style: "display: none;"
|
|
9833
9839
|
},
|
|
9834
|
-
/* @__PURE__ */ h
|
|
9840
|
+
/* @__PURE__ */ h(Icon, { icon: helpIcon }),
|
|
9835
9841
|
" ",
|
|
9836
9842
|
i18n(props.ctx, "latex.helpDoc")
|
|
9837
9843
|
)));
|