@aleph-alpha/chat-kit 6.1.1 → 6.2.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/dist/{CkHistory.vue_vue_type_script_setup_true_lang-Cr8vF94e.js → CkHistory.vue_vue_type_script_setup_true_lang-DPCpIxWc.js} +2 -2
- package/dist/adapters/responses-api.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/composables/index.js +1 -1
- package/dist/{createCrepeEditor-CFbvSH3s.js → createCrepeEditor-C9seqnzm.js} +28 -27
- package/dist/handlers/index.js +2 -2
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/markdownToPlainText.d.ts +18 -0
- package/dist/helpers/markdownToPlainText.d.ts.map +1 -0
- package/dist/{index-C6zYjwIQ.js → index-6PiPEjJd.js} +2 -2
- package/dist/{index-DdlzabmR.js → index-8mYiDHFC.js} +2 -2
- package/dist/{index-gzleljO6.js → index-B0nlcqqF.js} +2 -2
- package/dist/{index-DSU7cBGz.js → index-Bxg0Q_mk.js} +2 -2
- package/dist/{index-CRfGWVdQ.js → index-By7WdPbk.js} +4 -4
- package/dist/{index-BVOjyn3y.js → index-C5UC1wP7.js} +2 -2
- package/dist/{index-C_gTb50u.js → index-C90_LSx6.js} +4 -4
- package/dist/{index-A5rWjRtZ.js → index-CFdcEeXx.js} +2 -2
- package/dist/{index-B0ldhzaj.js → index-CHtY7ztn.js} +2 -2
- package/dist/index-CLdXUpL8.js +9560 -0
- package/dist/{index-C72e57-5.js → index-CZFx44C7.js} +2 -2
- package/dist/{index-BoqzHVNB.js → index-D85elIIr.js} +2 -2
- package/dist/{index-Da3777l2.js → index-DINJn4Mn.js} +3 -3
- package/dist/{index-DhY_9bdS.js → index-DLZcs4H8.js} +2 -2
- package/dist/{index-ZeRS5rER.js → index-DNxEOsDD.js} +2 -2
- package/dist/{index-Tj3pzx-E.js → index-DO8xk00f.js} +3 -3
- package/dist/{index-CMJGuXap.js → index-DXTRMb09.js} +3 -3
- package/dist/{index-BaS8OW8V.js → index-DbVRgXxM.js} +3 -3
- package/dist/{index-naWlQpaL.js → index-DfvAv_Y2.js} +2 -2
- package/dist/{index-BWvkps_G.js → index-DzpUblMx.js} +3 -3
- package/dist/{index-sKO1lHHC.js → index-U4LYutvz.js} +2 -2
- package/dist/{index-Dm6C1blN.js → index-VbqLf82s.js} +4 -4
- package/dist/{index-BlHHEbV-.js → index-eZunhxNH.js} +2 -2
- package/dist/{index-DSq3gvqU.js → index-reQfKGuJ.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/markdownToPlainText-BOtlQ_BY.js +34 -0
- package/dist/{useChatKitLabels-Ww1Q7xUr.js → useChatKitLabels-Bz58tas9.js} +879 -10428
- package/dist/{useMessageHandler-Tellov3w.js → useMessageHandler-nnsort0-.js} +1 -1
- package/package.json +3 -3
- package/src/helpers/index.ts +1 -0
- package/src/helpers/markdownToPlainText.spec.ts +107 -0
- package/src/helpers/markdownToPlainText.ts +69 -0
- package/src/index.ts +1 -1
- package/dist/generateId-BHf0W4Rq.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, createElementBlock, createElementVNode, normalizeClass, renderSlot, createCommentVNode, mergeProps, withCtx, ref, watch, onScopeDispose, computed, useTemplateRef, createVNode, toDisplayString, resolveDynamicComponent, onBeforeUnmount, useSlots, onMounted, nextTick, onUnmounted, Fragment, renderList, normalizeStyle, Transition, createStaticVNode, Teleport, withModifiers, toValue, h, toRefs, useId, createTextVNode, useAttrs, onUpdated, createSlots, normalizeProps, guardReactiveProps, Comment, Text } from "vue";
|
|
2
2
|
import { UiIcon, UiButton, UiFileType, UiTooltip, UiPopover, UiPopoverTrigger, UiPopoverContent, formatFileSize, UiDialog, UiDialogContent, UiDialogDescription, UiFieldLabel, UiToggleGroup, UiToggleGroupItem, UiField, UiTextarea, UiFileItem, UiProgress, Primitive, UiFloatActions, UiFloatActionItems, UiCodeBlock, UiAvatar, UiAvatarImage, UiSpinner, UiAvatarFallback, UiSidebarPopoverMenu, UiSidebarPopoverMenuItem } from "@aleph-alpha/ui-library";
|
|
3
|
-
import { u as useChatKitLabels, d as defaultChatKitLabels, r as remarkCitations, b as useMarkdownParser } from "./useChatKitLabels-
|
|
3
|
+
import { u as useChatKitLabels, d as defaultChatKitLabels, r as remarkCitations, b as useMarkdownParser } from "./useChatKitLabels-Bz58tas9.js";
|
|
4
4
|
const MINUTE = 60;
|
|
5
5
|
const HOUR = 60 * MINUTE;
|
|
6
6
|
const DAY = 24 * HOUR;
|
|
@@ -2732,7 +2732,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2732
2732
|
onMounted(async () => {
|
|
2733
2733
|
const root = rootRef.value;
|
|
2734
2734
|
if (!root) return;
|
|
2735
|
-
const { createCrepeEditor } = await import("./createCrepeEditor-
|
|
2735
|
+
const { createCrepeEditor } = await import("./createCrepeEditor-C9seqnzm.js").then((n) => n.K);
|
|
2736
2736
|
if (destroyed) return;
|
|
2737
2737
|
const initialMarkdown = props.modelValue;
|
|
2738
2738
|
lastKnownMarkdown = initialMarkdown;
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, a, b, c, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B } from "../CkHistory.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _, a, b, c, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B } from "../CkHistory.vue_vue_type_script_setup_true_lang-DPCpIxWc.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CkAgentMessage,
|
|
4
4
|
a as CkAgentMessageHeader,
|
|
@@ -8,7 +8,8 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
8
8
|
var _marks, _hasText, _maybeMerge, _matchTarget, _runNode, _closeNodeAndPush, _addNodeAndPush, _a2, _b, _openMarks, _matchTarget2, _runProseNode, _runProseMark, _orderMarks, _closeEndedMarks, _runNode2, _maybeMergeChildren, _createMarkdownNode, _moveSpaces, _closeNodeAndPush2, _addNodeAndPush2, _openMark, _closeMark, _c;
|
|
9
9
|
import { p as purify } from "./katex.min-md74IFlY.js";
|
|
10
10
|
import { h, defineComponent, ref, Fragment as Fragment$1, createApp, watchEffect, watch, computed, onMounted, onUnmounted, shallowRef, nextTick } from "vue";
|
|
11
|
-
import {
|
|
11
|
+
import { h as formatCodeAsIndented, i as formatHeadingAsSetext, j as decodeString, k as encodeCharacterReference, p as patternInScope, n as handle, u as unified, r as remarkParse, v as visit, S as SKIP, d as visitParents, a as remarkGfm } from "./index-CLdXUpL8.js";
|
|
12
|
+
import { z as zwitch, c as remarkMath, d as defaultChatKitLabels } from "./useChatKitLabels-Bz58tas9.js";
|
|
12
13
|
const own = {}.hasOwnProperty;
|
|
13
14
|
function configure(base2, extension) {
|
|
14
15
|
let index = -1;
|
|
@@ -20615,7 +20616,7 @@ function legacy(parser2) {
|
|
|
20615
20616
|
return new LanguageSupport(StreamLanguage.define(parser2));
|
|
20616
20617
|
}
|
|
20617
20618
|
function sql(dialectName) {
|
|
20618
|
-
return import("./index-
|
|
20619
|
+
return import("./index-6PiPEjJd.js").then((m) => m.sql({ dialect: m[dialectName] }));
|
|
20619
20620
|
}
|
|
20620
20621
|
const languages = [
|
|
20621
20622
|
// New-style language modes
|
|
@@ -20623,7 +20624,7 @@ const languages = [
|
|
|
20623
20624
|
name: "C",
|
|
20624
20625
|
extensions: ["c", "h", "ino"],
|
|
20625
20626
|
load() {
|
|
20626
|
-
return import("./index-
|
|
20627
|
+
return import("./index-B0nlcqqF.js").then((m) => m.cpp());
|
|
20627
20628
|
}
|
|
20628
20629
|
}),
|
|
20629
20630
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20631,7 +20632,7 @@ const languages = [
|
|
|
20631
20632
|
alias: ["cpp"],
|
|
20632
20633
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
20633
20634
|
load() {
|
|
20634
|
-
return import("./index-
|
|
20635
|
+
return import("./index-B0nlcqqF.js").then((m) => m.cpp());
|
|
20635
20636
|
}
|
|
20636
20637
|
}),
|
|
20637
20638
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20646,14 +20647,14 @@ const languages = [
|
|
|
20646
20647
|
name: "CSS",
|
|
20647
20648
|
extensions: ["css"],
|
|
20648
20649
|
load() {
|
|
20649
|
-
return import("./index-
|
|
20650
|
+
return import("./index-8mYiDHFC.js").then((m) => m.css());
|
|
20650
20651
|
}
|
|
20651
20652
|
}),
|
|
20652
20653
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20653
20654
|
name: "Go",
|
|
20654
20655
|
extensions: ["go"],
|
|
20655
20656
|
load() {
|
|
20656
|
-
return import("./index-
|
|
20657
|
+
return import("./index-U4LYutvz.js").then((m) => m.go());
|
|
20657
20658
|
}
|
|
20658
20659
|
}),
|
|
20659
20660
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20661,14 +20662,14 @@ const languages = [
|
|
|
20661
20662
|
alias: ["xhtml"],
|
|
20662
20663
|
extensions: ["html", "htm", "handlebars", "hbs"],
|
|
20663
20664
|
load() {
|
|
20664
|
-
return import("./index-
|
|
20665
|
+
return import("./index-VbqLf82s.js").then((m) => m.html());
|
|
20665
20666
|
}
|
|
20666
20667
|
}),
|
|
20667
20668
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20668
20669
|
name: "Java",
|
|
20669
20670
|
extensions: ["java"],
|
|
20670
20671
|
load() {
|
|
20671
|
-
return import("./index-
|
|
20672
|
+
return import("./index-DNxEOsDD.js").then((m) => m.java());
|
|
20672
20673
|
}
|
|
20673
20674
|
}),
|
|
20674
20675
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20676,14 +20677,14 @@ const languages = [
|
|
|
20676
20677
|
alias: ["ecmascript", "js", "node"],
|
|
20677
20678
|
extensions: ["js", "mjs", "cjs"],
|
|
20678
20679
|
load() {
|
|
20679
|
-
return import("./index-
|
|
20680
|
+
return import("./index-DfvAv_Y2.js").then((m) => m.javascript());
|
|
20680
20681
|
}
|
|
20681
20682
|
}),
|
|
20682
20683
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20683
20684
|
name: "Jinja",
|
|
20684
20685
|
extensions: ["j2", "jinja", "jinja2"],
|
|
20685
20686
|
load() {
|
|
20686
|
-
return import("./index-
|
|
20687
|
+
return import("./index-DINJn4Mn.js").then((m) => m.jinja());
|
|
20687
20688
|
}
|
|
20688
20689
|
}),
|
|
20689
20690
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20691,28 +20692,28 @@ const languages = [
|
|
|
20691
20692
|
alias: ["json5"],
|
|
20692
20693
|
extensions: ["json", "map"],
|
|
20693
20694
|
load() {
|
|
20694
|
-
return import("./index-
|
|
20695
|
+
return import("./index-D85elIIr.js").then((m) => m.json());
|
|
20695
20696
|
}
|
|
20696
20697
|
}),
|
|
20697
20698
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20698
20699
|
name: "JSX",
|
|
20699
20700
|
extensions: ["jsx"],
|
|
20700
20701
|
load() {
|
|
20701
|
-
return import("./index-
|
|
20702
|
+
return import("./index-DfvAv_Y2.js").then((m) => m.javascript({ jsx: true }));
|
|
20702
20703
|
}
|
|
20703
20704
|
}),
|
|
20704
20705
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20705
20706
|
name: "LESS",
|
|
20706
20707
|
extensions: ["less"],
|
|
20707
20708
|
load() {
|
|
20708
|
-
return import("./index-
|
|
20709
|
+
return import("./index-DbVRgXxM.js").then((m) => m.less());
|
|
20709
20710
|
}
|
|
20710
20711
|
}),
|
|
20711
20712
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20712
20713
|
name: "Liquid",
|
|
20713
20714
|
extensions: ["liquid"],
|
|
20714
20715
|
load() {
|
|
20715
|
-
return import("./index-
|
|
20716
|
+
return import("./index-DzpUblMx.js").then((m) => m.liquid());
|
|
20716
20717
|
}
|
|
20717
20718
|
}),
|
|
20718
20719
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20725,7 +20726,7 @@ const languages = [
|
|
|
20725
20726
|
name: "Markdown",
|
|
20726
20727
|
extensions: ["md", "markdown", "mkd"],
|
|
20727
20728
|
load() {
|
|
20728
|
-
return import("./index-
|
|
20729
|
+
return import("./index-C5UC1wP7.js").then((m) => m.markdown());
|
|
20729
20730
|
}
|
|
20730
20731
|
}),
|
|
20731
20732
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20744,7 +20745,7 @@ const languages = [
|
|
|
20744
20745
|
name: "PHP",
|
|
20745
20746
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
20746
20747
|
load() {
|
|
20747
|
-
return import("./index-
|
|
20748
|
+
return import("./index-DXTRMb09.js").then((m) => m.php());
|
|
20748
20749
|
}
|
|
20749
20750
|
}),
|
|
20750
20751
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20765,28 +20766,28 @@ const languages = [
|
|
|
20765
20766
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
20766
20767
|
filename: /^(BUCK|BUILD)$/,
|
|
20767
20768
|
load() {
|
|
20768
|
-
return import("./index-
|
|
20769
|
+
return import("./index-CFdcEeXx.js").then((m) => m.python());
|
|
20769
20770
|
}
|
|
20770
20771
|
}),
|
|
20771
20772
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20772
20773
|
name: "Rust",
|
|
20773
20774
|
extensions: ["rs"],
|
|
20774
20775
|
load() {
|
|
20775
|
-
return import("./index-
|
|
20776
|
+
return import("./index-Bxg0Q_mk.js").then((m) => m.rust());
|
|
20776
20777
|
}
|
|
20777
20778
|
}),
|
|
20778
20779
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20779
20780
|
name: "Sass",
|
|
20780
20781
|
extensions: ["sass"],
|
|
20781
20782
|
load() {
|
|
20782
|
-
return import("./index-
|
|
20783
|
+
return import("./index-DO8xk00f.js").then((m) => m.sass({ indented: true }));
|
|
20783
20784
|
}
|
|
20784
20785
|
}),
|
|
20785
20786
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20786
20787
|
name: "SCSS",
|
|
20787
20788
|
extensions: ["scss"],
|
|
20788
20789
|
load() {
|
|
20789
|
-
return import("./index-
|
|
20790
|
+
return import("./index-DO8xk00f.js").then((m) => m.sass());
|
|
20790
20791
|
}
|
|
20791
20792
|
}),
|
|
20792
20793
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20806,7 +20807,7 @@ const languages = [
|
|
|
20806
20807
|
name: "TSX",
|
|
20807
20808
|
extensions: ["tsx"],
|
|
20808
20809
|
load() {
|
|
20809
|
-
return import("./index-
|
|
20810
|
+
return import("./index-DfvAv_Y2.js").then((m) => m.javascript({ jsx: true, typescript: true }));
|
|
20810
20811
|
}
|
|
20811
20812
|
}),
|
|
20812
20813
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20814,14 +20815,14 @@ const languages = [
|
|
|
20814
20815
|
alias: ["ts"],
|
|
20815
20816
|
extensions: ["ts", "mts", "cts"],
|
|
20816
20817
|
load() {
|
|
20817
|
-
return import("./index-
|
|
20818
|
+
return import("./index-DfvAv_Y2.js").then((m) => m.javascript({ typescript: true }));
|
|
20818
20819
|
}
|
|
20819
20820
|
}),
|
|
20820
20821
|
/* @__PURE__ */ LanguageDescription.of({
|
|
20821
20822
|
name: "WebAssembly",
|
|
20822
20823
|
extensions: ["wat", "wast"],
|
|
20823
20824
|
load() {
|
|
20824
|
-
return import("./index-
|
|
20825
|
+
return import("./index-DLZcs4H8.js").then((m) => m.wast());
|
|
20825
20826
|
}
|
|
20826
20827
|
}),
|
|
20827
20828
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20829,7 +20830,7 @@ const languages = [
|
|
|
20829
20830
|
alias: ["rss", "wsdl", "xsd"],
|
|
20830
20831
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
20831
20832
|
load() {
|
|
20832
|
-
return import("./index-
|
|
20833
|
+
return import("./index-CHtY7ztn.js").then((m) => m.xml());
|
|
20833
20834
|
}
|
|
20834
20835
|
}),
|
|
20835
20836
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -20837,7 +20838,7 @@ const languages = [
|
|
|
20837
20838
|
alias: ["yml"],
|
|
20838
20839
|
extensions: ["yaml", "yml"],
|
|
20839
20840
|
load() {
|
|
20840
|
-
return import("./index-
|
|
20841
|
+
return import("./index-eZunhxNH.js").then((m) => m.yaml());
|
|
20841
20842
|
}
|
|
20842
20843
|
}),
|
|
20843
20844
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -21626,13 +21627,13 @@ const languages = [
|
|
|
21626
21627
|
name: "Vue",
|
|
21627
21628
|
extensions: ["vue"],
|
|
21628
21629
|
load() {
|
|
21629
|
-
return import("./index-
|
|
21630
|
+
return import("./index-C90_LSx6.js").then((m) => m.vue());
|
|
21630
21631
|
}
|
|
21631
21632
|
}),
|
|
21632
21633
|
/* @__PURE__ */ LanguageDescription.of({
|
|
21633
21634
|
name: "Angular Template",
|
|
21634
21635
|
load() {
|
|
21635
|
-
return import("./index-
|
|
21636
|
+
return import("./index-By7WdPbk.js").then((m) => m.angular());
|
|
21636
21637
|
}
|
|
21637
21638
|
})
|
|
21638
21639
|
];
|
package/dist/handlers/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u } from "../useMessageHandler-
|
|
2
|
-
import { C, d, n, p, r, a, u as u2, b } from "../useChatKitLabels-
|
|
1
|
+
import { u } from "../useMessageHandler-nnsort0-.js";
|
|
2
|
+
import { C, d, n, p, r, a, u as u2, b } from "../useChatKitLabels-Bz58tas9.js";
|
|
3
3
|
export {
|
|
4
4
|
C as CHAT_KIT_LABELS,
|
|
5
5
|
d as defaultChatKitLabels,
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flatten markdown to the prose inside it: `[label](url)` becomes `label`,
|
|
3
|
+
* headings lose their `#`, emphasis markers and table pipes go.
|
|
4
|
+
*
|
|
5
|
+
* For excerpt text that is *displayed as plain text* — a citation snippet
|
|
6
|
+
* preview, say — where the markdown is an artefact of how the source was
|
|
7
|
+
* extracted rather than something the UI intends to render. Reads the parsed
|
|
8
|
+
* tree instead of pattern-matching the string, so it is structurally exact for
|
|
9
|
+
* well-formed markdown where a regex would guess. Idempotent on text carrying
|
|
10
|
+
* no markdown, so it is a no-op once a producer starts sending plain text.
|
|
11
|
+
*
|
|
12
|
+
* Two artefacts survive. A truncated excerpt can end mid-syntax (`**bold` with
|
|
13
|
+
* no closing pair), which the parser reads as literal text — the correct
|
|
14
|
+
* reading, at the cost of a visible `**`. And markdown inside a raw HTML block
|
|
15
|
+
* is never parsed as markdown, so it is flattened as the literal text it is.
|
|
16
|
+
*/
|
|
17
|
+
export declare function markdownToPlainText(markdown: string): string;
|
|
18
|
+
//# sourceMappingURL=markdownToPlainText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownToPlainText.d.ts","sourceRoot":"","sources":["../../src/helpers/markdownToPlainText.ts"],"names":[],"mappings":"AAiDA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG5D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRLanguage, a as LanguageSupport, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, s as styleTags, t as tags, b as ifNotIn, d as completeFromList, e as syntaxTree } from "./createCrepeEditor-
|
|
2
|
-
import { E as ExternalTokenizer, L as LRParser } from "./index-
|
|
1
|
+
import { L as LRLanguage, a as LanguageSupport, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, s as styleTags, t as tags, b as ifNotIn, d as completeFromList, e as syntaxTree } from "./createCrepeEditor-C9seqnzm.js";
|
|
2
|
+
import { E as ExternalTokenizer, L as LRParser } from "./index-reQfKGuJ.js";
|
|
3
3
|
const whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
|
|
4
4
|
function isAlpha(ch) {
|
|
5
5
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-
|
|
2
|
-
import { s as styleTags, t as tags$1, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, j as foldInside, e as syntaxTree, o as NodeWeakMap, I as IterMode } from "./createCrepeEditor-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-reQfKGuJ.js";
|
|
2
|
+
import { s as styleTags, t as tags$1, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, j as foldInside, e as syntaxTree, o as NodeWeakMap, I as IterMode } from "./createCrepeEditor-C9seqnzm.js";
|
|
3
3
|
const descendantOp = 148, Unit = 1, identifier$1 = 149, callee = 150, VariableName = 2, queryIdentifier = 151, queryVariableName = 3, QueryCallee = 4;
|
|
4
4
|
const space = [
|
|
5
5
|
9,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-
|
|
2
|
-
import { s as styleTags, t as tags, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, m as flatIndent, c as continuedIndent, h as delimitedIndent, f as foldNodeProp, j as foldInside } from "./createCrepeEditor-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-reQfKGuJ.js";
|
|
2
|
+
import { s as styleTags, t as tags, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, m as flatIndent, c as continuedIndent, h as delimitedIndent, f as foldNodeProp, j as foldInside } from "./createCrepeEditor-C9seqnzm.js";
|
|
3
3
|
const RawString = 1, templateArgsEndFallback = 2, MacroName = 3;
|
|
4
4
|
const R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62;
|
|
5
5
|
const rawString = new ExternalTokenizer((input) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer } from "./index-
|
|
2
|
-
import { s as styleTags, t as tags, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, j as foldInside } from "./createCrepeEditor-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer } from "./index-reQfKGuJ.js";
|
|
2
|
+
import { s as styleTags, t as tags, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, j as foldInside } from "./createCrepeEditor-C9seqnzm.js";
|
|
3
3
|
const closureParamDelim = 1, tpOpen = 2, tpClose = 3, RawString = 4, Float = 5;
|
|
4
4
|
const _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48, Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
|
|
5
5
|
function isNum(ch) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LRLanguage, a as LanguageSupport, p as parseMixed, s as styleTags, t as tags } from "./createCrepeEditor-
|
|
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, p as parseMixed, s as styleTags, t as tags } from "./createCrepeEditor-C9seqnzm.js";
|
|
2
|
+
import { html } from "./index-VbqLf82s.js";
|
|
3
|
+
import { javascriptLanguage } from "./index-DfvAv_Y2.js";
|
|
4
|
+
import { L as LRParser, E as ExternalTokenizer } from "./index-reQfKGuJ.js";
|
|
5
5
|
const Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36;
|
|
6
6
|
const text = /* @__PURE__ */ new ExternalTokenizer((input) => {
|
|
7
7
|
let start = input.pos;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Parser, k as NodeType, l as NodeProp, q as Tag, N as NodeSet, s as styleTags, T as Tree, p as parseMixed, t as tags, e as syntaxTree, g as EditorSelection, r as countColumn, a as LanguageSupport, u as Prec, v as keymap, E as EditorView, w as Language, x as indentUnit, y as foldService, z as defineLanguageFacet, C as CompletionContext, A as EditorState, f as foldNodeProp, i as indentNodeProp, B as languageDataProp, F as LanguageDescription, G as ParseContext } from "./createCrepeEditor-
|
|
2
|
-
import { html, htmlCompletionSource } from "./index-
|
|
1
|
+
import { P as Parser, k as NodeType, l as NodeProp, q as Tag, N as NodeSet, s as styleTags, T as Tree, p as parseMixed, t as tags, e as syntaxTree, g as EditorSelection, r as countColumn, a as LanguageSupport, u as Prec, v as keymap, E as EditorView, w as Language, x as indentUnit, y as foldService, z as defineLanguageFacet, C as CompletionContext, A as EditorState, f as foldNodeProp, i as indentNodeProp, B as languageDataProp, F as LanguageDescription, G as ParseContext } from "./createCrepeEditor-C9seqnzm.js";
|
|
2
|
+
import { html, htmlCompletionSource } from "./index-VbqLf82s.js";
|
|
3
3
|
class CompositeBlock {
|
|
4
4
|
static create(type, value, from, parentHash, end) {
|
|
5
5
|
let hash = parentHash + (parentHash << 8) + type + (value << 4) | 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LRLanguage, a as LanguageSupport, p as parseMixed, s as styleTags, t as tags } from "./createCrepeEditor-
|
|
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, p as parseMixed, s as styleTags, t as tags } from "./createCrepeEditor-C9seqnzm.js";
|
|
2
|
+
import { html } from "./index-VbqLf82s.js";
|
|
3
|
+
import { javascriptLanguage } from "./index-DfvAv_Y2.js";
|
|
4
|
+
import { L as LRParser, a as LocalTokenGroup } from "./index-reQfKGuJ.js";
|
|
5
5
|
const parser = /* @__PURE__ */ LRParser.deserialize({
|
|
6
6
|
version: 14,
|
|
7
7
|
states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-
|
|
2
|
-
import { s as styleTags, t as tags, b as ifNotIn, e as syntaxTree, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, h as delimitedIndent, f as foldNodeProp, j as foldInside, o as NodeWeakMap, I as IterMode, d as completeFromList, n as snippetCompletion } from "./createCrepeEditor-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-reQfKGuJ.js";
|
|
2
|
+
import { s as styleTags, t as tags, b as ifNotIn, e as syntaxTree, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, h as delimitedIndent, f as foldNodeProp, j as foldInside, o as NodeWeakMap, I as IterMode, d as completeFromList, n as snippetCompletion } from "./createCrepeEditor-C9seqnzm.js";
|
|
3
3
|
const printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155;
|
|
4
4
|
const newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85;
|
|
5
5
|
const bracketed = /* @__PURE__ */ new Set([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-
|
|
2
|
-
import { s as styleTags, t as tags, E as EditorView, e as syntaxTree, g as EditorSelection, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, f as foldNodeProp, H as bracketMatchingHandle } from "./createCrepeEditor-
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-reQfKGuJ.js";
|
|
2
|
+
import { s as styleTags, t as tags, E as EditorView, e as syntaxTree, g as EditorSelection, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, f as foldNodeProp, H as bracketMatchingHandle } from "./createCrepeEditor-C9seqnzm.js";
|
|
3
3
|
const StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
|
|
4
4
|
function nameChar(ch) {
|
|
5
5
|
return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
|