storyly-placement 1.16.0 → 1.18.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/dist/{BaseStory-CYzLr9nq.js → BaseStory-nHR84MRD.js} +28 -27
- package/dist/{create-product-feed-impl-DY8k3rv-.js → create-product-feed-impl-Cb2l2Q0W.js} +70 -69
- package/dist/{directions-CwnC3a_E.js → directions-e67mS9V0.js} +1 -1
- package/dist/{impression-Cyq4TnV1.js → impression-CUXBnMk8.js} +1 -1
- package/dist/{index-C4dW1pqw.js → index-8xdF7D6e.js} +4 -4
- package/dist/{index-7dFV-4xE.js → index-B3kyoAn_.js} +2 -2
- package/dist/{index-DIKtXa9n.js → index-BUoDQvaC.js} +243 -234
- package/dist/{index-sOArwfJA.js → index-BWQwvV9f.js} +2 -2
- package/dist/{index-DCFTpn-q.js → index-BaYtoeyj.js} +13 -14
- package/dist/{index-CGq62ZYq.js → index-BbF6_WDf.js} +1 -1
- package/dist/{index-jshOOKml.js → index-Bgrg6oY-.js} +3 -3
- package/dist/{index-rx0D-y8n.js → index-Bnhuqyt-.js} +19 -19
- package/dist/{index-0pvHE7Wu.js → index-BnoYsHZ-.js} +81 -69
- package/dist/{index-D6pJkk7f.js → index-BtTq688c.js} +165 -164
- package/dist/{index-DxGx5tX1.js → index-C33h8RBI.js} +1 -1
- package/dist/{index-CNoaiD9c.js → index-C4oZe231.js} +254 -245
- package/dist/{index-B0HCD_CX.js → index-CHLi1h1t.js} +288 -269
- package/dist/{index-B1g2jFTK.js → index-CP0ea88j.js} +208 -196
- package/dist/{index-CBr5Wz3q.js → index-CViNuw6U.js} +4 -4
- package/dist/{index-VB84vh55.js → index-CWdcljZC.js} +2 -2
- package/dist/{index-wakxYZ6u.js → index-D28GtpFp.js} +19 -21
- package/dist/{index-m_3R9vOw.js → index-D4a2T0Us.js} +3 -3
- package/dist/{index-BUoSa-yy.js → index-D6xw-ZiC.js} +3 -3
- package/dist/{index-Cle6_VmW.js → index-DPam8qTT.js} +4 -4
- package/dist/{index-BurYE_Od.js → index-DSLoKNBd.js} +3 -3
- package/dist/{index-C1OlHTOJ.js → index-DUBETu5h.js} +2 -2
- package/dist/{index-CCmzNuJt.js → index-DW8m-ny5.js} +16 -17
- package/dist/{index-CgsKfExI.js → index-Da-NaqbP.js} +6 -6
- package/dist/{index-DqwsIsSl.js → index-DuuhVMDq.js} +2 -2
- package/dist/{index-B6K9g2w6.js → index-Ln7VIKbD.js} +19 -20
- package/dist/{index-BnRkcr11.js → index-MKCmhWdw.js} +29 -18
- package/dist/{index-CjvoRgFg.js → index-RC4PPgm9.js} +2 -2
- package/dist/{index-DX0vXov2.js → index-sWSUhkq0.js} +1016 -970
- package/dist/{index-BAn-lwM1.js → index-t8kM13yP.js} +218 -211
- package/dist/{index-DrDeJPCY.js → index-yTnn0dOM.js} +1 -1
- package/dist/index.d.ts +40 -0
- package/dist/{nudge-story-groups-impl-BSQbx9HB.js → nudge-story-groups-impl-BYIQzMeh.js} +1 -1
- package/dist/{ref-CBdAG3Tv.js → ref-Zjkh_JJN.js} +1 -1
- package/dist/{story-group-animation-impl-CJQDNc61.js → story-group-animation-impl-CvbDg0yw.js} +1 -3
- package/dist/storyly-placement.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as E, s as _, h as r,
|
|
2
|
-
import { d as k } from "./directions-
|
|
3
|
-
import { H as W, C as B, r as g, A as R, S as G } from "./index-
|
|
1
|
+
import { S as E, s as _, h as r, K as L, n as y, j as d, a2 as p, N as n, C as l, a3 as A, b as v, a4 as c, v as a, a0 as h, Q as u, p as S, $ as w, a5 as x, M as b, o as P, a6 as O, c as q, a7 as I, f as m, m as V } from "./index-sWSUhkq0.js";
|
|
2
|
+
import { d as k } from "./directions-e67mS9V0.js";
|
|
3
|
+
import { H as W, C as B, r as g, A as R, S as G } from "./index-CHLi1h1t.js";
|
|
4
4
|
class H {
|
|
5
5
|
constructor({
|
|
6
6
|
story: t,
|
|
@@ -92,7 +92,7 @@ class H {
|
|
|
92
92
|
height: this.videoAsset_.videoHeight,
|
|
93
93
|
width: this.videoAsset_.videoWidth
|
|
94
94
|
}), this.storyProgressRemain_ = this.videoAsset_.duration, this.storyProgressSecond_ = this.videoAsset_.duration, this.videoAsset_.duration >= 120 && !p(this.storyData_.video_type)) {
|
|
95
|
-
const t = await (await import("./index-
|
|
95
|
+
const t = await (await import("./index-yTnn0dOM.js")).default;
|
|
96
96
|
this.videoSeekbar_ = new t({
|
|
97
97
|
storyDom: this.storyDom_,
|
|
98
98
|
videoDom: this.videoAsset_,
|
|
@@ -179,26 +179,26 @@ class H {
|
|
|
179
179
|
};
|
|
180
180
|
if (t.is_bg && (t.bg_color || t.gradient_colors)) {
|
|
181
181
|
this.isBlankStory_ = !0;
|
|
182
|
-
const i = (await import("./index-
|
|
182
|
+
const i = (await import("./index-B3kyoAn_.js")).default;
|
|
183
183
|
e.instance = new i({ ...o });
|
|
184
184
|
}
|
|
185
185
|
if (t.type === a.EMOJI) {
|
|
186
|
-
const i = (await import("./index-
|
|
186
|
+
const i = (await import("./index-CWdcljZC.js")).default;
|
|
187
187
|
e.instance = new i({ ...o });
|
|
188
188
|
} else if (t.type === a.POLL) {
|
|
189
|
-
const i = (await import("./index-
|
|
189
|
+
const i = (await import("./index-CViNuw6U.js")).default;
|
|
190
190
|
e.instance = new i({ ...o });
|
|
191
191
|
} else if (t.type === a.RATING) {
|
|
192
|
-
const i = (await import("./index-
|
|
192
|
+
const i = (await import("./index-DuuhVMDq.js")).default;
|
|
193
193
|
e.instance = new i({ ...o });
|
|
194
194
|
} else if (t.type === a.QUIZ) {
|
|
195
|
-
const i = (await import("./index-
|
|
195
|
+
const i = (await import("./index-RC4PPgm9.js")).default;
|
|
196
196
|
e.instance = new i({ ...o });
|
|
197
197
|
} else if (t.type === a.COUNTDOWN) {
|
|
198
|
-
const i = (await import("./index-
|
|
198
|
+
const i = (await import("./index-DUBETu5h.js")).default;
|
|
199
199
|
e.instance = new i({ ...o });
|
|
200
200
|
} else if (t.type === a.IMAGE_CTA) {
|
|
201
|
-
const i = (await import("./index-
|
|
201
|
+
const i = (await import("./index-Da-NaqbP.js")).default;
|
|
202
202
|
e.instance = new i({
|
|
203
203
|
...o,
|
|
204
204
|
type: a.IMAGE_CTA
|
|
@@ -209,34 +209,34 @@ class H {
|
|
|
209
209
|
type: t.type === a.BUTTON ? a.BUTTON : a.SWIPE
|
|
210
210
|
}), e.instance = this.ctaLayer_;
|
|
211
211
|
else if ((t.image_path || t.video_path || t.image_url) && t.studio_component_type) {
|
|
212
|
-
const i = (await import("./index-
|
|
212
|
+
const i = (await import("./index-8xdF7D6e.js")).default;
|
|
213
213
|
e.instance = new i({
|
|
214
214
|
...o,
|
|
215
215
|
mediaHost: this.group_.media_host
|
|
216
216
|
});
|
|
217
217
|
} else if (t.type === a.TEXT) {
|
|
218
|
-
const i = (await import("./index-
|
|
218
|
+
const i = (await import("./index-DPam8qTT.js")).default;
|
|
219
219
|
e.instance = new i({ ...o });
|
|
220
220
|
} else if (t.type === a.PRODUCT_TAG) {
|
|
221
|
-
const i = (await import("./index-
|
|
221
|
+
const i = (await import("./index-DSLoKNBd.js")).default;
|
|
222
222
|
e.instance = new i({ ...o });
|
|
223
223
|
} else if (t.type === a.PROMO_CODE) {
|
|
224
|
-
const i = (await import("./index-
|
|
224
|
+
const i = (await import("./index-Bgrg6oY-.js")).default;
|
|
225
225
|
e.instance = new i({ ...o });
|
|
226
226
|
} else if (t.type === a.QUESTION) {
|
|
227
|
-
const i = (await import("./index-
|
|
227
|
+
const i = (await import("./index-D6xw-ZiC.js")).default;
|
|
228
228
|
e.instance = new i({
|
|
229
229
|
...o,
|
|
230
230
|
storiesContainer: this.storiesContainer_
|
|
231
231
|
});
|
|
232
232
|
} else if (t.type === a.PRODUCT_CARD) {
|
|
233
|
-
const i = (await import("./index-
|
|
233
|
+
const i = (await import("./index-BWQwvV9f.js")).default;
|
|
234
234
|
e.instance = new i({ ...o });
|
|
235
235
|
} else if (t.type === a.PRODUCT_CATALOG) {
|
|
236
|
-
const i = (await import("./index-
|
|
236
|
+
const i = (await import("./index-BnoYsHZ-.js")).default;
|
|
237
237
|
e.instance = new i({ ...o });
|
|
238
238
|
} else if (t.type === a.IMAGE_QUIZ) {
|
|
239
|
-
const i = (await import("./index-
|
|
239
|
+
const i = (await import("./index-D4a2T0Us.js")).default;
|
|
240
240
|
e.instance = new i({ ...o });
|
|
241
241
|
}
|
|
242
242
|
(e.start_time || e.end_time) && (e.instance.hideLayer(), this.timedLayers_.push(e));
|
|
@@ -396,14 +396,15 @@ class H {
|
|
|
396
396
|
* @private
|
|
397
397
|
*/
|
|
398
398
|
hideAccessibilityElements_() {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
399
|
+
const t = this.storyDom_.getRootNode().activeElement;
|
|
400
|
+
t && this.storyDom_.contains(t) && t.blur(), r(this.storyDom_, "aria-hidden", "true"), this.storyDom_.querySelectorAll(".cta-button").forEach((s) => {
|
|
401
|
+
h(s, "tabindex"), r(s, "aria-hidden", "true");
|
|
402
|
+
}), this.storyDom_.querySelectorAll(".swipe-up-button").forEach((s) => {
|
|
403
|
+
h(s, "tabindex"), r(s, "aria-hidden", "true");
|
|
404
|
+
}), this.storyDom_.querySelectorAll(".product-tag-tooltip").forEach((s) => {
|
|
405
|
+
h(s, "tabindex"), r(s, "aria-hidden", "true");
|
|
406
|
+
}), this.storyDom_.querySelectorAll(".poll-component").forEach((s) => {
|
|
407
|
+
s.querySelectorAll("button").forEach((e) => h(e, "tabindex")), h(s, "tabindex"), r(s, "aria-hidden", "true");
|
|
407
408
|
});
|
|
408
409
|
}
|
|
409
410
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
const _ = /@{p_(\d).+?}/,
|
|
1
|
+
import { Z as L, Y as D } from "./index-sWSUhkq0.js";
|
|
2
|
+
function F(g, U, I) {
|
|
3
|
+
const _ = /@{p_(\d).+?}/, i = Object.freeze({
|
|
4
4
|
TITLE: /@{p_\d_title}/,
|
|
5
5
|
IMAGE: /@{p_\d_image_\d}/,
|
|
6
6
|
DESCRIPTION: /@{p_\d_desc}/,
|
|
@@ -13,31 +13,31 @@ function v(g, D) {
|
|
|
13
13
|
PRODUCT_ID: /@{p_\d_pid}/,
|
|
14
14
|
DISCOUNT: /@{p_\d_discount}/,
|
|
15
15
|
CURRENCY: /@{p_\d_currency}/
|
|
16
|
-
}),
|
|
17
|
-
return
|
|
16
|
+
}), R = [], w = 8;
|
|
17
|
+
return U.forEach((h) => {
|
|
18
18
|
if (!g[h.name])
|
|
19
19
|
return;
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
if (l.length ===
|
|
20
|
+
const S = g[h.name], l = [];
|
|
21
|
+
L(h.stories).forEach((f) => {
|
|
22
|
+
if (l.length === w)
|
|
23
23
|
return;
|
|
24
|
-
const
|
|
24
|
+
const O = Math.max(
|
|
25
25
|
...f.media.layers.flatMap((o) => Object.values(o)).filter(
|
|
26
26
|
(o) => typeof o == "string" && o.match(_)
|
|
27
27
|
).map((o) => +o.match(_)[1])
|
|
28
28
|
);
|
|
29
29
|
let m = structuredClone(f), C = 0;
|
|
30
30
|
const E = [];
|
|
31
|
-
|
|
32
|
-
if (C ===
|
|
31
|
+
S.filter((o) => !o.used).forEach((o, x) => {
|
|
32
|
+
if (C === O)
|
|
33
33
|
return;
|
|
34
|
-
const t = structuredClone(o),
|
|
34
|
+
const t = structuredClone(o), P = t.price, T = t.sales_price;
|
|
35
35
|
m.media.layers.forEach((e, u) => {
|
|
36
36
|
const d = e;
|
|
37
37
|
Object.keys(e).filter(
|
|
38
38
|
(c) => typeof e[c] == "string" && e[c].match(_) || c === "products"
|
|
39
39
|
).forEach((c) => {
|
|
40
|
-
var
|
|
40
|
+
var A;
|
|
41
41
|
if (c === "products") {
|
|
42
42
|
if (!t.product_id || !t.product_group_id)
|
|
43
43
|
return;
|
|
@@ -52,10 +52,10 @@ function v(g, D) {
|
|
|
52
52
|
product_group_id: t.product_group_id
|
|
53
53
|
}
|
|
54
54
|
], delete t.product_id, delete t.product_group_id);
|
|
55
|
-
else if (e[c].match(
|
|
56
|
-
const
|
|
55
|
+
else if (e[c].match(i.PRODUCTS)) {
|
|
56
|
+
const s = f.media.layers[u - 1], p = (A = Object.values(s).find(
|
|
57
57
|
(n) => typeof n == "string" && n.match(_)
|
|
58
|
-
)) == null ? void 0 :
|
|
58
|
+
)) == null ? void 0 : A.match(_), a = e[c].match(_);
|
|
59
59
|
if (!p || p[1] !== a[1]) {
|
|
60
60
|
d[c] = [
|
|
61
61
|
{
|
|
@@ -65,7 +65,7 @@ function v(g, D) {
|
|
|
65
65
|
}
|
|
66
66
|
];
|
|
67
67
|
for (let n = 1; n < 5; n += 1) {
|
|
68
|
-
const r =
|
|
68
|
+
const r = S[x + n];
|
|
69
69
|
r && (d[c].push({
|
|
70
70
|
id: r.id,
|
|
71
71
|
product_id: r.product_id,
|
|
@@ -85,98 +85,99 @@ function v(g, D) {
|
|
|
85
85
|
]);
|
|
86
86
|
delete t.product_id, delete t.product_group_id;
|
|
87
87
|
}
|
|
88
|
-
} else if (e[c].match(
|
|
89
|
-
const
|
|
90
|
-
|
|
88
|
+
} else if (e[c].match(i.TITLE) && t.title) {
|
|
89
|
+
const s = e[c].replace(
|
|
90
|
+
i.TITLE,
|
|
91
91
|
t.title
|
|
92
92
|
);
|
|
93
|
-
d[c] =
|
|
94
|
-
} else if (e[c].match(
|
|
95
|
-
const
|
|
96
|
-
|
|
93
|
+
d[c] = s, delete t.title;
|
|
94
|
+
} else if (e[c].match(i.CTA) && t.url) {
|
|
95
|
+
const s = e[c].replace(
|
|
96
|
+
i.CTA,
|
|
97
97
|
t.url
|
|
98
98
|
);
|
|
99
|
-
d[c] =
|
|
100
|
-
} else if (e[c].match(
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
`${
|
|
99
|
+
d[c] = s, delete t.url;
|
|
100
|
+
} else if (e[c].match(i.CTA_TEXT)) {
|
|
101
|
+
const s = t.cta_text ?? null, p = e[c].replace(
|
|
102
|
+
i.CTA_TEXT,
|
|
103
|
+
`${s}`
|
|
104
104
|
);
|
|
105
105
|
d[c] = p, delete t.cta_text;
|
|
106
|
-
} else if (e[c].match(
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
} else if (e[c].match(i.SALES_PRICE) && t.sales_price) {
|
|
107
|
+
const s = e[c].replace(
|
|
108
|
+
i.SALES_PRICE,
|
|
109
|
+
D(
|
|
110
110
|
t.sales_price,
|
|
111
|
-
t.price_currency
|
|
111
|
+
t.price_currency,
|
|
112
|
+
I
|
|
112
113
|
)
|
|
113
114
|
);
|
|
114
|
-
d[c] =
|
|
115
|
-
} else if (e[c].match(
|
|
116
|
-
const
|
|
115
|
+
d[c] = s, delete t.sales_price;
|
|
116
|
+
} else if (e[c].match(i.PRICE) && (t.price || t.sales_price)) {
|
|
117
|
+
const s = f.media.layers.some(
|
|
117
118
|
(n) => Object.values(n).some(
|
|
118
|
-
(r) => typeof r == "string" && r.match(
|
|
119
|
+
(r) => typeof r == "string" && r.match(i.SALES_PRICE)
|
|
119
120
|
)
|
|
120
121
|
);
|
|
121
122
|
let { price: p } = t;
|
|
122
|
-
!
|
|
123
|
+
!s && t.sales_price && (p = t.sales_price, delete t.sales_price);
|
|
123
124
|
const a = e[c].replace(
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
i.PRICE,
|
|
126
|
+
D(p, t.price_currency, I) || 0
|
|
126
127
|
);
|
|
127
128
|
d[c] = a, delete t.price;
|
|
128
|
-
} else if (e[c].match(
|
|
129
|
-
const
|
|
130
|
-
|
|
129
|
+
} else if (e[c].match(i.CURRENCY) && t.price_currency) {
|
|
130
|
+
const s = e[c].replace(
|
|
131
|
+
i.CURRENCY,
|
|
131
132
|
t.price_currency
|
|
132
133
|
);
|
|
133
|
-
d[c] =
|
|
134
|
-
} else if (e[c].match(
|
|
135
|
-
const
|
|
136
|
-
|
|
134
|
+
d[c] = s, delete t.price_currency;
|
|
135
|
+
} else if (e[c].match(i.PRODUCT_ID) && t.product_id) {
|
|
136
|
+
const s = e[c].replace(
|
|
137
|
+
i.PRODUCT_ID,
|
|
137
138
|
t.product_id
|
|
138
139
|
);
|
|
139
|
-
d[c] =
|
|
140
|
-
} else if (e[c].match(
|
|
141
|
-
const
|
|
142
|
-
(
|
|
140
|
+
d[c] = s, delete t.product_id;
|
|
141
|
+
} else if (e[c].match(i.DISCOUNT) && T && T < P) {
|
|
142
|
+
const s = Math.ceil(
|
|
143
|
+
(P - T) * 100 / P
|
|
143
144
|
), p = e[c].replace(
|
|
144
|
-
|
|
145
|
-
`${
|
|
145
|
+
i.DISCOUNT,
|
|
146
|
+
`${s}%`
|
|
146
147
|
);
|
|
147
148
|
d[c] = p;
|
|
148
|
-
} else if (e[c].match(
|
|
149
|
-
const
|
|
150
|
-
|
|
149
|
+
} else if (e[c].match(i.DESCRIPTION) && t.description) {
|
|
150
|
+
const s = e[c].replace(
|
|
151
|
+
i.DESCRIPTION,
|
|
151
152
|
t.description
|
|
152
153
|
);
|
|
153
|
-
d[c] =
|
|
154
|
-
} else if (e[c].match(
|
|
154
|
+
d[c] = s, delete t.description;
|
|
155
|
+
} else if (e[c].match(i.IMAGE) && t.image_urls) {
|
|
155
156
|
if (t.image_urls.length === 0)
|
|
156
157
|
return;
|
|
157
|
-
const
|
|
158
|
-
|
|
158
|
+
const s = e[c].replace(
|
|
159
|
+
i.IMAGE,
|
|
159
160
|
t.image_urls[0]
|
|
160
161
|
);
|
|
161
|
-
t.image_urls.length > 0 && t.image_urls.splice(0, 1), d[c] =
|
|
162
|
+
t.image_urls.length > 0 && t.image_urls.splice(0, 1), d[c] = s;
|
|
162
163
|
}
|
|
163
164
|
});
|
|
164
165
|
});
|
|
165
|
-
const
|
|
166
|
+
const N = m.media.layers.every(
|
|
166
167
|
(e) => Object.values(e).filter((u) => typeof u == "string").every((u) => !u.match(_))
|
|
167
|
-
),
|
|
168
|
+
), b = m.media.layers.some(
|
|
168
169
|
(e) => Object.values(e).filter((u) => typeof u == "string").some((u) => u == null ? void 0 : u.match(_))
|
|
169
170
|
);
|
|
170
|
-
|
|
171
|
+
N ? (C += 1, E.length > 0 && E.forEach((e) => {
|
|
171
172
|
e.used = !0;
|
|
172
|
-
}), o.used = !0, l.push(m), m = structuredClone(f)) :
|
|
173
|
+
}), o.used = !0, l.push(m), m = structuredClone(f)) : O > 1 && b && (C += 1, E.push(o));
|
|
173
174
|
});
|
|
174
|
-
}), l.length > 0 &&
|
|
175
|
+
}), l.length > 0 && R.push({
|
|
175
176
|
...h,
|
|
176
177
|
stories: l
|
|
177
178
|
});
|
|
178
|
-
}), Promise.resolve(
|
|
179
|
+
}), Promise.resolve(R);
|
|
179
180
|
}
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
F as default
|
|
182
183
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as l } from "./index-
|
|
1
|
+
import { M as o, v as d, ad as h, j as n, af as c } from "./index-sWSUhkq0.js";
|
|
2
|
+
import { a as l } from "./index-CHLi1h1t.js";
|
|
3
3
|
const m = (e) => Object.keys(e).reduce(
|
|
4
4
|
(r, t) => {
|
|
5
5
|
const a = {
|
|
@@ -70,7 +70,7 @@ class _ extends l {
|
|
|
70
70
|
const r = h(this.layerData, this.storyDom_);
|
|
71
71
|
this.layerData.border_radius = this.layerData.border_radius ? r : 0, this.dom_ = await this.generateComponentAndAppendToPage(
|
|
72
72
|
y(this.layerData)
|
|
73
|
-
), (!this.layer_.rotation || ((t = this.layer_) == null ? void 0 : t.rotation) === 0) &&
|
|
73
|
+
), (!this.layer_.rotation || ((t = this.layer_) == null ? void 0 : t.rotation) === 0) && n(this.dom_, ["transform-origin", "center", "important"]), this.storyObserverCallback_ = this.storyObserverCallback_.bind(this), this.storyObserver_(this.storyObserverCallback_);
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* story dom observer callback
|
|
@@ -78,7 +78,7 @@ class _ extends l {
|
|
|
78
78
|
storyObserverCallback_(r) {
|
|
79
79
|
r.forEach((t) => {
|
|
80
80
|
const { type: a, attributeName: s, target: i } = t;
|
|
81
|
-
a === "attributes" && s === "show" && i.hasAttribute("show") &&
|
|
81
|
+
a === "attributes" && s === "show" && i.hasAttribute("show") && c(this.dom_, "img");
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|