@brightspace-ui/labs 2.36.1 → 2.37.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/package.json
CHANGED
|
@@ -1447,10 +1447,11 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
1447
1447
|
</div>
|
|
1448
1448
|
`;
|
|
1449
1449
|
|
|
1450
|
-
// format of the thumbnail is [url]/
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1450
|
+
// format of the thumbnail is either [url]/timelineThumbnails-h<height>w<height>i<interval>-<hash>.[png|jpg]
|
|
1451
|
+
// or [url]/th<height>w<height>i<interval>-<hash>.[png|jpg]
|
|
1452
|
+
const matches = this.thumbnails.match(/(timelineThumbnails-|t)h(\d+)w(\d+)i(\d+)[^/]*$/i);
|
|
1453
|
+
if (matches && matches.length !== 5) return; // no matches
|
|
1454
|
+
const [ , , thumbHeight, thumbWidth, interval] = matches;
|
|
1454
1455
|
|
|
1455
1456
|
const width = this._thumbnailsImage.width;
|
|
1456
1457
|
const height = this._thumbnailsImage.height;
|
|
@@ -13,8 +13,9 @@ export const _createReducedContext = pageContext => ({
|
|
|
13
13
|
hash: pageContext.hash,
|
|
14
14
|
route: pageContext.routePath,
|
|
15
15
|
title: pageContext.title,
|
|
16
|
+
loaderData: pageContext.loaderData,
|
|
16
17
|
options: {},
|
|
17
|
-
passedData
|
|
18
|
+
passedData,
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
const _storeCtx = () => {
|
|
@@ -51,7 +52,7 @@ const _handleRouteLoader = r => (context, next) => {
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
if (r.loader) {
|
|
54
|
-
r.loader().then(() => {
|
|
55
|
+
r.loader(context).then(() => {
|
|
55
56
|
_handleRouteView(context, next, r);
|
|
56
57
|
});
|
|
57
58
|
} else if (r.pattern && r.to) {
|