markloom 0.5.0 → 0.5.1
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/collab.md +3 -1
- package/dist/ai/index.cjs +2 -2
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/index.js +1 -1
- package/dist/{chunk-6DCI7AL3.js → chunk-4JSJAHTB.js} +52 -5
- package/dist/{chunk-AC5E42NH.cjs → chunk-ALZ3A5CS.cjs} +60 -13
- package/dist/{chunk-JMOJU5EU.js → chunk-FCH7LZFI.js} +19 -13
- package/dist/{chunk-YJAWPRJW.cjs → chunk-VXM7Q6P5.cjs} +523 -247
- package/dist/{chunk-SLRD6FMP.cjs → chunk-YIFOGP2D.cjs} +19 -13
- package/dist/{chunk-WUHTCCAE.js → chunk-ZMTLSFLO.js} +287 -11
- package/dist/{client-A0ZQJnyR.d.ts → client-6KiH4kGK.d.ts} +7 -0
- package/dist/{client-BNams4wv.d.cts → client-ZRZj2nkq.d.cts} +7 -0
- package/dist/collab/index.cjs +8 -2
- package/dist/collab/index.d.cts +9 -1
- package/dist/collab/index.d.ts +9 -1
- package/dist/collab/index.js +7 -1
- package/dist/{controller-BkY1VPzc.d.ts → controller-BNuuUM3E.d.ts} +10 -2
- package/dist/{controller-CVIZI--A.d.cts → controller-DQITsFhy.d.cts} +10 -2
- package/dist/react/index.cjs +4 -4
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +3 -3
- package/dist/view/index.cjs +7 -7
- package/dist/view/index.d.cts +3 -3
- package/dist/view/index.d.ts +3 -3
- package/dist/view/index.js +3 -3
- package/dist/view/theme.css +72 -0
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { MutableRefObject } from 'react';
|
|
3
3
|
import { E as ElementNode } from '../step-BrvHIK7O.js';
|
|
4
|
-
import { E as EditorOptions, k as Editor } from '../controller-
|
|
4
|
+
import { E as EditorOptions, k as Editor } from '../controller-BNuuUM3E.js';
|
|
5
5
|
import 'preact';
|
|
6
6
|
import '../comments-PhnR7Gkn.js';
|
|
7
|
-
import '../client-
|
|
7
|
+
import '../client-6KiH4kGK.js';
|
|
8
8
|
|
|
9
9
|
declare function useMarkloom(initialDoc: ElementNode, opts?: EditorOptions): {
|
|
10
10
|
ref: react.RefObject<HTMLDivElement | null>;
|
package/dist/react/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Editor
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZMTLSFLO.js";
|
|
4
4
|
import "../chunk-LEYAQNJA.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-FCH7LZFI.js";
|
|
6
6
|
import "../chunk-MFYF2A6U.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-4JSJAHTB.js";
|
|
8
8
|
import "../chunk-RLTHVQNQ.js";
|
|
9
9
|
import "../chunk-LA5SBCGQ.js";
|
|
10
10
|
|
package/dist/view/index.cjs
CHANGED
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkVXM7Q6P5cjs = require('../chunk-VXM7Q6P5.cjs');
|
|
83
83
|
require('../chunk-YXQDCW4Y.cjs');
|
|
84
84
|
|
|
85
85
|
|
|
@@ -91,9 +91,9 @@ require('../chunk-YXQDCW4Y.cjs');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkYIFOGP2Dcjs = require('../chunk-YIFOGP2D.cjs');
|
|
95
95
|
require('../chunk-4TMHVNL6.cjs');
|
|
96
|
-
require('../chunk-
|
|
96
|
+
require('../chunk-ALZ3A5CS.cjs');
|
|
97
97
|
require('../chunk-JS527FDV.cjs');
|
|
98
98
|
require('../chunk-GQ2HHRGI.cjs');
|
|
99
99
|
|
|
@@ -166,7 +166,7 @@ function subRule() {
|
|
|
166
166
|
{ kind: "deleteText", path: ctx.leafPath, offset: at, length: eaten },
|
|
167
167
|
{ kind: "insertText", path: ctx.leafPath, offset: at, text: s.to }
|
|
168
168
|
];
|
|
169
|
-
return { steps, selection:
|
|
169
|
+
return { steps, selection: _chunkVXM7Q6P5cjs.caret.call(void 0, ctx.leafPath.concat(at + s.to.length)) };
|
|
170
170
|
}
|
|
171
171
|
return null;
|
|
172
172
|
}
|
|
@@ -180,7 +180,7 @@ function quoteRule(quote, open, close) {
|
|
|
180
180
|
const prev = ctx.marker.slice(-1);
|
|
181
181
|
const to = prev === "" || prev === " " || prev === "\n" || prev === " " || prev === "(" || prev === "[" || prev === "{" ? open : close;
|
|
182
182
|
const steps = [{ kind: "insertText", path: ctx.leafPath, offset: ctx.offset, text: to }];
|
|
183
|
-
return { steps, selection:
|
|
183
|
+
return { steps, selection: _chunkVXM7Q6P5cjs.caret.call(void 0, ctx.leafPath.concat(ctx.offset + to.length)) };
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
}
|
|
@@ -256,7 +256,7 @@ function emojiRule() {
|
|
|
256
256
|
{ kind: "deleteText", path: ctx.leafPath, offset: at, length: eaten },
|
|
257
257
|
{ kind: "insertText", path: ctx.leafPath, offset: at, text: glyph }
|
|
258
258
|
];
|
|
259
|
-
return { steps, selection:
|
|
259
|
+
return { steps, selection: _chunkVXM7Q6P5cjs.caret.call(void 0, ctx.leafPath.concat(at + glyph.length)) };
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
}
|
|
@@ -368,4 +368,4 @@ var comments = {
|
|
|
368
368
|
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
exports.CALLOUT_VARIANTS =
|
|
371
|
+
exports.CALLOUT_VARIANTS = _chunkVXM7Q6P5cjs.CALLOUT_VARIANTS; exports.CommentPanel = _chunkVXM7Q6P5cjs.CommentPanel; exports.Editor = _chunkVXM7Q6P5cjs.Editor; exports.MentionMenu = _chunkVXM7Q6P5cjs.MentionMenu; exports.MentionPopovers = _chunkVXM7Q6P5cjs.MentionPopovers; exports.TocPanel = _chunkVXM7Q6P5cjs.TocPanel; exports.askInput = _chunkVXM7Q6P5cjs.askInput; exports.askLinkPopover = _chunkVXM7Q6P5cjs.askLinkPopover; exports.atomIsSelected = _chunkVXM7Q6P5cjs.atomIsSelected; exports.blockExtensions = _chunkVXM7Q6P5cjs.blockExtensions; exports.blockPlainText = _chunkYIFOGP2Dcjs.blockPlainText; exports.blockTransform = _chunkVXM7Q6P5cjs.blockTransform; exports.boldMark = _chunkVXM7Q6P5cjs.boldMark; exports.bubbleMenu = _chunkVXM7Q6P5cjs.bubbleMenu; exports.calloutVariantFromQuery = _chunkVXM7Q6P5cjs.calloutVariantFromQuery; exports.caret = _chunkVXM7Q6P5cjs.caret; exports.chord = _chunkVXM7Q6P5cjs.chord; exports.closeAskInput = _chunkVXM7Q6P5cjs.closeAskInput; exports.codeBlock = _chunkVXM7Q6P5cjs.codeBlock; exports.codeControls = _chunkVXM7Q6P5cjs.codeControls; exports.codeMark = _chunkVXM7Q6P5cjs.codeMark; exports.comments = comments; exports.cycleCalloutVariant = _chunkVXM7Q6P5cjs.cycleCalloutVariant; exports.decorationExtensions = _chunkVXM7Q6P5cjs.decorationExtensions; exports.defaultBlockRenderers = _chunkVXM7Q6P5cjs.defaultBlockRenderers; exports.defaultBlockTag = _chunkVXM7Q6P5cjs.defaultBlockTag; exports.defaultMarkTag = _chunkVXM7Q6P5cjs.defaultMarkTag; exports.diffSpan = _chunkVXM7Q6P5cjs.diffSpan; exports.domToPoint = _chunkYIFOGP2Dcjs.domToPoint; exports.dragHandle = _chunkVXM7Q6P5cjs.dragHandle; exports.elementChildren = _chunkYIFOGP2Dcjs.elementChildren; exports.embedBlock = _chunkVXM7Q6P5cjs.embedBlock; exports.emoji = emoji; exports.focusBlockId = _chunkYIFOGP2Dcjs.focusBlockId; exports.highlightMark = _chunkVXM7Q6P5cjs.highlightMark; exports.history = _chunkVXM7Q6P5cjs.history; exports.hrBlock = _chunkVXM7Q6P5cjs.hrBlock; exports.imageBlock = _chunkVXM7Q6P5cjs.imageBlock; exports.indentItem = _chunkVXM7Q6P5cjs.indentItem; exports.inputRules = _chunkVXM7Q6P5cjs.inputRules; exports.invisibleCharacters = invisibleCharacters; exports.isAtom = _chunkVXM7Q6P5cjs.isAtom; exports.isOpaque = _chunkVXM7Q6P5cjs.isOpaque; exports.italicMark = _chunkVXM7Q6P5cjs.italicMark; exports.leafText = _chunkVXM7Q6P5cjs.leafText; exports.lineBoundaryBack = _chunkVXM7Q6P5cjs.lineBoundaryBack; exports.lineBoundaryFwd = _chunkVXM7Q6P5cjs.lineBoundaryFwd; exports.linkMark = _chunkVXM7Q6P5cjs.linkMark; exports.mapInput = _chunkVXM7Q6P5cjs.mapInput; exports.mapPaste = _chunkVXM7Q6P5cjs.mapPaste; exports.mapPasteBlocks = _chunkVXM7Q6P5cjs.mapPasteBlocks; exports.markExtensions = _chunkVXM7Q6P5cjs.markExtensions; exports.markloomKit = _chunkVXM7Q6P5cjs.markloomKit; exports.marksAtCaret = _chunkVXM7Q6P5cjs.marksAtCaret; exports.mentionMenu = _chunkVXM7Q6P5cjs.mentionMenu; exports.mergeTextStyleAttrs = _chunkVXM7Q6P5cjs.mergeTextStyleAttrs; exports.normalizeLinkUrl = _chunkVXM7Q6P5cjs.normalizeLinkUrl; exports.outdentItem = _chunkVXM7Q6P5cjs.outdentItem; exports.pointToDom = _chunkYIFOGP2Dcjs.pointToDom; exports.readSelection = _chunkYIFOGP2Dcjs.readSelection; exports.renderCode = _chunkVXM7Q6P5cjs.renderCode; exports.renderDoc = _chunkVXM7Q6P5cjs.renderDoc; exports.renderEmbed = _chunkVXM7Q6P5cjs.renderEmbed; exports.renderHr = _chunkVXM7Q6P5cjs.renderHr; exports.renderImage = _chunkVXM7Q6P5cjs.renderImage; exports.renderTable = _chunkVXM7Q6P5cjs.renderTable; exports.renderToHtml = _chunkVXM7Q6P5cjs.renderToHtml; exports.resolve = _chunkVXM7Q6P5cjs.resolve; exports.rootEl = _chunkYIFOGP2Dcjs.rootEl; exports.safeCssValue = _chunkVXM7Q6P5cjs.safeCssValue; exports.serializeSelection = _chunkVXM7Q6P5cjs.serializeSelection; exports.setAlign = _chunkVXM7Q6P5cjs.setAlign; exports.setCalloutVariant = _chunkVXM7Q6P5cjs.setCalloutVariant; exports.setTextStyle = _chunkVXM7Q6P5cjs.setTextStyle; exports.shikiCodeView = shikiCodeView; exports.slashMenu = _chunkVXM7Q6P5cjs.slashMenu; exports.startAiWrite = _chunkYIFOGP2Dcjs.startAiWrite; exports.strikeMark = _chunkVXM7Q6P5cjs.strikeMark; exports.subscriptMark = _chunkVXM7Q6P5cjs.subscriptMark; exports.superscriptMark = _chunkVXM7Q6P5cjs.superscriptMark; exports.tableBlock = _chunkVXM7Q6P5cjs.tableBlock; exports.textAlign = _chunkVXM7Q6P5cjs.textAlign; exports.textStyleCss = _chunkVXM7Q6P5cjs.textStyleCss; exports.textStyleMark = _chunkVXM7Q6P5cjs.textStyleMark; exports.toggleMark = _chunkVXM7Q6P5cjs.toggleMark; exports.toggleMarkList = _chunkVXM7Q6P5cjs.toggleMarkList; exports.twitchChannel = _chunkVXM7Q6P5cjs.twitchChannel; exports.typography = typography; exports.underlineMark = _chunkVXM7Q6P5cjs.underlineMark; exports.wordBoundaryBack = _chunkVXM7Q6P5cjs.wordBoundaryBack; exports.wordBoundaryFwd = _chunkVXM7Q6P5cjs.wordBoundaryFwd; exports.wrapList = _chunkVXM7Q6P5cjs.wrapList; exports.writeSelection = _chunkYIFOGP2Dcjs.writeSelection; exports.youtubeId = _chunkVXM7Q6P5cjs.youtubeId;
|
package/dist/view/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as NodeView, l as Extension } from '../controller-
|
|
2
|
-
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-
|
|
1
|
+
import { N as NodeView, l as Extension } from '../controller-DQITsFhy.cjs';
|
|
2
|
+
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-DQITsFhy.cjs';
|
|
3
3
|
import { E as ElementNode, a as Position, N as Node, c as Selection, S as Step } from '../step-BrvHIK7O.cjs';
|
|
4
4
|
import { C as CommentAuthor, c as CommentThread, b as CommentRenderState } from '../comments-DlExS6f-.cjs';
|
|
5
5
|
import 'preact';
|
|
6
|
-
import '../client-
|
|
6
|
+
import '../client-ZRZj2nkq.cjs';
|
|
7
7
|
|
|
8
8
|
declare function shikiCodeView(highlight: (code: string, lang?: string) => string, langs?: () => string[]): NodeView;
|
|
9
9
|
|
package/dist/view/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as NodeView, l as Extension } from '../controller-
|
|
2
|
-
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-
|
|
1
|
+
import { N as NodeView, l as Extension } from '../controller-BNuuUM3E.js';
|
|
2
|
+
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-BNuuUM3E.js';
|
|
3
3
|
import { E as ElementNode, a as Position, N as Node, c as Selection, S as Step } from '../step-BrvHIK7O.js';
|
|
4
4
|
import { C as CommentAuthor, c as CommentThread, b as CommentRenderState } from '../comments-PhnR7Gkn.js';
|
|
5
5
|
import 'preact';
|
|
6
|
-
import '../client-
|
|
6
|
+
import '../client-6KiH4kGK.js';
|
|
7
7
|
|
|
8
8
|
declare function shikiCodeView(highlight: (code: string, lang?: string) => string, langs?: () => string[]): NodeView;
|
|
9
9
|
|
package/dist/view/index.js
CHANGED
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
wordBoundaryFwd,
|
|
80
80
|
wrapList,
|
|
81
81
|
youtubeId
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-ZMTLSFLO.js";
|
|
83
83
|
import "../chunk-LEYAQNJA.js";
|
|
84
84
|
import {
|
|
85
85
|
blockPlainText,
|
|
@@ -91,9 +91,9 @@ import {
|
|
|
91
91
|
rootEl,
|
|
92
92
|
startAiWrite,
|
|
93
93
|
writeSelection
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-FCH7LZFI.js";
|
|
95
95
|
import "../chunk-MFYF2A6U.js";
|
|
96
|
-
import "../chunk-
|
|
96
|
+
import "../chunk-4JSJAHTB.js";
|
|
97
97
|
import "../chunk-RLTHVQNQ.js";
|
|
98
98
|
import "../chunk-LA5SBCGQ.js";
|
|
99
99
|
|
package/dist/view/theme.css
CHANGED
|
@@ -2625,3 +2625,75 @@ html.markloom-toc-open,
|
|
|
2625
2625
|
text-decoration-color: rgba(255, 255, 255, 0.28);
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
|
+
|
|
2629
|
+
/* ── 协作在场(飞书式头像条 + 远端彩光标) ── */
|
|
2630
|
+
.markloom-collab-rail {
|
|
2631
|
+
position: sticky;
|
|
2632
|
+
top: 0;
|
|
2633
|
+
z-index: 40;
|
|
2634
|
+
display: flex;
|
|
2635
|
+
justify-content: flex-end;
|
|
2636
|
+
pointer-events: none;
|
|
2637
|
+
padding: 8px 12px 0;
|
|
2638
|
+
margin: 0 0 4px;
|
|
2639
|
+
}
|
|
2640
|
+
.markloom-collab-avatars {
|
|
2641
|
+
display: flex;
|
|
2642
|
+
flex-direction: row;
|
|
2643
|
+
align-items: center;
|
|
2644
|
+
pointer-events: auto;
|
|
2645
|
+
}
|
|
2646
|
+
.markloom-collab-avatar {
|
|
2647
|
+
width: 28px;
|
|
2648
|
+
height: 28px;
|
|
2649
|
+
border-radius: 50%;
|
|
2650
|
+
background: var(--collab-c, #3370ff);
|
|
2651
|
+
color: #fff;
|
|
2652
|
+
font-size: 12px;
|
|
2653
|
+
font-weight: 600;
|
|
2654
|
+
line-height: 28px;
|
|
2655
|
+
text-align: center;
|
|
2656
|
+
border: 2px solid var(--bg-page, #fff);
|
|
2657
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
|
|
2658
|
+
margin-left: -8px;
|
|
2659
|
+
cursor: default;
|
|
2660
|
+
user-select: none;
|
|
2661
|
+
}
|
|
2662
|
+
.markloom-collab-avatar:first-child {
|
|
2663
|
+
margin-left: 0;
|
|
2664
|
+
}
|
|
2665
|
+
.markloom-collab-avatar.is-self {
|
|
2666
|
+
box-shadow: 0 0 0 2px var(--collab-c, #3370ff), 0 1px 2px rgba(0, 0, 0, 0.12);
|
|
2667
|
+
}
|
|
2668
|
+
.markloom-collab-carets {
|
|
2669
|
+
position: absolute;
|
|
2670
|
+
inset: 0;
|
|
2671
|
+
pointer-events: none;
|
|
2672
|
+
z-index: 35;
|
|
2673
|
+
overflow: visible;
|
|
2674
|
+
}
|
|
2675
|
+
.markloom-collab-caret {
|
|
2676
|
+
position: absolute;
|
|
2677
|
+
width: 2px;
|
|
2678
|
+
background: var(--collab-c, #3370ff);
|
|
2679
|
+
border-radius: 1px;
|
|
2680
|
+
transform: translateX(-1px);
|
|
2681
|
+
pointer-events: none;
|
|
2682
|
+
}
|
|
2683
|
+
.markloom-collab-caret-lab {
|
|
2684
|
+
position: absolute;
|
|
2685
|
+
left: 0;
|
|
2686
|
+
top: -18px;
|
|
2687
|
+
max-width: 120px;
|
|
2688
|
+
overflow: hidden;
|
|
2689
|
+
text-overflow: ellipsis;
|
|
2690
|
+
white-space: nowrap;
|
|
2691
|
+
padding: 1px 6px;
|
|
2692
|
+
border-radius: 3px 3px 3px 0;
|
|
2693
|
+
background: var(--collab-c, #3370ff);
|
|
2694
|
+
color: #fff;
|
|
2695
|
+
font-size: 11px;
|
|
2696
|
+
font-weight: 500;
|
|
2697
|
+
line-height: 16px;
|
|
2698
|
+
pointer-events: none;
|
|
2699
|
+
}
|
package/package.json
CHANGED