@getflip/swirl-components 0.507.0-beta-20260622115132 → 0.507.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/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-06-22T11:50:46",
2
+ "timestamp": "2026-06-22T13:50:21",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.43.1",
@@ -28736,7 +28736,16 @@ const SwirlFileViewerVideo = class {
28736
28736
  }
28737
28737
  disconnectedCallback() {
28738
28738
  if (this.videoEl) {
28739
- this.playbackTeardown.emit(this.getPlaybackDetail());
28739
+ /**
28740
+ * Cannot call this.playbackTeardown.emit() here because the host is by
28741
+ * definition already detached, so Stencil throws a warning (in tests and
28742
+ * in real dev builds). Keeping the @Event for type safety.
28743
+ */
28744
+ this.el.dispatchEvent(new CustomEvent("playbackTeardown", {
28745
+ bubbles: true,
28746
+ composed: true,
28747
+ detail: this.getPlaybackDetail(),
28748
+ }));
28740
28749
  }
28741
28750
  }
28742
28751
  watchDisableDownload() {
@@ -28761,7 +28770,7 @@ const SwirlFileViewerVideo = class {
28761
28770
  };
28762
28771
  }
28763
28772
  render() {
28764
- return (index.h(index.Host, { key: '940ae8d428f981ed8a2a70dcba20df32108060e4', class: "file-viewer-video" }, index.h("video", { key: '898b099c894ec94450ced6d2a54c4b450953fb33', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
28773
+ return (index.h(index.Host, { key: '096bf4738ee89c80cbf7aa894b3fe9579651adcc', class: "file-viewer-video" }, index.h("video", { key: '89234155bfac7693bf7bcd302aea75460e1081f1', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
28765
28774
  }
28766
28775
  get el() { return index.getElement(this); }
28767
28776
  static get watchers() { return {
@@ -28,7 +28,16 @@ export class SwirlFileViewerVideo {
28
28
  }
29
29
  disconnectedCallback() {
30
30
  if (this.videoEl) {
31
- this.playbackTeardown.emit(this.getPlaybackDetail());
31
+ /**
32
+ * Cannot call this.playbackTeardown.emit() here because the host is by
33
+ * definition already detached, so Stencil throws a warning (in tests and
34
+ * in real dev builds). Keeping the @Event for type safety.
35
+ */
36
+ this.el.dispatchEvent(new CustomEvent("playbackTeardown", {
37
+ bubbles: true,
38
+ composed: true,
39
+ detail: this.getPlaybackDetail(),
40
+ }));
32
41
  }
33
42
  }
34
43
  watchDisableDownload() {
@@ -53,7 +62,7 @@ export class SwirlFileViewerVideo {
53
62
  };
54
63
  }
55
64
  render() {
56
- return (h(Host, { key: '940ae8d428f981ed8a2a70dcba20df32108060e4', class: "file-viewer-video" }, h("video", { key: '898b099c894ec94450ced6d2a54c4b450953fb33', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
65
+ return (h(Host, { key: '096bf4738ee89c80cbf7aa894b3fe9579651adcc', class: "file-viewer-video" }, h("video", { key: '89234155bfac7693bf7bcd302aea75460e1081f1', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
57
66
  }
58
67
  static get is() { return "swirl-file-viewer-video"; }
59
68
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as i,createEvent as e,h as s,Host as a,transformTag as o}from"@stencil/core/internal/client";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activate=e(this,"activate",7),this.playbackPlay=e(this,"playbackPlay",7),this.playbackPause=e(this,"playbackPause",7),this.playbackTimeUpdate=e(this,"playbackTimeUpdate",7),this.playbackSeeked=e(this,"playbackSeeked",7),this.playbackRateChange=e(this,"playbackRateChange",7),this.playbackEnded=e(this,"playbackEnded",7),this.playbackTeardown=e(this,"playbackTeardown",7),this.onNativePlay=()=>{this.playbackPlay.emit(this.getPlaybackDetail())},this.onNativePause=()=>{this.playbackPause.emit(this.getPlaybackDetail())},this.onNativeTimeUpdate=()=>{this.playbackTimeUpdate.emit(this.getPlaybackDetail())},this.onNativeSeeked=()=>{this.playbackSeeked.emit(this.getPlaybackDetail())},this.onNativeRateChange=()=>{this.playbackRateChange.emit(this.getPlaybackRateChangeDetail())},this.onNativeEnded=()=>{this.playbackEnded.emit(this.getPlaybackDetail())}}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}disconnectedCallback(){this.videoEl&&this.playbackTeardown.emit(this.getPlaybackDetail())}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}getPlaybackDetail(){return{currentTime:this.videoEl.currentTime,duration:this.videoEl.duration,videoEl:this.videoEl}}getPlaybackRateChangeDetail(){return{playbackRate:this.videoEl.playbackRate,...this.getPlaybackDetail()}}render(){return s(a,{key:"940ae8d428f981ed8a2a70dcba20df32108060e4",class:"file-viewer-video"},s("video",{key:"898b099c894ec94450ced6d2a54c4b450953fb33",autoplay:this.autoplay,class:"file-viewer-video__video",controls:!0,onEnded:this.onNativeEnded,onPause:this.onNativePause,onPlay:this.onNativePlay,onRateChange:this.onNativeRateChange,onSeeked:this.onNativeSeeked,onTimeUpdate:this.onNativeTimeUpdate,src:this.file,ref:t=>this.videoEl=t}))}get el(){return this}static get watchers(){return{disableDownload:[{watchDisableDownload:0}]}}static get style(){return":host{display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}"}},[1,"swirl-file-viewer-video",{autoplay:[4],disableDownload:[4,"disable-download"],file:[1]},void 0,{disableDownload:[{watchDisableDownload:0}]}]);function l(){"undefined"!=typeof customElements&&["swirl-file-viewer-video"].forEach((t=>{"swirl-file-viewer-video"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))}export{h as S,l as d}
1
+ import{proxyCustomElement as t,HTMLElement as i,createEvent as e,h as s,Host as a,transformTag as o}from"@stencil/core/internal/client";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activate=e(this,"activate",7),this.playbackPlay=e(this,"playbackPlay",7),this.playbackPause=e(this,"playbackPause",7),this.playbackTimeUpdate=e(this,"playbackTimeUpdate",7),this.playbackSeeked=e(this,"playbackSeeked",7),this.playbackRateChange=e(this,"playbackRateChange",7),this.playbackEnded=e(this,"playbackEnded",7),this.playbackTeardown=e(this,"playbackTeardown",7),this.onNativePlay=()=>{this.playbackPlay.emit(this.getPlaybackDetail())},this.onNativePause=()=>{this.playbackPause.emit(this.getPlaybackDetail())},this.onNativeTimeUpdate=()=>{this.playbackTimeUpdate.emit(this.getPlaybackDetail())},this.onNativeSeeked=()=>{this.playbackSeeked.emit(this.getPlaybackDetail())},this.onNativeRateChange=()=>{this.playbackRateChange.emit(this.getPlaybackRateChangeDetail())},this.onNativeEnded=()=>{this.playbackEnded.emit(this.getPlaybackDetail())}}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}disconnectedCallback(){this.videoEl&&this.el.dispatchEvent(new CustomEvent("playbackTeardown",{bubbles:!0,composed:!0,detail:this.getPlaybackDetail()}))}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}getPlaybackDetail(){return{currentTime:this.videoEl.currentTime,duration:this.videoEl.duration,videoEl:this.videoEl}}getPlaybackRateChangeDetail(){return{playbackRate:this.videoEl.playbackRate,...this.getPlaybackDetail()}}render(){return s(a,{key:"096bf4738ee89c80cbf7aa894b3fe9579651adcc",class:"file-viewer-video"},s("video",{key:"89234155bfac7693bf7bcd302aea75460e1081f1",autoplay:this.autoplay,class:"file-viewer-video__video",controls:!0,onEnded:this.onNativeEnded,onPause:this.onNativePause,onPlay:this.onNativePlay,onRateChange:this.onNativeRateChange,onSeeked:this.onNativeSeeked,onTimeUpdate:this.onNativeTimeUpdate,src:this.file,ref:t=>this.videoEl=t}))}get el(){return this}static get watchers(){return{disableDownload:[{watchDisableDownload:0}]}}static get style(){return":host{display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}"}},[1,"swirl-file-viewer-video",{autoplay:[4],disableDownload:[4,"disable-download"],file:[1]},void 0,{disableDownload:[{watchDisableDownload:0}]}]);function l(){"undefined"!=typeof customElements&&["swirl-file-viewer-video"].forEach((t=>{"swirl-file-viewer-video"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))}export{h as S,l as d}
@@ -28715,7 +28715,16 @@ const SwirlFileViewerVideo = class {
28715
28715
  }
28716
28716
  disconnectedCallback() {
28717
28717
  if (this.videoEl) {
28718
- this.playbackTeardown.emit(this.getPlaybackDetail());
28718
+ /**
28719
+ * Cannot call this.playbackTeardown.emit() here because the host is by
28720
+ * definition already detached, so Stencil throws a warning (in tests and
28721
+ * in real dev builds). Keeping the @Event for type safety.
28722
+ */
28723
+ this.el.dispatchEvent(new CustomEvent("playbackTeardown", {
28724
+ bubbles: true,
28725
+ composed: true,
28726
+ detail: this.getPlaybackDetail(),
28727
+ }));
28719
28728
  }
28720
28729
  }
28721
28730
  watchDisableDownload() {
@@ -28740,7 +28749,7 @@ const SwirlFileViewerVideo = class {
28740
28749
  };
28741
28750
  }
28742
28751
  render() {
28743
- return (h(Host, { key: '940ae8d428f981ed8a2a70dcba20df32108060e4', class: "file-viewer-video" }, h("video", { key: '898b099c894ec94450ced6d2a54c4b450953fb33', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
28752
+ return (h(Host, { key: '096bf4738ee89c80cbf7aa894b3fe9579651adcc', class: "file-viewer-video" }, h("video", { key: '89234155bfac7693bf7bcd302aea75460e1081f1', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
28744
28753
  }
28745
28754
  get el() { return getElement(this); }
28746
28755
  static get watchers() { return {