@jvs-milkdown/crepe 1.2.11 → 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/index.js CHANGED
@@ -1198,7 +1198,7 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1198
1198
  return () => {
1199
1199
  var _a;
1200
1200
  if (!((_a = src.value) == null ? void 0 : _a.length)) {
1201
- return /* @__PURE__ */ h(
1201
+ return /* @__PURE__ */ vue.h(
1202
1202
  "div",
1203
1203
  {
1204
1204
  class: [
@@ -1206,7 +1206,7 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1206
1206
  props.selected.value ? "selected" : ""
1207
1207
  ]
1208
1208
  },
1209
- /* @__PURE__ */ h("div", { class: "milkdown-attachment-uploader", onClick: triggerUpload }, /* @__PURE__ */ h(component.Icon, { icon: fileLinkIcon }), /* @__PURE__ */ h("span", { class: "milkdown-attachment-upload-text" }, isUploading.value ? "Uploading..." : props.config.uploadButton), /* @__PURE__ */ h(
1209
+ /* @__PURE__ */ vue.h("div", { class: "milkdown-attachment-uploader", onClick: triggerUpload }, /* @__PURE__ */ vue.h(component.Icon, { icon: fileLinkIcon }), /* @__PURE__ */ vue.h("span", { class: "milkdown-attachment-upload-text" }, isUploading.value ? "Uploading..." : props.config.uploadButton), /* @__PURE__ */ vue.h(
1210
1210
  "input",
1211
1211
  {
1212
1212
  type: "file",
@@ -1220,7 +1220,7 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1220
1220
  if (isVideo.value) {
1221
1221
  const savedWidth = videoWidth.value;
1222
1222
  const widthStyle = isResizing.value && currentWidth.value > 0 ? `${currentWidth.value}px` : savedWidth && savedWidth > 0 ? `${savedWidth}px` : "100%";
1223
- return /* @__PURE__ */ h(
1223
+ return /* @__PURE__ */ vue.h(
1224
1224
  "div",
1225
1225
  {
1226
1226
  ref: videoWrapperRef,
@@ -1234,7 +1234,7 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1234
1234
  position: "relative"
1235
1235
  }
1236
1236
  },
1237
- /* @__PURE__ */ h(
1237
+ /* @__PURE__ */ vue.h(
1238
1238
  "video",
1239
1239
  {
1240
1240
  src: src.value,
@@ -1243,28 +1243,28 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1243
1243
  onMousedown: (e) => e.stopPropagation()
1244
1244
  }
1245
1245
  ),
1246
- /* @__PURE__ */ h(
1246
+ /* @__PURE__ */ vue.h(
1247
1247
  "div",
1248
1248
  {
1249
1249
  class: "video-resize-handle top-left",
1250
1250
  onPointerdown: (e) => onResizePointerDown(e, "top-left")
1251
1251
  }
1252
1252
  ),
1253
- /* @__PURE__ */ h(
1253
+ /* @__PURE__ */ vue.h(
1254
1254
  "div",
1255
1255
  {
1256
1256
  class: "video-resize-handle top-right",
1257
1257
  onPointerdown: (e) => onResizePointerDown(e, "top-right")
1258
1258
  }
1259
1259
  ),
1260
- /* @__PURE__ */ h(
1260
+ /* @__PURE__ */ vue.h(
1261
1261
  "div",
1262
1262
  {
1263
1263
  class: "video-resize-handle bottom-left",
1264
1264
  onPointerdown: (e) => onResizePointerDown(e, "bottom-left")
1265
1265
  }
1266
1266
  ),
1267
- /* @__PURE__ */ h(
1267
+ /* @__PURE__ */ vue.h(
1268
1268
  "div",
1269
1269
  {
1270
1270
  class: "video-resize-handle bottom-right",
@@ -1273,7 +1273,7 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1273
1273
  )
1274
1274
  );
1275
1275
  }
1276
- return /* @__PURE__ */ h(
1276
+ return /* @__PURE__ */ vue.h(
1277
1277
  "div",
1278
1278
  {
1279
1279
  class: [
@@ -1281,16 +1281,16 @@ const MilkdownAttachmentBlock = vue.defineComponent({
1281
1281
  props.selected.value ? "selected" : ""
1282
1282
  ]
1283
1283
  },
1284
- /* @__PURE__ */ h("div", { class: "milkdown-attachment-icon-wrapper" }, /* @__PURE__ */ h("div", { class: "milkdown-attachment-raw-icon-bg" }, /* @__PURE__ */ h(component.Icon, { icon: fileLinkIcon }))),
1285
- /* @__PURE__ */ h("div", { class: "milkdown-attachment-info" }, /* @__PURE__ */ h("div", { class: "milkdown-attachment-name" }, name.value), /* @__PURE__ */ h("div", { class: "milkdown-attachment-size" }, (size.value || 0) > 0 ? formatBytes(size.value) : "")),
1286
- /* @__PURE__ */ h(
1284
+ /* @__PURE__ */ vue.h("div", { class: "milkdown-attachment-icon-wrapper" }, /* @__PURE__ */ vue.h("div", { class: "milkdown-attachment-raw-icon-bg" }, /* @__PURE__ */ vue.h(component.Icon, { icon: fileLinkIcon }))),
1285
+ /* @__PURE__ */ vue.h("div", { class: "milkdown-attachment-info" }, /* @__PURE__ */ vue.h("div", { class: "milkdown-attachment-name" }, name.value), /* @__PURE__ */ vue.h("div", { class: "milkdown-attachment-size" }, (size.value || 0) > 0 ? formatBytes(size.value) : "")),
1286
+ /* @__PURE__ */ vue.h(
1287
1287
  "div",
1288
1288
  {
1289
1289
  class: "milkdown-attachment-action",
1290
1290
  onClick: openLink,
1291
1291
  title: props.config.downloadText
1292
1292
  },
1293
- /* @__PURE__ */ h(component.Icon, { icon: downloadIcon })
1293
+ /* @__PURE__ */ vue.h(component.Icon, { icon: downloadIcon })
1294
1294
  )
1295
1295
  );
1296
1296
  };
@@ -7536,7 +7536,7 @@ const ToggleSwitch = vue.defineComponent({
7536
7536
  },
7537
7537
  emits: ["update:modelValue"],
7538
7538
  setup(props, { emit }) {
7539
- return () => /* @__PURE__ */ h(
7539
+ return () => /* @__PURE__ */ vue.h(
7540
7540
  "div",
7541
7541
  {
7542
7542
  onClick: (e) => {
@@ -7553,7 +7553,7 @@ const ToggleSwitch = vue.defineComponent({
7553
7553
  transition: "background-color 0.2s"
7554
7554
  }
7555
7555
  },
7556
- /* @__PURE__ */ h(
7556
+ /* @__PURE__ */ vue.h(
7557
7557
  "div",
7558
7558
  {
7559
7559
  style: {
@@ -7639,7 +7639,7 @@ const MenuBar = vue.defineComponent({
7639
7639
  const hasSubmenu = (key) => key === "view";
7640
7640
  return () => {
7641
7641
  const state = viewState.value;
7642
- return /* @__PURE__ */ h(
7642
+ return /* @__PURE__ */ vue.h(
7643
7643
  "div",
7644
7644
  {
7645
7645
  class: "milkdown-menu-bar",
@@ -7651,7 +7651,7 @@ const MenuBar = vue.defineComponent({
7651
7651
  position: "relative"
7652
7652
  }
7653
7653
  },
7654
- /* @__PURE__ */ h(
7654
+ /* @__PURE__ */ vue.h(
7655
7655
  "div",
7656
7656
  {
7657
7657
  ref: buttonRef,
@@ -7674,7 +7674,7 @@ const MenuBar = vue.defineComponent({
7674
7674
  e.currentTarget.style.backgroundColor = "transparent";
7675
7675
  }
7676
7676
  },
7677
- /* @__PURE__ */ h(
7677
+ /* @__PURE__ */ vue.h(
7678
7678
  "span",
7679
7679
  {
7680
7680
  style: {
@@ -7685,9 +7685,9 @@ const MenuBar = vue.defineComponent({
7685
7685
  justifyContent: "center"
7686
7686
  }
7687
7687
  },
7688
- /* @__PURE__ */ h(component.Icon, { icon: menuIcon })
7688
+ /* @__PURE__ */ vue.h(component.Icon, { icon: menuIcon })
7689
7689
  ),
7690
- /* @__PURE__ */ h(
7690
+ /* @__PURE__ */ vue.h(
7691
7691
  "span",
7692
7692
  {
7693
7693
  style: {
@@ -7700,7 +7700,7 @@ const MenuBar = vue.defineComponent({
7700
7700
  "\u83DC\u5355"
7701
7701
  )
7702
7702
  ),
7703
- showMenu.value ? /* @__PURE__ */ h(
7703
+ showMenu.value ? /* @__PURE__ */ vue.h(
7704
7704
  "div",
7705
7705
  {
7706
7706
  ref: mainRef,
@@ -7727,7 +7727,7 @@ const MenuBar = vue.defineComponent({
7727
7727
  menuKeys.map((menuKey) => {
7728
7728
  const isHovered = activeSubmenu.value === menuKey;
7729
7729
  const label = i18n(props.ctx, `menuBar.${menuKey}`) || menuKey;
7730
- return /* @__PURE__ */ h(
7730
+ return /* @__PURE__ */ vue.h(
7731
7731
  "div",
7732
7732
  {
7733
7733
  key: menuKey,
@@ -7749,7 +7749,7 @@ const MenuBar = vue.defineComponent({
7749
7749
  backgroundColor: isHovered ? "var(--crepe-color-hover, #f5f5f5)" : "transparent"
7750
7750
  }
7751
7751
  },
7752
- /* @__PURE__ */ h(
7752
+ /* @__PURE__ */ vue.h(
7753
7753
  "span",
7754
7754
  {
7755
7755
  style: {
@@ -7759,7 +7759,7 @@ const MenuBar = vue.defineComponent({
7759
7759
  },
7760
7760
  label
7761
7761
  ),
7762
- hasSubmenu(menuKey) ? /* @__PURE__ */ h(
7762
+ hasSubmenu(menuKey) ? /* @__PURE__ */ vue.h(
7763
7763
  "span",
7764
7764
  {
7765
7765
  style: {
@@ -7768,7 +7768,7 @@ const MenuBar = vue.defineComponent({
7768
7768
  display: "flex"
7769
7769
  }
7770
7770
  },
7771
- /* @__PURE__ */ h(
7771
+ /* @__PURE__ */ vue.h(
7772
7772
  "svg",
7773
7773
  {
7774
7774
  width: "12",
@@ -7780,10 +7780,10 @@ const MenuBar = vue.defineComponent({
7780
7780
  "stroke-linecap": "round",
7781
7781
  "stroke-linejoin": "round"
7782
7782
  },
7783
- /* @__PURE__ */ h("polyline", { points: "9 18 15 12 9 6" })
7783
+ /* @__PURE__ */ vue.h("polyline", { points: "9 18 15 12 9 6" })
7784
7784
  )
7785
7785
  ) : null,
7786
- menuKey === "view" && isHovered ? /* @__PURE__ */ h(
7786
+ menuKey === "view" && isHovered ? /* @__PURE__ */ vue.h(
7787
7787
  "div",
7788
7788
  {
7789
7789
  style: {
@@ -7801,7 +7801,7 @@ const MenuBar = vue.defineComponent({
7801
7801
  cursor: "default"
7802
7802
  }
7803
7803
  },
7804
- /* @__PURE__ */ h(
7804
+ /* @__PURE__ */ vue.h(
7805
7805
  "div",
7806
7806
  {
7807
7807
  style: {
@@ -7811,7 +7811,7 @@ const MenuBar = vue.defineComponent({
7811
7811
  alignItems: "center"
7812
7812
  }
7813
7813
  },
7814
- /* @__PURE__ */ h(
7814
+ /* @__PURE__ */ vue.h(
7815
7815
  "span",
7816
7816
  {
7817
7817
  style: {
@@ -7821,7 +7821,7 @@ const MenuBar = vue.defineComponent({
7821
7821
  },
7822
7822
  i18n(props.ctx, "view.title") || "\u6807\u9898"
7823
7823
  ),
7824
- /* @__PURE__ */ h(
7824
+ /* @__PURE__ */ vue.h(
7825
7825
  ToggleSwitch,
7826
7826
  {
7827
7827
  modelValue: state.showTitle,
@@ -7829,7 +7829,7 @@ const MenuBar = vue.defineComponent({
7829
7829
  }
7830
7830
  )
7831
7831
  ),
7832
- /* @__PURE__ */ h(
7832
+ /* @__PURE__ */ vue.h(
7833
7833
  "div",
7834
7834
  {
7835
7835
  style: {
@@ -7839,7 +7839,7 @@ const MenuBar = vue.defineComponent({
7839
7839
  alignItems: "center"
7840
7840
  }
7841
7841
  },
7842
- /* @__PURE__ */ h(
7842
+ /* @__PURE__ */ vue.h(
7843
7843
  "span",
7844
7844
  {
7845
7845
  style: {
@@ -7849,7 +7849,7 @@ const MenuBar = vue.defineComponent({
7849
7849
  },
7850
7850
  i18n(props.ctx, "view.outline") || "\u5927\u7EB2"
7851
7851
  ),
7852
- /* @__PURE__ */ h(
7852
+ /* @__PURE__ */ vue.h(
7853
7853
  ToggleSwitch,
7854
7854
  {
7855
7855
  modelValue: state.outlineVisible,
@@ -7857,7 +7857,7 @@ const MenuBar = vue.defineComponent({
7857
7857
  }
7858
7858
  )
7859
7859
  ),
7860
- /* @__PURE__ */ h(
7860
+ /* @__PURE__ */ vue.h(
7861
7861
  "div",
7862
7862
  {
7863
7863
  style: {
@@ -7867,7 +7867,7 @@ const MenuBar = vue.defineComponent({
7867
7867
  alignItems: "center"
7868
7868
  }
7869
7869
  },
7870
- /* @__PURE__ */ h(
7870
+ /* @__PURE__ */ vue.h(
7871
7871
  "span",
7872
7872
  {
7873
7873
  style: {
@@ -7877,7 +7877,7 @@ const MenuBar = vue.defineComponent({
7877
7877
  },
7878
7878
  i18n(props.ctx, "view.cover") || "\u5C01\u9762"
7879
7879
  ),
7880
- /* @__PURE__ */ h(
7880
+ /* @__PURE__ */ vue.h(
7881
7881
  ToggleSwitch,
7882
7882
  {
7883
7883
  modelValue: state.showCover,
@@ -7893,7 +7893,7 @@ const MenuBar = vue.defineComponent({
7893
7893
  }
7894
7894
  )
7895
7895
  ),
7896
- /* @__PURE__ */ h(
7896
+ /* @__PURE__ */ vue.h(
7897
7897
  "div",
7898
7898
  {
7899
7899
  style: {
@@ -7903,7 +7903,7 @@ const MenuBar = vue.defineComponent({
7903
7903
  }
7904
7904
  }
7905
7905
  ),
7906
- /* @__PURE__ */ h(
7906
+ /* @__PURE__ */ vue.h(
7907
7907
  "div",
7908
7908
  {
7909
7909
  style: {
@@ -7913,7 +7913,7 @@ const MenuBar = vue.defineComponent({
7913
7913
  alignItems: "center"
7914
7914
  }
7915
7915
  },
7916
- /* @__PURE__ */ h(
7916
+ /* @__PURE__ */ vue.h(
7917
7917
  "span",
7918
7918
  {
7919
7919
  style: {
@@ -7924,7 +7924,7 @@ const MenuBar = vue.defineComponent({
7924
7924
  i18n(props.ctx, "view.docBackground") || "\u6587\u6863\u80CC\u666F"
7925
7925
  )
7926
7926
  ),
7927
- /* @__PURE__ */ h(
7927
+ /* @__PURE__ */ vue.h(
7928
7928
  "div",
7929
7929
  {
7930
7930
  style: {
@@ -7934,7 +7934,7 @@ const MenuBar = vue.defineComponent({
7934
7934
  gap: "6px"
7935
7935
  }
7936
7936
  },
7937
- bgColors.map((bg) => /* @__PURE__ */ h(
7937
+ bgColors.map((bg) => /* @__PURE__ */ vue.h(
7938
7938
  "div",
7939
7939
  {
7940
7940
  key: bg.value || "default",
@@ -7956,7 +7956,7 @@ const MenuBar = vue.defineComponent({
7956
7956
  justifyContent: "center"
7957
7957
  }
7958
7958
  },
7959
- bg.value === null ? /* @__PURE__ */ h(
7959
+ bg.value === null ? /* @__PURE__ */ vue.h(
7960
7960
  "div",
7961
7961
  {
7962
7962
  style: {
@@ -7969,7 +7969,7 @@ const MenuBar = vue.defineComponent({
7969
7969
  borderRadius: "3px"
7970
7970
  }
7971
7971
  },
7972
- /* @__PURE__ */ h(
7972
+ /* @__PURE__ */ vue.h(
7973
7973
  "div",
7974
7974
  {
7975
7975
  style: {
@@ -7987,7 +7987,7 @@ const MenuBar = vue.defineComponent({
7987
7987
  ) : null
7988
7988
  ))
7989
7989
  ),
7990
- /* @__PURE__ */ h(
7990
+ /* @__PURE__ */ vue.h(
7991
7991
  "div",
7992
7992
  {
7993
7993
  style: {
@@ -7997,7 +7997,7 @@ const MenuBar = vue.defineComponent({
7997
7997
  }
7998
7998
  }
7999
7999
  ),
8000
- /* @__PURE__ */ h(
8000
+ /* @__PURE__ */ vue.h(
8001
8001
  "div",
8002
8002
  {
8003
8003
  style: {
@@ -8007,7 +8007,7 @@ const MenuBar = vue.defineComponent({
8007
8007
  alignItems: "center"
8008
8008
  }
8009
8009
  },
8010
- /* @__PURE__ */ h(
8010
+ /* @__PURE__ */ vue.h(
8011
8011
  "span",
8012
8012
  {
8013
8013
  style: {
@@ -8018,7 +8018,7 @@ const MenuBar = vue.defineComponent({
8018
8018
  i18n(props.ctx, "view.editorWidth") || "\u5185\u5BB9\u5BBD\u5EA6"
8019
8019
  )
8020
8020
  ),
8021
- /* @__PURE__ */ h(
8021
+ /* @__PURE__ */ vue.h(
8022
8022
  "div",
8023
8023
  {
8024
8024
  style: {
@@ -8040,7 +8040,7 @@ const MenuBar = vue.defineComponent({
8040
8040
  key: "full",
8041
8041
  labelKey: "view.widthFull"
8042
8042
  }
8043
- ].map(({ key, labelKey }) => /* @__PURE__ */ h(
8043
+ ].map(({ key, labelKey }) => /* @__PURE__ */ vue.h(
8044
8044
  "button",
8045
8045
  {
8046
8046
  key,
@@ -8267,7 +8267,7 @@ const FixedToolbarComponent = vue.defineComponent({
8267
8267
  },
8268
8268
  setup(props) {
8269
8269
  const showShortcuts = vue.ref(false);
8270
- return () => /* @__PURE__ */ h(
8270
+ return () => /* @__PURE__ */ vue.h(
8271
8271
  "div",
8272
8272
  {
8273
8273
  style: {
@@ -8278,8 +8278,8 @@ const FixedToolbarComponent = vue.defineComponent({
8278
8278
  gap: "0px"
8279
8279
  }
8280
8280
  },
8281
- /* @__PURE__ */ h(MenuBar, { ctx: props.ctx, config: props.config }),
8282
- /* @__PURE__ */ h(
8281
+ /* @__PURE__ */ vue.h(MenuBar, { ctx: props.ctx, config: props.config }),
8282
+ /* @__PURE__ */ vue.h(
8283
8283
  "div",
8284
8284
  {
8285
8285
  style: {
@@ -8290,7 +8290,7 @@ const FixedToolbarComponent = vue.defineComponent({
8290
8290
  }
8291
8291
  }
8292
8292
  ),
8293
- /* @__PURE__ */ h(
8293
+ /* @__PURE__ */ vue.h(
8294
8294
  Toolbar,
8295
8295
  {
8296
8296
  ctx: props.ctx,
@@ -8301,7 +8301,7 @@ const FixedToolbarComponent = vue.defineComponent({
8301
8301
  isFixed: true
8302
8302
  }
8303
8303
  ),
8304
- /* @__PURE__ */ h(
8304
+ /* @__PURE__ */ vue.h(
8305
8305
  "div",
8306
8306
  {
8307
8307
  style: {
@@ -8313,7 +8313,7 @@ const FixedToolbarComponent = vue.defineComponent({
8313
8313
  }
8314
8314
  }
8315
8315
  ),
8316
- /* @__PURE__ */ h(
8316
+ /* @__PURE__ */ vue.h(
8317
8317
  "button",
8318
8318
  {
8319
8319
  type: "button",
@@ -8323,9 +8323,9 @@ const FixedToolbarComponent = vue.defineComponent({
8323
8323
  showShortcuts.value = true;
8324
8324
  }
8325
8325
  },
8326
- /* @__PURE__ */ h(component.Icon, { icon: keyboardIcon })
8326
+ /* @__PURE__ */ vue.h(component.Icon, { icon: keyboardIcon })
8327
8327
  ),
8328
- showShortcuts.value && /* @__PURE__ */ h(ShortcutHelpModal, { ctx: props.ctx, visible: showShortcuts })
8328
+ showShortcuts.value && /* @__PURE__ */ vue.h(ShortcutHelpModal, { ctx: props.ctx, visible: showShortcuts })
8329
8329
  );
8330
8330
  }
8331
8331
  });
@@ -8755,6 +8755,7 @@ function buildDefaultFixedToolbar(builder, _config, ctx) {
8755
8755
  return builder.build();
8756
8756
  }
8757
8757
 
8758
+ keepAlive(vue.h);
8758
8759
  const DocumentHeader = vue.defineComponent({
8759
8760
  props: {
8760
8761
  ctx: { type: Object, required: true },
@@ -8831,13 +8832,13 @@ const DocumentHeader = vue.defineComponent({
8831
8832
  var _a, _b;
8832
8833
  const state = viewState.value;
8833
8834
  if (!state.showTitle && !state.showCover) return null;
8834
- return /* @__PURE__ */ h(
8835
+ return /* @__PURE__ */ vue.h(
8835
8836
  "div",
8836
8837
  {
8837
8838
  class: "milkdown-document-header",
8838
8839
  style: { width: "100%", display: "flex", flexDirection: "column" }
8839
8840
  },
8840
- state.showCover ? /* @__PURE__ */ h(
8841
+ state.showCover ? /* @__PURE__ */ vue.h(
8841
8842
  "div",
8842
8843
  {
8843
8844
  class: "milkdown-document-cover",
@@ -8855,7 +8856,7 @@ const DocumentHeader = vue.defineComponent({
8855
8856
  overflow: "hidden"
8856
8857
  }
8857
8858
  },
8858
- /* @__PURE__ */ h(
8859
+ /* @__PURE__ */ vue.h(
8859
8860
  "img",
8860
8861
  {
8861
8862
  src: state.coverUrl,
@@ -8868,7 +8869,7 @@ const DocumentHeader = vue.defineComponent({
8868
8869
  }
8869
8870
  }
8870
8871
  ),
8871
- /* @__PURE__ */ h(
8872
+ /* @__PURE__ */ vue.h(
8872
8873
  "div",
8873
8874
  {
8874
8875
  style: {
@@ -8885,7 +8886,7 @@ const DocumentHeader = vue.defineComponent({
8885
8886
  background: "linear-gradient(transparent, rgba(0,0,0,0.7))"
8886
8887
  }
8887
8888
  },
8888
- /* @__PURE__ */ h(
8889
+ /* @__PURE__ */ vue.h(
8889
8890
  "div",
8890
8891
  {
8891
8892
  style: {
@@ -8897,7 +8898,7 @@ const DocumentHeader = vue.defineComponent({
8897
8898
  },
8898
8899
  (lastUploadedUrl.value ? [lastUploadedUrl.value] : []).concat(
8899
8900
  ((_b = (_a = props.config) == null ? void 0 : _a.defaultCoverImages) == null ? void 0 : _b.length) ? props.config.defaultCoverImages : builtInCoverImages
8900
- ).map((src, i) => /* @__PURE__ */ h(
8901
+ ).map((src, i) => /* @__PURE__ */ vue.h(
8901
8902
  "img",
8902
8903
  {
8903
8904
  key: i,
@@ -8927,7 +8928,7 @@ const DocumentHeader = vue.defineComponent({
8927
8928
  }
8928
8929
  ))
8929
8930
  ),
8930
- /* @__PURE__ */ h(
8931
+ /* @__PURE__ */ vue.h(
8931
8932
  "div",
8932
8933
  {
8933
8934
  onClick: () => {
@@ -8955,7 +8956,7 @@ const DocumentHeader = vue.defineComponent({
8955
8956
  e.currentTarget.style.backgroundColor = "rgba(255,255,255,0.2)";
8956
8957
  }
8957
8958
  },
8958
- /* @__PURE__ */ h(
8959
+ /* @__PURE__ */ vue.h(
8959
8960
  "svg",
8960
8961
  {
8961
8962
  width: "14",
@@ -8967,14 +8968,14 @@ const DocumentHeader = vue.defineComponent({
8967
8968
  "stroke-linecap": "round",
8968
8969
  "stroke-linejoin": "round"
8969
8970
  },
8970
- /* @__PURE__ */ h("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
8971
- /* @__PURE__ */ h("polyline", { points: "17 8 12 3 7 8" }),
8972
- /* @__PURE__ */ h("line", { x1: "12", y1: "3", x2: "12", y2: "15" })
8971
+ /* @__PURE__ */ vue.h("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
8972
+ /* @__PURE__ */ vue.h("polyline", { points: "17 8 12 3 7 8" }),
8973
+ /* @__PURE__ */ vue.h("line", { x1: "12", y1: "3", x2: "12", y2: "15" })
8973
8974
  ),
8974
8975
  "\u4E0A\u4F20"
8975
8976
  )
8976
8977
  ),
8977
- /* @__PURE__ */ h(
8978
+ /* @__PURE__ */ vue.h(
8978
8979
  "input",
8979
8980
  {
8980
8981
  type: "file",
@@ -8985,7 +8986,7 @@ const DocumentHeader = vue.defineComponent({
8985
8986
  }
8986
8987
  )
8987
8988
  ) : null,
8988
- state.showTitle ? /* @__PURE__ */ h(
8989
+ state.showTitle ? /* @__PURE__ */ vue.h(
8989
8990
  "div",
8990
8991
  {
8991
8992
  class: "milkdown-document-title-wrapper",
@@ -8996,8 +8997,8 @@ const DocumentHeader = vue.defineComponent({
8996
8997
  padding: `40px ${editorWidthMap[state.editorWidth] === "none" ? "80px" : "0"} 0`
8997
8998
  }
8998
8999
  },
8999
- /* @__PURE__ */ h("style", null, `.milkdown-document-title::placeholder { color: #BFBFBF; }`),
9000
- /* @__PURE__ */ h(
9000
+ /* @__PURE__ */ vue.h("style", null, `.milkdown-document-title::placeholder { color: #BFBFBF; }`),
9001
+ /* @__PURE__ */ vue.h(
9001
9002
  "textarea",
9002
9003
  {
9003
9004
  ref: titleTextareaRef,
@@ -9232,7 +9233,7 @@ const OutlinePanel = vue.defineComponent({
9232
9233
  const state = viewState.value;
9233
9234
  if (!state.outlineVisible) return null;
9234
9235
  const isLeft = state.outlinePosition === "left";
9235
- return /* @__PURE__ */ h(
9236
+ return /* @__PURE__ */ vue.h(
9236
9237
  "div",
9237
9238
  {
9238
9239
  class: "milkdown-outline-panel",
@@ -9253,7 +9254,7 @@ const OutlinePanel = vue.defineComponent({
9253
9254
  overflow: "hidden"
9254
9255
  }
9255
9256
  },
9256
- /* @__PURE__ */ h(
9257
+ /* @__PURE__ */ vue.h(
9257
9258
  "div",
9258
9259
  {
9259
9260
  style: {
@@ -9267,8 +9268,8 @@ const OutlinePanel = vue.defineComponent({
9267
9268
  alignItems: "center"
9268
9269
  }
9269
9270
  },
9270
- /* @__PURE__ */ h("span", null, i18n(props.ctx, "view.outline")),
9271
- /* @__PURE__ */ h(
9271
+ /* @__PURE__ */ vue.h("span", null, i18n(props.ctx, "view.outline")),
9272
+ /* @__PURE__ */ vue.h(
9272
9273
  "div",
9273
9274
  {
9274
9275
  style: {
@@ -9292,7 +9293,7 @@ const OutlinePanel = vue.defineComponent({
9292
9293
  },
9293
9294
  title: "\u5173\u95ED\u5927\u7EB2"
9294
9295
  },
9295
- /* @__PURE__ */ h(
9296
+ /* @__PURE__ */ vue.h(
9296
9297
  "svg",
9297
9298
  {
9298
9299
  width: "16",
@@ -9304,12 +9305,12 @@ const OutlinePanel = vue.defineComponent({
9304
9305
  "stroke-linecap": "round",
9305
9306
  "stroke-linejoin": "round"
9306
9307
  },
9307
- /* @__PURE__ */ h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
9308
- /* @__PURE__ */ h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
9308
+ /* @__PURE__ */ vue.h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
9309
+ /* @__PURE__ */ vue.h("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
9309
9310
  )
9310
9311
  )
9311
9312
  ),
9312
- /* @__PURE__ */ h("div", { style: { flexGrow: 1, overflowY: "auto", padding: "12px 0" } }, items.value.length === 0 ? /* @__PURE__ */ h(
9313
+ /* @__PURE__ */ vue.h("div", { style: { flexGrow: 1, overflowY: "auto", padding: "12px 0" } }, items.value.length === 0 ? /* @__PURE__ */ vue.h(
9313
9314
  "div",
9314
9315
  {
9315
9316
  style: {
@@ -9322,7 +9323,7 @@ const OutlinePanel = vue.defineComponent({
9322
9323
  ) : null, visibleItems.value.map(({ item, hasChildren: hasKids }) => {
9323
9324
  const isActive = activeId.value === item.id;
9324
9325
  const collapsed = collapsedIds.value.has(item.id);
9325
- return /* @__PURE__ */ h(
9326
+ return /* @__PURE__ */ vue.h(
9326
9327
  "div",
9327
9328
  {
9328
9329
  key: item.id,
@@ -9355,7 +9356,7 @@ const OutlinePanel = vue.defineComponent({
9355
9356
  }
9356
9357
  }
9357
9358
  },
9358
- /* @__PURE__ */ h(
9359
+ /* @__PURE__ */ vue.h(
9359
9360
  "span",
9360
9361
  {
9361
9362
  onClick: (e) => {
@@ -9388,7 +9389,7 @@ const OutlinePanel = vue.defineComponent({
9388
9389
  "\uFFFD?",
9389
9390
  " "
9390
9391
  ),
9391
- /* @__PURE__ */ h(
9392
+ /* @__PURE__ */ vue.h(
9392
9393
  "span",
9393
9394
  {
9394
9395
  title: item.text,
@@ -9401,7 +9402,7 @@ const OutlinePanel = vue.defineComponent({
9401
9402
  )
9402
9403
  );
9403
9404
  })),
9404
- /* @__PURE__ */ h(
9405
+ /* @__PURE__ */ vue.h(
9405
9406
  "div",
9406
9407
  {
9407
9408
  onPointerdown: onPointerDown,