@carbon/ai-chat-components 1.4.0 → 1.5.0-rc.1

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 (100) hide show
  1. package/custom-elements.json +837 -284
  2. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  3. package/es/components/chat-history/src/history-panel-item.d.ts +14 -0
  4. package/es/components/chat-history/src/history-panel-item.js +30 -0
  5. package/es/components/chat-history/src/history-panel-item.js.map +1 -1
  6. package/es/components/code-snippet/src/code-snippet.d.ts +5 -0
  7. package/es/components/code-snippet/src/code-snippet.js +17 -5
  8. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  9. package/es/components/feedback/src/feedback.d.ts +4 -0
  10. package/es/components/feedback/src/feedback.js +6 -4
  11. package/es/components/feedback/src/feedback.js.map +1 -1
  12. package/es/components/markdown/index.d.ts +3 -1
  13. package/es/components/markdown/index.js +1 -1
  14. package/es/components/markdown/src/markdown-renderer-types.d.ts +100 -0
  15. package/es/components/markdown/src/markdown-renderer-types.js +8 -0
  16. package/es/components/markdown/src/markdown-renderer-types.js.map +1 -0
  17. package/es/components/markdown/src/markdown-renderer.d.ts +14 -64
  18. package/es/components/markdown/src/markdown-renderer.js +120 -134
  19. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  20. package/es/components/markdown/src/markdown-token-tree.d.ts +50 -5
  21. package/es/components/markdown/src/markdown-token-tree.js +182 -47
  22. package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
  23. package/es/components/markdown/src/markdown.d.ts +49 -1
  24. package/es/components/markdown/src/markdown.js +307 -106
  25. package/es/components/markdown/src/markdown.js.map +1 -1
  26. package/es/components/markdown/src/markdown.scss.js +1 -1
  27. package/es/components/markdown/src/plugins/markdown-it-task-lists.js +2 -5
  28. package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
  29. package/es/components/markdown/src/utils/lit-directives.d.ts +17 -0
  30. package/es/components/markdown/src/utils/lit-directives.js +84 -0
  31. package/es/components/markdown/src/utils/lit-directives.js.map +1 -0
  32. package/es/components/markdown/src/utils/plugin-fallback.d.ts +33 -0
  33. package/es/components/markdown/src/utils/plugin-fallback.js +219 -0
  34. package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -0
  35. package/es/components/markdown/src/utils/streaming-table.d.ts +28 -0
  36. package/es/components/markdown/src/utils/streaming-table.js +86 -0
  37. package/es/components/markdown/src/utils/streaming-table.js.map +1 -0
  38. package/es/components/markdown/src/utils/table-helpers.d.ts +17 -0
  39. package/es/components/markdown/src/utils/table-helpers.js +104 -2
  40. package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
  41. package/es/components/table/src/table.js +4 -1
  42. package/es/components/table/src/table.js.map +1 -1
  43. package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
  44. package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  45. package/es/react/markdown.d.ts +46 -2
  46. package/es/react/markdown.js +177 -20
  47. package/es/react/markdown.js.map +1 -1
  48. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  49. package/es-custom/components/chat-history/src/history-panel-item.d.ts +14 -0
  50. package/es-custom/components/chat-history/src/history-panel-item.js +30 -0
  51. package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
  52. package/es-custom/components/code-snippet/src/code-snippet.d.ts +5 -0
  53. package/es-custom/components/code-snippet/src/code-snippet.js +17 -5
  54. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  55. package/es-custom/components/feedback/src/feedback.d.ts +4 -0
  56. package/es-custom/components/feedback/src/feedback.js +6 -4
  57. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  58. package/es-custom/components/markdown/index.d.ts +3 -1
  59. package/es-custom/components/markdown/index.js +1 -1
  60. package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +100 -0
  61. package/es-custom/components/markdown/src/markdown-renderer-types.js +8 -0
  62. package/es-custom/components/markdown/src/markdown-renderer-types.js.map +1 -0
  63. package/es-custom/components/markdown/src/markdown-renderer.d.ts +14 -64
  64. package/es-custom/components/markdown/src/markdown-renderer.js +120 -134
  65. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  66. package/es-custom/components/markdown/src/markdown-token-tree.d.ts +50 -5
  67. package/es-custom/components/markdown/src/markdown-token-tree.js +182 -47
  68. package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
  69. package/es-custom/components/markdown/src/markdown.d.ts +49 -1
  70. package/es-custom/components/markdown/src/markdown.js +307 -106
  71. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  72. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  73. package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +2 -5
  74. package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
  75. package/es-custom/components/markdown/src/utils/lit-directives.d.ts +17 -0
  76. package/es-custom/components/markdown/src/utils/lit-directives.js +84 -0
  77. package/es-custom/components/markdown/src/utils/lit-directives.js.map +1 -0
  78. package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +33 -0
  79. package/es-custom/components/markdown/src/utils/plugin-fallback.js +219 -0
  80. package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -0
  81. package/es-custom/components/markdown/src/utils/streaming-table.d.ts +28 -0
  82. package/es-custom/components/markdown/src/utils/streaming-table.js +86 -0
  83. package/es-custom/components/markdown/src/utils/streaming-table.js.map +1 -0
  84. package/es-custom/components/markdown/src/utils/table-helpers.d.ts +17 -0
  85. package/es-custom/components/markdown/src/utils/table-helpers.js +104 -2
  86. package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
  87. package/es-custom/components/table/src/table.js +4 -1
  88. package/es-custom/components/table/src/table.js.map +1 -1
  89. package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
  90. package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  91. package/es-custom/react/markdown.d.ts +46 -2
  92. package/es-custom/react/markdown.js +177 -20
  93. package/es-custom/react/markdown.js.map +1 -1
  94. package/package.json +5 -4
  95. package/es/components/markdown/src/utils.d.ts +0 -4
  96. package/es/components/markdown/src/utils.js +0 -25
  97. package/es/components/markdown/src/utils.js.map +0 -1
  98. package/es-custom/components/markdown/src/utils.d.ts +0 -4
  99. package/es-custom/components/markdown/src/utils.js +0 -25
  100. package/es-custom/components/markdown/src/utils.js.map +0 -1
@@ -1,4 +0,0 @@
1
- /**
2
- * Console error with prefix
3
- */
4
- export declare function consoleError(message: string, ...args: any[]): void;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2025
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- /*
9
- * Copyright IBM Corp. 2025
10
- *
11
- * This source code is licensed under the Apache-2.0 license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- *
14
- * @license
15
- */
16
- const CONSOLE_PREFIX = "[carbon-ai-chat-components]";
17
- /**
18
- * Console error with prefix
19
- */
20
- function consoleError(message, ...args) {
21
- console.error(`${CONSOLE_PREFIX} ${message}`, ...args);
22
- }
23
-
24
- export { consoleError };
25
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../src/components/markdown/src/utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH,MAAM,cAAc,GAAG,6BAA6B;AAEpD;;AAEG;SACa,YAAY,CAAC,OAAe,EAAE,GAAG,IAAW,EAAA;AAC1D,IAAA,OAAO,CAAC,KAAK,CAAC,CAAA,EAAG,cAAc,CAAA,CAAA,EAAI,OAAO,CAAA,CAAE,EAAE,GAAG,IAAI,CAAC;AACxD;;;;"}