@brightspace-ui/labs 2.36.1 → 2.36.2

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
@@ -114,5 +114,5 @@
114
114
  "resize-observer-polyfill": "^1",
115
115
  "webvtt-parser": "^2.1.2"
116
116
  },
117
- "version": "2.36.1"
117
+ "version": "2.36.2"
118
118
  }
@@ -1447,10 +1447,11 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
1447
1447
  </div>
1448
1448
  `;
1449
1449
 
1450
- // format of the thumbnail is [url]/th<height>w<height>i<interval>-<hash>.[png|jpg]
1451
- const matches = this.thumbnails.match(/th(\d+)w(\d+)i(\d+)[^/]*$/i);
1452
- if (matches && matches.length !== 4) return; // no matches
1453
- const [ , thumbHeight, thumbWidth, interval] = matches;
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) {