@brainfish-ai/editor 0.16.4 → 0.16.6
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/dist/{index-B72hrXZp.js → index-BF3QEceb.js} +2 -2
- package/dist/{index-BL3BrmJG.js → index-BQ9hNAwQ.js} +71 -44
- package/dist/{index-4Mg03NZ0.js → index-B_wnKvZN.js} +2 -2
- package/dist/{index-F6dIPhGZ.js → index-BiM8Hf-C.js} +2 -2
- package/dist/{index-DKpql_7V.js → index-BiSmwTu2.js} +2 -2
- package/dist/{index-BFdVwXxe.js → index-Bp8jLtVF.js} +2 -2
- package/dist/{index-ImG4tGZ8.js → index-BqMzvoZC.js} +2 -2
- package/dist/{index-DOSUqw2E.js → index-ByIZ0_XB.js} +2 -2
- package/dist/{index-Ce_sp8_S.js → index-C812yPFx.js} +2 -2
- package/dist/{index-BdcQa21o.js → index-CUKL0Bom.js} +2 -2
- package/dist/{index-B44gf6lc.js → index-CY8-92I_.js} +2 -2
- package/dist/{index-BzH29qwV.js → index-CZ6tpHjR.js} +4 -4
- package/dist/{index-DH5dBgli.js → index-Cmsnf9PT.js} +4 -4
- package/dist/{index-Ck4GUp6S.js → index-CpxEK35e.js} +2 -2
- package/dist/{index-C7heuyel.js → index-CrG3VurH.js} +3 -3
- package/dist/{index-BiT1CaUK.js → index-CyX6cUes.js} +3 -3
- package/dist/{index-CIzWSWLU.js → index-DCxetMm4.js} +1 -1
- package/dist/{index-BkpCLtjh.js → index-DSvrOKbg.js} +4 -4
- package/dist/{index-BuU-LxbL.js → index-DcqPFMzT.js} +3 -3
- package/dist/{index-DRSHBn8E.js → index-DcyFSjdK.js} +2 -2
- package/dist/{index-D_DH6CLj.js → index-DijqTwWD.js} +3 -3
- package/dist/{index-CvcXtLfn.js → index-DjKhXPGe.js} +3 -3
- package/dist/{index-DnZLLzeC.js → index-DqB55268.js} +2 -2
- package/dist/{index-MGiiJ6ZI.js → index-i2i7s9j8.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/plugins/mentions/core/types.d.ts +1 -0
- package/dist/plugins/mentions/index.d.ts +1 -0
- package/dist/plugins/mentions/ui/node-view.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, Q as EditorView, I as syntaxTree, R as EditorSelection, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, D as foldNodeProp, a9 as bracketMatchingHandle } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, Q as EditorView, I as syntaxTree, R as EditorSelection, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, D as foldNodeProp, a9 as bracketMatchingHandle } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const StartTag = 1,
|
|
@@ -41816,9 +41816,28 @@ function mentionContextFromNode(attrs, anchor, close) {
|
|
|
41816
41816
|
close
|
|
41817
41817
|
};
|
|
41818
41818
|
}
|
|
41819
|
+
const labelUpdaters = /* @__PURE__ */ new WeakMap();
|
|
41820
|
+
function updateMentionLabel(pill, label) {
|
|
41821
|
+
const update = labelUpdaters.get(pill);
|
|
41822
|
+
update?.(label);
|
|
41823
|
+
return Boolean(update);
|
|
41824
|
+
}
|
|
41819
41825
|
const MentionNodeView = () => {
|
|
41820
41826
|
const { node, selected, view, getPos } = useNodeViewContext();
|
|
41821
41827
|
const pillRef = useRef(null);
|
|
41828
|
+
useEffect(() => {
|
|
41829
|
+
const pill = pillRef.current;
|
|
41830
|
+
if (!pill) return;
|
|
41831
|
+
labelUpdaters.set(pill, (label) => {
|
|
41832
|
+
const pos = getPos();
|
|
41833
|
+
const current = typeof pos === "number" ? view.state.doc.nodeAt(pos) : null;
|
|
41834
|
+
if (typeof pos !== "number" || !current) return;
|
|
41835
|
+
view.dispatch(view.state.tr.setNodeMarkup(pos, void 0, { ...current.attrs, label }));
|
|
41836
|
+
});
|
|
41837
|
+
return () => {
|
|
41838
|
+
labelUpdaters.delete(pill);
|
|
41839
|
+
};
|
|
41840
|
+
}, [view, getPos]);
|
|
41822
41841
|
const providers = useMentionProviders();
|
|
41823
41842
|
const parsed = mentionAttrsFromNode({
|
|
41824
41843
|
type: node.attrs.type,
|
|
@@ -41841,22 +41860,30 @@ const MentionNodeView = () => {
|
|
|
41841
41860
|
const [content, setContent] = useState(null);
|
|
41842
41861
|
const setPreviewOpen = (next) => {
|
|
41843
41862
|
if (!canPreview) return;
|
|
41844
|
-
if (next) {
|
|
41845
|
-
|
|
41846
|
-
|
|
41847
|
-
|
|
41848
|
-
provider.onClick(
|
|
41849
|
-
mentionContextFromNode(
|
|
41850
|
-
{ type: parsed.type, id: parsed.id, label: parsed.label, extra: parsed.extra },
|
|
41851
|
-
anchor,
|
|
41852
|
-
() => setPreviewOpen(false)
|
|
41853
|
-
)
|
|
41854
|
-
)
|
|
41855
|
-
);
|
|
41863
|
+
if (!next) {
|
|
41864
|
+
setOpen(false);
|
|
41865
|
+
setContent(null);
|
|
41866
|
+
return;
|
|
41856
41867
|
}
|
|
41857
|
-
|
|
41868
|
+
const anchor = pillRef.current;
|
|
41869
|
+
if (!anchor || !provider?.onClick) return;
|
|
41870
|
+
const nextContent = provider.onClick(
|
|
41871
|
+
mentionContextFromNode(
|
|
41872
|
+
{ type: parsed.type, id: parsed.id, label: parsed.label, extra: parsed.extra },
|
|
41873
|
+
anchor,
|
|
41874
|
+
() => setPreviewOpen(false)
|
|
41875
|
+
)
|
|
41876
|
+
);
|
|
41877
|
+
if (nextContent == null || nextContent === false) {
|
|
41878
|
+
setOpen(false);
|
|
41879
|
+
setContent(null);
|
|
41880
|
+
return;
|
|
41881
|
+
}
|
|
41882
|
+
setContent(nextContent);
|
|
41883
|
+
setOpen(true);
|
|
41858
41884
|
};
|
|
41859
|
-
|
|
41885
|
+
const showPopover = open && content != null && content !== false;
|
|
41886
|
+
return /* @__PURE__ */ jsxs(Popover, { open: showPopover, onOpenChange: setPreviewOpen, modal: true, children: [
|
|
41860
41887
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
41861
41888
|
"span",
|
|
41862
41889
|
{
|
|
@@ -41898,7 +41925,7 @@ const MentionNodeView = () => {
|
|
|
41898
41925
|
]
|
|
41899
41926
|
}
|
|
41900
41927
|
) }),
|
|
41901
|
-
/* @__PURE__ */ jsx(
|
|
41928
|
+
showPopover ? /* @__PURE__ */ jsx(
|
|
41902
41929
|
PopoverContent,
|
|
41903
41930
|
{
|
|
41904
41931
|
align: "start",
|
|
@@ -41915,7 +41942,7 @@ const MentionNodeView = () => {
|
|
|
41915
41942
|
},
|
|
41916
41943
|
children: /* @__PURE__ */ jsx("div", { className: "p-1.5", children: content })
|
|
41917
41944
|
}
|
|
41918
|
-
)
|
|
41945
|
+
) : null
|
|
41919
41946
|
] });
|
|
41920
41947
|
};
|
|
41921
41948
|
function configureMentionNodeView(ctx, nodeViewFactory) {
|
|
@@ -70405,7 +70432,7 @@ function legacy(parser) {
|
|
|
70405
70432
|
return new LanguageSupport(StreamLanguage.define(parser));
|
|
70406
70433
|
}
|
|
70407
70434
|
function sql(dialectName) {
|
|
70408
|
-
return import('./index-
|
|
70435
|
+
return import('./index-i2i7s9j8.js').then(m => m.sql({ dialect: m[dialectName] }));
|
|
70409
70436
|
}
|
|
70410
70437
|
/**
|
|
70411
70438
|
An array of language descriptions for known language packages.
|
|
@@ -70416,7 +70443,7 @@ const languages = [
|
|
|
70416
70443
|
name: "C",
|
|
70417
70444
|
extensions: ["c", "h", "ino"],
|
|
70418
70445
|
load() {
|
|
70419
|
-
return import('./index-
|
|
70446
|
+
return import('./index-ByIZ0_XB.js').then(m => m.cpp());
|
|
70420
70447
|
}
|
|
70421
70448
|
}),
|
|
70422
70449
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70424,7 +70451,7 @@ const languages = [
|
|
|
70424
70451
|
alias: ["cpp"],
|
|
70425
70452
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
70426
70453
|
load() {
|
|
70427
|
-
return import('./index-
|
|
70454
|
+
return import('./index-ByIZ0_XB.js').then(m => m.cpp());
|
|
70428
70455
|
}
|
|
70429
70456
|
}),
|
|
70430
70457
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70437,14 +70464,14 @@ const languages = [
|
|
|
70437
70464
|
name: "CSS",
|
|
70438
70465
|
extensions: ["css"],
|
|
70439
70466
|
load() {
|
|
70440
|
-
return import('./index-
|
|
70467
|
+
return import('./index-BiSmwTu2.js').then(m => m.css());
|
|
70441
70468
|
}
|
|
70442
70469
|
}),
|
|
70443
70470
|
/*@__PURE__*/LanguageDescription.of({
|
|
70444
70471
|
name: "Go",
|
|
70445
70472
|
extensions: ["go"],
|
|
70446
70473
|
load() {
|
|
70447
|
-
return import('./index-
|
|
70474
|
+
return import('./index-Bp8jLtVF.js').then(m => m.go());
|
|
70448
70475
|
}
|
|
70449
70476
|
}),
|
|
70450
70477
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70452,14 +70479,14 @@ const languages = [
|
|
|
70452
70479
|
alias: ["xhtml"],
|
|
70453
70480
|
extensions: ["html", "htm", "handlebars", "hbs"],
|
|
70454
70481
|
load() {
|
|
70455
|
-
return import('./index-
|
|
70482
|
+
return import('./index-Cmsnf9PT.js').then(m => m.html());
|
|
70456
70483
|
}
|
|
70457
70484
|
}),
|
|
70458
70485
|
/*@__PURE__*/LanguageDescription.of({
|
|
70459
70486
|
name: "Java",
|
|
70460
70487
|
extensions: ["java"],
|
|
70461
70488
|
load() {
|
|
70462
|
-
return import('./index-
|
|
70489
|
+
return import('./index-C812yPFx.js').then(m => m.java());
|
|
70463
70490
|
}
|
|
70464
70491
|
}),
|
|
70465
70492
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70467,14 +70494,14 @@ const languages = [
|
|
|
70467
70494
|
alias: ["ecmascript", "js", "node"],
|
|
70468
70495
|
extensions: ["js", "mjs", "cjs"],
|
|
70469
70496
|
load() {
|
|
70470
|
-
return import('./index-
|
|
70497
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript());
|
|
70471
70498
|
}
|
|
70472
70499
|
}),
|
|
70473
70500
|
/*@__PURE__*/LanguageDescription.of({
|
|
70474
70501
|
name: "Jinja",
|
|
70475
70502
|
extensions: ["j2", "jinja", "jinja2"],
|
|
70476
70503
|
load() {
|
|
70477
|
-
return import('./index-
|
|
70504
|
+
return import('./index-DijqTwWD.js').then(m => m.jinja());
|
|
70478
70505
|
}
|
|
70479
70506
|
}),
|
|
70480
70507
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70482,28 +70509,28 @@ const languages = [
|
|
|
70482
70509
|
alias: ["json5"],
|
|
70483
70510
|
extensions: ["json", "map"],
|
|
70484
70511
|
load() {
|
|
70485
|
-
return import('./index-
|
|
70512
|
+
return import('./index-DqB55268.js').then(m => m.json());
|
|
70486
70513
|
}
|
|
70487
70514
|
}),
|
|
70488
70515
|
/*@__PURE__*/LanguageDescription.of({
|
|
70489
70516
|
name: "JSX",
|
|
70490
70517
|
extensions: ["jsx"],
|
|
70491
70518
|
load() {
|
|
70492
|
-
return import('./index-
|
|
70519
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript({ jsx: true }));
|
|
70493
70520
|
}
|
|
70494
70521
|
}),
|
|
70495
70522
|
/*@__PURE__*/LanguageDescription.of({
|
|
70496
70523
|
name: "LESS",
|
|
70497
70524
|
extensions: ["less"],
|
|
70498
70525
|
load() {
|
|
70499
|
-
return import('./index-
|
|
70526
|
+
return import('./index-CrG3VurH.js').then(m => m.less());
|
|
70500
70527
|
}
|
|
70501
70528
|
}),
|
|
70502
70529
|
/*@__PURE__*/LanguageDescription.of({
|
|
70503
70530
|
name: "Liquid",
|
|
70504
70531
|
extensions: ["liquid"],
|
|
70505
70532
|
load() {
|
|
70506
|
-
return import('./index-
|
|
70533
|
+
return import('./index-DjKhXPGe.js').then(m => m.liquid());
|
|
70507
70534
|
}
|
|
70508
70535
|
}),
|
|
70509
70536
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70514,7 +70541,7 @@ const languages = [
|
|
|
70514
70541
|
name: "Markdown",
|
|
70515
70542
|
extensions: ["md", "markdown", "mkd"],
|
|
70516
70543
|
load() {
|
|
70517
|
-
return import('./index-
|
|
70544
|
+
return import('./index-BqMzvoZC.js').then(m => m.markdown());
|
|
70518
70545
|
}
|
|
70519
70546
|
}),
|
|
70520
70547
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70529,7 +70556,7 @@ const languages = [
|
|
|
70529
70556
|
name: "PHP",
|
|
70530
70557
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
70531
70558
|
load() {
|
|
70532
|
-
return import('./index-
|
|
70559
|
+
return import('./index-CyX6cUes.js').then(m => m.php());
|
|
70533
70560
|
}
|
|
70534
70561
|
}),
|
|
70535
70562
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70546,28 +70573,28 @@ const languages = [
|
|
|
70546
70573
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
70547
70574
|
filename: /^(BUCK|BUILD)$/,
|
|
70548
70575
|
load() {
|
|
70549
|
-
return import('./index-
|
|
70576
|
+
return import('./index-CpxEK35e.js').then(m => m.python());
|
|
70550
70577
|
}
|
|
70551
70578
|
}),
|
|
70552
70579
|
/*@__PURE__*/LanguageDescription.of({
|
|
70553
70580
|
name: "Rust",
|
|
70554
70581
|
extensions: ["rs"],
|
|
70555
70582
|
load() {
|
|
70556
|
-
return import('./index-
|
|
70583
|
+
return import('./index-BiM8Hf-C.js').then(m => m.rust());
|
|
70557
70584
|
}
|
|
70558
70585
|
}),
|
|
70559
70586
|
/*@__PURE__*/LanguageDescription.of({
|
|
70560
70587
|
name: "Sass",
|
|
70561
70588
|
extensions: ["sass"],
|
|
70562
70589
|
load() {
|
|
70563
|
-
return import('./index-
|
|
70590
|
+
return import('./index-DcqPFMzT.js').then(m => m.sass({ indented: true }));
|
|
70564
70591
|
}
|
|
70565
70592
|
}),
|
|
70566
70593
|
/*@__PURE__*/LanguageDescription.of({
|
|
70567
70594
|
name: "SCSS",
|
|
70568
70595
|
extensions: ["scss"],
|
|
70569
70596
|
load() {
|
|
70570
|
-
return import('./index-
|
|
70597
|
+
return import('./index-DcqPFMzT.js').then(m => m.sass());
|
|
70571
70598
|
}
|
|
70572
70599
|
}),
|
|
70573
70600
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70583,7 +70610,7 @@ const languages = [
|
|
|
70583
70610
|
name: "TSX",
|
|
70584
70611
|
extensions: ["tsx"],
|
|
70585
70612
|
load() {
|
|
70586
|
-
return import('./index-
|
|
70613
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript({ jsx: true, typescript: true }));
|
|
70587
70614
|
}
|
|
70588
70615
|
}),
|
|
70589
70616
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70591,14 +70618,14 @@ const languages = [
|
|
|
70591
70618
|
alias: ["ts"],
|
|
70592
70619
|
extensions: ["ts", "mts", "cts"],
|
|
70593
70620
|
load() {
|
|
70594
|
-
return import('./index-
|
|
70621
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript({ typescript: true }));
|
|
70595
70622
|
}
|
|
70596
70623
|
}),
|
|
70597
70624
|
/*@__PURE__*/LanguageDescription.of({
|
|
70598
70625
|
name: "WebAssembly",
|
|
70599
70626
|
extensions: ["wat", "wast"],
|
|
70600
70627
|
load() {
|
|
70601
|
-
return import('./index-
|
|
70628
|
+
return import('./index-B_wnKvZN.js').then(m => m.wast());
|
|
70602
70629
|
}
|
|
70603
70630
|
}),
|
|
70604
70631
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70606,7 +70633,7 @@ const languages = [
|
|
|
70606
70633
|
alias: ["rss", "wsdl", "xsd"],
|
|
70607
70634
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
70608
70635
|
load() {
|
|
70609
|
-
return import('./index-
|
|
70636
|
+
return import('./index-BF3QEceb.js').then(m => m.xml());
|
|
70610
70637
|
}
|
|
70611
70638
|
}),
|
|
70612
70639
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70614,7 +70641,7 @@ const languages = [
|
|
|
70614
70641
|
alias: ["yml"],
|
|
70615
70642
|
extensions: ["yaml", "yml"],
|
|
70616
70643
|
load() {
|
|
70617
|
-
return import('./index-
|
|
70644
|
+
return import('./index-CUKL0Bom.js').then(m => m.yaml());
|
|
70618
70645
|
}
|
|
70619
70646
|
}),
|
|
70620
70647
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -71403,13 +71430,13 @@ const languages = [
|
|
|
71403
71430
|
name: "Vue",
|
|
71404
71431
|
extensions: ["vue"],
|
|
71405
71432
|
load() {
|
|
71406
|
-
return import('./index-
|
|
71433
|
+
return import('./index-DSvrOKbg.js').then(m => m.vue());
|
|
71407
71434
|
}
|
|
71408
71435
|
}),
|
|
71409
71436
|
/*@__PURE__*/LanguageDescription.of({
|
|
71410
71437
|
name: "Angular Template",
|
|
71411
71438
|
load() {
|
|
71412
|
-
return import('./index-
|
|
71439
|
+
return import('./index-CZ6tpHjR.js').then(m => m.angular());
|
|
71413
71440
|
}
|
|
71414
71441
|
})
|
|
71415
71442
|
];
|
|
@@ -124650,7 +124677,7 @@ function useSlashMenuPortal(container) {
|
|
|
124650
124677
|
}
|
|
124651
124678
|
|
|
124652
124679
|
const ReviewSuggestionsViewport = lazy(
|
|
124653
|
-
() => import('./index-
|
|
124680
|
+
() => import('./index-DcyFSjdK.js').then((module) => ({ default: module.ReviewSuggestionsViewport }))
|
|
124654
124681
|
);
|
|
124655
124682
|
const MilkdownEditorInner = ({
|
|
124656
124683
|
readOnly = false,
|
|
@@ -125083,4 +125110,4 @@ const MarkdownSourceEditor = React.forwardRef(
|
|
|
125083
125110
|
}
|
|
125084
125111
|
);
|
|
125085
125112
|
|
|
125086
|
-
export { keymap$2 as $, LanguageSupport as A, indentNodeProp as B, continuedIndent as C, foldNodeProp as D, styleTags as E, tags as F, ifNotIn as G, completeFromList as H, syntaxTree as I, flatIndent as J, delimitedIndent as K, LRLanguage as L, foldInside as M, snippetCompletion as N, NodeWeakMap as O, IterMode as P, EditorView as Q, EditorSelection as R, parseMixed as S, Parser as T, NodeType as U, NodeProp as V, Tag as W, NodeSet as X, Tree as Y, countColumn as Z, Prec as _, parseProposedMd as a, Language as a0, indentUnit as a1, foldService as a2, defineLanguageFacet as a3, CompletionContext as a4, EditorState as a5, languageDataProp as a6, LanguageDescription as a7, ParseContext as a8, bracketMatchingHandle as a9, DefaultBufferLength as aa, sublanguageProp as ab, BrainfishEditor as ac, MarkdownSourceEditor as ad, MilkdownProvider as ae, createDismissReviewSuggestionTransaction as b, createApplyReviewSuggestionTransaction as c, applyAllReviewSuggestions as d, editorViewCtx as e, buildReviewSuggestionsPlugin as f, getNextReviewSuggestionId as g, createInlineSuggestionElement as h, isMilkdownContextNotFoundError as i, createReviewSuggestionBulkActions as j, getActiveReviewSuggestions as k, rejectAllReviewSuggestions as l, resolveReviewSuggestionRanges as m, reviewSuggestionApplyMeta as n, orderReviewSuggestionsByResolvedRanges as o, parserCtx as p, reviewSuggestionDismissMeta as q, reviewSuggestionsDecoKey as r, reviewSuggestionsDecorationPlugin as s, reviewSuggestionsSelectionMeta as t, useInstance as u, reviewSuggestionsUpdateMeta as v, useDefaultReviewSuggestionSelection as w, useReviewSuggestionBulkActionsRef as x, useReviewSuggestionSelectionSync as y, useReviewSuggestionsLoader as z };
|
|
125113
|
+
export { keymap$2 as $, LanguageSupport as A, indentNodeProp as B, continuedIndent as C, foldNodeProp as D, styleTags as E, tags as F, ifNotIn as G, completeFromList as H, syntaxTree as I, flatIndent as J, delimitedIndent as K, LRLanguage as L, foldInside as M, snippetCompletion as N, NodeWeakMap as O, IterMode as P, EditorView as Q, EditorSelection as R, parseMixed as S, Parser as T, NodeType as U, NodeProp as V, Tag as W, NodeSet as X, Tree as Y, countColumn as Z, Prec as _, parseProposedMd as a, Language as a0, indentUnit as a1, foldService as a2, defineLanguageFacet as a3, CompletionContext as a4, EditorState as a5, languageDataProp as a6, LanguageDescription as a7, ParseContext as a8, bracketMatchingHandle as a9, DefaultBufferLength as aa, sublanguageProp as ab, BrainfishEditor as ac, MarkdownSourceEditor as ad, MilkdownProvider as ae, updateMentionLabel as af, createDismissReviewSuggestionTransaction as b, createApplyReviewSuggestionTransaction as c, applyAllReviewSuggestions as d, editorViewCtx as e, buildReviewSuggestionsPlugin as f, getNextReviewSuggestionId as g, createInlineSuggestionElement as h, isMilkdownContextNotFoundError as i, createReviewSuggestionBulkActions as j, getActiveReviewSuggestions as k, rejectAllReviewSuggestions as l, resolveReviewSuggestionRanges as m, reviewSuggestionApplyMeta as n, orderReviewSuggestionsByResolvedRanges as o, parserCtx as p, reviewSuggestionDismissMeta as q, reviewSuggestionsDecoKey as r, reviewSuggestionsDecorationPlugin as s, reviewSuggestionsSelectionMeta as t, useInstance as u, reviewSuggestionsUpdateMeta as v, useDefaultReviewSuggestionSelection as w, useReviewSuggestionBulkActionsRef as x, useReviewSuggestionSelectionSync as y, useReviewSuggestionsLoader as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as LanguageSupport, L as LRLanguage, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp, M as foldInside, E as styleTags, F as tags } from './index-
|
|
2
|
-
import { L as LRParser } from './index-
|
|
1
|
+
import { A as LanguageSupport, L as LRLanguage, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp, M as foldInside, E as styleTags, F as tags } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { L as LRParser } from './index-DCxetMm4.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const spec_Keyword = {__proto__:null,anyref:34, dataref:34, eqref:34, externref:34, i31ref:34, funcref:34, i8:34, i16:34, i32:34, i64:34, f32:34, f64:34};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const closureParamDelim = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from './index-
|
|
2
|
-
import { E as styleTags, F as tags$1, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside, I as syntaxTree, O as NodeWeakMap, P as IterMode } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags$1, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside, I as syntaxTree, O as NodeWeakMap, P as IterMode } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const descendantOp = 122,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, G as ifNotIn, H as completeFromList, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside, I as syntaxTree, N as snippetCompletion, O as NodeWeakMap, P as IterMode } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, G as ifNotIn, H as completeFromList, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside, I as syntaxTree, N as snippetCompletion, O as NodeWeakMap, P as IterMode } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const insertedSemi = 177,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Parser, U as NodeType, V as NodeProp, W as Tag, X as NodeSet, E as styleTags, Y as Tree, S as parseMixed, F as tags, I as syntaxTree, R as EditorSelection, Z as countColumn, A as LanguageSupport, _ as Prec, $ as keymap, Q as EditorView, a0 as Language, a1 as indentUnit, a2 as foldService, a3 as defineLanguageFacet, a4 as CompletionContext, a5 as EditorState, D as foldNodeProp, B as indentNodeProp, a6 as languageDataProp, a7 as LanguageDescription, a8 as ParseContext } from './index-
|
|
2
|
-
import { html, htmlCompletionSource } from './index-
|
|
1
|
+
import { T as Parser, U as NodeType, V as NodeProp, W as Tag, X as NodeSet, E as styleTags, Y as Tree, S as parseMixed, F as tags, I as syntaxTree, R as EditorSelection, Z as countColumn, A as LanguageSupport, _ as Prec, $ as keymap, Q as EditorView, a0 as Language, a1 as indentUnit, a2 as foldService, a3 as defineLanguageFacet, a4 as CompletionContext, a5 as EditorState, D as foldNodeProp, B as indentNodeProp, a6 as languageDataProp, a7 as LanguageDescription, a8 as ParseContext } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { html, htmlCompletionSource } from './index-Cmsnf9PT.js';
|
|
3
3
|
|
|
4
4
|
class CompositeBlock {
|
|
5
5
|
static create(type, value, from, parentHash, end) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const RawString = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-
|
|
1
|
+
import { L as LRParser } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
const javaHighlighting = styleTags({
|
|
5
5
|
null: tags.null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, S as parseMixed, L as LRLanguage, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, S as parseMixed, L as LRLanguage, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const blockEnd = 63,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, Q as EditorView, I as syntaxTree, R as EditorSelection, A as LanguageSupport, G as ifNotIn, H as completeFromList, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside, ab as sublanguageProp, N as snippetCompletion, a3 as defineLanguageFacet, O as NodeWeakMap, P as IterMode } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, Q as EditorView, I as syntaxTree, R as EditorSelection, A as LanguageSupport, G as ifNotIn, H as completeFromList, L as LRLanguage, B as indentNodeProp, J as flatIndent, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside, ab as sublanguageProp, N as snippetCompletion, a3 as defineLanguageFacet, O as NodeWeakMap, P as IterMode } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const noSemi = 316,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LRLanguage, A as LanguageSupport, S as parseMixed, E as styleTags, F as tags } from './index-
|
|
2
|
-
import { html } from './index-
|
|
3
|
-
import { javascriptLanguage } from './index-
|
|
4
|
-
import { L as LRParser, E as ExternalTokenizer } from './index-
|
|
1
|
+
import { L as LRLanguage, A as LanguageSupport, S as parseMixed, E as styleTags, F as tags } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { html } from './index-Cmsnf9PT.js';
|
|
3
|
+
import { javascriptLanguage } from './index-CY8-92I_.js';
|
|
4
|
+
import { L as LRParser, E as ExternalTokenizer } from './index-DCxetMm4.js';
|
|
5
5
|
|
|
6
6
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
7
7
|
const Text = 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-
|
|
2
|
-
import { S as parseMixed, E as styleTags, F as tags, Q as EditorView, I as syntaxTree, R as EditorSelection, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, D as foldNodeProp, a9 as bracketMatchingHandle } from './index-
|
|
3
|
-
import { cssLanguage, css } from './index-
|
|
4
|
-
import { typescriptLanguage, jsxLanguage, tsxLanguage, javascriptLanguage, javascript } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { S as parseMixed, E as styleTags, F as tags, Q as EditorView, I as syntaxTree, R as EditorSelection, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, D as foldNodeProp, a9 as bracketMatchingHandle } from './index-BQ9hNAwQ.js';
|
|
3
|
+
import { cssLanguage, css } from './index-BiSmwTu2.js';
|
|
4
|
+
import { typescriptLanguage, jsxLanguage, tsxLanguage, javascriptLanguage, javascript } from './index-CY8-92I_.js';
|
|
5
5
|
|
|
6
6
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
7
7
|
const scriptText = 55,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, G as ifNotIn, I as syntaxTree, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp, M as foldInside, O as NodeWeakMap, P as IterMode, H as completeFromList, N as snippetCompletion } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, G as ifNotIn, I as syntaxTree, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp, M as foldInside, O as NodeWeakMap, P as IterMode, H as completeFromList, N as snippetCompletion } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const printKeyword = 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside, E as styleTags, F as tags } from './index-
|
|
2
|
-
import { defineCSSCompletionSource } from './index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer } from './index-
|
|
1
|
+
import { A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside, E as styleTags, F as tags } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { defineCSSCompletionSource } from './index-BiSmwTu2.js';
|
|
3
|
+
import { L as LRParser, E as ExternalTokenizer } from './index-DCxetMm4.js';
|
|
4
4
|
|
|
5
5
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
6
6
|
const descendantOp = 110,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, S as parseMixed, L as LRLanguage, B as indentNodeProp, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-
|
|
3
|
-
import { html } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, S as parseMixed, L as LRLanguage, B as indentNodeProp, C as continuedIndent, K as delimitedIndent, D as foldNodeProp, M as foldInside } from './index-BQ9hNAwQ.js';
|
|
3
|
+
import { html } from './index-Cmsnf9PT.js';
|
|
4
4
|
|
|
5
5
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
6
6
|
const castOpen = 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Parser, X as NodeSet, U as NodeType, aa as DefaultBufferLength, V as NodeProp, Y as Tree, P as IterMode } from './index-
|
|
1
|
+
import { T as Parser, X as NodeSet, U as NodeType, aa as DefaultBufferLength, V as NodeProp, Y as Tree, P as IterMode } from './index-BQ9hNAwQ.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
A parse stack. These are used internally by the parser to track
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LRLanguage, A as LanguageSupport, S as parseMixed, E as styleTags, F as tags } from './index-
|
|
2
|
-
import { html } from './index-
|
|
3
|
-
import { javascriptLanguage } from './index-
|
|
4
|
-
import { L as LRParser, a as LocalTokenGroup } from './index-
|
|
1
|
+
import { L as LRLanguage, A as LanguageSupport, S as parseMixed, E as styleTags, F as tags } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { html } from './index-Cmsnf9PT.js';
|
|
3
|
+
import { javascriptLanguage } from './index-CY8-92I_.js';
|
|
4
|
+
import { L as LRParser, a as LocalTokenGroup } from './index-DCxetMm4.js';
|
|
5
5
|
|
|
6
6
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
7
7
|
const parser = /*@__PURE__*/LRParser.deserialize({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, D as foldNodeProp, M as foldInside, B as indentNodeProp, C as continuedIndent } from './index-
|
|
3
|
-
import { defineCSSCompletionSource } from './index-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, D as foldNodeProp, M as foldInside, B as indentNodeProp, C as continuedIndent } from './index-BQ9hNAwQ.js';
|
|
3
|
+
import { defineCSSCompletionSource } from './index-BiSmwTu2.js';
|
|
4
4
|
|
|
5
5
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
6
6
|
const indent = 168,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useInstance, e as editorViewCtx, r as reviewSuggestionsDecoKey, o as orderReviewSuggestionsByResolvedRanges, g as getNextReviewSuggestionId, p as parserCtx, a as parseProposedMd, c as createApplyReviewSuggestionTransaction, i as isMilkdownContextNotFoundError, b as createDismissReviewSuggestionTransaction } from './index-
|
|
2
|
-
export { d as applyAllReviewSuggestions, f as buildReviewSuggestionsPlugin, h as createInlineSuggestionElement, j as createReviewSuggestionBulkActions, k as getActiveReviewSuggestions, l as rejectAllReviewSuggestions, m as resolveReviewSuggestionRanges, n as reviewSuggestionApplyMeta, q as reviewSuggestionDismissMeta, s as reviewSuggestionsDecorationPlugin, t as reviewSuggestionsSelectionMeta, v as reviewSuggestionsUpdateMeta, w as useDefaultReviewSuggestionSelection, x as useReviewSuggestionBulkActionsRef, y as useReviewSuggestionSelectionSync, z as useReviewSuggestionsLoader } from './index-
|
|
1
|
+
import { u as useInstance, e as editorViewCtx, r as reviewSuggestionsDecoKey, o as orderReviewSuggestionsByResolvedRanges, g as getNextReviewSuggestionId, p as parserCtx, a as parseProposedMd, c as createApplyReviewSuggestionTransaction, i as isMilkdownContextNotFoundError, b as createDismissReviewSuggestionTransaction } from './index-BQ9hNAwQ.js';
|
|
2
|
+
export { d as applyAllReviewSuggestions, f as buildReviewSuggestionsPlugin, h as createInlineSuggestionElement, j as createReviewSuggestionBulkActions, k as getActiveReviewSuggestions, l as rejectAllReviewSuggestions, m as resolveReviewSuggestionRanges, n as reviewSuggestionApplyMeta, q as reviewSuggestionDismissMeta, s as reviewSuggestionsDecorationPlugin, t as reviewSuggestionsSelectionMeta, v as reviewSuggestionsUpdateMeta, w as useDefaultReviewSuggestionSelection, x as useReviewSuggestionBulkActionsRef, y as useReviewSuggestionSelectionSync, z as useReviewSuggestionsLoader } from './index-BQ9hNAwQ.js';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { createContext, useRef, useLayoutEffect, useEffect, useContext, useId, useCallback, useMemo, Fragment, createElement, useInsertionEffect, forwardRef, Component } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as EditorView, R as EditorSelection, A as LanguageSupport, S as parseMixed, I as syntaxTree, L as LRLanguage, E as styleTags, F as tags, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp } from './index-
|
|
2
|
-
import { html } from './index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from './index-
|
|
1
|
+
import { Q as EditorView, R as EditorSelection, A as LanguageSupport, S as parseMixed, I as syntaxTree, L as LRLanguage, E as styleTags, F as tags, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { html } from './index-Cmsnf9PT.js';
|
|
3
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from './index-DCxetMm4.js';
|
|
4
4
|
|
|
5
5
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
6
6
|
const interpolationStart = 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as EditorView, R as EditorSelection, A as LanguageSupport, S as parseMixed, I as syntaxTree, L as LRLanguage, E as styleTags, F as tags, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp } from './index-
|
|
2
|
-
import { html } from './index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer } from './index-
|
|
1
|
+
import { Q as EditorView, R as EditorSelection, A as LanguageSupport, S as parseMixed, I as syntaxTree, L as LRLanguage, E as styleTags, F as tags, B as indentNodeProp, K as delimitedIndent, D as foldNodeProp } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { html } from './index-Cmsnf9PT.js';
|
|
3
|
+
import { L as LRParser, E as ExternalTokenizer } from './index-DCxetMm4.js';
|
|
4
4
|
|
|
5
5
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
6
6
|
const interpolationStart = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser } from './index-
|
|
2
|
-
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside } from './index-
|
|
1
|
+
import { L as LRParser } from './index-DCxetMm4.js';
|
|
2
|
+
import { E as styleTags, F as tags, A as LanguageSupport, L as LRLanguage, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, M as foldInside } from './index-BQ9hNAwQ.js';
|
|
3
3
|
|
|
4
4
|
const jsonHighlighting = styleTags({
|
|
5
5
|
String: tags.string,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRLanguage, A as LanguageSupport, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, E as styleTags, F as tags, G as ifNotIn, H as completeFromList, I as syntaxTree } from './index-
|
|
2
|
-
import { E as ExternalTokenizer, L as LRParser } from './index-
|
|
1
|
+
import { L as LRLanguage, A as LanguageSupport, B as indentNodeProp, C as continuedIndent, D as foldNodeProp, E as styleTags, F as tags, G as ifNotIn, H as completeFromList, I as syntaxTree } from './index-BQ9hNAwQ.js';
|
|
2
|
+
import { E as ExternalTokenizer, L as LRParser } from './index-DCxetMm4.js';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const whitespace = 36,
|
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export type { BrainfishEditorProps, DocumentIssue, EditorTheme, ConnectionStatus
|
|
|
5
5
|
export type { SyncedHelpers } from './useHocusPocusCollaboration';
|
|
6
6
|
export type { ReplaceContentFn } from './useEditorReady';
|
|
7
7
|
export { createReviewSuggestionBulkActions } from './plugins/reviewSuggestions';
|
|
8
|
+
export { updateMentionLabel } from './plugins/mentions';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ac as BrainfishEditor, ad as MarkdownSourceEditor, ae as MilkdownProvider, j as createReviewSuggestionBulkActions } from './index-
|
|
1
|
+
export { ac as BrainfishEditor, ad as MarkdownSourceEditor, ae as MilkdownProvider, j as createReviewSuggestionBulkActions, af as updateMentionLabel } from './index-BQ9hNAwQ.js';
|
|
@@ -33,6 +33,7 @@ export type MentionProvider = {
|
|
|
33
33
|
query: string;
|
|
34
34
|
signal: AbortSignal;
|
|
35
35
|
}) => Promise<MentionCandidate[]>;
|
|
36
|
+
/** Popover body. Return `null` or `false` to run host logic without opening the popover. */
|
|
36
37
|
onClick?: (ctx: MentionContext) => ReactNode;
|
|
37
38
|
/** Host: this mention instance is waiting for config or has invalid mappings. */
|
|
38
39
|
isInvalid?: (ctx: Pick<MentionContext, 'id' | 'type' | 'label' | 'attrs'>) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { configureMentions } from './integration/configure';
|
|
2
2
|
export { MentionsRuntimeContext } from './ui/runtime';
|
|
3
|
+
export { updateMentionLabel } from './ui/node-view';
|
|
3
4
|
export { MENTION_NODE_NAME, MENTION_DIRECTIVE_NAME } from './core/parse';
|
|
4
5
|
export type { MentionCandidate, MentionContext, MentionProvider, MentionSlashAvailability } from './core/types';
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { Ctx } from '@milkdown/kit/ctx';
|
|
2
2
|
import { useNodeViewFactory } from '@prosemirror-adapter/react';
|
|
3
|
+
/**
|
|
4
|
+
* Sets the label of the mention rendered as `pill` (a `[data-mention-id]` element) in place.
|
|
5
|
+
* Returns `false` when `pill` is not a mounted mention pill. Hosts use this to keep the pill
|
|
6
|
+
* in sync with config edited outside the editor, without remounting it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function updateMentionLabel(pill: HTMLElement, label: string): boolean;
|
|
3
9
|
export declare const MentionNodeView: () => import("react/jsx-runtime").JSX.Element;
|
|
4
10
|
export declare function configureMentionNodeView(ctx: Ctx, nodeViewFactory: ReturnType<typeof useNodeViewFactory>): void;
|