@carbon/ibmdotcom-web-components 1.32.0-rc.0 → 1.32.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/custom-elements.json +18 -18
  2. package/dist/{20-2c34f739.js → 20-4d0d088b.js} +1 -1
  3. package/dist/{20-002a62f9.js → 20-c7872d45.js} +1 -1
  4. package/dist/{20-e53335d3.js → 20-d0071628.js} +1 -1
  5. package/dist/{20-4f726b86.js → 20-f07ed7a1.js} +1 -1
  6. package/dist/cloud-masthead.js +2 -2
  7. package/dist/cloud-masthead.min.js +1 -1
  8. package/dist/cloud-masthead.rtl.js +2 -2
  9. package/dist/cloud-masthead.rtl.min.js +1 -1
  10. package/dist/dotcom-shell.js +2 -2
  11. package/dist/dotcom-shell.min.js +1 -1
  12. package/dist/dotcom-shell.rtl.js +2 -2
  13. package/dist/dotcom-shell.rtl.min.js +1 -1
  14. package/dist/ibmdotcom-web-components-dotcom-shell.js +9 -7
  15. package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
  16. package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +9 -7
  17. package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +2 -2
  18. package/dist/{left-nav-menu-72142ae5.js → left-nav-menu-0454e7fe.js} +1 -1
  19. package/dist/{left-nav-menu-136466dc.js → left-nav-menu-4bb5d738.js} +1 -1
  20. package/dist/{left-nav-menu-d0e0c8a1.js → left-nav-menu-a9193172.js} +1 -1
  21. package/dist/{left-nav-menu-3436909a.js → left-nav-menu-aa14d1fd.js} +1 -1
  22. package/dist/{left-nav-menu-category-heading-71bd687e.js → left-nav-menu-category-heading-308b7583.js} +1 -1
  23. package/dist/{left-nav-menu-category-heading-b2b5a65f.js → left-nav-menu-category-heading-c9962ac5.js} +1 -1
  24. package/dist/{left-nav-menu-category-heading-2a3e1e8f.js → left-nav-menu-category-heading-daf5ebfa.js} +1 -1
  25. package/dist/{left-nav-menu-category-heading-17849a08.js → left-nav-menu-category-heading-fc02a361.js} +1 -1
  26. package/dist/{left-nav-menu-item-19e02851.js → left-nav-menu-item-0275a3b9.js} +1 -1
  27. package/dist/{left-nav-menu-item-8caa4256.js → left-nav-menu-item-354f4261.js} +1 -1
  28. package/dist/{left-nav-menu-item-ee78e342.js → left-nav-menu-item-7814505a.js} +1 -1
  29. package/dist/{left-nav-menu-item-327fee2b.js → left-nav-menu-item-fa33cbd9.js} +1 -1
  30. package/dist/{left-nav-menu-section-5f999435.js → left-nav-menu-section-5c2e24f8.js} +2 -2
  31. package/dist/{left-nav-menu-section-518e5d37.js → left-nav-menu-section-94e4e49c.js} +1 -1
  32. package/dist/{left-nav-menu-section-e0a8964a.js → left-nav-menu-section-b5303d97.js} +2 -2
  33. package/dist/{left-nav-menu-section-6150369f.js → left-nav-menu-section-fcd88473.js} +1 -1
  34. package/dist/{left-nav-overlay-5731f7e5.js → left-nav-overlay-1e1910e9.js} +1 -1
  35. package/dist/{left-nav-overlay-6882d48d.js → left-nav-overlay-320c1270.js} +1 -1
  36. package/dist/{left-nav-overlay-a4cc3b3e.js → left-nav-overlay-81eb5e93.js} +1 -1
  37. package/dist/{left-nav-overlay-de7eb950.js → left-nav-overlay-ce49183f.js} +1 -1
  38. package/dist/{masthead-composite-c8dbcd61.js → masthead-composite-10b5102f.js} +3 -3
  39. package/dist/{masthead-composite-306adeb9.js → masthead-composite-1ed7f190.js} +3 -3
  40. package/dist/{masthead-composite-fb2bb203.js → masthead-composite-4096f117.js} +18 -14
  41. package/dist/{masthead-composite-73d938e4.js → masthead-composite-e578b925.js} +18 -14
  42. package/dist/{megamenu-category-group-43899a46.js → megamenu-category-group-0042c754.js} +1 -1
  43. package/dist/{megamenu-category-group-3bf5d73c.js → megamenu-category-group-b777facf.js} +1 -1
  44. package/dist/{megamenu-category-group-copy-2b87813d.js → megamenu-category-group-copy-69e90843.js} +1 -1
  45. package/dist/{megamenu-category-group-copy-283a25a3.js → megamenu-category-group-copy-6cc797f8.js} +1 -1
  46. package/dist/{megamenu-category-group-copy-93aa0a96.js → megamenu-category-group-copy-83e643e1.js} +1 -1
  47. package/dist/{megamenu-category-group-copy-775aaa80.js → megamenu-category-group-copy-e60dfb61.js} +1 -1
  48. package/dist/{megamenu-category-group-79513624.js → megamenu-category-group-d474b15d.js} +1 -1
  49. package/dist/{megamenu-category-group-999cba46.js → megamenu-category-group-f7dba932.js} +1 -1
  50. package/dist/{megamenu-category-link-71bd2020.js → megamenu-category-link-0df4440e.js} +1 -1
  51. package/dist/{megamenu-category-link-dbc8b4a4.js → megamenu-category-link-54e1011f.js} +1 -1
  52. package/dist/{megamenu-category-link-fb99f944.js → megamenu-category-link-68b5ea65.js} +1 -1
  53. package/dist/{megamenu-category-link-e3280b1e.js → megamenu-category-link-84732d66.js} +1 -1
  54. package/dist/{megamenu-left-navigation-3b9086ee.js → megamenu-left-navigation-7c8616c7.js} +1 -1
  55. package/dist/{megamenu-left-navigation-1f60ff1b.js → megamenu-left-navigation-862becf2.js} +1 -1
  56. package/dist/{megamenu-left-navigation-dd0372b5.js → megamenu-left-navigation-98f428cf.js} +1 -1
  57. package/dist/{megamenu-left-navigation-35bcade1.js → megamenu-left-navigation-c5ed7f0e.js} +1 -1
  58. package/dist/{megamenu-overlay-50af9c22.js → megamenu-overlay-213de889.js} +1 -1
  59. package/dist/{megamenu-overlay-2b2fe43c.js → megamenu-overlay-3ad6b0b2.js} +1 -1
  60. package/dist/{megamenu-overlay-5ff8fbf2.js → megamenu-overlay-ab9a9cff.js} +1 -1
  61. package/dist/{megamenu-overlay-ddd5122f.js → megamenu-overlay-d948063a.js} +1 -1
  62. package/es/components/image/image.d.ts +0 -3
  63. package/es/components/image/image.d.ts.map +1 -1
  64. package/es/components/image/image.js +1 -1
  65. package/es/components/image/image.js.map +1 -1
  66. package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
  67. package/es/components/locale-modal/locale-modal.js +7 -5
  68. package/es/components/locale-modal/locale-modal.js.map +1 -1
  69. package/es/components/masthead/masthead-composite.d.ts +1 -1
  70. package/es/components/masthead/masthead-composite.d.ts.map +1 -1
  71. package/es/components/masthead/masthead-composite.js +4 -3
  72. package/es/components/masthead/masthead-composite.js.map +1 -1
  73. package/es/components/notice-choice/notice-choice.d.ts.map +1 -1
  74. package/es/components/notice-choice/notice-choice.js +0 -1
  75. package/es/components/notice-choice/notice-choice.js.map +1 -1
  76. package/es/components/search-with-typeahead/search-with-typeahead.d.ts.map +1 -1
  77. package/es/components/search-with-typeahead/search-with-typeahead.js +4 -1
  78. package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
  79. package/es/components/table-of-contents/table-of-contents.d.ts +12 -7
  80. package/es/components/table-of-contents/table-of-contents.d.ts.map +1 -1
  81. package/es/components/table-of-contents/table-of-contents.js +13 -2
  82. package/es/components/table-of-contents/table-of-contents.js.map +1 -1
  83. package/es/components/video-player/video-player.d.ts +1 -9
  84. package/es/components/video-player/video-player.d.ts.map +1 -1
  85. package/es/components/video-player/video-player.js +7 -2
  86. package/es/components/video-player/video-player.js.map +1 -1
  87. package/es/components-react/footer/dropdown.js +39 -0
  88. package/es/components-react/masthead/masthead-composite.d.ts +1 -1
  89. package/es/components-react/masthead/masthead-composite.js +241 -0
  90. package/es/components-react/masthead/masthead-container.js +25 -0
  91. package/es/components-react/masthead/masthead.js +23 -0
  92. package/es/components-react/quote/quote-link-with-icon.js +25 -0
  93. package/es/components-react/quote/quote-source-bottom-copy.js +30 -0
  94. package/es/components-react/quote/quote-source-copy.js +30 -0
  95. package/es/components-react/quote/quote-source-heading.js +30 -0
  96. package/es/components-react/search-with-typeahead/scoped-search-dropdown-mobile.js +32 -0
  97. package/es/components-react/search-with-typeahead/scoped-search-dropdown.js +39 -0
  98. package/es/components-react/search-with-typeahead/search-with-typeahead-item.js +47 -0
  99. package/es/components-react/search-with-typeahead/search-with-typeahead.js +175 -0
  100. package/es/components-react/structured-list/structured-list-body.js +23 -0
  101. package/es/components-react/structured-list/structured-list-cell.js +41 -0
  102. package/es/components-react/structured-list/structured-list-group.js +29 -0
  103. package/es/components-react/structured-list/structured-list-head.js +23 -0
  104. package/es/components-react/structured-list/structured-list-header-cell.js +23 -0
  105. package/es/components-react/structured-list/structured-list-header-row.js +23 -0
  106. package/es/components-react/structured-list/structured-list-row.js +23 -0
  107. package/es/components-react/structured-list/structured-list.js +23 -0
  108. package/es/components-react/table-of-contents/table-of-contents.js +49 -0
  109. package/es/components-react/tabs-extended/tab.js +53 -0
  110. package/es/components-react/tabs-extended/tabs-extended.js +36 -0
  111. package/es/components-react/tabs-extended-media/tabs-extended-media.js +34 -0
  112. package/es/components-react/tag-group/tag-group.js +23 -0
  113. package/es/components-react/tag-link/tag-link.js +57 -0
  114. package/es/components-react/universal-banner/universal-banner-copy.js +29 -0
  115. package/es/components-react/universal-banner/universal-banner-heading.js +30 -0
  116. package/es/components-react/universal-banner/universal-banner-image.js +25 -0
  117. package/es/components-react/universal-banner/universal-banner.js +57 -0
  118. package/es/components-react/video-player/video-player.js +134 -0
  119. package/lib/components-react-node/footer/dropdown.js +80 -0
  120. package/lib/components-react-node/masthead/masthead-composite.js +295 -0
  121. package/lib/components-react-node/masthead/masthead-container.js +41 -0
  122. package/lib/components-react-node/masthead/masthead.js +40 -0
  123. package/lib/components-react-node/quote/quote-link-with-icon.js +41 -0
  124. package/lib/components-react-node/quote/quote-source-bottom-copy.js +47 -0
  125. package/lib/components-react-node/quote/quote-source-copy.js +47 -0
  126. package/lib/components-react-node/quote/quote-source-heading.js +47 -0
  127. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +49 -0
  128. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +68 -0
  129. package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +102 -0
  130. package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +230 -0
  131. package/lib/components-react-node/structured-list/structured-list-body.js +40 -0
  132. package/lib/components-react-node/structured-list/structured-list-cell.js +58 -0
  133. package/lib/components-react-node/structured-list/structured-list-group.js +46 -0
  134. package/lib/components-react-node/structured-list/structured-list-head.js +40 -0
  135. package/lib/components-react-node/structured-list/structured-list-header-cell.js +40 -0
  136. package/lib/components-react-node/structured-list/structured-list-header-row.js +40 -0
  137. package/lib/components-react-node/structured-list/structured-list-row.js +40 -0
  138. package/lib/components-react-node/structured-list/structured-list.js +40 -0
  139. package/lib/components-react-node/table-of-contents/table-of-contents.js +104 -0
  140. package/lib/components-react-node/tabs-extended/tab.js +108 -0
  141. package/lib/components-react-node/tabs-extended/tabs-extended.js +53 -0
  142. package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +50 -0
  143. package/lib/components-react-node/tag-group/tag-group.js +40 -0
  144. package/lib/components-react-node/tag-link/tag-link.js +74 -0
  145. package/lib/components-react-node/universal-banner/universal-banner-copy.js +45 -0
  146. package/lib/components-react-node/universal-banner/universal-banner-heading.js +47 -0
  147. package/lib/components-react-node/universal-banner/universal-banner-image.js +41 -0
  148. package/lib/components-react-node/universal-banner/universal-banner.js +112 -0
  149. package/lib/components-react-node/video-player/video-player.js +197 -0
  150. package/package.json +7 -7
  151. package/scss/components/image/image.scss +1 -1
  152. package/es/components-react/notice-choice/notice-choice.d.ts +0 -48
