stream-engine-widgets 0.3.29 → 0.3.31
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/{ArrowForwardIosRounded-CJASHPam.js → ArrowForwardIosRounded-Dxnfz3d3.js} +2 -2
- package/dist/{ArrowForwardIosRounded-CJASHPam.js.map → ArrowForwardIosRounded-Dxnfz3d3.js.map} +1 -1
- package/dist/{PlayArrowRounded-DS3yHaEV.js → PlayArrowRounded-B4OHwdvc.js} +2 -2
- package/dist/{PlayArrowRounded-DS3yHaEV.js.map → PlayArrowRounded-B4OHwdvc.js.map} +1 -1
- package/dist/{blaze-DHbq2VQy.js → blaze-DKsR7jev.js} +35 -47
- package/dist/{blaze-DHbq2VQy.js.map → blaze-DKsR7jev.js.map} +1 -1
- package/dist/{gallery-D6ZjWiC8.js → gallery-BMAYDGz2.js} +3 -3
- package/dist/{gallery-D6ZjWiC8.js.map → gallery-BMAYDGz2.js.map} +1 -1
- package/dist/{index-Tigt08mu.js → index-Bsr35sla.js} +9 -7
- package/dist/index-Bsr35sla.js.map +1 -0
- package/dist/{matchItem-BHYflETe.js → matchItem-xbrKeaZL.js} +2 -2
- package/dist/{matchItem-BHYflETe.js.map → matchItem-xbrKeaZL.js.map} +1 -1
- package/dist/{matches-PJJk9QPV.js → matches-BDfN6eAf.js} +4 -4
- package/dist/{matches-PJJk9QPV.js.map → matches-BDfN6eAf.js.map} +1 -1
- package/dist/{matchesStandalone-BdfGm70s.js → matchesStandalone-CeVy2DAI.js} +4 -4
- package/dist/{matchesStandalone-BdfGm70s.js.map → matchesStandalone-CeVy2DAI.js.map} +1 -1
- package/dist/{player-BOEGign1.js → player-CqAtN5ML.js} +3 -3
- package/dist/player-CqAtN5ML.js.map +1 -0
- package/dist/{poster-BdrUJ3yF.js → poster-BRMVAmkg.js} +3 -3
- package/dist/{poster-BdrUJ3yF.js.map → poster-BRMVAmkg.js.map} +1 -1
- package/dist/{posterItem-C5kylTiM.js → posterItem-Bg1Zpfd3.js} +4 -4
- package/dist/{posterItem-C5kylTiM.js.map → posterItem-Bg1Zpfd3.js.map} +1 -1
- package/dist/{scroll-1wt6ho6b.js → scroll-C0b-zqbo.js} +4 -4
- package/dist/{scroll-1wt6ho6b.js.map → scroll-C0b-zqbo.js.map} +1 -1
- package/dist/{stateTimeIndicator-CPDw-_fk.js → stateTimeIndicator-DtrSMUNG.js} +2 -2
- package/dist/{stateTimeIndicator-CPDw-_fk.js.map → stateTimeIndicator-DtrSMUNG.js.map} +1 -1
- package/dist/{story-D1oZAeUg.js → story-CGvCS7rF.js} +4 -4
- package/dist/{story-D1oZAeUg.js.map → story-CGvCS7rF.js.map} +1 -1
- package/dist/stream-engine-widgets.js +1 -1
- package/dist/{useMediaQuery-D1sSDrDX.js → useMediaQuery-tFsIjg3j.js} +4 -4
- package/dist/{useMediaQuery-D1sSDrDX.js.map → useMediaQuery-tFsIjg3j.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-Tigt08mu.js.map +0 -1
- package/dist/player-BOEGign1.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-
|
|
1
|
+
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-Bsr35sla.js';
|
|
2
2
|
|
|
3
3
|
const ArrowBackIosRounded = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
4
4
|
d: "M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"
|
|
@@ -9,4 +9,4 @@ const ArrowForwardIosRounded = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx
|
|
|
9
9
|
}), 'ArrowForwardIosRounded');
|
|
10
10
|
|
|
11
11
|
export { ArrowBackIosRounded as A, ArrowForwardIosRounded as a };
|
|
12
|
-
//# sourceMappingURL=ArrowForwardIosRounded-
|
|
12
|
+
//# sourceMappingURL=ArrowForwardIosRounded-Dxnfz3d3.js.map
|
package/dist/{ArrowForwardIosRounded-CJASHPam.js.map → ArrowForwardIosRounded-Dxnfz3d3.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowForwardIosRounded-
|
|
1
|
+
{"version":3,"file":"ArrowForwardIosRounded-Dxnfz3d3.js","sources":["../node_modules/@mui/icons-material/esm/ArrowBackIosRounded.js","../node_modules/@mui/icons-material/esm/ArrowForwardIosRounded.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76\"\n}), 'ArrowBackIosRounded');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76\"\n}), 'ArrowForwardIosRounded');"],"names":["_jsx"],"mappings":";;AAIA,4BAAe,aAAa,eAAeA,qBAAI,CAAC,MAAM,EAAE;AACxD,EAAE,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,qBAAqB,CAAC;;ACF1B,+BAAe,aAAa,eAAeA,qBAAI,CAAC,MAAM,EAAE;AACxD,EAAE,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,wBAAwB,CAAC;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-
|
|
1
|
+
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-Bsr35sla.js';
|
|
2
2
|
|
|
3
3
|
const PlayArrowRounded = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
4
4
|
d: "M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"
|
|
5
5
|
}), 'PlayArrowRounded');
|
|
6
6
|
|
|
7
7
|
export { PlayArrowRounded as P };
|
|
8
|
-
//# sourceMappingURL=PlayArrowRounded-
|
|
8
|
+
//# sourceMappingURL=PlayArrowRounded-B4OHwdvc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayArrowRounded-
|
|
1
|
+
{"version":3,"file":"PlayArrowRounded-B4OHwdvc.js","sources":["../node_modules/@mui/icons-material/esm/PlayArrowRounded.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82\"\n}), 'PlayArrowRounded');"],"names":["_jsx"],"mappings":";;AAIA,yBAAe,aAAa,eAAeA,qBAAI,CAAC,MAAM,EAAE;AACxD,EAAE,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,kBAAkB,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as importShared, j as jsxRuntimeExports, L as Loader } from './index-
|
|
1
|
+
import { i as importShared, j as jsxRuntimeExports, L as Loader } from './index-Bsr35sla.js';
|
|
2
2
|
import { g as getDefaultExportFromCjs } from './index-BXY6XHL0.js';
|
|
3
3
|
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -134,14 +134,14 @@ function mapSearchSortToBlazeOrder(sortByParam) {
|
|
|
134
134
|
return mapping[sortByParam] || null;
|
|
135
135
|
}
|
|
136
136
|
function sanitizeStyleIndicatorObject(obj) {
|
|
137
|
-
if (!obj) return {};
|
|
138
137
|
const defaultStyle = {
|
|
139
|
-
isVisible: false
|
|
138
|
+
isVisible: false,
|
|
139
|
+
text: ""
|
|
140
140
|
};
|
|
141
|
+
if (!obj) return defaultStyle;
|
|
141
142
|
const cleaned = Object.fromEntries(
|
|
142
143
|
Object.entries({ ...defaultStyle, ...obj }).filter(([, v]) => v !== void 0)
|
|
143
144
|
);
|
|
144
|
-
if (cleaned.text === void 0) cleaned.text = "";
|
|
145
145
|
return cleaned;
|
|
146
146
|
}
|
|
147
147
|
function sanitizeLabelStyleObject(obj) {
|
|
@@ -155,6 +155,7 @@ function sanitizeLabelStyleObject(obj) {
|
|
|
155
155
|
fontSize: "14px",
|
|
156
156
|
fontWeight: "bold"
|
|
157
157
|
};
|
|
158
|
+
if (!obj) return defaultLabelStyle;
|
|
158
159
|
return {
|
|
159
160
|
...defaultLabelStyle,
|
|
160
161
|
...obj,
|
|
@@ -228,51 +229,38 @@ function convertAPIResponseToConfig(apiResponse) {
|
|
|
228
229
|
isGeoBased: settings.isGeoBased
|
|
229
230
|
};
|
|
230
231
|
}
|
|
232
|
+
function applyStyleOrHide(layoutStyle, styleKey, styleConfig, sanitizer) {
|
|
233
|
+
if (styleConfig?.[styleKey] && styleConfig[styleKey].isVisible) {
|
|
234
|
+
layoutStyle[styleKey] = sanitizer(styleConfig[styleKey]);
|
|
235
|
+
} else if (layoutStyle[styleKey]) {
|
|
236
|
+
layoutStyle[styleKey].isVisible = false;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
231
239
|
function applyThemeConfiguration(theme, styleConfig) {
|
|
232
240
|
const layoutStyle = theme.layoutStyle;
|
|
233
241
|
if (!layoutStyle) return;
|
|
234
|
-
if (styleConfig
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
layoutStyle.statusIndicatorPosition = styleConfig.statusIndicatorPosition;
|
|
257
|
-
}
|
|
258
|
-
if (styleConfig?.labelStyle && styleConfig.labelStyle.isVisible) {
|
|
259
|
-
layoutStyle.labelStyle = sanitizeLabelStyleObject(styleConfig.labelStyle);
|
|
260
|
-
}
|
|
261
|
-
if (styleConfig?.statusLiveStyle && styleConfig.statusLiveStyle.isVisible) {
|
|
262
|
-
layoutStyle.statusLiveStyle = sanitizeStyleIndicatorObject(styleConfig.statusLiveStyle);
|
|
263
|
-
}
|
|
264
|
-
if (styleConfig?.statusLiveUnreadStyle && styleConfig.statusLiveUnreadStyle.isVisible) {
|
|
265
|
-
layoutStyle.statusLiveUnreadStyle = sanitizeStyleIndicatorObject(styleConfig.statusLiveUnreadStyle);
|
|
266
|
-
}
|
|
267
|
-
if (styleConfig?.statusReadStyle && styleConfig.statusReadStyle.isVisible) {
|
|
268
|
-
layoutStyle.statusReadStyle = sanitizeStyleIndicatorObject(styleConfig.statusReadStyle);
|
|
269
|
-
}
|
|
270
|
-
if (styleConfig?.statusUnreadStyle && styleConfig.statusUnreadStyle.isVisible) {
|
|
271
|
-
layoutStyle.statusUnreadStyle = sanitizeStyleIndicatorObject(styleConfig.statusUnreadStyle);
|
|
272
|
-
}
|
|
273
|
-
if (styleConfig?.badgeIndicatorStyle && styleConfig.badgeIndicatorStyle.isVisible) {
|
|
274
|
-
layoutStyle.badgeIndicatorStyle = sanitizeStyleIndicatorObject(styleConfig.badgeIndicatorStyle);
|
|
275
|
-
}
|
|
242
|
+
if (!styleConfig || typeof styleConfig !== "object") return;
|
|
243
|
+
const simpleProps = [
|
|
244
|
+
"shouldAllowHorizontalStories",
|
|
245
|
+
"horizontalItemsSpacing",
|
|
246
|
+
"verticalItemsSpacing",
|
|
247
|
+
"borderWidth",
|
|
248
|
+
"borderRadius",
|
|
249
|
+
"borderPadding",
|
|
250
|
+
"badgePosition",
|
|
251
|
+
"statusIndicatorPosition"
|
|
252
|
+
];
|
|
253
|
+
simpleProps.forEach((prop) => {
|
|
254
|
+
if (styleConfig[prop] !== void 0) {
|
|
255
|
+
layoutStyle[prop] = styleConfig[prop];
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
applyStyleOrHide(layoutStyle, "labelStyle", styleConfig, sanitizeLabelStyleObject);
|
|
259
|
+
applyStyleOrHide(layoutStyle, "statusLiveStyle", styleConfig, sanitizeStyleIndicatorObject);
|
|
260
|
+
applyStyleOrHide(layoutStyle, "statusLiveUnreadStyle", styleConfig, sanitizeStyleIndicatorObject);
|
|
261
|
+
applyStyleOrHide(layoutStyle, "statusReadStyle", styleConfig, sanitizeStyleIndicatorObject);
|
|
262
|
+
applyStyleOrHide(layoutStyle, "statusUnreadStyle", styleConfig, sanitizeStyleIndicatorObject);
|
|
263
|
+
applyStyleOrHide(layoutStyle, "badgeIndicatorStyle", styleConfig, sanitizeStyleIndicatorObject);
|
|
276
264
|
}
|
|
277
265
|
function buildSDKConfig(config, options) {
|
|
278
266
|
const sdk = blazeSDKManager.getSDK();
|
|
@@ -582,4 +570,4 @@ const BlazeWidget = ({
|
|
|
582
570
|
};
|
|
583
571
|
|
|
584
572
|
export { BlazeWidget as default };
|
|
585
|
-
//# sourceMappingURL=blaze-
|
|
573
|
+
//# sourceMappingURL=blaze-DKsR7jev.js.map
|