@vanelsas/baredom 2.9.0 → 3.0.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/baredom.d.ts +20 -0
  4. package/dist/base.js +541 -455
  5. package/dist/integrity.json +103 -102
  6. package/dist/x-alert.js +16 -17
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -15
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -17
  14. package/dist/x-cancel-dialogue.js +13 -13
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +31 -31
  17. package/dist/x-chart.js +47 -47
  18. package/dist/x-checkbox.js +1 -11
  19. package/dist/x-chip.js +1 -1
  20. package/dist/x-collapse.js +10 -10
  21. package/dist/x-color-picker.js +45 -45
  22. package/dist/x-combobox.js +26 -26
  23. package/dist/x-command-palette.js +24 -24
  24. package/dist/x-confetti.js +24 -22
  25. package/dist/x-container.js +5 -4
  26. package/dist/x-context-menu.js +20 -20
  27. package/dist/x-copy.js +20 -20
  28. package/dist/x-currency-field.js +23 -23
  29. package/dist/x-date-picker.js +40 -40
  30. package/dist/x-divider.js +9 -9
  31. package/dist/x-drawer.js +9 -9
  32. package/dist/x-dropdown.js +11 -11
  33. package/dist/x-fieldset.js +5 -5
  34. package/dist/x-file-download.js +7 -7
  35. package/dist/x-file-upload.js +22 -22
  36. package/dist/x-form-field.js +15 -15
  37. package/dist/x-form.js +9 -9
  38. package/dist/x-gaussian-blur.js +12 -12
  39. package/dist/x-grid.js +7 -6
  40. package/dist/x-i18n-provider.js +7 -7
  41. package/dist/x-i18n.js +4 -4
  42. package/dist/x-icon.js +6 -6
  43. package/dist/x-image.js +16 -17
  44. package/dist/x-kbd.js +15 -15
  45. package/dist/x-kinetic-canvas.js +25 -25
  46. package/dist/x-kinetic-font.js +27 -27
  47. package/dist/x-kinetic-typography.js +33 -33
  48. package/dist/x-liquid-dock.js +38 -38
  49. package/dist/x-liquid-fill.js +43 -43
  50. package/dist/x-liquid-glass.js +47 -47
  51. package/dist/x-menu-item.js +8 -8
  52. package/dist/x-menu.js +10 -9
  53. package/dist/x-metaball-cursor.js +26 -26
  54. package/dist/x-modal.js +10 -10
  55. package/dist/x-morph-stack.js +36 -37
  56. package/dist/x-multi-combobox.js +36 -36
  57. package/dist/x-navbar.js +12 -12
  58. package/dist/x-neural-glow.js +32 -32
  59. package/dist/x-notification-center.js +9 -9
  60. package/dist/x-organic-divider.js +17 -17
  61. package/dist/x-organic-progress.js +37 -37
  62. package/dist/x-organic-shape.js +13 -13
  63. package/dist/x-otp-input.js +22 -22
  64. package/dist/x-pagination.js +15 -15
  65. package/dist/x-particle-button.js +51 -51
  66. package/dist/x-popover.js +25 -26
  67. package/dist/x-progress-circle.js +8 -8
  68. package/dist/x-progress.js +10 -10
  69. package/dist/x-proximity-list.js +20 -19
  70. package/dist/x-radio.js +11 -11
  71. package/dist/x-ripple-effect.js +10 -10
  72. package/dist/x-scroll-parallax.js +18 -18
  73. package/dist/x-scroll-stack.js +17 -17
  74. package/dist/x-scroll-story.js +34 -34
  75. package/dist/x-scroll-timeline.js +44 -44
  76. package/dist/x-scroll.js +38 -38
  77. package/dist/x-search-field.js +1 -15
  78. package/dist/x-select.js +1 -11
  79. package/dist/x-sidebar.js +16 -16
  80. package/dist/x-skeleton-group.js +12 -12
  81. package/dist/x-skeleton.js +1 -1
  82. package/dist/x-slider.js +15 -15
  83. package/dist/x-soft-body.js +22 -22
  84. package/dist/x-spacer.js +4 -4
  85. package/dist/x-spinner.js +4 -4
  86. package/dist/x-splash.js +12 -12
  87. package/dist/x-spotlight-card.js +12 -12
  88. package/dist/x-stat.js +10 -10
  89. package/dist/x-stepper.js +14 -14
  90. package/dist/x-switch.js +10 -10
  91. package/dist/x-tab.js +7 -7
  92. package/dist/x-table-cell.js +18 -18
  93. package/dist/x-table-row.js +8 -8
  94. package/dist/x-table.js +12 -12
  95. package/dist/x-tabs.js +11 -11
  96. package/dist/x-text-area.js +19 -19
  97. package/dist/x-theme.js +25 -25
  98. package/dist/x-timeline-item.js +20 -21
  99. package/dist/x-timeline.js +8 -8
  100. package/dist/x-toast.js +22 -23
  101. package/dist/x-toaster.js +8 -8
  102. package/dist/x-tooltip.js +12 -12
  103. package/dist/x-trace-history.d.ts +242 -0
  104. package/dist/x-trace-history.js +118 -0
  105. package/dist/x-typography.js +9 -9
  106. package/dist/x-welcome-tour.js +60 -59
  107. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to BareDOM will be documented in this file.
