@vonage/vivid 5.3.0 → 5.4.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 (157) 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/calendar-picker.template.cjs +7 -7
  7. package/bundled/calendar-picker.template.js +101 -101
  8. package/bundled/definition11.cjs +13 -13
  9. package/bundled/definition11.js +202 -50
  10. package/bundled/definition19.cjs +24 -25
  11. package/bundled/definition19.js +152 -164
  12. package/bundled/definition6.cjs +3 -3
  13. package/bundled/definition6.js +19 -19
  14. package/bundled/definition9.cjs +5 -5
  15. package/bundled/definition9.js +394 -392
  16. package/bundled/listbox.cjs +1 -1
  17. package/bundled/listbox.js +82 -102
  18. package/bundled/localized.cjs +1 -1
  19. package/bundled/localized.js +18 -14
  20. package/bundled/vivid-element.cjs +5 -1
  21. package/bundled/vivid-element.js +401 -358
  22. package/calendar/index.cjs +1 -1
  23. package/calendar/index.js +14 -14
  24. package/card/definition.cjs +1 -1
  25. package/card/definition.js +1 -1
  26. package/color-picker/definition.cjs +1 -1
  27. package/color-picker/definition.js +1 -1
  28. package/combobox/definition.cjs +7 -27
  29. package/combobox/definition.js +8 -28
  30. package/combobox/index.cjs +6 -6
  31. package/combobox/index.js +57 -71
  32. package/custom-elements.json +305 -2
  33. package/date-picker/definition.cjs +1 -1
  34. package/date-picker/definition.js +1 -1
  35. package/date-range-picker/definition.cjs +1 -1
  36. package/date-range-picker/definition.js +1 -1
  37. package/date-time-picker/definition.cjs +1 -1
  38. package/date-time-picker/definition.js +1 -1
  39. package/dialog/definition.cjs +2 -2
  40. package/dialog/definition.js +2 -2
  41. package/dialog/index.cjs +7 -7
  42. package/dialog/index.js +6 -6
  43. package/elevation/definition.cjs +1 -1
  44. package/elevation/definition.js +1 -1
  45. package/fab/definition.js +1 -1
  46. package/header/definition.cjs +1 -1
  47. package/header/definition.js +1 -1
  48. package/index.cjs +3 -4
  49. package/index.js +2 -3
  50. package/lib/accordion/accordion.d.ts +1 -1
  51. package/lib/accordion/definition.d.ts +1 -1
  52. package/lib/audio-player/audio-player.d.ts +1 -1
  53. package/lib/combobox/combobox.d.ts +1 -0
  54. package/lib/combobox/combobox.options.d.ts +1 -1
  55. package/lib/divider/divider.d.ts +1 -1
  56. package/lib/menu-item/menu-item-role.d.ts +1 -1
  57. package/lib/popup/popup.d.ts +1 -1
  58. package/lib/searchable-select/locale.d.ts +4 -0
  59. package/lib/searchable-select/searchable-select.d.ts +3 -0
  60. package/lib/select/select.d.ts +3 -1
  61. package/lib/slider/slider.d.ts +1 -1
  62. package/lib/tabs/tabs.d.ts +2 -2
  63. package/lib/text-area/text-area.d.ts +1 -1
  64. package/lib/text-field/text-field.d.ts +1 -1
  65. package/locales/de-DE.cjs +4 -0
  66. package/locales/de-DE.js +4 -0
  67. package/locales/en-GB.cjs +4 -0
  68. package/locales/en-GB.js +4 -0
  69. package/locales/en-US.cjs +4 -0
  70. package/locales/en-US.js +4 -0
  71. package/locales/ja-JP.cjs +4 -0
  72. package/locales/ja-JP.js +4 -0
  73. package/locales/zh-CN.cjs +4 -0
  74. package/locales/zh-CN.js +4 -0
  75. package/menu/definition.cjs +4 -4
  76. package/menu/definition.js +4 -4
  77. package/nav-disclosure/definition.js +1 -1
  78. package/nav-item/definition.js +1 -1
  79. package/note/definition.js +1 -1
  80. package/number-field/definition.js +1 -1
  81. package/option/definition.cjs +6 -77
  82. package/option/definition.js +3 -78
  83. package/package.json +31 -5
  84. package/popup/definition.cjs +2 -2
  85. package/popup/definition.js +2 -2
  86. package/range-slider/definition.cjs +1 -1
  87. package/range-slider/definition.js +1 -1
  88. package/rich-text-editor/definition.cjs +2 -3
  89. package/rich-text-editor/definition.js +1 -2
  90. package/rich-text-editor/index.cjs +27 -27
  91. package/rich-text-editor/index.js +1208 -1198
  92. package/searchable-select/definition.cjs +103 -11
  93. package/searchable-select/definition.js +103 -11
  94. package/searchable-select/index.cjs +81 -69
  95. package/searchable-select/index.js +359 -273
  96. package/select/definition.cjs +24 -41
  97. package/select/definition.js +24 -41
  98. package/selectable-box/definition.cjs +1 -1
  99. package/selectable-box/definition.js +1 -1
  100. package/selectable-box/index.cjs +1 -1
  101. package/selectable-box/index.js +1 -1
  102. package/shared/aria/aria-mixin.d.ts +1 -1
  103. package/shared/foundation/listbox/listbox.d.ts +4 -0
  104. package/simple-color-picker/definition.cjs +1 -1
  105. package/simple-color-picker/definition.js +1 -1
  106. package/slider/definition.cjs +1 -1
  107. package/slider/definition.js +1 -1
  108. package/split-button/definition.js +1 -1
  109. package/styles/core/all.css +1 -1
  110. package/styles/core/theme.css +1 -1
  111. package/styles/core/typography.css +1 -1
  112. package/styles/tokens/theme-dark.css +4 -4
  113. package/styles/tokens/theme-light.css +4 -4
  114. package/styles/tokens/vivid-2-compat.css +1 -1
  115. package/tab/definition.js +1 -1
  116. package/tag/definition.js +1 -1
  117. package/text-field/definition.js +1 -1
  118. package/time-picker/definition.cjs +1 -1
  119. package/time-picker/definition.js +1 -1
  120. package/toggletip/definition.cjs +1 -1
  121. package/toggletip/definition.js +1 -1
  122. package/tooltip/definition.cjs +1 -1
  123. package/tooltip/definition.js +1 -1
  124. package/tree-item/definition.cjs +1 -1
  125. package/tree-item/definition.js +1 -1
  126. package/tree-view/definition.cjs +1 -1
  127. package/tree-view/definition.js +1 -1
  128. package/unbundled/affix.js +1 -1
  129. package/unbundled/calendar-picker.template.cjs +1 -1
  130. package/unbundled/calendar-picker.template.js +1 -1
  131. package/unbundled/definition.js +1 -1
  132. package/unbundled/definition2.js +1 -1
  133. package/unbundled/definition3.cjs +222 -141
  134. package/unbundled/definition3.js +220 -139
  135. package/unbundled/definition4.cjs +145 -235
  136. package/unbundled/definition4.js +143 -233
  137. package/unbundled/definition5.cjs +269 -27
  138. package/unbundled/definition5.js +267 -26
  139. package/unbundled/definition6.cjs +56 -0
  140. package/unbundled/definition6.js +52 -0
  141. package/unbundled/listbox.cjs +41 -63
  142. package/unbundled/listbox.js +39 -61
  143. package/unbundled/picker-field.template.cjs +1 -1
  144. package/unbundled/picker-field.template.js +1 -1
  145. package/unbundled/slider.template.cjs +1 -1
  146. package/unbundled/slider.template.js +1 -1
  147. package/unbundled/vivid-element.cjs +1 -1
  148. package/unbundled/vivid-element.js +1 -1
  149. package/video-player/definition.cjs +56 -16
  150. package/video-player/definition.js +56 -16
  151. package/video-player/index.cjs +36 -36
  152. package/video-player/index.js +2461 -2445
  153. package/vivid.api.json +285 -38
  154. package/bundled/option.cjs +0 -1
  155. package/bundled/option.js +0 -158
  156. package/unbundled/option.cjs +0 -217
  157. package/unbundled/option.js +0 -214
@@ -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";