@aleph-alpha/chat-kit 6.4.1 → 6.4.3

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.
Files changed (33) hide show
  1. package/dist/{CkHistory.vue_vue_type_script_setup_true_lang-BvRIp3m6.js → CkHistory.vue_vue_type_script_setup_true_lang-Bv3FuKT4.js} +85 -35
  2. package/dist/chat-kit.css +63 -19
  3. package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts.map +1 -1
  4. package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts +2 -0
  5. package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts.map +1 -1
  6. package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts +5 -1
  7. package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts.map +1 -1
  8. package/dist/components/base/CkCodeEditor/index.d.ts +1 -0
  9. package/dist/components/base/CkCodeEditor/index.d.ts.map +1 -1
  10. package/dist/components/base/CkCodeEditor/loadCodeMirror.d.ts +17 -0
  11. package/dist/components/base/CkCodeEditor/loadCodeMirror.d.ts.map +1 -0
  12. package/dist/components/base/CkCodeEditor/types.d.ts +25 -6
  13. package/dist/components/base/CkCodeEditor/types.d.ts.map +1 -1
  14. package/dist/components/base/index.d.ts +2 -2
  15. package/dist/components/base/index.d.ts.map +1 -1
  16. package/dist/components/index.d.ts +2 -2
  17. package/dist/components/index.d.ts.map +1 -1
  18. package/dist/components/index.js +3 -2
  19. package/dist/{createCodeMirror-BO-TWTzn.js → createCodeMirror-CN8xL8qU.js} +20 -10
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +3 -2
  23. package/package.json +2 -2
  24. package/src/components/base/CkCodeEditor/CkCodeEditor.spec.ts +99 -0
  25. package/src/components/base/CkCodeEditor/CkCodeEditor.stories.ts +10 -0
  26. package/src/components/base/CkCodeEditor/CkCodeEditor.vue +123 -34
  27. package/src/components/base/CkCodeEditor/createCodeMirror.ts +34 -13
  28. package/src/components/base/CkCodeEditor/index.ts +1 -0
  29. package/src/components/base/CkCodeEditor/loadCodeMirror.ts +28 -0
  30. package/src/components/base/CkCodeEditor/types.ts +30 -6
  31. package/src/components/base/index.ts +2 -1
  32. package/src/components/index.ts +2 -0
  33. package/src/index.ts +2 -0
@@ -223,7 +223,7 @@ function useIsTruncated(elementRef, watchSource) {
223
223
  const _hoisted_1$f = { class: "ck-citation-card flex w-[22.5rem] max-w-[90vw] flex-col gap-2 rounded-md bg-background-surface-floating px-6 pb-6 pt-4 shadow-md" };
224
224
  const _hoisted_2$9 = { class: "flex min-w-0 items-center gap-3 py-0.5" };
225
225
  const _hoisted_3$8 = { class: "line-clamp-6 break-words text-sm leading-5 text-content-on-surface-secondary" };
226
- const _hoisted_4$7 = {
226
+ const _hoisted_4$8 = {
227
227
  key: 0,
228
228
  class: "flex items-center gap-1.5 text-sm leading-5 text-content-on-surface-muted"
229
229
  };
@@ -309,7 +309,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
309
309
  }, 8, ["aria-label"])) : createCommentVNode("", true)
310
310
  ]),
311
311
  createElementVNode("p", _hoisted_3$8, toDisplayString(__props.snippet), 1),
