hyperclayjs 1.25.0 → 1.26.0

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/README.md CHANGED
@@ -86,7 +86,7 @@ import 'hyperclayjs/presets/standard.js';
86
86
 
87
87
  | Module | Size | Description |
88
88
  |--------|------|-------------|
89
- | dialogs | 7.7KB | ask(), consent(), tell(), snippet() dialog functions |
89
+ | dialogs | 8.1KB | ask(), consent(), tell(), snippet() dialog functions |
90
90
  | the-modal | 22.4KB | Full modal window creation system - window.theModal |
91
91
  | toast | 15.8KB | Success/error message notifications, toast(msg, msgType) |
92
92
 
@@ -144,7 +144,7 @@ Standard feature set for most use cases
144
144
 
145
145
  **Modules:** `save-core`, `snapshot`, `save-system`, `unsaved-warning`, `edit-mode-helpers`, `persist`, `option-visibility`, `event-attrs`, `dom-helpers`, `toast`, `save-toast`, `export-to-window`, `view-mode-excludes-edit-modules`
146
146
 
147
- ### Everything (~225.4KB)
147
+ ### Everything (~225.8KB)
148
148
  All available features
149
149
 
150
150
  Includes all available modules across all categories.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperclayjs",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "Modular JavaScript library for building interactive malleable HTML files with Hyperclay",
5
5
  "type": "module",
6
6
  "main": "src/hyperclay.js",
package/src/hyperclay.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DO NOT EDIT THIS FILE DIRECTLY — it is generated from build/hyperclay.template.js
3
3
  *
4
- * HyperclayJS v1.25.0 - Minimal Browser-Native Loader
4
+ * HyperclayJS v1.26.0 - Minimal Browser-Native Loader
5
5
  *
6
6
  * Modules auto-init when imported (no separate init call needed).
7
7
  * Include `export-to-window` feature to export to window.hyperclay.
package/src/ui/prompts.js CHANGED
@@ -50,6 +50,19 @@ function createModal(promptText, yesCallback, extraContent = "", includeInput =
50
50
 
51
51
  themodal.open();
52
52
 
53
+ setTimeout(() => {
54
+ const modalContainer = document.querySelector('.micromodal-parent');
55
+ if (modalContainer) {
56
+ modalContainer.addEventListener('click', (event) => {
57
+ const btn = event.target.closest('[data-copy]');
58
+ if (btn) {
59
+ copyToClipboard(btn.dataset.copy);
60
+ toast('Copied', 'success');
61
+ }
62
+ });
63
+ }
64
+ }, 0);
65
+
53
66
  return promise;
54
67
  }
55
68