4
4
 
5
+ ## [3.0.0] - 2026-05-12
6
+
7
+ ### Added
8
+
9
+ - **x-trace-history** — A time-travel debugger for BareDOM components. Records every CustomEvent, attribute mutation, instance-field write, and lifecycle callback as plain JS records with a stable schema. Floating dock with cross-instance lanes, scrubber, synchronous cause→effect causality DAG view, heatmap density rendering for animation-heavy lanes, full-text search across recorded values, bounded recording sessions, and JSON export/import. Ships as a separate ESM module (`@vanelsas/baredom/x-trace-history`) activated by `?baredom-trace-history` URL param or `window.BAREDOM_TRACE_HISTORY = true` — zero overhead when off. TypeScript declarations (`TraceRecord` discriminated union + `window.BareDOM.traceHistory` console API) included. See [`docs/x-trace-history.md`](docs/x-trace-history.md) and [`docs/x-trace-history-schema.md`](docs/x-trace-history-schema.md).
10
+ - **Standalone trace viewer** — `public/viewer.html` deployed alongside the demo site for sharing recorded traces. Drag-drop a `.trace.json` file or pass `?trace=<base64>` to load a trace into the dock.
11
+ - **Adapter integration tests** — React (`adapters/react/test-app/`) and Angular (`adapters/angular/test-app/`) test-apps now exercise the trace-history dock end-to-end, with dev-tool guidance added to each adapter's README and main doc.
12
+ - **Dispatch + lifecycle hook points** — `baredom.utils.dom` and `baredom.utils.component` expose `*trace-hook*` / `*lifecycle-hook*` extension atoms gating instrumentation of every CustomEvent dispatch, attribute mutation, instance-field write, and lifecycle callback. One nil-check cost when no recorder is installed.
13
+
14
+ ### Fixed
15
+
16
+ - **x-select** — Slotted `<option selected>` default no longer gets stomped on render when the host has no `value` attribute. An explicit `value` attribute still overrides the slotted default.
17
+
18
+ ### Changed
19
+
20
+ - **Tooling** — Sibling demo build outputs (`bare-demo/public/js/`, `bare-html/js/`, etc.), the Angular CLI cache, and the clj-kondo cache are now correctly gitignored. Adapter test-app `package-lock.json` files are tracked for reproducible smoke-test installs.
21
+
5
22
  ## [2.9.0] - 2026-05-09
6
23
 
7
24
  ### Added
package/README.md CHANGED
@@ -244,7 +244,7 @@ BareDOM components are native HTML elements. Import, register, and use them in a
244
244
 
245
245
  ## Design Principles
246
246
 
247
- **Stateless.** No `atom`, no signal, no reactive state container lives inside a component. Every render is a pure function of the current attributes and properties. Debugging a component means inspecting attributes in DevTools — no hidden state to hunt for.
247
+ **Stateless.** No `atom`, no signal, no reactive state container lives inside a component. Every render is a pure function of the current attributes and properties. Debugging a component means inspecting attributes in DevTools — no hidden state to hunt for. For deeper investigations, the optional [`x-trace-history`](./docs/x-trace-history.md) dev tool ships as a separate ESM module and records every dispatch, attribute change, and lifecycle callback as a navigable timeline with cause→effect chains. Load it with `<script type="module" src="…/x-trace-history.js">` and activate via `?baredom-trace-history`; zero cost when the flag is absent.
248
248
 
249
249
  **Standards-only.** BareDOM relies on Custom Elements v1, Shadow DOM v1, and ES modules — all natively supported in modern browsers. There are no polyfills required and no proprietary APIs to learn.
250
250
 
package/dist/baredom.d.ts CHANGED
@@ -104,3 +104,23 @@ export { XCurrencyField } from "./x-currency-field";
104
104
  export { XBreadcrumbs } from "./x-breadcrumbs";
105
105
  export { XCollapse } from "./x-collapse";
106
106
  export { XFieldset } from "./x-fieldset";
107
+ export {
108
+ XTraceHistory,
109
+ BareDOMNamespace,
110
+ BareDOMTraceHistory,
111
+ TraceRecord,
112
+ TraceRecordBase,
113
+ TraceRecordDispatch,
114
+ TraceRecordInstanceFieldSet,
115
+ TraceRecordAttributeSet,
116
+ TraceRecordAttributeRemoved,
117
+ TraceRecordLifecycleConnected,
118
+ TraceRecordLifecycleDisconnected,
119
+ TraceRecordLifecycleAttributeChanged,
120
+ TraceComponentInfo,
121
+ TraceEnvelope,
122
+ TraceEnvelopeSession,
123
+ TraceSession,
124
+ TraceImport,
125
+ TraceSchemaVersion
126
+ } from "./x-trace-history";