312
- __props.collectionName || __props.locationLabel ? (openBlock(), createElementBlock("p", _hoisted_4$7, [
312
+ __props.collectionName || __props.locationLabel ? (openBlock(), createElementBlock("p", _hoisted_4$8, [
313
313
  __props.collectionName ? (openBlock(), createBlock(unref(UiTooltip), {
314
314
  key: 0,
315
315
  content: __props.collectionName,
@@ -502,7 +502,7 @@ const _hoisted_3$7 = {
502
502
  key: 0,
503
503
  class: "flex min-w-0 justify-end"
504
504
  };
505
- const _hoisted_4$6 = {
505
+ const _hoisted_4$7 = {
506
506
  key: 1,
507
507
  class: "flex min-w-0 justify-start"
508
508
  };
@@ -684,7 +684,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
684
684
  }, [
685
685
  message.role === "user" ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
686
686
  renderSlot(_ctx.$slots, "user-message", { message })
687
- ])) : (openBlock(), createElementBlock("div", _hoisted_4$6, [
687
+ ])) : (openBlock(), createElementBlock("div", _hoisted_4$7, [
688
688
  renderSlot(_ctx.$slots, "agent-message", { message })
689
689
  ]))
690
690
  ], 10, _hoisted_2$8);
@@ -853,7 +853,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
853
853
  const _hoisted_1$b = ["aria-label"];
854
854
  const _hoisted_2$7 = { class: "pointer-events-none flex h-full w-full flex-col items-center justify-center gap-4 text-content-on-surface-primary" };
855
855
  const _hoisted_3$6 = { class: "flex flex-col items-center gap-1 text-center" };
856
- const _hoisted_4$5 = { class: "body-16-bold" };
856
+ const _hoisted_4$6 = { class: "body-16-bold" };
857
857
  const _hoisted_5$3 = {
858
858
  key: 0,
859
859
  class: "body-16-regular"
@@ -1029,7 +1029,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1029
1029
  renderSlot(_ctx.$slots, "default", {}, () => [
1030
1030
  createVNode(_sfc_main$l, { class: "h-36 w-52" }),
1031
1031
  createElementVNode("div", _hoisted_3$6, [
1032
- createElementVNode("p", _hoisted_4$5, toDisplayString(resolvedHeading.value), 1),
1032
+ createElementVNode("p", _hoisted_4$6, toDisplayString(resolvedHeading.value), 1),
1033
1033
  __props.hint ? (openBlock(), createElementBlock("p", _hoisted_5$3, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
1034
1034
  ])
1035
1035
  ], true)
@@ -1318,7 +1318,7 @@ const _hoisted_1$9 = {
1318
1318
  };
1319
1319
  const _hoisted_2$6 = { class: "ck-feedback-dialog__response min-h-0 flex-1 overflow-y-auto rounded-md border border-input bg-background-input-default px-3 py-2 shadow-xs" };
1320
1320
  const _hoisted_3$5 = { class: "flex min-h-0 flex-col gap-4" };
1321
- const _hoisted_4$4 = {
1321
+ const _hoisted_4$5 = {
1322
1322
  class: "self-end text-sm text-content-on-surface-muted tabular-nums",
1323
1323
  "aria-live": "polite"
1324
1324
  };
@@ -1549,7 +1549,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1549
1549
  maxlength: __props.maxFreeTextLength,
1550
1550
  rows: "3"
1551
1551
  }, null, 8, ["id", "modelValue", "placeholder", "disabled", "maxlength"]),
1552
- createElementVNode("div", _hoisted_4$4, toDisplayString(characterCount.value) + "/" + toDisplayString(__props.maxFreeTextLength), 1)
1552
+ createElementVNode("div", _hoisted_4$5, toDisplayString(characterCount.value) + "/" + toDisplayString(__props.maxFreeTextLength), 1)
1553
1553
  ]),
1554
1554
  _: 1
1555
1555
  })
@@ -1611,7 +1611,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1611
1611
  const _hoisted_1$8 = ["aria-label"];
1612
1612
  const _hoisted_2$5 = ["onClick"];
1613
1613
  const _hoisted_3$4 = ["disabled", "aria-label"];
1614
- const _hoisted_4$3 = {
1614
+ const _hoisted_4$4 = {
1615
1615
  key: 3,
1616
1616
  class: "flex min-w-0 flex-1 flex-col items-start gap-0.5"
1617
1617
  };
@@ -1789,7 +1789,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1789
1789
  !__props.showStatus ? (openBlock(), createElementBlock("span", {
1790
1790
  key: 2,
1791
1791
  class: normalizeClass(["min-w-0 flex-1 truncate text-content-on-surface-primary", __props.size === "small" ? "label-12-medium" : "body-14-medium"])
1792
- }, toDisplayString(resolvedTriggerLabel.value), 3)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
1792
+ }, toDisplayString(resolvedTriggerLabel.value), 3)) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
1793
1793
  createElementVNode("span", {
1794
1794
  class: normalizeClass(["w-full truncate text-content-on-surface-primary", __props.size === "small" ? "label-12-medium" : "body-14-medium"])
1795
1795
  }, toDisplayString(resolvedTriggerLabel.value), 3),
@@ -1858,7 +1858,7 @@ const CHAT_HISTORY_ACTIVE_INDICATOR_CLASS = "ui-active-indicator";
1858
1858
  const _hoisted_1$7 = ["data-active"];
1859
1859
  const _hoisted_2$4 = { class: "min-w-0 flex-1" };
1860
1860
  const _hoisted_3$3 = { class: "truncate body-14-regular text-content-on-surface-primary" };
1861
- const _hoisted_4$2 = {
1861
+ const _hoisted_4$3 = {
1862
1862
  key: 0,
1863
1863
  class: "mt-0.5 flex min-w-0 items-center gap-1 label-12-medium text-content-on-surface-muted"
1864
1864
  };
@@ -2006,7 +2006,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2006
2006
  default: withCtx(() => [
2007
2007
  createElementVNode("div", _hoisted_2$4, [
2008
2008
  createElementVNode("div", _hoisted_3$3, toDisplayString(props.title), 1),
2009
- props.metaStart || props.metaEnd || _ctx.$slots.meta ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
2009
+ props.metaStart || props.metaEnd || _ctx.$slots.meta ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
2010
2010
  renderSlot(_ctx.$slots, "meta", {}, () => [
2011
2011
  props.metaStart ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(props.metaStart), 1)) : createCommentVNode("", true),
2012
2012
  props.metaStart && props.metaEnd ? (openBlock(), createElementBlock("span", _hoisted_6$1, "|")) : createCommentVNode("", true),
@@ -2150,7 +2150,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2150
2150
  const _hoisted_1$6 = ["disabled", "aria-expanded", "aria-label"];
2151
2151
  const _hoisted_2$3 = { class: "min-w-0 max-w-[10rem] truncate" };
2152
2152
  const _hoisted_3$2 = ["aria-label"];
2153
- const _hoisted_4$1 = ["aria-selected", "onClick"];
2153
+ const _hoisted_4$2 = ["aria-selected", "onClick"];
2154
2154
  const _hoisted_5 = { class: "flex min-w-0 flex-1 flex-col" };
2155
2155
  const _hoisted_6 = { class: "min-w-0 truncate" };
2156
2156
  const _hoisted_7 = {
@@ -2255,7 +2255,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2255
2255
  class: "absolute right-2 text-content-on-surface-primary",
2256
2256
  "aria-hidden": "true"
2257
2257
  })) : createCommentVNode("", true)
2258
- ], 8, _hoisted_4$1)
2258
+ ], 8, _hoisted_4$2)
2259
2259
  ]);
