@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
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) =>
|
|
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
|
|
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(() => {
|