@aleph-alpha/chat-kit 6.1.1 → 6.3.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-gV-lp0ZB.js} +345 -164
- package/dist/adapters/responses-api.js +1 -1
- package/dist/chat-kit.css +111 -28
- package/dist/code-palette-DAJUTnR-.js +21598 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts +43 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts +39 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts +44 -0
- package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/index.d.ts +3 -0
- package/dist/components/base/CkCodeEditor/index.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/types.d.ts +129 -0
- package/dist/components/base/CkCodeEditor/types.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts +6 -0
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts.map +1 -1
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts +1 -0
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts.map +1 -1
- package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts +1 -0
- package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts.map +1 -1
- package/dist/components/base/CkMilkdownEditor/types.d.ts +8 -0
- package/dist/components/base/CkMilkdownEditor/types.d.ts.map +1 -1
- package/dist/components/base/index.d.ts +2 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +27 -26
- package/dist/composables/index.js +1 -1
- package/dist/createCodeMirror-BkV6FEPn.js +101 -0
- package/dist/{createCrepeEditor-CFbvSH3s.js → createCrepeEditor-Ci5FHHIV.js} +1434 -24739
- package/dist/handlers/index.js +2 -2
- package/dist/handlers/useChatKitLabels.d.ts +6 -0
- package/dist/handlers/useChatKitLabels.d.ts.map +1 -1
- package/dist/{components/base/CkMilkdownEditor/codeMirrorTheme.d.ts → helpers/codemirror/theme.d.ts} +1 -1
- package/dist/helpers/codemirror/theme.d.ts.map +1 -0
- 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-BWvkps_G.js → index-B2tew8uf.js} +3 -3
- package/dist/{index-DhY_9bdS.js → index-BLVAx_f8.js} +2 -2
- package/dist/{index-B0ldhzaj.js → index-BUCqcTPA.js} +2 -2
- package/dist/{index-DdlzabmR.js → index-BhvbqYsK.js} +2 -2
- package/dist/{index-gzleljO6.js → index-BoUJGvvQ.js} +2 -2
- package/dist/{index-sKO1lHHC.js → index-BtY1uxn6.js} +3 -2
- package/dist/{index-BVOjyn3y.js → index-BvG6l44n.js} +3 -2
- package/dist/{index-BoqzHVNB.js → index-CB6xZVsf.js} +2 -2
- package/dist/{index-BaS8OW8V.js → index-CIF93PZF.js} +3 -3
- package/dist/index-CLdXUpL8.js +9560 -0
- package/dist/{index-DSq3gvqU.js → index-CN8d3yl1.js} +1 -1
- package/dist/{index-CRfGWVdQ.js → index-CYk7AB8M.js} +4 -4
- package/dist/{index-C72e57-5.js → index-CZFx44C7.js} +2 -2
- package/dist/{index-Tj3pzx-E.js → index-Cxs6kPho.js} +3 -3
- package/dist/index-D6ftdiLa.js +1825 -0
- package/dist/{index-CMJGuXap.js → index-DgCcFC3N.js} +3 -3
- package/dist/{index-DSU7cBGz.js → index-DhwsowEf.js} +2 -2
- package/dist/{index-C_gTb50u.js → index-Dl24CCB3.js} +4 -4
- package/dist/{index-BlHHEbV-.js → index-DqGDenO9.js} +2 -2
- package/dist/{index-naWlQpaL.js → index-DufAP1JF.js} +3 -2
- package/dist/{index-Dm6C1blN.js → index-DxTzaHLr.js} +4 -4
- package/dist/{index-A5rWjRtZ.js → index-MfXW4ZyN.js} +3 -2
- package/dist/{index-C6zYjwIQ.js → index-ZHg2R9iD.js} +3 -2
- package/dist/{index-ZeRS5rER.js → index-gYt3E3Cp.js} +2 -2
- package/dist/{index-Da3777l2.js → index-w2yzH7vs.js} +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -30
- package/dist/markdownToPlainText-BOtlQ_BY.js +34 -0
- package/dist/{useChatKitLabels-Ww1Q7xUr.js → useChatKitLabels-CatQSpfL.js} +881 -10428
- package/dist/{useMessageHandler-Tellov3w.js → useMessageHandler-nnsort0-.js} +1 -1
- package/package.json +5 -3
- package/src/components/base/CkCodeEditor/CkCodeEditor.spec.ts +223 -0
- package/src/components/base/CkCodeEditor/CkCodeEditor.stories.ts +311 -0
- package/src/components/base/CkCodeEditor/CkCodeEditor.vue +238 -0
- package/src/components/base/CkCodeEditor/createCodeMirror.ts +188 -0
- package/src/components/base/CkCodeEditor/index.ts +2 -0
- package/src/components/base/CkCodeEditor/types.ts +128 -0
- package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.spec.ts +13 -0
- package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.ts +34 -0
- package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue +3 -1
- package/src/components/base/CkMilkdownEditor/createCrepeEditor.ts +2 -1
- package/src/components/base/CkMilkdownEditor/milkdown-theme.css +39 -26
- package/src/components/base/CkMilkdownEditor/types.ts +8 -0
- package/src/components/base/index.ts +6 -0
- package/src/components/index.ts +4 -0
- package/src/handlers/useChatKitLabels.ts +6 -0
- package/src/helpers/codemirror/code-palette.css +49 -0
- package/src/{components/base/CkMilkdownEditor/codeMirrorTheme.ts → helpers/codemirror/theme.ts} +23 -12
- 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 +5 -1
- package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts.map +0 -1
- package/dist/generateId-BHf0W4Rq.js +0 -6
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-CatQSpfL.js";
|
|
3
3
|
export {
|
|
4
4
|
C as CHAT_KIT_LABELS,
|
|
5
5
|
d as defaultChatKitLabels,
|
|
@@ -109,6 +109,10 @@ export type ChatKitLabels = {
|
|
|
109
109
|
* set and more conversations exist than the limit.
|
|
110
110
|
*/
|
|
111
111
|
historyShowAll?: string;
|
|
112
|
+
/** Accessible name of the copy button in the `CkCodeEditor` header. */
|
|
113
|
+
codeEditorCopy?: string;
|
|
114
|
+
/** Accessible name of the `CkCodeEditor` copy button just after a copy. */
|
|
115
|
+
codeEditorCopied?: string;
|
|
112
116
|
/** Accessible name of the "Bold" button in the `CkMilkdownEditor` toolbar. */
|
|
113
117
|
markdownEditorBold?: string;
|
|
114
118
|
/** Accessible name of the "Italic" button in the `CkMilkdownEditor` toolbar. */
|
|
@@ -163,6 +167,8 @@ export declare const defaultChatKitLabels: {
|
|
|
163
167
|
historyItemEditAction: string;
|
|
164
168
|
historyItemDeleteAction: string;
|
|
165
169
|
historyShowAll: string;
|
|
170
|
+
codeEditorCopy: string;
|
|
171
|
+
codeEditorCopied: string;
|
|
166
172
|
markdownEditorBold: string;
|
|
167
173
|
markdownEditorItalic: string;
|
|
168
174
|
markdownEditorStrikethrough: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatKitLabels.d.ts","sourceRoot":"","sources":["../../src/handlers/useChatKitLabels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,0CAA0C;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gDAAgD;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,4FAA4F;IAC5F,uBAAuB,EAAE,MAAM,CAAC;IAChC,0EAA0E;IAC1E,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,+DAA+D;IAC/D,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gEAAgE;IAChE,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,kFAAkF;IAClF,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qEAAqE;IACrE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,iEAAiE;IACjE,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,iDAAiD;IACjD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iDAAiD;IACjD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0EAA0E;IAC1E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AsB,CAAC,EAAE,MAAM,CAAC;IAChC,mFAAmF;IACnF,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,kFAAkF;IAClF,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CE,CAAC;AAEpC,4CAA4C;AAC5C,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,WAAW,CAAC,aAAa,CAAC,CAC1C,CAAC;AAE5B,KAAK,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAE5C,yFAAyF;AACzF,KAAK,cAAc,GACf,GAAG,CAAC,aAAa,CAAC,GAClB,WAAW,CAAC,aAAa,CAAC,GAC1B,CAAC,MAAM,aAAa,CAAC,CAAC;AAE1B;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAKjE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,CAAC,aAAa,CAAC,CAK7D"}
|
package/dist/{components/base/CkMilkdownEditor/codeMirrorTheme.d.ts → helpers/codemirror/theme.d.ts}
RENAMED
|
@@ -17,4 +17,4 @@ export declare const ckHighlightStyle: HighlightStyle;
|
|
|
17
17
|
* {@link ckHighlightStyle}. Pass it as the Crepe `CodeMirror` feature `theme`.
|
|
18
18
|
*/
|
|
19
19
|
export declare const ckCodeMirrorTheme: Extension;
|
|
20
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/helpers/codemirror/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,2FAC6D,CAAC;AAO3F;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,gBAiE3B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAgD/B,CAAC"}
|
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,6 +1,6 @@
|
|
|
1
|
-
import { E as EditorView,
|
|
2
|
-
import { html } from "./index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer } from "./index-
|
|
1
|
+
import { E as EditorView, x as EditorSelection, q as LanguageSupport, y as parseMixed, w as syntaxTree, L as LRLanguage, u as styleTags, v as tags, r as indentNodeProp, z as delimitedIndent, t as foldNodeProp } from "./code-palette-DAJUTnR-.js";
|
|
2
|
+
import { html } from "./index-DxTzaHLr.js";
|
|
3
|
+
import { L as LRParser, E as ExternalTokenizer } from "./index-CN8d3yl1.js";
|
|
4
4
|
const interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 180, endrawTagStart = 4, rawText = 181, endcommentTagStart = 5, commentText = 182, InlineComment = 6;
|
|
5
5
|
function wordChar(code) {
|
|
6
6
|
return code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as LRParser } from "./index-
|
|
1
|
+
import { q as LanguageSupport, L as LRLanguage, r as indentNodeProp, z as delimitedIndent, t as foldNodeProp, A as foldInside, u as styleTags, v as tags } from "./code-palette-DAJUTnR-.js";
|
|
2
|
+
import { L as LRParser } from "./index-CN8d3yl1.js";
|
|
3
3
|
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 };
|
|
4
4
|
const parser = /* @__PURE__ */ LRParser.deserialize({
|
|
5
5
|
version: 14,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-CN8d3yl1.js";
|
|
2
|
+
import { u as styleTags, v as tags, E as EditorView, w as syntaxTree, x as EditorSelection, q as LanguageSupport, L as LRLanguage, r as indentNodeProp, t as foldNodeProp, af as bracketMatchingHandle } from "./code-palette-DAJUTnR-.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-CN8d3yl1.js";
|
|
2
|
+
import { u as styleTags, v as tags$1, q as LanguageSupport, L as LRLanguage, r as indentNodeProp, s as continuedIndent, t as foldNodeProp, A as foldInside, w as syntaxTree, a6 as NodeWeakMap, a4 as IterMode } from "./code-palette-DAJUTnR-.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 {
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-CN8d3yl1.js";
|
|
2
|
+
import { u as styleTags, v as tags, q as LanguageSupport, L as LRLanguage, r as indentNodeProp, a5 as flatIndent, s as continuedIndent, z as delimitedIndent, t as foldNodeProp, A as foldInside } from "./code-palette-DAJUTnR-.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,6 @@
|
|
|
1
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from "./index-CN8d3yl1.js";
|
|
2
|
+
import { u as styleTags, v as tags, q as LanguageSupport, L as LRLanguage, r as indentNodeProp, a5 as flatIndent, s as continuedIndent, z as delimitedIndent, t as foldNodeProp, A as foldInside, w as syntaxTree, a6 as NodeWeakMap, a4 as IterMode } from "./code-palette-DAJUTnR-.js";
|
|
3
|
+
import { i as ifNotIn, c as completeFromList, s as snippetCompletion } from "./index-D6ftdiLa.js";
|
|
3
4
|
const insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148;
|
|
4
5
|
const newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125;
|
|
5
6
|
const semicolon = new ExternalTokenizer((input, stack) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as Parser, a0 as NodeType, a2 as NodeProp, a7 as Tag, $ as NodeSet, u as styleTags, a3 as Tree, y as parseMixed, v as tags, w as syntaxTree, x as EditorSelection, a8 as countColumn, q as LanguageSupport, P as Prec, k as keymap, E as EditorView, a9 as Language, j as indentUnit, aa as foldService, ab as defineLanguageFacet, a as EditorState, t as foldNodeProp, r as indentNodeProp, ac as languageDataProp, ad as LanguageDescription, ae as ParseContext } from "./code-palette-DAJUTnR-.js";
|
|
2
|
+
import { C as CompletionContext } from "./index-D6ftdiLa.js";
|
|
3
|
+
import { html, htmlCompletionSource } from "./index-DxTzaHLr.js";
|
|
3
4
|
class CompositeBlock {
|
|
4
5
|
static create(type, value, from, parentHash, end) {
|
|
5
6
|
let hash = parentHash + (parentHash << 8) + type + (value << 4) | 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LRParser } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { L as LRParser } from "./index-CN8d3yl1.js";
|
|
2
|
+
import { u as styleTags, v as tags, q as LanguageSupport, L as LRLanguage, r as indentNodeProp, s as continuedIndent, t as foldNodeProp, A as foldInside } from "./code-palette-DAJUTnR-.js";
|
|
3
3
|
const jsonHighlighting = styleTags({
|
|
4
4
|
String: tags.string,
|
|
5
5
|
Number: tags.number,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineCSSCompletionSource } from "./index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer } from "./index-
|
|
1
|
+
import { q as LanguageSupport, L as LRLanguage, r as indentNodeProp, s as continuedIndent, t as foldNodeProp, A as foldInside, u as styleTags, v as tags } from "./code-palette-DAJUTnR-.js";
|
|
2
|
+
import { defineCSSCompletionSource } from "./index-BhvbqYsK.js";
|
|
3
|
+
import { L as LRParser, E as ExternalTokenizer } from "./index-CN8d3yl1.js";
|
|
4
4
|
const descendantOp = 110, Unit = 1, openArgList = 2;
|
|
5
5
|
const space = [
|
|
6
6
|
9,
|