@iyulab/editor-components 0.2.2 → 0.3.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,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1] - 2026-08-07
4
+
5
+ ### Fixed
6
+
7
+ - 🔴**`sideEffects` omitted this package's own entry barrel, so bundlers dropped every element
8
+ registration.** The barrel that `exports["."]` resolves to exists solely to register the custom
9
+ elements, but it was not in the `sideEffects` allowlist. A consumer writing
10
+ `import '@iyulab/editor-components'` — the form this package's own documentation recommends —
11
+ had the module elided entirely in a production build. The failure is silent: the build
12
+ succeeds with no warning, the tags remain in the DOM, and an unregistered custom element
13
+ renders nothing.
14
+
15
+ Both the source-resolved and published-artifact forms of the affected entry point are now
16
+ declared, so workspace consumers and installed consumers get the same guarantee.
17
+
18
+ ## [0.3.0] - 2026-08-05
19
+
20
+ ### Fixed
21
+
22
+ - 🔴**The `change` event never crossed the shadow boundary.** It was dispatched without
23
+ `bubbles` or `composed`, so a listener attached by the consumer was never called — with
24
+ no error to indicate why. Anyone who worked around this by reaching into the shadow root
25
+ can now drop that workaround.
26
+
27
+ ```ts
28
+ editor.addEventListener('change', e => save(e.detail.value));
29
+ ```
30
+
3
31
  ## [0.2.2] - 2026-08-02
4
32
 
5
33
  ### Fixed
@@ -77,4 +105,20 @@
77
105
  - 위 수정은 `@iyulab/components` 1.7.0의 "change = 사용자 상호작용 전용" 규약 정합 작업의 일환.
78
106
 
79
107
  ## [Unreleased]
108
+
109
+ ### Fixed
110
+
111
+ - 🔴**`sideEffects` omitted this package's own entry barrel, so bundlers dropped every element
112
+ registration.** The barrel that `exports["."]` resolves to exists solely to register the custom
113
+ elements, but it was not in the `sideEffects` allowlist. A consumer writing
114
+ `import '@iyulab/editor-components'` — the form this package's own documentation recommends — had the module
115
+ elided entirely in a production build. The failure is silent: the build succeeds with no warning,
116
+ the tags remain in the DOM, and an unregistered custom element renders nothing.
117
+
118
+ Registration modules were already listed correctly. That was not enough: a dropped barrel means
119
+ they are never reached.
120
+
121
+ Both the source-resolved and published-artifact forms of every affected entry point are now
122
+ declared, so workspace consumers and installed consumers get the same guarantee.
123
+
80
124
  - Initial library version release
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Iyulab, Inc.
3
+ Copyright (c) 2025 iyulab
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/decorate.js
1
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/decorateMetadata.js
1
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/decorateMetadata.js
2
2
  function __decorateMetadata(k, v) {
3
3
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import "./UCodeEditor.worker.js";
2
2
  import { styles } from "./UCodeEditor.styles.js";
3
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorate.js";
5
5
  import { html, unsafeCSS } from "lit";
6
6
  import { customElement, property } from "lit/decorators.js";
7
7
  import { createRef, ref } from "lit/directives/ref.js";
@@ -1,5 +1,5 @@
1
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/decorateMetadata.js";
2
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/decorate.js";
1
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateMetadata.js";
2
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorate.js";
3
3
  import { styles } from "./UTextEditor.styles.js";
4
4
  import { html, unsafeCSS } from "lit";
5
5
  import { customElement, property } from "lit/decorators.js";
@@ -80,11 +80,15 @@ var UTextEditor = class UTextEditor extends UElement {
80
80
  if (source !== "user") return;
81
81
  const html = quill.root.innerHTML;
82
82
  this.value = html;
83
- this.dispatchEvent(new CustomEvent("change", { detail: {
84
- html,
85
- text: quill.getText(),
86
- delta: quill.getContents()
87
- } }));
83
+ this.dispatchEvent(new CustomEvent("change", {
84
+ detail: {
85
+ html,
86
+ text: quill.getText(),
87
+ delta: quill.getContents()
88
+ },
89
+ bubbles: true,
90
+ composed: true
91
+ }));
88
92
  });
89
93
  this.updateEditorHeight();
90
94
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/editor-components",
3
3
  "description": "various editor components by iyulab",
4
- "version": "0.2.2",
4
+ "version": "0.3.1",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "web-components",
@@ -25,6 +25,15 @@
25
25
  ],
26
26
  "type": "module",
27
27
  "types": "./dist/index.d.ts",
28
+ "engines": {
29
+ "node": ">=20"
30
+ },
31
+ "sideEffects": [
32
+ "./dist/components/*/U*.js",
33
+ "./src/components/*/U*.ts",
34
+ "./dist/index.js",
35
+ "./src/index.ts"
36
+ ],
28
37
  "exports": {
29
38
  ".": {
30
39
  "types": "./dist/index.d.ts",
@@ -41,7 +50,8 @@
41
50
  "test:watch": "vitest",
42
51
  "lint": "eslint src/",
43
52
  "lint:fix": "eslint src/ --fix",
44
- "build": "eslint && vite build"
53
+ "build": "npm run typecheck && eslint && vite build",
54
+ "typecheck": "tsc --noEmit"
45
55
  },
46
56
  "dependencies": {
47
57
  "@iyulab/components": "^1.15.0",