@@ -1 +1 @@
1
- {"version":3,"sources":["components/video-player/video-player.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAkB,UAAU,EAAE,MAAM,aAAa,CAAC;AAYzD,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,gBAAgB,CAAC;AAOxB,OAAO,EAAE,0BAA0B,EAAE,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CA6JnC;;OAEG;;;;IAUH;;;;;OAKG;;;;;;;;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AgC;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;IASZ;;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, 2023\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, 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 '../../internal/vendor/@carbon/web-components/globals/directives/if-non-null.js';\nimport FocusMixin from '../../internal/vendor/@carbon/web-components/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';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\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 <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 const parentIsBackground = Boolean(\n (this.parentElement as DDSVideoPlayerContainer)?.backgroundMode\n );\n\n this.backgroundMode = parentIsBackground;\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,EAAkB,UAAU,EAAE,MAAM,aAAa,CAAC;AAYzD,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,gBAAgB,CAAC;AAOxB,OAAO,EAAE,0BAA0B,EAAE,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;IAErB,gBAAgB;IAShB,MAAM;IAgCN,OAAO,CAAC,iBAAiB,KAAA;IAwBzB,YAAY;IASZ;;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, 2023\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, 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 '../../internal/vendor/@carbon/web-components/globals/directives/if-non-null.js';\nimport FocusMixin from '../../internal/vendor/@carbon/web-components/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';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\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 <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 let thumbnailSrc: false | URL = false;\n\n try {\n thumbnailSrc = new URL(this.thumbnailUrl);\n } catch (error) {\n // Do nothing.\n }\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 &&\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 const parentIsBackground = Boolean(\n (this.parentElement as DDSVideoPlayerContainer)?.backgroundMode\n );\n\n this.backgroundMode = parentIsBackground;\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"]}
@@ -143,10 +143,15 @@ var DDSVideoPlayer = (0, _decorate2["default"])([(0, _carbonElement.carbonElemen
143
143
  kind: "method",
144
144
  key: "_updateThumbnailUrl",
145
145
  value: function _updateThumbnailUrl() {
146
- var thumbnailSrc = new URL(this.thumbnailUrl || '');
146
+ var thumbnailSrc = false;
147
+ try {
148
+ thumbnailSrc = new URL(this.thumbnailUrl);
149
+ } catch (error) {
150
+ // Do nothing.
151
+ }
147
152
 
148
153
  // If current thumbnail is from Kaltura and includes this video's ID we should be able to safely update it.
149
- if (thumbnailSrc.host.toLowerCase().includes('kaltura') && thumbnailSrc.pathname.includes(this.videoId)) {
154
+ if (thumbnailSrc && thumbnailSrc.host.toLowerCase().includes('kaltura') && thumbnailSrc.pathname.includes(this.videoId)) {
150
155
  this.thumbnailUrl = _KalturaPlayer["default"].getThumbnailUrl({
151
156
  mediaId: this.videoId,
152
157
  width: String(this.offsetWidth)
@@ -1 +1 @@
1
- {"version":3,"file":"video-player.js","names":["_litElement","require","_classMap2","_settings","_interopRequireDefault","_ifNonNull","_focus","_playVideo","_formatVideoCaption","_settings2","_KalturaPlayer","_defs","_videoPlayerCss","_stableSelector","_parentVisibility","_carbonElement","_templateObject","_templateObject2","_templateObject3","_templateObject4","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","prefix","settings","ddsPrefix","ddsSettings","stablePrefix","DDSVideoPlayer","_decorate2","customElement","concat","_initialize","_FocusMixin","_FocusMixin2","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","_assertThisInitialized2","_createClass2","F","d","kind","decorators","property","reflect","attribute","key","value","VIDEO_PLAYER_PLAYING_MODE","INLINE","_handleClickOverlay","playingMode","contentState","VIDEO_PLAYER_CONTENT_STATE","VIDEO","videoId","name","customVideoDescription","_ref","eventContentStateChange","dispatchEvent","CustomEvent","bubbles","composed","detail","_renderContent","thumbnailUrl","backgroundMode","THUMBNAIL","html","_taggedTemplateLiteral2","ifNonNull","PlayVideo","slot","_updateThumbnailUrl","thumbnailSrc","URL","host","toLowerCase","includes","pathname","KalturaPlayerAPI","getThumbnailUrl","mediaId","width","String","offsetWidth","_onParentVisible","userInitiatedTogglePlaybackState","_ref2","eventPlaybackStateChange","type","Number","formatVideoCaption","formatVideoDuration","createRenderRoot","_exec","attachShadow","mode","delegatesFocus","exec","navigator","userAgent","render","_classMap","aspectRatio","duration","formatCaption","formatDuration","hideCaption","aspectRatioClass","classMap","_defineProperty2","undefined","updated","changedProperties","has","caption","setAttribute","firstUpdated","_this$parentElement","tabIndex","parentIsBackground","parentElement","stableSelector","styles","FocusMixin","StableSelectorMixin","ParentVisibilityMixin","LitElement","_default","exports"],"sources":["components/video-player/video-player.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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, 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 '../../internal/vendor/@carbon/web-components/globals/directives/if-non-null.js';\nimport FocusMixin from '../../internal/vendor/@carbon/web-components/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';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\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 <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 const parentIsBackground = Boolean(\n (this.parentElement as DDSVideoPlayerContainer)?.backgroundMode\n );\n\n this.backgroundMode = parentIsBackground;\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,MAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,UAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAIA,IAAAQ,UAAA,GAAAL,sBAAA,CAAAH,OAAA;AACA,IAAAS,cAAA,GAAAN,sBAAA,CAAAH,OAAA;AACA,IAAAU,KAAA,GAAAV,OAAA;AACAA,OAAA;AACA,IAAAW,eAAA,GAAAR,sBAAA,CAAAH,OAAA;AACA,IAAAY,eAAA,GAAAT,sBAAA,CAAAH,OAAA;AAEA,IAAAa,iBAAA,GAAAV,sBAAA,CAAAH,OAAA;AACA,IAAAc,cAAA,GAAAd,OAAA;AAAmI,IAAAe,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,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A6E,eAAA,EAA4B;QAC1B,UAAApG,MAAA,CAAUN,SAAS;MACrB;IAAC;MAAAuB,IAAA;MAAA;MAAAK,GAAA;MAAAC,KAAA,WAAAA,MAAA;QAAA,OAEe8E,0BAAM;MAAA;IAAA;EAAA;AAAA,GAnQK,IAAAC,iBAAU,EACrC,IAAAC,0BAAmB,EAAC,IAAAC,4BAAqB,EAACC,sBAAU,CAAC,CACvD,CAAC;AAoQD;AAAA,IAAAC,QAAA,GACe7G,cAAc;AAAA8G,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"video-player.js","names":["_litElement","require","_classMap2","_settings","_interopRequireDefault","_ifNonNull","_focus","_playVideo","_formatVideoCaption","_settings2","_KalturaPlayer","_defs","_videoPlayerCss","_stableSelector","_parentVisibility","_carbonElement","_templateObject","_templateObject2","_templateObject3","_templateObject4","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","prefix","settings","ddsPrefix","ddsSettings","stablePrefix","DDSVideoPlayer","_decorate2","customElement","concat","_initialize","_FocusMixin","_FocusMixin2","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","_assertThisInitialized2","_createClass2","F","d","kind","decorators","property","reflect","attribute","key","value","VIDEO_PLAYER_PLAYING_MODE","INLINE","_handleClickOverlay","playingMode","contentState","VIDEO_PLAYER_CONTENT_STATE","VIDEO","videoId","name","customVideoDescription","_ref","eventContentStateChange","dispatchEvent","CustomEvent","bubbles","composed","detail","_renderContent","thumbnailUrl","backgroundMode","THUMBNAIL","html","_taggedTemplateLiteral2","ifNonNull","PlayVideo","slot","_updateThumbnailUrl","thumbnailSrc","URL","error","host","toLowerCase","includes","pathname","KalturaPlayerAPI","getThumbnailUrl","mediaId","width","String","offsetWidth","_onParentVisible","userInitiatedTogglePlaybackState","_ref2","eventPlaybackStateChange","type","Number","formatVideoCaption","formatVideoDuration","createRenderRoot","_exec","attachShadow","mode","delegatesFocus","exec","navigator","userAgent","render","_classMap","aspectRatio","duration","formatCaption","formatDuration","hideCaption","aspectRatioClass","classMap","_defineProperty2","undefined","updated","changedProperties","has","caption","setAttribute","firstUpdated","_this$parentElement","tabIndex","parentIsBackground","parentElement","stableSelector","styles","FocusMixin","StableSelectorMixin","ParentVisibilityMixin","LitElement","_default","exports"],"sources":["components/video-player/video-player.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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, 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 '../../internal/vendor/@carbon/web-components/globals/directives/if-non-null.js';\nimport FocusMixin from '../../internal/vendor/@carbon/web-components/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';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\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 <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 let thumbnailSrc: false | URL = false;\n\n try {\n thumbnailSrc = new URL(this.thumbnailUrl);\n } catch (error) {\n // Do nothing.\n }\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 &&\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 const parentIsBackground = Boolean(\n (this.parentElement as DDSVideoPlayerContainer)?.backgroundMode\n );\n\n this.backgroundMode = parentIsBackground;\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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AA;MAAA;MAAAK,GAAA;MAAAC,KAAA,WAAAA,MAAA;QAAA,OAEe+E,0BAAM;MAAA;IAAA;EAAA;AAAA,GA1QK,IAAAC,iBAAU,EACrC,IAAAC,0BAAmB,EAAC,IAAAC,4BAAqB,EAACC,sBAAU,CAAC,CACvD,CAAC;AA2QD;AAAA,IAAAC,QAAA,GACe9G,cAAc;AAAA+G,OAAA,cAAAD,QAAA"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ export {
10
+ DROPDOWN_COLOR_SCHEME,
11
+ DROPDOWN_KEYBOARD_ACTION,
12
+ DROPDOWN_SIZE,
13
+ DROPDOWN_TYPE,
14
+ NAVIGATION_DIRECTION,
15
+ } from '././defs.js';
16
+ export { default as CustomElement } from '../../components/footer/dropdown.js';
17
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
18
+ import PropTypes from 'prop-types';
19
+ import settings from 'carbon-components/es/globals/js/settings.js';
20
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
21
+ var prefix = settings.prefix;
22
+ var ddsPrefix = ddsSettings.stablePrefix;
23
+ export var descriptor = {
24
+ formatSelectedItemStatusText: {
25
+ attribute: false,
26
+ },
27
+ };
28
+ export var propTypes = {
29
+ /**
30
+ * The formatter, used for announcing selected item and current item. Should be changed upon the locale the UI is rendered with.
31
+ */
32
+ formatSelectedItemStatusText: PropTypes.string,
33
+ };
34
+ const Component = createReactCustomElementType(
35
+ ''.concat(ddsPrefix, '-dropdown'),
36
+ descriptor
37
+ );
38
+ Component.propTypes = propTypes;
39
+ export default Component;
@@ -15,7 +15,7 @@ export interface ComponentProps {
15
15
  /**
16
16
  * `true` if there is a search.
17
17
  */
18
- hasSearch?: boolean;
18
+ hasSearch?: string;
19
19
  /**
20
20
  * `true` to activate the search box.
21
21
  */
@@ -0,0 +1,241 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ export { default as CustomElement } from '../../components/masthead/masthead-composite.js';
10
+ import createReactCustomElementType, {
11
+ booleanSerializer,
12
+ numberSerializer,
13
+ } from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
14
+ import PropTypes from 'prop-types';
15
+ import settings from 'carbon-components/es/globals/js/settings.js';
16
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
17
+ var prefix = settings.prefix;
18
+ var ddsPrefix = ddsSettings.stablePrefix;
19
+ export var descriptor = {
20
+ hasProfile: {
21
+ attribute: 'has-profile',
22
+ },
23
+ hasSearch: {
24
+ attribute: 'has-search',
25
+ },
26
+ activateSearch: {
27
+ serialize: booleanSerializer,
28
+ attribute: 'activate-search',
29
+ },
30
+ searchOpenOnload: {
31
+ attribute: 'search-open-on-load',
32
+ },
33
+ authenticatedProfileItems: {
34
+ attribute: false,
35
+ },
36
+ platform: {},
37
+ platformUrl: {
38
+ attribute: false,
39
+ },
40
+ brandName: {
41
+ attribute: 'brand-name',
42
+ },
43
+ currentSearchResults: {
44
+ attribute: false,
45
+ },
46
+ customProfileLogin: {
47
+ attribute: 'custom-profile-login',
48
+ },
49
+ customTypeaheadAPI: {
50
+ serialize: booleanSerializer,
51
+ attribute: 'custom-typeahead-api',
52
+ },
53
+ mastheadAssistiveText: {
54
+ attribute: 'masthead-assistive-text',
55
+ },
56
+ megamenuSet: {},
57
+ menuBarAssistiveText: {
58
+ attribute: 'menu-bar-assistive-text',
59
+ },
60
+ skipToContentText: {
61
+ attribute: 'skip-to-content-text',
62
+ },
63
+ skipToContentHref: {
64
+ attribute: 'skip-to-content-href',
65
+ },
66
+ menuButtonAssistiveTextActive: {
67
+ attribute: 'menu-button-assistive-text-active',
68
+ },
69
+ menuButtonAssistiveTextInactive: {
70
+ attribute: 'menu-button-assistive-text-inactive',
71
+ },
72
+ scopeParameters: {},
73
+ selectedMenuItem: {
74
+ attribute: 'selected-menu-item',
75
+ },
76
+ unauthenticatedProfileItems: {
77
+ attribute: false,
78
+ },
79
+ dataEndpoint: {
80
+ attribute: 'data-endpoint',
81
+ },
82
+ inputTimeout: {
83
+ serialize: numberSerializer,
84
+ attribute: 'input-timeout',
85
+ },
86
+ language: {},
87
+ navLinks: {
88
+ attribute: false,
89
+ },
90
+ logoData: {
91
+ attribute: false,
92
+ },
93
+ l1Data: {
94
+ attribute: false,
95
+ },
96
+ openSearchDropdown: {
97
+ serialize: booleanSerializer,
98
+ attribute: 'open-search-dropdown',
99
+ },
100
+ searchPlaceholder: {},
101
+ userStatus: {
102
+ attribute: 'user-status',
103
+ },
104
+ onMegamenuActive: {
105
+ event: ''.concat(ddsPrefix, '-megamenu-top-nav-menu-toggle'),
106
+ },
107
+ };
108
+ export var propTypes = {
109
+ /**
110
+ * `true` if there is a profile.
111
+ */
112
+ hasProfile: PropTypes.string,
113
+ /**
114
+ * `true` if there is a search.
115
+ */
116
+ hasSearch: PropTypes.string,
117
+ /**
118
+ * `true` to activate the search box.
119
+ */
120
+ activateSearch: PropTypes.bool,
121
+ /**
122
+ * `true` sets search to active when page loads.
123
+ */
124
+ searchOpenOnload: PropTypes.string,
125
+ /**
126
+ * The profile items for authenticated state.
127
+ */
128
+ authenticatedProfileItems: PropTypes.string,
129
+ /**
130
+ * The platform name.
131
+ */
132
+ platform: PropTypes.string,
133
+ /**
134
+ * The platform url. Accepts both a string or an object with a specific URL for each locale.
135
+ */
136
+ platformUrl: PropTypes.string,
137
+ /**
138
+ * The brand name.
139
+ *
140
+ * @deprecated brandName use platform instead
141
+ */
142
+ brandName: PropTypes.string,
143
+ /**
144
+ * The search results to show in the UI.
145
+ */
146
+ currentSearchResults: PropTypes.string,
147
+ /**
148
+ * The custom profile login link.
149
+ */
150
+ customProfileLogin: PropTypes.string,
151
+ /**
152
+ * The boolean to use a custom search API.
153
+ */
154
+ customTypeaheadAPI: PropTypes.bool,
155
+ /**
156
+ * The `aria-label` attribute for the top-level container.
157
+ */
158
+ mastheadAssistiveText: PropTypes.string,
159
+ /**
160
+ * The array containing all the megamenus to be loaded in.
161
+ */
162
+ megamenuSet: PropTypes.string,
163
+ /**
164
+ * The `aria-label` attribute for the menu bar UI.
165
+ */
166
+ menuBarAssistiveText: PropTypes.string,
167
+ /**
168
+ * The skip-to-content link text.
169
+ */
170
+ skipToContentText: PropTypes.string,
171
+ /**
172
+ * The skip-to-content href.
173
+ */
174
+ skipToContentHref: PropTypes.string,
175
+ /**
176
+ * The `aria-label` attribute for the header menu button in its active state.
177
+ */
178
+ menuButtonAssistiveTextActive: PropTypes.string,
179
+ /**
180
+ * The `aria-label` attribute for the header menu button in its active state.
181
+ */
182
+ menuButtonAssistiveTextInactive: PropTypes.string,
183
+ /**
184
+ * The parameters passed to the search-with-typeahead for search scope
185
+ */
186
+ scopeParameters: PropTypes.string,
187
+ /**
188
+ * The English title of the selected nav item.
189
+ */
190
+ selectedMenuItem: PropTypes.string,
191
+ /**
192
+ * The profile items for unauthenticated state.
193
+ */
194
+ unauthenticatedProfileItems: PropTypes.string,
195
+ /**
196
+ * Specify translation endpoint if not using default dds endpoint.
197
+ */
198
+ dataEndpoint: PropTypes.string,
199
+ /**
200
+ * The throttle timeout to run query upon user input.
201
+ */
202
+ inputTimeout: PropTypes.number,
203
+ /**
204
+ * The language used for query.
205
+ */
206
+ language: PropTypes.string,
207
+ /**
208
+ * The navigation links.
209
+ */
210
+ navLinks: PropTypes.string,
211
+ /**
212
+ * Logo data
213
+ */
214
+ logoData: PropTypes.string,
215
+ /**
216
+ * Data for l1.
217
+ */
218
+ l1Data: PropTypes.string,
219
+ /**
220
+ * `true` to open the search dropdown.
221
+ */
222
+ openSearchDropdown: PropTypes.bool,
223
+ /**
224
+ * Value to display when the input has an empty `value`.
225
+ */
226
+ searchPlaceholder: PropTypes.string,
227
+ /**
228
+ * The user authentication status.
229
+ */
230
+ userStatus: PropTypes.string,
231
+ /**
232
+ * The name of the custom event fired when a top nav menu is clicked
233
+ */
234
+ onMegamenuActive: PropTypes.func,
235
+ };
236
+ const Component = createReactCustomElementType(
237
+ ''.concat(ddsPrefix, '-masthead-composite'),
238
+ descriptor
239
+ );
240
+ Component.propTypes = propTypes;
241
+ export default Component;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { descriptor as parentDescriptor } from '././masthead-composite.js';
10
+ import { propTypes as parentPropTypes } from '././masthead-composite.js';
11
+ export { default as CustomElement } from '../../components/masthead/masthead-container.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
+ import PropTypes from 'prop-types';
14
+ import settings from 'carbon-components/es/globals/js/settings.js';
15
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
16
+ var prefix = settings.prefix;
17
+ var ddsPrefix = ddsSettings.stablePrefix;
18
+ export var descriptor = Object.assign({}, parentDescriptor, {});
19
+ export var propTypes = {};
20
+ const Component = createReactCustomElementType(
21
+ ''.concat(ddsPrefix, '-masthead-container'),
22
+ descriptor
23
+ );
24
+ Component.propTypes = propTypes;
25
+ export default Component;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ export { default as CustomElement } from '../../components/masthead/masthead.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
+ import PropTypes from 'prop-types';
12
+ import settings from 'carbon-components/es/globals/js/settings.js';
13
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
14
+ var prefix = settings.prefix;
15
+ var ddsPrefix = ddsSettings.stablePrefix;
16
+ export var descriptor = {};
17
+ export var propTypes = {};
18
+ const Component = createReactCustomElementType(
19
+ ''.concat(ddsPrefix, '-masthead'),
20
+ descriptor
21
+ );
22
+ Component.propTypes = propTypes;
23
+ export default Component;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { descriptor as parentDescriptor } from '../link-with-icon/link-with-icon.js';
10
+ import { propTypes as parentPropTypes } from '../link-with-icon/link-with-icon.js';
11
+ export { default as CustomElement } from '../../components/quote/quote-link-with-icon.js';
12
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
13
+ import PropTypes from 'prop-types';
14
+ import settings from 'carbon-components/es/globals/js/settings.js';
15
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
16
+ var prefix = settings.prefix;
17
+ var ddsPrefix = ddsSettings.stablePrefix;
18
+ export var descriptor = Object.assign({}, parentDescriptor, {});
19
+ export var propTypes = {};
20
+ const Component = createReactCustomElementType(
21
+ ''.concat(ddsPrefix, '-quote-link-with-icon'),
22
+ descriptor
23
+ );
24
+ Component.propTypes = propTypes;
25
+ export default Component;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ export { default as CustomElement } from '../../components/quote/quote-source-bottom-copy.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
+ import PropTypes from 'prop-types';
12
+ import settings from 'carbon-components/es/globals/js/settings.js';
13
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
14
+ var prefix = settings.prefix;
15
+ var ddsPrefix = ddsSettings.stablePrefix;
16
+ export var descriptor = {
17
+ slot: {},
18
+ };
19
+ export var propTypes = {
20
+ /**
21
+ * The shadow slot this source bottom copy content should be in.
22
+ */
23
+ slot: PropTypes.string,
24
+ };
25
+ const Component = createReactCustomElementType(
26
+ ''.concat(ddsPrefix, '-quote-source-bottom-copy'),
27
+ descriptor
28
+ );
29
+ Component.propTypes = propTypes;
30
+ export default Component;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ export { default as CustomElement } from '../../components/quote/quote-source-copy.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
+ import PropTypes from 'prop-types';
12
+ import settings from 'carbon-components/es/globals/js/settings.js';
13
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
14
+ var prefix = settings.prefix;
15
+ var ddsPrefix = ddsSettings.stablePrefix;
16
+ export var descriptor = {
17
+ slot: {},
18
+ };
19
+ export var propTypes = {
20
+ /**
21
+ * The shadow slot this source copy content should be in.
22
+ */
23
+ slot: PropTypes.string,
24
+ };
25
+ const Component = createReactCustomElementType(
26
+ ''.concat(ddsPrefix, '-quote-source-copy'),
27
+ descriptor
28
+ );
29
+ Component.propTypes = propTypes;
30
+ export default Component;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ export { default as CustomElement } from '../../components/quote/quote-source-heading.js';
10
+ import createReactCustomElementType from '@carbon/web-components/es/globals/wrappers/createReactCustomElementType.js';
11
+ import PropTypes from 'prop-types';
12
+ import settings from 'carbon-components/es/globals/js/settings.js';
13
+ import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
14
+ var prefix = settings.prefix;
15
+ var ddsPrefix = ddsSettings.stablePrefix;
16
+ export var descriptor = {
17
+ slot: {},
18
+ };
19
+ export var propTypes = {
20
+ /**
21
+ * The shadow slot this source copy content should be in.
22
+ */
23
+ slot: PropTypes.string,
24
+ };
25
+ const Component = createReactCustomElementType(
26
+ ''.concat(ddsPrefix, '-quote-source-heading'),
27
+ descriptor
28
+ );
29
+ Component.propTypes = propTypes;
30
+ export default Component;