@carbon/ibmdotcom-web-components 2.23.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +17 -9
- package/dist/dotcom-shell.js +3 -3
- package/dist/dotcom-shell.min.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.js +3 -3
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
- package/dist/{index-4a2b99e5.js → index-1dfaa907.js} +529 -701
- package/dist/{index-90537714.js → index-8e5904a0.js} +5 -5
- package/dist/{left-nav-menu-ccf3a6ec.js → left-nav-menu-08b77355.js} +2 -2
- package/dist/{left-nav-menu-category-heading-3016e990.js → left-nav-menu-category-heading-1874e85f.js} +2 -2
- package/dist/{left-nav-menu-category-heading-cb17a84f.js → left-nav-menu-category-heading-907c5870.js} +3 -3
- package/dist/{left-nav-menu-a22a1a6e.js → left-nav-menu-ee66480f.js} +3 -3
- package/dist/{left-nav-menu-item-18d051bc.js → left-nav-menu-item-463c0a47.js} +2 -2
- package/dist/{left-nav-menu-item-85006ef1.js → left-nav-menu-item-62b3aeb4.js} +3 -3
- package/dist/{left-nav-menu-section-027d6043.js → left-nav-menu-section-36fa5f37.js} +2 -2
- package/dist/{left-nav-menu-section-cee5e8b9.js → left-nav-menu-section-620f3e39.js} +3 -3
- package/dist/{left-nav-overlay-225f893f.js → left-nav-overlay-11083652.js} +2 -2
- package/dist/{left-nav-overlay-e559d687.js → left-nav-overlay-4aa89969.js} +3 -3
- package/dist/{megamenu-category-group-75dd0587.js → megamenu-category-group-38ebe02a.js} +2 -2
- package/dist/{megamenu-category-group-89eb9dd2.js → megamenu-category-group-768aa48a.js} +3 -3
- package/dist/{megamenu-category-group-copy-94e321c8.js → megamenu-category-group-copy-0036630c.js} +3 -3
- package/dist/{megamenu-category-group-copy-533d77ca.js → megamenu-category-group-copy-0770e2d1.js} +2 -2
- package/dist/{megamenu-category-heading-5c562696.js → megamenu-category-heading-25325ce1.js} +3 -3
- package/dist/{megamenu-category-heading-370cb6dc.js → megamenu-category-heading-5fae5a7f.js} +2 -2
- package/dist/{megamenu-category-link-6060a359.js → megamenu-category-link-3a79d2ea.js} +2 -2
- package/dist/{megamenu-category-link-66573e4b.js → megamenu-category-link-d1712222.js} +3 -3
- package/dist/{megamenu-category-link-group-83d39e8b.js → megamenu-category-link-group-ba6e3528.js} +3 -3
- package/dist/{megamenu-category-link-group-4f9fcb1a.js → megamenu-category-link-group-fe0164c9.js} +2 -2
- package/dist/{megamenu-left-navigation-35cca50a.js → megamenu-left-navigation-29fdbefc.js} +2 -2
- package/dist/{megamenu-left-navigation-ab38535c.js → megamenu-left-navigation-dba059eb.js} +3 -3
- package/dist/{megamenu-overlay-977e9e98.js → megamenu-overlay-6fcf6e91.js} +2 -2
- package/dist/{megamenu-overlay-9b73f118.js → megamenu-overlay-899719ba.js} +3 -3
- package/dist/{megamenu-tab-e4488ebd.js → megamenu-tab-1835d1a2.js} +3 -3
- package/dist/{megamenu-tab-69382393.js → megamenu-tab-1a79a248.js} +2 -2
- package/es/components/background-media/background-media.css.js +1 -1
- package/es/components/background-media/background-media.d.ts +7 -1
- package/es/components/background-media/background-media.js +29 -1
- package/es/components/background-media/background-media.js.map +1 -1
- package/es/components/background-media/defs.d.ts +5 -1
- package/es/components/background-media/defs.js +2 -1
- package/es/components/background-media/defs.js.map +1 -1
- package/es/components/card-group/card-group.css.js +1 -1
- package/es/components/card-group/card-group.d.ts +688 -1
- package/es/components/card-group/card-group.js +47 -12
- package/es/components/card-group/card-group.js.map +1 -1
- package/es/components/card-section-offset/card-section-offset.css.js +1 -1
- package/es/components/content-block/content-block.css.js +1 -1
- package/es/components/content-block-cards/content-block-cards.d.ts +2 -1
- package/es/components/content-block-cards/content-block-cards.js +17 -1
- package/es/components/content-block-cards/content-block-cards.js.map +1 -1
- package/es/components/cta/video-cta-container.d.ts +1 -0
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.d.ts +1 -0
- package/es/components/masthead/left-nav.d.ts +2 -1
- package/es/components/masthead/left-nav.js +23 -6
- package/es/components/masthead/left-nav.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.js +2 -2
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components/video-player/video-player-container.d.ts +3 -1
- package/es/components/video-player/video-player-container.js +276 -195
- package/es/components/video-player/video-player-container.js.map +1 -1
- package/es/components/video-player/video-player.d.ts +2 -1
- package/es/components/video-player/video-player.js +5 -3
- package/es/components/video-player/video-player.js.map +1 -1
- package/es/components-react/video-player/video-player.d.ts +1 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +7 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/components/background-media/defs.js +2 -1
- package/lib/components/background-media/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +7 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
*
|
|
17
|
-
* Copyright IBM Corp. 2020,
|
|
17
|
+
* Copyright IBM Corp. 2020, 2025
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -49,6 +49,7 @@ const {
|
|
|
49
49
|
* @csspart video - The video. Usage `c4d-video-player::part(video)`
|
|
50
50
|
* @csspart button - The play button. Usage `c4d-video-player::part(button)`
|
|
51
51
|
* @csspart image - The thumbnail image. Usage `c4d-video-player::part(image)`
|
|
52
|
+
* @csspart play-video - The play video icon. Usage `c4d-video-player::part(play-video)`
|
|
52
53
|
* @csspart video-container - The video container. Usage `c4d-video-player::part(video-container)`
|
|
53
54
|
* @csspart caption - The caption. Usage `c4d-video-player::part(caption)`
|
|
54
55
|
*/
|
|
@@ -189,7 +190,8 @@ let C4DVideoPlayer = _decorate([customElement(`${c4dPrefix}-video-player`)], fun
|
|
|
189
190
|
</button>
|
|
190
191
|
</div>
|
|
191
192
|
`), c4dPrefix, c4dPrefix, handleClickOverlay, thumbnailUrl, ifNonEmpty(name), PlayVideo({
|
|
192
|
-
slot: 'icon'
|
|
193
|
+
slot: 'icon',
|
|
194
|
+
part: 'play-video'
|
|
193
195
|
})) : html(_t5 || (_t5 = _` <slot></slot> `));
|
|
194
196
|
}
|
|
195
197
|
};
|
|
@@ -436,7 +438,7 @@ let C4DVideoPlayer = _decorate([customElement(`${c4dPrefix}-video-player`)], fun
|
|
|
436
438
|
[`${c4dPrefix}--video-player__toggle-playback--${buttonPosition}`]: true
|
|
437
439
|
});
|
|
438
440
|
return html(_t6 || (_t6 = _`
|
|
439
|
-
<div class="${0}">
|
|
441
|
+
<div class="${0}" part="video-container">
|
|
440
442
|
${0}
|
|
441
443
|
${0}
|
|
442
444
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-player.js","names":["LitElement","html","property","classMap","FocusMixin","PlayVideo","PlayOutline","PauseOutline","formatVideoCaption","formatVideoDuration","settings","KalturaPlayerAPI","BUTTON_POSITION","VIDEO_PLAYER_CONTENT_STATE","VIDEO_PLAYER_PLAYING_MODE","styles","StableSelectorMixin","carbonElement","customElement","ifNonEmpty","stablePrefix","c4dPrefix","C4DVideoPlayer","_decorate","_initialize","_FocusMixin","constructor","args","F","d","kind","decorators","reflect","attribute","key","value","INLINE","type","Boolean","BOTTOM_RIGHT","playingMode","contentState","VIDEO","videoId","name","customVideoDescription","eventContentStateChange","dispatchEvent","CustomEvent","bubbles","composed","detail","eventTogglePlayback","thumbnailUrl","backgroundMode","_handleClickOverlay","handleClickOverlay","intersectionMode","_t","_","THUMBNAIL","_t2","_t3","autoplay","_t4","slot","_t5","_updateThumbnailUrl","thumbnailSrc","URL","error","host","toLowerCase","includes","pathname","getThumbnailUrl","mediaId","width","String","offsetWidth","userInitiatedTogglePlaybackState","eventPlaybackStateChange","Number","render","aspectRatio","duration","formatCaption","formatDuration","hideCaption","buttonPosition","_handleTogglePlayback","handleTogglePlayback","_renderContent","renderContent","aspectRatioClass","togglePlaybackClass","_t6","_t7","isPlaying","undefined","_t8","updated","changedProperties","has","caption","setAttribute","setTimeout","updateComplete","endsWith","firstUpdated","_this$parentElement","_this$parentElement2","_this$parentElement3","tabIndex","parentElement","autoPlay","static","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/video-player/video-player.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2024\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport PlayVideo from '../../../es/icons/play-video.js';\nimport PlayOutline from '@carbon/web-components/es/icons/play--outline/20.js';\nimport PauseOutline from '@carbon/web-components/es/icons/pause--outline/20.js';\nimport {\n formatVideoCaption,\n formatVideoDuration,\n} from '@carbon/ibmdotcom-utilities/es/utilities/formatVideoCaption/formatVideoCaption.js';\nimport settings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';\nimport KalturaPlayerAPI from '@carbon/ibmdotcom-services/es/services/KalturaPlayer/KalturaPlayer.js';\nimport {\n BUTTON_POSITION,\n VIDEO_PLAYER_CONTENT_STATE,\n VIDEO_PLAYER_PLAYING_MODE,\n} from './defs';\nimport '../image/image';\nimport styles from './video-player.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport { carbonElement as customElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';\nimport ifNonEmpty from '@carbon/web-components/es/globals/directives/if-non-empty.js';\nimport C4DVideoPlayerComposite from './video-player-composite';\n\nexport { VIDEO_PLAYER_CONTENT_STATE };\nexport { VIDEO_PLAYER_PLAYING_MODE };\n\nconst { stablePrefix: c4dPrefix } = settings;\n\n/**\n * Video player.\n *\n * @element c4d-video-player\n * @csspart video - The video. Usage `c4d-video-player::part(video)`\n * @csspart button - The play button. Usage `c4d-video-player::part(button)`\n * @csspart image - The thumbnail image. Usage `c4d-video-player::part(image)`\n * @csspart video-container - The video container. Usage `c4d-video-player::part(video-container)`\n * @csspart caption - The caption. Usage `c4d-video-player::part(caption)`\n */\n@customElement(`${c4dPrefix}-video-player`)\nclass C4DVideoPlayer extends FocusMixin(StableSelectorMixin(LitElement)) {\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 * Triggers playback on intersection with the viewport / carousel.\n */\n @property({ attribute: 'intersection-mode', reflect: true, type: Boolean })\n intersectionMode = false;\n\n /**\n * The current playback state, inherited from the parent.\n */\n @property()\n isPlaying = false;\n\n /**\n * The position of the toggle playback button.\n */\n @property({ attribute: 'button-position', reflect: true })\n buttonPosition = BUTTON_POSITION.BOTTOM_RIGHT;\n\n /**\n * Handles `click` event on the video thumbnail.\n */\n protected _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 C4DVideoPlayer;\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 protected _handleTogglePlayback = () => {\n const { videoId } = this;\n const { eventTogglePlayback } = this.constructor as typeof C4DVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventTogglePlayback, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n },\n })\n );\n };\n\n /**\n * @returns The video content.\n */\n protected _renderContent = () => {\n const {\n contentState,\n name,\n thumbnailUrl,\n backgroundMode,\n _handleClickOverlay: handleClickOverlay,\n intersectionMode,\n } = this;\n if (intersectionMode) {\n return html`\n <div class=\"${c4dPrefix}--video-player__video\">\n ${contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL\n ? html`\n <c4d-image\n default-src=\"${thumbnailUrl}\"\n alt=\"${ifNonEmpty(name)}\"\n part=\"image\">\n </c4d-image>\n `\n : html` <slot></slot> `}\n </div>\n `;\n } else {\n return contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL &&\n !backgroundMode &&\n !this.autoplay\n ? html`\n <div class=\"${c4dPrefix}--video-player__video\" part=\"video\">\n <button\n class=\"${c4dPrefix}--video-player__image-overlay\"\n part=\"button\"\n @click=\"${handleClickOverlay}\">\n <c4d-image\n default-src=\"${thumbnailUrl}\"\n alt=\"${ifNonEmpty(name)}\"\n part=\"image\">\n ${PlayVideo({ slot: 'icon' })}\n </c4d-image>\n </button>\n </div>\n `\n : html` <slot></slot> `;\n }\n };\n\n /**\n * Updates video thumbnail url to match video width\n */\n protected _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 /**\n * userInitiatedTogglePlaybackState\n */\n public userInitiatedTogglePlaybackState() {\n const { videoId } = this;\n const { eventPlaybackStateChange } = this\n .constructor as typeof C4DVideoPlayer;\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, type: Boolean })\n backgroundMode = false;\n\n /**\n * `true` to autoplay\n */\n @property({ attribute: 'auto-play', reflect: true, type: Boolean })\n autoplay = 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 render() {\n const {\n aspectRatio,\n duration,\n formatCaption,\n formatDuration,\n hideCaption,\n name,\n buttonPosition,\n intersectionMode,\n _handleTogglePlayback: handleTogglePlayback,\n _renderContent: renderContent,\n } = this;\n\n const aspectRatioClass = classMap({\n [`${c4dPrefix}--video-player__video-container`]: true,\n [`${c4dPrefix}--video-player__aspect-ratio--${aspectRatio}`]:\n !!aspectRatio,\n });\n const togglePlaybackClass = classMap({\n [`${c4dPrefix}--video-player__toggle-playback`]: true,\n [`${c4dPrefix}--video-player__toggle-playback--${buttonPosition}`]: true,\n });\n\n return html`\n <div class=\"${aspectRatioClass}\">\n ${intersectionMode\n ? html`\n <button\n class=\"${togglePlaybackClass}\"\n @click=\"${handleTogglePlayback}\"\n tabindex=\"0\"\n part=\"button\">\n ${this.isPlaying\n ? PauseOutline({ 'aria-label': 'Pause' })\n : PlayOutline({ 'aria-label': 'Play' })}\n </button>\n `\n : null}\n ${renderContent()}\n </div>\n ${hideCaption\n ? undefined\n : html`\n <div\n class=\"${c4dPrefix}--video-player__video-caption\"\n part=\"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 // Move measurement & API call to callback queue & wait for update to complete.\n setTimeout(async () => {\n await this.updateComplete;\n if (!this.thumbnailUrl.endsWith(`${this.offsetWidth}`)) {\n this._updateThumbnailUrl();\n }\n }, 0);\n }\n\n firstUpdated() {\n this.tabIndex = 0;\n this.backgroundMode = Boolean(\n (this.parentElement as C4DVideoPlayerComposite)?.backgroundMode\n );\n this.intersectionMode = Boolean(\n (this.parentElement as C4DVideoPlayerComposite)?.intersectionMode\n );\n this.autoplay = Boolean(\n (this.parentElement as C4DVideoPlayerComposite)?.autoPlay\n );\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 `${c4dPrefix}-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 `${c4dPrefix}-video-player-playback-state-changed`;\n }\n\n static get stableSelector() {\n return `${c4dPrefix}--video-player`;\n }\n\n /**\n * The name of the custom event fired when a user action toggles playback.\n */\n static get eventTogglePlayback() {\n return `${c4dPrefix}-video-player-toggle-playback`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\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 C4DVideoPlayer;\n"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,QAAQ,QAAQ,6BAA6B;AACtD,OAAOC,UAAU,MAAM,mDAAmD;AAC1E,OAAOC,SAAS,MAAM,iCAAiC;AACvD,OAAOC,WAAW,MAAM,qDAAqD;AAC7E,OAAOC,YAAY,MAAM,sDAAsD;AAC/E,SACEC,kBAAkB,EAClBC,mBAAmB,QACd,mFAAmF;AAC1F,OAAOC,QAAQ,MAAM,+DAA+D;AACpF,OAAOC,gBAAgB,MAAM,uEAAuE;AACpG,SACEC,eAAe,EACfC,0BAA0B,EAC1BC,yBAAyB,QACpB,WAAQ;AACf,OAAO,mBAAgB;AACvB,OAAOC,MAAM,MAAM,yBAAqB;AACxC,OAAOC,mBAAmB,MAAM,yCAAsC;AACtE,SAASC,aAAa,IAAIC,aAAa,QAAQ,gEAAgE;AAC/G,OAAOC,UAAU,MAAM,8DAA8D;AAGrF,SAASN,0BAA0B;AACnC,SAASC,yBAAyB;AAElC,MAAM;EAAEM,YAAY,EAAEC;AAAU,CAAC,GAAGX,QAAQ;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA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AM;MAAA;IAAA;EAAA;AAAA,GA1WKX,UAAU,CAACY,mBAAmB,CAAChB,UAAU,CAAC,CAAC;AA6WxE;AACA,eAAesB,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"video-player.js","names":["LitElement","html","property","classMap","FocusMixin","PlayVideo","PlayOutline","PauseOutline","formatVideoCaption","formatVideoDuration","settings","KalturaPlayerAPI","BUTTON_POSITION","VIDEO_PLAYER_CONTENT_STATE","VIDEO_PLAYER_PLAYING_MODE","styles","StableSelectorMixin","carbonElement","customElement","ifNonEmpty","stablePrefix","c4dPrefix","C4DVideoPlayer","_decorate","_initialize","_FocusMixin","constructor","args","F","d","kind","decorators","reflect","attribute","key","value","INLINE","type","Boolean","BOTTOM_RIGHT","playingMode","contentState","VIDEO","videoId","name","customVideoDescription","eventContentStateChange","dispatchEvent","CustomEvent","bubbles","composed","detail","eventTogglePlayback","thumbnailUrl","backgroundMode","_handleClickOverlay","handleClickOverlay","intersectionMode","_t","_","THUMBNAIL","_t2","_t3","autoplay","_t4","slot","part","_t5","_updateThumbnailUrl","thumbnailSrc","URL","error","host","toLowerCase","includes","pathname","getThumbnailUrl","mediaId","width","String","offsetWidth","userInitiatedTogglePlaybackState","eventPlaybackStateChange","Number","render","aspectRatio","duration","formatCaption","formatDuration","hideCaption","buttonPosition","_handleTogglePlayback","handleTogglePlayback","_renderContent","renderContent","aspectRatioClass","togglePlaybackClass","_t6","_t7","isPlaying","undefined","_t8","updated","changedProperties","has","caption","setAttribute","setTimeout","updateComplete","endsWith","firstUpdated","_this$parentElement","_this$parentElement2","_this$parentElement3","tabIndex","parentElement","autoPlay","static","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/video-player/video-player.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2025\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport PlayVideo from '../../../es/icons/play-video.js';\nimport PlayOutline from '@carbon/web-components/es/icons/play--outline/20.js';\nimport PauseOutline from '@carbon/web-components/es/icons/pause--outline/20.js';\nimport {\n formatVideoCaption,\n formatVideoDuration,\n} from '@carbon/ibmdotcom-utilities/es/utilities/formatVideoCaption/formatVideoCaption.js';\nimport settings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';\nimport KalturaPlayerAPI from '@carbon/ibmdotcom-services/es/services/KalturaPlayer/KalturaPlayer.js';\nimport {\n BUTTON_POSITION,\n VIDEO_PLAYER_CONTENT_STATE,\n VIDEO_PLAYER_PLAYING_MODE,\n} from './defs';\nimport '../image/image';\nimport styles from './video-player.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport { carbonElement as customElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';\nimport ifNonEmpty from '@carbon/web-components/es/globals/directives/if-non-empty.js';\nimport C4DVideoPlayerComposite from './video-player-composite';\n\nexport { VIDEO_PLAYER_CONTENT_STATE };\nexport { VIDEO_PLAYER_PLAYING_MODE };\n\nconst { stablePrefix: c4dPrefix } = settings;\n\n/**\n * Video player.\n *\n * @element c4d-video-player\n * @csspart video - The video. Usage `c4d-video-player::part(video)`\n * @csspart button - The play button. Usage `c4d-video-player::part(button)`\n * @csspart image - The thumbnail image. Usage `c4d-video-player::part(image)`\n * @csspart play-video - The play video icon. Usage `c4d-video-player::part(play-video)`\n * @csspart video-container - The video container. Usage `c4d-video-player::part(video-container)`\n * @csspart caption - The caption. Usage `c4d-video-player::part(caption)`\n */\n@customElement(`${c4dPrefix}-video-player`)\nclass C4DVideoPlayer extends FocusMixin(StableSelectorMixin(LitElement)) {\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 * Triggers playback on intersection with the viewport / carousel.\n */\n @property({ attribute: 'intersection-mode', reflect: true, type: Boolean })\n intersectionMode = false;\n\n /**\n * The current playback state, inherited from the parent.\n */\n @property()\n isPlaying = false;\n\n /**\n * The position of the toggle playback button.\n */\n @property({ attribute: 'button-position', reflect: true })\n buttonPosition = BUTTON_POSITION.BOTTOM_RIGHT;\n\n /**\n * Handles `click` event on the video thumbnail.\n */\n protected _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 C4DVideoPlayer;\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 protected _handleTogglePlayback = () => {\n const { videoId } = this;\n const { eventTogglePlayback } = this.constructor as typeof C4DVideoPlayer;\n this.dispatchEvent(\n new CustomEvent(eventTogglePlayback, {\n bubbles: true,\n composed: true,\n detail: {\n videoId,\n },\n })\n );\n };\n\n /**\n * @returns The video content.\n */\n protected _renderContent = () => {\n const {\n contentState,\n name,\n thumbnailUrl,\n backgroundMode,\n _handleClickOverlay: handleClickOverlay,\n intersectionMode,\n } = this;\n if (intersectionMode) {\n return html`\n <div class=\"${c4dPrefix}--video-player__video\">\n ${contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL\n ? html`\n <c4d-image\n default-src=\"${thumbnailUrl}\"\n alt=\"${ifNonEmpty(name)}\"\n part=\"image\">\n </c4d-image>\n `\n : html` <slot></slot> `}\n </div>\n `;\n } else {\n return contentState === VIDEO_PLAYER_CONTENT_STATE.THUMBNAIL &&\n !backgroundMode &&\n !this.autoplay\n ? html`\n <div class=\"${c4dPrefix}--video-player__video\" part=\"video\">\n <button\n class=\"${c4dPrefix}--video-player__image-overlay\"\n part=\"button\"\n @click=\"${handleClickOverlay}\">\n <c4d-image\n default-src=\"${thumbnailUrl}\"\n alt=\"${ifNonEmpty(name)}\"\n part=\"image\">\n ${PlayVideo({ slot: 'icon', part: 'play-video' })}\n </c4d-image>\n </button>\n </div>\n `\n : html` <slot></slot> `;\n }\n };\n\n /**\n * Updates video thumbnail url to match video width\n */\n protected _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 /**\n * userInitiatedTogglePlaybackState\n */\n public userInitiatedTogglePlaybackState() {\n const { videoId } = this;\n const { eventPlaybackStateChange } = this\n .constructor as typeof C4DVideoPlayer;\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, type: Boolean })\n backgroundMode = false;\n\n /**\n * `true` to autoplay\n */\n @property({ attribute: 'auto-play', reflect: true, type: Boolean })\n autoplay = 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 render() {\n const {\n aspectRatio,\n duration,\n formatCaption,\n formatDuration,\n hideCaption,\n name,\n buttonPosition,\n intersectionMode,\n _handleTogglePlayback: handleTogglePlayback,\n _renderContent: renderContent,\n } = this;\n\n const aspectRatioClass = classMap({\n [`${c4dPrefix}--video-player__video-container`]: true,\n [`${c4dPrefix}--video-player__aspect-ratio--${aspectRatio}`]:\n !!aspectRatio,\n });\n const togglePlaybackClass = classMap({\n [`${c4dPrefix}--video-player__toggle-playback`]: true,\n [`${c4dPrefix}--video-player__toggle-playback--${buttonPosition}`]: true,\n });\n\n return html`\n <div class=\"${aspectRatioClass}\" part=\"video-container\">\n ${intersectionMode\n ? html`\n <button\n class=\"${togglePlaybackClass}\"\n @click=\"${handleTogglePlayback}\"\n tabindex=\"0\"\n part=\"button\">\n ${this.isPlaying\n ? PauseOutline({ 'aria-label': 'Pause' })\n : PlayOutline({ 'aria-label': 'Play' })}\n </button>\n `\n : null}\n ${renderContent()}\n </div>\n ${hideCaption\n ? undefined\n : html`\n <div\n class=\"${c4dPrefix}--video-player__video-caption\"\n part=\"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 // Move measurement & API call to callback queue & wait for update to complete.\n setTimeout(async () => {\n await this.updateComplete;\n if (!this.thumbnailUrl.endsWith(`${this.offsetWidth}`)) {\n this._updateThumbnailUrl();\n }\n }, 0);\n }\n\n firstUpdated() {\n this.tabIndex = 0;\n this.backgroundMode = Boolean(\n (this.parentElement as C4DVideoPlayerComposite)?.backgroundMode\n );\n this.intersectionMode = Boolean(\n (this.parentElement as C4DVideoPlayerComposite)?.intersectionMode\n );\n this.autoplay = Boolean(\n (this.parentElement as C4DVideoPlayerComposite)?.autoPlay\n );\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 `${c4dPrefix}-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 `${c4dPrefix}-video-player-playback-state-changed`;\n }\n\n static get stableSelector() {\n return `${c4dPrefix}--video-player`;\n }\n\n /**\n * The name of the custom event fired when a user action toggles playback.\n */\n static get eventTogglePlayback() {\n return `${c4dPrefix}-video-player-toggle-playback`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\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 C4DVideoPlayer;\n"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACt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MAAA;MAAAnF,GAAA;MAAAC,KAAA,EAGA,SAAAA,CAAA,EAAqC;QACnC,OAAO,GAAGd,SAAS,qCAAqC;MAC1D;;MAEA;AACF;AACA;IAFE;MAAAS,IAAA;MAAAuF,MAAA;MAAAnF,GAAA;MAAAC,KAAA,EAGA,SAAAA,CAAA,EAAsC;QACpC,OAAO,GAAGd,SAAS,sCAAsC;MAC3D;IAAC;MAAAS,IAAA;MAAAuF,MAAA;MAAAnF,GAAA;MAAAC,KAAA,EAED,SAAAA,CAAA,EAA4B;QAC1B,OAAO,GAAGd,SAAS,gBAAgB;MACrC;;MAEA;AACF;AACA;IAFE;MAAAS,IAAA;MAAAuF,MAAA;MAAAnF,GAAA;MAAAC,KAAA,EAGA,SAAAA,CAAA,EAAiC;QAC/B,OAAO,GAAGd,SAAS,+BAA+B;MACpD;IAAC;MAAAS,IAAA;MAAAuF,MAAA;MAAAnF,GAAA;MAAAC,MAAA;QAAA,OAAAmF,aAAA,CAAAA,aAAA,KAGItH,UAAU,CAACuH,iBAAiB;UAC/BC,cAAc,EAAE;QAAI;MAAA;IAAA;MAAA1F,IAAA;MAAAuF,MAAA;MAAAnF,GAAA;MAAAC,MAAA;QAAA,OAENpB,MAAM;MAAA;IAAA;EAAA;AAAA,GA1WKX,UAAU,CAACY,mBAAmB,CAAChB,UAAU,CAAC,CAAC;AA6WxE;AACA,eAAesB,cAAc","ignoreList":[]}
|
|
@@ -29,6 +29,7 @@ export interface ComponentProps {
|
|
|
29
29
|
* @csspart video - The video. Usage `c4d-video-player::part(video)`
|
|
30
30
|
* @csspart button - The play button. Usage `c4d-video-player::part(button)`
|
|
31
31
|
* @csspart image - The thumbnail image. Usage `c4d-video-player::part(image)`
|
|
32
|
+
* @csspart play-video - The play video icon. Usage `c4d-video-player::part(play-video)`
|
|
32
33
|
* @csspart video-container - The video container. Usage `c4d-video-player::part(video-container)`
|
|
33
34
|
* @csspart caption - The caption. Usage `c4d-video-player::part(caption)`
|
|
34
35
|
*/
|
package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js
CHANGED
|
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
/**
|
|
9
|
-
* Copyright IBM Corp. 2020,
|
|
9
|
+
* Copyright IBM Corp. 2020, 2025
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -226,6 +226,12 @@ var KalturaPlayerAPI = /*#__PURE__*/function () {
|
|
|
226
226
|
closedCaptions: {
|
|
227
227
|
plugin: true
|
|
228
228
|
},
|
|
229
|
+
/**
|
|
230
|
+
* When altering this default prop,
|
|
231
|
+
* please also check the video-player-container
|
|
232
|
+
* _getPlayerOptions prop of same name - as it also
|
|
233
|
+
* replicates the value below except for text
|
|
234
|
+
*/
|
|
229
235
|
titleLabel: {
|
|
230
236
|
plugin: true,
|
|
231
237
|
align: 'left',
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* @type {object} Settings object
|
|
13
13
|
* @property {string} [stablePrefix=c4d] stable prefix
|
|
14
14
|
* @property {string} [prefix=cds] core Carbon prefix
|
|
15
|
-
* Carbon for IBM.com v2.
|
|
15
|
+
* Carbon for IBM.com v2.25.0',
|
|
16
16
|
*/
|
|
17
17
|
var settings = {
|
|
18
|
-
version: 'Carbon for IBM.com v2.
|
|
18
|
+
version: 'Carbon for IBM.com v2.25.0',
|
|
19
19
|
stablePrefix: 'c4d',
|
|
20
20
|
prefix: 'cds'
|
|
21
21
|
};
|
|
@@ -7,7 +7,7 @@ exports.MOBILE_POSITION = exports.GRADIENT_DIRECTION = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
*
|
|
10
|
-
* Copyright IBM Corp. 2021
|
|
10
|
+
* Copyright IBM Corp. 2021, 2025
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -21,6 +21,7 @@ let GRADIENT_DIRECTION = exports.GRADIENT_DIRECTION = void 0;
|
|
|
21
21
|
*/
|
|
22
22
|
(function (GRADIENT_DIRECTION) {
|
|
23
23
|
GRADIENT_DIRECTION["LEFT_TO_RIGHT"] = "left-to-right";
|
|
24
|
+
GRADIENT_DIRECTION["RIGHT_TO_LEFT"] = "right-to-left";
|
|
24
25
|
GRADIENT_DIRECTION["TOP_TO_BOTTOM"] = "top-to-bottom";
|
|
25
26
|
})(GRADIENT_DIRECTION || (exports.GRADIENT_DIRECTION = GRADIENT_DIRECTION = {}));
|
|
26
27
|
let MOBILE_POSITION = exports.MOBILE_POSITION = void 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","names":["GRADIENT_DIRECTION","exports","MOBILE_POSITION"],"sources":["components/background-media/defs.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021\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\n/**\n * Gradient Direction\n */\nexport enum GRADIENT_DIRECTION {\n /**\n * Left to right\n */\n LEFT_TO_RIGHT = 'left-to-right',\n\n /**\n * Top to Bottom\n */\n TOP_TO_BOTTOM = 'top-to-bottom',\n}\n\n/**\n * Mobile Position\n */\nexport enum MOBILE_POSITION {\n /**\n * Top\n */\n TOP = 'top',\n\n /**\n * Bottom\n */\n BOTTOM = 'bottom',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAGYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA;
|
|
1
|
+
{"version":3,"file":"defs.js","names":["GRADIENT_DIRECTION","exports","MOBILE_POSITION"],"sources":["components/background-media/defs.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2025\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\n/**\n * Gradient Direction\n */\nexport enum GRADIENT_DIRECTION {\n /**\n * Left to right\n */\n LEFT_TO_RIGHT = 'left-to-right',\n\n /**\n * Right to left\n */\n RIGHT_TO_LEFT = 'right-to-left',\n\n /**\n * Top to Bottom\n */\n TOP_TO_BOTTOM = 'top-to-bottom',\n}\n\n/**\n * Mobile Position\n */\nexport enum MOBILE_POSITION {\n /**\n * Top\n */\n TOP = 'top',\n\n /**\n * Bottom\n */\n BOTTOM = 'bottom',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAGYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA;AAiB9B;AACA;AACA;AAFA,WAjBYA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;AAAA,GAAlBA,kBAAkB,KAAAC,OAAA,CAAAD,kBAAA,GAAlBA,kBAAkB;AAAA,IAoBlBE,eAAe,GAAAD,OAAA,CAAAC,eAAA;AAAA,WAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;AAAA,GAAfA,eAAe,KAAAD,OAAA,CAAAC,eAAA,GAAfA,eAAe","ignoreList":[]}
|
package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js
CHANGED
|
@@ -14,7 +14,7 @@ var _Analytics = require("../Analytics");
|
|
|
14
14
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
17
|
-
* Copyright IBM Corp. 2020,
|
|
17
|
+
* Copyright IBM Corp. 2020, 2025
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -230,6 +230,12 @@ var KalturaPlayerAPI = /*#__PURE__*/function () {
|
|
|
230
230
|
closedCaptions: {
|
|
231
231
|
plugin: true
|
|
232
232
|
},
|
|
233
|
+
/**
|
|
234
|
+
* When altering this default prop,
|
|
235
|
+
* please also check the video-player-container
|
|
236
|
+
* _getPlayerOptions prop of same name - as it also
|
|
237
|
+
* replicates the value below except for text
|
|
238
|
+
*/
|
|
233
239
|
titleLabel: {
|
|
234
240
|
plugin: true,
|
|
235
241
|
align: 'left',
|
|
@@ -18,10 +18,10 @@ exports.default = void 0;
|
|
|
18
18
|
* @type {object} Settings object
|
|
19
19
|
* @property {string} [stablePrefix=c4d] stable prefix
|
|
20
20
|
* @property {string} [prefix=cds] core Carbon prefix
|
|
21
|
-
* Carbon for IBM.com v2.
|
|
21
|
+
* Carbon for IBM.com v2.25.0',
|
|
22
22
|
*/
|
|
23
23
|
var settings = {
|
|
24
|
-
version: 'Carbon for IBM.com v2.
|
|
24
|
+
version: 'Carbon for IBM.com v2.25.0',
|
|
25
25
|
stablePrefix: 'c4d',
|
|
26
26
|
prefix: 'cds'
|
|
27
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibmdotcom-web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "Carbon for IBM.com Web Components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"cypress:verify": "cypress verify"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@carbon/ibmdotcom-services": "2.
|
|
96
|
-
"@carbon/ibmdotcom-styles": "2.
|
|
97
|
-
"@carbon/ibmdotcom-utilities": "2.
|
|
95
|
+
"@carbon/ibmdotcom-services": "2.25.0",
|
|
96
|
+
"@carbon/ibmdotcom-styles": "2.25.0",
|
|
97
|
+
"@carbon/ibmdotcom-utilities": "2.25.0",
|
|
98
98
|
"@carbon/layout": "11.27.0",
|
|
99
99
|
"@carbon/motion": "11.24.0",
|
|
100
100
|
"@carbon/styles": "1.65.0",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"cypress-wait-until": "^1.7.2",
|
|
185
185
|
"del": "^6.0.0",
|
|
186
186
|
"doctoc": "^2.0.0",
|
|
187
|
-
"dompurify": "
|
|
187
|
+
"dompurify": "3.2.5",
|
|
188
188
|
"enzyme": "^3.11.0",
|
|
189
189
|
"file-loader": "^6.2.0",
|
|
190
190
|
"fs-extra": "^10.0.0",
|
|
@@ -243,5 +243,5 @@
|
|
|
243
243
|
"web-component-analyzer": "1.2.0-next.0",
|
|
244
244
|
"webpack": "^4.46.0"
|
|
245
245
|
},
|
|
246
|
-
"gitHead": "
|
|
246
|
+
"gitHead": "f3f2a1b80455f6300ce092c729bae016442259ff"
|
|
247
247
|
}
|