@carbon/ibmdotcom-web-components 1.26.0-rc.1 → 1.26.0-rc.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.
Files changed (788) hide show
  1. package/es/component-mixins/cta/cta.d.ts.map +1 -1
  2. package/es/component-mixins/cta/cta.js +12 -12
  3. package/es/component-mixins/cta/cta.js.map +1 -1
  4. package/es/component-mixins/cta/video.d.ts.map +1 -1
  5. package/es/component-mixins/cta/video.js +5 -5
  6. package/es/component-mixins/cta/video.js.map +1 -1
  7. package/es/components/back-to-top/__stories__/data/content.d.ts.map +1 -1
  8. package/es/components/back-to-top/__stories__/data/content.js +1 -1
  9. package/es/components/back-to-top/__stories__/data/content.js.map +1 -1
  10. package/es/components/back-to-top/back-to-top.d.ts +1 -1
  11. package/es/components/back-to-top/back-to-top.d.ts.map +1 -1
  12. package/es/components/back-to-top/back-to-top.js +3 -3
  13. package/es/components/back-to-top/back-to-top.js.map +1 -1
  14. package/es/components/background-media/background-media.d.ts.map +1 -1
  15. package/es/components/background-media/background-media.js +2 -2
  16. package/es/components/background-media/background-media.js.map +1 -1
  17. package/es/components/button/button.d.ts +1 -4
  18. package/es/components/button/button.d.ts.map +1 -1
  19. package/es/components/button/button.js +3 -3
  20. package/es/components/button/button.js.map +1 -1
  21. package/es/components/button-group/button-group.d.ts.map +1 -1
  22. package/es/components/button-group/button-group.js +1 -1
  23. package/es/components/button-group/button-group.js.map +1 -1
  24. package/es/components/card/card.d.ts +1 -1
  25. package/es/components/card/card.d.ts.map +1 -1
  26. package/es/components/card/card.js +1 -1
  27. package/es/components/card/card.js.map +1 -1
  28. package/es/components/card-in-card/card-in-card.d.ts.map +1 -1
  29. package/es/components/card-in-card/card-in-card.js +1 -1
  30. package/es/components/card-in-card/card-in-card.js.map +1 -1
  31. package/es/components/carousel/carousel.d.ts +10 -1
  32. package/es/components/carousel/carousel.d.ts.map +1 -1
  33. package/es/components/carousel/carousel.js +6 -6
  34. package/es/components/carousel/carousel.js.map +1 -1
  35. package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts +3 -9
  36. package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts.map +1 -1
  37. package/es/components/content-item-horizontal/content-item-horizontal-media.js +2 -2
  38. package/es/components/content-item-horizontal/content-item-horizontal-media.js.map +1 -1
  39. package/es/components/cta/card-cta.d.ts.map +1 -1
  40. package/es/components/cta/card-cta.js +1 -1
  41. package/es/components/cta/card-cta.js.map +1 -1
  42. package/es/components/cta/feature-cta.d.ts +4 -1
  43. package/es/components/cta/feature-cta.d.ts.map +1 -1
  44. package/es/components/cta/feature-cta.js +1 -1
  45. package/es/components/cta/feature-cta.js.map +1 -1
  46. package/es/components/cta/video-cta-composite.d.ts +9 -6
  47. package/es/components/cta/video-cta-composite.d.ts.map +1 -1
  48. package/es/components/cta/video-cta-composite.js +3 -3
  49. package/es/components/cta/video-cta-composite.js.map +1 -1
  50. package/es/components/dotcom-shell/__stories__/data/content.d.ts.map +1 -1
  51. package/es/components/dotcom-shell/__stories__/data/content.js +1 -1
  52. package/es/components/dotcom-shell/__stories__/data/content.js.map +1 -1
  53. package/es/components/expressive-modal/expressive-modal-body.d.ts +1 -1
  54. package/es/components/expressive-modal/expressive-modal-body.d.ts.map +1 -1
  55. package/es/components/expressive-modal/expressive-modal-body.js +1 -1
  56. package/es/components/expressive-modal/expressive-modal-body.js.map +1 -1
  57. package/es/components/expressive-modal/expressive-modal-close-button.d.ts +1 -1
  58. package/es/components/expressive-modal/expressive-modal-close-button.d.ts.map +1 -1
  59. package/es/components/expressive-modal/expressive-modal-close-button.js +1 -1
  60. package/es/components/expressive-modal/expressive-modal-close-button.js.map +1 -1
  61. package/es/components/expressive-modal/expressive-modal-footer.d.ts +1 -1
  62. package/es/components/expressive-modal/expressive-modal-footer.d.ts.map +1 -1
  63. package/es/components/expressive-modal/expressive-modal-footer.js +1 -1
  64. package/es/components/expressive-modal/expressive-modal-footer.js.map +1 -1
  65. package/es/components/expressive-modal/expressive-modal-header.d.ts +1 -1
  66. package/es/components/expressive-modal/expressive-modal-header.d.ts.map +1 -1
  67. package/es/components/expressive-modal/expressive-modal-header.js +1 -1
  68. package/es/components/expressive-modal/expressive-modal-header.js.map +1 -1
  69. package/es/components/expressive-modal/expressive-modal-heading.d.ts +1 -1
  70. package/es/components/expressive-modal/expressive-modal-heading.d.ts.map +1 -1
  71. package/es/components/expressive-modal/expressive-modal-heading.js +1 -1
  72. package/es/components/expressive-modal/expressive-modal-heading.js.map +1 -1
  73. package/es/components/expressive-modal/expressive-modal.d.ts +5 -10
  74. package/es/components/expressive-modal/expressive-modal.d.ts.map +1 -1
  75. package/es/components/expressive-modal/expressive-modal.js +3 -3
  76. package/es/components/expressive-modal/expressive-modal.js.map +1 -1
  77. package/es/components/filter-panel/filter-group-item.d.ts +2 -4
  78. package/es/components/filter-panel/filter-group-item.d.ts.map +1 -1
  79. package/es/components/filter-panel/filter-group-item.js +1 -1
  80. package/es/components/filter-panel/filter-group-item.js.map +1 -1
  81. package/es/components/filter-panel/filter-group.d.ts +1 -1
  82. package/es/components/filter-panel/filter-group.d.ts.map +1 -1
  83. package/es/components/filter-panel/filter-group.js +1 -1
  84. package/es/components/filter-panel/filter-group.js.map +1 -1
  85. package/es/components/filter-panel/filter-modal-button.d.ts +1 -1
  86. package/es/components/filter-panel/filter-modal-button.d.ts.map +1 -1
  87. package/es/components/filter-panel/filter-modal-button.js +1 -1
  88. package/es/components/filter-panel/filter-modal-button.js.map +1 -1
  89. package/es/components/filter-panel/filter-modal-footer.d.ts +1 -1
  90. package/es/components/filter-panel/filter-modal-footer.d.ts.map +1 -1
  91. package/es/components/filter-panel/filter-modal-footer.js +1 -1
  92. package/es/components/filter-panel/filter-modal-footer.js.map +1 -1
  93. package/es/components/filter-panel/filter-modal-heading.d.ts +1 -1
  94. package/es/components/filter-panel/filter-modal-heading.d.ts.map +1 -1
  95. package/es/components/filter-panel/filter-modal-heading.js +1 -1
  96. package/es/components/filter-panel/filter-modal-heading.js.map +1 -1
  97. package/es/components/filter-panel/filter-panel-checkbox.d.ts +2 -2
  98. package/es/components/filter-panel/filter-panel-checkbox.d.ts.map +1 -1
  99. package/es/components/filter-panel/filter-panel-checkbox.js +3 -3
  100. package/es/components/filter-panel/filter-panel-checkbox.js.map +1 -1
  101. package/es/components/filter-panel/filter-panel-composite.d.ts +20 -12
  102. package/es/components/filter-panel/filter-panel-composite.d.ts.map +1 -1
  103. package/es/components/filter-panel/filter-panel-composite.js +4 -4
  104. package/es/components/filter-panel/filter-panel-composite.js.map +1 -1
  105. package/es/components/filter-panel/filter-panel-input-select-item.d.ts +0 -3
  106. package/es/components/filter-panel/filter-panel-input-select-item.d.ts.map +1 -1
  107. package/es/components/filter-panel/filter-panel-input-select-item.js +2 -2
  108. package/es/components/filter-panel/filter-panel-input-select-item.js.map +1 -1
  109. package/es/components/filter-panel/filter-panel-input-select.d.ts +5 -1
  110. package/es/components/filter-panel/filter-panel-input-select.d.ts.map +1 -1
  111. package/es/components/filter-panel/filter-panel-input-select.js +2 -2
  112. package/es/components/filter-panel/filter-panel-input-select.js.map +1 -1
  113. package/es/components/filter-panel/filter-panel-modal.d.ts +4 -6
  114. package/es/components/filter-panel/filter-panel-modal.d.ts.map +1 -1
  115. package/es/components/filter-panel/filter-panel-modal.js +3 -3
  116. package/es/components/filter-panel/filter-panel-modal.js.map +1 -1
  117. package/es/components/filter-panel/filter-panel.d.ts +4 -2
  118. package/es/components/filter-panel/filter-panel.d.ts.map +1 -1
  119. package/es/components/filter-panel/filter-panel.js +2 -2
  120. package/es/components/filter-panel/filter-panel.js.map +1 -1
  121. package/es/components/footer/combo-box.d.ts +1 -1
  122. package/es/components/footer/combo-box.d.ts.map +1 -1
  123. package/es/components/footer/combo-box.js +1 -1
  124. package/es/components/footer/combo-box.js.map +1 -1
  125. package/es/components/footer/defs.d.ts +1 -1
  126. package/es/components/footer/defs.d.ts.map +1 -1
  127. package/es/components/footer/defs.js +1 -1
  128. package/es/components/footer/defs.js.map +1 -1
  129. package/es/components/footer/dropdown.d.ts +1 -1
  130. package/es/components/footer/dropdown.d.ts.map +1 -1
  131. package/es/components/footer/dropdown.js +3 -3
  132. package/es/components/footer/dropdown.js.map +1 -1
  133. package/es/components/footer/footer-composite.d.ts +3 -8
  134. package/es/components/footer/footer-composite.d.ts.map +1 -1
  135. package/es/components/footer/footer-composite.js +5 -5
  136. package/es/components/footer/footer-composite.js.map +1 -1
  137. package/es/components/footer/footer-logo.d.ts.map +1 -1
  138. package/es/components/footer/footer-logo.js +2 -2
  139. package/es/components/footer/footer-logo.js.map +1 -1
  140. package/es/components/footer/footer-nav-group.d.ts.map +1 -1
  141. package/es/components/footer/footer-nav-group.js +1 -1
  142. package/es/components/footer/footer-nav-group.js.map +1 -1
  143. package/es/components/footer/footer-nav-item.d.ts +1 -1
  144. package/es/components/footer/footer-nav-item.d.ts.map +1 -1
  145. package/es/components/footer/footer-nav-item.js +1 -1
  146. package/es/components/footer/footer-nav-item.js.map +1 -1
  147. package/es/components/footer/language-selector-desktop.d.ts.map +1 -1
  148. package/es/components/footer/language-selector-desktop.js +2 -2
  149. package/es/components/footer/language-selector-desktop.js.map +1 -1
  150. package/es/components/footer/language-selector-mobile.d.ts.map +1 -1
  151. package/es/components/footer/language-selector-mobile.js +2 -2
  152. package/es/components/footer/language-selector-mobile.js.map +1 -1
  153. package/es/components/footer/locale-button.d.ts +3 -1
  154. package/es/components/footer/locale-button.d.ts.map +1 -1
  155. package/es/components/footer/locale-button.js +3 -3
  156. package/es/components/footer/locale-button.js.map +1 -1
  157. package/es/components/image/image.d.ts +5 -1
  158. package/es/components/image/image.d.ts.map +1 -1
  159. package/es/components/image/image.js +3 -3
  160. package/es/components/image/image.js.map +1 -1
  161. package/es/components/image-with-caption/image-with-caption.d.ts.map +1 -1
  162. package/es/components/image-with-caption/image-with-caption.js +3 -3
  163. package/es/components/image-with-caption/image-with-caption.js.map +1 -1
  164. package/es/components/leadspace/breadcrumb-item.d.ts +1 -1
  165. package/es/components/leadspace/breadcrumb-item.d.ts.map +1 -1
  166. package/es/components/leadspace/breadcrumb-item.js +1 -1
  167. package/es/components/leadspace/breadcrumb-item.js.map +1 -1
  168. package/es/components/leadspace/breadcrumb-link.d.ts +1 -1
  169. package/es/components/leadspace/breadcrumb-link.d.ts.map +1 -1
  170. package/es/components/leadspace/breadcrumb-link.js +1 -1
  171. package/es/components/leadspace/breadcrumb-link.js.map +1 -1
  172. package/es/components/leadspace/breadcrumb.d.ts +1 -1
  173. package/es/components/leadspace/breadcrumb.d.ts.map +1 -1
  174. package/es/components/leadspace/breadcrumb.js +1 -1
  175. package/es/components/leadspace/breadcrumb.js.map +1 -1
  176. package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +8 -6
  177. package/es/components/leaving-ibm/leaving-ibm-composite.d.ts.map +1 -1
  178. package/es/components/leaving-ibm/leaving-ibm-composite.js +7 -7
  179. package/es/components/leaving-ibm/leaving-ibm-composite.js.map +1 -1
  180. package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts +2 -2
  181. package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts.map +1 -1
  182. package/es/components/leaving-ibm/leaving-ibm-modal-body.js +3 -3
  183. package/es/components/leaving-ibm/leaving-ibm-modal-body.js.map +1 -1
  184. package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts +1 -1
  185. package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts.map +1 -1
  186. package/es/components/leaving-ibm/leaving-ibm-modal-heading.js +1 -1
  187. package/es/components/leaving-ibm/leaving-ibm-modal-heading.js.map +1 -1
  188. package/es/components/leaving-ibm/leaving-ibm-modal.d.ts +1 -1
  189. package/es/components/leaving-ibm/leaving-ibm-modal.d.ts.map +1 -1
  190. package/es/components/leaving-ibm/leaving-ibm-modal.js +2 -2
  191. package/es/components/leaving-ibm/leaving-ibm-modal.js.map +1 -1
  192. package/es/components/lightbox-media-viewer/lightbox-image-viewer.d.ts.map +1 -1
  193. package/es/components/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
  194. package/es/components/lightbox-media-viewer/lightbox-image-viewer.js.map +1 -1
  195. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts +3 -1
  196. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts.map +1 -1
  197. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js +1 -1
  198. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js.map +1 -1
  199. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -3
  200. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts.map +1 -1
  201. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js +2 -2
  202. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js.map +1 -1
  203. package/es/components/link-with-icon/link-with-icon.d.ts +1 -1
  204. package/es/components/link-with-icon/link-with-icon.d.ts.map +1 -1
  205. package/es/components/link-with-icon/link-with-icon.js +1 -1
  206. package/es/components/link-with-icon/link-with-icon.js.map +1 -1
  207. package/es/components/locale-modal/locale-item.d.ts +1 -1
  208. package/es/components/locale-modal/locale-item.d.ts.map +1 -1
  209. package/es/components/locale-modal/locale-item.js +1 -1
  210. package/es/components/locale-modal/locale-item.js.map +1 -1
  211. package/es/components/locale-modal/locale-modal-composite.d.ts.map +1 -1
  212. package/es/components/locale-modal/locale-modal-composite.js +1 -1
  213. package/es/components/locale-modal/locale-modal-composite.js.map +1 -1
  214. package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
  215. package/es/components/locale-modal/locale-modal.js +5 -5
  216. package/es/components/locale-modal/locale-modal.js.map +1 -1
  217. package/es/components/locale-modal/locale-search.d.ts.map +1 -1
  218. package/es/components/locale-modal/locale-search.js +1 -1
  219. package/es/components/locale-modal/locale-search.js.map +1 -1
  220. package/es/components/locale-modal/region-item.d.ts +1 -1
  221. package/es/components/locale-modal/region-item.d.ts.map +1 -1
  222. package/es/components/locale-modal/region-item.js +3 -3
  223. package/es/components/locale-modal/region-item.js.map +1 -1
  224. package/es/components/locale-modal/regions.d.ts +1 -1
  225. package/es/components/locale-modal/regions.d.ts.map +1 -1
  226. package/es/components/locale-modal/regions.js +1 -1
  227. package/es/components/locale-modal/regions.js.map +1 -1
  228. package/es/components/markdown/markdown.d.ts +4 -4
  229. package/es/components/markdown/markdown.d.ts.map +1 -1
  230. package/es/components/markdown/markdown.js +4 -4
  231. package/es/components/markdown/markdown.js.map +1 -1
  232. package/es/components/masthead/cloud/cloud-left-nav-item.d.ts +1 -1
  233. package/es/components/masthead/cloud/cloud-left-nav-item.d.ts.map +1 -1
  234. package/es/components/masthead/cloud/cloud-left-nav-item.js +1 -1
  235. package/es/components/masthead/cloud/cloud-left-nav-item.js.map +1 -1
  236. package/es/components/masthead/cloud/cloud-masthead-composite.d.ts.map +1 -1
  237. package/es/components/masthead/cloud/cloud-masthead-composite.js +1 -1
  238. package/es/components/masthead/cloud/cloud-masthead-composite.js.map +1 -1
  239. package/es/components/masthead/cloud/cloud-masthead-profile.d.ts.map +1 -1
  240. package/es/components/masthead/cloud/cloud-masthead-profile.js +1 -1
  241. package/es/components/masthead/cloud/cloud-masthead-profile.js.map +1 -1
  242. package/es/components/masthead/cloud/cloud-megamenu-category-heading.d.ts.map +1 -1
  243. package/es/components/masthead/cloud/cloud-megamenu-category-heading.js +1 -1
  244. package/es/components/masthead/cloud/cloud-megamenu-category-heading.js.map +1 -1
  245. package/es/components/masthead/cloud/cloud-megamenu-category-link.d.ts +1 -1
  246. package/es/components/masthead/cloud/cloud-megamenu-category-link.d.ts.map +1 -1
  247. package/es/components/masthead/cloud/cloud-megamenu-category-link.js +1 -1
  248. package/es/components/masthead/cloud/cloud-megamenu-category-link.js.map +1 -1
  249. package/es/components/masthead/cloud/cloud-megamenu-tab.d.ts +1 -1
  250. package/es/components/masthead/cloud/cloud-megamenu-tab.d.ts.map +1 -1
  251. package/es/components/masthead/cloud/cloud-megamenu-tab.js +1 -1
  252. package/es/components/masthead/cloud/cloud-megamenu-tab.js.map +1 -1
  253. package/es/components/masthead/cloud/cloud-megamenu-tabs.d.ts +1 -1
  254. package/es/components/masthead/cloud/cloud-megamenu-tabs.d.ts.map +1 -1
  255. package/es/components/masthead/cloud/cloud-megamenu-tabs.js +1 -1
  256. package/es/components/masthead/cloud/cloud-megamenu-tabs.js.map +1 -1
  257. package/es/components/masthead/left-nav-item.d.ts +1 -1
  258. package/es/components/masthead/left-nav-item.d.ts.map +1 -1
  259. package/es/components/masthead/left-nav-item.js +1 -1
  260. package/es/components/masthead/left-nav-item.js.map +1 -1
  261. package/es/components/masthead/left-nav-menu-item.d.ts +1 -1
  262. package/es/components/masthead/left-nav-menu-item.d.ts.map +1 -1
  263. package/es/components/masthead/left-nav-menu-item.js +1 -1
  264. package/es/components/masthead/left-nav-menu-item.js.map +1 -1
  265. package/es/components/masthead/left-nav-menu-section.d.ts +11 -12
  266. package/es/components/masthead/left-nav-menu-section.d.ts.map +1 -1
  267. package/es/components/masthead/left-nav-menu-section.js +6 -6
  268. package/es/components/masthead/left-nav-menu-section.js.map +1 -1
  269. package/es/components/masthead/left-nav-menu.d.ts +3 -0
  270. package/es/components/masthead/left-nav-menu.d.ts.map +1 -1
  271. package/es/components/masthead/left-nav-menu.js +2 -2
  272. package/es/components/masthead/left-nav-menu.js.map +1 -1
  273. package/es/components/masthead/left-nav-name.d.ts +1 -1
  274. package/es/components/masthead/left-nav-name.d.ts.map +1 -1
  275. package/es/components/masthead/left-nav-name.js +2 -2
  276. package/es/components/masthead/left-nav-name.js.map +1 -1
  277. package/es/components/masthead/left-nav.d.ts +1 -1
  278. package/es/components/masthead/left-nav.d.ts.map +1 -1
  279. package/es/components/masthead/left-nav.js +3 -3
  280. package/es/components/masthead/left-nav.js.map +1 -1
  281. package/es/components/masthead/masthead-composite.d.ts.map +1 -1
  282. package/es/components/masthead/masthead-composite.js +2 -2
  283. package/es/components/masthead/masthead-composite.js.map +1 -1
  284. package/es/components/masthead/masthead-global-bar.d.ts +7 -4
  285. package/es/components/masthead/masthead-global-bar.d.ts.map +1 -1
  286. package/es/components/masthead/masthead-global-bar.js +3 -3
  287. package/es/components/masthead/masthead-global-bar.js.map +1 -1
  288. package/es/components/masthead/masthead-logo.d.ts +7 -12
  289. package/es/components/masthead/masthead-logo.d.ts.map +1 -1
  290. package/es/components/masthead/masthead-logo.js +4 -4
  291. package/es/components/masthead/masthead-logo.js.map +1 -1
  292. package/es/components/masthead/masthead-menu-button.d.ts +2 -2
  293. package/es/components/masthead/masthead-menu-button.d.ts.map +1 -1
  294. package/es/components/masthead/masthead-menu-button.js +3 -3
  295. package/es/components/masthead/masthead-menu-button.js.map +1 -1
  296. package/es/components/masthead/masthead-profile-item.d.ts +1 -1
  297. package/es/components/masthead/masthead-profile-item.d.ts.map +1 -1
  298. package/es/components/masthead/masthead-profile-item.js +1 -1
  299. package/es/components/masthead/masthead-profile-item.js.map +1 -1
  300. package/es/components/masthead/masthead-profile.d.ts +1 -1
  301. package/es/components/masthead/masthead-profile.d.ts.map +1 -1
  302. package/es/components/masthead/masthead-profile.js +5 -5
  303. package/es/components/masthead/masthead-profile.js.map +1 -1
  304. package/es/components/masthead/megamenu-category-group.d.ts.map +1 -1
  305. package/es/components/masthead/megamenu-category-group.js +2 -2
  306. package/es/components/masthead/megamenu-category-group.js.map +1 -1
  307. package/es/components/masthead/megamenu-category-link.d.ts +1 -1
  308. package/es/components/masthead/megamenu-category-link.d.ts.map +1 -1
  309. package/es/components/masthead/megamenu-category-link.js +1 -1
  310. package/es/components/masthead/megamenu-category-link.js.map +1 -1
  311. package/es/components/masthead/megamenu-link-with-icon.d.ts +1 -1
  312. package/es/components/masthead/megamenu-link-with-icon.d.ts.map +1 -1
  313. package/es/components/masthead/megamenu-link-with-icon.js +1 -1
  314. package/es/components/masthead/megamenu-link-with-icon.js.map +1 -1
  315. package/es/components/masthead/megamenu-right-navigation.d.ts.map +1 -1
  316. package/es/components/masthead/megamenu-right-navigation.js +1 -1
  317. package/es/components/masthead/megamenu-right-navigation.js.map +1 -1
  318. package/es/components/masthead/skip-to-content.d.ts +1 -1
  319. package/es/components/masthead/skip-to-content.d.ts.map +1 -1
  320. package/es/components/masthead/skip-to-content.js +1 -1
  321. package/es/components/masthead/skip-to-content.js.map +1 -1
  322. package/es/components/masthead/top-nav-item.d.ts +1 -1
  323. package/es/components/masthead/top-nav-item.d.ts.map +1 -1
  324. package/es/components/masthead/top-nav-item.js +1 -1
  325. package/es/components/masthead/top-nav-item.js.map +1 -1
  326. package/es/components/masthead/top-nav-menu-item.d.ts +1 -1
  327. package/es/components/masthead/top-nav-menu-item.d.ts.map +1 -1
  328. package/es/components/masthead/top-nav-menu-item.js +1 -1
  329. package/es/components/masthead/top-nav-menu-item.js.map +1 -1
  330. package/es/components/masthead/top-nav-menu.d.ts +1 -1
  331. package/es/components/masthead/top-nav-menu.d.ts.map +1 -1
  332. package/es/components/masthead/top-nav-menu.js +1 -1
  333. package/es/components/masthead/top-nav-menu.js.map +1 -1
  334. package/es/components/masthead/top-nav-name.d.ts.map +1 -1
  335. package/es/components/masthead/top-nav-name.js +1 -1
  336. package/es/components/masthead/top-nav-name.js.map +1 -1
  337. package/es/components/masthead/top-nav.d.ts +2 -11
  338. package/es/components/masthead/top-nav.d.ts.map +1 -1
  339. package/es/components/masthead/top-nav.js +6 -6
  340. package/es/components/masthead/top-nav.js.map +1 -1
  341. package/es/components/pricing-table/pricing-table-annotation-toggle.d.ts.map +1 -1
  342. package/es/components/pricing-table/pricing-table-annotation-toggle.js +2 -2
  343. package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
  344. package/es/components/pricing-table/pricing-table-cell.d.ts +1 -1
  345. package/es/components/pricing-table/pricing-table-cell.d.ts.map +1 -1
  346. package/es/components/pricing-table/pricing-table-cell.js +2 -2
  347. package/es/components/pricing-table/pricing-table-cell.js.map +1 -1
  348. package/es/components/pricing-table/pricing-table.d.ts +5 -8
  349. package/es/components/pricing-table/pricing-table.d.ts.map +1 -1
  350. package/es/components/pricing-table/pricing-table.js +2 -2
  351. package/es/components/pricing-table/pricing-table.js.map +1 -1
  352. package/es/components/search/search.d.ts +2 -2
  353. package/es/components/search/search.d.ts.map +1 -1
  354. package/es/components/search/search.js +2 -2
  355. package/es/components/search/search.js.map +1 -1
  356. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.d.ts.map +1 -1
  357. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js +4 -4
  358. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js.map +1 -1
  359. package/es/components/search-with-typeahead/search-with-typeahead.d.ts +10 -16
  360. package/es/components/search-with-typeahead/search-with-typeahead.d.ts.map +1 -1
  361. package/es/components/search-with-typeahead/search-with-typeahead.js +6 -6
  362. package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
  363. package/es/components/structured-list/index.d.ts +2 -2
  364. package/es/components/structured-list/index.d.ts.map +1 -1
  365. package/es/components/structured-list/index.js +2 -2
  366. package/es/components/structured-list/index.js.map +1 -1
  367. package/es/components/structured-list/structured-list-body.d.ts +1 -1
  368. package/es/components/structured-list/structured-list-body.d.ts.map +1 -1
  369. package/es/components/structured-list/structured-list-body.js +1 -1
  370. package/es/components/structured-list/structured-list-body.js.map +1 -1
  371. package/es/components/structured-list/structured-list-cell.d.ts +1 -1
  372. package/es/components/structured-list/structured-list-cell.d.ts.map +1 -1
  373. package/es/components/structured-list/structured-list-cell.js +4 -4
  374. package/es/components/structured-list/structured-list-cell.js.map +1 -1
  375. package/es/components/structured-list/structured-list-head.d.ts +1 -1
  376. package/es/components/structured-list/structured-list-head.d.ts.map +1 -1
  377. package/es/components/structured-list/structured-list-head.js +1 -1
  378. package/es/components/structured-list/structured-list-head.js.map +1 -1
  379. package/es/components/structured-list/structured-list-header-cell.d.ts +1 -1
  380. package/es/components/structured-list/structured-list-header-cell.d.ts.map +1 -1
  381. package/es/components/structured-list/structured-list-header-cell.js +1 -1
  382. package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
  383. package/es/components/structured-list/structured-list-header-row.d.ts +1 -1
  384. package/es/components/structured-list/structured-list-header-row.d.ts.map +1 -1
  385. package/es/components/structured-list/structured-list-header-row.js +1 -1
  386. package/es/components/structured-list/structured-list-header-row.js.map +1 -1
  387. package/es/components/structured-list/structured-list-row.d.ts +1 -1
  388. package/es/components/structured-list/structured-list-row.d.ts.map +1 -1
  389. package/es/components/structured-list/structured-list-row.js +1 -1
  390. package/es/components/structured-list/structured-list-row.js.map +1 -1
  391. package/es/components/table-of-contents/table-of-contents.d.ts +24 -6
  392. package/es/components/table-of-contents/table-of-contents.d.ts.map +1 -1
  393. package/es/components/table-of-contents/table-of-contents.js +5 -5
  394. package/es/components/table-of-contents/table-of-contents.js.map +1 -1
  395. package/es/components/tabs-extended/tabs-extended.d.ts.map +1 -1
  396. package/es/components/tabs-extended/tabs-extended.js +1 -1
  397. package/es/components/tabs-extended/tabs-extended.js.map +1 -1
  398. package/es/components/tag-link/tag-link.d.ts.map +1 -1
  399. package/es/components/tag-link/tag-link.js +1 -1
  400. package/es/components/tag-link/tag-link.js.map +1 -1
  401. package/es/components/video-player/video-player-composite.d.ts +7 -2
  402. package/es/components/video-player/video-player-composite.d.ts.map +1 -1
  403. package/es/components/video-player/video-player-composite.js +3 -3
  404. package/es/components/video-player/video-player-composite.js.map +1 -1
  405. package/es/components/video-player/video-player.d.ts +6 -0
  406. package/es/components/video-player/video-player.d.ts.map +1 -1
  407. package/es/components/video-player/video-player.js +2 -2
  408. package/es/components/video-player/video-player.js.map +1 -1
  409. package/es/components-react/back-to-top/back-to-top.js +1 -1
  410. package/es/components-react/background-media/background-media.js +1 -1
  411. package/es/components-react/button/button.js +2 -2
  412. package/es/components-react/button-group/button-group-item.js +1 -1
  413. package/es/components-react/button-group/button-group.js +1 -1
  414. package/es/components-react/callout-quote/callout-link-with-icon.js +1 -1
  415. package/es/components-react/callout-quote/callout-quote.js +1 -1
  416. package/es/components-react/callout-with-media/callout-with-media-copy.js +1 -1
  417. package/es/components-react/callout-with-media/callout-with-media-image.js +1 -1
  418. package/es/components-react/callout-with-media/callout-with-media-video.js +1 -1
  419. package/es/components-react/callout-with-media/callout-with-media.js +1 -1
  420. package/es/components-react/card/card-eyebrow.js +1 -1
  421. package/es/components-react/card/card-footer.js +1 -1
  422. package/es/components-react/card/card-heading.js +1 -1
  423. package/es/components-react/card/card.js +3 -3
  424. package/es/components-react/card/image-logo.js +1 -1
  425. package/es/components-react/card-group/card-group-card-link-item.js +1 -1
  426. package/es/components-react/card-group/card-group-item.js +1 -1
  427. package/es/components-react/card-group/card-group.js +1 -1
  428. package/es/components-react/card-in-card/card-in-card-image.js +1 -1
  429. package/es/components-react/card-in-card/card-in-card.js +1 -1
  430. package/es/components-react/card-link/card-link-heading.js +1 -1
  431. package/es/components-react/card-link/card-link.js +1 -1
  432. package/es/components-react/card-section-carousel/card-section-carousel.js +1 -1
  433. package/es/components-react/card-section-offset/card-section-offset.js +1 -1
  434. package/es/components-react/card-section-simple/card-section-simple.js +1 -1
  435. package/es/components-react/carousel/carousel.js +1 -1
  436. package/es/components-react/content-block/content-block-complementary.js +1 -1
  437. package/es/components-react/content-block/content-block-copy.js +1 -1
  438. package/es/components-react/content-block/content-block-heading.js +1 -1
  439. package/es/components-react/content-block/content-block-paragraph.js +1 -1
  440. package/es/components-react/content-block/content-block.js +1 -1
  441. package/es/components-react/content-block-cards/content-block-cards.js +1 -1
  442. package/es/components-react/content-block-horizontal/content-block-horizontal.js +1 -1
  443. package/es/components-react/content-block-media/content-block-media-content.js +1 -1
  444. package/es/components-react/content-block-media/content-block-media.js +1 -1
  445. package/es/components-react/content-block-mixed/content-block-mixed.js +1 -1
  446. package/es/components-react/content-block-segmented/content-block-segmented-item.js +1 -1
  447. package/es/components-react/content-block-segmented/content-block-segmented.js +1 -1
  448. package/es/components-react/content-block-simple/content-block-simple.js +1 -1
  449. package/es/components-react/content-group/content-group-copy.js +1 -1
  450. package/es/components-react/content-group/content-group-heading.js +1 -1
  451. package/es/components-react/content-group/content-group-paragraph.js +1 -1
  452. package/es/components-react/content-group/content-group.js +1 -1
  453. package/es/components-react/content-group-banner/content-group-banner.js +1 -1
  454. package/es/components-react/content-group-cards/content-group-cards-item.js +1 -1
  455. package/es/components-react/content-group-cards/content-group-cards.js +1 -1
  456. package/es/components-react/content-group-pictograms/content-group-pictograms.js +1 -1
  457. package/es/components-react/content-group-simple/content-group-simple.js +1 -1
  458. package/es/components-react/content-item/content-item-copy.js +1 -1
  459. package/es/components-react/content-item/content-item-heading.js +1 -1
  460. package/es/components-react/content-item/content-item-paragraph.js +1 -1
  461. package/es/components-react/content-item/content-item.js +1 -1
  462. package/es/components-react/content-item-horizontal/content-item-horizontal-copy.js +1 -1
  463. package/es/components-react/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -1
  464. package/es/components-react/content-item-horizontal/content-item-horizontal-media-copy.js +1 -1
  465. package/es/components-react/content-item-horizontal/content-item-horizontal-media-featured.js +1 -1
  466. package/es/components-react/content-item-horizontal/content-item-horizontal-media-video.js +1 -1
  467. package/es/components-react/content-item-horizontal/content-item-horizontal-media.js +1 -1
  468. package/es/components-react/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -1
  469. package/es/components-react/content-item-horizontal/content-item-horizontal.js +1 -1
  470. package/es/components-react/content-section/content-section-copy.js +1 -1
  471. package/es/components-react/content-section/content-section-heading.js +1 -1
  472. package/es/components-react/content-section/content-section.js +1 -1
  473. package/es/components-react/cta/button-cta.js +1 -1
  474. package/es/components-react/cta/card-cta-footer.js +1 -1
  475. package/es/components-react/cta/card-cta-image.js +1 -1
  476. package/es/components-react/cta/card-cta.js +1 -1
  477. package/es/components-react/cta/card-link-cta.js +1 -1
  478. package/es/components-react/cta/feature-cta-footer.js +1 -1
  479. package/es/components-react/cta/feature-cta.js +1 -1
  480. package/es/components-react/cta/link-list-item-card-cta.js +1 -1
  481. package/es/components-react/cta/link-list-item-cta.js +1 -1
  482. package/es/components-react/cta/text-cta.js +1 -1
  483. package/es/components-react/cta/video-cta-composite.js +1 -1
  484. package/es/components-react/cta/video-cta-container.js +1 -1
  485. package/es/components-react/cta-block/cta-block-item-row.js +1 -1
  486. package/es/components-react/cta-block/cta-block-item.js +1 -1
  487. package/es/components-react/cta-block/cta-block.js +1 -1
  488. package/es/components-react/cta-section/cta-section.js +1 -1
  489. package/es/components-react/dotcom-shell/dotcom-shell-composite.js +1 -1
  490. package/es/components-react/dotcom-shell/dotcom-shell-container.js +1 -1
  491. package/es/components-react/dotcom-shell/dotcom-shell.js +1 -1
  492. package/es/components-react/expressive-modal/expressive-modal-body.js +3 -3
  493. package/es/components-react/expressive-modal/expressive-modal-close-button.js +3 -3
  494. package/es/components-react/expressive-modal/expressive-modal-footer.js +3 -3
  495. package/es/components-react/expressive-modal/expressive-modal-header.js +3 -3
  496. package/es/components-react/expressive-modal/expressive-modal-heading.js +3 -3
  497. package/es/components-react/expressive-modal/expressive-modal.js +1 -1
  498. package/es/components-react/feature-card/feature-card-footer.js +1 -1
  499. package/es/components-react/feature-card/feature-card.js +1 -1
  500. package/es/components-react/feature-section/feature-section-card-link.js +1 -1
  501. package/es/components-react/feature-section/feature-section.js +1 -1
  502. package/es/components-react/filter-panel/filter-group-item.js +3 -3
  503. package/es/components-react/filter-panel/filter-group.js +3 -3
  504. package/es/components-react/filter-panel/filter-modal-button.js +3 -3
  505. package/es/components-react/filter-panel/filter-modal-footer.js +3 -3
  506. package/es/components-react/filter-panel/filter-modal-heading.js +3 -3
  507. package/es/components-react/filter-panel/filter-panel-checkbox.js +3 -3
  508. package/es/components-react/filter-panel/filter-panel-composite.js +1 -1
  509. package/es/components-react/filter-panel/filter-panel-heading.js +1 -1
  510. package/es/components-react/filter-panel/filter-panel-input-select-item.js +1 -1
  511. package/es/components-react/filter-panel/filter-panel-input-select.js +1 -1
  512. package/es/components-react/filter-panel/filter-panel-modal.js +3 -3
  513. package/es/components-react/filter-panel/filter-panel.js +1 -1
  514. package/es/components-react/footer/dropdown.js +3 -3
  515. package/es/components-react/footer/footer-composite.js +1 -1
  516. package/es/components-react/footer/footer-container.js +1 -1
  517. package/es/components-react/horizontal-rule/horizontal-rule.js +1 -1
  518. package/es/components-react/image/image-item.js +1 -1
  519. package/es/components-react/image/image.js +1 -1
  520. package/es/components-react/leadspace/breadcrumb-item.js +3 -3
  521. package/es/components-react/leadspace/breadcrumb-link.js +3 -3
  522. package/es/components-react/leadspace/breadcrumb.js +3 -3
  523. package/es/components-react/leadspace/leadspace-heading.js +1 -1
  524. package/es/components-react/leadspace/leadspace-image.js +1 -1
  525. package/es/components-react/leadspace/leadspace.js +1 -1
  526. package/es/components-react/leadspace-block/leadspace-block-content.js +1 -1
  527. package/es/components-react/leadspace-block/leadspace-block-cta.js +1 -1
  528. package/es/components-react/leadspace-block/leadspace-block-heading.js +1 -1
  529. package/es/components-react/leadspace-block/leadspace-block-media.js +1 -1
  530. package/es/components-react/leadspace-block/leadspace-block.js +1 -1
  531. package/es/components-react/leadspace-with-search/leadspace-with-search-content-copy.js +1 -1
  532. package/es/components-react/leadspace-with-search/leadspace-with-search-content-heading.js +1 -1
  533. package/es/components-react/leadspace-with-search/leadspace-with-search-content.js +1 -1
  534. package/es/components-react/leadspace-with-search/leadspace-with-search-heading.js +1 -1
  535. package/es/components-react/leadspace-with-search/leadspace-with-search.js +1 -1
  536. package/es/components-react/leaving-ibm/leaving-ibm-composite.js +1 -1
  537. package/es/components-react/leaving-ibm/leaving-ibm-container.js +1 -1
  538. package/es/components-react/leaving-ibm/leaving-ibm-modal-body.js +3 -3
  539. package/es/components-react/leaving-ibm/leaving-ibm-modal-heading.js +3 -3
  540. package/es/components-react/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -1
  541. package/es/components-react/leaving-ibm/leaving-ibm-modal.js +3 -3
  542. package/es/components-react/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
  543. package/es/components-react/lightbox-media-viewer/lightbox-media-viewer.js +1 -1
  544. package/es/components-react/lightbox-media-viewer/lightbox-video-player-composite.js +1 -1
  545. package/es/components-react/lightbox-media-viewer/lightbox-video-player-container.js +1 -1
  546. package/es/components-react/lightbox-media-viewer/lightbox-video-player.js +1 -1
  547. package/es/components-react/link-list/link-list-heading.js +1 -1
  548. package/es/components-react/link-list/link-list-item-card.js +1 -1
  549. package/es/components-react/link-list/link-list-item.js +1 -1
  550. package/es/components-react/link-list/link-list.js +1 -1
  551. package/es/components-react/link-list-section/link-list-section.js +1 -1
  552. package/es/components-react/link-with-icon/link-with-icon.js +3 -3
  553. package/es/components-react/locale-modal/locale-modal-composite.js +1 -1
  554. package/es/components-react/locale-modal/locale-modal-container.js +1 -1
  555. package/es/components-react/logo-grid/logo-grid-item.js +1 -1
  556. package/es/components-react/logo-grid/logo-grid-link.js +1 -1
  557. package/es/components-react/logo-grid/logo-grid.js +1 -1
  558. package/es/components-react/markdown/markdown.js +1 -1
  559. package/es/components-react/masthead/masthead-composite.js +1 -1
  560. package/es/components-react/masthead/masthead-container.js +1 -1
  561. package/es/components-react/masthead/masthead.js +1 -1
  562. package/es/components-react/pictogram-item/pictogram-item.js +1 -1
  563. package/es/components-react/quote/quote-link-with-icon.js +1 -1
  564. package/es/components-react/quote/quote-source-bottom-copy.js +1 -1
  565. package/es/components-react/quote/quote-source-copy.js +1 -1
  566. package/es/components-react/quote/quote-source-heading.js +1 -1
  567. package/es/components-react/quote/quote.js +1 -1
  568. package/es/components-react/search-with-typeahead/scoped-search-dropdown-mobile.js +3 -3
  569. package/es/components-react/search-with-typeahead/scoped-search-dropdown.js +1 -1
  570. package/es/components-react/search-with-typeahead/search-with-typeahead-item.js +1 -1
  571. package/es/components-react/search-with-typeahead/search-with-typeahead.js +3 -3
  572. package/es/components-react/structured-list/structured-list-body.js +3 -3
  573. package/es/components-react/structured-list/structured-list-cell.js +3 -3
  574. package/es/components-react/structured-list/structured-list-group.js +1 -1
  575. package/es/components-react/structured-list/structured-list-head.js +3 -3
  576. package/es/components-react/structured-list/structured-list-header-cell.js +3 -3
  577. package/es/components-react/structured-list/structured-list-header-row.js +3 -3
  578. package/es/components-react/structured-list/structured-list-row.js +3 -3
  579. package/es/components-react/structured-list/structured-list.js +1 -1
  580. package/es/components-react/table-of-contents/table-of-contents.js +1 -1
  581. package/es/components-react/tabs-extended/tab.js +1 -1
  582. package/es/components-react/tabs-extended/tabs-extended.js +1 -1
  583. package/es/components-react/tabs-extended-media/tabs-extended-media.js +1 -1
  584. package/es/components-react/tag-group/tag-group.js +1 -1
  585. package/es/components-react/tag-link/tag-link.js +1 -1
  586. package/es/components-react/universal-banner/universal-banner-copy.js +1 -1
  587. package/es/components-react/universal-banner/universal-banner-heading.js +1 -1
  588. package/es/components-react/universal-banner/universal-banner-image.js +1 -1
  589. package/es/components-react/universal-banner/universal-banner.js +1 -1
  590. package/es/components-react/video-player/video-player-composite.js +1 -1
  591. package/es/components-react/video-player/video-player-container.js +1 -1
  592. package/es/components-react/video-player/video-player.js +1 -1
  593. package/es/icons/IBM-8bar-logo--h23.js +1 -1
  594. package/es/icons/IBM-8bar-logo--h65-white.js +1 -1
  595. package/es/icons/play-video.js +1 -1
  596. package/lib/components-react-node/back-to-top/back-to-top.js +1 -1
  597. package/lib/components-react-node/background-media/background-media.js +1 -1
  598. package/lib/components-react-node/button/button.js +2 -2
  599. package/lib/components-react-node/button-group/button-group-item.js +1 -1
  600. package/lib/components-react-node/button-group/button-group.js +1 -1
  601. package/lib/components-react-node/callout-quote/callout-link-with-icon.js +1 -1
  602. package/lib/components-react-node/callout-quote/callout-quote.js +1 -1
  603. package/lib/components-react-node/callout-with-media/callout-with-media-copy.js +1 -1
  604. package/lib/components-react-node/callout-with-media/callout-with-media-image.js +1 -1
  605. package/lib/components-react-node/callout-with-media/callout-with-media-video.js +1 -1
  606. package/lib/components-react-node/callout-with-media/callout-with-media.js +1 -1
  607. package/lib/components-react-node/card/card-eyebrow.js +1 -1
  608. package/lib/components-react-node/card/card-footer.js +1 -1
  609. package/lib/components-react-node/card/card-heading.js +1 -1
  610. package/lib/components-react-node/card/card.js +2 -2
  611. package/lib/components-react-node/card/image-logo.js +1 -1
  612. package/lib/components-react-node/card-group/card-group-card-link-item.js +1 -1
  613. package/lib/components-react-node/card-group/card-group-item.js +1 -1
  614. package/lib/components-react-node/card-group/card-group.js +1 -1
  615. package/lib/components-react-node/card-in-card/card-in-card-image.js +1 -1
  616. package/lib/components-react-node/card-in-card/card-in-card.js +1 -1
  617. package/lib/components-react-node/card-link/card-link-heading.js +1 -1
  618. package/lib/components-react-node/card-link/card-link.js +1 -1
  619. package/lib/components-react-node/card-section-carousel/card-section-carousel.js +1 -1
  620. package/lib/components-react-node/card-section-offset/card-section-offset.js +1 -1
  621. package/lib/components-react-node/card-section-simple/card-section-simple.js +1 -1
  622. package/lib/components-react-node/carousel/carousel.js +1 -1
  623. package/lib/components-react-node/content-block/content-block-complementary.js +1 -1
  624. package/lib/components-react-node/content-block/content-block-copy.js +1 -1
  625. package/lib/components-react-node/content-block/content-block-heading.js +1 -1
  626. package/lib/components-react-node/content-block/content-block-paragraph.js +1 -1
  627. package/lib/components-react-node/content-block/content-block.js +1 -1
  628. package/lib/components-react-node/content-block-cards/content-block-cards.js +1 -1
  629. package/lib/components-react-node/content-block-horizontal/content-block-horizontal.js +1 -1
  630. package/lib/components-react-node/content-block-media/content-block-media-content.js +1 -1
  631. package/lib/components-react-node/content-block-media/content-block-media.js +1 -1
  632. package/lib/components-react-node/content-block-mixed/content-block-mixed.js +1 -1
  633. package/lib/components-react-node/content-block-segmented/content-block-segmented-item.js +1 -1
  634. package/lib/components-react-node/content-block-segmented/content-block-segmented.js +1 -1
  635. package/lib/components-react-node/content-block-simple/content-block-simple.js +1 -1
  636. package/lib/components-react-node/content-group/content-group-copy.js +1 -1
  637. package/lib/components-react-node/content-group/content-group-heading.js +1 -1
  638. package/lib/components-react-node/content-group/content-group-paragraph.js +1 -1
  639. package/lib/components-react-node/content-group/content-group.js +1 -1
  640. package/lib/components-react-node/content-group-banner/content-group-banner.js +1 -1
  641. package/lib/components-react-node/content-group-cards/content-group-cards-item.js +1 -1
  642. package/lib/components-react-node/content-group-cards/content-group-cards.js +1 -1
  643. package/lib/components-react-node/content-group-pictograms/content-group-pictograms.js +1 -1
  644. package/lib/components-react-node/content-group-simple/content-group-simple.js +1 -1
  645. package/lib/components-react-node/content-item/content-item-copy.js +1 -1
  646. package/lib/components-react-node/content-item/content-item-heading.js +1 -1
  647. package/lib/components-react-node/content-item/content-item-paragraph.js +1 -1
  648. package/lib/components-react-node/content-item/content-item.js +1 -1
  649. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-copy.js +1 -1
  650. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -1
  651. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-copy.js +1 -1
  652. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-featured.js +1 -1
  653. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-video.js +1 -1
  654. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media.js +1 -1
  655. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -1
  656. package/lib/components-react-node/content-item-horizontal/content-item-horizontal.js +1 -1
  657. package/lib/components-react-node/content-section/content-section-copy.js +1 -1
  658. package/lib/components-react-node/content-section/content-section-heading.js +1 -1
  659. package/lib/components-react-node/content-section/content-section.js +1 -1
  660. package/lib/components-react-node/cta/button-cta.js +1 -1
  661. package/lib/components-react-node/cta/card-cta-footer.js +1 -1
  662. package/lib/components-react-node/cta/card-cta-image.js +1 -1
  663. package/lib/components-react-node/cta/card-cta.js +1 -1
  664. package/lib/components-react-node/cta/card-link-cta.js +1 -1
  665. package/lib/components-react-node/cta/feature-cta-footer.js +1 -1
  666. package/lib/components-react-node/cta/feature-cta.js +1 -1
  667. package/lib/components-react-node/cta/link-list-item-card-cta.js +1 -1
  668. package/lib/components-react-node/cta/link-list-item-cta.js +1 -1
  669. package/lib/components-react-node/cta/text-cta.js +1 -1
  670. package/lib/components-react-node/cta/video-cta-composite.js +1 -1
  671. package/lib/components-react-node/cta/video-cta-container.js +1 -1
  672. package/lib/components-react-node/cta-block/cta-block-item-row.js +1 -1
  673. package/lib/components-react-node/cta-block/cta-block-item.js +1 -1
  674. package/lib/components-react-node/cta-block/cta-block.js +1 -1
  675. package/lib/components-react-node/cta-section/cta-section.js +1 -1
  676. package/lib/components-react-node/dotcom-shell/dotcom-shell-composite.js +1 -1
  677. package/lib/components-react-node/dotcom-shell/dotcom-shell-container.js +1 -1
  678. package/lib/components-react-node/dotcom-shell/dotcom-shell.js +1 -1
  679. package/lib/components-react-node/expressive-modal/expressive-modal-body.js +2 -2
  680. package/lib/components-react-node/expressive-modal/expressive-modal-close-button.js +2 -2
  681. package/lib/components-react-node/expressive-modal/expressive-modal-footer.js +2 -2
  682. package/lib/components-react-node/expressive-modal/expressive-modal-header.js +2 -2
  683. package/lib/components-react-node/expressive-modal/expressive-modal-heading.js +2 -2
  684. package/lib/components-react-node/expressive-modal/expressive-modal.js +1 -1
  685. package/lib/components-react-node/feature-card/feature-card-footer.js +1 -1
  686. package/lib/components-react-node/feature-card/feature-card.js +1 -1
  687. package/lib/components-react-node/feature-section/feature-section-card-link.js +1 -1
  688. package/lib/components-react-node/feature-section/feature-section.js +1 -1
  689. package/lib/components-react-node/filter-panel/filter-group-item.js +2 -2
  690. package/lib/components-react-node/filter-panel/filter-group.js +2 -2
  691. package/lib/components-react-node/filter-panel/filter-modal-button.js +2 -2
  692. package/lib/components-react-node/filter-panel/filter-modal-footer.js +2 -2
  693. package/lib/components-react-node/filter-panel/filter-modal-heading.js +2 -2
  694. package/lib/components-react-node/filter-panel/filter-panel-checkbox.js +2 -2
  695. package/lib/components-react-node/filter-panel/filter-panel-composite.js +1 -1
  696. package/lib/components-react-node/filter-panel/filter-panel-heading.js +1 -1
  697. package/lib/components-react-node/filter-panel/filter-panel-input-select-item.js +1 -1
  698. package/lib/components-react-node/filter-panel/filter-panel-input-select.js +1 -1
  699. package/lib/components-react-node/filter-panel/filter-panel-modal.js +2 -2
  700. package/lib/components-react-node/filter-panel/filter-panel.js +1 -1
  701. package/lib/components-react-node/footer/dropdown.js +2 -2
  702. package/lib/components-react-node/footer/footer-composite.js +1 -1
  703. package/lib/components-react-node/footer/footer-container.js +1 -1
  704. package/lib/components-react-node/horizontal-rule/horizontal-rule.js +1 -1
  705. package/lib/components-react-node/image/image-item.js +1 -1
  706. package/lib/components-react-node/image/image.js +1 -1
  707. package/lib/components-react-node/leadspace/breadcrumb-item.js +2 -2
  708. package/lib/components-react-node/leadspace/breadcrumb-link.js +2 -2
  709. package/lib/components-react-node/leadspace/breadcrumb.js +2 -2
  710. package/lib/components-react-node/leadspace/leadspace-heading.js +1 -1
  711. package/lib/components-react-node/leadspace/leadspace-image.js +1 -1
  712. package/lib/components-react-node/leadspace/leadspace.js +1 -1
  713. package/lib/components-react-node/leadspace-block/leadspace-block-content.js +1 -1
  714. package/lib/components-react-node/leadspace-block/leadspace-block-cta.js +1 -1
  715. package/lib/components-react-node/leadspace-block/leadspace-block-heading.js +1 -1
  716. package/lib/components-react-node/leadspace-block/leadspace-block-media.js +1 -1
  717. package/lib/components-react-node/leadspace-block/leadspace-block.js +1 -1
  718. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-copy.js +1 -1
  719. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-heading.js +1 -1
  720. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content.js +1 -1
  721. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-heading.js +1 -1
  722. package/lib/components-react-node/leadspace-with-search/leadspace-with-search.js +1 -1
  723. package/lib/components-react-node/leaving-ibm/leaving-ibm-composite.js +1 -1
  724. package/lib/components-react-node/leaving-ibm/leaving-ibm-container.js +1 -1
  725. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-body.js +2 -2
  726. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-heading.js +2 -2
  727. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -1
  728. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal.js +2 -2
  729. package/lib/components-react-node/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
  730. package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer.js +1 -1
  731. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-composite.js +1 -1
  732. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-container.js +1 -1
  733. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player.js +1 -1
  734. package/lib/components-react-node/link-list/link-list-heading.js +1 -1
  735. package/lib/components-react-node/link-list/link-list-item-card.js +1 -1
  736. package/lib/components-react-node/link-list/link-list-item.js +1 -1
  737. package/lib/components-react-node/link-list/link-list.js +1 -1
  738. package/lib/components-react-node/link-list-section/link-list-section.js +1 -1
  739. package/lib/components-react-node/link-with-icon/link-with-icon.js +2 -2
  740. package/lib/components-react-node/locale-modal/locale-modal-composite.js +1 -1
  741. package/lib/components-react-node/locale-modal/locale-modal-container.js +1 -1
  742. package/lib/components-react-node/logo-grid/logo-grid-item.js +1 -1
  743. package/lib/components-react-node/logo-grid/logo-grid-link.js +1 -1
  744. package/lib/components-react-node/logo-grid/logo-grid.js +1 -1
  745. package/lib/components-react-node/markdown/markdown.js +1 -1
  746. package/lib/components-react-node/masthead/masthead-composite.js +1 -1
  747. package/lib/components-react-node/masthead/masthead-container.js +1 -1
  748. package/lib/components-react-node/masthead/masthead.js +1 -1
  749. package/lib/components-react-node/pictogram-item/pictogram-item.js +1 -1
  750. package/lib/components-react-node/quote/quote-link-with-icon.js +1 -1
  751. package/lib/components-react-node/quote/quote-source-bottom-copy.js +1 -1
  752. package/lib/components-react-node/quote/quote-source-copy.js +1 -1
  753. package/lib/components-react-node/quote/quote-source-heading.js +1 -1
  754. package/lib/components-react-node/quote/quote.js +1 -1
  755. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +2 -2
  756. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +1 -1
  757. package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +1 -1
  758. package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +2 -2
  759. package/lib/components-react-node/structured-list/structured-list-body.js +2 -2
  760. package/lib/components-react-node/structured-list/structured-list-cell.js +2 -2
  761. package/lib/components-react-node/structured-list/structured-list-group.js +1 -1
  762. package/lib/components-react-node/structured-list/structured-list-head.js +2 -2
  763. package/lib/components-react-node/structured-list/structured-list-header-cell.js +2 -2
  764. package/lib/components-react-node/structured-list/structured-list-header-row.js +2 -2
  765. package/lib/components-react-node/structured-list/structured-list-row.js +2 -2
  766. package/lib/components-react-node/structured-list/structured-list.js +1 -1
  767. package/lib/components-react-node/table-of-contents/table-of-contents.js +1 -1
  768. package/lib/components-react-node/tabs-extended/tab.js +1 -1
  769. package/lib/components-react-node/tabs-extended/tabs-extended.js +1 -1
  770. package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +1 -1
  771. package/lib/components-react-node/tag-group/tag-group.js +1 -1
  772. package/lib/components-react-node/tag-link/tag-link.js +1 -1
  773. package/lib/components-react-node/universal-banner/universal-banner-copy.js +1 -1
  774. package/lib/components-react-node/universal-banner/universal-banner-heading.js +1 -1
  775. package/lib/components-react-node/universal-banner/universal-banner-image.js +1 -1
  776. package/lib/components-react-node/universal-banner/universal-banner.js +1 -1
  777. package/lib/components-react-node/video-player/video-player-composite.js +1 -1
  778. package/lib/components-react-node/video-player/video-player-container.js +1 -1
  779. package/lib/components-react-node/video-player/video-player.js +1 -1
  780. package/package.json +4 -4
  781. package/scss/components/background-media/background-media.scss +1 -1
  782. package/scss/components/button/button.scss +1 -1
  783. package/scss/components/expressive-modal/expressive-modal.scss +1 -1
  784. package/scss/components/filter-panel/filter-panel.scss +1 -1
  785. package/scss/components/leadspace/leadspace.scss +1 -1
  786. package/scss/components/leaving-ibm/leaving-ibm.scss +1 -1
  787. package/scss/components/masthead/masthead.scss +3 -3
  788. package/scss/components/search/search.scss +1 -1
