@aleph-alpha/chat-kit 6.3.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.
Files changed (47) hide show
  1. package/dist/{CkHistory.vue_vue_type_script_setup_true_lang-gV-lp0ZB.js → CkHistory.vue_vue_type_script_setup_true_lang-B0WUzTHa.js} +11 -5
  2. package/dist/chat-kit.css +5 -5
  3. package/dist/{code-palette-DAJUTnR-.js → code-palette-DH_G7mZ5.js} +111 -110
  4. package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts +6 -0
  5. package/dist/components/base/CkCodeEditor/CkCodeEditor.stories.d.ts.map +1 -1
  6. package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts +1 -0
  7. package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts.map +1 -1
  8. package/dist/components/base/CkCodeEditor/badgeDecoration.d.ts +47 -0
  9. package/dist/components/base/CkCodeEditor/badgeDecoration.d.ts.map +1 -0
  10. package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts +4 -0
  11. package/dist/components/base/CkCodeEditor/createCodeMirror.d.ts.map +1 -1
  12. package/dist/components/base/CkCodeEditor/types.d.ts +20 -0
  13. package/dist/components/base/CkCodeEditor/types.d.ts.map +1 -1
  14. package/dist/components/index.js +1 -1
  15. package/dist/{createCodeMirror-BkV6FEPn.js → createCodeMirror-5iswYetS.js} +70 -2
  16. package/dist/{createCrepeEditor-Ci5FHHIV.js → createCrepeEditor-C-AQ1w_e.js} +2 -2
  17. package/dist/{index-Cxs6kPho.js → index-ABUMl7H3.js} +3 -3
  18. package/dist/{index-DufAP1JF.js → index-BlIc9r0r.js} +3 -3
  19. package/dist/{index-DxTzaHLr.js → index-BqWO6mvz.js} +4 -4
  20. package/dist/{index-DhwsowEf.js → index-CFGO7LRz.js} +2 -2
  21. package/dist/{index-D6ftdiLa.js → index-CG8e3146.js} +1 -1
  22. package/dist/{index-Dl24CCB3.js → index-CIF4qQzR.js} +4 -4
  23. package/dist/{index-DgCcFC3N.js → index-CR2kGrpY.js} +3 -3
  24. package/dist/{index-BoUJGvvQ.js → index-CWp_t8Wl.js} +2 -2
  25. package/dist/{index-BUCqcTPA.js → index-D0IZW-Up.js} +2 -2
  26. package/dist/{index-CYk7AB8M.js → index-DKwEe_Tu.js} +4 -4
  27. package/dist/{index-w2yzH7vs.js → index-DLjsqQHx.js} +3 -3
  28. package/dist/{index-DqGDenO9.js → index-DPgw0Cf_.js} +2 -2
  29. package/dist/{index-CB6xZVsf.js → index-Db5-PJG-.js} +2 -2
  30. package/dist/{index-MfXW4ZyN.js → index-Dbi75pKH.js} +3 -3
  31. package/dist/{index-BhvbqYsK.js → index-DfLCrnVq.js} +2 -2
  32. package/dist/{index-ZHg2R9iD.js → index-GpSpJ3ti.js} +3 -3
  33. package/dist/{index-CN8d3yl1.js → index-Mh3WUU-6.js} +1 -1
  34. package/dist/{index-BLVAx_f8.js → index-QAs789O5.js} +2 -2
  35. package/dist/{index-B2tew8uf.js → index-S4ylc8JK.js} +3 -3
  36. package/dist/{index-CIF93PZF.js → index-XZeturb3.js} +3 -3
  37. package/dist/{index-BtY1uxn6.js → index-g2X42srv.js} +3 -3
  38. package/dist/{index-gYt3E3Cp.js → index-hEJ_Bavx.js} +2 -2
  39. package/dist/{index-BvG6l44n.js → index-hbS5PDHj.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/package.json +3 -3
  42. package/src/components/base/CkCodeEditor/CkCodeEditor.spec.ts +61 -0
  43. package/src/components/base/CkCodeEditor/CkCodeEditor.stories.ts +94 -0
  44. package/src/components/base/CkCodeEditor/CkCodeEditor.vue +8 -2
  45. package/src/components/base/CkCodeEditor/badgeDecoration.ts +173 -0
  46. package/src/components/base/CkCodeEditor/createCodeMirror.ts +9 -0
  47. package/src/components/base/CkCodeEditor/types.ts +26 -0
@@ -2733,7 +2733,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2733
2733
  onMounted(async () => {
2734
2734
  const root = rootRef.value;
2735
2735
  if (!root) return;
2736
- const { createCrepeEditor } = await import("./createCrepeEditor-Ci5FHHIV.js");
2736
+ const { createCrepeEditor } = await import("./createCrepeEditor-C-AQ1w_e.js");
2737
2737
  if (destroyed) return;
2738
2738
  const initialMarkdown = props.modelValue;
2739
2739
  lastKnownMarkdown = initialMarkdown;
@@ -2811,9 +2811,9 @@ const CkMilkdownEditor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId",
2811
2811
  const _hoisted_1$1 = ["aria-disabled"];
2812
2812
  const _hoisted_2 = {
2813
2813
  key: 0,
2814
- class: "border-border-surface-default bg-background-surface-muted flex items-center justify-between border-b px-4 py-2"
2814
+ class: "bg-background-surface-muted-subtle flex h-9 items-center justify-between px-3"
2815
2815
  };
2816
- const _hoisted_3 = { class: "text-content-on-surface-secondary font-mono text-sm" };
2816
+ const _hoisted_3 = { class: "text-content-on-surface-secondary label-12-regular" };
2817
2817
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2818
2818
  ...{ name: "CkCodeEditor" },
2819
2819
  __name: "CkCodeEditor",
@@ -2831,6 +2831,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2831
2831
  lineWrapping: { type: Boolean, default: false },
2832
2832
  maxHeight: { default: void 0 },
2833
2833
  autofocus: { type: Boolean, default: false },
2834
+ badge: { default: void 0 },
2834
2835
  writeToClipboard: { type: Function, default: void 0 }
2835
2836
  },
2836
2837
  emits: ["update:modelValue", "focus", "blur", "copy"],
@@ -2862,7 +2863,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2862
2863
  onMounted(async () => {
2863
2864
  const parent = hostRef.value;
2864
2865
  if (!parent) return;
2865
- const { createCodeMirror } = await import("./createCodeMirror-BkV6FEPn.js");
2866
+ const { createCodeMirror } = await import("./createCodeMirror-5iswYetS.js");
2866
2867
  if (destroyed) return;
2867
2868
  const initialCode = props.modelValue;
2868
2869
  lastKnownCode = initialCode;
@@ -2875,6 +2876,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2875
2876
  readonly: isLocked.value,
2876
2877
  showLineNumbers: props.showLineNumbers,
2877
2878
  lineWrapping: props.lineWrapping,
2879
+ badge: props.badge,
2878
2880
  onChange: handleChange,
2879
2881
  onFocus: () => emit("focus"),
2880
2882
  onBlur: () => emit("blur")
@@ -2911,6 +2913,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2911
2913
  () => props.lineWrapping,
2912
2914
  (wrap) => editor?.setLineWrapping(wrap)
2913
2915
  );
2916
+ watch(
2917
+ () => props.badge,
2918
+ (rule) => editor?.setBadge(rule)
2919
+ );
2914
2920
  onBeforeUnmount(() => {
2915
2921
  destroyed = true;
2916
2922
  clearTimeout(copyTimer);
@@ -2985,7 +2991,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2985
2991
  };
2986
2992
  }
2987
2993
  });
2988
- const CkCodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-567251c3"]]);
2994
+ const CkCodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c1539a6f"]]);
2989
2995
  const _hoisted_1 = {
2990
2996
  key: 1,
2991
2997
  class: "flex size-8 shrink-0 items-center justify-center rounded-2xl bg-background-surface-muted-subtle"
package/dist/chat-kit.css CHANGED
@@ -172,20 +172,20 @@
172
172
 
173
173
  /* The editor fills the panel; `:deep` is needed because CodeMirror builds its
174
174
  * own DOM, which scoped styles do not reach. */
175
- .ck-code-editor__host[data-v-567251c3] .cm-editor {
175
+ .ck-code-editor__host[data-v-c1539a6f] .cm-editor {
176
176
  background: var(--ck-cm-bg);
177
177
  color: var(--ck-cm-foreground);
178
178
  }
179
- .ck-code-editor__host[data-v-567251c3] .cm-scroller {
179
+ .ck-code-editor__host[data-v-c1539a6f] .cm-scroller {
180
180
  max-height: var(--ck-code-max-height, none);
181
181
  }
182
182
 
183
183
  /* Nothing is being edited, so the active-line band would only be noise. */
184
- .ck-code-editor--readonly .ck-code-editor__host[data-v-567251c3] .cm-activeLine,
185
- .ck-code-editor--readonly .ck-code-editor__host[data-v-567251c3] .cm-activeLineGutter {
184
+ .ck-code-editor--readonly .ck-code-editor__host[data-v-c1539a6f] .cm-activeLine,
185
+ .ck-code-editor--readonly .ck-code-editor__host[data-v-c1539a6f] .cm-activeLineGutter {
186
186
  background: transparent;
187
187
  }
188
- .ck-code-editor--disabled[data-v-567251c3] {
188
+ .ck-code-editor--disabled[data-v-c1539a6f] {
189
189
  opacity: 0.6;
190
190
  cursor: not-allowed;
191
191
  pointer-events: none;
@@ -19273,7 +19273,7 @@ function legacy(parser) {
19273
19273
  return new LanguageSupport(StreamLanguage.define(parser));
19274
19274
  }
19275
19275
  function sql(dialectName) {
19276
- return import("./index-ZHg2R9iD.js").then((m) => m.sql({ dialect: m[dialectName] }));
19276
+ return import("./index-GpSpJ3ti.js").then((m) => m.sql({ dialect: m[dialectName] }));
19277
19277
  }
19278
19278
  const languages = [
19279
19279
  // New-style language modes
@@ -19281,7 +19281,7 @@ const languages = [
19281
19281
  name: "C",
19282
19282
  extensions: ["c", "h", "ino"],
19283
19283
  load() {
19284
- return import("./index-BoUJGvvQ.js").then((m) => m.cpp());
19284
+ return import("./index-CWp_t8Wl.js").then((m) => m.cpp());
19285
19285
  }
19286
19286
  }),
19287
19287
  /* @__PURE__ */ LanguageDescription.of({
@@ -19289,7 +19289,7 @@ const languages = [
19289
19289
  alias: ["cpp"],
19290
19290
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
19291
19291
  load() {
19292
- return import("./index-BoUJGvvQ.js").then((m) => m.cpp());
19292
+ return import("./index-CWp_t8Wl.js").then((m) => m.cpp());
19293
19293
  }
19294
19294
  }),
19295
19295
  /* @__PURE__ */ LanguageDescription.of({
@@ -19304,14 +19304,14 @@ const languages = [
19304
19304
  name: "CSS",
19305
19305
  extensions: ["css"],
19306
19306
  load() {
19307
- return import("./index-BhvbqYsK.js").then((m) => m.css());
19307
+ return import("./index-DfLCrnVq.js").then((m) => m.css());
19308
19308
  }
19309
19309
  }),
19310
19310
  /* @__PURE__ */ LanguageDescription.of({
19311
19311
  name: "Go",
19312
19312
  extensions: ["go"],
19313
19313
  load() {
19314
- return import("./index-BtY1uxn6.js").then((m) => m.go());
19314
+ return import("./index-g2X42srv.js").then((m) => m.go());
19315
19315
  }
19316
19316
  }),
19317
19317
  /* @__PURE__ */ LanguageDescription.of({
@@ -19319,14 +19319,14 @@ const languages = [
19319
19319
  alias: ["xhtml"],
19320
19320
  extensions: ["html", "htm", "handlebars", "hbs"],
19321
19321
  load() {
19322
- return import("./index-DxTzaHLr.js").then((m) => m.html());
19322
+ return import("./index-BqWO6mvz.js").then((m) => m.html());
19323
19323
  }
19324
19324
  }),
19325
19325
  /* @__PURE__ */ LanguageDescription.of({
19326
19326
  name: "Java",
19327
19327
  extensions: ["java"],
19328
19328
  load() {
19329
- return import("./index-gYt3E3Cp.js").then((m) => m.java());
19329
+ return import("./index-hEJ_Bavx.js").then((m) => m.java());
19330
19330
  }
19331
19331
  }),
19332
19332
  /* @__PURE__ */ LanguageDescription.of({
@@ -19334,14 +19334,14 @@ const languages = [
19334
19334
  alias: ["ecmascript", "js", "node"],
19335
19335
  extensions: ["js", "mjs", "cjs"],
19336
19336
  load() {
19337
- return import("./index-DufAP1JF.js").then((m) => m.javascript());
19337
+ return import("./index-BlIc9r0r.js").then((m) => m.javascript());
19338
19338
  }
19339
19339
  }),
19340
19340
  /* @__PURE__ */ LanguageDescription.of({
19341
19341
  name: "Jinja",
19342
19342
  extensions: ["j2", "jinja", "jinja2"],
19343
19343
  load() {
19344
- return import("./index-w2yzH7vs.js").then((m) => m.jinja());
19344
+ return import("./index-DLjsqQHx.js").then((m) => m.jinja());
19345
19345
  }
19346
19346
  }),
19347
19347
  /* @__PURE__ */ LanguageDescription.of({
@@ -19349,28 +19349,28 @@ const languages = [
19349
19349
  alias: ["json5"],
19350
19350
  extensions: ["json", "map"],
19351
19351
  load() {
19352
- return import("./index-CB6xZVsf.js").then((m) => m.json());
19352
+ return import("./index-Db5-PJG-.js").then((m) => m.json());
19353
19353
  }
19354
19354
  }),
19355
19355
  /* @__PURE__ */ LanguageDescription.of({
19356
19356
  name: "JSX",
19357
19357
  extensions: ["jsx"],
19358
19358
  load() {
19359
- return import("./index-DufAP1JF.js").then((m) => m.javascript({ jsx: true }));
19359
+ return import("./index-BlIc9r0r.js").then((m) => m.javascript({ jsx: true }));
19360
19360
  }
19361
19361
  }),
19362
19362
  /* @__PURE__ */ LanguageDescription.of({
19363
19363
  name: "LESS",
19364
19364
  extensions: ["less"],
19365
19365
  load() {
19366
- return import("./index-CIF93PZF.js").then((m) => m.less());
19366
+ return import("./index-XZeturb3.js").then((m) => m.less());
19367
19367
  }
19368
19368
  }),
19369
19369
  /* @__PURE__ */ LanguageDescription.of({
19370
19370
  name: "Liquid",
19371
19371
  extensions: ["liquid"],
19372
19372
  load() {
19373
- return import("./index-B2tew8uf.js").then((m) => m.liquid());
19373
+ return import("./index-S4ylc8JK.js").then((m) => m.liquid());
19374
19374
  }
19375
19375
  }),
19376
19376
  /* @__PURE__ */ LanguageDescription.of({
@@ -19383,7 +19383,7 @@ const languages = [
19383
19383
  name: "Markdown",
19384
19384
  extensions: ["md", "markdown", "mkd"],
19385
19385
  load() {
19386
- return import("./index-BvG6l44n.js").then((m) => m.markdown());
19386
+ return import("./index-hbS5PDHj.js").then((m) => m.markdown());
19387
19387
  }
19388
19388
  }),
19389
19389
  /* @__PURE__ */ LanguageDescription.of({
@@ -19402,7 +19402,7 @@ const languages = [
19402
19402
  name: "PHP",
19403
19403
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
19404
19404
  load() {
19405
- return import("./index-DgCcFC3N.js").then((m) => m.php());
19405
+ return import("./index-CR2kGrpY.js").then((m) => m.php());
19406
19406
  }
19407
19407
  }),
19408
19408
  /* @__PURE__ */ LanguageDescription.of({
@@ -19423,28 +19423,28 @@ const languages = [
19423
19423
  extensions: ["BUILD", "bzl", "py", "pyw"],
19424
19424
  filename: /^(BUCK|BUILD)$/,
19425
19425
  load() {
19426
- return import("./index-MfXW4ZyN.js").then((m) => m.python());
19426
+ return import("./index-Dbi75pKH.js").then((m) => m.python());
19427
19427
  }
19428
19428
  }),
19429
19429
  /* @__PURE__ */ LanguageDescription.of({
19430
19430
  name: "Rust",
19431
19431
  extensions: ["rs"],
19432
19432
  load() {
19433
- return import("./index-DhwsowEf.js").then((m) => m.rust());
19433
+ return import("./index-CFGO7LRz.js").then((m) => m.rust());
19434
19434
  }
19435
19435
  }),
19436
19436
  /* @__PURE__ */ LanguageDescription.of({
19437
19437
  name: "Sass",
19438
19438
  extensions: ["sass"],
19439
19439
  load() {
19440
- return import("./index-Cxs6kPho.js").then((m) => m.sass({ indented: true }));
19440
+ return import("./index-ABUMl7H3.js").then((m) => m.sass({ indented: true }));
19441
19441
  }
19442
19442
  }),
19443
19443
  /* @__PURE__ */ LanguageDescription.of({
19444
19444
  name: "SCSS",
19445
19445
  extensions: ["scss"],
19446
19446
  load() {
19447
- return import("./index-Cxs6kPho.js").then((m) => m.sass());
19447
+ return import("./index-ABUMl7H3.js").then((m) => m.sass());
19448
19448
  }
19449
19449
  }),
19450
19450
  /* @__PURE__ */ LanguageDescription.of({
@@ -19464,7 +19464,7 @@ const languages = [
19464
19464
  name: "TSX",
19465
19465
  extensions: ["tsx"],
19466
19466
  load() {
19467
- return import("./index-DufAP1JF.js").then((m) => m.javascript({ jsx: true, typescript: true }));
19467
+ return import("./index-BlIc9r0r.js").then((m) => m.javascript({ jsx: true, typescript: true }));
19468
19468
  }
19469
19469
  }),
19470
19470
  /* @__PURE__ */ LanguageDescription.of({
@@ -19472,14 +19472,14 @@ const languages = [
19472
19472
  alias: ["ts"],
19473
19473
  extensions: ["ts", "mts", "cts"],
19474
19474
  load() {
19475
- return import("./index-DufAP1JF.js").then((m) => m.javascript({ typescript: true }));
19475
+ return import("./index-BlIc9r0r.js").then((m) => m.javascript({ typescript: true }));
19476
19476
  }
19477
19477
  }),
19478
19478
  /* @__PURE__ */ LanguageDescription.of({
19479
19479
  name: "WebAssembly",
19480
19480
  extensions: ["wat", "wast"],
19481
19481
  load() {
19482
- return import("./index-BLVAx_f8.js").then((m) => m.wast());
19482
+ return import("./index-QAs789O5.js").then((m) => m.wast());
19483
19483
  }
19484
19484
  }),
19485
19485
  /* @__PURE__ */ LanguageDescription.of({
@@ -19487,7 +19487,7 @@ const languages = [
19487
19487
  alias: ["rss", "wsdl", "xsd"],
19488
19488
  extensions: ["xml", "xsl", "xsd", "svg"],
19489
19489
  load() {
19490
- return import("./index-BUCqcTPA.js").then((m) => m.xml());
19490
+ return import("./index-D0IZW-Up.js").then((m) => m.xml());
19491
19491
  }
19492
19492
  }),
19493
19493
  /* @__PURE__ */ LanguageDescription.of({
@@ -19495,7 +19495,7 @@ const languages = [
19495
19495
  alias: ["yml"],
19496
19496
  extensions: ["yaml", "yml"],
19497
19497
  load() {
19498
- return import("./index-DqGDenO9.js").then((m) => m.yaml());
19498
+ return import("./index-DPgw0Cf_.js").then((m) => m.yaml());
19499
19499
  }
19500
19500
  }),
19501
19501
  // Legacy modes ported from CodeMirror 5
@@ -20284,13 +20284,13 @@ const languages = [
20284
20284
  name: "Vue",
20285
20285
  extensions: ["vue"],
20286
20286
  load() {
20287
- return import("./index-Dl24CCB3.js").then((m) => m.vue());
20287
+ return import("./index-CIF4qQzR.js").then((m) => m.vue());
20288
20288
  }
20289
20289
  }),
20290
20290
  /* @__PURE__ */ LanguageDescription.of({
20291
20291
  name: "Angular Template",
20292
20292
  load() {
20293
- return import("./index-CYk7AB8M.js").then((m) => m.angular());
20293
+ return import("./index-DKwEe_Tu.js").then((m) => m.angular());
20294
20294
  }
20295
20295
  })
20296
20296
  ];
@@ -21503,96 +21503,97 @@ const ckCodeMirrorTheme = [
21503
21503
  syntaxHighlighting(ckHighlightStyle)
21504
21504
  ];
21505
21505
  export {
21506
- NodeSet as $,
21507
- foldInside as A,
21508
- Text as B,
21509
- Compartment as C,
21510
- codePointAt as D,
21506
+ highlightActiveLine as $,
21507
+ Annotation as A,
21508
+ DefaultBufferLength as B,
21509
+ CharCategory as C,
21510
+ Decoration as D,
21511
21511
  EditorView as E,
21512
- Annotation as F,
21513
- Decoration as G,
21514
- StateField as H,
21515
- codePointSize as I,
21516
- showTooltip as J,
21517
- logException as K,
21512
+ Facet as F,
21513
+ NodeProp as G,
21514
+ Tree as H,
21515
+ IterMode as I,
21516
+ MatchDecorator as J,
21517
+ EditorState as K,
21518
21518
  LRLanguage as L,
21519
- getTooltip as M,
21520
- Facet as N,
21521
- combineConfig as O,
21519
+ MapMode as M,
21520
+ NodeSet as N,
21521
+ Compartment as O,
21522
21522
  Prec as P,
21523
- fromCodePoint as Q,
21523
+ lineNumbers as Q,
21524
21524
  RangeSet as R,
21525
21525
  StateEffect as S,
21526
21526
  Transaction as T,
21527
- MapMode as U,
21527
+ languages as U,
21528
21528
  ViewPlugin as V,
21529
21529
  WidgetType as W,
21530
- RangeValue as X,
21531
- Direction as Y,
21532
- CharCategory as Z,
21533
- Parser as _,
21534
- EditorState as a,
21535
- NodeType as a0,
21536
- DefaultBufferLength as a1,
21537
- NodeProp as a2,
21538
- Tree as a3,
21539
- IterMode as a4,
21540
- flatIndent as a5,
21541
- NodeWeakMap as a6,
21542
- Tag as a7,
21543
- countColumn as a8,
21544
- Language as a9,
21545
- crosshairCursor as aA,
21546
- foldKeymap as aB,
21547
- foldService as aa,
21548
- defineLanguageFacet as ab,
21549
- languageDataProp as ac,
21550
- LanguageDescription as ad,
21551
- ParseContext as ae,
21552
- bracketMatchingHandle as af,
21553
- sublanguageProp as ag,
21554
- syntaxHighlighting as ah,
21555
- HighlightStyle as ai,
21556
- keyName as aj,
21557
- base as ak,
21558
- getPanel as al,
21559
- getDialog as am,
21560
- showDialog as an,
21561
- showPanel as ao,
21562
- RangeSetBuilder as ap,
21563
- crelt as aq,
21564
- runScopeHandlers as ar,
21565
- findClusterBreak as as,
21566
- activateHover as at,
21567
- hoverTooltip as au,
21568
- highlightActiveLineGutter as av,
21569
- foldGutter as aw,
21570
- dropCursor as ax,
21571
- defaultHighlightStyle as ay,
21572
- rectangularSelection as az,
21573
- languages as b,
21574
- ckCodeMirrorTheme as c,
21575
- drawSelection as d,
21576
- highlightSpecialChars as e,
21577
- highlightActiveLine as f,
21578
- bracketMatching as g,
21579
- history as h,
21580
- indentOnInput as i,
21581
- indentUnit as j,
21582
- keymap as k,
21583
- lineNumbers as l,
21584
- defaultKeymap as m,
21585
- historyKeymap as n,
21586
- indentWithTab as o,
21587
- placeholder as p,
21588
- LanguageSupport as q,
21589
- indentNodeProp as r,
21590
- continuedIndent as s,
21591
- foldNodeProp as t,
21592
- styleTags as u,
21593
- tags as v,
21594
- syntaxTree as w,
21595
- EditorSelection as x,
21596
- parseMixed as y,
21597
- delimitedIndent as z
21530
+ ckCodeMirrorTheme as X,
21531
+ history as Y,
21532
+ drawSelection as Z,
21533
+ highlightSpecialChars as _,
21534
+ LanguageSupport as a,
21535
+ bracketMatching as a0,
21536
+ indentOnInput as a1,
21537
+ defaultKeymap as a2,
21538
+ historyKeymap as a3,
21539
+ indentWithTab as a4,
21540
+ placeholder as a5,
21541
+ flatIndent as a6,
21542
+ NodeWeakMap as a7,
21543
+ Tag as a8,
21544
+ countColumn as a9,
21545
+ rectangularSelection as aA,
21546
+ crosshairCursor as aB,
21547
+ foldKeymap as aC,
21548
+ Language as aa,
21549
+ foldService as ab,
21550
+ defineLanguageFacet as ac,
21551
+ languageDataProp as ad,
21552
+ LanguageDescription as ae,
21553
+ ParseContext as af,
21554
+ bracketMatchingHandle as ag,
21555
+ sublanguageProp as ah,
21556
+ syntaxHighlighting as ai,
21557
+ HighlightStyle as aj,
21558
+ keyName as ak,
21559
+ base as al,
21560
+ getPanel as am,
21561
+ getDialog as an,
21562
+ showDialog as ao,
21563
+ showPanel as ap,
21564
+ RangeSetBuilder as aq,
21565
+ crelt as ar,
21566
+ runScopeHandlers as as,
21567
+ findClusterBreak as at,
21568
+ activateHover as au,
21569
+ hoverTooltip as av,
21570
+ highlightActiveLineGutter as aw,
21571
+ foldGutter as ax,
21572
+ dropCursor as ay,
21573
+ defaultHighlightStyle as az,
21574
+ syntaxTree as b,
21575
+ continuedIndent as c,
21576
+ EditorSelection as d,
21577
+ delimitedIndent as e,
21578
+ foldNodeProp as f,
21579
+ foldInside as g,
21580
+ Text as h,
21581
+ indentNodeProp as i,
21582
+ codePointAt as j,
21583
+ indentUnit as k,
21584
+ StateField as l,
21585
+ keymap as m,
21586
+ codePointSize as n,
21587
+ showTooltip as o,
21588
+ parseMixed as p,
21589
+ logException as q,
21590
+ getTooltip as r,
21591
+ styleTags as s,
21592
+ tags as t,
21593
+ combineConfig as u,
21594
+ fromCodePoint as v,
21595
+ RangeValue as w,
21596
+ Direction as x,
21597
+ Parser as y,
21598
+ NodeType as z
21598
21599
  };
@@ -34,6 +34,12 @@ export declare const WithoutHeader: Story;
34
34
  * instead of scrolling sideways.
35
35
  */
36
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;
37
43
  /**
38
44
  * Parity check: the editor on the left, the same snippet rendered through
39
45
  * `CkMarkdownRenderer` and `UiCodeBlock` on the right. Border, radius, header,
@@ -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;AAG9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAiCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAiInC;;;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,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,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"}
@@ -33,6 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<CkCodeEditorProps, {
33
33
  showCopyButton: boolean;
34
34
  lineWrapping: boolean;
35
35
  maxHeight: string;
36
+ badge: import("./badgeDecoration").CkCodeEditorBadgeRule;
36
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
38
  declare const _default: typeof __VLS_export;
38
39
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CkCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/CkCodeEditor.vue"],"names":[],"mappings":"AA4PA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA2JpE,iBAAS,KAAK,IAAI,IAAI,CAErB;AAED,iBAAS,OAAO,IAAI,MAAM,CAEzB;AAsJD,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":"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"}
@@ -1,5 +1,6 @@
1
1
  import { type LanguageSupport } from '@codemirror/language';
2
2
  import { EditorView } from '@codemirror/view';
3
+ import { type CkCodeEditorBadgeRule } from './badgeDecoration';
3
4
  import '../../../helpers/codemirror/code-palette.css';
4
5
  export interface CreateCodeMirrorOptions {
5
6
  /** Element the view is mounted into. */
@@ -11,6 +12,8 @@ export interface CreateCodeMirrorOptions {
11
12
  readonly: boolean;
12
13
  showLineNumbers: boolean;
13
14
  lineWrapping: boolean;
15
+ /** Draws matched references as inline pills; see `badgeDecoration.ts`. */
16
+ badge?: CkCodeEditorBadgeRule;
14
17
  /** Called synchronously whenever the document changes. */
15
18
  onChange: (value: string) => void;
16
19
  onFocus: () => void;
@@ -26,6 +29,7 @@ export interface CodeMirrorHandle {
26
29
  setReadonly: (readonly: boolean) => void;
27
30
  setShowLineNumbers: (show: boolean) => void;
28
31
  setLineWrapping: (wrap: boolean) => void;
32
+ setBadge: (rule: CkCodeEditorBadgeRule | undefined) => void;
29
33
  focus: () => void;
30
34
  destroy: () => void;
31
35
  }
@@ -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,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,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,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,CAyD3B"}
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"}
@@ -1,3 +1,5 @@
1
+ import type { CkCodeEditorBadgeRule } from './badgeDecoration';
2
+ export type { CkCodeEditorBadgeContent, CkCodeEditorBadgeRule, } from './badgeDecoration';
1
3
  /**
2
4
  * Single-document code editor built on [CodeMirror 6](https://codemirror.net/).
3
5
  * Its surface is the one `UiCodeBlock` renders for fenced code inside
@@ -100,6 +102,24 @@ export interface CkCodeEditorProps {
100
102
  * @default false
101
103
  */
102
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;
103
123
  /**
104
124
  * Clipboard writer for the copy button. Injected for tests and for hosts that
105
125
  * proxy clipboard access; defaults to `navigator.clipboard.writeText`.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkCodeEditor/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;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;;;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;;;;;;;;;;;;;;;;;;;;;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"}