@mcp-b/web-components 0.3.0 → 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.
@@ -40,14 +40,14 @@ import { n as SigveloFilterChangeEvent, t as SigveloFilterBar } from "../filter-
40
40
  import { t as SigveloFormSection } from "../form-section-BchPetkj.js";
41
41
  import { t as SigveloInclude } from "../include-qNUh_6kT.js";
42
42
  import { t as SigveloInfiniteScroller } from "../infinite-scroller-DjeMswwE.js";
43
- import { t as SigveloIntersectionObserver } from "../intersection-observer-B6TciOAQ.js";
43
+ import { t as SigveloIntersectionObserver } from "../intersection-observer-Db0-7ZvZ.js";
44
44
  import { t as SigveloListboxItem } from "../listbox-item-CwbjHZIu.js";
45
45
  import { t as SigveloListbox } from "../listbox-BGHw-rUd.js";
46
46
  import { t as SigveloLoremIpsum } from "../lorem-ipsum-B2x3V-v8.js";
47
47
  import { t as SigveloMeter } from "../meter-BIDyjwFp.js";
48
48
  import { t as SigveloMetric } from "../metric-xGnpnmNP.js";
49
49
  import { t as SigveloMetricGrid } from "../metric-grid-YWGxI1F5.js";
50
- import { t as SigveloMutationObserver } from "../mutation-observer-DS8EBuOp.js";
50
+ import { t as SigveloMutationObserver } from "../mutation-observer-DkhonHyD.js";
51
51
  import { t as SigveloNavicon } from "../navicon-B-5pY9gq.js";
52
52
  import { t as SigveloNumber } from "../number-BYBxfOGw.js";
53
53
  import { t as SigveloNumberField } from "../number-field-yME3rRZT.js";
@@ -59,7 +59,7 @@ import { t as SigveloRadioItem } from "../radio-item-DpP3GBPV.js";
59
59
  import { t as SigveloRadio } from "../radio-4Cok4gJI.js";
60
60
  import { t as SigveloRandomContent } from "../random-content-BwiirXdG.js";
61
61
  import { t as SigveloRating } from "../rating-CSn-nU2R.js";
62
- import { t as SigveloResizeObserver } from "../resize-observer-DcrLhddo.js";
62
+ import { t as SigveloResizeObserver } from "../resize-observer-Dg9Cm9e5.js";
63
63
  import { t as SigveloScrollArea } from "../scroll-area-COc1857S.js";
64
64
  import { t as SigveloScroller } from "../scroller-DZATZlDa.js";
65
65
  import { t as SigveloSearchList } from "../search-list-BffPIgnw.js";
@@ -75,7 +75,7 @@ import { t as SigveloTabPanel } from "../tab-panel-BaBl6eep.js";
75
75
  import { t as SigveloTabList } from "../tab-list-CVOUSpAh.js";
76
76
  import { t as SigveloTextArea } from "../text-area-DZVghSkO.js";
77
77
  import { t as SigveloTextMask } from "../text-mask-DDEurj90.js";
78
- import { t as SigveloTimedContent } from "../timed-content-pvEP4l5V.js";
78
+ import { t as SigveloTimedContent } from "../timed-content-D00na-5r.js";
79
79
  import { t as SigveloToastItem } from "../toast-item-DzSPG25R.js";
80
80
  import { t as SigveloTransitionGroup } from "../transition-group-8PmQx0A5.js";
81
81
  import { t as SigveloToast } from "../toast-CxfaWFY_.js";
@@ -1,2 +1,2 @@
1
- import { t as SigveloIntersectionObserver } from "../../intersection-observer-B6TciOAQ.js";
1
+ import { t as SigveloIntersectionObserver } from "../../intersection-observer-Db0-7ZvZ.js";
2
2
  export { SigveloIntersectionObserver };
@@ -1,2 +1,2 @@
1
- import { t as SigveloMutationObserver } from "../../mutation-observer-DS8EBuOp.js";
1
+ import { t as SigveloMutationObserver } from "../../mutation-observer-DkhonHyD.js";
2
2
  export { SigveloMutationObserver };
@@ -1,2 +1,2 @@
1
- import { t as SigveloResizeObserver } from "../../resize-observer-DcrLhddo.js";
1
+ import { t as SigveloResizeObserver } from "../../resize-observer-Dg9Cm9e5.js";
2
2
  export { SigveloResizeObserver };
@@ -1,2 +1,2 @@
1
- import { t as SigveloTimedContent } from "../../timed-content-pvEP4l5V.js";
1
+ import { t as SigveloTimedContent } from "../../timed-content-D00na-5r.js";
2
2
  export { SigveloTimedContent };
@@ -29637,7 +29637,7 @@
29637
29637
  "package": {
29638
29638
  "name": "@mcp-b/web-components",
29639
29639
  "description": "Sigvelo SaaS web components built with Lit.",
29640
- "version": "0.3.0",
29640
+ "version": "0.3.1",
29641
29641
  "license": "MIT"
29642
29642
  }
29643
29643
  }
package/dist/index.js CHANGED
@@ -41,14 +41,14 @@ import { n as SigveloFilterChangeEvent, t as SigveloFilterBar } from "./filter-b
41
41
  import { t as SigveloFormSection } from "./form-section-BchPetkj.js";
42
42
  import { t as SigveloInclude } from "./include-qNUh_6kT.js";
43
43
  import { t as SigveloInfiniteScroller } from "./infinite-scroller-DjeMswwE.js";