2260
2260
  }), 128))
2261
2261
  ], 8, _hoisted_3$2)
@@ -2356,7 +2356,7 @@ const _hoisted_2$2 = {
2356
2356
  style: { "grid-area": "top" }
2357
2357
  };
2358
2358
  const _hoisted_3$1 = ["for"];
2359
- const _hoisted_4 = ["id", "value", "placeholder", "disabled"];
2359
+ const _hoisted_4$1 = ["id", "value", "placeholder", "disabled"];
2360
2360
  const MAX_LINES = 6;
2361
2361
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2362
2362
  ...{ name: "CkPromptInput" },
@@ -2492,7 +2492,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2492
2492
  onPointerdown: onPointerDown,
2493
2493
  onFocus,
2494
2494
  onBlur
2495
- }, null, 42, _hoisted_4),
2495
+ }, null, 42, _hoisted_4$1),
2496
2496
  createElementVNode("div", {
2497
2497
  class: normalizeClass([!isMultiLine.value && "pl-4"]),
2498
2498
  style: { "grid-area": "right" }
@@ -2820,12 +2820,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2820
2820
  }
2821
2821
  });
2822
2822
  const CkMilkdownEditor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d1a2a9cf"]]);
2823
+ let pending;
2824
+ function loadCodeMirror() {
2825
+ pending ??= import("./createCodeMirror-CN8xL8qU.js").catch((error) => {
2826
+ pending = void 0;
2827
+ throw error;
2828
+ });
2829
+ return pending;
2830
+ }
2831
+ function preloadCkCodeEditor() {
2832
+ loadCodeMirror().catch(() => void 0);
2833
+ }
2823
2834
  const _hoisted_1$1 = ["aria-disabled"];
