@iyulab/chat-components 0.17.2 → 0.17.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.17.4] - 2026-10-07
4
+
5
+ ### Fixed
6
+
7
+ - **`u-chart-block`'s "canvas unavailable" message follows a runtime locale switch** — it is looked up when drawn
8
+ instead of stored as text. (With `@iyulab/components` 2.8.0 every component re-renders on `Locale.set()`.)
9
+
10
+ ## [0.17.3] - 2026-10-06
11
+
12
+ ### Fixed
13
+
14
+ - **`u-ref-block`'s default title follows the locale.** Without a `title` it showed a fixed English
15
+ "References" in every language; it now comes from the locale (new key `references`, English and
16
+ Korean built in).
17
+
3
18
  ## [0.17.2] - 2026-10-06
4
19
 
5
20
  ### Fixed
@@ -1,5 +1,6 @@
1
1
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
2
2
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
3
+ import { messages } from "../../utilities/messages.js";
3
4
  import "../references/URefCard.js";
4
5
  import { styles } from "./URefBlock.styles.js";
5
6
  import { html } from "lit";
@@ -25,7 +26,7 @@ var URefBlock = class URefBlock extends UElement {
25
26
  name="chevron-down"
26
27
  ></u-icon>
27
28
  <div class="title">
28
- ${this.title || "References"}
29
+ ${this.title || messages.text("references")}
29
30
  </div>
30
31
  <div style="flex: 1;"></div>
31
32
  <div class="count">
@@ -15,6 +15,7 @@ export declare class UChartBlock extends UElement {
15
15
  private canvas?;
16
16
  private viewport?;
17
17
  /** 차트 생성 에러 메시지 */
18
+ /** 차트를 못 그린 이유 — 우리 문장은 «그릴 때 찾는» 함수로(런타임 로캘 전환에 따라오게), Chart.js 의 예외 문장은 그대로. */
18
19
  private error;
19
20
  private chartjs;
20
21
  private observer?;
@@ -68,7 +68,7 @@ var UChartBlock = class UChartBlock extends UElement {
68
68
  <canvas></canvas>
69
69
  <div class="error-overlay" ?hidden=${!this.error}>
70
70
  <u-icon lib="internal-chat" name="alert-triangle-fill"></u-icon>
71
- <span>${this.error}</span>
71
+ <span>${typeof this.error === "function" ? this.error() : this.error}</span>
72
72
  </div>
73
73
  </div>
74
74
  `;
@@ -81,7 +81,7 @@ var UChartBlock = class UChartBlock extends UElement {
81
81
  this.error = null;
82
82
  const ctx = this.canvas.getContext("2d");
83
83
  if (!ctx) {
84
- this.error = messages.text("canvasUnavailable");
84
+ this.error = () => messages.text("canvasUnavailable");
85
85
  return;
86
86
  }
87
87
  try {
@@ -5,5 +5,5 @@
5
5
  * 이 리포가 채택한 표준이 *"영어 기본 **+ 레지스트리**"* 이기 때문이다 — 영어 리터럴만으로는
6
6
  * 한국어 앱이 그 문구를 되돌릴 방법이 없다. 다음 문자열은 여기로 온다.
7
7
  */
8
- export type ChatMessageKey = 'canvasUnavailable' | 'previousReference' | 'nextReference' | 'closePreview' | 'closeLightbox' | 'previousImage' | 'nextImage' | 'sendMessage' | 'stopGenerating' | 'fullScreen' | 'remove' | 'pngDownload' | 'jsonDownload' | 'search' | 'rowCount' | 'excelDownload' | 'csvDownload' | 'openImage' | 'previewFile' | 'imageBlocked' | 'imageBlockedNamed' | 'opensInNewTab' | 'textBlock';
8
+ export type ChatMessageKey = 'canvasUnavailable' | 'previousReference' | 'nextReference' | 'closePreview' | 'closeLightbox' | 'previousImage' | 'nextImage' | 'sendMessage' | 'stopGenerating' | 'fullScreen' | 'remove' | 'pngDownload' | 'jsonDownload' | 'search' | 'rowCount' | 'excelDownload' | 'csvDownload' | 'openImage' | 'previewFile' | 'imageBlocked' | 'imageBlockedNamed' | 'opensInNewTab' | 'textBlock' | 'references';
9
9
  export declare const messages: import('@iyulab/components/dist/utilities/Locale.js').LocaleNamespace<ChatMessageKey>;
@@ -17,6 +17,7 @@ messages.register("en", {
17
17
  jsonDownload: "JSON Download",
18
18
  search: "Search...",
19
19
  textBlock: "Text",
20
+ references: "References",
20
21
  rowCount: "{shown} / {total} Rows",
21
22
  excelDownload: "Excel Download",
22
23
  csvDownload: "CSV Download",
@@ -42,6 +43,7 @@ messages.register("ko", {
42
43
  jsonDownload: "JSON 다운로드",
43
44
  search: "검색...",
44
45
  textBlock: "텍스트",
46
+ references: "참조",
45
47
  rowCount: "{shown} / {total} 행",
46
48
  excelDownload: "Excel 다운로드",
47
49
  csvDownload: "CSV 다운로드",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/chat-components",
3
3
  "description": "llm chat components for building chat interfaces",
4
- "version": "0.17.2",
4
+ "version": "0.17.4",
5
5
  "author": "iyulab",
6
6
  "license": "MIT",
7
7
  "keywords": [