@vonage/vivid 5.3.0 → 5.5.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.
Files changed (263) hide show
  1. package/accordion-item/definition.js +1 -1
  2. package/alert/definition.cjs +1 -1
  3. package/alert/definition.js +2 -2
  4. package/badge/definition.js +1 -1
  5. package/banner/definition.js +1 -1
  6. package/bundled/base-color-picker.cjs +18 -13
  7. package/bundled/base-color-picker.js +98 -81
  8. package/bundled/calendar-picker.template.cjs +7 -7
  9. package/bundled/calendar-picker.template.js +102 -102
  10. package/bundled/char-count.cjs +1 -1
  11. package/bundled/char-count.js +1 -1
  12. package/bundled/definition10.cjs +1 -1
  13. package/bundled/definition10.js +2 -2
  14. package/bundled/definition11.cjs +12 -19
  15. package/bundled/definition11.js +87 -66
  16. package/bundled/definition12.cjs +19 -10
  17. package/bundled/definition12.js +217 -36
  18. package/bundled/definition13.cjs +10 -1
  19. package/bundled/definition13.js +38 -14
  20. package/bundled/definition14.cjs +1 -5
  21. package/bundled/definition14.js +15 -24
  22. package/bundled/definition15.cjs +5 -30
  23. package/bundled/definition15.js +22 -73
  24. package/bundled/definition16.cjs +30 -19
  25. package/bundled/definition16.js +74 -97
  26. package/bundled/definition17.cjs +19 -13
  27. package/bundled/definition17.js +83 -117
  28. package/bundled/definition18.cjs +13 -12
  29. package/bundled/definition18.js +114 -71
  30. package/bundled/definition19.cjs +26 -27
  31. package/bundled/definition19.js +171 -180
  32. package/bundled/definition2.cjs +9 -9
  33. package/bundled/definition2.js +84 -129
  34. package/bundled/definition3.cjs +1 -1
  35. package/bundled/definition3.js +1 -1
  36. package/bundled/definition6.cjs +3 -3
  37. package/bundled/definition6.js +19 -19
  38. package/bundled/definition9.cjs +5 -5
  39. package/bundled/definition9.js +394 -392
  40. package/bundled/listbox.cjs +1 -1
  41. package/bundled/listbox.js +82 -102
  42. package/bundled/localized.cjs +1 -1
  43. package/bundled/localized.js +48 -31
  44. package/bundled/mixins.cjs +1 -1
  45. package/bundled/mixins.js +1 -1
  46. package/bundled/picker-field.template.cjs +14 -14
  47. package/bundled/picker-field.template.js +35 -56
  48. package/bundled/time-selection-picker.template.cjs +12 -12
  49. package/bundled/time-selection-picker.template.js +13 -12
  50. package/bundled/trapped-focus.cjs +1 -0
  51. package/bundled/trapped-focus.js +26 -0
  52. package/bundled/vivid-element.cjs +5 -1
  53. package/bundled/vivid-element.js +401 -358
  54. package/calendar/index.cjs +13 -13
  55. package/calendar/index.js +171 -143
  56. package/card/definition.cjs +1 -1
  57. package/card/definition.js +1 -1
  58. package/color-picker/definition.cjs +209 -113
  59. package/color-picker/definition.js +209 -113
  60. package/color-picker/index.cjs +104 -75
  61. package/color-picker/index.js +412 -326
  62. package/combobox/definition.cjs +7 -27
  63. package/combobox/definition.js +8 -28
  64. package/combobox/index.cjs +6 -6
  65. package/combobox/index.js +57 -71
  66. package/contextual-help/index.cjs +1 -1
  67. package/contextual-help/index.js +1 -1
  68. package/custom-elements.json +354 -2
  69. package/data-grid/index.cjs +1 -1
  70. package/data-grid/index.js +1 -1
  71. package/date-picker/definition.cjs +1 -1
  72. package/date-picker/definition.js +1 -1
  73. package/date-picker/index.cjs +1 -1
  74. package/date-picker/index.js +2 -2
  75. package/date-range-picker/definition.cjs +1 -1
  76. package/date-range-picker/definition.js +1 -1
  77. package/date-range-picker/index.cjs +1 -1
  78. package/date-range-picker/index.js +2 -2
  79. package/date-time-picker/definition.cjs +1 -1
  80. package/date-time-picker/definition.js +1 -1
  81. package/date-time-picker/index.cjs +1 -1
  82. package/date-time-picker/index.js +2 -2
  83. package/dial-pad/definition.cjs +139 -0
  84. package/dial-pad/definition.js +139 -0
  85. package/dial-pad/index.cjs +27 -20
  86. package/dial-pad/index.js +177 -100
  87. package/dialog/definition.cjs +2 -2
  88. package/dialog/definition.js +2 -2
  89. package/dialog/index.cjs +7 -7
  90. package/dialog/index.js +6 -6
  91. package/divider/index.cjs +1 -1
  92. package/divider/index.js +1 -1
  93. package/elevation/definition.cjs +1 -1
  94. package/elevation/definition.js +1 -1
  95. package/fab/definition.js +1 -1
  96. package/header/definition.cjs +1 -1
  97. package/header/definition.js +1 -1
  98. package/icon/definition.cjs +56 -22
  99. package/icon/definition.js +56 -22
  100. package/index.cjs +3 -4
  101. package/index.js +2 -3
  102. package/lib/accordion/accordion.d.ts +1 -1
  103. package/lib/accordion/definition.d.ts +1 -1
  104. package/lib/audio-player/audio-player.d.ts +1 -1
  105. package/lib/color-picker/color-picker.d.ts +390 -12
  106. package/lib/color-picker/locale.d.ts +4 -0
  107. package/lib/combobox/combobox.d.ts +1 -0
  108. package/lib/combobox/combobox.options.d.ts +1 -1
  109. package/lib/date-picker/date-picker.d.ts +38 -38
  110. package/lib/date-range-picker/date-range-picker.d.ts +20 -20
  111. package/lib/date-time-picker/date-time-picker.d.ts +40 -40
  112. package/lib/dial-pad/dial-pad.d.ts +1 -0
  113. package/lib/divider/divider.d.ts +1 -1
  114. package/lib/icon/icon.d.ts +1 -0
  115. package/lib/menu-item/menu-item-role.d.ts +1 -1
  116. package/lib/popup/popup.d.ts +1 -1
  117. package/lib/searchable-select/locale.d.ts +4 -0
  118. package/lib/searchable-select/searchable-select.d.ts +3 -0
  119. package/lib/select/select.d.ts +3 -1
  120. package/lib/simple-color-picker/simple-color-picker.d.ts +2 -1
  121. package/lib/slider/slider.d.ts +1 -1
  122. package/lib/tabs/tabs.d.ts +2 -2
  123. package/lib/text-area/text-area.d.ts +1 -1
  124. package/lib/text-field/text-field.d.ts +1 -1
  125. package/lib/time-picker/time-picker.d.ts +20 -20
  126. package/locales/de-DE.cjs +20 -3
  127. package/locales/de-DE.js +20 -3
  128. package/locales/en-GB.cjs +21 -4
  129. package/locales/en-GB.js +21 -4
  130. package/locales/en-US.cjs +21 -4
  131. package/locales/en-US.js +21 -4
  132. package/locales/ja-JP.cjs +20 -3
  133. package/locales/ja-JP.js +20 -3
  134. package/locales/zh-CN.cjs +19 -2
  135. package/locales/zh-CN.js +19 -2
  136. package/menu/definition.cjs +4 -4
  137. package/menu/definition.js +4 -4
  138. package/nav-disclosure/definition.js +1 -1
  139. package/nav-item/definition.js +1 -1
  140. package/note/definition.js +1 -1
  141. package/number-field/definition.js +1 -1
  142. package/number-field/index.cjs +1 -1
  143. package/number-field/index.js +3 -3
  144. package/option/definition.cjs +6 -77
  145. package/option/definition.js +3 -78
  146. package/option/index.cjs +1 -1
  147. package/option/index.js +1 -1
  148. package/package.json +31 -5
  149. package/popup/definition.cjs +2 -2
  150. package/popup/definition.js +2 -2
  151. package/progress-ring/index.cjs +1 -1
  152. package/progress-ring/index.js +1 -1
  153. package/radio/index.cjs +1 -1
  154. package/radio/index.js +1 -1
  155. package/radio-group/index.cjs +1 -1
  156. package/radio-group/index.js +1 -1
  157. package/range-slider/definition.cjs +1 -1
  158. package/range-slider/definition.js +1 -1
  159. package/rich-text-editor/definition.cjs +2 -3
  160. package/rich-text-editor/definition.js +1 -2
  161. package/rich-text-editor/index.cjs +27 -27
  162. package/rich-text-editor/index.js +1209 -1199
  163. package/searchable-select/definition.cjs +103 -11
  164. package/searchable-select/definition.js +103 -11
  165. package/searchable-select/index.cjs +81 -69
  166. package/searchable-select/index.js +359 -273
  167. package/select/definition.cjs +30 -44
  168. package/select/definition.js +30 -44
  169. package/selectable-box/definition.cjs +1 -1
  170. package/selectable-box/definition.js +1 -1
  171. package/selectable-box/index.cjs +1 -1
  172. package/selectable-box/index.js +2 -2
  173. package/shared/aria/aria-mixin.d.ts +1 -1
  174. package/shared/color-picker/base-color-picker.d.ts +2 -1
  175. package/shared/foundation/listbox/listbox.d.ts +4 -0
  176. package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
  177. package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
  178. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
  179. package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
  180. package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
  181. package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
  182. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
  183. package/simple-color-picker/definition.cjs +9 -7
  184. package/simple-color-picker/definition.js +9 -7
  185. package/simple-color-picker/index.cjs +6 -6
  186. package/simple-color-picker/index.js +41 -39
  187. package/slider/definition.cjs +1 -1
  188. package/slider/definition.js +1 -1
  189. package/split-button/definition.js +1 -1
  190. package/styles/core/all.css +1 -1
  191. package/styles/core/theme.css +1 -1
  192. package/styles/core/typography.css +1 -1
  193. package/styles/tokens/theme-dark.css +4 -4
  194. package/styles/tokens/theme-light.css +4 -4
  195. package/styles/tokens/vivid-2-compat.css +1 -1
  196. package/tab/definition.js +1 -1
  197. package/tag/definition.cjs +34 -14
  198. package/tag/definition.js +35 -15
  199. package/tag/index.cjs +25 -12
  200. package/tag/index.js +64 -47
  201. package/tag-group/definition.cjs +1 -2
  202. package/tag-group/definition.js +1 -2
  203. package/tag-group/index.cjs +1 -1
  204. package/tag-group/index.js +11 -12
  205. package/text-area/index.cjs +1 -1
  206. package/text-area/index.js +2 -2
  207. package/text-field/definition.js +1 -1
  208. package/time-picker/definition.cjs +1 -1
  209. package/time-picker/definition.js +1 -1
  210. package/time-picker/index.cjs +1 -1
  211. package/time-picker/index.js +1 -1
  212. package/toggletip/definition.cjs +1 -1
  213. package/toggletip/definition.js +1 -1
  214. package/toggletip/index.cjs +1 -1
  215. package/toggletip/index.js +1 -1
  216. package/tooltip/definition.cjs +3 -3
  217. package/tooltip/definition.js +3 -3
  218. package/tooltip/index.cjs +1 -1
  219. package/tooltip/index.js +1 -1
  220. package/tree-item/definition.cjs +1 -1
  221. package/tree-item/definition.js +1 -1
  222. package/tree-view/definition.cjs +1 -1
  223. package/tree-view/definition.js +1 -1
  224. package/unbundled/affix.js +1 -1
  225. package/unbundled/base-color-picker.cjs +36 -18
  226. package/unbundled/base-color-picker.js +36 -18
  227. package/unbundled/calendar-picker.template.cjs +2 -2
  228. package/unbundled/calendar-picker.template.js +2 -2
  229. package/unbundled/definition.js +1 -1
  230. package/unbundled/definition2.js +1 -1
  231. package/unbundled/definition3.cjs +222 -141
  232. package/unbundled/definition3.js +220 -139
  233. package/unbundled/definition4.cjs +145 -235
  234. package/unbundled/definition4.js +143 -233
  235. package/unbundled/definition5.cjs +269 -27
  236. package/unbundled/definition5.js +267 -26
  237. package/unbundled/definition6.cjs +56 -0
  238. package/unbundled/definition6.js +52 -0
  239. package/unbundled/listbox.cjs +41 -63
  240. package/unbundled/listbox.js +39 -61
  241. package/unbundled/picker-field.template.cjs +3 -36
  242. package/unbundled/picker-field.template.js +3 -35
  243. package/unbundled/slider.template.cjs +1 -1
  244. package/unbundled/slider.template.js +1 -1
  245. package/unbundled/time-selection-picker.template.cjs +2 -1
  246. package/unbundled/time-selection-picker.template.js +2 -1
  247. package/unbundled/trapped-focus.cjs +37 -0
  248. package/unbundled/trapped-focus.js +34 -0
  249. package/unbundled/vivid-element.cjs +1 -1
  250. package/unbundled/vivid-element.js +1 -1
  251. package/video-player/definition.cjs +56 -16
  252. package/video-player/definition.js +56 -16
  253. package/video-player/index.cjs +36 -36
  254. package/video-player/index.js +2461 -2445
  255. package/visually-hidden/index.cjs +1 -1
  256. package/visually-hidden/index.js +1 -1
  257. package/vivid.api.json +285 -38
  258. package/bundled/_has.cjs +0 -1
  259. package/bundled/_has.js +0 -34
  260. package/bundled/option.cjs +0 -1
  261. package/bundled/option.js +0 -158
  262. package/unbundled/option.cjs +0 -217
  263. package/unbundled/option.js +0 -214
