@telperion/elements 1.1.1 → 1.1.2

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.
@@ -57,5 +57,5 @@
57
57
  }
58
58
  }
59
59
  ],
60
- "generatedAt": "2026-04-29T15:48:19.390Z"
60
+ "generatedAt": "2026-04-29T16:19:22.390Z"
61
61
  }
package/README.md CHANGED
@@ -40,23 +40,27 @@ import '@telperion/elements';
40
40
 
41
41
  ### Loading via `<script>` tag (no bundler)
42
42
 
43
- Every component module ships a self-contained IIFE bundle that you can load directly from a CDN with a classic `<script>` tag &mdash; no bundler, no `import`, no npm install.
43
+ Every component module ships a self-contained, minified IIFE bundle that you can load directly from a CDN with a classic `<script>` tag &mdash; no bundler, no `import`, no npm install.
44
+
45
+ Use the **explicit `/iife/...` path** so the CDN serves the standalone bundle (subpath shorthand like `/icon` resolves to the ESM build via the package `exports` map and will not run as a classic script):
44
46
 
45
47
  ```html
46
48
  <!-- All elements registered (TelperionElements global) -->
47
- <script src="https://unpkg.com/@telperion/elements"></script>
49
+ <script src="https://unpkg.com/@telperion/elements/iife/elements.js"></script>
48
50
 
49
51
  <!-- Or just the icon module (TelperionElements.Icon) -->
50
- <script src="https://unpkg.com/@telperion/elements/icon"></script>
52
+ <script src="https://unpkg.com/@telperion/elements/iife/icon/index.js"></script>
51
53
 
52
54
  <!-- Or just the router module (TelperionElements.Router) -->
53
- <script src="https://unpkg.com/@telperion/elements/router"></script>
55
+ <script src="https://unpkg.com/@telperion/elements/iife/router/index.js"></script>
54
56
 
55
57
  <!-- Or just the drag-and-drop module (TelperionElements.DragDrop) -->
56
- <script src="https://unpkg.com/@telperion/elements/drag-drop"></script>
58
+ <script src="https://unpkg.com/@telperion/elements/iife/drag-drop/index.js"></script>
57
59
  ```
58
60
 
59
- Each per-module bundle is fully self-contained: side-effect imports register the custom elements as soon as the script is evaluated.
61
+ Each per-module bundle is fully self-contained: side-effect imports register the custom elements as soon as the script is evaluated. jsDelivr (`https://cdn.jsdelivr.net/npm/@telperion/elements/iife/...`) and other npm CDNs work the same way.
62
+
63
+ > The package also declares a non-standard `"script"` export condition pointing at these files for tooling that wants to discover them programmatically, but no browser or major CDN currently resolves it &mdash; always use the full `/iife/...` path in `<script src>`.
60
64
 
61
65
  ## 📚 Components
62
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telperion/elements",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "homepage": "https://elements.thalesrc.com",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,6 +43,17 @@
43
43
  "script": "./iife/router/index.js",
44
44
  "default": "./router/index.js"
45
45
  },
46
+ "./router": {
47
+ "types": {
48
+ "import": "./router/index.d.ts",
49
+ "require": "./router/index.d.cts"
50
+ },
51
+ "node": "./router/index.cjs",
52
+ "import": "./router/index.js",
53
+ "require": "./router/index.cjs",
54
+ "script": "./iife/router/index.js",
55
+ "default": "./router/index.js"
56
+ },
46
57
  "./drag-drop/index": {
47
58
  "types": {
48
59
  "import": "./drag-drop/index.d.ts",
@@ -54,6 +65,17 @@
54
65
  "script": "./iife/drag-drop/index.js",
55
66
  "default": "./drag-drop/index.js"
56
67
  },
68
+ "./drag-drop": {
69
+ "types": {
70
+ "import": "./drag-drop/index.d.ts",
71
+ "require": "./drag-drop/index.d.cts"
72
+ },
73
+ "node": "./drag-drop/index.cjs",
74
+ "import": "./drag-drop/index.js",
75
+ "require": "./drag-drop/index.cjs",
76
+ "script": "./iife/drag-drop/index.js",
77
+ "default": "./drag-drop/index.js"
78
+ },
57
79
  "./icon/index": {
58
80
  "types": {
59
81
  "import": "./icon/index.d.ts",
@@ -65,6 +87,17 @@
65
87
  "script": "./iife/icon/index.js",
66
88
  "default": "./icon/index.js"
67
89
  },
90
+ "./icon": {
91
+ "types": {
92
+ "import": "./icon/index.d.ts",
93
+ "require": "./icon/index.d.cts"
94
+ },
95
+ "node": "./icon/index.cjs",
96
+ "import": "./icon/index.js",
97
+ "require": "./icon/index.cjs",
98
+ "script": "./iife/icon/index.js",
99
+ "default": "./icon/index.js"
100
+ },
68
101
  "./icon/material-symbols.css": "./icon/material-symbols.css"
69
102
  },
70
103
  "bugs": "https://github.com/telperiontech/telperion/issues",