2824
2835
  const _hoisted_2 = {
2825
2836
  key: 0,
2826
2837
  class: "bg-background-surface-muted-subtle flex h-9 items-center justify-between px-3"
2827
2838
  };
2828
2839
  const _hoisted_3 = { class: "text-content-on-surface-secondary label-12-regular" };
2840
+ const _hoisted_4 = ["value", "placeholder", "aria-label", "readonly", "disabled", "wrap"];
2829
2841
  const FADE_HEIGHT = "53px";
2830
2842
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2831
2843
  ...{ name: "CkCodeEditor" },
@@ -2844,6 +2856,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2844
2856
  lineWrapping: { type: Boolean, default: false },
2845
2857
  maxHeight: { default: void 0 },
2846
2858
  scrollFade: { type: Boolean, default: true },
2859
+ fadeTopBackground: { default: "secondary" },
2860
+ fadeBottomBackground: { default: "floating" },
2847
2861
  autofocus: { type: Boolean, default: false },
2848
2862
  badge: { default: void 0 },
2849
2863
  writeToClipboard: { type: Function, default: void 0 }
@@ -2855,8 +2869,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2855
2869
  const labels = useChatKitLabels();
2856
2870
  const rootRef = useTemplateRef("rootRef");
2857
2871
  const hostRef = useTemplateRef("hostRef");
2872
+ const fallbackRef = useTemplateRef("fallbackRef");
2858
2873
  const isLocked = computed(() => props.readonly || props.disabled);
2859
2874
  const isReady = ref(false);
2875
+ const isFallback = ref(false);
2860
2876
  const isCopied = ref(false);
2861
2877
  const headerLabel = computed(() => {
2862
2878
  const label = props.filename || props.language;
@@ -2879,8 +2895,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2879
2895
  const down = canScrollDown.value;
2880
2896
  return {
2881
2897
  position: edgeToFade(up, down),
2882
- background: "secondary",
2883
- style: { "--ui-fade-mask-height": up || down ? FADE_HEIGHT : "0px" }
2898
+ style: {
2899
+ "--ui-fade-mask-height": up || down ? FADE_HEIGHT : "0px",
2900
+ "--ck-code-fade-top": `var(--background-surface-${props.fadeTopBackground})`,
2901
+ "--ck-code-fade-bottom": `var(--background-surface-${props.fadeBottomBackground})`
2902
+ }
2884
2903
  };
2885
2904
  });
2886
2905
  function syncScrollFades() {
@@ -2908,16 +2927,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2908
2927
  lastKnownCode = value;
2909
2928
  emit("update:modelValue", value);
2910
2929
  }