@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;IAIN;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,wBAAwB,WAElC;CACF;AAGD,eAAe,uBAAuB,CAAC","file":"video-player-composite.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport ifNonNull from '@carbon/carbon-web-components/es/globals/directives/if-non-null.js';\nimport HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport HybridRenderMixin from '../../globals/mixins/hybrid-render';\nimport { MediaData } from '../../internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.d';\nimport {\n VIDEO_PLAYER_CONTENT_STATE,\n VIDEO_PLAYER_PLAYING_MODE,\n} from './video-player';\n// Above import is interface-only ref and thus code won't be brought into the build\nimport './video-player';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Component that renders video player from its metadata, etc.\n *\n * @element dds-video-player-composite\n */\n@customElement(`${ddsPrefix}-video-player-composite`)\nclass DDSVideoPlayerComposite extends HybridRenderMixin(\n HostListenerMixin(LitElement)\n) {\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _loadVideoData?: (videoId: string) => Promise<MediaData>;\n\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _embedMedia?: (videoId: string, backgroundMode?: boolean) => Promise<any>;\n\n /**\n * The placeholder for `_setAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _setAutoplayPreference: (preference: boolean) => void;\n\n /**\n * The placeholder for `_getAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _getAutoplayPreference: () => null | boolean;\n\n /**\n * Activate the DOM nodes for the embedded video of the given video ID, and deactivates others.\n *\n * @param videoId The video ID to activate.\n */\n protected _activateEmbeddedVideo(videoId: string) {\n const { embeddedVideos = {} } = this;\n Object.keys(embeddedVideos).forEach((key) => {\n embeddedVideos[key].sendNotification(\n key === videoId ? 'doPlay' : 'doStop'\n );\n });\n }\n\n /**\n * The video player.\n */\n protected get _videoPlayer() {\n const { selectorVideoPlayer } = this\n .constructor as typeof DDSVideoPlayerComposite;\n return this.querySelector(selectorVideoPlayer);\n }\n\n /**\n * Handles `dds-video-player-content-state-changed` event.\n * Such event is fired when user changes video content state, e.g. from thumbnail to video player.\n *\n * @param event The event.\n */\n @HostListener('eventContentStateChange')\n protected _handleContentStateChange(event: CustomEvent) {\n const { contentState, playingMode, videoId } = event.detail;\n if (\n contentState === VIDEO_PLAYER_CONTENT_STATE.VIDEO &&\n playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE &&\n videoId\n ) {\n this._embedMedia?.(videoId, this.backgroundMode);\n }\n }\n\n @HostListener('eventPlaybackStateChange')\n protected _handlePlaybackStateChange(event: CustomEvent) {\n const { videoId } = event.detail;\n const { embeddedVideos = {} } = this;\n\n if (this.isPlaying) {\n embeddedVideos[videoId].sendNotification('doPause');\n this.isPlaying = false;\n } else {\n embeddedVideos[videoId].sendNotification('doPlay');\n this.isPlaying = true;\n }\n\n this._setAutoplayPreference(this.isPlaying);\n }\n\n pauseAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPause');\n });\n this.isPlaying = false;\n }\n\n playAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPlay');\n });\n this.isPlaying = false;\n }\n\n /**\n * `true` to autoplay the videos.\n */\n @property({ type: Boolean, attribute: 'auto-play' })\n autoPlay = false;\n\n /**\n * The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n */\n @property({ attribute: false })\n embeddedVideos?: { [videoId: string]: any };\n\n /**\n * Optional custom video caption.\n */\n @property({ reflect: true, attribute: 'caption' })\n caption?: '';\n\n /**\n * Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.\n */\n @property({ reflect: true, attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption?: ({\n duration,\n name,\n }: {\n duration?: string;\n name?: string;\n }) => string;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration?: ({ duration }: { duration?: number }) => string;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * `true` to autoplay, mute, and hide player UI.\n */\n @property({ type: Boolean, attribute: 'background-mode' })\n backgroundMode = false;\n\n /**\n * The video data, keyed by the video ID.\n */\n @property({ attribute: false })\n mediaData?: { [videoId: string]: MediaData };\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId = '';\n\n /**\n * The aspect ratio.\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: '';\n\n /**\n * The current playback state\n */\n @property()\n isPlaying = false;\n\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Optional custom video thumbnail\n */\n @property({ reflect: true, attribute: 'thumbnail' })\n thumbnail?: '';\n\n /**\n * The video thumbnail width.\n */\n @property({ type: Number, attribute: 'video-thumbnail-width' })\n videoThumbnailWidth = 3;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (this.backgroundMode) {\n this.hideCaption = true;\n }\n\n if (this.autoPlay || this.backgroundMode) {\n const storedPreference = this._getAutoplayPreference();\n if (storedPreference === null) {\n this.isPlaying = !window.matchMedia('(prefers-reduced-motion: reduce)')\n .matches;\n } else {\n this.isPlaying = storedPreference;\n }\n }\n }\n\n updated(changedProperties) {\n if (changedProperties.has('videoId')) {\n const { autoPlay, videoId, backgroundMode } = this;\n this._activateEmbeddedVideo(videoId);\n if (videoId) {\n this._loadVideoData?.(videoId);\n if (autoPlay || backgroundMode) {\n this._embedMedia?.(videoId, backgroundMode);\n }\n }\n }\n }\n\n renderLightDOM() {\n const {\n aspectRatio,\n formatCaption,\n formatDuration,\n hideCaption,\n caption,\n customVideoDescription,\n mediaData = {},\n videoId,\n videoThumbnailWidth,\n thumbnail,\n playingMode,\n } = this;\n const { [videoId]: currentVideoData = {} as MediaData } = mediaData;\n const { duration, name } = currentVideoData;\n const thumbnailUrl =\n thumbnail ||\n KalturaPlayerAPI.getThumbnailUrl({\n mediaId: videoId,\n width: String(videoThumbnailWidth),\n });\n return html`\n <dds-video-player\n duration=\"${ifNonNull(duration)}\"\n ?hide-caption=${hideCaption}\n name=\"${ifNonNull(caption || name)}\"\n video-description=\"${ifNonNull(customVideoDescription)}\"\n thumbnail-url=\"${ifNonNull(thumbnailUrl)}\"\n video-id=\"${ifNonNull(videoId)}\"\n aspect-ratio=\"${ifNonNull(aspectRatio)}\"\n .formatCaption=\"${ifNonNull(formatCaption)}\"\n .formatDuration=\"${ifNonNull(formatDuration)}\"\n playing-mode=\"${ifNonNull(playingMode)}\"\n >\n </dds-video-player>\n `;\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector selecting the video player component.\n */\n static get selectorVideoPlayer() {\n return `${ddsPrefix}-video-player`;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayerComposite;\n"]}
1
+ {"version":3,"sources":["components/video-player/video-player-composite.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;AAOxE,OAAO,EAAE,SAAS,EAAE,MAAM,iFAAiF,CAAC;AAC5G,OAAO,EAEL,yBAAyB,EAC1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA8RtB;;WAEG;;;;;QAKH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnSL;;;;GAIG;A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,UAAS;IAElB;;OAEG;IAEH,WAAW,4BAAoC;IAE/C;;OAEG;IAEH,SAAS,CAAC,EAAE,EAAE,CAAC;IAEf;;OAEG;IAEH,mBAAmB,SAAK;IAExB,iBAAiB;IAkBjB,OAAO,CAAC,iBAAiB,KAAA;IAazB,cAAc;IAuCd,MAAM;IAIN;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,wBAAwB,WAElC;CACF;AAGD,eAAe,uBAAuB,CAAC","file":"video-player-composite.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport ifNonNull from '@carbon/web-components/es/globals/directives/if-non-null.js';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport HybridRenderMixin from '../../globals/mixins/hybrid-render';\nimport { MediaData } from '../../internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.d';\nimport {\n VIDEO_PLAYER_CONTENT_STATE,\n VIDEO_PLAYER_PLAYING_MODE,\n} from './video-player';\n// Above import is interface-only ref and thus code won't be brought into the build\nimport './video-player';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Component that renders video player from its metadata, etc.\n *\n * @element dds-video-player-composite\n */\n@customElement(`${ddsPrefix}-video-player-composite`)\nclass DDSVideoPlayerComposite extends HybridRenderMixin(\n HostListenerMixin(LitElement)\n) {\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _loadVideoData?: (videoId: string) => Promise<MediaData>;\n\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _embedMedia?: (videoId: string, backgroundMode?: boolean) => Promise<any>;\n\n /**\n * The placeholder for `_setAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _setAutoplayPreference: (preference: boolean) => void;\n\n /**\n * The placeholder for `_getAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _getAutoplayPreference: () => null | boolean;\n\n /**\n * Activate the DOM nodes for the embedded video of the given video ID, and deactivates others.\n *\n * @param videoId The video ID to activate.\n */\n protected _activateEmbeddedVideo(videoId: string) {\n const { embeddedVideos = {} } = this;\n Object.keys(embeddedVideos).forEach((key) => {\n embeddedVideos[key].sendNotification(\n key === videoId ? 'doPlay' : 'doStop'\n );\n });\n }\n\n /**\n * The video player.\n */\n protected get _videoPlayer() {\n const { selectorVideoPlayer } = this\n .constructor as typeof DDSVideoPlayerComposite;\n return this.querySelector(selectorVideoPlayer);\n }\n\n /**\n * Handles `dds-video-player-content-state-changed` event.\n * Such event is fired when user changes video content state, e.g. from thumbnail to video player.\n *\n * @param event The event.\n */\n @HostListener('eventContentStateChange')\n protected _handleContentStateChange(event: CustomEvent) {\n const { contentState, playingMode, videoId } = event.detail;\n if (\n contentState === VIDEO_PLAYER_CONTENT_STATE.VIDEO &&\n playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE &&\n videoId\n ) {\n this._embedMedia?.(videoId, this.backgroundMode);\n }\n }\n\n @HostListener('eventPlaybackStateChange')\n protected _handlePlaybackStateChange(event: CustomEvent) {\n const { videoId } = event.detail;\n const { embeddedVideos = {} } = this;\n\n if (this.isPlaying) {\n embeddedVideos[videoId].sendNotification('doPause');\n this.isPlaying = false;\n } else {\n embeddedVideos[videoId].sendNotification('doPlay');\n this.isPlaying = true;\n }\n\n this._setAutoplayPreference(this.isPlaying);\n }\n\n pauseAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPause');\n });\n this.isPlaying = false;\n }\n\n playAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPlay');\n });\n this.isPlaying = false;\n }\n\n /**\n * `true` to autoplay the videos.\n */\n @property({ type: Boolean, attribute: 'auto-play' })\n autoPlay = false;\n\n /**\n * The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n */\n @property({ attribute: false })\n embeddedVideos?: { [videoId: string]: any };\n\n /**\n * Optional custom video caption.\n */\n @property({ reflect: true, attribute: 'caption' })\n caption?: '';\n\n /**\n * Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.\n */\n @property({ reflect: true, attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption?: ({\n duration,\n name,\n }: {\n duration?: string;\n name?: string;\n }) => string;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration?: ({ duration }: { duration?: number }) => string;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * `true` to autoplay, mute, and hide player UI.\n */\n @property({ type: Boolean, attribute: 'background-mode' })\n backgroundMode = false;\n\n /**\n * The video data, keyed by the video ID.\n */\n @property({ attribute: false })\n mediaData?: { [videoId: string]: MediaData };\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId = '';\n\n /**\n * The aspect ratio.\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: '';\n\n /**\n * The current playback state\n */\n @property()\n isPlaying = false;\n\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Optional custom video thumbnail\n */\n @property({ reflect: true, attribute: 'thumbnail' })\n thumbnail?: '';\n\n /**\n * The video thumbnail width.\n */\n @property({ type: Number, attribute: 'video-thumbnail-width' })\n videoThumbnailWidth = 3;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (this.backgroundMode) {\n this.hideCaption = true;\n }\n\n if (this.autoPlay || this.backgroundMode) {\n const storedPreference = this._getAutoplayPreference();\n if (storedPreference === null) {\n this.isPlaying = !window.matchMedia('(prefers-reduced-motion: reduce)')\n .matches;\n } else {\n this.isPlaying = storedPreference;\n }\n }\n }\n\n updated(changedProperties) {\n if (changedProperties.has('videoId')) {\n const { autoPlay, videoId, backgroundMode } = this;\n this._activateEmbeddedVideo(videoId);\n if (videoId) {\n this._loadVideoData?.(videoId);\n if (autoPlay || backgroundMode) {\n this._embedMedia?.(videoId, backgroundMode);\n }\n }\n }\n }\n\n renderLightDOM() {\n const {\n aspectRatio,\n formatCaption,\n formatDuration,\n hideCaption,\n caption,\n customVideoDescription,\n mediaData = {},\n videoId,\n videoThumbnailWidth,\n thumbnail,\n playingMode,\n } = this;\n const { [videoId]: currentVideoData = {} as MediaData } = mediaData;\n const { duration, name } = currentVideoData;\n const thumbnailUrl =\n thumbnail ||\n KalturaPlayerAPI.getThumbnailUrl({\n mediaId: videoId,\n width: String(videoThumbnailWidth),\n });\n return html`\n <dds-video-player\n duration=\"${ifNonNull(duration)}\"\n ?hide-caption=${hideCaption}\n name=\"${ifNonNull(caption || name)}\"\n video-description=\"${ifNonNull(customVideoDescription)}\"\n thumbnail-url=\"${ifNonNull(thumbnailUrl)}\"\n video-id=\"${ifNonNull(videoId)}\"\n aspect-ratio=\"${ifNonNull(aspectRatio)}\"\n .formatCaption=\"${ifNonNull(formatCaption)}\"\n .formatDuration=\"${ifNonNull(formatDuration)}\"\n playing-mode=\"${ifNonNull(playingMode)}\"\n >\n </dds-video-player>\n `;\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector selecting the video player component.\n */\n static get selectorVideoPlayer() {\n return `${ddsPrefix}-video-player`;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayerComposite;\n"]}
@@ -14,9 +14,9 @@ let _ = t => t,
14
14
  */
