@aleph-alpha/chat-kit 6.2.0 → 6.4.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-DPCpIxWc.js → CkHistory.vue_vue_type_script_setup_true_lang-B0WUzTHa.js} +351 -164
- package/dist/chat-kit.css +111 -28
- package/dist/code-palette-DH_G7mZ5.js +21599 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts +49 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts +40 -0
- package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/badgeDecoration.d.ts +47 -0
- package/dist/components/base/CkCodeEditor/badgeDecoration.d.ts.map +1 -0
- package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts +48 -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 +149 -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/createCodeMirror-5iswYetS.js +169 -0
- package/dist/{createCrepeEditor-C9seqnzm.js → createCrepeEditor-C-AQ1w_e.js} +1433 -24739
- package/dist/handlers/index.js +1 -1
- 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/{index-DO8xk00f.js → index-ABUMl7H3.js} +3 -3
- package/dist/{index-DfvAv_Y2.js → index-BlIc9r0r.js} +3 -2
- package/dist/{index-VbqLf82s.js → index-BqWO6mvz.js} +4 -4
- package/dist/{index-Bxg0Q_mk.js → index-CFGO7LRz.js} +2 -2
- package/dist/index-CG8e3146.js +1825 -0
- package/dist/{index-C90_LSx6.js → index-CIF4qQzR.js} +4 -4
- package/dist/{index-DXTRMb09.js → index-CR2kGrpY.js} +3 -3
- package/dist/{index-B0nlcqqF.js → index-CWp_t8Wl.js} +2 -2
- package/dist/{index-CHtY7ztn.js → index-D0IZW-Up.js} +2 -2
- package/dist/{index-By7WdPbk.js → index-DKwEe_Tu.js} +4 -4
- package/dist/{index-DINJn4Mn.js → index-DLjsqQHx.js} +3 -3
- package/dist/{index-eZunhxNH.js → index-DPgw0Cf_.js} +2 -2
- package/dist/{index-D85elIIr.js → index-Db5-PJG-.js} +2 -2
- package/dist/{index-CFdcEeXx.js → index-Dbi75pKH.js} +3 -2
- package/dist/{index-8mYiDHFC.js → index-DfLCrnVq.js} +2 -2
- package/dist/{index-6PiPEjJd.js → index-GpSpJ3ti.js} +3 -2
- package/dist/{index-reQfKGuJ.js → index-Mh3WUU-6.js} +1 -1
- package/dist/{index-DLZcs4H8.js → index-QAs789O5.js} +2 -2
- package/dist/{index-DzpUblMx.js → index-S4ylc8JK.js} +3 -3
- package/dist/{index-DbVRgXxM.js → index-XZeturb3.js} +3 -3
- package/dist/{index-U4LYutvz.js → index-g2X42srv.js} +3 -2
- package/dist/{index-DNxEOsDD.js → index-hEJ_Bavx.js} +2 -2
- package/dist/{index-C5UC1wP7.js → index-hbS5PDHj.js} +3 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -28
- package/dist/{useChatKitLabels-Bz58tas9.js → useChatKitLabels-CatQSpfL.js} +2 -0
- package/package.json +4 -2
- package/src/components/base/CkCodeEditor/CkCodeEditor.spec.ts +284 -0
- package/src/components/base/CkCodeEditor/CkCodeEditor.stories.ts +405 -0
- package/src/components/base/CkCodeEditor/CkCodeEditor.vue +244 -0
- package/src/components/base/CkCodeEditor/badgeDecoration.ts +173 -0
- package/src/components/base/CkCodeEditor/createCodeMirror.ts +197 -0
- package/src/components/base/CkCodeEditor/index.ts +2 -0
- package/src/components/base/CkCodeEditor/types.ts +154 -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/index.ts +4 -0
- package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts.map +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import CkCodeEditor from './CkCodeEditor.vue';
|
|
3
|
+
declare const meta: Meta<typeof CkCodeEditor>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
/**
|
|
7
|
+
* A TypeScript snippet with the header, copy button and line numbers. Type in
|
|
8
|
+
* it — changes are emitted synchronously, with no debounce.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
/**
|
|
12
|
+
* `filename` replaces the language in the header, matching the prop of the same
|
|
13
|
+
* name on `UiCodeBlock`. The grammar still comes from `language`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const WithFilename: Story;
|
|
16
|
+
/**
|
|
17
|
+
* With no language the header label is blank and nothing is highlighted, the
|
|
18
|
+
* same treatment `UiCodeBlock` gives plain text. Shown here with a placeholder
|
|
19
|
+
* and no gutter, as a lightweight snippet field.
|
|
20
|
+
*/
|
|
21
|
+
export declare const PlainText: Story;
|
|
22
|
+
/**
|
|
23
|
+
* `readonly` keeps the code selectable and copyable but drops the caret and the
|
|
24
|
+
* active-line band. Use it while a request is in flight.
|
|
25
|
+
*/
|
|
26
|
+
export declare const Readonly: Story;
|
|
27
|
+
/**
|
|
28
|
+
* `showHeader: false` gives a bare editing surface, for forms that already
|
|
29
|
+
* label the field themselves.
|
|
30
|
+
*/
|
|
31
|
+
export declare const WithoutHeader: Story;
|
|
32
|
+
/**
|
|
33
|
+
* `maxHeight` caps the scrollable area and `lineWrapping` folds long lines
|
|
34
|
+
* instead of scrolling sideways.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ScrollingAndWrapping: Story;
|
|
37
|
+
/**
|
|
38
|
+
* `badge` draws matched references as inline pills, the way a mention renders in
|
|
39
|
+
* prose. The document still holds the raw `@collection:…` text, so `getCode()`
|
|
40
|
+
* and copy give the real reference; a pill deletes as one unit.
|
|
41
|
+
*/
|
|
42
|
+
export declare const WithBadges: Story;
|
|
43
|
+
/**
|
|
44
|
+
* Parity check: the editor on the left, the same snippet rendered through
|
|
45
|
+
* `CkMarkdownRenderer` and `UiCodeBlock` on the right. Border, radius, header,
|
|
46
|
+
* font and syntax colours should read as one component in both themes.
|
|
47
|
+
*/
|
|
48
|
+
export declare const MatchesTheRenderer: Story;
|
|
49
|
+
//# sourceMappingURL=CkCodeEditor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CkCodeEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/CkCodeEditor.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,YAAY,MAAM,oBAAoB,CAAC;AA6B9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CA+CnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAgKnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAevB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAsBlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAgBxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAwBhC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { CkCodeEditorProps } from './types';
|
|
2
|
+
declare function focus(): void;
|
|
3
|
+
declare function getCode(): string;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<CkCodeEditorProps, {
|
|
5
|
+
focus: typeof focus;
|
|
6
|
+
getCode: typeof getCode;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
copy: (payload: {
|
|
9
|
+
success: boolean;
|
|
10
|
+
}) => any;
|
|
11
|
+
blur: () => any;
|
|
12
|
+
focus: () => any;
|
|
13
|
+
"update:modelValue": (value: string) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<CkCodeEditorProps> & Readonly<{
|
|
15
|
+
onCopy?: ((payload: {
|
|
16
|
+
success: boolean;
|
|
17
|
+
}) => any) | undefined;
|
|
18
|
+
onBlur?: (() => any) | undefined;
|
|
19
|
+
onFocus?: (() => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
ariaLabel: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
filename: string;
|
|
26
|
+
writeToClipboard: (text: string) => Promise<void>;
|
|
27
|
+
modelValue: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
autofocus: boolean;
|
|
30
|
+
showLineNumbers: boolean;
|
|
31
|
+
language: string;
|
|
32
|
+
showHeader: boolean;
|
|
33
|
+
showCopyButton: boolean;
|
|
34
|
+
lineWrapping: boolean;
|
|
35
|
+
maxHeight: string;
|
|
36
|
+
badge: import("./badgeDecoration").CkCodeEditorBadgeRule;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
//# sourceMappingURL=CkCodeEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CkCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/CkCodeEditor.vue"],"names":[],"mappings":"AAkQA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAiKpE,iBAAS,KAAK,IAAI,IAAI,CAErB;AAED,iBAAS,OAAO,IAAI,MAAM,CAEzB;AAoJD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Extension, Range } from '@codemirror/state';
|
|
2
|
+
import { Decoration } from '@codemirror/view';
|
|
3
|
+
/** What a matched reference should look like once it is drawn as a pill. */
|
|
4
|
+
export interface CkCodeEditorBadgeContent {
|
|
5
|
+
/** Text inside the pill. */
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional inline SVG markup for a leading icon, sized to 12px. This is
|
|
9
|
+
* developer-supplied configuration rather than document content, and it is
|
|
10
|
+
* sanitised before it reaches the DOM.
|
|
11
|
+
*/
|
|
12
|
+
icon?: string;
|
|
13
|
+
/** Native tooltip, useful for showing the underlying reference. */
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Classes replacing the default pill styling, which mirrors `UiBadge`'s
|
|
17
|
+
* `outline` variant at `small` size.
|
|
18
|
+
*/
|
|
19
|
+
class?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Rule turning matched text in the document into inline pills. */
|
|
22
|
+
export interface CkCodeEditorBadgeRule {
|
|
23
|
+
/**
|
|
24
|
+
* Pattern matched within each line. A non-global pattern is promoted to a
|
|
25
|
+
* global one, and matching never crosses a line break.
|
|
26
|
+
*/
|
|
27
|
+
pattern: RegExp;
|
|
28
|
+
/**
|
|
29
|
+
* Maps a match to its pill, or returns `null` to leave that occurrence as
|
|
30
|
+
* ordinary text. The match array carries any capture groups.
|
|
31
|
+
*/
|
|
32
|
+
render: (match: RegExpExecArray) => CkCodeEditorBadgeContent | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Draw matched references as inline pills, the way a mention or a chip renders
|
|
36
|
+
* inside prose.
|
|
37
|
+
*
|
|
38
|
+
* The document keeps the original text: the decoration only replaces what is
|
|
39
|
+
* *drawn*, so reading the value, copying and pasting all still yield the raw
|
|
40
|
+
* reference. The matched range is also registered as atomic, so the caret
|
|
41
|
+
* treats a pill as a single unit and backspace removes the whole reference
|
|
42
|
+
* rather than one character of it.
|
|
43
|
+
*/
|
|
44
|
+
export declare function badgeExtension(rule: CkCodeEditorBadgeRule): Extension;
|
|
45
|
+
/** Exported for tests: the ranges a rule would decorate in a plain string. */
|
|
46
|
+
export declare function matchBadgeRanges(rule: CkCodeEditorBadgeRule, text: string): Range<Decoration>[];
|
|
47
|
+
//# sourceMappingURL=badgeDecoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badgeDecoration.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/badgeDecoration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACL,UAAU,EAOX,MAAM,kBAAkB,CAAC;AAG1B,4EAA4E;AAC5E,MAAM,WAAW,wBAAwB;IACvC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mEAAmE;AACnE,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,wBAAwB,GAAG,IAAI,CAAC;CACrE;AAgED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,qBAAqB,GAAG,SAAS,CA+BrE;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,qBAAqB,EAC3B,IAAI,EAAE,MAAM,GACX,KAAK,CAAC,UAAU,CAAC,EAAE,CAkBrB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type LanguageSupport } from '@codemirror/language';
|
|
2
|
+
import { EditorView } from '@codemirror/view';
|
|
3
|
+
import { type CkCodeEditorBadgeRule } from './badgeDecoration';
|
|
4
|
+
import '../../../helpers/codemirror/code-palette.css';
|
|
5
|
+
export interface CreateCodeMirrorOptions {
|
|
6
|
+
/** Element the view is mounted into. */
|
|
7
|
+
parent: HTMLElement;
|
|
8
|
+
doc: string;
|
|
9
|
+
language: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
showLineNumbers: boolean;
|
|
14
|
+
lineWrapping: boolean;
|
|
15
|
+
/** Draws matched references as inline pills; see `badgeDecoration.ts`. */
|
|
16
|
+
badge?: CkCodeEditorBadgeRule;
|
|
17
|
+
/** Called synchronously whenever the document changes. */
|
|
18
|
+
onChange: (value: string) => void;
|
|
19
|
+
onFocus: () => void;
|
|
20
|
+
onBlur: () => void;
|
|
21
|
+
}
|
|
22
|
+
/** Imperative surface `CkCodeEditor` drives; keeps CodeMirror out of the SFC. */
|
|
23
|
+
export interface CodeMirrorHandle {
|
|
24
|
+
view: EditorView;
|
|
25
|
+
getCode: () => string;
|
|
26
|
+
/** Replace the whole document, keeping the cursor where it still fits. */
|
|
27
|
+
setCode: (value: string) => void;
|
|
28
|
+
setLanguage: (language: string) => Promise<void>;
|
|
29
|
+
setReadonly: (readonly: boolean) => void;
|
|
30
|
+
setShowLineNumbers: (show: boolean) => void;
|
|
31
|
+
setLineWrapping: (wrap: boolean) => void;
|
|
32
|
+
setBadge: (rule: CkCodeEditorBadgeRule | undefined) => void;
|
|
33
|
+
focus: () => void;
|
|
34
|
+
destroy: () => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Resolve a language id the way a reader would expect: by name, by alias, or by
|
|
38
|
+
* file extension, all case-insensitively. Returns `null` for plain text and for
|
|
39
|
+
* anything CodeMirror does not know, so an unrecognised id degrades to
|
|
40
|
+
* unhighlighted code instead of throwing.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveLanguage(language: string): Promise<LanguageSupport | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Build a CodeMirror view themed like `UiCodeBlock`. Loaded lazily by
|
|
45
|
+
* `CkCodeEditor` so CodeMirror stays out of the package's main chunk.
|
|
46
|
+
*/
|
|
47
|
+
export declare function createCodeMirror(options: CreateCodeMirrorOptions): Promise<CodeMirrorHandle>;
|
|
48
|
+
//# sourceMappingURL=createCodeMirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCodeMirror.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/createCodeMirror.ts"],"names":[],"mappings":"AAMA,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,UAAU,EAOX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,8CAA8C,CAAC;AAEtD,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,iFAAiF;AACjF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,0EAA0E;IAC1E,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,EAAE,CAAC,IAAI,EAAE,qBAAqB,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5D,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAKD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAkBjC;AAuCD;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CA8D3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { CkCodeEditorBadgeRule } from './badgeDecoration';
|
|
2
|
+
export type { CkCodeEditorBadgeContent, CkCodeEditorBadgeRule, } from './badgeDecoration';
|
|
3
|
+
/**
|
|
4
|
+
* Single-document code editor built on [CodeMirror 6](https://codemirror.net/).
|
|
5
|
+
* Its surface is the one `UiCodeBlock` renders for fenced code inside
|
|
6
|
+
* {@link CkMarkdownRenderer}: the same bordered, rounded panel, the same muted
|
|
7
|
+
* header carrying the language and a copy button, the same monospace metrics,
|
|
8
|
+
* and syntax colours approximating Shiki's `github-light` / `github-dark`. A
|
|
9
|
+
* snippet therefore looks the same whether it is being read in a reply or
|
|
10
|
+
* edited here.
|
|
11
|
+
*
|
|
12
|
+
* Use it wherever a whole document *is* code — a snippet field, a config or
|
|
13
|
+
* template editor, a "create skill" form. For prose that merely contains code,
|
|
14
|
+
* use {@link CkMilkdownEditor}, whose fenced blocks share this same theme.
|
|
15
|
+
*
|
|
16
|
+
* Grammars load on demand from CodeMirror's language data, so only the
|
|
17
|
+
* languages actually opened are fetched, and the editor itself loads lazily on
|
|
18
|
+
* mount so importing the component costs nothing until one is shown.
|
|
19
|
+
*
|
|
20
|
+
* @category Form Inputs
|
|
21
|
+
* @useCases edit a code snippet, config or template editor, code field in a form, review and tweak generated code
|
|
22
|
+
* @keywords code, editor, codemirror, syntax highlighting, snippet, v-model, monospace, language
|
|
23
|
+
* @related CkMilkdownEditor, CkMarkdownRenderer
|
|
24
|
+
*/
|
|
25
|
+
export interface CkCodeEditorProps {
|
|
26
|
+
/**
|
|
27
|
+
* The code. Supports `v-model`.
|
|
28
|
+
*
|
|
29
|
+
* Unlike {@link CkMilkdownEditor}, updates are emitted synchronously on every
|
|
30
|
+
* change, with no debounce and no reformatting of what you pass in.
|
|
31
|
+
*
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
modelValue?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Language id used for both syntax highlighting and the header label, for
|
|
37
|
+
* example `typescript`, `python`, `json` or `bash`. Matching is on the names,
|
|
38
|
+
* aliases and extensions CodeMirror knows; an unknown value still renders as
|
|
39
|
+
* plain text rather than failing.
|
|
40
|
+
*
|
|
41
|
+
* @default 'text'
|
|
42
|
+
*/
|
|
43
|
+
language?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Filename shown in the header instead of the language, mirroring the prop of
|
|
46
|
+
* the same name on `UiCodeBlock`.
|
|
47
|
+
*/
|
|
48
|
+
filename?: string;
|
|
49
|
+
/** Text shown while the document is empty. */
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Render the code without allowing edits. The caret and the active-line
|
|
53
|
+
* highlight are hidden, but the text stays selectable and copyable.
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
readonly?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Like `readonly`, but also mutes the editor and marks it `aria-disabled`.
|
|
60
|
+
*
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/** Accessible name for the editable region. */
|
|
65
|
+
ariaLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Show the header bar with the language or filename and the copy button. Set
|
|
68
|
+
* it to `false` for a bare editing surface.
|
|
69
|
+
*
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
showHeader?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Show the copy button in the header.
|
|
75
|
+
*
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
showCopyButton?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Show the line-number gutter. On by default, which is what a dedicated code
|
|
81
|
+
* editor is expected to do; `UiCodeBlock` and `CkMilkdownEditor` default to
|
|
82
|
+
* `false` because their code is being read rather than written.
|
|
83
|
+
*
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
showLineNumbers?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Wrap long lines instead of scrolling horizontally. `UiCodeBlock` scrolls,
|
|
89
|
+
* so the default keeps the two consistent.
|
|
90
|
+
*
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
lineWrapping?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Maximum height of the scrollable code area, as any CSS length, for example
|
|
96
|
+
* `'24rem'`. Unset, the editor grows with its content.
|
|
97
|
+
*/
|
|
98
|
+
maxHeight?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Move focus into the editor once it has been created.
|
|
101
|
+
*
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
autofocus?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Draws matched text as an inline pill, the way a mention renders in prose.
|
|
107
|
+
* Give a pattern and a callback mapping each match to a label and optional
|
|
108
|
+
* icon; return `null` from the callback to leave an occurrence alone.
|
|
109
|
+
*
|
|
110
|
+
* The document keeps the original text, so `getCode()`, copying and pasting
|
|
111
|
+
* still yield the raw reference. A pill behaves as one unit for the caret,
|
|
112
|
+
* so backspace removes the whole reference.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const badge = {
|
|
117
|
+
* pattern: /@collection:([\w-]+)/g,
|
|
118
|
+
* render: (m) => ({ label: m[1], icon: folderSvg }),
|
|
119
|
+
* };
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
badge?: CkCodeEditorBadgeRule;
|
|
123
|
+
/**
|
|
124
|
+
* Clipboard writer for the copy button. Injected for tests and for hosts that
|
|
125
|
+
* proxy clipboard access; defaults to `navigator.clipboard.writeText`.
|
|
126
|
+
*/
|
|
127
|
+
writeToClipboard?: (text: string) => Promise<void>;
|
|
128
|
+
}
|
|
129
|
+
/** Events emitted by {@link CkCodeEditor}. */
|
|
130
|
+
export interface CkCodeEditorEmits {
|
|
131
|
+
/** Emitted on every document change, with the full code. */
|
|
132
|
+
'update:modelValue': [value: string];
|
|
133
|
+
/** Emitted when the editing area gains focus. */
|
|
134
|
+
focus: [];
|
|
135
|
+
/** Emitted when focus leaves the editor entirely, header included. */
|
|
136
|
+
blur: [];
|
|
137
|
+
/** Emitted after the copy button runs, whether or not the write succeeded. */
|
|
138
|
+
copy: [payload: {
|
|
139
|
+
success: boolean;
|
|
140
|
+
}];
|
|
141
|
+
}
|
|
142
|
+
/** Methods exposed by {@link CkCodeEditor} through a template ref. */
|
|
143
|
+
export interface CkCodeEditorExposed {
|
|
144
|
+
/** Focus the editing area. No-op until the editor has been created. */
|
|
145
|
+
focus: () => void;
|
|
146
|
+
/** Read the current document synchronously. */
|
|
147
|
+
getCode: () => string;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG/D,YAAY,EACV,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,iDAAiD;IACjD,KAAK,EAAE,EAAE,CAAC;IACV,sEAAsE;IACtE,IAAI,EAAE,EAAE,CAAC;IACT,8EAA8E;IAC9E,IAAI,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACvC;AAED,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,uEAAuE;IACvE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,MAAM,CAAC;CACvB"}
|
|
@@ -21,6 +21,12 @@ export declare const WithInitialContent: Story;
|
|
|
21
21
|
* a message in the editor's layout while a request is in flight.
|
|
22
22
|
*/
|
|
23
23
|
export declare const Readonly: Story;
|
|
24
|
+
/**
|
|
25
|
+
* `showLineNumbers` reveals the line-number gutter on fenced code blocks. It
|
|
26
|
+
* matches the prop of the same name on `UiCodeBlock`, so the same flag can keep
|
|
27
|
+
* the editor and the rendered message consistent.
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithLineNumbers: Story;
|
|
24
30
|
/**
|
|
25
31
|
* `disabled` also mutes the content and blocks pointer interaction, and sets
|
|
26
32
|
* `aria-disabled` on the root.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CkMilkdownEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAGtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CkMilkdownEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAGtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAuBvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA+InC;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAWhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,KAW7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAoBpC,CAAC"}
|
|
@@ -20,6 +20,7 @@ declare const __VLS_export: import("vue").DefineComponent<CkMilkdownEditorProps,
|
|
|
20
20
|
modelValue: string;
|
|
21
21
|
placeholder: string;
|
|
22
22
|
autofocus: boolean;
|
|
23
|
+
showLineNumbers: boolean;
|
|
23
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
25
|
declare const _default: typeof __VLS_export;
|
|
25
26
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CkMilkdownEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CkMilkdownEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue"],"names":[],"mappings":"AAuKA,OAAO,KAAK,EAAyB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA8G5E,iBAAS,KAAK,IAAI,IAAI,CAErB;AAED,iBAAS,WAAW,IAAI,MAAM,CAE7B;AA4DD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -8,6 +8,7 @@ import '@milkdown/crepe/theme/common/list-item.css';
|
|
|
8
8
|
import '@milkdown/crepe/theme/common/link-tooltip.css';
|
|
9
9
|
import '@milkdown/crepe/theme/common/toolbar.css';
|
|
10
10
|
import '@milkdown/crepe/theme/common/code-mirror.css';
|
|
11
|
+
import '../../../helpers/codemirror/code-palette.css';
|
|
11
12
|
import './milkdown-theme.css';
|
|
12
13
|
export interface CreateCrepeEditorOptions {
|
|
13
14
|
/** Element the editor is mounted into. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCrepeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/createCrepeEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAkC,MAAM,iBAAiB,CAAC;AAGxE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAYtE,OAAO,8CAA8C,CAAC;AACtD,OAAO,yCAAyC,CAAC;AACjD,OAAO,8CAA8C,CAAC;AACtD,OAAO,4CAA4C,CAAC;AACpD,OAAO,+CAA+C,CAAC;AACvD,OAAO,0CAA0C,CAAC;AAClD,OAAO,8CAA8C,CAAC;AACtD,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,wBAAwB;IACvC,0CAA0C;IAC1C,IAAI,EAAE,WAAW,CAAC;IAClB,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,OAAO,EAAE,wBAAwB,CAAC;IAClC,MAAM,EAAE,aAAa,CAAC;IACtB,6EAA6E;IAC7E,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,yFAAyF;AACzF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,oDAAoD;IACpD,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,EAAE,MAAM,MAAM,CAAC;IAC1B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAuED;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,iBAAiB,CAAC,CA6D5B"}
|
|
1
|
+
{"version":3,"file":"createCrepeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/createCrepeEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAkC,MAAM,iBAAiB,CAAC;AAGxE,OAAO,EAEL,KAAK,aAAa,EACnB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/
|
|
72
72
|
autofocus?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Show a line-number gutter on fenced code blocks. Matches the prop of the
|
|
75
|
+
* same name on `UiCodeBlock`, so one flag can drive the editor and the
|
|
76
|
+
* rendered message alike. Applies to code blocks already on screen.
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
showLineNumbers?: boolean;
|
|
73
81
|
}
|
|
74
82
|
/** Events emitted by {@link CkMilkdownEditor}. */
|
|
75
83
|
export interface CkMilkdownEditorEmits {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,oEAAoE;IACpE,KAAK,EAAE,EAAE,CAAC;IACV,qEAAqE;IACrE,IAAI,EAAE,EAAE,CAAC;CACV;AAED,0EAA0E;AAC1E,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,MAAM,CAAC;CAC3B"}
|
|
@@ -43,4 +43,6 @@ export { CkEditableUserMessage } from './CkEditableUserMessage';
|
|
|
43
43
|
export type { CkEditableUserMessageEmits, CkEditableUserMessageProps, } from './CkEditableUserMessage';
|
|
44
44
|
export { CkMilkdownEditor } from './CkMilkdownEditor';
|
|
45
45
|
export type { CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, } from './CkMilkdownEditor';
|
|
46
|
+
export { CkCodeEditor } from './CkCodeEditor';
|
|
47
|
+
export type { CkCodeEditorEmits, CkCodeEditorExposed, CkCodeEditorProps, } from './CkCodeEditor';
|
|
46
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,U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E,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationLabel, CkCitationCard, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkUserMessage, CkEditableUserMessage, CkMilkdownEditor, } from './base';
|
|
2
|
-
export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationLabelProps, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, } from './base';
|
|
1
|
+
export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationLabel, CkCitationCard, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkUserMessage, CkEditableUserMessage, CkMilkdownEditor, CkCodeEditor, } from './base';
|
|
2
|
+
export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationLabelProps, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, CkCodeEditorEmits, CkCodeEditorExposed, CkCodeEditorProps, } from './base';
|
|
3
3
|
export { CkConversation, CkHistory } from './composed';
|
|
4
4
|
export type { CkConversationProps, CkHistoryEmits, CkHistoryProps, } from './composed';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,YAAY,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
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, D } from "../CkHistory.vue_vue_type_script_setup_true_lang-B0WUzTHa.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CkAgentMessage,
|
|
4
4
|
a as CkAgentMessageHeader,
|
|
5
5
|
b as CkCitation,
|
|
6
6
|
c as CkCitationCard,
|
|
7
7
|
C as CkCitationLabel,
|
|
8
|
-
d as
|
|
9
|
-
e as
|
|
10
|
-
f as
|
|
11
|
-
g as
|
|
12
|
-
h as
|
|
13
|
-
i as
|
|
14
|
-
j as
|
|
15
|
-
k as
|
|
16
|
-
l as
|
|
17
|
-
m as
|
|
18
|
-
n as
|
|
19
|
-
o as
|
|
20
|
-
p as
|
|
21
|
-
q as
|
|
22
|
-
r as
|
|
23
|
-
s as
|
|
24
|
-
t as
|
|
25
|
-
u as
|
|
26
|
-
v as
|
|
27
|
-
w as
|
|
28
|
-
x as
|
|
29
|
-
y as
|
|
30
|
-
z as
|
|
31
|
-
A as
|
|
32
|
-
B as
|
|
8
|
+
d as CkCodeEditor,
|
|
9
|
+
e as CkConversation,
|
|
10
|
+
f as CkConversationLayout,
|
|
11
|
+
g as CkCopyMessageButton,
|
|
12
|
+
h as CkDropZoneOverlay,
|
|
13
|
+
i as CkEditableUserMessage,
|
|
14
|
+
j as CkFeedbackButton,
|
|
15
|
+
k as CkFeedbackDialog,
|
|
16
|
+
l as CkFileItemsList,
|
|
17
|
+
m as CkHeaderActivityButton,
|
|
18
|
+
n as CkHistory,
|
|
19
|
+
o as CkHistoryItem,
|
|
20
|
+
p as CkHistoryWrapper,
|
|
21
|
+
q as CkMarkdownRenderer,
|
|
22
|
+
r as CkMessageButton,
|
|
23
|
+
s as CkMilkdownEditor,
|
|
24
|
+
t as CkModelSelector,
|
|
25
|
+
u as CkPromptInput,
|
|
26
|
+
v as CkPromptInputDisclaimer,
|
|
27
|
+
w as CkPromptMenuButton,
|
|
28
|
+
x as CkPromptSendButton,
|
|
29
|
+
y as CkPromptStopButton,
|
|
30
|
+
z as CkRegenerateMessageButton,
|
|
31
|
+
A as CkSendIcon,
|
|
32
|
+
B as CkStopIcon,
|
|
33
|
+
D as CkUserMessage
|
|
33
34
|
};
|