2911
- onMounted(async () => {
2912
- const parent = hostRef.value;
2913
- if (!parent) return;
2914
- const { createCodeMirror } = await import("./createCodeMirror-BO-TWTzn.js");
2930
+ async function mountEditor(parent) {
2931
+ const { createCodeMirror } = await loadCodeMirror();
2915
2932
  if (destroyed) return;
2916
- const initialCode = props.modelValue;
2917
- lastKnownCode = initialCode;
2918
- const handle = await createCodeMirror({
2933
+ lastKnownCode = props.modelValue;
2934
+ const handle = createCodeMirror({
2919
2935
  parent,
2920
- doc: initialCode,
2936
+ doc: props.modelValue,
2921
2937
  language: props.language,
2922
2938
  placeholder: props.placeholder,
2923
2939
  ariaLabel: props.ariaLabel,
@@ -2928,16 +2944,31 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2928
2944
  onChange: handleChange,
2929
2945
  onFocus: () => emit("focus")
2930
2946
  });
2931
- if (destroyed) {
2932
- handle.destroy();
2933
- return;
2934
- }
2935
2947
  editor = handle;
2936
- if (props.modelValue !== initialCode) handle.setCode(props.modelValue);
2937
2948
  watchScrolling(handle.view.scrollDOM, handle.view.contentDOM);
2938
2949
  isReady.value = true;
2939
2950
  if (props.autofocus) handle.focus();
2951
+ }
2952
+ onMounted(async () => {
2953
+ const parent = hostRef.value;
2954
+ if (!parent) return;
2955
+ try {
2956
+ await mountEditor(parent);
2957
+ } catch (error) {
2958
+ console.error("[CkCodeEditor] Falling back to a plain textarea:", error);
2959
+ if (destroyed) return;
2960
+ editor?.destroy();
2961
+ editor = void 0;
2962
+ isFallback.value = true;
2963
+ if (props.autofocus) {
2964
+ await nextTick();
2965
+ fallbackRef.value?.focus();
2966
+ }
2967
+ }
2940
2968
  });
2969
+ function onFallbackInput(event) {
2970
+ handleChange(event.target.value);
2971
+ }
2941
2972
  watch(
2942
2973
  () => props.modelValue,
2943
2974
  (next) => {
@@ -2996,7 +3027,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2996
3027
  if (!isInsideRoot(event.relatedTarget)) emit("blur");
2997
3028
  }
2998
3029
  function focus() {
2999
- editor?.focus();
3030
+ if (editor) editor.focus();
3031
+ else fallbackRef.value?.focus();
3000
3032
  }
3001
3033
  function getCode() {
3002
3034
  return editor?.getCode() ?? props.modelValue;
@@ -3009,6 +3041,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3009
3041
  class: normalizeClass([
3010
3042
  "ck-code-editor ck-code-surface border-border-surface-default bg-background-input-default min-w-0 overflow-hidden rounded-xl border",
3011
3043
  isReady.value && "ck-code-editor--ready",
3044
+ isFallback.value && "ck-code-editor--fallback",
3012
3045
  isLocked.value && "ck-code-editor--readonly",
3013
3046
  __props.disabled && "ck-code-editor--disabled"
3014
3047
  ]),
@@ -3040,7 +3073,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3040
3073
  ref: hostRef,
3041
3074
  class: "ck-code-editor__host",
3042
3075
  style: normalizeStyle(__props.maxHeight ? { "--ck-code-max-height": __props.maxHeight } : void 0)
3043
- }, null, 4)
3076
+ }, [
3077
+ isFallback.value ? (openBlock(), createElementBlock("textarea", {
3078
+ key: 0,
3079
+ ref_key: "fallbackRef",
3080
+ ref: fallbackRef,
3081
+ class: "ck-code-editor__fallback",
3082
+ value: __props.modelValue,
3083
+ placeholder: __props.placeholder,
3084
+ "aria-label": __props.ariaLabel,
3085
+ readonly: __props.readonly,
3086
+ disabled: __props.disabled,
3087
+ wrap: __props.lineWrapping ? "soft" : "off",
3088
+ spellcheck: "false",
3089
+ onInput: onFallbackInput,
3090
+ onFocus: _cache[0] || (_cache[0] = ($event) => emit("focus"))
3091
+ }, null, 40, _hoisted_4)) : createCommentVNode("", true)
3092
+ ], 4)
3044
3093
  ]),
3045
3094
  _: 1
3046
3095
  }, 16))
@@ -3048,7 +3097,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3048
3097
  };
3049
3098
  }
3050
3099
  });
