@iyulab/chat-components 0.17.3 → 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,12 @@
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
+
3
10
  ## [0.17.3] - 2026-10-06
4
11
 
5
12
  ### Fixed
@@ -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 {
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.3",
4
+ "version": "0.17.4",
5
5
  "author": "iyulab",
6
6
  "license": "MIT",
7
7
  "keywords": [