@@ -0,0 +1,34 @@
1
+ const ignoredEvents = /* @__PURE__ */ new WeakSet();
2
+ const ignoreEventInFocusTraps = (event) => {
3
+ ignoredEvents.add(event);
4
+ };
5
+ const TrappedFocus = (Base) => {
6
+ class TrappedFocusElement extends Base {
7
+ /**
8
+ * @returns Whether focus was trapped.
9
+ * @internal
10
+ */
11
+ _trappedFocus(event, getFocusableEls) {
12
+ if (!ignoredEvents.has(event) && event.key === "Tab") {
13
+ const focusableEls = getFocusableEls();
14
+ const firstFocusableEl = focusableEls[0];
15
+ const lastFocusableEl = focusableEls[focusableEls.length - 1];
16
+ if (event.shiftKey) {
17
+ if (this.shadowRoot.activeElement === firstFocusableEl) {
18
+ lastFocusableEl.focus();
19
+ return true;
20
+ }
21
+ } else {
22
+ if (this.shadowRoot.activeElement === lastFocusableEl) {
23
+ firstFocusableEl.focus();
24
+ return true;
25
+ }
26
+ }
27
+ }
28
+ return false;
29
+ }
30
+ }
31
+ return TrappedFocusElement;
32
+ };
33
+
34
+ export { TrappedFocus as T, ignoreEventInFocusTraps as i };
@@ -268,7 +268,7 @@ const ReplacedPropHandling = (Base) => {
268
268
 
269
269
  class VividElement extends AriaMixin(ReplacedPropHandling(fastElement.FASTElement)) {
270
270
  static {
271
- this.VIVID_VERSION = "5.3.0";
271
+ this.VIVID_VERSION = "5.5.0";
272
272
  }
273
273
  /**
274
274
  * Add data-vvd-component attribute with component name globally,
@@ -266,7 +266,7 @@ const ReplacedPropHandling = (Base) => {
266
266
 
267
267
  class VividElement extends AriaMixin(ReplacedPropHandling(FASTElement)) {
268
268
  static {
269
- this.VIVID_VERSION = "5.3.0";
269
+ this.VIVID_VERSION = "5.5.0";
270
270
  }
271
271
  /**
272
272
  * Add data-vvd-component attribute with component name globally,
@@ -6313,6 +6313,9 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
6313
6313
  }
6314
6314
  do{
6315
6315
  newFirst.parentNode = parent;
6316
+ // Update ownerDocument for each node being inserted
6317
+ var targetDoc = parent.ownerDocument || parent;
6318
+ _updateOwnerDocument(newFirst, targetDoc);
6316
6319
  }while(newFirst !== newLast && (newFirst= newFirst.nextSibling))
6317
6320
  _onUpdateChild(parent.ownerDocument||parent, parent);
6318
6321
  //console.log(parent.lastChild.nextSibling == null)
@@ -6322,6 +6325,37 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
6322
6325
  return node;
6323
6326
  }
6324
6327
 
6328
+ /**
6329
+ * Recursively updates the ownerDocument property for a node and all its descendants
6330
+ * @param {Node} node
6331
+ * @param {Document} newOwnerDocument
6332
+ * @private
6333
+ */
6334
+ function _updateOwnerDocument(node, newOwnerDocument) {
6335
+ if (node.ownerDocument === newOwnerDocument) {
6336
+ return;
6337
+ }
6338
+
6339
+ node.ownerDocument = newOwnerDocument;
6340
+
6341
+ // Update attributes if this is an element
6342
+ if (node.nodeType === ELEMENT_NODE && node.attributes) {
6343
+ for (var i = 0; i < node.attributes.length; i++) {
6344
+ var attr = node.attributes.item(i);
6345
+ if (attr) {
6346
+ attr.ownerDocument = newOwnerDocument;
6347
+ }
6348
+ }
6349
+ }
6350
+
6351
+ // Recursively update child nodes
6352
+ var child = node.firstChild;
6353
+ while (child) {
6354
+ _updateOwnerDocument(child, newOwnerDocument);
6355
+ child = child.nextSibling;
6356
+ }
6357
+ }
6358
+
6325
6359
  /**
6326
6360
  * Appends `newChild` to `parentNode`.
6327
6361
  * If `newChild` is already connected to a `parentNode` it is first removed from it.
@@ -6347,6 +6381,11 @@ function _appendSingleChild (parentNode, newChild) {
6347
6381
  }
6348
6382
  parentNode.lastChild = newChild;
6349
6383
  _onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
6384
+
6385
+ // Update ownerDocument for the new child and all its descendants
6386
+ var targetDoc = parentNode.ownerDocument || parentNode;
6387
+ _updateOwnerDocument(newChild, targetDoc);
6388
+
6350
6389
  return newChild;
6351
6390
  }
6352
6391
 
@@ -6375,7 +6414,7 @@ Document.prototype = {
6375
6414
  return newChild;
6376
6415
  }
6377
6416
  _insertBefore(this, newChild, refChild);
6378
- newChild.ownerDocument = this;
6417
+ _updateOwnerDocument(newChild, this);
6379
6418
  if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
6380
6419
  this.documentElement = newChild;
6381
6420
  }
@@ -6391,7 +6430,7 @@ Document.prototype = {
6391
6430
  replaceChild: function (newChild, oldChild) {
6392
6431
  //raises
6393
6432
  _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
6394
- newChild.ownerDocument = this;
6433
+ _updateOwnerDocument(newChild, this);
6395
6434
  if (oldChild) {
6396
6435
  this.removeChild(oldChild);
6397
6436
  }
@@ -13743,7 +13782,7 @@ var clock = {
13743
13782
 
13744
13783
  /**
13745
13784
  * @license
13746
- * Video.js 8.23.3 <http://videojs.com/>
13785
+ * Video.js 8.23.4 <http://videojs.com/>
13747
13786
  * Copyright Brightcove, Inc. <https://www.brightcove.com/>
13748
13787
  * Available under Apache License Version 2.0
13749
13788
  * <https://github.com/videojs/video.js/blob/main/LICENSE>
@@ -13754,7 +13793,7 @@ var clock = {
13754
13793
  */
13755
13794
 
13756
13795
 
13757
- var version$6 = "8.23.3";
13796
+ var version$6 = "8.23.4";
13758
13797
 
13759
13798
  /**
13760
13799
  * An Object that contains lifecycle hooks as keys which point to an array
@@ -17852,8 +17891,8 @@ class Component$1 {
17852
17891
  * Remove a child `Component` from this `Component`s list of children. Also removes
17853
17892
  * the child `Component`s element from this `Component`s element.
17854
17893
  *
17855
- * @param {Component} component
17856
- * The child `Component` to remove.
17894
+ * @param {string|Component} component
17895
+ * The name or instance of a child to remove.
17857
17896
  */
17858
17897
  removeChild(component) {
17859
17898
  if (typeof component === 'string') {
@@ -41966,7 +42005,7 @@ videojs.registerPlugin('qualityLevels', qualityLevels);
41966
42005
  // Include the version number.
41967
42006
  qualityLevels.VERSION = version$5;
41968
42007
 
41969
- /*! @name @videojs/http-streaming @version 3.17.0 @license Apache-2.0 */
42008
+ /*! @name @videojs/http-streaming @version 3.17.2 @license Apache-2.0 */
41970
42009
 
41971
42010
  /**
41972
42011
  * @file resolve-url.js - Handling how URLs are resolved and manipulated
@@ -43470,7 +43509,7 @@ const getStreamingNetworkErrorMetadata = ({
43470
43509
  } else if (request.aborted) {
43471
43510
  errorMetadata.errorType = videojs.Error.NetworkRequestAborted;
43472
43511
  } else if (request.timedout) {
43473
- errorMetadata.erroType = videojs.Error.NetworkRequestTimeout;
43512
+ errorMetadata.errorType = videojs.Error.NetworkRequestTimeout;
43474
43513
  } else if (isBadStatusOrParseFailure) {
43475
43514
  const errorType = parseFailure ? videojs.Error.NetworkBodyParserFailed : videojs.Error.NetworkBadStatus;
43476
43515
  errorMetadata.errorType = errorType;
@@ -44746,16 +44785,17 @@ class PlaylistLoader extends EventTarget$1 {
44746
44785
  */
44747
44786
 
44748
44787
  getKeyIdSet(playlist) {
44749
- if (playlist.contentProtection) {
44750
- const keyIds = new Set();
44751
- for (const keysystem in playlist.contentProtection) {
44788
+ const keyIds = new Set();
44789
+ if (!playlist || !playlist.contentProtection) {
44790
+ return keyIds;
44791
+ }
44792
+ for (const keysystem in playlist.contentProtection) {
44793
+ if (playlist.contentProtection[keysystem] && playlist.contentProtection[keysystem].attributes && playlist.contentProtection[keysystem].attributes.keyId) {
44752
44794
  const keyId = playlist.contentProtection[keysystem].attributes.keyId;
44753
- if (keyId) {
44754
- keyIds.add(keyId.toLowerCase());
44755
- }
44795
+ keyIds.add(keyId.toLowerCase());
44756
44796
  }
44757
- return keyIds;
44758
44797
  }
44798
+ return keyIds;
44759
44799
  }
44760
44800
  }
44761
44801
 
@@ -67811,7 +67851,7 @@ const initPlugin = function (player, options) {
67811
67851
  const reloadSourceOnError = function (options) {
67812
67852
  initPlugin(this, options);
67813
67853
  };
67814
- var version$4 = "3.17.0";
67854
+ var version$4 = "3.17.2";
67815
67855
  var version$3 = "7.1.0";
67816
67856
  var version$2 = "1.3.1";
67817
67857
  var version$1 = "7.2.0";
@@ -6309,6 +6309,9 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
6309
6309
  }
6310
6310
  do{
6311
6311
  newFirst.parentNode = parent;
6312
+ // Update ownerDocument for each node being inserted
6313
+ var targetDoc = parent.ownerDocument || parent;
6314
+ _updateOwnerDocument(newFirst, targetDoc);
6312
6315
  }while(newFirst !== newLast && (newFirst= newFirst.nextSibling))
6313
6316
  _onUpdateChild(parent.ownerDocument||parent, parent);
6314
6317
  //console.log(parent.lastChild.nextSibling == null)
@@ -6318,6 +6321,37 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
6318
6321
  return node;
6319
6322
  }
6320
6323
 
6324
+ /**
6325
+ * Recursively updates the ownerDocument property for a node and all its descendants
6326
+ * @param {Node} node
6327
+ * @param {Document} newOwnerDocument
6328
+ * @private
6329
+ */
6330
+ function _updateOwnerDocument(node, newOwnerDocument) {
6331
+ if (node.ownerDocument === newOwnerDocument) {
6332
+ return;
6333
+ }
6334
+
6335
+ node.ownerDocument = newOwnerDocument;
6336
+
6337
+ // Update attributes if this is an element
6338
+ if (node.nodeType === ELEMENT_NODE && node.attributes) {
6339
+ for (var i = 0; i < node.attributes.length; i++) {
6340
+ var attr = node.attributes.item(i);
6341
+ if (attr) {
6342
+ attr.ownerDocument = newOwnerDocument;
6343
+ }
6344
+ }
6345
+ }
6346
+
6347
+ // Recursively update child nodes
6348
+ var child = node.firstChild;
6349
+ while (child) {
6350
+ _updateOwnerDocument(child, newOwnerDocument);
6351
+ child = child.nextSibling;
6352
+ }
6353
+ }
6354
+
6321
6355
  /**
6322
6356
  * Appends `newChild` to `parentNode`.
6323
6357
  * If `newChild` is already connected to a `parentNode` it is first removed from it.
@@ -6343,6 +6377,11 @@ function _appendSingleChild (parentNode, newChild) {
6343
6377
  }
6344
6378
  parentNode.lastChild = newChild;
6345
6379
  _onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
6380
+
6381
+ // Update ownerDocument for the new child and all its descendants
6382
+ var targetDoc = parentNode.ownerDocument || parentNode;
6383
+ _updateOwnerDocument(newChild, targetDoc);
6384
+
6346
6385
  return newChild;
6347
6386
  }
6348
6387
 
@@ -6371,7 +6410,7 @@ Document.prototype = {
6371
6410
  return newChild;
6372
6411
  }
6373
6412
  _insertBefore(this, newChild, refChild);
6374
- newChild.ownerDocument = this;
6413
+ _updateOwnerDocument(newChild, this);
6375
6414
  if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
6376
6415
  this.documentElement = newChild;
6377
6416
  }
@@ -6387,7 +6426,7 @@ Document.prototype = {
6387
6426
  replaceChild: function (newChild, oldChild) {
6388
6427
  //raises
6389
6428
  _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
6390
- newChild.ownerDocument = this;
6429
+ _updateOwnerDocument(newChild, this);
6391
6430
  if (oldChild) {
6392
6431
  this.removeChild(oldChild);
6393
6432
  }
@@ -13739,7 +13778,7 @@ var clock = {
13739
13778
 
13740
13779
  /**
13741
13780
  * @license
13742
- * Video.js 8.23.3 <http://videojs.com/>
13781
+ * Video.js 8.23.4 <http://videojs.com/>
13743
13782
  * Copyright Brightcove, Inc. <https://www.brightcove.com/>
13744
13783
  * Available under Apache License Version 2.0
13745
13784
  * <https://github.com/videojs/video.js/blob/main/LICENSE>
@@ -13750,7 +13789,7 @@ var clock = {
13750
13789
  */
13751
13790
 
13752
13791
 
13753
- var version$6 = "8.23.3";
13792
+ var version$6 = "8.23.4";
13754
13793
 
13755
13794
  /**
13756
13795
  * An Object that contains lifecycle hooks as keys which point to an array
@@ -17848,8 +17887,8 @@ class Component$1 {
17848
17887
  * Remove a child `Component` from this `Component`s list of children. Also removes
17849
17888
  * the child `Component`s element from this `Component`s element.
17850
17889
  *
17851
- * @param {Component} component
17852
- * The child `Component` to remove.
17890
+ * @param {string|Component} component
17891
+ * The name or instance of a child to remove.
17853
17892
  */
17854
17893
  removeChild(component) {
17855
17894
  if (typeof component === 'string') {
@@ -41962,7 +42001,7 @@ videojs.registerPlugin('qualityLevels', qualityLevels);
41962
42001
  // Include the version number.
41963
42002
  qualityLevels.VERSION = version$5;
41964
42003
 
41965
- /*! @name @videojs/http-streaming @version 3.17.0 @license Apache-2.0 */
42004
+ /*! @name @videojs/http-streaming @version 3.17.2 @license Apache-2.0 */
41966
42005
 
41967
42006
  /**
41968
42007
  * @file resolve-url.js - Handling how URLs are resolved and manipulated
@@ -43466,7 +43505,7 @@ const getStreamingNetworkErrorMetadata = ({
43466
43505
  } else if (request.aborted) {
43467
43506
  errorMetadata.errorType = videojs.Error.NetworkRequestAborted;
43468
43507
  } else if (request.timedout) {
43469
- errorMetadata.erroType = videojs.Error.NetworkRequestTimeout;
43508
+ errorMetadata.errorType = videojs.Error.NetworkRequestTimeout;
43470
43509
  } else if (isBadStatusOrParseFailure) {
43471
43510
  const errorType = parseFailure ? videojs.Error.NetworkBodyParserFailed : videojs.Error.NetworkBadStatus;
43472
43511
  errorMetadata.errorType = errorType;
@@ -44742,16 +44781,17 @@ class PlaylistLoader extends EventTarget$1 {
44742
44781
  */
44743
44782
 
44744
44783
  getKeyIdSet(playlist) {
44745
- if (playlist.contentProtection) {
44746
- const keyIds = new Set();
44747
- for (const keysystem in playlist.contentProtection) {
44784
+ const keyIds = new Set();
44785
+ if (!playlist || !playlist.contentProtection) {
44786
+ return keyIds;
44787
+ }
44788
+ for (const keysystem in playlist.contentProtection) {
44789
+ if (playlist.contentProtection[keysystem] && playlist.contentProtection[keysystem].attributes && playlist.contentProtection[keysystem].attributes.keyId) {
44748
44790
  const keyId = playlist.contentProtection[keysystem].attributes.keyId;
44749
- if (keyId) {
44750
- keyIds.add(keyId.toLowerCase());
44751
- }
44791
+ keyIds.add(keyId.toLowerCase());
44752
44792
  }
44753
- return keyIds;
44754
44793
  }
44794
+ return keyIds;
44755
44795
  }
44756
44796
  }
44757
44797
 
@@ -67807,7 +67847,7 @@ const initPlugin = function (player, options) {
67807
67847
  const reloadSourceOnError = function (options) {
67808
67848
  initPlugin(this, options);
67809
67849
  };
67810
- var version$4 = "3.17.0";
67850
+ var version$4 = "3.17.2";
67811
67851
  var version$3 = "7.1.0";
67812
67852
  var version$2 = "1.3.1";
67813
67853
  var version$1 = "7.2.0";