@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.
- 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 +7 -2
- 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 +7 -2
- 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/block-edit/menu/index.ts +1 -0
- package/src/feature/toolbar/component.tsx +5 -1
- package/src/theme/common/block-edit.css +2 -1
|
@@ -4993,7 +4993,11 @@ const Toolbar = defineComponent({
|
|
|
4993
4993
|
}
|
|
4994
4994
|
});
|
|
4995
4995
|
const nonHeadingGroups = toolbarGroupInfo.value.filter(
|
|
4996
|
-
(group) =>
|
|
4996
|
+
(group) => {
|
|
4997
|
+
if (group.key === "heading") return false;
|
|
4998
|
+
if (props.isFixed && group.key === "function") return false;
|
|
4999
|
+
return true;
|
|
5000
|
+
}
|
|
4997
5001
|
);
|
|
4998
5002
|
const isSectionOverflowed = (idx) => idx >= overflowVisibleCount.value;
|
|
4999
5003
|
const hasOverflow = overflowVisibleCount.value < totalSectionCount.value;
|