@jvs-milkdown/crepe 1.2.10 → 1.2.11

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.
Files changed (40) hide show
  1. package/lib/cjs/feature/block-edit/index.js +1 -0
  2. package/lib/cjs/feature/block-edit/index.js.map +1 -1
  3. package/lib/cjs/feature/toolbar/index.js +5 -1
  4. package/lib/cjs/feature/toolbar/index.js.map +1 -1
  5. package/lib/cjs/index.js +7 -2
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/esm/feature/block-edit/index.js +1 -0
  8. package/lib/esm/feature/block-edit/index.js.map +1 -1
  9. package/lib/esm/feature/toolbar/index.js +5 -1
  10. package/lib/esm/feature/toolbar/index.js.map +1 -1
  11. package/lib/esm/index.js +7 -2
  12. package/lib/esm/index.js.map +1 -1
  13. package/lib/theme/common/block-edit.css +2 -1
  14. package/lib/tsconfig.tsbuildinfo +1 -1
  15. package/lib/types/feature/attachment/view/components/attachment-block.d.ts +1 -1
  16. package/lib/types/feature/attachment/view/components/attachment-block.d.ts.map +1 -1
  17. package/lib/types/feature/block-edit/handle/component.d.ts +17 -1
  18. package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -1
  19. package/lib/types/feature/block-edit/menu/component.d.ts +13 -1
  20. package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -1
  21. package/lib/types/feature/fixed-toolbar/component.d.ts +13 -1
  22. package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -1
  23. package/lib/types/feature/fixed-toolbar/document-header.d.ts +21 -1
  24. package/lib/types/feature/fixed-toolbar/document-header.d.ts.map +1 -1
  25. package/lib/types/feature/fixed-toolbar/menu-bar.d.ts +21 -1
  26. package/lib/types/feature/fixed-toolbar/menu-bar.d.ts.map +1 -1
  27. package/lib/types/feature/fixed-toolbar/outline-panel.d.ts +12 -1
  28. package/lib/types/feature/fixed-toolbar/outline-panel.d.ts.map +1 -1
  29. package/lib/types/feature/fixed-toolbar/shortcut-help-modal.d.ts +8 -1
  30. package/lib/types/feature/fixed-toolbar/shortcut-help-modal.d.ts.map +1 -1
  31. package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts +20 -2
  32. package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts.map +1 -1
  33. package/lib/types/feature/latex/inline-tooltip/component.d.ts +12 -1
  34. package/lib/types/feature/latex/inline-tooltip/component.d.ts.map +1 -1
  35. package/lib/types/feature/toolbar/component.d.ts +14 -1
  36. package/lib/types/feature/toolbar/component.d.ts.map +1 -1
  37. package/package.json +12 -5
  38. package/src/feature/block-edit/menu/index.ts +1 -0
  39. package/src/feature/toolbar/component.tsx +5 -1
  40. package/src/theme/common/block-edit.css +2 -1
package/lib/cjs/index.js CHANGED
@@ -3677,6 +3677,7 @@ class MenuView {
3677
3677
  this.hide = () => {
3678
3678
  __privateSet$5(this, _programmaticallyPos, null);
3679
3679
  __privateSet$5(this, _mode, null);
3680
+ __privateGet$5(this, _content$4).removeAttribute("data-mode");
3680
3681
  this.cancelHide();
3681
3682
  __privateGet$5(this, _slashProvider).hide();
3682
3683
  };
@@ -6220,7 +6221,11 @@ const Toolbar = vue.defineComponent({
6220
6221
  }
6221
6222
  });
6222
6223
  const nonHeadingGroups = toolbarGroupInfo.value.filter(
6223
- (group) => group.key !== "heading"
6224
+ (group) => {
6225
+ if (group.key === "heading") return false;
6226
+ if (props.isFixed && group.key === "function") return false;
6227
+ return true;
6228
+ }
6224
6229
  );
6225
6230
  const isSectionOverflowed = (idx) => idx >= overflowVisibleCount.value;
6226
6231
  const hasOverflow = overflowVisibleCount.value < totalSectionCount.value;
@@ -9611,7 +9616,7 @@ class FixedToolbarView {
9611
9616
  __privateGet$3(this, _view).dom.style.margin = isFull ? "0" : "0 auto";
9612
9617
  __privateGet$3(this, _view).dom.style.padding = `20px ${px} 0`;
9613
9618
  if (__privateGet$3(this, _headerContent)) {
9614
- __privateGet$3(this, _headerContent).style.margin = isFull ? "0" : "0 auto";
9619
+ __privateGet$3(this, _headerContent).style.margin = isFull && !viewState.showCover ? "0 auto" : "0";
9615
9620
  __privateGet$3(this, _headerContent).style.padding = `0px`;
9616
9621
  }
9617
9622
  vue.nextTick(() => {