quoin-editor 1.8.0 → 2.0.0
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/CHANGELOG.md +10 -1
- package/MIGRATION.md +137 -23
- package/README.md +8 -2
- package/dist/ai.cjs +34 -34
- package/dist/ai.js +3 -3
- package/dist/catalogue.cjs +21 -21
- package/dist/catalogue.js +12 -12
- package/dist/{chunk-VWYPO6SX.js → chunk-2UKI26JA.js} +5 -5
- package/dist/chunk-2UKI26JA.js.map +1 -0
- package/dist/{chunk-B3OBM6I4.cjs → chunk-4PIJC4FD.cjs} +16 -16
- package/dist/{chunk-5OZX2LV4.js → chunk-5X52BAZB.js} +5 -5
- package/dist/{chunk-5OZX2LV4.js.map → chunk-5X52BAZB.js.map} +1 -1
- package/dist/{chunk-PVFSJXYQ.cjs → chunk-5YAJZSTI.cjs} +18 -18
- package/dist/{chunk-53CNYRVQ.cjs → chunk-66OPHDFA.cjs} +50 -50
- package/dist/{chunk-EZX37R5D.js → chunk-6BVE46K7.js} +4 -4
- package/dist/{chunk-EZX37R5D.js.map → chunk-6BVE46K7.js.map} +1 -1
- package/dist/{chunk-MMS4D4MK.cjs → chunk-77CNOLHY.cjs} +3 -3
- package/dist/{chunk-DXUDBPG5.js → chunk-B4VCDJSA.js} +5 -5
- package/dist/{chunk-DXUDBPG5.js.map → chunk-B4VCDJSA.js.map} +1 -1
- package/dist/{chunk-4MCYQHFL.cjs → chunk-BYYCD54G.cjs} +2 -2
- package/dist/{chunk-BA5WXBGE.cjs → chunk-CJVJNMOB.cjs} +107 -101
- package/dist/{chunk-TQHFGSTT.cjs → chunk-D6CIIWCU.cjs} +30 -30
- package/dist/{chunk-NCDMQCZR.js → chunk-EU5IGKMP.js} +3 -3
- package/dist/{chunk-NCDMQCZR.js.map → chunk-EU5IGKMP.js.map} +1 -1
- package/dist/{chunk-7X3T7VXV.cjs → chunk-HOSDMHK6.cjs} +25 -25
- package/dist/{chunk-XKYNINUX.cjs → chunk-IKZSCTRF.cjs} +3 -3
- package/dist/{chunk-D4L5FINK.js → chunk-IW4TMECB.js} +3 -3
- package/dist/{chunk-D4L5FINK.js.map → chunk-IW4TMECB.js.map} +1 -1
- package/dist/{chunk-MRHDPXQ7.js → chunk-J2SVYBTC.js} +6 -6
- package/dist/chunk-J2SVYBTC.js.map +1 -0
- package/dist/{chunk-PHQMHXNG.js → chunk-KQPZTSW3.js} +4 -4
- package/dist/{chunk-PHQMHXNG.js.map → chunk-KQPZTSW3.js.map} +1 -1
- package/dist/{chunk-YVPZDTVZ.cjs → chunk-LEICOZYK.cjs} +2 -2
- package/dist/{chunk-SP4F5F6V.js → chunk-M77A3EGD.js} +3 -3
- package/dist/{chunk-SP4F5F6V.js.map → chunk-M77A3EGD.js.map} +1 -1
- package/dist/{chunk-VM567D6O.js → chunk-MAS4AEF4.js} +4 -4
- package/dist/{chunk-VM567D6O.js.map → chunk-MAS4AEF4.js.map} +1 -1
- package/dist/{chunk-EZWJRBQT.cjs → chunk-NFO3W644.cjs} +19 -19
- package/dist/{chunk-MSWA5ZZM.js → chunk-NL5J77VD.js} +202 -202
- package/dist/chunk-NL5J77VD.js.map +1 -0
- package/dist/{chunk-53FJFYBR.cjs → chunk-V4WQG7FR.cjs} +64 -64
- package/dist/{chunk-WOGCD7JN.js → chunk-YABGWOAV.js} +3 -3
- package/dist/{chunk-WOGCD7JN.js.map → chunk-YABGWOAV.js.map} +1 -1
- package/dist/{chunk-P6HC7RUN.cjs → chunk-Z6LAARPB.cjs} +199 -204
- package/dist/{chunk-Y4EJ6UBV.js → chunk-ZN5DHNSL.js} +15 -9
- package/dist/chunk-ZN5DHNSL.js.map +1 -0
- package/dist/comments.cjs +30 -30
- package/dist/comments.js +3 -3
- package/dist/diagram.cjs +6 -6
- package/dist/diagram.js +3 -3
- package/dist/embed.cjs +5 -5
- package/dist/embed.js +3 -3
- package/dist/emoji.cjs +6 -6
- package/dist/emoji.js +3 -3
- package/dist/find.cjs +7 -7
- package/dist/find.js +3 -3
- package/dist/headless.cjs +11 -31
- package/dist/headless.d.cts +4 -41
- package/dist/headless.d.ts +4 -41
- package/dist/headless.js +1 -1
- package/dist/highlight.cjs +3 -3
- package/dist/highlight.js +2 -2
- package/dist/index.cjs +23 -43
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/math.cjs +6 -6
- package/dist/math.js +4 -4
- package/dist/mention.cjs +6 -6
- package/dist/mention.js +4 -4
- package/dist/presence.cjs +12 -12
- package/dist/presence.js +3 -3
- package/dist/source.cjs +2 -2
- package/dist/source.js +2 -2
- package/dist/stats.cjs +6 -6
- package/dist/stats.js +3 -3
- package/dist/styles.css +2 -2
- package/dist/table.cjs +22 -22
- package/dist/table.js +3 -3
- package/dist/toc.cjs +6 -6
- package/dist/toc.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-MRHDPXQ7.js.map +0 -1
- package/dist/chunk-MSWA5ZZM.js.map +0 -1
- package/dist/chunk-VWYPO6SX.js.map +0 -1
- package/dist/chunk-Y4EJ6UBV.js.map +0 -1
package/dist/comments.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkLM3DHROX_cjs = require('./chunk-LM3DHROX.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkBYYCD54G_cjs = require('./chunk-BYYCD54G.cjs');
|
|
6
|
+
var chunkCJVJNMOB_cjs = require('./chunk-CJVJNMOB.cjs');
|
|
7
|
+
var chunkZ6LAARPB_cjs = require('./chunk-Z6LAARPB.cjs');
|
|
8
8
|
var chunkZWTIRGY5_cjs = require('./chunk-ZWTIRGY5.cjs');
|
|
9
9
|
require('./chunk-A6PGQVTR.cjs');
|
|
10
10
|
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
@@ -186,7 +186,7 @@ function create(editor, pending, onCreate, link) {
|
|
|
186
186
|
if (link.mounts === 0) return;
|
|
187
187
|
const tr = settledTransaction(editor, pending.key, id);
|
|
188
188
|
editor.dispatch(tr);
|
|
189
|
-
if (id === null) link.report(
|
|
189
|
+
if (id === null) link.report(chunkCJVJNMOB_cjs.toError(error));
|
|
190
190
|
else if (!tr.docChanged) link.report(new Error(`Comment thread ${id} has no text: it was deleted meanwhile`));
|
|
191
191
|
};
|
|
192
192
|
new Promise((resolve) => resolve(onCreate(input))).then(
|
|
@@ -290,7 +290,7 @@ function place(controller, box, gap) {
|
|
|
290
290
|
root.style.setProperty(HEIGHT, `${bottom}px`);
|
|
291
291
|
}
|
|
292
292
|
function useBlockAligned(controller, box, gap, key) {
|
|
293
|
-
|
|
293
|
+
chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
|
|
294
294
|
const element = box.current;
|
|
295
295
|
const view = element?.ownerDocument.defaultView;
|
|
296
296
|
if (!element || !view) return void 0;
|
|
@@ -334,10 +334,10 @@ function CommentMarkers({ env, box, entries, onOpen }) {
|
|
|
334
334
|
"data-rail-item": "",
|
|
335
335
|
"data-block": block,
|
|
336
336
|
"aria-label": env.labels.showComments(ids.length),
|
|
337
|
-
className:
|
|
337
|
+
className: chunkCJVJNMOB_cjs.cn("quoin-comments-marker", chunkCJVJNMOB_cjs.FOCUS_RING),
|
|
338
338
|
onClick: (event) => onOpen(ids[0], event.currentTarget),
|
|
339
339
|
children: [
|
|
340
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
340
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCJVJNMOB_cjs.MessageSquare, { "aria-hidden": "true" }),
|
|
341
341
|
ids.length
|
|
342
342
|
]
|
|
343
343
|
},
|
|
@@ -351,7 +351,7 @@ async function called(link, call) {
|
|
|
351
351
|
await call();
|
|
352
352
|
return true;
|
|
353
353
|
} catch (error) {
|
|
354
|
-
link.report(
|
|
354
|
+
link.report(chunkCJVJNMOB_cjs.toError(error));
|
|
355
355
|
return false;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
@@ -444,21 +444,21 @@ function ReplyBox({ env, threadId, first }) {
|
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
446
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
447
|
-
|
|
447
|
+
chunkCJVJNMOB_cjs.Button,
|
|
448
448
|
{
|
|
449
449
|
type: "submit",
|
|
450
450
|
variant: "ghost",
|
|
451
451
|
size: "icon-sm",
|
|
452
452
|
"aria-label": labels.send,
|
|
453
453
|
"aria-disabled": text === "" || sending || void 0,
|
|
454
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
454
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkCJVJNMOB_cjs.SendHorizontal, {})
|
|
455
455
|
}
|
|
456
456
|
)
|
|
457
457
|
] });
|
|
458
458
|
}
|
|
459
459
|
function ThreadView({ env, id, thread, onEnded }) {
|
|
460
460
|
const { controller, host, labels, link } = env;
|
|
461
|
-
const readOnly =
|
|
461
|
+
const readOnly = chunkZ6LAARPB_cjs.useReadOnly(controller);
|
|
462
462
|
const [busy, setBusy] = react.useState(false);
|
|
463
463
|
const alive = react.useRef(true);
|
|
464
464
|
const root = react.useRef(null);
|
|
@@ -483,7 +483,7 @@ function ThreadView({ env, id, thread, onEnded }) {
|
|
|
483
483
|
/* @__PURE__ */ jsxRuntime.jsx(ReplyBox, { env, threadId: id, first: comments.length === 0 }),
|
|
484
484
|
!readOnly && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-1", children: [
|
|
485
485
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
486
|
-
|
|
486
|
+
chunkCJVJNMOB_cjs.Button,
|
|
487
487
|
{
|
|
488
488
|
type: "button",
|
|
489
489
|
variant: "ghost",
|
|
@@ -494,7 +494,7 @@ function ThreadView({ env, id, thread, onEnded }) {
|
|
|
494
494
|
}
|
|
495
495
|
),
|
|
496
496
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
497
|
-
|
|
497
|
+
chunkCJVJNMOB_cjs.Button,
|
|
498
498
|
{
|
|
499
499
|
type: "button",
|
|
500
500
|
variant: "ghost",
|
|
@@ -531,7 +531,7 @@ function ThreadCard({ env, entry, active, expanded, onToggle }) {
|
|
|
531
531
|
ref: header,
|
|
532
532
|
type: "button",
|
|
533
533
|
"aria-expanded": expanded,
|
|
534
|
-
className:
|
|
534
|
+
className: chunkCJVJNMOB_cjs.cn("flex w-full flex-col items-start gap-1 rounded-sm text-start", chunkCJVJNMOB_cjs.FOCUS_RING),
|
|
535
535
|
onClick: () => onToggle(expanded ? null : thread.id),
|
|
536
536
|
children: [
|
|
537
537
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: removed ? "text-xs text-muted-foreground italic" : "quoin-comments-quote", children: removed ? labels.textRemoved : anchorText2 }),
|
|
@@ -597,7 +597,7 @@ function CommentsSheet({ env, entries, value, onToggle, onClose, returnFocus })
|
|
|
597
597
|
children: [
|
|
598
598
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
599
599
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { className: "text-sm font-semibold", children: labels.comments }),
|
|
600
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
600
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkCJVJNMOB_cjs.Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.close, children: /* @__PURE__ */ jsxRuntime.jsx(chunkCJVJNMOB_cjs.X, {}) }) })
|
|
601
601
|
] }),
|
|
602
602
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { "aria-label": labels.comments, className: "flex flex-col gap-2", children: entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
603
603
|
ThreadCard,
|
|
@@ -644,22 +644,22 @@ function ThreadChooser({ env, choices, onChoose }) {
|
|
|
644
644
|
var docOf = (state) => state.doc;
|
|
645
645
|
function focusIsOurs(controller, content) {
|
|
646
646
|
const active = content?.ownerDocument.activeElement ?? null;
|
|
647
|
-
return active === null || active === active.ownerDocument.body ||
|
|
647
|
+
return active === null || active === active.ownerDocument.body || chunkBYYCD54G_cjs.ownsNode(controller, active);
|
|
648
648
|
}
|
|
649
649
|
function ThreadPopover({ env, open, threads, onChoose, onClose }) {
|
|
650
650
|
const { controller, labels } = env;
|
|
651
|
-
const doc =
|
|
651
|
+
const doc = chunkZ6LAARPB_cjs.useEditorState(controller, docOf);
|
|
652
652
|
const anchors = commentAnchors(doc);
|
|
653
653
|
const { ids } = open;
|
|
654
654
|
const first = ids.map((id) => anchors.get(id)?.[0]).find(Boolean);
|
|
655
655
|
const latest = react.useRef(first);
|
|
656
|
-
|
|
656
|
+
chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
|
|
657
657
|
if (first) latest.current = first;
|
|
658
658
|
});
|
|
659
659
|
const anchor = react.useMemo(
|
|
660
660
|
() => ({
|
|
661
|
-
current:
|
|
662
|
-
() => latest.current ?
|
|
661
|
+
current: chunkCJVJNMOB_cjs.virtualAnchor(
|
|
662
|
+
() => latest.current ? chunkCJVJNMOB_cjs.rangeRect(controller, latest.current) : null,
|
|
663
663
|
() => latest.current && controller.registry.get(latest.current.block, latest.current.region)
|
|
664
664
|
)
|
|
665
665
|
}),
|
|
@@ -672,7 +672,7 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
|
|
|
672
672
|
target?.focus();
|
|
673
673
|
}
|
|
674
674
|
};
|
|
675
|
-
|
|
675
|
+
chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
|
|
676
676
|
if (open.focus) focusField();
|
|
677
677
|
}, [open]);
|
|
678
678
|
if (first === void 0 && latest.current === void 0) return null;
|
|
@@ -693,7 +693,7 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
|
|
|
693
693
|
};
|
|
694
694
|
const choices = ids.map((id) => ({ id, anchorText: textOf(id), preview: threads.find(id)?.comments[0]?.body ?? "" }));
|
|
695
695
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
696
|
-
|
|
696
|
+
chunkCJVJNMOB_cjs.Popover,
|
|
697
697
|
{
|
|
698
698
|
open: true,
|
|
699
699
|
modal: false,
|
|
@@ -701,9 +701,9 @@ function ThreadPopover({ env, open, threads, onChoose, onClose }) {
|
|
|
701
701
|
if (!next) onClose();
|
|
702
702
|
},
|
|
703
703
|
children: [
|
|
704
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
704
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCJVJNMOB_cjs.PopoverAnchor, { virtualRef: anchor }),
|
|
705
705
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
706
|
-
|
|
706
|
+
chunkCJVJNMOB_cjs.PopoverContent,
|
|
707
707
|
{
|
|
708
708
|
ref: content,
|
|
709
709
|
"aria-label": gone ? labels.textRemoved : single ? labels.thread(textOf(ids[0])) : labels.threadsHere,
|
|
@@ -751,7 +751,7 @@ function useAnchorClicks(controller, threads) {
|
|
|
751
751
|
var WIDE_CANVAS = 800;
|
|
752
752
|
function useCanvasWide(box, initial) {
|
|
753
753
|
const [wide, setWide] = react.useState(initial);
|
|
754
|
-
|
|
754
|
+
chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
|
|
755
755
|
const canvas = box.current?.parentElement;
|
|
756
756
|
if (!canvas) return void 0;
|
|
757
757
|
const measure = () => setWide(canvas.offsetWidth >= WIDE_CANVAS);
|
|
@@ -768,15 +768,15 @@ function useThreads(threads) {
|
|
|
768
768
|
var commentsOf = (state) => chunkFK7EBZPX_cjs.getPluginState(state, commentsKey);
|
|
769
769
|
var docOf2 = (state) => state.doc;
|
|
770
770
|
function CommentsOverlay({ controller, host, labels }) {
|
|
771
|
-
const { onError } =
|
|
771
|
+
const { onError } = chunkCJVJNMOB_cjs.useQuoin();
|
|
772
772
|
const link = linkOf(controller.editor);
|
|
773
|
-
|
|
773
|
+
chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
|
|
774
774
|
link.report = onError;
|
|
775
775
|
}, [link, onError]);
|
|
776
776
|
useAnchorClicks(controller, host.threads);
|
|
777
777
|
const threads = useThreads(host.threads);
|
|
778
|
-
const value =
|
|
779
|
-
const doc =
|
|
778
|
+
const value = chunkZ6LAARPB_cjs.useEditorState(controller, commentsOf);
|
|
779
|
+
const doc = chunkZ6LAARPB_cjs.useEditorState(controller, docOf2);
|
|
780
780
|
const entries = react.useMemo(() => railEntries(doc, threads, value.ended), [doc, threads, value.ended]);
|
|
781
781
|
const box = react.useRef(null);
|
|
782
782
|
const wide = useCanvasWide(box, host.initialLayout === "wide");
|
|
@@ -856,7 +856,7 @@ function watchEnded(editor, threads) {
|
|
|
856
856
|
var commentItem = (labels) => ({
|
|
857
857
|
id: "comment",
|
|
858
858
|
title: labels.comment,
|
|
859
|
-
icon:
|
|
859
|
+
icon: chunkCJVJNMOB_cjs.MessageSquarePlus,
|
|
860
860
|
shortcut: "Mod-Alt-m",
|
|
861
861
|
available: (state) => hasCommentableText(state) && chunkFK7EBZPX_cjs.getPluginState(state, commentsKey).pending.length === 0,
|
|
862
862
|
// Focus goes back to the text first: the button leaves the toolbar while the thread is being asked for.
|
package/dist/comments.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { webAddress } from './chunk-DBOZFNWU.js';
|
|
3
|
-
import { ownsNode } from './chunk-
|
|
4
|
-
import { MessageSquarePlus, useQuoin, MessageSquare, cn, FOCUS_RING, Button, X, virtualAnchor, rangeRect, Popover, PopoverAnchor, PopoverContent, toError, SendHorizontal } from './chunk-
|
|
5
|
-
import { useIsomorphicLayoutEffect, useEditorState, useReadOnly } from './chunk-
|
|
3
|
+
import { ownsNode } from './chunk-IW4TMECB.js';
|
|
4
|
+
import { MessageSquarePlus, useQuoin, MessageSquare, cn, FOCUS_RING, Button, X, virtualAnchor, rangeRect, Popover, PopoverAnchor, PopoverContent, toError, SendHorizontal } from './chunk-ZN5DHNSL.js';
|
|
5
|
+
import { useIsomorphicLayoutEffect, useEditorState, useReadOnly } from './chunk-NL5J77VD.js';
|
|
6
6
|
import { mergeLabels } from './chunk-DLQCTGC3.js';
|
|
7
7
|
import './chunk-HDJ653LM.js';
|
|
8
8
|
import { createPluginKey, defineExtension, getPluginState, isCollapsed, markRanges, Transaction, comparePos, textSelection, addMarkStep, sameSelection, removeMarkStep } from './chunk-5RBMZGKV.js';
|
package/dist/diagram.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunk77CNOLHY_cjs = require('./chunk-77CNOLHY.cjs');
|
|
5
|
+
require('./chunk-CJVJNMOB.cjs');
|
|
6
|
+
require('./chunk-Z6LAARPB.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "DEFAULT_DIAGRAM_LANGUAGES", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk77CNOLHY_cjs.DEFAULT_DIAGRAM_LANGUAGES; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "diagramExtension", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk77CNOLHY_cjs.diagramExtension; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "englishDiagramLabels", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk77CNOLHY_cjs.englishDiagramLabels; }
|
|
26
26
|
});
|
package/dist/diagram.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { DEFAULT_DIAGRAM_LANGUAGES, diagramExtension, englishDiagramLabels } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
export { DEFAULT_DIAGRAM_LANGUAGES, diagramExtension, englishDiagramLabels } from './chunk-EU5IGKMP.js';
|
|
3
|
+
import './chunk-ZN5DHNSL.js';
|
|
4
|
+
import './chunk-NL5J77VD.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
7
|
import './chunk-5RBMZGKV.js';
|
package/dist/embed.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk66OPHDFA_cjs = require('./chunk-66OPHDFA.cjs');
|
|
5
5
|
require('./chunk-LM3DHROX.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-CJVJNMOB.cjs');
|
|
7
|
+
require('./chunk-Z6LAARPB.cjs');
|
|
8
8
|
require('./chunk-ZWTIRGY5.cjs');
|
|
9
9
|
require('./chunk-A6PGQVTR.cjs');
|
|
10
10
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -15,9 +15,9 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "embedExtension", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk66OPHDFA_cjs.embedExtension; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "englishEmbedLabels", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk66OPHDFA_cjs.englishEmbedLabels; }
|
|
23
23
|
});
|
package/dist/embed.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { embedExtension, englishEmbedLabels } from './chunk-
|
|
2
|
+
export { embedExtension, englishEmbedLabels } from './chunk-KQPZTSW3.js';
|
|
3
3
|
import './chunk-DBOZFNWU.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-ZN5DHNSL.js';
|
|
5
|
+
import './chunk-NL5J77VD.js';
|
|
6
6
|
import './chunk-DLQCTGC3.js';
|
|
7
7
|
import './chunk-HDJ653LM.js';
|
|
8
8
|
import './chunk-5RBMZGKV.js';
|
package/dist/emoji.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkHOSDMHK6_cjs = require('./chunk-HOSDMHK6.cjs');
|
|
5
5
|
require('./chunk-2SWLD6R5.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-CJVJNMOB.cjs');
|
|
7
|
+
require('./chunk-Z6LAARPB.cjs');
|
|
8
8
|
require('./chunk-ZWTIRGY5.cjs');
|
|
9
9
|
require('./chunk-A6PGQVTR.cjs');
|
|
10
10
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "emojiExtension", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkHOSDMHK6_cjs.emojiExtension; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "englishEmojiLabels", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHOSDMHK6_cjs.englishEmojiLabels; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "loadEmojiData", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkHOSDMHK6_cjs.loadEmojiData; }
|
|
27
27
|
});
|
package/dist/emoji.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-
|
|
2
|
+
export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-MAS4AEF4.js';
|
|
3
3
|
import './chunk-KTUOPDVO.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-ZN5DHNSL.js';
|
|
5
|
+
import './chunk-NL5J77VD.js';
|
|
6
6
|
import './chunk-DLQCTGC3.js';
|
|
7
7
|
import './chunk-HDJ653LM.js';
|
|
8
8
|
import './chunk-5RBMZGKV.js';
|
package/dist/find.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunkNFO3W644_cjs = require('./chunk-NFO3W644.cjs');
|
|
5
|
+
require('./chunk-CJVJNMOB.cjs');
|
|
6
|
+
require('./chunk-Z6LAARPB.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -14,17 +14,17 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "englishFindLabels", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNFO3W644_cjs.englishFindLabels; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "findExtension", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNFO3W644_cjs.findExtension; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "findMatches", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkNFO3W644_cjs.findMatches; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "replaceMatches", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkNFO3W644_cjs.replaceMatches; }
|
|
30
30
|
});
|
package/dist/find.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { englishFindLabels, findExtension, findMatches, replaceMatches } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
export { englishFindLabels, findExtension, findMatches, replaceMatches } from './chunk-6BVE46K7.js';
|
|
3
|
+
import './chunk-ZN5DHNSL.js';
|
|
4
|
+
import './chunk-NL5J77VD.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
7
|
import './chunk-5RBMZGKV.js';
|
package/dist/headless.cjs
CHANGED
|
@@ -1,72 +1,52 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkZ6LAARPB_cjs = require('./chunk-Z6LAARPB.cjs');
|
|
5
5
|
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
6
6
|
var chunkDJU25PFC_cjs = require('./chunk-DJU25PFC.cjs');
|
|
7
7
|
var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
Object.defineProperty(exports, "BlockShell", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkP6HC7RUN_cjs.BlockShell; }
|
|
14
|
-
});
|
|
15
11
|
Object.defineProperty(exports, "EditableRegion", {
|
|
16
12
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZ6LAARPB_cjs.EditableRegion; }
|
|
18
14
|
});
|
|
19
15
|
Object.defineProperty(exports, "EditorView", {
|
|
20
16
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "SelectionSink", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkP6HC7RUN_cjs.SelectionSink; }
|
|
17
|
+
get: function () { return chunkZ6LAARPB_cjs.EditorView; }
|
|
26
18
|
});
|
|
27
19
|
Object.defineProperty(exports, "ViewController", {
|
|
28
20
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "VoidBlockFallback", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkP6HC7RUN_cjs.VoidBlockFallback; }
|
|
21
|
+
get: function () { return chunkZ6LAARPB_cjs.ViewController; }
|
|
34
22
|
});
|
|
35
23
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
36
24
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "defaultRenderers", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkP6HC7RUN_cjs.defaultRenderers; }
|
|
25
|
+
get: function () { return chunkZ6LAARPB_cjs.caretFromPoint; }
|
|
42
26
|
});
|
|
43
27
|
Object.defineProperty(exports, "domMapOf", {
|
|
44
28
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZ6LAARPB_cjs.domMapOf; }
|
|
46
30
|
});
|
|
47
31
|
Object.defineProperty(exports, "hostKey", {
|
|
48
32
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "isCrossSelection", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunkP6HC7RUN_cjs.isCrossSelection; }
|
|
33
|
+
get: function () { return chunkZ6LAARPB_cjs.hostKey; }
|
|
54
34
|
});
|
|
55
35
|
Object.defineProperty(exports, "renderInline", {
|
|
56
36
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZ6LAARPB_cjs.renderInline; }
|
|
58
38
|
});
|
|
59
39
|
Object.defineProperty(exports, "useEditorState", {
|
|
60
40
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZ6LAARPB_cjs.useEditorState; }
|
|
62
42
|
});
|
|
63
43
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
64
44
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZ6LAARPB_cjs.useQuoinEditor; }
|
|
66
46
|
});
|
|
67
47
|
Object.defineProperty(exports, "useViewController", {
|
|
68
48
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZ6LAARPB_cjs.useViewController; }
|
|
70
50
|
});
|
|
71
51
|
Object.defineProperty(exports, "Transaction", {
|
|
72
52
|
enumerable: true,
|
package/dist/headless.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RenderOptions, V as ViewController } from './node-reveal-DY6bimv3.cjs';
|
|
2
2
|
export { A as Announcer, a as AtomRenderer, E as Engagement, F as FocusTarget, H as HostEntry, b as HostRegistry, K as KeyInterceptor, N as NodeReveal, S as Spoken, c as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './node-reveal-DY6bimv3.cjs';
|
|
3
|
-
import { I as Inline,
|
|
4
|
-
export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.cjs';
|
|
3
|
+
import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.cjs';
|
|
4
|
+
export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, b as Selection, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.cjs';
|
|
5
5
|
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-Bzhq5AXj.cjs';
|
|
6
6
|
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-Bzhq5AXj.cjs';
|
|
7
7
|
import * as react from 'react';
|
|
@@ -31,12 +31,6 @@ type CaretPoint = {
|
|
|
31
31
|
};
|
|
32
32
|
declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: a host reads `anchor` and `head` of the public
|
|
36
|
-
* `Selection` to tell a selection that spans blocks or regions from one held inside a single region.
|
|
37
|
-
*/
|
|
38
|
-
declare function isCrossSelection(selection: Selection | null): boolean;
|
|
39
|
-
|
|
40
34
|
/** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
|
|
41
35
|
type BlockLabel = (block: EngineBlock, schema: Schema) => string;
|
|
42
36
|
|
|
@@ -115,36 +109,5 @@ type EditableRegionProps = {
|
|
|
115
109
|
};
|
|
116
110
|
declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
|
|
117
111
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
renderers: Readonly<Record<string, BlockRenderer>>;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws a shell for every block already,
|
|
124
|
-
* and a second shell for a block takes that block's registration with the controller from the first.
|
|
125
|
-
*/
|
|
126
|
-
declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
|
|
127
|
-
|
|
128
|
-
type SelectionSinkProps = {
|
|
129
|
-
label?: string;
|
|
130
|
-
blockLabel?: BlockLabel;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws one already, and a second sink
|
|
134
|
-
* takes the registration with the controller from the first.
|
|
135
|
-
*/
|
|
136
|
-
declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: a renderer of your own draws a block's text with
|
|
140
|
-
* `EditableRegion`, which is what each of these three does.
|
|
141
|
-
*/
|
|
142
|
-
declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: a block shell falls back to it already when no
|
|
145
|
-
* renderer draws a block's type.
|
|
146
|
-
*/
|
|
147
|
-
declare const VoidBlockFallback: BlockRenderer;
|
|
148
|
-
|
|
149
|
-
export { BlockShell, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Selection, SelectionSink, Transaction, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
150
|
-
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, BlockShellProps, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, SelectionSinkProps, UseQuoinEditorOptions };
|
|
112
|
+
export { Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
113
|
+
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
|
package/dist/headless.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RenderOptions, V as ViewController } from './node-reveal-BnFcnHhz.js';
|
|
2
2
|
export { A as Announcer, a as AtomRenderer, E as Engagement, F as FocusTarget, H as HostEntry, b as HostRegistry, K as KeyInterceptor, N as NodeReveal, S as Spoken, c as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './node-reveal-BnFcnHhz.js';
|
|
3
|
-
import { I as Inline,
|
|
4
|
-
export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.js';
|
|
3
|
+
import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.js';
|
|
4
|
+
export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, b as Selection, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.js';
|
|
5
5
|
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-DMuuDBVh.js';
|
|
6
6
|
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-DMuuDBVh.js';
|
|
7
7
|
import * as react from 'react';
|
|
@@ -31,12 +31,6 @@ type CaretPoint = {
|
|
|
31
31
|
};
|
|
32
32
|
declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: a host reads `anchor` and `head` of the public
|
|
36
|
-
* `Selection` to tell a selection that spans blocks or regions from one held inside a single region.
|
|
37
|
-
*/
|
|
38
|
-
declare function isCrossSelection(selection: Selection | null): boolean;
|
|
39
|
-
|
|
40
34
|
/** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
|
|
41
35
|
type BlockLabel = (block: EngineBlock, schema: Schema) => string;
|
|
42
36
|
|
|
@@ -115,36 +109,5 @@ type EditableRegionProps = {
|
|
|
115
109
|
};
|
|
116
110
|
declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
|
|
117
111
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
renderers: Readonly<Record<string, BlockRenderer>>;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws a shell for every block already,
|
|
124
|
-
* and a second shell for a block takes that block's registration with the controller from the first.
|
|
125
|
-
*/
|
|
126
|
-
declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
|
|
127
|
-
|
|
128
|
-
type SelectionSinkProps = {
|
|
129
|
-
label?: string;
|
|
130
|
-
blockLabel?: BlockLabel;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws one already, and a second sink
|
|
134
|
-
* takes the registration with the controller from the first.
|
|
135
|
-
*/
|
|
136
|
-
declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: a renderer of your own draws a block's text with
|
|
140
|
-
* `EditableRegion`, which is what each of these three does.
|
|
141
|
-
*/
|
|
142
|
-
declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated Internal to the view layer and removed in 2.0.0: a block shell falls back to it already when no
|
|
145
|
-
* renderer draws a block's type.
|
|
146
|
-
*/
|
|
147
|
-
declare const VoidBlockFallback: BlockRenderer;
|
|
148
|
-
|
|
149
|
-
export { BlockShell, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Selection, SelectionSink, Transaction, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
150
|
-
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, BlockShellProps, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, SelectionSinkProps, UseQuoinEditorOptions };
|
|
112
|
+
export { Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
113
|
+
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
|
package/dist/headless.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export {
|
|
2
|
+
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-NL5J77VD.js';
|
|
3
3
|
export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-5RBMZGKV.js';
|
|
4
4
|
export { diffBlocks, diffInline } from './chunk-CSPCDVCT.js';
|
|
5
5
|
export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-7Y4B7NHO.js';
|
package/dist/highlight.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk2SWLD6R5_cjs = require('./chunk-2SWLD6R5.cjs');
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkCJVJNMOB_cjs = require('./chunk-CJVJNMOB.cjs');
|
|
6
|
+
require('./chunk-Z6LAARPB.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -16,7 +16,7 @@ var NEAREST = { dockerfile: "docker", html: "markup", xml: "markup", shell: "bas
|
|
|
16
16
|
function grammarName(language) {
|
|
17
17
|
const key = language.trim().toLowerCase();
|
|
18
18
|
if (key === "") return void 0;
|
|
19
|
-
const known =
|
|
19
|
+
const known = chunkCJVJNMOB_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
|
|
20
20
|
return known && (NEAREST[known.id] ?? known.id);
|
|
21
21
|
}
|
|
22
22
|
|