@iyulab/components 2.19.0 → 2.19.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.19.1] - 2026-10-09
4
+
5
+ ### Changed
6
+
7
+ - `Dialog` loads `u-input` only when `Dialog.prompt` is called. An app that imports `Dialog` from its own module for
8
+ `alert` and `confirm` no longer carries the input and the popover, option and field it brings (gzip 62.4 KB → 43.7 KB
9
+ in a minimal consumer); `prompt` loads it on first use and stays as before.
10
+
3
11
  ## [2.19.0] - 2026-10-09
4
12
 
5
13
  ### Added
@@ -2,7 +2,6 @@ import { Locale } from "./Locale.js";
2
2
  import { isImeComposing } from "./keyboard.js";
3
3
  import "../components/button/UButton.js";
4
4
  import { UDialog } from "../components/dialog/UDialog.js";
5
- import "../components/input/UInput.js";
6
5
  import { html, nothing, render } from "lit";
7
6
  import { ifDefined } from "lit/directives/if-defined.js";
8
7
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
@@ -77,6 +76,7 @@ var Dialog = class {
77
76
  * @returns 입력값 또는 취소 시 null
78
77
  */
79
78
  static async prompt(message, options) {
79
+ await import("../components/input/UInput.js");
80
80
  let inputValue = options?.defaultValue || "";
81
81
  const messageId = nextMessageId();
82
82
  return await this.present({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/components",
3
3
  "description": "web-components library based on lit-element made by iyulab",
4
- "version": "2.19.0",
4
+ "version": "2.19.1",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",