3051
- const CkCodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-75f52b7e"]]);
3100
+ const CkCodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c589384b"]]);
3052
3101
  const _hoisted_1 = {
3053
3102
  key: 1,
3054
3103
  class: "flex size-8 shrink-0 items-center justify-center rounded-2xl bg-background-surface-muted-subtle"
@@ -3386,7 +3435,8 @@ export {
3386
3435
  _sfc_main$v as B,
3387
3436
  CkCitationLabel as C,
3388
3437
  CkUserMessage as D,
3389
- formatRelativeTime as E,
3438
+ preloadCkCodeEditor as E,
3439
+ formatRelativeTime as F,
3390
3440
  _sfc_main$u as _,
3391
3441
  _sfc_main$t as a,
3392
3442
  _sfc_main$p as b,
package/dist/chat-kit.css CHANGED
@@ -176,21 +176,17 @@
176
176
  * `helpers/codemirror/code-palette.css`). The overrides live here, not in
177
177
  * `theme.ts`, because `CkMilkdownEditor`'s code blocks use that theme too and
178
178
  * must keep matching the rendered block. */
179
- .ck-code-editor[data-v-75f52b7e] {
179
+ .ck-code-editor[data-v-c589384b] {
180
+ /* `theme.ts` paints the editor from these; transparent lets the root's
181
+ * input surface show through. */
180
182
  --ck-cm-bg: transparent;
181
183
  --ck-cm-foreground: oklch(var(--content-on-surface-primary));
182
184
  --ck-cm-line-number: oklch(var(--content-on-surface-muted));
183
185
  }
184
186
 
185
- /* The editor fills the panel; `:deep` is needed because CodeMirror builds its
186
- * own DOM, which scoped styles do not reach. */
187
- .ck-code-editor__host[data-v-75f52b7e] .cm-editor {
188
- background: var(--ck-cm-bg);
189
- color: var(--ck-cm-foreground);
190
- }
191
-
192
- /* Same declarations as the `body-14-regular` typography utility. */
193
- .ck-code-editor__host[data-v-75f52b7e] .cm-scroller {
187
+ /* `:deep` is needed below because CodeMirror builds its own DOM, which scoped
188
+ * styles do not reach. Same declarations as the `body-14-regular` typography utility. */
189
+ .ck-code-editor__host[data-v-c589384b] .cm-scroller {
194
190
  max-height: var(--ck-code-max-height, none);
195
191
  font-family: Saans, sans-serif;
196
192
  font-size: 0.875rem;
@@ -200,20 +196,20 @@
200
196
 
201
197
  /* 12px below the header, 16px above the bottom edge, and a 20px right inset,
202
198
  * as in the design. */
203
- .ck-code-editor__host[data-v-75f52b7e] .cm-content {
199
+ .ck-code-editor__host[data-v-c589384b] .cm-content {
204
200
  padding: 0.75rem 1.25rem 1rem 1rem;
205
201
  }
206
202
 
207
203
  /* The number column already carries the 1rem left inset, so the code must not
208
204
  * pay for it a second time. The sibling selector only matches while the gutter
209
205
  * is mounted, which is exactly when `showLineNumbers` is on. */
210
- .ck-code-editor__host[data-v-75f52b7e] .cm-gutters ~ .cm-content {
206
+ .ck-code-editor__host[data-v-c589384b] .cm-gutters ~ .cm-content {
211
207
  padding-left: 0;
212
208
  }
213
209
 
214
210
  /* Numbers stay monospaced so the column does not jitter as digits change; the
215
211
  * 12px right padding is the gap before the code. */
216
- .ck-code-editor__host[data-v-75f52b7e] .cm-lineNumbers .cm-gutterElement {
212
+ .ck-code-editor__host[data-v-c589384b] .cm-lineNumbers .cm-gutterElement {
217
213
  min-width: 0;
218
214
  padding: 0 0.75rem 0 1rem;
219
215
  /* `CODE_FONT_FAMILY` from `theme.ts`, repeated because importing it here
@@ -223,16 +219,64 @@
223
219
  monospace;
224
220
  font-weight: 500;
225
221
  }
226
- .ck-code-editor__host[data-v-75f52b7e] .cm-placeholder {
222
+
223
+ /* A column so the stand-in below grows into a host a consumer has stretched
224
+ * (as a fixed-height dialog does), rather than sitting at its minimum height
225
+ * at the top of an empty panel. */
226
+ .ck-code-editor--fallback .ck-code-editor__host[data-v-c589384b] {
227
+ display: flex;
228
+ flex-direction: column;
229
+ }
230
+
231
+ /* Stand-in for when CodeMirror fails to load: same text metrics and insets as
232
+ * the editor without a gutter, so the field reads as the same surface. Where
233
+ * supported, it grows with its content the way the editor does. */
234
+ .ck-code-editor__fallback[data-v-c589384b] {
235
+ display: block;
236
+ flex: 1 1 auto;
237
+ width: 100%;
238
+ min-height: 5rem;
239
+ field-sizing: content;
240
+ max-height: var(--ck-code-max-height, none);
241
+ resize: none;
242
+ border: 0;
243
+ outline: none;
244
+ padding: 0.75rem 1.25rem 1rem 1rem;
245
+ background: var(--ck-cm-bg);
246
+ color: var(--ck-cm-foreground);
247
+ font-family: Saans, sans-serif;
248
+ font-size: 0.875rem;
249
+ font-weight: 400;
250
+ line-height: 1.25rem;
251
+ }
252
+ .ck-code-editor__fallback[data-v-c589384b]::placeholder,
253
+ .ck-code-editor__host[data-v-c589384b] .cm-placeholder {
227
254
  color: oklch(var(--content-on-surface-muted));
228
255
  }
229
256
 
230
- /* Nothing is being edited, so the active-line band would only be noise. */
231
- .ck-code-editor--readonly .ck-code-editor__host[data-v-75f52b7e] .cm-activeLine,
232
- .ck-code-editor--readonly .ck-code-editor__host[data-v-75f52b7e] .cm-activeLineGutter {
233
- background: transparent;
257
+ /* Each band fades into its own surface (`fadeTopBackground` /
258
+ * `fadeBottomBackground`), whereas `UiFadeMask`'s `background` sets one for
259
+ * both and only knows `primary` and `secondary`. The gradient, edges and band
260
+ * height stay the mask's own. `[data-background]` outranks the mask's
261
+ * per-surface rule regardless of stylesheet order. */
262
+ .ck-code-editor__body[data-v-c589384b]
263
+ .ui-fade-mask__band[data-background][data-position='top'] {
264
+ --ui-fade-mask-surface: var(--ck-code-fade-top);
265
+ /* The mask turns its top band opaque halfway down on desktop, which left a
266
+ * solid strip under the header; mirror the bottom band's stops instead. */
267
+ --ui-fade-mask-stop: 20%;
268
+ }
269
+ .ck-code-editor__body[data-v-c589384b]
270
+ .ui-fade-mask__band[data-background][data-position='bottom'] {
271
+ --ui-fade-mask-surface: var(--ck-code-fade-bottom);
272
+ }
273
+ @media (min-width: 768px) {
274
+ .ck-code-editor__body[data-v-c589384b]
275
+ .ui-fade-mask__band[data-background][data-position='top'] {
276
+ --ui-fade-mask-stop: 100%;
277
+ }
234
278
  }
235
- .ck-code-editor--disabled[data-v-75f52b7e] {
279
+ .ck-code-editor--disabled[data-v-c589384b] {
236
280
  opacity: 0.6;
237
281
  cursor: not-allowed;
238
282
  pointer-events: none;
@@ -1 +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,CAgDnC,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;;;;GAIG;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"}
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,CA0DnC,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;;;;GAIG;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"}
@@ -34,6 +34,8 @@ declare const __VLS_export: import("vue").DefineComponent<CkCodeEditorProps, {
34
34
  lineWrapping: boolean;
35
35
  maxHeight: string;
36
36
  scrollFade: boolean;
37
+ fadeTopBackground: import("./types").CkCodeEditorFadeSurface;
38
+ fadeBottomBackground: import("./types").CkCodeEditorFadeSurface;
37
39
  badge: import("./badgeDecoration").CkCodeEditorBadgeRule;
38
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
41
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"CkCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/CkCodeEditor.vue"],"names":[],"mappings":"AAwXA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgOpE,iBAAS,KAAK,IAAI,IAAI,CAErB;AAED,iBAAS,OAAO,IAAI,MAAM,CAEzB;AAmLD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"CkCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/CkCodeEditor.vue"],"names":[],"mappings":"AAkdA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAyPpE,iBAAS,KAAK,IAAI,IAAI,CAGrB;AAED,iBAAS,OAAO,IAAI,MAAM,CAEzB;AAiND,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -57,6 +57,10 @@ export declare function detectLineSeparator(doc: string): string;
57
57
  /**
58
58
  * Build a CodeMirror view themed like `UiCodeBlock`. Loaded lazily by
59
59
  * `CkCodeEditor` so CodeMirror stays out of the package's main chunk.
60
+ *
61
+ * The view is built at once, as plain text, and the grammar is applied when it
62
+ * arrives: the placeholder, gutter and content must not wait on a network
63
+ * request that may be slow or never finish. Only the syntax colours do.
60
64
  */
61
- export declare function createCodeMirror(options: CreateCodeMirrorOptions): Promise<CodeMirrorHandle>;
65
+ export declare function createCodeMirror(options: CreateCodeMirrorOptions): CodeMirrorHandle;
62
66
  //# sourceMappingURL=createCodeMirror.d.ts.map
@@ -1 +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,C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AQ,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;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKvD;AAyCD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CA8FlB"}
@@ -1,3 +1,4 @@
1
1
  export { default as CkCodeEditor } from './CkCodeEditor.vue';
2
+ export { preloadCkCodeEditor } from './loadCodeMirror';
2
3
  export type * from './types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type * as CodeMirrorModule from './createCodeMirror';
2
+ /**
3
+ * Import the CodeMirror chunk once and share the result.
4
+ *
5
+ * A failed import is forgotten rather than cached, so the next editor to mount
6
+ * (or the next `preloadCkCodeEditor` call) tries again instead of inheriting the
7
+ * failure.
8
+ */
9
+ export declare function loadCodeMirror(): Promise<typeof CodeMirrorModule>;
10
+ /**
11
+ * Start fetching `CkCodeEditor`'s CodeMirror chunk ahead of time, for example
12
+ * when a view that will open an editor is shown. The editor then appears
13
+ * without waiting on the network. Safe to call repeatedly; failures are
14
+ * swallowed here and surface, if still failing, when an editor mounts.
15
+ */
16
+ export declare function preloadCkCodeEditor(): void;
17
+ //# sourceMappingURL=loadCodeMirror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadCodeMirror.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/loadCodeMirror.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAI5D;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAAC,OAAO,gBAAgB,CAAC,CAMjE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C"}
@@ -1,13 +1,18 @@
1
1
  import type { CkCodeEditorBadgeRule } from './badgeDecoration';
2
2
  export type { CkCodeEditorBadgeContent, CkCodeEditorBadgeRule, } from './badgeDecoration';
3
+ /**
4
+ * Opaque design-system surfaces the scroll fade can dissolve into, each naming
5
+ * a `background-surface-*` token. Translucent surfaces are left out: the fade
6
+ * gradient needs a solid colour to end on.
7
+ */
8
+ export type CkCodeEditorFadeSurface = 'primary' | 'secondary' | 'floating' | 'modal';
3
9
  /**
4
10
  * 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
+ * It shares `UiCodeBlock`'s muted header, carrying the language and a copy
12
+ * button, and its syntax colours approximating Shiki's `github-light` /
13
+ * `github-dark`, so highlighted code keeps its colours between a reply and the
14
+ * editor. The body follows the design-system input field: body text on the
15
+ * input surface, with muted monospace line numbers.
11
16
  *
12
17
  * Use it wherever a whole document *is* code — a snippet field, a config or
13
18
  * template editor, a "create skill" form. For prose that merely contains code,
@@ -108,6 +113,20 @@ export interface CkCodeEditorProps {
108
113
  * @default true
109
114
  */
110
115
  scrollFade?: boolean;
116
+ /**
117
+ * Surface the top scroll fade dissolves into, as a `background-surface-*`
118
+ * token name. The gradient itself is `UiFadeMask`'s; only its colour changes.
119
+ *
120
+ * @default 'secondary'
121
+ */
122
+ fadeTopBackground?: CkCodeEditorFadeSurface;
123
+ /**
124
+ * Surface the bottom scroll fade dissolves into, as a `background-surface-*`
125
+ * token name. The gradient itself is `UiFadeMask`'s; only its colour changes.
126
+ *
127
+ * @default 'floating'
128
+ */
129
+ fadeBottomBackground?: CkCodeEditorFadeSurface;
111
130
  /**
112
131
  * Move focus into the editor once it has been created.
113
132
  *
@@ -1 +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;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;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"}
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;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,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C;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"}
@@ -43,6 +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
+ export { CkCodeEditor, preloadCkCodeEditor } from './CkCodeEditor';
47
+ export type { CkCodeEditorEmits, CkCodeEditorExposed, CkCodeEditorFadeSurface, CkCodeEditorProps, } from './CkCodeEditor';
48
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,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,2BAA2B,EAC3B,2BAA2B,GAC5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B,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,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,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, 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';
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, preloadCkCodeEditor, } 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, CkCodeEditorFadeSurface, 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,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"}
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,EACZ,mBAAmB,GACpB,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,uBAAuB,EACvB,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"}
@@ -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, D } from "../CkHistory.vue_vue_type_script_setup_true_lang-BvRIp3m6.js";
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, E } from "../CkHistory.vue_vue_type_script_setup_true_lang-Bv3FuKT4.js";
2
2
  export {
3
3
  _ as CkAgentMessage,
4
4
  a as CkAgentMessageHeader,
@@ -30,5 +30,6 @@ export {
30
30
  z as CkRegenerateMessageButton,
31
31
  A as CkSendIcon,
32
32
  B as CkStopIcon,
33
- D as CkUserMessage
33
+ D as CkUserMessage,
34
+ E as preloadCkCodeEditor
34
35
  };