@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/esm/index.js CHANGED
@@ -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
  };
@@ -6218,7 +6219,11 @@ const Toolbar = defineComponent({
6218
6219
  }
6219
6220
  });
6220
6221
  const nonHeadingGroups = toolbarGroupInfo.value.filter(
6221
- (group) => group.key !== "heading"
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;
@@ -9609,7 +9614,7 @@ class FixedToolbarView {
9609
9614
  __privateGet$3(this, _view).dom.style.margin = isFull ? "0" : "0 auto";
9610
9615
  __privateGet$3(this, _view).dom.style.padding = `20px ${px} 0`;
9611
9616
  if (__privateGet$3(this, _headerContent)) {
9612
- __privateGet$3(this, _headerContent).style.margin = isFull ? "0" : "0 auto";
9617
+ __privateGet$3(this, _headerContent).style.margin = isFull && !viewState.showCover ? "0 auto" : "0";
9613
9618
  __privateGet$3(this, _headerContent).style.padding = `0px`;
9614
9619
  }
9615
9620
  nextTick(() => {