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