@brainfish-ai/editor 0.16.5 → 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-Bx9kPv2X.js → index-BF3QEceb.js} +2 -2
- package/dist/{index-PALwbLkY.js → index-BQ9hNAwQ.js} +51 -43
- package/dist/{index-BPOh7gLI.js → index-B_wnKvZN.js} +2 -2
- package/dist/{index-tFUgwE77.js → index-BiM8Hf-C.js} +2 -2
- package/dist/{index-VHSqM6do.js → index-BiSmwTu2.js} +2 -2
- package/dist/{index-Cx6qw-AO.js → index-Bp8jLtVF.js} +2 -2
- package/dist/{index-BPUuE877.js → index-BqMzvoZC.js} +2 -2
- package/dist/{index-BdQHIgL9.js → index-ByIZ0_XB.js} +2 -2
- package/dist/{index-Ew91ML7b.js → index-C812yPFx.js} +2 -2
- package/dist/{index-BkWCmS7C.js → index-CUKL0Bom.js} +2 -2
- package/dist/{index-C0FriEF6.js → index-CY8-92I_.js} +2 -2
- package/dist/{index-Ckz8fb1v.js → index-CZ6tpHjR.js} +4 -4
- package/dist/{index-Bsd4ABeE.js → index-Cmsnf9PT.js} +4 -4
- package/dist/{index-DyjkpfqJ.js → index-CpxEK35e.js} +2 -2
- package/dist/{index-siaDMBtt.js → index-CrG3VurH.js} +3 -3
- package/dist/{index-BOu382Ca.js → index-CyX6cUes.js} +3 -3
- package/dist/{index-DttUK7l_.js → index-DCxetMm4.js} +1 -1
- package/dist/{index-BMZMkble.js → index-DSvrOKbg.js} +4 -4
- package/dist/{index-CL74M0IX.js → index-DcqPFMzT.js} +3 -3
- package/dist/{index-DS89xquM.js → index-DcyFSjdK.js} +2 -2
- package/dist/{index-BijrthrB.js → index-DijqTwWD.js} +3 -3
- package/dist/{index-BSHO896a.js → index-DjKhXPGe.js} +3 -3
- package/dist/{index-B95nLLma.js → index-DqB55268.js} +2 -2
- package/dist/{index-Dr6hZgyB.js → index-i2i7s9j8.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/plugins/mentions/core/types.d.ts +1 -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,
|
|
@@ -41860,22 +41860,30 @@ const MentionNodeView = () => {
|
|
|
41860
41860
|
const [content, setContent] = useState(null);
|
|
41861
41861
|
const setPreviewOpen = (next) => {
|
|
41862
41862
|
if (!canPreview) return;
|
|
41863
|
-
if (next) {
|
|
41864
|
-
|
|
41865
|
-
|
|
41866
|
-
|
|
41867
|
-
provider.onClick(
|
|
41868
|
-
mentionContextFromNode(
|
|
41869
|
-
{ type: parsed.type, id: parsed.id, label: parsed.label, extra: parsed.extra },
|
|
41870
|
-
anchor,
|
|
41871
|
-
() => setPreviewOpen(false)
|
|
41872
|
-
)
|
|
41873
|
-
)
|
|
41874
|
-
);
|
|
41863
|
+
if (!next) {
|
|
41864
|
+
setOpen(false);
|
|
41865
|
+
setContent(null);
|
|
41866
|
+
return;
|
|
41875
41867
|
}
|
|
41876
|
-
|
|
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);
|
|
41877
41884
|
};
|
|
41878
|
-
|
|
41885
|
+
const showPopover = open && content != null && content !== false;
|
|
41886
|
+
return /* @__PURE__ */ jsxs(Popover, { open: showPopover, onOpenChange: setPreviewOpen, modal: true, children: [
|
|
41879
41887
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
41880
41888
|
"span",
|
|
41881
41889
|
{
|
|
@@ -41917,7 +41925,7 @@ const MentionNodeView = () => {
|
|
|
41917
41925
|
]
|
|
41918
41926
|
}
|
|
41919
41927
|
) }),
|
|
41920
|
-
/* @__PURE__ */ jsx(
|
|
41928
|
+
showPopover ? /* @__PURE__ */ jsx(
|
|
41921
41929
|
PopoverContent,
|
|
41922
41930
|
{
|
|
41923
41931
|
align: "start",
|
|
@@ -41934,7 +41942,7 @@ const MentionNodeView = () => {
|
|
|
41934
41942
|
},
|
|
41935
41943
|
children: /* @__PURE__ */ jsx("div", { className: "p-1.5", children: content })
|
|
41936
41944
|
}
|
|
41937
|
-
)
|
|
41945
|
+
) : null
|
|
41938
41946
|
] });
|
|
41939
41947
|
};
|
|
41940
41948
|
function configureMentionNodeView(ctx, nodeViewFactory) {
|
|
@@ -70424,7 +70432,7 @@ function legacy(parser) {
|
|
|
70424
70432
|
return new LanguageSupport(StreamLanguage.define(parser));
|
|
70425
70433
|
}
|
|
70426
70434
|
function sql(dialectName) {
|
|
70427
|
-
return import('./index-
|
|
70435
|
+
return import('./index-i2i7s9j8.js').then(m => m.sql({ dialect: m[dialectName] }));
|
|
70428
70436
|
}
|
|
70429
70437
|
/**
|
|
70430
70438
|
An array of language descriptions for known language packages.
|
|
@@ -70435,7 +70443,7 @@ const languages = [
|
|
|
70435
70443
|
name: "C",
|
|
70436
70444
|
extensions: ["c", "h", "ino"],
|
|
70437
70445
|
load() {
|
|
70438
|
-
return import('./index-
|
|
70446
|
+
return import('./index-ByIZ0_XB.js').then(m => m.cpp());
|
|
70439
70447
|
}
|
|
70440
70448
|
}),
|
|
70441
70449
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70443,7 +70451,7 @@ const languages = [
|
|
|
70443
70451
|
alias: ["cpp"],
|
|
70444
70452
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
70445
70453
|
load() {
|
|
70446
|
-
return import('./index-
|
|
70454
|
+
return import('./index-ByIZ0_XB.js').then(m => m.cpp());
|
|
70447
70455
|
}
|
|
70448
70456
|
}),
|
|
70449
70457
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70456,14 +70464,14 @@ const languages = [
|
|
|
70456
70464
|
name: "CSS",
|
|
70457
70465
|
extensions: ["css"],
|
|
70458
70466
|
load() {
|
|
70459
|
-
return import('./index-
|
|
70467
|
+
return import('./index-BiSmwTu2.js').then(m => m.css());
|
|
70460
70468
|
}
|
|
70461
70469
|
}),
|
|
70462
70470
|
/*@__PURE__*/LanguageDescription.of({
|
|
70463
70471
|
name: "Go",
|
|
70464
70472
|
extensions: ["go"],
|
|
70465
70473
|
load() {
|
|
70466
|
-
return import('./index-
|
|
70474
|
+
return import('./index-Bp8jLtVF.js').then(m => m.go());
|
|
70467
70475
|
}
|
|
70468
70476
|
}),
|
|
70469
70477
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70471,14 +70479,14 @@ const languages = [
|
|
|
70471
70479
|
alias: ["xhtml"],
|
|
70472
70480
|
extensions: ["html", "htm", "handlebars", "hbs"],
|
|
70473
70481
|
load() {
|
|
70474
|
-
return import('./index-
|
|
70482
|
+
return import('./index-Cmsnf9PT.js').then(m => m.html());
|
|
70475
70483
|
}
|
|
70476
70484
|
}),
|
|
70477
70485
|
/*@__PURE__*/LanguageDescription.of({
|
|
70478
70486
|
name: "Java",
|
|
70479
70487
|
extensions: ["java"],
|
|
70480
70488
|
load() {
|
|
70481
|
-
return import('./index-
|
|
70489
|
+
return import('./index-C812yPFx.js').then(m => m.java());
|
|
70482
70490
|
}
|
|
70483
70491
|
}),
|
|
70484
70492
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70486,14 +70494,14 @@ const languages = [
|
|
|
70486
70494
|
alias: ["ecmascript", "js", "node"],
|
|
70487
70495
|
extensions: ["js", "mjs", "cjs"],
|
|
70488
70496
|
load() {
|
|
70489
|
-
return import('./index-
|
|
70497
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript());
|
|
70490
70498
|
}
|
|
70491
70499
|
}),
|
|
70492
70500
|
/*@__PURE__*/LanguageDescription.of({
|
|
70493
70501
|
name: "Jinja",
|
|
70494
70502
|
extensions: ["j2", "jinja", "jinja2"],
|
|
70495
70503
|
load() {
|
|
70496
|
-
return import('./index-
|
|
70504
|
+
return import('./index-DijqTwWD.js').then(m => m.jinja());
|
|
70497
70505
|
}
|
|
70498
70506
|
}),
|
|
70499
70507
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70501,28 +70509,28 @@ const languages = [
|
|
|
70501
70509
|
alias: ["json5"],
|
|
70502
70510
|
extensions: ["json", "map"],
|
|
70503
70511
|
load() {
|
|
70504
|
-
return import('./index-
|
|
70512
|
+
return import('./index-DqB55268.js').then(m => m.json());
|
|
70505
70513
|
}
|
|
70506
70514
|
}),
|
|
70507
70515
|
/*@__PURE__*/LanguageDescription.of({
|
|
70508
70516
|
name: "JSX",
|
|
70509
70517
|
extensions: ["jsx"],
|
|
70510
70518
|
load() {
|
|
70511
|
-
return import('./index-
|
|
70519
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript({ jsx: true }));
|
|
70512
70520
|
}
|
|
70513
70521
|
}),
|
|
70514
70522
|
/*@__PURE__*/LanguageDescription.of({
|
|
70515
70523
|
name: "LESS",
|
|
70516
70524
|
extensions: ["less"],
|
|
70517
70525
|
load() {
|
|
70518
|
-
return import('./index-
|
|
70526
|
+
return import('./index-CrG3VurH.js').then(m => m.less());
|
|
70519
70527
|
}
|
|
70520
70528
|
}),
|
|
70521
70529
|
/*@__PURE__*/LanguageDescription.of({
|
|
70522
70530
|
name: "Liquid",
|
|
70523
70531
|
extensions: ["liquid"],
|
|
70524
70532
|
load() {
|
|
70525
|
-
return import('./index-
|
|
70533
|
+
return import('./index-DjKhXPGe.js').then(m => m.liquid());
|
|
70526
70534
|
}
|
|
70527
70535
|
}),
|
|
70528
70536
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70533,7 +70541,7 @@ const languages = [
|
|
|
70533
70541
|
name: "Markdown",
|
|
70534
70542
|
extensions: ["md", "markdown", "mkd"],
|
|
70535
70543
|
load() {
|
|
70536
|
-
return import('./index-
|
|
70544
|
+
return import('./index-BqMzvoZC.js').then(m => m.markdown());
|
|
70537
70545
|
}
|
|
70538
70546
|
}),
|
|
70539
70547
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70548,7 +70556,7 @@ const languages = [
|
|
|
70548
70556
|
name: "PHP",
|
|
70549
70557
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
70550
70558
|
load() {
|
|
70551
|
-
return import('./index-
|
|
70559
|
+
return import('./index-CyX6cUes.js').then(m => m.php());
|
|
70552
70560
|
}
|
|
70553
70561
|
}),
|
|
70554
70562
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70565,28 +70573,28 @@ const languages = [
|
|
|
70565
70573
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
70566
70574
|
filename: /^(BUCK|BUILD)$/,
|
|
70567
70575
|
load() {
|
|
70568
|
-
return import('./index-
|
|
70576
|
+
return import('./index-CpxEK35e.js').then(m => m.python());
|
|
70569
70577
|
}
|
|
70570
70578
|
}),
|
|
70571
70579
|
/*@__PURE__*/LanguageDescription.of({
|
|
70572
70580
|
name: "Rust",
|
|
70573
70581
|
extensions: ["rs"],
|
|
70574
70582
|
load() {
|
|
70575
|
-
return import('./index-
|
|
70583
|
+
return import('./index-BiM8Hf-C.js').then(m => m.rust());
|
|
70576
70584
|
}
|
|
70577
70585
|
}),
|
|
70578
70586
|
/*@__PURE__*/LanguageDescription.of({
|
|
70579
70587
|
name: "Sass",
|
|
70580
70588
|
extensions: ["sass"],
|
|
70581
70589
|
load() {
|
|
70582
|
-
return import('./index-
|
|
70590
|
+
return import('./index-DcqPFMzT.js').then(m => m.sass({ indented: true }));
|
|
70583
70591
|
}
|
|
70584
70592
|
}),
|
|
70585
70593
|
/*@__PURE__*/LanguageDescription.of({
|
|
70586
70594
|
name: "SCSS",
|
|
70587
70595
|
extensions: ["scss"],
|
|
70588
70596
|
load() {
|
|
70589
|
-
return import('./index-
|
|
70597
|
+
return import('./index-DcqPFMzT.js').then(m => m.sass());
|
|
70590
70598
|
}
|
|
70591
70599
|
}),
|
|
70592
70600
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70602,7 +70610,7 @@ const languages = [
|
|
|
70602
70610
|
name: "TSX",
|
|
70603
70611
|
extensions: ["tsx"],
|
|
70604
70612
|
load() {
|
|
70605
|
-
return import('./index-
|
|
70613
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript({ jsx: true, typescript: true }));
|
|
70606
70614
|
}
|
|
70607
70615
|
}),
|
|
70608
70616
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70610,14 +70618,14 @@ const languages = [
|
|
|
70610
70618
|
alias: ["ts"],
|
|
70611
70619
|
extensions: ["ts", "mts", "cts"],
|
|
70612
70620
|
load() {
|
|
70613
|
-
return import('./index-
|
|
70621
|
+
return import('./index-CY8-92I_.js').then(m => m.javascript({ typescript: true }));
|
|
70614
70622
|
}
|
|
70615
70623
|
}),
|
|
70616
70624
|
/*@__PURE__*/LanguageDescription.of({
|
|
70617
70625
|
name: "WebAssembly",
|
|
70618
70626
|
extensions: ["wat", "wast"],
|
|
70619
70627
|
load() {
|
|
70620
|
-
return import('./index-
|
|
70628
|
+
return import('./index-B_wnKvZN.js').then(m => m.wast());
|
|
70621
70629
|
}
|
|
70622
70630
|
}),
|
|
70623
70631
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70625,7 +70633,7 @@ const languages = [
|
|
|
70625
70633
|
alias: ["rss", "wsdl", "xsd"],
|
|
70626
70634
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
70627
70635
|
load() {
|
|
70628
|
-
return import('./index-
|
|
70636
|
+
return import('./index-BF3QEceb.js').then(m => m.xml());
|
|
70629
70637
|
}
|
|
70630
70638
|
}),
|
|
70631
70639
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -70633,7 +70641,7 @@ const languages = [
|
|
|
70633
70641
|
alias: ["yml"],
|
|
70634
70642
|
extensions: ["yaml", "yml"],
|
|
70635
70643
|
load() {
|
|
70636
|
-
return import('./index-
|
|
70644
|
+
return import('./index-CUKL0Bom.js').then(m => m.yaml());
|
|
70637
70645
|
}
|
|
70638
70646
|
}),
|
|
70639
70647
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -71422,13 +71430,13 @@ const languages = [
|
|
|
71422
71430
|
name: "Vue",
|
|
71423
71431
|
extensions: ["vue"],
|
|
71424
71432
|
load() {
|
|
71425
|
-
return import('./index-
|
|
71433
|
+
return import('./index-DSvrOKbg.js').then(m => m.vue());
|
|
71426
71434
|
}
|
|
71427
71435
|
}),
|
|
71428
71436
|
/*@__PURE__*/LanguageDescription.of({
|
|
71429
71437
|
name: "Angular Template",
|
|
71430
71438
|
load() {
|
|
71431
|
-
return import('./index-
|
|
71439
|
+
return import('./index-CZ6tpHjR.js').then(m => m.angular());
|
|
71432
71440
|
}
|
|
71433
71441
|
})
|
|
71434
71442
|
];
|
|
@@ -124669,7 +124677,7 @@ function useSlashMenuPortal(container) {
|
|
|
124669
124677
|
}
|
|
124670
124678
|
|
|
124671
124679
|
const ReviewSuggestionsViewport = lazy(
|
|
124672
|
-
() => import('./index-
|
|
124680
|
+
() => import('./index-DcyFSjdK.js').then((module) => ({ default: module.ReviewSuggestionsViewport }))
|
|
124673
124681
|
);
|
|
124674
124682
|
const MilkdownEditorInner = ({
|
|
124675
124683
|
readOnly = false,
|
|
@@ -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.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ac as BrainfishEditor, ad as MarkdownSourceEditor, ae as MilkdownProvider, j as createReviewSuggestionBulkActions, af as updateMentionLabel } 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;
|