44
- import { t as SigveloIntersectionObserver } from "./intersection-observer-B6TciOAQ.js";
44
+ import { t as SigveloIntersectionObserver } from "./intersection-observer-Db0-7ZvZ.js";
45
45
  import { t as SigveloListboxItem } from "./listbox-item-CwbjHZIu.js";
46
46
  import { t as SigveloListbox } from "./listbox-BGHw-rUd.js";
47
47
  import { t as SigveloLoremIpsum } from "./lorem-ipsum-B2x3V-v8.js";
48
48
  import { t as SigveloMeter } from "./meter-BIDyjwFp.js";
49
49
  import { t as SigveloMetric } from "./metric-xGnpnmNP.js";
50
50
  import { t as SigveloMetricGrid } from "./metric-grid-YWGxI1F5.js";
51
- import { t as SigveloMutationObserver } from "./mutation-observer-DS8EBuOp.js";
51
+ import { t as SigveloMutationObserver } from "./mutation-observer-DkhonHyD.js";
52
52
  import { t as SigveloNavicon } from "./navicon-B-5pY9gq.js";
53
53
  import { t as SigveloNumber } from "./number-BYBxfOGw.js";
54
54
  import { t as SigveloNumberField } from "./number-field-yME3rRZT.js";
@@ -60,7 +60,7 @@ import { t as SigveloRadioItem } from "./radio-item-DpP3GBPV.js";
60
60
  import { t as SigveloRadio } from "./radio-4Cok4gJI.js";
61
61
  import { t as SigveloRandomContent } from "./random-content-BwiirXdG.js";
62
62
  import { t as SigveloRating } from "./rating-CSn-nU2R.js";
63
- import { t as SigveloResizeObserver } from "./resize-observer-DcrLhddo.js";
63
+ import { t as SigveloResizeObserver } from "./resize-observer-Dg9Cm9e5.js";
64
64
  import { t as SigveloScrollArea } from "./scroll-area-COc1857S.js";
65
65
  import { t as SigveloScroller } from "./scroller-DZATZlDa.js";
66
66
  import { t as SigveloSearchList } from "./search-list-BffPIgnw.js";
@@ -76,7 +76,7 @@ import { t as SigveloTabPanel } from "./tab-panel-BaBl6eep.js";
76
76
  import { t as SigveloTabList } from "./tab-list-CVOUSpAh.js";
77
77
  import { t as SigveloTextArea } from "./text-area-DZVghSkO.js";
78
78
  import { t as SigveloTextMask } from "./text-mask-DDEurj90.js";
79
- import { t as SigveloTimedContent } from "./timed-content-pvEP4l5V.js";
79
+ import { t as SigveloTimedContent } from "./timed-content-D00na-5r.js";
80
80
  import { t as SigveloToastItem } from "./toast-item-DzSPG25R.js";
81
81
  import { t as SigveloTransitionGroup } from "./transition-group-8PmQx0A5.js";
82
82
  import { t as SigveloToast } from "./toast-CxfaWFY_.js";
@@ -444,7 +444,7 @@ var SigveloIntersectionObserver = class extends SigveloElement {
444
444
  /** Starts or restarts the intersection observer. */
445
445
  startObserver() {
446
446
  this.stopObserver();
447
- if (this.disabled) return;
447
+ if (!this.isConnected || this.disabled) return;
448
448
  const threshold = this.parseThreshold();
449
449
  const rootElement = this.resolveRoot();
450
450
  this.intersectionObserver = new IntersectionObserver((entries) => {
@@ -331,7 +331,7 @@ var SigveloMutationObserver = class extends SigveloElement {
331
331
  /** Starts or restarts the mutation observer. */
332
332
  startObserver() {
333
333
  this.stopObserver();
334
- if (this.disabled) return;
334
+ if (!this.isConnected || this.disabled || !(this.attr || this.childList || this.characterData)) return;
335
335
  this.mutationObserver = new MutationObserver((records) => {
336
336
  records.forEach((record) => {
337
337
  const mutationEvent = new SigveloMutationEvent({ record });
@@ -206,7 +206,7 @@ var SigveloResizeObserver = class extends SigveloElement {
206
206
  /** Starts or restarts the resize observer. */
207
207
  startObserver() {
208
208
  this.stopObserver();
209
- if (this.disabled) return;
209
+ if (!this.isConnected || this.disabled) return;
210
210
  this.resizeObserver = new ResizeObserver((entries) => {
211
211
  entries.forEach((entry) => {
212
212
  const resizeEvent = new SigveloResizeEvent({ entry });
@@ -189,6 +189,7 @@ var SigveloTimedContent = class extends SigveloElement {
189
189
  }
190
190
  setupTimer() {
191
191
  this.cleanupTimer();
192
+ if (!this.isConnected) return;
192
193
  this.updateInterval = setInterval(() => this.requestUpdate(), 6e4);
193
194
  }
194
195
  cleanupTimer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/web-components",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Sigvelo SaaS web components built with Lit.",
5
5
  "keywords": [
6
6
  "custom-elements",
@@ -39,7 +39,7 @@
39
39
  "@floating-ui/dom": "^1.8.0",
40
40
  "lit": "^3.3.3",
41
41
  "lit-html": "^3.3.3",
42
- "@mcp-b/wc-support": "0.3.0"
42
+ "@mcp-b/wc-support": "0.3.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@axe-core/playwright": "^4.12.1",