@carbon/ibmdotcom-web-components 2.55.1 → 2.55.3
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/dotcom-shell.js +1 -1
- package/dist/dotcom-shell.min.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +1 -1
- package/dist/{index-b430b0ae.js → index-5becb925.js} +195 -22
- package/dist/{index-7a169f38.js → index-9b1155d4.js} +265 -265
- package/dist/{left-nav-menu-8c8dd8f6.js → left-nav-menu-4a6c5357.js} +1 -1
- package/dist/{left-nav-menu-f4e37cd0.js → left-nav-menu-96dbffa3.js} +1 -1
- package/dist/{left-nav-menu-category-heading-5327ae32.js → left-nav-menu-category-heading-4eaaa1cb.js} +1 -1
- package/dist/{left-nav-menu-category-heading-bd361f31.js → left-nav-menu-category-heading-8c2b8ed1.js} +1 -1
- package/dist/{left-nav-menu-item-0e1fd732.js → left-nav-menu-item-2919662e.js} +1 -1
- package/dist/{left-nav-menu-item-57370ce4.js → left-nav-menu-item-e3cb7a75.js} +1 -1
- package/dist/{left-nav-menu-section-87419045.js → left-nav-menu-section-3f725e26.js} +1 -1
- package/dist/{left-nav-menu-section-c8f7f7b2.js → left-nav-menu-section-ee8222d1.js} +1 -1
- package/dist/{left-nav-overlay-24894419.js → left-nav-overlay-69df9fd0.js} +1 -1
- package/dist/{left-nav-overlay-dfd13a09.js → left-nav-overlay-eb67d1de.js} +1 -1
- package/dist/{megamenu-category-group-f8e3a37e.js → megamenu-category-group-3f2bfe7c.js} +1 -1
- package/dist/{megamenu-category-group-f1604a05.js → megamenu-category-group-6c76c126.js} +1 -1
- package/dist/{megamenu-category-group-copy-27038d51.js → megamenu-category-group-copy-2f09fb89.js} +1 -1
- package/dist/{megamenu-category-group-copy-32dbffb9.js → megamenu-category-group-copy-62f21ae2.js} +1 -1
- package/dist/{megamenu-category-heading-217fdbb3.js → megamenu-category-heading-32e44d96.js} +1 -1
- package/dist/{megamenu-category-heading-7329423a.js → megamenu-category-heading-478cfb1a.js} +1 -1
- package/dist/{megamenu-category-link-8eb1e240.js → megamenu-category-link-05dee472.js} +1 -1
- package/dist/{megamenu-category-link-b50a0ba1.js → megamenu-category-link-82d0de27.js} +1 -1
- package/dist/{megamenu-category-link-group-cb65ec0f.js → megamenu-category-link-group-8099bca4.js} +1 -1
- package/dist/{megamenu-category-link-group-29472273.js → megamenu-category-link-group-8e7eb5a1.js} +1 -1
- package/dist/{megamenu-left-navigation-f1a8beee.js → megamenu-left-navigation-5cea51eb.js} +1 -1
- package/dist/{megamenu-left-navigation-e1b82079.js → megamenu-left-navigation-946e6ecd.js} +1 -1
- package/dist/{megamenu-overlay-6936cfe6.js → megamenu-overlay-8b50d36d.js} +1 -1
- package/dist/{megamenu-overlay-65c1352d.js → megamenu-overlay-babb56ff.js} +1 -1
- package/dist/{megamenu-tab-1870d088.js → megamenu-tab-62d05074.js} +1 -1
- package/dist/{megamenu-tab-4a5b3184.js → megamenu-tab-8b71189a.js} +1 -1
- package/es/components/cta/video-cta-container.d.ts +1 -0
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.d.ts +1 -0
- package/es/components/pricing-table/pricing-table.css.js +1 -1
- package/es/components/video-player-v7/video-player-composite.d.ts +18 -0
- package/es/components/video-player-v7/video-player-composite.js +136 -7
- package/es/components/video-player-v7/video-player-composite.js.map +1 -1
- package/es/components/video-player-v7/video-player-container.d.ts +20 -0
- package/es/components/video-player-v7/video-player-container.js +63 -10
- package/es/components/video-player-v7/video-player-container.js.map +1 -1
- package/es/icons/IBM-8bar-logo--h65-white.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/KalturaPlayer.js +192 -19
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/KalturaPlayer.js +192 -19
- package/package.json +5 -5
package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/KalturaPlayer.js
CHANGED
|
@@ -81,9 +81,19 @@ var _ibmScriptUrl = function _ibmScriptUrl() {
|
|
|
81
81
|
*/
|
|
82
82
|
function _loadScript() {
|
|
83
83
|
var environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _ibmEnvironment;
|
|
84
|
+
// loader.js uses top-level const/let declarations and cannot be safely re-injected
|
|
85
|
+
// into the same page — doing so throws "SyntaxError: Identifier already declared".
|
|
86
|
+
// If a script tag for this URL already exists in the DOM, skip injection and rely
|
|
87
|
+
// on the existing execution to eventually set IBM.Mediacenter.player. We still set
|
|
88
|
+
// the flag to true so _scriptReady stays in polling mode.
|
|
89
|
+
var loaderUrl = _ibmScriptUrl(environment);
|
|
90
|
+
if (document.querySelector("script[src=\"".concat(loaderUrl, "\"]"))) {
|
|
91
|
+
_windowOrGlobal.default._ibmKalturaScriptLoading = true;
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
84
94
|
_windowOrGlobal.default._ibmKalturaScriptLoading = true;
|
|
85
95
|
var script = document.createElement('script');
|
|
86
|
-
script.src =
|
|
96
|
+
script.src = loaderUrl;
|
|
87
97
|
script.async = true;
|
|
88
98
|
document.body.appendChild(script);
|
|
89
99
|
}
|
|
@@ -96,6 +106,18 @@ function _loadScript() {
|
|
|
96
106
|
*/
|
|
97
107
|
var _timeoutRetries = 50;
|
|
98
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Milliseconds to wait for IBM.Mediacenter.player.embed() to resolve before
|
|
111
|
+
* treating it as a missed-event hang. On cached page loads, loader.js's
|
|
112
|
+
* player-plugin.js can fire its ready event before embed() registers its
|
|
113
|
+
* listener, leaving the returned Promise pending indefinitely. If that
|
|
114
|
+
* happens we reset the loader state and retry from scratch.
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @private
|
|
118
|
+
*/
|
|
119
|
+
var _embedTimeoutMs = 8000;
|
|
120
|
+
|
|
99
121
|
/**
|
|
100
122
|
* Tracks the script loading status. Stored on `root` (window) so the value
|
|
101
123
|
* persists when this module is executed more than once in the same page
|
|
@@ -116,10 +138,69 @@ if (_windowOrGlobal.default._ibmKalturaScriptLoading === undefined) {
|
|
|
116
138
|
* not reliably support simultaneous calls for the same entryId, so we chain
|
|
117
139
|
* each call onto the previous one to ensure they run sequentially.
|
|
118
140
|
*
|
|
141
|
+
* Stored on `root` (window) so the value persists when this module is executed
|
|
142
|
+
* more than once in the same page (e.g. once as an async page script and again
|
|
143
|
+
* as a deferred Adobe Target Experience Fragment script). Without this, a second
|
|
144
|
+
* execution resets the queue to Promise.resolve(), breaking serialization and
|
|
145
|
+
* allowing simultaneous embed() calls that hang indefinitely.
|
|
146
|
+
*
|
|
119
147
|
* @type {Promise<any>}
|
|
120
148
|
* @private
|
|
121
149
|
*/
|
|
122
|
-
|
|
150
|
+
if (_windowOrGlobal.default._ibmKalturaEmbedQueue === undefined) {
|
|
151
|
+
_windowOrGlobal.default._ibmKalturaEmbedQueue = Promise.resolve();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Installs a one-time Object.defineProperty setter on root.IBM.Mediacenter.player
|
|
156
|
+
* so that resolve() is called SYNCHRONOUSLY the instant loader.js assigns the
|
|
157
|
+
* player object — before player-plugin.js can fire its ready event. This closes
|
|
158
|
+
* the ~100 ms gap that the polling fallback leaves between the assignment and
|
|
159
|
+
* the first poll tick, which was causing embed() to miss the ready event (Bug 2).
|
|
160
|
+
*
|
|
161
|
+
* Falls back to the polling loop (_scriptReady) if defineProperty is not available
|
|
162
|
+
* or if IBM.Mediacenter has already been replaced after the trap was installed.
|
|
163
|
+
*
|
|
164
|
+
* @param {Function} resolve Resolve function
|
|
165
|
+
* @private
|
|
166
|
+
*/
|
|
167
|
+
function _trapPlayerReady(resolve) {
|
|
168
|
+
var _root$IBM, _root$IBM2, _root$IBM3, _root$IBM3$Mediacente;
|
|
169
|
+
// If the player is already set, resolve immediately.
|
|
170
|
+
if (_windowOrGlobal.default !== null && _windowOrGlobal.default !== void 0 && (_root$IBM = _windowOrGlobal.default.IBM) !== null && _root$IBM !== void 0 && (_root$IBM = _root$IBM.Mediacenter) !== null && _root$IBM !== void 0 && _root$IBM.player) {
|
|
171
|
+
_windowOrGlobal.default._ibmKalturaScriptLoading = false;
|
|
172
|
+
resolve();
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Ensure the IBM.Mediacenter path exists so we have an object to trap.
|
|
177
|
+
(_root$IBM2 = _windowOrGlobal.default.IBM) !== null && _root$IBM2 !== void 0 ? _root$IBM2 : _windowOrGlobal.default.IBM = {};
|
|
178
|
+
(_root$IBM3$Mediacente = (_root$IBM3 = _windowOrGlobal.default.IBM).Mediacenter) !== null && _root$IBM3$Mediacente !== void 0 ? _root$IBM3$Mediacente : _root$IBM3.Mediacenter = {};
|
|
179
|
+
var mc = _windowOrGlobal.default.IBM.Mediacenter;
|
|
180
|
+
var trapped = false;
|
|
181
|
+
try {
|
|
182
|
+
Object.defineProperty(mc, 'player', {
|
|
183
|
+
configurable: true,
|
|
184
|
+
enumerable: true,
|
|
185
|
+
set: function set(value) {
|
|
186
|
+
// Restore as a plain writable property before anything else runs.
|
|
187
|
+
Object.defineProperty(mc, 'player', {
|
|
188
|
+
configurable: true,
|
|
189
|
+
enumerable: true,
|
|
190
|
+
writable: true,
|
|
191
|
+
value: value
|
|
192
|
+
});
|
|
193
|
+
if (!trapped) {
|
|
194
|
+
trapped = true;
|
|
195
|
+
_windowOrGlobal.default._ibmKalturaScriptLoading = false;
|
|
196
|
+
resolve();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
} catch (_e) {
|
|
201
|
+
// defineProperty not supported in this environment — fall through to polling.
|
|
202
|
+
}
|
|
203
|
+
}
|
|
123
204
|
|
|
124
205
|
/**
|
|
125
206
|
* Timeout loop to check script state is the _scriptLoaded state or _scriptLoading state
|
|
@@ -131,13 +212,13 @@ var _embedQueue = Promise.resolve();
|
|
|
131
212
|
* @private
|
|
132
213
|
*/
|
|
133
214
|
function _scriptReady(resolve, reject) {
|
|
134
|
-
var _root$
|
|
215
|
+
var _root$IBM4;
|
|
135
216
|
var environment = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _ibmEnvironment;
|
|
136
217
|
var attempt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
137
218
|
/**
|
|
138
219
|
* @param {object} root?.IBM.Mediacenter.player if exists then resolve
|
|
139
220
|
*/
|
|
140
|
-
if (_windowOrGlobal.default !== null && _windowOrGlobal.default !== void 0 && (_root$
|
|
221
|
+
if (_windowOrGlobal.default !== null && _windowOrGlobal.default !== void 0 && (_root$IBM4 = _windowOrGlobal.default.IBM) !== null && _root$IBM4 !== void 0 && (_root$IBM4 = _root$IBM4.Mediacenter) !== null && _root$IBM4 !== void 0 && _root$IBM4.player) {
|
|
141
222
|
_windowOrGlobal.default._ibmKalturaScriptLoading = false;
|
|
142
223
|
resolve();
|
|
143
224
|
} else if (_windowOrGlobal.default._ibmKalturaScriptLoading) {
|
|
@@ -149,8 +230,19 @@ function _scriptReady(resolve, reject) {
|
|
|
149
230
|
reject();
|
|
150
231
|
}
|
|
151
232
|
} else {
|
|
233
|
+
// Install the defineProperty trap BEFORE injecting loader.js so we catch
|
|
234
|
+
// the player assignment synchronously when loader.js sets IBM.Mediacenter.player.
|
|
235
|
+
_trapPlayerReady(resolve, reject);
|
|
152
236
|
_loadScript(environment);
|
|
153
|
-
|
|
237
|
+
// Also poll as a backstop: if IBM.Mediacenter gets replaced wholesale instead
|
|
238
|
+
// of mutated in place, the trap above is orphaned and would never fire.
|
|
239
|
+
if (attempt < _timeoutRetries) {
|
|
240
|
+
setTimeout(function () {
|
|
241
|
+
_scriptReady(resolve, reject, environment, attempt + 1);
|
|
242
|
+
}, 100);
|
|
243
|
+
} else {
|
|
244
|
+
reject();
|
|
245
|
+
}
|
|
154
246
|
}
|
|
155
247
|
}
|
|
156
248
|
|
|
@@ -208,7 +300,7 @@ var KalturaPlayerAPIV7 = /*#__PURE__*/function () {
|
|
|
208
300
|
}, {
|
|
209
301
|
key: "getThumbnailUrl",
|
|
210
302
|
value: function getThumbnailUrl(_ref6) {
|
|
211
|
-
var _root$
|
|
303
|
+
var _root$IBM5;
|
|
212
304
|
var _ref6$mediaId = _ref6.mediaId,
|
|
213
305
|
mediaId = _ref6$mediaId === void 0 ? '' : _ref6$mediaId,
|
|
214
306
|
_ref6$height = _ref6.height,
|
|
@@ -217,7 +309,7 @@ var KalturaPlayerAPIV7 = /*#__PURE__*/function () {
|
|
|
217
309
|
width = _ref6$width === void 0 ? 0 : _ref6$width,
|
|
218
310
|
_ref6$partnerId = _ref6.partnerId,
|
|
219
311
|
partnerId = _ref6$partnerId === void 0 ? _partnerId : _ref6$partnerId;
|
|
220
|
-
return (_windowOrGlobal.default === null || _windowOrGlobal.default === void 0 || (_root$
|
|
312
|
+
return (_windowOrGlobal.default === null || _windowOrGlobal.default === void 0 || (_root$IBM5 = _windowOrGlobal.default.IBM) === null || _root$IBM5 === void 0 || (_root$IBM5 = _root$IBM5.Mediacenter) === null || _root$IBM5 === void 0 || (_root$IBM5 = _root$IBM5.player) === null || _root$IBM5 === void 0 || (_root$IBM5 = _root$IBM5.api) === null || _root$IBM5 === void 0 ? void 0 : _root$IBM5.getThumbnail(partnerId, mediaId, width, height)) || '';
|
|
221
313
|
}
|
|
222
314
|
|
|
223
315
|
/**
|
|
@@ -248,8 +340,8 @@ var KalturaPlayerAPIV7 = /*#__PURE__*/function () {
|
|
|
248
340
|
partnerId = _args.length > 1 && _args[1] !== undefined ? _args[1] : _partnerId;
|
|
249
341
|
_context.next = 1;
|
|
250
342
|
return this.checkScript().then(function () {
|
|
251
|
-
var _root$
|
|
252
|
-
return (_windowOrGlobal.default === null || _windowOrGlobal.default === void 0 || (_root$
|
|
343
|
+
var _root$IBM6;
|
|
344
|
+
return (_windowOrGlobal.default === null || _windowOrGlobal.default === void 0 || (_root$IBM6 = _windowOrGlobal.default.IBM) === null || _root$IBM6 === void 0 || (_root$IBM6 = _root$IBM6.Mediacenter) === null || _root$IBM6 === void 0 || (_root$IBM6 = _root$IBM6.player) === null || _root$IBM6 === void 0 || (_root$IBM6 = _root$IBM6.api) === null || _root$IBM6 === void 0 ? void 0 : _root$IBM6.getMediaProperties(partnerId, mediaId)) || {};
|
|
253
345
|
});
|
|
254
346
|
case 1:
|
|
255
347
|
return _context.abrupt("return", _context.sent);
|
|
@@ -302,14 +394,15 @@ var KalturaPlayerAPIV7 = /*#__PURE__*/function () {
|
|
|
302
394
|
return this.checkScript().then(function () {
|
|
303
395
|
var legacyPromiseKWidget = /*#__PURE__*/function () {
|
|
304
396
|
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
305
|
-
var _configuration$player, _ibmEnvironments$conf, _configuration$
|
|
306
|
-
var playerType, playerEnvironment, playerUiConfId, playerConfiguration, isCustomCreated, newVideoDiv, kalturaPlayer, previousVideoDiv;
|
|
397
|
+
var _configuration$player, _configuration$player2, _ibmEnvironments$conf, _configuration$player3;
|
|
398
|
+
var playerType, envKey, playerEnvironment, playerUiConfId, playerConfiguration, isCustomCreated, newVideoDiv, kalturaPlayer, loaderUrl, loaderAlreadyInjected, _root$IBM7, previousVideoDiv, _t, _t2;
|
|
307
399
|
return _regenerator.default.wrap(function (_context2) {
|
|
308
400
|
while (1) switch (_context2.prev = _context2.next) {
|
|
309
401
|
case 0:
|
|
310
402
|
playerType = (_configuration$player = configuration === null || configuration === void 0 ? void 0 : configuration.playerType) !== null && _configuration$player !== void 0 ? _configuration$player : 'VIDEO';
|
|
403
|
+
envKey = (_configuration$player2 = configuration.playerEnvironment) !== null && _configuration$player2 !== void 0 ? _configuration$player2 : _ibmEnvironment;
|
|
311
404
|
playerEnvironment = (_ibmEnvironments$conf = _ibmEnvironments[configuration.playerEnvironment]) !== null && _ibmEnvironments$conf !== void 0 ? _ibmEnvironments$conf : _ibmEnvironments[_ibmEnvironment];
|
|
312
|
-
playerUiConfId = (_configuration$
|
|
405
|
+
playerUiConfId = (_configuration$player3 = configuration.playerUiConfId) !== null && _configuration$player3 !== void 0 ? _configuration$player3 : _uiConfIds[playerType];
|
|
313
406
|
playerConfiguration = _objectSpread({
|
|
314
407
|
playerType: playerType,
|
|
315
408
|
autoPlay: true,
|
|
@@ -340,32 +433,112 @@ var KalturaPlayerAPIV7 = /*#__PURE__*/function () {
|
|
|
340
433
|
}
|
|
341
434
|
|
|
342
435
|
/**
|
|
343
|
-
* Embed the player and execute custom callback
|
|
436
|
+
* Embed the player and execute custom callback.
|
|
437
|
+
*
|
|
438
|
+
* Wraps embed() with a timeout guard: on cached page loads,
|
|
439
|
+
* loader.js's player-plugin.js may fire its ready event before
|
|
440
|
+
* embed() registers its listener, leaving the Promise pending
|
|
441
|
+
* indefinitely. If the timeout fires we reset the loader state so
|
|
442
|
+
* _scriptReady() re-injects loader.js, giving the plugin a fresh
|
|
443
|
+
* chance to fire its event after the listener is in place.
|
|
344
444
|
*/
|
|
345
|
-
|
|
346
|
-
|
|
445
|
+
// If the target element was removed from the DOM before we get here
|
|
446
|
+
// (e.g. Adobe Target replaced the mbox while embed() was queued),
|
|
447
|
+
// skip the embed entirely so we don't block _embedQueue indefinitely.
|
|
448
|
+
if (document.getElementById(targetId)) {
|
|
449
|
+
_context2.next = 1;
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
return _context2.abrupt("return", null);
|
|
347
453
|
case 1:
|
|
454
|
+
_context2.prev = 1;
|
|
455
|
+
_context2.next = 2;
|
|
456
|
+
return Promise.race([_windowOrGlobal.default.IBM.Mediacenter.player.embed(playerConfiguration), new Promise(function (_, reject) {
|
|
457
|
+
return setTimeout(function () {
|
|
458
|
+
return reject(new Error('ibm_embed_timeout'));
|
|
459
|
+
}, _embedTimeoutMs);
|
|
460
|
+
})]);
|
|
461
|
+
case 2:
|
|
462
|
+
kalturaPlayer = _context2.sent;
|
|
463
|
+
_context2.next = 10;
|
|
464
|
+
break;
|
|
465
|
+
case 3:
|
|
466
|
+
_context2.prev = 3;
|
|
467
|
+
_t = _context2["catch"](1);
|
|
468
|
+
if (!((_t === null || _t === void 0 ? void 0 : _t.message) !== 'ibm_embed_timeout')) {
|
|
469
|
+
_context2.next = 4;
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
throw _t;
|
|
473
|
+
case 4:
|
|
474
|
+
// Only perform a full reset (delete player, re-inject loader.js) when
|
|
475
|
+
// the loader has already finished (_ibmKalturaScriptLoading === false)
|
|
476
|
+
// AND loader.js is not yet in the DOM (so re-injection is safe).
|
|
477
|
+
// loader.js uses top-level const/let declarations and crashes with
|
|
478
|
+
// "SyntaxError: Identifier already declared" on a second injection, so
|
|
479
|
+
// we skip the delete+reinject path when it's already present and instead
|
|
480
|
+
// rely on polling to detect when IBM.Mediacenter.player becomes available.
|
|
481
|
+
loaderUrl = _ibmScriptUrl(envKey);
|
|
482
|
+
loaderAlreadyInjected = !!document.querySelector("script[src=\"".concat(loaderUrl, "\"]"));
|
|
483
|
+
if (_windowOrGlobal.default._ibmKalturaScriptLoading === false && !loaderAlreadyInjected) {
|
|
484
|
+
_windowOrGlobal.default._ibmKalturaScriptLoading = undefined;
|
|
485
|
+
if ((_root$IBM7 = _windowOrGlobal.default.IBM) !== null && _root$IBM7 !== void 0 && _root$IBM7.Mediacenter) {
|
|
486
|
+
delete _windowOrGlobal.default.IBM.Mediacenter;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
_context2.next = 5;
|
|
490
|
+
return new Promise(function (res, rej) {
|
|
491
|
+
return _scriptReady(res, rej, envKey);
|
|
492
|
+
});
|
|
493
|
+
case 5:
|
|
494
|
+
if (document.getElementById(targetId)) {
|
|
495
|
+
_context2.next = 6;
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
return _context2.abrupt("return", null);
|
|
499
|
+
case 6:
|
|
500
|
+
_context2.prev = 6;
|
|
501
|
+
_context2.next = 7;
|
|
502
|
+
return Promise.race([_windowOrGlobal.default.IBM.Mediacenter.player.embed(playerConfiguration), new Promise(function (_, reject) {
|
|
503
|
+
return setTimeout(function () {
|
|
504
|
+
return reject(new Error('ibm_embed_timeout_retry'));
|
|
505
|
+
}, _embedTimeoutMs);
|
|
506
|
+
})]);
|
|
507
|
+
case 7:
|
|
348
508
|
kalturaPlayer = _context2.sent;
|
|
509
|
+
_context2.next = 10;
|
|
510
|
+
break;
|
|
511
|
+
case 8:
|
|
512
|
+
_context2.prev = 8;
|
|
513
|
+
_t2 = _context2["catch"](6);
|
|
514
|
+
if (!((_t2 === null || _t2 === void 0 ? void 0 : _t2.message) !== 'ibm_embed_timeout_retry')) {
|
|
515
|
+
_context2.next = 9;
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
throw _t2;
|
|
519
|
+
case 9:
|
|
520
|
+
return _context2.abrupt("return", null);
|
|
521
|
+
case 10:
|
|
349
522
|
customReadyCallback(kalturaPlayer);
|
|
350
523
|
if (isCustomCreated) {
|
|
351
524
|
previousVideoDiv = document.querySelector('cds-tabs-extended-media').shadowRoot.querySelector(".bx--accordion__item--active cds-video-player").lastChild;
|
|
352
525
|
previousVideoDiv.parentElement.appendChild(document.getElementById(targetId));
|
|
353
526
|
}
|
|
354
527
|
return _context2.abrupt("return", kalturaPlayer);
|
|
355
|
-
case
|
|
528
|
+
case 11:
|
|
356
529
|
case "end":
|
|
357
530
|
return _context2.stop();
|
|
358
531
|
}
|
|
359
|
-
}, _callee2);
|
|
532
|
+
}, _callee2, null, [[1, 3], [6, 8]]);
|
|
360
533
|
}));
|
|
361
534
|
return function legacyPromiseKWidget() {
|
|
362
535
|
return _ref7.apply(this, arguments);
|
|
363
536
|
};
|
|
364
537
|
}();
|
|
365
|
-
|
|
538
|
+
_windowOrGlobal.default._ibmKalturaEmbedQueue = _windowOrGlobal.default._ibmKalturaEmbedQueue.catch(function () {}).then(function () {
|
|
366
539
|
return legacyPromiseKWidget();
|
|
367
540
|
});
|
|
368
|
-
return
|
|
541
|
+
return _windowOrGlobal.default._ibmKalturaEmbedQueue;
|
|
369
542
|
});
|
|
370
543
|
case 1:
|
|
371
544
|
return _context3.abrupt("return", _context3.sent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibmdotcom-web-components",
|
|
3
|
-
"version": "2.55.
|
|
3
|
+
"version": "2.55.3",
|
|
4
4
|
"description": "Carbon for IBM.com Web Components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"cypress:verify": "cypress verify"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@carbon/ibmdotcom-services": "2.52.
|
|
97
|
-
"@carbon/ibmdotcom-styles": "2.52.
|
|
98
|
-
"@carbon/ibmdotcom-utilities": "2.52.
|
|
96
|
+
"@carbon/ibmdotcom-services": "2.52.3",
|
|
97
|
+
"@carbon/ibmdotcom-styles": "2.52.3",
|
|
98
|
+
"@carbon/ibmdotcom-utilities": "2.52.3",
|
|
99
99
|
"@carbon/layout": "11.52.0",
|
|
100
100
|
"@carbon/motion": "11.45.0",
|
|
101
101
|
"@carbon/styles": "1.65.0",
|
|
@@ -244,5 +244,5 @@
|
|
|
244
244
|
"web-component-analyzer": "1.2.0-next.0",
|
|
245
245
|
"webpack": "^4.46.0"
|
|
246
246
|
},
|
|
247
|
-
"gitHead": "
|
|
247
|
+
"gitHead": "ac28299ca2d08cbe60fdeb0f9eb4708122deabdb"
|
|
248
248
|
}
|