15
15
 
16
16
  import { html, property, customElement, LitElement } from 'lit-element';
17
- import ifNonNull from '@carbon/carbon-web-components/es/globals/directives/if-non-null.js';
18
- import HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';
19
- import HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';
17
+ import ifNonNull from '@carbon/web-components/es/globals/directives/if-non-null.js';
18
+ import HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';
19
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
20
20
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
21
21
  import KalturaPlayerAPI from "../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js";
22
22
  import HybridRenderMixin from "../../globals/mixins/hybrid-render.js";
@@ -1 +1 @@
1
- {"version":3,"file":"video-player-composite.js","names":["html","property","customElement","LitElement","ifNonNull","HostListener","HostListenerMixin","ddsSettings","KalturaPlayerAPI","HybridRenderMixin","VIDEO_PLAYER_CONTENT_STATE","VIDEO_PLAYER_PLAYING_MODE","stablePrefix","ddsPrefix","DDSVideoPlayerComposite","videoId","embeddedVideos","Object","keys","forEach","key","sendNotification","selectorVideoPlayer","constructor","querySelector","event","contentState","playingMode","detail","VIDEO","INLINE","_embedMedia","backgroundMode","isPlaying","_setAutoplayPreference","type","Boolean","attribute","reflect","Number","hideCaption","autoPlay","storedPreference","_getAutoplayPreference","window","matchMedia","matches","changedProperties","has","_activateEmbeddedVideo","_loadVideoData","aspectRatio","formatCaption","formatDuration","caption","customVideoDescription","mediaData","videoThumbnailWidth","thumbnail","currentVideoData","duration","name","thumbnailUrl","getThumbnailUrl","mediaId","width","String"],"sources":["components/video-player/video-player-composite.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport ifNonNull from '@carbon/carbon-web-components/es/globals/directives/if-non-null.js';\nimport HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport HybridRenderMixin from '../../globals/mixins/hybrid-render';\nimport { MediaData } from '../../internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.d';\nimport {\n VIDEO_PLAYER_CONTENT_STATE,\n VIDEO_PLAYER_PLAYING_MODE,\n} from './video-player';\n// Above import is interface-only ref and thus code won't be brought into the build\nimport './video-player';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Component that renders video player from its metadata, etc.\n *\n * @element dds-video-player-composite\n */\n@customElement(`${ddsPrefix}-video-player-composite`)\nclass DDSVideoPlayerComposite extends HybridRenderMixin(\n HostListenerMixin(LitElement)\n) {\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _loadVideoData?: (videoId: string) => Promise<MediaData>;\n\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _embedMedia?: (videoId: string, backgroundMode?: boolean) => Promise<any>;\n\n /**\n * The placeholder for `_setAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _setAutoplayPreference: (preference: boolean) => void;\n\n /**\n * The placeholder for `_getAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _getAutoplayPreference: () => null | boolean;\n\n /**\n * Activate the DOM nodes for the embedded video of the given video ID, and deactivates others.\n *\n * @param videoId The video ID to activate.\n */\n protected _activateEmbeddedVideo(videoId: string) {\n const { embeddedVideos = {} } = this;\n Object.keys(embeddedVideos).forEach((key) => {\n embeddedVideos[key].sendNotification(\n key === videoId ? 'doPlay' : 'doStop'\n );\n });\n }\n\n /**\n * The video player.\n */\n protected get _videoPlayer() {\n const { selectorVideoPlayer } = this\n .constructor as typeof DDSVideoPlayerComposite;\n return this.querySelector(selectorVideoPlayer);\n }\n\n /**\n * Handles `dds-video-player-content-state-changed` event.\n * Such event is fired when user changes video content state, e.g. from thumbnail to video player.\n *\n * @param event The event.\n */\n @HostListener('eventContentStateChange')\n protected _handleContentStateChange(event: CustomEvent) {\n const { contentState, playingMode, videoId } = event.detail;\n if (\n contentState === VIDEO_PLAYER_CONTENT_STATE.VIDEO &&\n playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE &&\n videoId\n ) {\n this._embedMedia?.(videoId, this.backgroundMode);\n }\n }\n\n @HostListener('eventPlaybackStateChange')\n protected _handlePlaybackStateChange(event: CustomEvent) {\n const { videoId } = event.detail;\n const { embeddedVideos = {} } = this;\n\n if (this.isPlaying) {\n embeddedVideos[videoId].sendNotification('doPause');\n this.isPlaying = false;\n } else {\n embeddedVideos[videoId].sendNotification('doPlay');\n this.isPlaying = true;\n }\n\n this._setAutoplayPreference(this.isPlaying);\n }\n\n pauseAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPause');\n });\n this.isPlaying = false;\n }\n\n playAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPlay');\n });\n this.isPlaying = false;\n }\n\n /**\n * `true` to autoplay the videos.\n */\n @property({ type: Boolean, attribute: 'auto-play' })\n autoPlay = false;\n\n /**\n * The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n */\n @property({ attribute: false })\n embeddedVideos?: { [videoId: string]: any };\n\n /**\n * Optional custom video caption.\n */\n @property({ reflect: true, attribute: 'caption' })\n caption?: '';\n\n /**\n * Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.\n */\n @property({ reflect: true, attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption?: ({\n duration,\n name,\n }: {\n duration?: string;\n name?: string;\n }) => string;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration?: ({ duration }: { duration?: number }) => string;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * `true` to autoplay, mute, and hide player UI.\n */\n @property({ type: Boolean, attribute: 'background-mode' })\n backgroundMode = false;\n\n /**\n * The video data, keyed by the video ID.\n */\n @property({ attribute: false })\n mediaData?: { [videoId: string]: MediaData };\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId = '';\n\n /**\n * The aspect ratio.\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: '';\n\n /**\n * The current playback state\n */\n @property()\n isPlaying = false;\n\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Optional custom video thumbnail\n */\n @property({ reflect: true, attribute: 'thumbnail' })\n thumbnail?: '';\n\n /**\n * The video thumbnail width.\n */\n @property({ type: Number, attribute: 'video-thumbnail-width' })\n videoThumbnailWidth = 3;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (this.backgroundMode) {\n this.hideCaption = true;\n }\n\n if (this.autoPlay || this.backgroundMode) {\n const storedPreference = this._getAutoplayPreference();\n if (storedPreference === null) {\n this.isPlaying = !window.matchMedia('(prefers-reduced-motion: reduce)')\n .matches;\n } else {\n this.isPlaying = storedPreference;\n }\n }\n }\n\n updated(changedProperties) {\n if (changedProperties.has('videoId')) {\n const { autoPlay, videoId, backgroundMode } = this;\n this._activateEmbeddedVideo(videoId);\n if (videoId) {\n this._loadVideoData?.(videoId);\n if (autoPlay || backgroundMode) {\n this._embedMedia?.(videoId, backgroundMode);\n }\n }\n }\n }\n\n renderLightDOM() {\n const {\n aspectRatio,\n formatCaption,\n formatDuration,\n hideCaption,\n caption,\n customVideoDescription,\n mediaData = {},\n videoId,\n videoThumbnailWidth,\n thumbnail,\n playingMode,\n } = this;\n const { [videoId]: currentVideoData = {} as MediaData } = mediaData;\n const { duration, name } = currentVideoData;\n const thumbnailUrl =\n thumbnail ||\n KalturaPlayerAPI.getThumbnailUrl({\n mediaId: videoId,\n width: String(videoThumbnailWidth),\n });\n return html`\n <dds-video-player\n duration=\"${ifNonNull(duration)}\"\n ?hide-caption=${hideCaption}\n name=\"${ifNonNull(caption || name)}\"\n video-description=\"${ifNonNull(customVideoDescription)}\"\n thumbnail-url=\"${ifNonNull(thumbnailUrl)}\"\n video-id=\"${ifNonNull(videoId)}\"\n aspect-ratio=\"${ifNonNull(aspectRatio)}\"\n .formatCaption=\"${ifNonNull(formatCaption)}\"\n .formatDuration=\"${ifNonNull(formatDuration)}\"\n playing-mode=\"${ifNonNull(playingMode)}\"\n >\n </dds-video-player>\n `;\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector selecting the video player component.\n */\n static get selectorVideoPlayer() {\n return `${ddsPrefix}-video-player`;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayerComposite;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAAOC,SAAS,MAAM,oEAAoE;AAC1F,OAAOC,YAAY,MAAM,sEAAsE;AAC/F,OAAOC,iBAAiB,MAAM,kEAAkE;AAChG,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,gBAAgB,MAAM,0FAAuF;AACpH,OAAOC,iBAAiB,MAAM,uCAAoC;AAElE,SACEC,0BAA0B,EAC1BC,yBAAyB,QACpB,mBAAgB;AACvB;AAAA;AAAA;AACA,OAAO,mBAAgB;AAEvB,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGN,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMO,uBAAuB,cAD5BZ,aAAa,CAAE,GAAEW,SAAU,yBAAwB,CAAC;EAArD,MACMC,uBAAuB,4BAE3B;IAAA;MAAA;MAAA;IAAA;EAsSF;EAAC;IAAA,GAxSKA,uBAAuB;IAAA;MAAA;MAAA;MAAA;MAG3B;AACF;AACA;AACA;AACA;;MAGE;AACF;AACA;AACA;AACA;;MAGE;AACF;AACA;MACE;;MAGA;AACF;AACA;MACE;;MAGA;AACF;AACA;AACA;AACA;MACE,gCAAiCC,OAAe,EAAE;QAChD,MAAM;UAAEC,cAAc,GAAG,CAAC;QAAE,CAAC,GAAG,IAAI;QACpCC,MAAM,CAACC,IAAI,CAACF,cAAc,CAAC,CAACG,OAAO,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A,mCAAqC;QACnC,OAAQ,GAAEA,SAAU,qCAAoC;MAC1D;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,oCAAsC;QACpC,OAAQ,GAAEA,SAAU,sCAAqC;MAC3D;IAAC;EAAA;AAAA,GAvSmCJ,iBAAiB,CACrDH,iBAAiB,CAACH,UAAU,CAAC,CAC9B,GAwSD;AACA,eAAeW,uBAAuB"}
1
+ {"version":3,"file":"video-player-composite.js","names":["html","property","customElement","LitElement","ifNonNull","HostListener","HostListenerMixin","ddsSettings","KalturaPlayerAPI","HybridRenderMixin","VIDEO_PLAYER_CONTENT_STATE","VIDEO_PLAYER_PLAYING_MODE","stablePrefix","ddsPrefix","DDSVideoPlayerComposite","videoId","embeddedVideos","Object","keys","forEach","key","sendNotification","selectorVideoPlayer","constructor","querySelector","event","contentState","playingMode","detail","VIDEO","INLINE","_embedMedia","backgroundMode","isPlaying","_setAutoplayPreference","type","Boolean","attribute","reflect","Number","hideCaption","autoPlay","storedPreference","_getAutoplayPreference","window","matchMedia","matches","changedProperties","has","_activateEmbeddedVideo","_loadVideoData","aspectRatio","formatCaption","formatDuration","caption","customVideoDescription","mediaData","videoThumbnailWidth","thumbnail","currentVideoData","duration","name","thumbnailUrl","getThumbnailUrl","mediaId","width","String"],"sources":["components/video-player/video-player-composite.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport ifNonNull from '@carbon/web-components/es/globals/directives/if-non-null.js';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport HybridRenderMixin from '../../globals/mixins/hybrid-render';\nimport { MediaData } from '../../internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.d';\nimport {\n VIDEO_PLAYER_CONTENT_STATE,\n VIDEO_PLAYER_PLAYING_MODE,\n} from './video-player';\n// Above import is interface-only ref and thus code won't be brought into the build\nimport './video-player';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Component that renders video player from its metadata, etc.\n *\n * @element dds-video-player-composite\n */\n@customElement(`${ddsPrefix}-video-player-composite`)\nclass DDSVideoPlayerComposite extends HybridRenderMixin(\n HostListenerMixin(LitElement)\n) {\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _loadVideoData?: (videoId: string) => Promise<MediaData>;\n\n /**\n * The placeholder for `_loadVideoData()` Redux action that may be mixed in.\n *\n * @internal\n */\n _embedMedia?: (videoId: string, backgroundMode?: boolean) => Promise<any>;\n\n /**\n * The placeholder for `_setAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _setAutoplayPreference: (preference: boolean) => void;\n\n /**\n * The placeholder for `_getAutoplayPreference()` Redux action that may be mixed in.\n */\n // @ts-ignore\n _getAutoplayPreference: () => null | boolean;\n\n /**\n * Activate the DOM nodes for the embedded video of the given video ID, and deactivates others.\n *\n * @param videoId The video ID to activate.\n */\n protected _activateEmbeddedVideo(videoId: string) {\n const { embeddedVideos = {} } = this;\n Object.keys(embeddedVideos).forEach((key) => {\n embeddedVideos[key].sendNotification(\n key === videoId ? 'doPlay' : 'doStop'\n );\n });\n }\n\n /**\n * The video player.\n */\n protected get _videoPlayer() {\n const { selectorVideoPlayer } = this\n .constructor as typeof DDSVideoPlayerComposite;\n return this.querySelector(selectorVideoPlayer);\n }\n\n /**\n * Handles `dds-video-player-content-state-changed` event.\n * Such event is fired when user changes video content state, e.g. from thumbnail to video player.\n *\n * @param event The event.\n */\n @HostListener('eventContentStateChange')\n protected _handleContentStateChange(event: CustomEvent) {\n const { contentState, playingMode, videoId } = event.detail;\n if (\n contentState === VIDEO_PLAYER_CONTENT_STATE.VIDEO &&\n playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE &&\n videoId\n ) {\n this._embedMedia?.(videoId, this.backgroundMode);\n }\n }\n\n @HostListener('eventPlaybackStateChange')\n protected _handlePlaybackStateChange(event: CustomEvent) {\n const { videoId } = event.detail;\n const { embeddedVideos = {} } = this;\n\n if (this.isPlaying) {\n embeddedVideos[videoId].sendNotification('doPause');\n this.isPlaying = false;\n } else {\n embeddedVideos[videoId].sendNotification('doPlay');\n this.isPlaying = true;\n }\n\n this._setAutoplayPreference(this.isPlaying);\n }\n\n pauseAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPause');\n });\n this.isPlaying = false;\n }\n\n playAllVideos() {\n const { embeddedVideos = {} } = this;\n\n Object.keys(embeddedVideos).forEach((videoId) => {\n embeddedVideos[videoId].sendNotification('doPlay');\n });\n this.isPlaying = false;\n }\n\n /**\n * `true` to autoplay the videos.\n */\n @property({ type: Boolean, attribute: 'auto-play' })\n autoPlay = false;\n\n /**\n * The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n */\n @property({ attribute: false })\n embeddedVideos?: { [videoId: string]: any };\n\n /**\n * Optional custom video caption.\n */\n @property({ reflect: true, attribute: 'caption' })\n caption?: '';\n\n /**\n * Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.\n */\n @property({ reflect: true, attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption?: ({\n duration,\n name,\n }: {\n duration?: string;\n name?: string;\n }) => string;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration?: ({ duration }: { duration?: number }) => string;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * `true` to autoplay, mute, and hide player UI.\n */\n @property({ type: Boolean, attribute: 'background-mode' })\n backgroundMode = false;\n\n /**\n * The video data, keyed by the video ID.\n */\n @property({ attribute: false })\n mediaData?: { [videoId: string]: MediaData };\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId = '';\n\n /**\n * The aspect ratio.\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: '';\n\n /**\n * The current playback state\n */\n @property()\n isPlaying = false;\n\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Optional custom video thumbnail\n */\n @property({ reflect: true, attribute: 'thumbnail' })\n thumbnail?: '';\n\n /**\n * The video thumbnail width.\n */\n @property({ type: Number, attribute: 'video-thumbnail-width' })\n videoThumbnailWidth = 3;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (this.backgroundMode) {\n this.hideCaption = true;\n }\n\n if (this.autoPlay || this.backgroundMode) {\n const storedPreference = this._getAutoplayPreference();\n if (storedPreference === null) {\n this.isPlaying = !window.matchMedia('(prefers-reduced-motion: reduce)')\n .matches;\n } else {\n this.isPlaying = storedPreference;\n }\n }\n }\n\n updated(changedProperties) {\n if (changedProperties.has('videoId')) {\n const { autoPlay, videoId, backgroundMode } = this;\n this._activateEmbeddedVideo(videoId);\n if (videoId) {\n this._loadVideoData?.(videoId);\n if (autoPlay || backgroundMode) {\n this._embedMedia?.(videoId, backgroundMode);\n }\n }\n }\n }\n\n renderLightDOM() {\n const {\n aspectRatio,\n formatCaption,\n formatDuration,\n hideCaption,\n caption,\n customVideoDescription,\n mediaData = {},\n videoId,\n videoThumbnailWidth,\n thumbnail,\n playingMode,\n } = this;\n const { [videoId]: currentVideoData = {} as MediaData } = mediaData;\n const { duration, name } = currentVideoData;\n const thumbnailUrl =\n thumbnail ||\n KalturaPlayerAPI.getThumbnailUrl({\n mediaId: videoId,\n width: String(videoThumbnailWidth),\n });\n return html`\n <dds-video-player\n duration=\"${ifNonNull(duration)}\"\n ?hide-caption=${hideCaption}\n name=\"${ifNonNull(caption || name)}\"\n video-description=\"${ifNonNull(customVideoDescription)}\"\n thumbnail-url=\"${ifNonNull(thumbnailUrl)}\"\n video-id=\"${ifNonNull(videoId)}\"\n aspect-ratio=\"${ifNonNull(aspectRatio)}\"\n .formatCaption=\"${ifNonNull(formatCaption)}\"\n .formatDuration=\"${ifNonNull(formatDuration)}\"\n playing-mode=\"${ifNonNull(playingMode)}\"\n >\n </dds-video-player>\n `;\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector selecting the video player component.\n */\n static get selectorVideoPlayer() {\n return `${ddsPrefix}-video-player`;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayerComposite;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAAOC,SAAS,MAAM,6DAA6D;AACnF,OAAOC,YAAY,MAAM,+DAA+D;AACxF,OAAOC,iBAAiB,MAAM,2DAA2D;AACzF,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,gBAAgB,MAAM,0FAAuF;AACpH,OAAOC,iBAAiB,MAAM,uCAAoC;AAElE,SACEC,0BAA0B,EAC1BC,yBAAyB,QACpB,mBAAgB;AACvB;AAAA;AAAA;AACA,OAAO,mBA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,CAAC,EACfpB,WAAW,EACnBpC,SAAS,CAACkD,OAAO,IAAIO,IAAI,CAAC,EACbzD,SAAS,CAACmD,sBAAsB,CAAC,EACrCnD,SAAS,CAAC0D,YAAY,CAAC,EAC5B1D,SAAS,CAACW,OAAO,CAAC,EACdX,SAAS,CAAC+C,WAAW,CAAC,EACpB/C,SAAS,CAACgD,aAAa,CAAC,EACvBhD,SAAS,CAACiD,cAAc,CAAC,EAC5BjD,SAAS,CAACuB,WAAW,CAAC;MAI5C;IAAC;MAAA;MAAA;MAAA,OAED,kBAAS;QACP,OAAO3B,IAAI,gBAAC,iBAAe;MAC7B;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,+BAAiC;QAC/B,OAAQ,GAAEa,SAAU,eAAc;MACpC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,mCAAqC;QACnC,OAAQ,GAAEA,SAAU,qCAAoC;MAC1D;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,oCAAsC;QACpC,OAAQ,GAAEA,SAAU,sCAAqC;MAC3D;IAAC;EAAA;AAAA,GAvSmCJ,iBAAiB,CACrDH,iBAAiB,CAACH,UAAU,CAAC,CAC9B,GAwSD;AACA,eAAeW,uBAAuB"}
@@ -100,6 +100,9 @@ declare const DDSVideoPlayer_base: (new (...args: any[]) => {
100
100
  scrollTo(options?: ScrollToOptions | undefined): void;
101
101
  scrollTo(x: number, y: number): void;
102
102
  setAttribute(qualifiedName: string, value: string): void;
103
+ /**
104
+ * The thumbnail URL.
105
+ */
103
106
  setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
104
107
  setAttributeNode(attr: Attr): Attr | null;
105
108
  setAttributeNodeNS(attr: Attr): Attr | null;
@@ -146,6 +149,9 @@ declare const DDSVideoPlayer_base: (new (...args: any[]) => {
146
149
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
147
150
  readonly DOCUMENT_POSITION_PRECEDING: number;
148
151
  readonly DOCUMENT_TYPE_NODE: number;
152
+ /**
153
+ * The name of the custom event fired requesting playback state change.
154
+ */
149
155
  readonly ELEMENT_NODE: number;
150
156
  readonly ENTITY_NODE: number;
151
157
  readonly ENTITY_REFERENCE_NODE: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/video-player/video-player.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;AAYxE,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,gBAAgB,CAAC;AAMxB,OAAO,EAAE,0BAA0B,EAAE,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,cAAc,CAAC","file":"video-player.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ifNonNull from '@carbon/carbon-web-components/es/globals/directives/if-non-null.js';\nimport FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';\nimport PlayVideo from '@carbon/ibmdotcom-styles/icons/svg/play-video.svg';\nimport {\n formatVideoCaption,\n formatVideoDuration,\n} from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport { VIDEO_PLAYER_CONTENT_STATE, VIDEO_PLAYER_PLAYING_MODE } from './defs';\nimport '../image/image';\nimport styles from './video-player.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport DDSVideoPlayerContainer from './video-player-container';\nimport ParentVisibilityMixin from '../../component-mixins/parent-visibility/parent-visibility';\n\nexport { VIDEO_PLAYER_CONTENT_STATE };\nexport { VIDEO_PLAYER_PLAYING_MODE };\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Video player.\n *\n * @element dds-video-player\n */\n@customElement(`${ddsPrefix}-video-player`)\nclass DDSVideoPlayer extends FocusMixin(\n StableSelectorMixin(ParentVisibilityMixin(LitElement))\n) {\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Handles `click` event on the video thumbnail.\n */\n private _handleClickOverlay() {\n if (this.playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE) {\n this.contentState = VIDEO_PLAYER_CONTENT_STATE.VIDEO;\n }\n const { videoId, name, customVideoDescription } = this;\n const { eventContentStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n contentState: VIDEO_PLAYER_CONTENT_STATE.VIDEO,\n playingMode: this.playingMode,\n name,\n customVideoDescription,\n },\n })\n );\n }\n\n /**\n * @returns The video content.\n */\n private _renderContent() {\n const { contentState, name, thumbnailUrl, backgroundMode } = this;\n return contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL &&\n !backgroundMode\n ? html`\n <div class=\"${prefix}--video-player__video\">\n <button\n class=\"${prefix}--video-player__image-overlay\"\n @click=\"${this._handleClickOverlay}\"\n >\n <dds-image default-src=\"${thumbnailUrl}\" alt=\"${ifNonNull(name)}\">\n ${PlayVideo({ slot: 'icon' })}\n </dds-image>\n </button>\n </div>\n `\n : html` <slot></slot> `;\n }\n\n /**\n * Updates video thumbnail url to match video width\n */\n private _updateThumbnailUrl() {\n const thumbnailSrc = new URL(this.thumbnailUrl || '');\n\n // If current thumbnail is from Kaltura and includes this video's ID we should be able to safely update it.\n if (\n thumbnailSrc.host.toLowerCase().includes('kaltura') &&\n thumbnailSrc.pathname.includes(this.videoId!)\n ) {\n this.thumbnailUrl = KalturaPlayerAPI.getThumbnailUrl({\n mediaId: this.videoId,\n width: String(this.offsetWidth),\n });\n }\n }\n\n public _onParentVisible() {\n this._updateThumbnailUrl();\n }\n\n /**\n * userInitiatedTogglePlaybackState\n */\n public userInitiatedTogglePlaybackState() {\n const { videoId } = this;\n const { eventPlaybackStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventPlaybackStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n playingMode: this.playingMode,\n },\n })\n );\n }\n\n /**\n * The video player's content state.\n */\n @property({ reflect: true, attribute: 'content-state' })\n contentState = VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL;\n\n /**\n * The video duration.\n */\n @property({ type: Number })\n duration?: number;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption = formatVideoCaption;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration = formatVideoDuration;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * The video name.\n */\n @property()\n name = '';\n\n /**\n * `true` to autoplay, mute video, and hide UI\n */\n @property({ attribute: 'background-mode', reflect: true })\n backgroundMode: boolean = false;\n\n /**\n * Custom video description. This property should only be set when using `playing-mode=\"lightbox\"`\n */\n @property({ attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The thumbnail URL.\n */\n @property({ attribute: 'thumbnail-url' })\n thumbnailUrl = '';\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId?: string;\n\n /**\n * Override default aspect ratio of `16x9`.\n * Available aspect ratios:\n *\n * `16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: string;\n\n createRenderRoot() {\n return this.attachShadow({\n mode: 'open',\n delegatesFocus:\n Number((/Safari\\/(\\d+)/.exec(navigator.userAgent) ?? ['', 0])[1]) <=\n 537,\n });\n }\n\n render() {\n const {\n aspectRatio,\n duration,\n formatCaption,\n formatDuration,\n hideCaption,\n name,\n } = this;\n\n const aspectRatioClass = classMap({\n [`${prefix}--video-player__video-container`]: true,\n [`${prefix}--video-player__aspect-ratio--${aspectRatio}`]: !!aspectRatio,\n });\n\n return html`\n <div class=\"${aspectRatioClass}\">${this._renderContent()}</div>\n ${hideCaption\n ? undefined\n : html`\n <div class=\"${prefix}--video-player__video-caption\">\n ${formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n })}\n </div>\n `}\n `;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('duration') ||\n changedProperties.has('formatCaption') ||\n changedProperties.has('name') ||\n changedProperties.has('backgroundMode')\n ) {\n const { duration, formatCaption, formatDuration, name } = this;\n const caption = formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n });\n if (caption) {\n this.setAttribute('aria-label', caption);\n }\n }\n\n if (this.offsetWidth > 0) {\n this._updateThumbnailUrl();\n }\n }\n\n firstUpdated() {\n this.tabIndex = 0;\n\n this.backgroundMode = (\n this.parentElement as DDSVideoPlayerContainer\n ).backgroundMode;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}--video-player`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayer;\n"]}
1
+ {"version":3,"sources":["components/video-player/video-player.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;AAYxE,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,gBAAgB,CAAC;AAMxB,OAAO,EAAE,0BAA0B,EAAE,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,cAAc;IAmBtB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAepB,gBAAgB;IAIvB;;OAEG;IACI,gCAAgC;IAgBvC;;OAEG;IAEH,YAAY,6BAAwC;IAEpD;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,aAAa,MAAsB;IAEnC;;;OAGG;IAEH,cAAc,MAAuB;IAErC;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,cAAc,EAAE,OAAO,CAAS;IAEhC;;OAEG;IAEH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;OAEG;IAEH,YAAY,SAAM;IAElB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,gBAAgB;IAShB,MAAM;IAgCN,OAAO,CAAC,iBAAiB,KAAA;IAwBzB,YAAY;IAQZ;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,wBAAwB,WAElC;IAED,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,cAAc,CAAC","file":"video-player.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ifNonNull from '@carbon/web-components/es/globals/directives/if-non-null.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport PlayVideo from '@carbon/ibmdotcom-styles/icons/svg/play-video.svg';\nimport {\n formatVideoCaption,\n formatVideoDuration,\n} from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport { VIDEO_PLAYER_CONTENT_STATE, VIDEO_PLAYER_PLAYING_MODE } from './defs';\nimport '../image/image';\nimport styles from './video-player.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport DDSVideoPlayerContainer from './video-player-container';\nimport ParentVisibilityMixin from '../../component-mixins/parent-visibility/parent-visibility';\n\nexport { VIDEO_PLAYER_CONTENT_STATE };\nexport { VIDEO_PLAYER_PLAYING_MODE };\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Video player.\n *\n * @element dds-video-player\n */\n@customElement(`${ddsPrefix}-video-player`)\nclass DDSVideoPlayer extends FocusMixin(\n StableSelectorMixin(ParentVisibilityMixin(LitElement))\n) {\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Handles `click` event on the video thumbnail.\n */\n private _handleClickOverlay() {\n if (this.playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE) {\n this.contentState = VIDEO_PLAYER_CONTENT_STATE.VIDEO;\n }\n const { videoId, name, customVideoDescription } = this;\n const { eventContentStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n contentState: VIDEO_PLAYER_CONTENT_STATE.VIDEO,\n playingMode: this.playingMode,\n name,\n customVideoDescription,\n },\n })\n );\n }\n\n /**\n * @returns The video content.\n */\n private _renderContent() {\n const { contentState, name, thumbnailUrl, backgroundMode } = this;\n return contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL &&\n !backgroundMode\n ? html`\n <div class=\"${prefix}--video-player__video\">\n <button\n class=\"${prefix}--video-player__image-overlay\"\n @click=\"${this._handleClickOverlay}\"\n >\n <dds-image default-src=\"${thumbnailUrl}\" alt=\"${ifNonNull(name)}\">\n ${PlayVideo({ slot: 'icon' })}\n </dds-image>\n </button>\n </div>\n `\n : html` <slot></slot> `;\n }\n\n /**\n * Updates video thumbnail url to match video width\n */\n private _updateThumbnailUrl() {\n const thumbnailSrc = new URL(this.thumbnailUrl || '');\n\n // If current thumbnail is from Kaltura and includes this video's ID we should be able to safely update it.\n if (\n thumbnailSrc.host.toLowerCase().includes('kaltura') &&\n thumbnailSrc.pathname.includes(this.videoId!)\n ) {\n this.thumbnailUrl = KalturaPlayerAPI.getThumbnailUrl({\n mediaId: this.videoId,\n width: String(this.offsetWidth),\n });\n }\n }\n\n public _onParentVisible() {\n this._updateThumbnailUrl();\n }\n\n /**\n * userInitiatedTogglePlaybackState\n */\n public userInitiatedTogglePlaybackState() {\n const { videoId } = this;\n const { eventPlaybackStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventPlaybackStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n playingMode: this.playingMode,\n },\n })\n );\n }\n\n /**\n * The video player's content state.\n */\n @property({ reflect: true, attribute: 'content-state' })\n contentState = VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL;\n\n /**\n * The video duration.\n */\n @property({ type: Number })\n duration?: number;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption = formatVideoCaption;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration = formatVideoDuration;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * The video name.\n */\n @property()\n name = '';\n\n /**\n * `true` to autoplay, mute video, and hide UI\n */\n @property({ attribute: 'background-mode', reflect: true })\n backgroundMode: boolean = false;\n\n /**\n * Custom video description. This property should only be set when using `playing-mode=\"lightbox\"`\n */\n @property({ attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The thumbnail URL.\n */\n @property({ attribute: 'thumbnail-url' })\n thumbnailUrl = '';\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId?: string;\n\n /**\n * Override default aspect ratio of `16x9`.\n * Available aspect ratios:\n *\n * `16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: string;\n\n createRenderRoot() {\n return this.attachShadow({\n mode: 'open',\n delegatesFocus:\n Number((/Safari\\/(\\d+)/.exec(navigator.userAgent) ?? ['', 0])[1]) <=\n 537,\n });\n }\n\n render() {\n const {\n aspectRatio,\n duration,\n formatCaption,\n formatDuration,\n hideCaption,\n name,\n } = this;\n\n const aspectRatioClass = classMap({\n [`${prefix}--video-player__video-container`]: true,\n [`${prefix}--video-player__aspect-ratio--${aspectRatio}`]: !!aspectRatio,\n });\n\n return html`\n <div class=\"${aspectRatioClass}\">${this._renderContent()}</div>\n ${hideCaption\n ? undefined\n : html`\n <div class=\"${prefix}--video-player__video-caption\">\n ${formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n })}\n </div>\n `}\n `;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('duration') ||\n changedProperties.has('formatCaption') ||\n changedProperties.has('name') ||\n changedProperties.has('backgroundMode')\n ) {\n const { duration, formatCaption, formatDuration, name } = this;\n const caption = formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n });\n if (caption) {\n this.setAttribute('aria-label', caption);\n }\n }\n\n if (this.offsetWidth > 0) {\n this._updateThumbnailUrl();\n }\n }\n\n firstUpdated() {\n this.tabIndex = 0;\n\n this.backgroundMode = (\n this.parentElement as DDSVideoPlayerContainer\n ).backgroundMode;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}--video-player`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayer;\n"]}
@@ -16,8 +16,8 @@ let _ = t => t,
16
16
  import { html, property, customElement, LitElement } from 'lit-element';
17
17
  import { classMap } from 'lit-html/directives/class-map.js';
18
18
  import settings from 'carbon-components/es/globals/js/settings.js';
19
- import ifNonNull from '@carbon/carbon-web-components/es/globals/directives/if-non-null.js';
20
- import FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';
19
+ import ifNonNull from '@carbon/web-components/es/globals/directives/if-non-null.js';
20
+ import FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';
21
21
  import PlayVideo from "../../icons/play-video.js";
22
22
  import { formatVideoCaption, formatVideoDuration } from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js';
23
23
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
@@ -1 +1 @@
1
- {"version":3,"file":"video-player.js","names":["html","property","customElement","LitElement","classMap","settings","ifNonNull","FocusMixin","PlayVideo","formatVideoCaption","formatVideoDuration","ddsSettings","KalturaPlayerAPI","VIDEO_PLAYER_CONTENT_STATE","VIDEO_PLAYER_PLAYING_MODE","styles","StableSelectorMixin","ParentVisibilityMixin","prefix","stablePrefix","ddsPrefix","DDSVideoPlayer","reflect","attribute","INLINE","playingMode","contentState","VIDEO","videoId","name","customVideoDescription","eventContentStateChange","constructor","dispatchEvent","CustomEvent","bubbles","composed","detail","thumbnailUrl","backgroundMode","THUMBNAIL","_handleClickOverlay","slot","thumbnailSrc","URL","host","toLowerCase","includes","pathname","getThumbnailUrl","mediaId","width","String","offsetWidth","_updateThumbnailUrl","eventPlaybackStateChange","type","Number","Boolean","attachShadow","mode","delegatesFocus","exec","navigator","userAgent","aspectRatio","duration","formatCaption","formatDuration","hideCaption","aspectRatioClass","_renderContent","undefined","changedProperties","has","caption","setAttribute","tabIndex","parentElement"],"sources":["components/video-player/video-player.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ifNonNull from '@carbon/carbon-web-components/es/globals/directives/if-non-null.js';\nimport FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';\nimport PlayVideo from '@carbon/ibmdotcom-styles/icons/svg/play-video.svg';\nimport {\n formatVideoCaption,\n formatVideoDuration,\n} from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport { VIDEO_PLAYER_CONTENT_STATE, VIDEO_PLAYER_PLAYING_MODE } from './defs';\nimport '../image/image';\nimport styles from './video-player.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport DDSVideoPlayerContainer from './video-player-container';\nimport ParentVisibilityMixin from '../../component-mixins/parent-visibility/parent-visibility';\n\nexport { VIDEO_PLAYER_CONTENT_STATE };\nexport { VIDEO_PLAYER_PLAYING_MODE };\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Video player.\n *\n * @element dds-video-player\n */\n@customElement(`${ddsPrefix}-video-player`)\nclass DDSVideoPlayer extends FocusMixin(\n StableSelectorMixin(ParentVisibilityMixin(LitElement))\n) {\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Handles `click` event on the video thumbnail.\n */\n private _handleClickOverlay() {\n if (this.playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE) {\n this.contentState = VIDEO_PLAYER_CONTENT_STATE.VIDEO;\n }\n const { videoId, name, customVideoDescription } = this;\n const { eventContentStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n contentState: VIDEO_PLAYER_CONTENT_STATE.VIDEO,\n playingMode: this.playingMode,\n name,\n customVideoDescription,\n },\n })\n );\n }\n\n /**\n * @returns The video content.\n */\n private _renderContent() {\n const { contentState, name, thumbnailUrl, backgroundMode } = this;\n return contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL &&\n !backgroundMode\n ? html`\n <div class=\"${prefix}--video-player__video\">\n <button\n class=\"${prefix}--video-player__image-overlay\"\n @click=\"${this._handleClickOverlay}\"\n >\n <dds-image default-src=\"${thumbnailUrl}\" alt=\"${ifNonNull(name)}\">\n ${PlayVideo({ slot: 'icon' })}\n </dds-image>\n </button>\n </div>\n `\n : html` <slot></slot> `;\n }\n\n /**\n * Updates video thumbnail url to match video width\n */\n private _updateThumbnailUrl() {\n const thumbnailSrc = new URL(this.thumbnailUrl || '');\n\n // If current thumbnail is from Kaltura and includes this video's ID we should be able to safely update it.\n if (\n thumbnailSrc.host.toLowerCase().includes('kaltura') &&\n thumbnailSrc.pathname.includes(this.videoId!)\n ) {\n this.thumbnailUrl = KalturaPlayerAPI.getThumbnailUrl({\n mediaId: this.videoId,\n width: String(this.offsetWidth),\n });\n }\n }\n\n public _onParentVisible() {\n this._updateThumbnailUrl();\n }\n\n /**\n * userInitiatedTogglePlaybackState\n */\n public userInitiatedTogglePlaybackState() {\n const { videoId } = this;\n const { eventPlaybackStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventPlaybackStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n playingMode: this.playingMode,\n },\n })\n );\n }\n\n /**\n * The video player's content state.\n */\n @property({ reflect: true, attribute: 'content-state' })\n contentState = VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL;\n\n /**\n * The video duration.\n */\n @property({ type: Number })\n duration?: number;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption = formatVideoCaption;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration = formatVideoDuration;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * The video name.\n */\n @property()\n name = '';\n\n /**\n * `true` to autoplay, mute video, and hide UI\n */\n @property({ attribute: 'background-mode', reflect: true })\n backgroundMode: boolean = false;\n\n /**\n * Custom video description. This property should only be set when using `playing-mode=\"lightbox\"`\n */\n @property({ attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The thumbnail URL.\n */\n @property({ attribute: 'thumbnail-url' })\n thumbnailUrl = '';\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId?: string;\n\n /**\n * Override default aspect ratio of `16x9`.\n * Available aspect ratios:\n *\n * `16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: string;\n\n createRenderRoot() {\n return this.attachShadow({\n mode: 'open',\n delegatesFocus:\n Number((/Safari\\/(\\d+)/.exec(navigator.userAgent) ?? ['', 0])[1]) <=\n 537,\n });\n }\n\n render() {\n const {\n aspectRatio,\n duration,\n formatCaption,\n formatDuration,\n hideCaption,\n name,\n } = this;\n\n const aspectRatioClass = classMap({\n [`${prefix}--video-player__video-container`]: true,\n [`${prefix}--video-player__aspect-ratio--${aspectRatio}`]: !!aspectRatio,\n });\n\n return html`\n <div class=\"${aspectRatioClass}\">${this._renderContent()}</div>\n ${hideCaption\n ? undefined\n : html`\n <div class=\"${prefix}--video-player__video-caption\">\n ${formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n })}\n </div>\n `}\n `;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('duration') ||\n changedProperties.has('formatCaption') ||\n changedProperties.has('name') ||\n changedProperties.has('backgroundMode')\n ) {\n const { duration, formatCaption, formatDuration, name } = this;\n const caption = formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n });\n if (caption) {\n this.setAttribute('aria-label', caption);\n }\n }\n\n if (this.offsetWidth > 0) {\n this._updateThumbnailUrl();\n }\n }\n\n firstUpdated() {\n this.tabIndex = 0;\n\n this.backgroundMode = (\n this.parentElement as DDSVideoPlayerContainer\n ).backgroundMode;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}--video-player`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayer;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,UAAU,QAAQ,aAAa;AACvE,SAASC,QAAQ,QAA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AAG,CAAC,EAAE;UACxB,IAAI,CAACC,mBAAmB,EAAE;QAC5B;MACF;IAAC;MAAA;MAAA;MAAA,OAED,wBAAe;QACb,IAAI,CAACuB,QAAQ,GAAG,CAAC;QAEjB,IAAI,CAACtC,cAAc,GACjB,IAAI,CAACuC,aAAa,CAClBvC,cAAc;MAClB;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,mCAAqC;QACnC,OAAQ,GAAEnB,SAAU,qCAAoC;MAC1D;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,oCAAsC;QACpC,OAAQ,GAAEA,SAAU,sCAAqC;MAC3D;IAAC;MAAA;MAAA;MAAA;MAAA,OAED,0BAA4B;QAC1B,OAAQ,GAAEA,SAAU,gBAAe;MACrC;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeL,MAAM;MAAA;IAAA;EAAA;AAAA,GAnQKR,UAAU,CACrCS,mBAAmB,CAACC,qBAAqB,CAACd,UAAU,CAAC,CAAC,CACvD,GAoQD;AACA,eAAekB,cAAc"}
1
+ {"version":3,"file":"video-player.js","names":["html","property","customElement","LitElement","classMap","settings","ifNonNull","FocusMixin","PlayVideo","formatVideoCaption","formatVideoDuration","ddsSettings","KalturaPlayerAPI","VIDEO_PLAYER_CONTENT_STATE","VIDEO_PLAYER_PLAYING_MODE","styles","StableSelectorMixin","ParentVisibilityMixin","prefix","stablePrefix","ddsPrefix","DDSVideoPlayer","reflect","attribute","INLINE","playingMode","contentState","VIDEO","videoId","name","customVideoDescription","eventContentStateChange","constructor","dispatchEvent","CustomEvent","bubbles","composed","detail","thumbnailUrl","backgroundMode","THUMBNAIL","_handleClickOverlay","slot","thumbnailSrc","URL","host","toLowerCase","includes","pathname","getThumbnailUrl","mediaId","width","String","offsetWidth","_updateThumbnailUrl","eventPlaybackStateChange","type","Number","Boolean","attachShadow","mode","delegatesFocus","exec","navigator","userAgent","aspectRatio","duration","formatCaption","formatDuration","hideCaption","aspectRatioClass","_renderContent","undefined","changedProperties","has","caption","setAttribute","tabIndex","parentElement"],"sources":["components/video-player/video-player.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ifNonNull from '@carbon/web-components/es/globals/directives/if-non-null.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport PlayVideo from '@carbon/ibmdotcom-styles/icons/svg/play-video.svg';\nimport {\n formatVideoCaption,\n formatVideoDuration,\n} from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\nimport { VIDEO_PLAYER_CONTENT_STATE, VIDEO_PLAYER_PLAYING_MODE } from './defs';\nimport '../image/image';\nimport styles from './video-player.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport DDSVideoPlayerContainer from './video-player-container';\nimport ParentVisibilityMixin from '../../component-mixins/parent-visibility/parent-visibility';\n\nexport { VIDEO_PLAYER_CONTENT_STATE };\nexport { VIDEO_PLAYER_PLAYING_MODE };\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Video player.\n *\n * @element dds-video-player\n */\n@customElement(`${ddsPrefix}-video-player`)\nclass DDSVideoPlayer extends FocusMixin(\n StableSelectorMixin(ParentVisibilityMixin(LitElement))\n) {\n /**\n * The video player's mode showing Inline or Lightbox.\n */\n @property({ reflect: true, attribute: 'playing-mode' })\n playingMode = VIDEO_PLAYER_PLAYING_MODE.INLINE;\n\n /**\n * Handles `click` event on the video thumbnail.\n */\n private _handleClickOverlay() {\n if (this.playingMode === VIDEO_PLAYER_PLAYING_MODE.INLINE) {\n this.contentState = VIDEO_PLAYER_CONTENT_STATE.VIDEO;\n }\n const { videoId, name, customVideoDescription } = this;\n const { eventContentStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n contentState: VIDEO_PLAYER_CONTENT_STATE.VIDEO,\n playingMode: this.playingMode,\n name,\n customVideoDescription,\n },\n })\n );\n }\n\n /**\n * @returns The video content.\n */\n private _renderContent() {\n const { contentState, name, thumbnailUrl, backgroundMode } = this;\n return contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL &&\n !backgroundMode\n ? html`\n <div class=\"${prefix}--video-player__video\">\n <button\n class=\"${prefix}--video-player__image-overlay\"\n @click=\"${this._handleClickOverlay}\"\n >\n <dds-image default-src=\"${thumbnailUrl}\" alt=\"${ifNonNull(name)}\">\n ${PlayVideo({ slot: 'icon' })}\n </dds-image>\n </button>\n </div>\n `\n : html` <slot></slot> `;\n }\n\n /**\n * Updates video thumbnail url to match video width\n */\n private _updateThumbnailUrl() {\n const thumbnailSrc = new URL(this.thumbnailUrl || '');\n\n // If current thumbnail is from Kaltura and includes this video's ID we should be able to safely update it.\n if (\n thumbnailSrc.host.toLowerCase().includes('kaltura') &&\n thumbnailSrc.pathname.includes(this.videoId!)\n ) {\n this.thumbnailUrl = KalturaPlayerAPI.getThumbnailUrl({\n mediaId: this.videoId,\n width: String(this.offsetWidth),\n });\n }\n }\n\n public _onParentVisible() {\n this._updateThumbnailUrl();\n }\n\n /**\n * userInitiatedTogglePlaybackState\n */\n public userInitiatedTogglePlaybackState() {\n const { videoId } = this;\n const { eventPlaybackStateChange } = this\n .constructor as typeof DDSVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventPlaybackStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n playingMode: this.playingMode,\n },\n })\n );\n }\n\n /**\n * The video player's content state.\n */\n @property({ reflect: true, attribute: 'content-state' })\n contentState = VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL;\n\n /**\n * The video duration.\n */\n @property({ type: Number })\n duration?: number;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatCaption = formatVideoCaption;\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatDuration = formatVideoDuration;\n\n /**\n * `true` to hide the caption.\n */\n @property({ type: Boolean, attribute: 'hide-caption' })\n hideCaption = false;\n\n /**\n * The video name.\n */\n @property()\n name = '';\n\n /**\n * `true` to autoplay, mute video, and hide UI\n */\n @property({ attribute: 'background-mode', reflect: true })\n backgroundMode: boolean = false;\n\n /**\n * Custom video description. This property should only be set when using `playing-mode=\"lightbox\"`\n */\n @property({ attribute: 'video-description' })\n customVideoDescription?: string;\n\n /**\n * The thumbnail URL.\n */\n @property({ attribute: 'thumbnail-url' })\n thumbnailUrl = '';\n\n /**\n * The video ID.\n */\n @property({ attribute: 'video-id' })\n videoId?: string;\n\n /**\n * Override default aspect ratio of `16x9`.\n * Available aspect ratios:\n *\n * `16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`\n */\n @property({ attribute: 'aspect-ratio' })\n aspectRatio?: string;\n\n createRenderRoot() {\n return this.attachShadow({\n mode: 'open',\n delegatesFocus:\n Number((/Safari\\/(\\d+)/.exec(navigator.userAgent) ?? ['', 0])[1]) <=\n 537,\n });\n }\n\n render() {\n const {\n aspectRatio,\n duration,\n formatCaption,\n formatDuration,\n hideCaption,\n name,\n } = this;\n\n const aspectRatioClass = classMap({\n [`${prefix}--video-player__video-container`]: true,\n [`${prefix}--video-player__aspect-ratio--${aspectRatio}`]: !!aspectRatio,\n });\n\n return html`\n <div class=\"${aspectRatioClass}\">${this._renderContent()}</div>\n ${hideCaption\n ? undefined\n : html`\n <div class=\"${prefix}--video-player__video-caption\">\n ${formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n })}\n </div>\n `}\n `;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('duration') ||\n changedProperties.has('formatCaption') ||\n changedProperties.has('name') ||\n changedProperties.has('backgroundMode')\n ) {\n const { duration, formatCaption, formatDuration, name } = this;\n const caption = formatCaption({\n duration: formatDuration({\n duration: !duration ? duration : duration * 1000,\n }),\n name,\n });\n if (caption) {\n this.setAttribute('aria-label', caption);\n }\n }\n\n if (this.offsetWidth > 0) {\n this._updateThumbnailUrl();\n }\n }\n\n firstUpdated() {\n this.tabIndex = 0;\n\n this.backgroundMode = (\n this.parentElement as DDSVideoPlayerContainer\n ).backgroundMode;\n }\n\n /**\n * The name of the custom event fired after video content state is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-video-player-content-state-changed`;\n }\n\n /**\n * The name of the custom event fired requesting playback state change.\n */\n static get eventPlaybackStateChange() {\n return `${ddsPrefix}-video-player-playback-state-changed`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}--video-player`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayer;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,UAAU,QAAQ,aAAa;AACvE,SAASC,QAAQ,QAAQ,kCAAkC;AAC3D,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,SAAS,MAAM,6DAA6D;AACnF,OAAOC,UAAU,MAAM,mDAAmD;AAC1E,OAAOC,SAAS,MAAM,2BAAmD;AACzE,SACEC,kBAAkB,EAClBC,mBAAmB,QACd,sGAAsG;AAC7G,OAAOC,WAAW,MAA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IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,mCAAqC;QACnC,OAAQ,GAAEnB,SAAU,qCAAoC;MAC1D;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAGA,oCAAsC;QACpC,OAAQ,GAAEA,SAAU,sCAAqC;MAC3D;IAAC;MAAA;MAAA;MAAA;MAAA,OAED,0BAA4B;QAC1B,OAAQ,GAAEA,SAAU,gBAAe;MACrC;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeL,MAAM;MAAA;IAAA;EAAA;AAAA,GAnQKR,UAAU,CACrCS,mBAAmB,CAACC,qBAAqB,CAACd,UAAU,CAAC,CAAC,CACvD,GAoQD;AACA,eAAekB,cAAc"}
@@ -9,7 +9,7 @@
9
9
  export { default as CustomElement } from '../../components/back-to-top/back-to-top.js';
10
10
  import createReactCustomElementType, {
11
11
  booleanSerializer,
12
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../image/image.js';
10
10
  import { propTypes as parentPropTypes } from '../image/image.js';
11
11
  export { default as CustomElement } from '../../components/background-media/background-media.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,11 +9,11 @@
9
9
  export {
10
10
  BUTTON_KIND,
11
11
  BUTTON_SIZE,
12
- } from '@carbon/carbon-web-components/es/components/button/button.js';
12
+ } from '@carbon/web-components/es/components/button/button.js';
13
13
  export { default as CustomElement } from '../../components/button/button.js';
14
14
  import createReactCustomElementType, {
15
15
  booleanSerializer,
16
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
16
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
17
17
  import PropTypes from 'prop-types';
18
18
  import settings from 'carbon-components/es/globals/js/settings.js';
19
19
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../button/button.js';
10
10
  import { propTypes as parentPropTypes } from '../button/button.js';
11
11
  export { default as CustomElement } from '../../components/button-group/button-group-item.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
  export { default as CustomElement } from '../../components/button-group/button-group.js';
10
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
11
  import PropTypes from 'prop-types';
12
12
  import settings from 'carbon-components/es/globals/js/settings.js';
13
13
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../link-with-icon/link-with-icon.js';
10
10
  import { propTypes as parentPropTypes } from '../link-with-icon/link-with-icon.js';
11
11
  export { default as CustomElement } from '../../components/callout-quote/callout-link-with-icon.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../quote/quote.js';
10
10
  import { propTypes as parentPropTypes } from '../quote/quote.js';
11
11
  export { default as CustomElement } from '../../components/callout-quote/callout-quote.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../content-block/content-block-copy.js';
10
10
  import { propTypes as parentPropTypes } from '../content-block/content-block-copy.js';
11
11
  export { default as CustomElement } from '../../components/callout-with-media/callout-with-media-copy.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../image/image.js';
10
10
  import { propTypes as parentPropTypes } from '../image/image.js';
11
11
  export { default as CustomElement } from '../../components/callout-with-media/callout-with-media-image.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../video-player/video-player-container.js';
10
10
  import { propTypes as parentPropTypes } from '../video-player/video-player-container.js';
11
11
  export { default as CustomElement } from '../../components/callout-with-media/callout-with-media-video.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../content-block/content-block.js';
10
10
  import { propTypes as parentPropTypes } from '../content-block/content-block.js';
11
11
  export { default as CustomElement } from '../../components/callout-with-media/callout-with-media.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
  export { default as CustomElement } from '../../components/card/card-eyebrow.js';
10
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
11
  import PropTypes from 'prop-types';
12
12
  import settings from 'carbon-components/es/globals/js/settings.js';
13
13
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -11,7 +11,7 @@ import { propTypes as parentPropTypes } from '../link-with-icon/link-with-icon.j
11
11
  export { default as CustomElement } from '../../components/card/card-footer.js';
12
12
  import createReactCustomElementType, {
13
13
  booleanSerializer,
14
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
14
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
15
15
  import PropTypes from 'prop-types';
16
16
  import settings from 'carbon-components/es/globals/js/settings.js';
17
17
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -7,7 +7,7 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
  export { default as CustomElement } from '../../components/card/card-heading.js';
10
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
11
  import PropTypes from 'prop-types';
12
12
  import settings from 'carbon-components/es/globals/js/settings.js';
13
13
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -6,12 +6,12 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import { descriptor as parentDescriptor } from '@carbon/carbon-web-components/es/components-react/link/link.js';
10
- import { propTypes as parentPropTypes } from '@carbon/carbon-web-components/es/components-react/link/link.js';
9
+ import { descriptor as parentDescriptor } from '@carbon/web-components/es/components/link/link.js';
10
+ import { propTypes as parentPropTypes } from '@carbon/web-components/es/components/link/link.js';
11
11
  export { default as CustomElement } from '../../components/card/card.js';
12
12
  import createReactCustomElementType, {
13
13
  booleanSerializer,
14
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
14
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
15
15
  import PropTypes from 'prop-types';
16
16
  import settings from 'carbon-components/es/globals/js/settings.js';
17
17
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../image/image.js';
10
10
  import { propTypes as parentPropTypes } from '../image/image.js';
11
11
  export { default as CustomElement } from '../../components/card/image-logo.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -11,7 +11,7 @@ import { propTypes as parentPropTypes } from '../cta/card-link-cta.js';
11
11
  export { default as CustomElement } from '../../components/card-group/card-group-card-link-item.js';
12
12
  import createReactCustomElementType, {
13
13
  booleanSerializer,
14
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
14
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
15
15
  import PropTypes from 'prop-types';
16
16
  import settings from 'carbon-components/es/globals/js/settings.js';
17
17
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -11,7 +11,7 @@ import { propTypes as parentPropTypes } from '../cta/card-cta.js';
11
11
  export { default as CustomElement } from '../../components/card-group/card-group-item.js';
12
12
  import createReactCustomElementType, {
13
13
  booleanSerializer,
14
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
14
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
15
15
  import PropTypes from 'prop-types';
16
16
  import settings from 'carbon-components/es/globals/js/settings.js';
17
17
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -11,7 +11,7 @@ export { default as CustomElement } from '../../components/card-group/card-group
11
11
  import createReactCustomElementType, {
12
12
  numberSerializer,
13
13
  booleanSerializer,
14
- } from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
14
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
15
15
  import PropTypes from 'prop-types';
16
16
  import settings from 'carbon-components/es/globals/js/settings.js';
17
17
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../image/image.js';
10
10
  import { propTypes as parentPropTypes } from '../image/image.js';
11
11
  export { default as CustomElement } from '../../components/card-in-card/card-in-card-image.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../cta/card-cta.js';
10
10
  import { propTypes as parentPropTypes } from '../cta/card-cta.js';
11
11
  export { default as CustomElement } from '../../components/card-in-card/card-in-card.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
@@ -9,7 +9,7 @@
9
9
  import { descriptor as parentDescriptor } from '../card/card-heading.js';
10
10
  import { propTypes as parentPropTypes } from '../card/card-heading.js';
11
11
  export { default as CustomElement } from '../../components/card-link/card-link-heading.js';
12
- import createReactCustomElementType from '@carbon/carbon-web-components/es/globals/wrappers/createReactCustomElementType.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
15
  import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';