@getflip/swirl-components 0.171.0 → 0.171.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.
- package/components.json +1 -1
- package/dist/cjs/swirl-avatar.cjs.entry.js +1 -3
- package/dist/cjs/swirl-image-grid-item.cjs.entry.js +1 -3
- package/dist/collection/components/swirl-avatar/swirl-avatar.js +1 -3
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.js +1 -3
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.stories.js +2 -0
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-avatar.js +1 -3
- package/dist/components/swirl-image-grid-item.js +1 -3
- package/dist/esm/swirl-avatar.entry.js +1 -3
- package/dist/esm/swirl-image-grid-item.entry.js +1 -3
- package/dist/swirl-components/p-0935f67d.entry.js +1 -0
- package/dist/swirl-components/p-8acf7c0d.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/swirl-components/p-345c4495.entry.js +0 -1
- package/dist/swirl-components/p-b4ba60d8.entry.js +0 -1
package/components.json
CHANGED
|
@@ -90,9 +90,7 @@ const SwirlAvatar = class {
|
|
|
90
90
|
this.intersectionObserver.observe(this.element);
|
|
91
91
|
}
|
|
92
92
|
onVisibilityChange(entries) {
|
|
93
|
-
|
|
94
|
-
this.inViewport = true;
|
|
95
|
-
}
|
|
93
|
+
this.inViewport = entries.some((entry) => entry.isIntersecting);
|
|
96
94
|
}
|
|
97
95
|
render() {
|
|
98
96
|
const showImage = Boolean(this.src) &&
|
|
@@ -56,9 +56,7 @@ const SwirlImageGridItem = class {
|
|
|
56
56
|
this.intersectionObserver.observe(this.el);
|
|
57
57
|
}
|
|
58
58
|
onVisibilityChange(entries) {
|
|
59
|
-
|
|
60
|
-
this.inViewport = true;
|
|
61
|
-
}
|
|
59
|
+
this.inViewport = entries.some((entry) => entry.isIntersecting);
|
|
62
60
|
}
|
|
63
61
|
render() {
|
|
64
62
|
const Tag = this.interactive ? "button" : "div";
|
|
@@ -83,9 +83,7 @@ export class SwirlAvatar {
|
|
|
83
83
|
this.intersectionObserver.observe(this.element);
|
|
84
84
|
}
|
|
85
85
|
onVisibilityChange(entries) {
|
|
86
|
-
|
|
87
|
-
this.inViewport = true;
|
|
88
|
-
}
|
|
86
|
+
this.inViewport = entries.some((entry) => entry.isIntersecting);
|
|
89
87
|
}
|
|
90
88
|
render() {
|
|
91
89
|
const showImage = Boolean(this.src) &&
|
|
@@ -46,9 +46,7 @@ export class SwirlImageGridItem {
|
|
|
46
46
|
this.intersectionObserver.observe(this.el);
|
|
47
47
|
}
|
|
48
48
|
onVisibilityChange(entries) {
|
|
49
|
-
|
|
50
|
-
this.inViewport = true;
|
|
51
|
-
}
|
|
49
|
+
this.inViewport = entries.some((entry) => entry.isIntersecting);
|
|
52
50
|
}
|
|
53
51
|
render() {
|
|
54
52
|
const Tag = this.interactive ? "button" : "div";
|
|
@@ -13,6 +13,7 @@ export default {
|
|
|
13
13
|
const Template = (args) => {
|
|
14
14
|
const container = document.createElement("swirl-image-grid");
|
|
15
15
|
const element = generateStoryElement("swirl-image-grid-item", args);
|
|
16
|
+
container.style.paddingTop = "200vh";
|
|
16
17
|
container.append(element);
|
|
17
18
|
return container;
|
|
18
19
|
};
|
|
@@ -20,5 +21,6 @@ export const SwirlImageGridItem = Template.bind({});
|
|
|
20
21
|
SwirlImageGridItem.args = {
|
|
21
22
|
alt: "Dog in a blanket",
|
|
22
23
|
icon: "<swirl-icon-play-arrow></swirl-icon-play-arrow>",
|
|
24
|
+
loading: "intersecting",
|
|
23
25
|
src: "/sample.jpg",
|
|
24
26
|
};
|