buzzcasting-storage 2.9.5 → 2.9.6
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.
|
@@ -229,8 +229,7 @@ export declare interface IMetrics {
|
|
|
229
229
|
*/
|
|
230
230
|
export declare interface IModal {
|
|
231
231
|
showComponent: string;
|
|
232
|
-
|
|
233
|
-
attributes?: any;
|
|
232
|
+
props?: any;
|
|
234
233
|
}
|
|
235
234
|
|
|
236
235
|
/**
|
|
@@ -365,7 +364,7 @@ export declare class Widget {
|
|
|
365
364
|
private storageReader;
|
|
366
365
|
private broadcastChannel;
|
|
367
366
|
private query;
|
|
368
|
-
private
|
|
367
|
+
private props;
|
|
369
368
|
private listeners;
|
|
370
369
|
/**
|
|
371
370
|
* Main container for managing widgets and data updates
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ei = Object.defineProperty;
|
|
2
2
|
var Oi = (w, o, h) => o in w ? Ei(w, o, { enumerable: !0, configurable: !0, writable: !0, value: h }) : w[o] = h;
|
|
3
3
|
var P = (w, o, h) => (Oi(w, typeof o != "symbol" ? o + "" : o, h), h);
|
|
4
|
-
const xi = "2.9.
|
|
4
|
+
const xi = "2.9.5";
|
|
5
5
|
class ki {
|
|
6
6
|
constructor(o) {
|
|
7
7
|
P(this, "options");
|
|
@@ -4213,7 +4213,7 @@ class Gi {
|
|
|
4213
4213
|
P(this, "storageReader");
|
|
4214
4214
|
P(this, "broadcastChannel");
|
|
4215
4215
|
P(this, "query");
|
|
4216
|
-
P(this, "
|
|
4216
|
+
P(this, "props");
|
|
4217
4217
|
P(this, "listeners");
|
|
4218
4218
|
/**
|
|
4219
4219
|
* Generic call to any query type
|
|
@@ -4296,7 +4296,7 @@ class Gi {
|
|
|
4296
4296
|
* @param modal IModal
|
|
4297
4297
|
*/
|
|
4298
4298
|
P(this, "showModal", (o) => {
|
|
4299
|
-
const h = { ...o.
|
|
4299
|
+
const h = { ...o.props, ...this.props };
|
|
4300
4300
|
console.debug(
|
|
4301
4301
|
"%cwidget",
|
|
4302
4302
|
x.WIDGET,
|
|
@@ -4304,22 +4304,21 @@ class Gi {
|
|
|
4304
4304
|
o.showComponent,
|
|
4305
4305
|
h.widget
|
|
4306
4306
|
);
|
|
4307
|
-
const
|
|
4307
|
+
const m = new CustomEvent(ue.SHOW_MODAL, {
|
|
4308
4308
|
detail: {
|
|
4309
4309
|
component: o.showComponent,
|
|
4310
|
-
|
|
4311
|
-
dataset: h
|
|
4310
|
+
props: h
|
|
4312
4311
|
},
|
|
4313
4312
|
bubbles: !0,
|
|
4314
4313
|
cancelable: !0,
|
|
4315
4314
|
composed: !0
|
|
4316
4315
|
});
|
|
4317
|
-
window.dispatchEvent(
|
|
4316
|
+
window.dispatchEvent(m);
|
|
4318
4317
|
});
|
|
4319
4318
|
var j;
|
|
4320
4319
|
m = typeof m < "u" ? m : "buzzcasting-slide", this.listeners = h;
|
|
4321
4320
|
let I;
|
|
4322
|
-
I = { ...o.dataset }, delete I.hmr, I.slide = ((j = o.closest(m.toUpperCase())) == null ? void 0 : j.id) ?? `${m} not found`, I = nt(I), this.query = I, this.
|
|
4321
|
+
I = { ...o.dataset }, delete I.hmr, I.slide = ((j = o.closest(m.toUpperCase())) == null ? void 0 : j.id) ?? `${m} not found`, I = nt(I), this.query = I, this.props = Ii(o.attributes);
|
|
4323
4322
|
const B = window.BuzzCasting.getOptions();
|
|
4324
4323
|
this.storageReader = new ji(B), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
|
|
4325
4324
|
}
|