@carbon/ibmdotcom-web-components 2.43.0 → 2.44.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 +681 -0
- package/dist/dotcom-shell.js +1 -1
- package/dist/dotcom-shell.min.js +5 -5
- package/dist/ibmdotcom-web-components-dotcom-shell.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +5 -5
- package/dist/{index-025b19d2.js → index-61a58423.js} +1016 -756
- package/dist/{index-e1103424.js → index-ec9bb3a7.js} +327 -327
- package/dist/{left-nav-menu-2c21e619.js → left-nav-menu-1ff7160b.js} +1 -1
- package/dist/{left-nav-menu-86c142ad.js → left-nav-menu-7d664773.js} +5 -5
- package/dist/{left-nav-menu-category-heading-20824551.js → left-nav-menu-category-heading-3fda0fd5.js} +5 -5
- package/dist/{left-nav-menu-category-heading-0600c59b.js → left-nav-menu-category-heading-df0252db.js} +1 -1
- package/dist/{left-nav-menu-item-9a1c14ca.js → left-nav-menu-item-b217b8fd.js} +1 -1
- package/dist/{left-nav-menu-item-2b93e65d.js → left-nav-menu-item-caa0c565.js} +5 -5
- package/dist/{left-nav-menu-section-9d5ed365.js → left-nav-menu-section-d00e6604.js} +5 -5
- package/dist/{left-nav-menu-section-a00058c4.js → left-nav-menu-section-dbde241d.js} +1 -1
- package/dist/{left-nav-overlay-f345f1da.js → left-nav-overlay-cd84d0bc.js} +1 -1
- package/dist/{left-nav-overlay-6b2e964b.js → left-nav-overlay-f5867fdc.js} +5 -5
- package/dist/{megamenu-category-group-4ea726d6.js → megamenu-category-group-251cebcf.js} +5 -5
- package/dist/{megamenu-category-group-26a8ad72.js → megamenu-category-group-802948a9.js} +1 -1
- package/dist/{megamenu-category-group-copy-1c975aaa.js → megamenu-category-group-copy-484e9b27.js} +5 -5
- package/dist/{megamenu-category-group-copy-c32be4d2.js → megamenu-category-group-copy-7efee05a.js} +1 -1
- package/dist/{megamenu-category-heading-463194ca.js → megamenu-category-heading-2190977a.js} +1 -1
- package/dist/{megamenu-category-heading-d8842b4e.js → megamenu-category-heading-315eb114.js} +5 -5
- package/dist/{megamenu-category-link-f7f5b5a4.js → megamenu-category-link-3d42179f.js} +5 -5
- package/dist/{megamenu-category-link-a84cac86.js → megamenu-category-link-84c22ab0.js} +1 -1
- package/dist/{megamenu-category-link-group-f5f0c0fe.js → megamenu-category-link-group-3cdb6bfc.js} +1 -1
- package/dist/{megamenu-category-link-group-c2bc0133.js → megamenu-category-link-group-94e4b16c.js} +5 -5
- package/dist/{megamenu-left-navigation-50e42b59.js → megamenu-left-navigation-b5b03849.js} +5 -5
- package/dist/{megamenu-left-navigation-e197ca63.js → megamenu-left-navigation-ee2dc6e8.js} +1 -1
- package/dist/{megamenu-overlay-7b39d3ac.js → megamenu-overlay-646b736f.js} +5 -5
- package/dist/{megamenu-overlay-84c27fb4.js → megamenu-overlay-6a12d82a.js} +1 -1
- package/dist/{megamenu-tab-b7c53fca.js → megamenu-tab-5490376a.js} +1 -1
- package/dist/{megamenu-tab-7d3084b5.js → megamenu-tab-99df887a.js} +5 -5
- package/es/components/back-to-top/__stories__/back-to-top.stories.css.js +1 -1
- package/es/components/card-group/card-group.css.js +1 -1
- package/es/components/card-section-offset/card-section-offset.css.js +1 -1
- package/es/components/card-section-simple/card-section-simple.css.js +1 -1
- package/es/components/content-block/content-block.css.js +1 -1
- package/es/components/content-block-cards/content-block-cards.css.js +1 -1
- package/es/components/content-block-media/content-block-media.css.js +1 -1
- package/es/components/content-section/content-section.css.js +1 -1
- package/es/components/cta-block/cta-block.css.js +1 -1
- package/es/components/cta-section/cta-section.css.js +1 -1
- package/es/components/dotcom-shell/dotcom-shell.css.js +1 -1
- package/es/components/footer/footer.css.js +1 -1
- package/es/components/global-banner/global-banner.css.js +1 -1
- package/es/components/leadspace/leadspace.css.js +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search.css.js +1 -1
- package/es/components/link-list-section/link-list-section.css.js +1 -1
- package/es/components/locale-modal/locale-modal.css.js +1 -1
- package/es/components/masthead/masthead-l1.css.js +1 -1
- package/es/components/masthead/masthead.css.js +1 -1
- package/es/components/table-of-contents/table-of-contents-cdn.css.js +1 -1
- package/es/components/table-of-contents/table-of-contents.css.js +1 -1
- package/es/components/video-player-v7/defs.d.ts +42 -0
- package/es/components/video-player-v7/defs.js +46 -0
- package/es/components/video-player-v7/defs.js.map +1 -0
- package/es/components/video-player-v7/index.d.ts +11 -0
- package/es/components/video-player-v7/index.js +18 -0
- package/es/components/video-player-v7/index.js.map +1 -0
- package/es/components/video-player-v7/video-player-composite.d.ts +873 -0
- package/es/components/video-player-v7/video-player-composite.js +705 -0
- package/es/components/video-player-v7/video-player-composite.js.map +1 -0
- package/es/components/video-player-v7/video-player-container.d.ts +1219 -0
- package/es/components/video-player-v7/video-player-container.js +392 -0
- package/es/components/video-player-v7/video-player-container.js.map +1 -0
- package/es/components/video-player-v7/video-player.css.js +12 -0
- package/es/components/video-player-v7/video-player.d.ts +807 -0
- package/es/components/video-player-v7/video-player.js +577 -0
- package/es/components/video-player-v7/video-player.js.map +1 -0
- package/es/components-react/video-player-v7/defs.js +9 -0
- package/es/components-react/video-player-v7/video-player-composite.d.ts +32 -0
- package/es/components-react/video-player-v7/video-player-container.d.ts +19 -0
- package/es/components-react/video-player-v7/video-player.d.ts +37 -0
- package/es/globals/scss/themes.css.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/KalturaPlayer.js +366 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/index.js +8 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPIv7.d.ts +54 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPIv7.js +88 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPIv7.js.map +1 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/reducers/kalturaPlayerAPIv7.d.ts +18 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/reducers/kalturaPlayerAPIv7.js +88 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/reducers/kalturaPlayerAPIv7.js.map +1 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPIv7.d.ts +77 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPIv7.js +36 -0
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPIv7.js.map +1 -0
- package/lib/components/video-player-v7/defs.js +50 -0
- package/lib/components/video-player-v7/defs.js.map +1 -0
- package/lib/components-react-node/video-player-v7/defs.js +24 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/KalturaPlayer.js +371 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayerV7/index.js +13 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPIv7.js +104 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPIv7.js.map +1 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/kalturaPlayerAPIv7.js +94 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/kalturaPlayerAPIv7.js.map +1 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPIv7.js +39 -0
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPIv7.js.map +1 -0
- package/package.json +7 -7
- package/scss/components/video-player-v7/video-player.scss +8 -0
package/custom-elements.json
CHANGED
|
@@ -23813,6 +23813,687 @@
|
|
|
23813
23813
|
}
|
|
23814
23814
|
]
|
|
23815
23815
|
},
|
|
23816
|
+
{
|
|
23817
|
+
"name": "c4d-video-player-composite-v7",
|
|
23818
|
+
"path": "./src/components/video-player-v7/video-player-composite.ts",
|
|
23819
|
+
"description": "Component that renders video player from its metadata, etc.",
|
|
23820
|
+
"attributes": [
|
|
23821
|
+
{
|
|
23822
|
+
"name": "auto-play",
|
|
23823
|
+
"description": "`true` to autoplay the videos.",
|
|
23824
|
+
"type": "boolean",
|
|
23825
|
+
"default": "false"
|
|
23826
|
+
},
|
|
23827
|
+
{
|
|
23828
|
+
"name": "muted",
|
|
23829
|
+
"description": "`true` load videos with sound muted.",
|
|
23830
|
+
"type": "boolean",
|
|
23831
|
+
"default": "false"
|
|
23832
|
+
},
|
|
23833
|
+
{
|
|
23834
|
+
"name": "caption",
|
|
23835
|
+
"description": "Optional custom video caption.",
|
|
23836
|
+
"type": "\"\" | undefined"
|
|
23837
|
+
},
|
|
23838
|
+
{
|
|
23839
|
+
"name": "video-description",
|
|
23840
|
+
"description": "Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.",
|
|
23841
|
+
"type": "string | undefined"
|
|
23842
|
+
},
|
|
23843
|
+
{
|
|
23844
|
+
"name": "hide-caption",
|
|
23845
|
+
"description": "`true` to hide the caption.",
|
|
23846
|
+
"type": "boolean",
|
|
23847
|
+
"default": "false"
|
|
23848
|
+
},
|
|
23849
|
+
{
|
|
23850
|
+
"name": "background-mode",
|
|
23851
|
+
"description": "`true` to autoplay, mute, and hide player UI.",
|
|
23852
|
+
"type": "boolean",
|
|
23853
|
+
"default": "false"
|
|
23854
|
+
},
|
|
23855
|
+
{
|
|
23856
|
+
"name": "intersection-mode",
|
|
23857
|
+
"description": "Triggers playback on intersection with the viewport / carousel.",
|
|
23858
|
+
"type": "boolean",
|
|
23859
|
+
"default": "false"
|
|
23860
|
+
},
|
|
23861
|
+
{
|
|
23862
|
+
"name": "button-position",
|
|
23863
|
+
"description": "The position of the toggle playback button.",
|
|
23864
|
+
"type": "BUTTON_POSITION",
|
|
23865
|
+
"default": "\"bottom-right\""
|
|
23866
|
+
},
|
|
23867
|
+
{
|
|
23868
|
+
"name": "video-id",
|
|
23869
|
+
"description": "The video ID.",
|
|
23870
|
+
"type": "string",
|
|
23871
|
+
"default": "\"\""
|
|
23872
|
+
},
|
|
23873
|
+
{
|
|
23874
|
+
"name": "aspect-ratio",
|
|
23875
|
+
"description": "The aspect ratio.",
|
|
23876
|
+
"type": "\"\" | undefined"
|
|
23877
|
+
},
|
|
23878
|
+
{
|
|
23879
|
+
"name": "isPlaying",
|
|
23880
|
+
"description": "The current playback state",
|
|
23881
|
+
"type": "boolean",
|
|
23882
|
+
"default": "false"
|
|
23883
|
+
},
|
|
23884
|
+
{
|
|
23885
|
+
"name": "playing-mode",
|
|
23886
|
+
"description": "The video player's mode showing Inline or Lightbox.",
|
|
23887
|
+
"type": "VIDEO_PLAYER_PLAYING_MODE",
|
|
23888
|
+
"default": "\"inline\""
|
|
23889
|
+
},
|
|
23890
|
+
{
|
|
23891
|
+
"name": "thumbnail",
|
|
23892
|
+
"description": "Optional custom video thumbnail",
|
|
23893
|
+
"type": "\"\" | undefined"
|
|
23894
|
+
},
|
|
23895
|
+
{
|
|
23896
|
+
"name": "video-thumbnail-width",
|
|
23897
|
+
"description": "The video thumbnail width.",
|
|
23898
|
+
"type": "number",
|
|
23899
|
+
"default": "3"
|
|
23900
|
+
},
|
|
23901
|
+
{
|
|
23902
|
+
"name": "isRTL",
|
|
23903
|
+
"description": "Determines if the direction is right-to-left",
|
|
23904
|
+
"type": "boolean",
|
|
23905
|
+
"default": "false"
|
|
23906
|
+
}
|
|
23907
|
+
],
|
|
23908
|
+
"properties": [
|
|
23909
|
+
{
|
|
23910
|
+
"name": "autoPlay",
|
|
23911
|
+
"attribute": "auto-play",
|
|
23912
|
+
"description": "`true` to autoplay the videos.",
|
|
23913
|
+
"type": "boolean",
|
|
23914
|
+
"default": "false"
|
|
23915
|
+
},
|
|
23916
|
+
{
|
|
23917
|
+
"name": "muted",
|
|
23918
|
+
"attribute": "muted",
|
|
23919
|
+
"description": "`true` load videos with sound muted.",
|
|
23920
|
+
"type": "boolean",
|
|
23921
|
+
"default": "false"
|
|
23922
|
+
},
|
|
23923
|
+
{
|
|
23924
|
+
"name": "embeddedVideos",
|
|
23925
|
+
"description": "The embedded Kaltura player element (that has APIs), keyed by the video ID.",
|
|
23926
|
+
"type": "{ [videoId: string]: any; } | undefined"
|
|
23927
|
+
},
|
|
23928
|
+
{
|
|
23929
|
+
"name": "caption",
|
|
23930
|
+
"attribute": "caption",
|
|
23931
|
+
"description": "Optional custom video caption.",
|
|
23932
|
+
"type": "\"\" | undefined"
|
|
23933
|
+
},
|
|
23934
|
+
{
|
|
23935
|
+
"name": "customVideoDescription",
|
|
23936
|
+
"attribute": "video-description",
|
|
23937
|
+
"description": "Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.",
|
|
23938
|
+
"type": "string | undefined"
|
|
23939
|
+
},
|
|
23940
|
+
{
|
|
23941
|
+
"name": "formatCaption",
|
|
23942
|
+
"description": "The formatter for the video caption, composed with the video name and the video duration.\nShould be changed upon the locale the UI is rendered with.",
|
|
23943
|
+
"type": "(({ duration, name, }: { duration?: string | undefined; name?: string | undefined; }) => string) | undefined"
|
|
23944
|
+
},
|
|
23945
|
+
{
|
|
23946
|
+
"name": "formatDuration",
|
|
23947
|
+
"description": "The formatter for the video duration.\nShould be changed upon the locale the UI is rendered with.",
|
|
23948
|
+
"type": "(({ duration }: { duration?: number | undefined; }) => string) | undefined"
|
|
23949
|
+
},
|
|
23950
|
+
{
|
|
23951
|
+
"name": "hideCaption",
|
|
23952
|
+
"attribute": "hide-caption",
|
|
23953
|
+
"description": "`true` to hide the caption.",
|
|
23954
|
+
"type": "boolean",
|
|
23955
|
+
"default": "false"
|
|
23956
|
+
},
|
|
23957
|
+
{
|
|
23958
|
+
"name": "backgroundMode",
|
|
23959
|
+
"attribute": "background-mode",
|
|
23960
|
+
"description": "`true` to autoplay, mute, and hide player UI.",
|
|
23961
|
+
"type": "boolean",
|
|
23962
|
+
"default": "false"
|
|
23963
|
+
},
|
|
23964
|
+
{
|
|
23965
|
+
"name": "intersectionMode",
|
|
23966
|
+
"attribute": "intersection-mode",
|
|
23967
|
+
"description": "Triggers playback on intersection with the viewport / carousel.",
|
|
23968
|
+
"type": "boolean",
|
|
23969
|
+
"default": "false"
|
|
23970
|
+
},
|
|
23971
|
+
{
|
|
23972
|
+
"name": "buttonPosition",
|
|
23973
|
+
"attribute": "button-position",
|
|
23974
|
+
"description": "The position of the toggle playback button.",
|
|
23975
|
+
"type": "BUTTON_POSITION",
|
|
23976
|
+
"default": "\"bottom-right\""
|
|
23977
|
+
},
|
|
23978
|
+
{
|
|
23979
|
+
"name": "playbackTriggered",
|
|
23980
|
+
"description": "Track when we have triggered initial playback.",
|
|
23981
|
+
"type": "boolean",
|
|
23982
|
+
"default": "false"
|
|
23983
|
+
},
|
|
23984
|
+
{
|
|
23985
|
+
"name": "mediaData",
|
|
23986
|
+
"description": "The video data, keyed by the video ID.",
|
|
23987
|
+
"type": "{ [videoId: string]: MediaData; } | undefined"
|
|
23988
|
+
},
|
|
23989
|
+
{
|
|
23990
|
+
"name": "videoId",
|
|
23991
|
+
"attribute": "video-id",
|
|
23992
|
+
"description": "The video ID.",
|
|
23993
|
+
"type": "string",
|
|
23994
|
+
"default": "\"\""
|
|
23995
|
+
},
|
|
23996
|
+
{
|
|
23997
|
+
"name": "aspectRatio",
|
|
23998
|
+
"attribute": "aspect-ratio",
|
|
23999
|
+
"description": "The aspect ratio.",
|
|
24000
|
+
"type": "\"\" | undefined"
|
|
24001
|
+
},
|
|
24002
|
+
{
|
|
24003
|
+
"name": "isPlaying",
|
|
24004
|
+
"attribute": "isPlaying",
|
|
24005
|
+
"description": "The current playback state",
|
|
24006
|
+
"type": "boolean",
|
|
24007
|
+
"default": "false"
|
|
24008
|
+
},
|
|
24009
|
+
{
|
|
24010
|
+
"name": "playingMode",
|
|
24011
|
+
"attribute": "playing-mode",
|
|
24012
|
+
"description": "The video player's mode showing Inline or Lightbox.",
|
|
24013
|
+
"type": "VIDEO_PLAYER_PLAYING_MODE",
|
|
24014
|
+
"default": "\"inline\""
|
|
24015
|
+
},
|
|
24016
|
+
{
|
|
24017
|
+
"name": "thumbnail",
|
|
24018
|
+
"attribute": "thumbnail",
|
|
24019
|
+
"description": "Optional custom video thumbnail",
|
|
24020
|
+
"type": "\"\" | undefined"
|
|
24021
|
+
},
|
|
24022
|
+
{
|
|
24023
|
+
"name": "videoThumbnailWidth",
|
|
24024
|
+
"attribute": "video-thumbnail-width",
|
|
24025
|
+
"description": "The video thumbnail width.",
|
|
24026
|
+
"type": "number",
|
|
24027
|
+
"default": "3"
|
|
24028
|
+
},
|
|
24029
|
+
{
|
|
24030
|
+
"name": "isRTL",
|
|
24031
|
+
"attribute": "isRTL",
|
|
24032
|
+
"description": "Determines if the direction is right-to-left",
|
|
24033
|
+
"type": "boolean",
|
|
24034
|
+
"default": "false"
|
|
24035
|
+
}
|
|
24036
|
+
],
|
|
24037
|
+
"cssParts": [
|
|
24038
|
+
{
|
|
24039
|
+
"name": "video-player",
|
|
24040
|
+
"description": "The video player. Usage `c4d-video-player-composite-v7::part(video-player)`"
|
|
24041
|
+
}
|
|
24042
|
+
]
|
|
24043
|
+
},
|
|
24044
|
+
{
|
|
24045
|
+
"name": "c4d-video-player-container-v7",
|
|
24046
|
+
"path": "./src/components/video-player-v7/video-player-container.ts",
|
|
24047
|
+
"description": "Container component for video player.",
|
|
24048
|
+
"attributes": [
|
|
24049
|
+
{
|
|
24050
|
+
"name": "auto-play",
|
|
24051
|
+
"description": "`true` to autoplay the videos.",
|
|
24052
|
+
"type": "boolean",
|
|
24053
|
+
"default": "false"
|
|
24054
|
+
},
|
|
24055
|
+
{
|
|
24056
|
+
"name": "muted",
|
|
24057
|
+
"description": "`true` load videos with sound muted.",
|
|
24058
|
+
"type": "boolean",
|
|
24059
|
+
"default": "false"
|
|
24060
|
+
},
|
|
24061
|
+
{
|
|
24062
|
+
"name": "caption",
|
|
24063
|
+
"description": "Optional custom video caption.",
|
|
24064
|
+
"type": "\"\" | undefined"
|
|
24065
|
+
},
|
|
24066
|
+
{
|
|
24067
|
+
"name": "video-description",
|
|
24068
|
+
"description": "Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.",
|
|
24069
|
+
"type": "string | undefined"
|
|
24070
|
+
},
|
|
24071
|
+
{
|
|
24072
|
+
"name": "hide-caption",
|
|
24073
|
+
"description": "`true` to hide the caption.",
|
|
24074
|
+
"type": "boolean",
|
|
24075
|
+
"default": "false"
|
|
24076
|
+
},
|
|
24077
|
+
{
|
|
24078
|
+
"name": "background-mode",
|
|
24079
|
+
"description": "`true` to autoplay, mute, and hide player UI.",
|
|
24080
|
+
"type": "boolean",
|
|
24081
|
+
"default": "false"
|
|
24082
|
+
},
|
|
24083
|
+
{
|
|
24084
|
+
"name": "intersection-mode",
|
|
24085
|
+
"description": "Triggers playback on intersection with the viewport / carousel.",
|
|
24086
|
+
"type": "boolean",
|
|
24087
|
+
"default": "false"
|
|
24088
|
+
},
|
|
24089
|
+
{
|
|
24090
|
+
"name": "button-position",
|
|
24091
|
+
"description": "The position of the toggle playback button.",
|
|
24092
|
+
"type": "BUTTON_POSITION",
|
|
24093
|
+
"default": "\"bottom-right\""
|
|
24094
|
+
},
|
|
24095
|
+
{
|
|
24096
|
+
"name": "video-id",
|
|
24097
|
+
"description": "The video ID.",
|
|
24098
|
+
"type": "string",
|
|
24099
|
+
"default": "\"\""
|
|
24100
|
+
},
|
|
24101
|
+
{
|
|
24102
|
+
"name": "aspect-ratio",
|
|
24103
|
+
"description": "The aspect ratio.",
|
|
24104
|
+
"type": "\"\" | undefined"
|
|
24105
|
+
},
|
|
24106
|
+
{
|
|
24107
|
+
"name": "isPlaying",
|
|
24108
|
+
"description": "The current playback state",
|
|
24109
|
+
"type": "boolean",
|
|
24110
|
+
"default": "false"
|
|
24111
|
+
},
|
|
24112
|
+
{
|
|
24113
|
+
"name": "playing-mode",
|
|
24114
|
+
"description": "The video player's mode showing Inline or Lightbox.",
|
|
24115
|
+
"type": "VIDEO_PLAYER_PLAYING_MODE",
|
|
24116
|
+
"default": "\"inline\""
|
|
24117
|
+
},
|
|
24118
|
+
{
|
|
24119
|
+
"name": "thumbnail",
|
|
24120
|
+
"description": "Optional custom video thumbnail",
|
|
24121
|
+
"type": "\"\" | undefined"
|
|
24122
|
+
},
|
|
24123
|
+
{
|
|
24124
|
+
"name": "video-thumbnail-width",
|
|
24125
|
+
"description": "The video thumbnail width.",
|
|
24126
|
+
"type": "number",
|
|
24127
|
+
"default": "3"
|
|
24128
|
+
},
|
|
24129
|
+
{
|
|
24130
|
+
"name": "isRTL",
|
|
24131
|
+
"description": "Determines if the direction is right-to-left",
|
|
24132
|
+
"type": "boolean",
|
|
24133
|
+
"default": "false"
|
|
24134
|
+
}
|
|
24135
|
+
],
|
|
24136
|
+
"properties": [
|
|
24137
|
+
{
|
|
24138
|
+
"name": "autoPlay",
|
|
24139
|
+
"attribute": "auto-play",
|
|
24140
|
+
"description": "`true` to autoplay the videos.",
|
|
24141
|
+
"type": "boolean",
|
|
24142
|
+
"default": "false"
|
|
24143
|
+
},
|
|
24144
|
+
{
|
|
24145
|
+
"name": "muted",
|
|
24146
|
+
"attribute": "muted",
|
|
24147
|
+
"description": "`true` load videos with sound muted.",
|
|
24148
|
+
"type": "boolean",
|
|
24149
|
+
"default": "false"
|
|
24150
|
+
},
|
|
24151
|
+
{
|
|
24152
|
+
"name": "caption",
|
|
24153
|
+
"attribute": "caption",
|
|
24154
|
+
"description": "Optional custom video caption.",
|
|
24155
|
+
"type": "\"\" | undefined"
|
|
24156
|
+
},
|
|
24157
|
+
{
|
|
24158
|
+
"name": "customVideoDescription",
|
|
24159
|
+
"attribute": "video-description",
|
|
24160
|
+
"description": "Custom video description. This property should only be set when `playing-mode=\"lightbox\"`.",
|
|
24161
|
+
"type": "string | undefined"
|
|
24162
|
+
},
|
|
24163
|
+
{
|
|
24164
|
+
"name": "formatCaption",
|
|
24165
|
+
"description": "The formatter for the video caption, composed with the video name and the video duration.\nShould be changed upon the locale the UI is rendered with.",
|
|
24166
|
+
"type": "(({ duration, name, }: { duration?: string | undefined; name?: string | undefined; }) => string) | undefined"
|
|
24167
|
+
},
|
|
24168
|
+
{
|
|
24169
|
+
"name": "formatDuration",
|
|
24170
|
+
"description": "The formatter for the video duration.\nShould be changed upon the locale the UI is rendered with.",
|
|
24171
|
+
"type": "(({ duration }: { duration?: number | undefined; }) => string) | undefined"
|
|
24172
|
+
},
|
|
24173
|
+
{
|
|
24174
|
+
"name": "hideCaption",
|
|
24175
|
+
"attribute": "hide-caption",
|
|
24176
|
+
"description": "`true` to hide the caption.",
|
|
24177
|
+
"type": "boolean",
|
|
24178
|
+
"default": "false"
|
|
24179
|
+
},
|
|
24180
|
+
{
|
|
24181
|
+
"name": "backgroundMode",
|
|
24182
|
+
"attribute": "background-mode",
|
|
24183
|
+
"description": "`true` to autoplay, mute, and hide player UI.",
|
|
24184
|
+
"type": "boolean",
|
|
24185
|
+
"default": "false"
|
|
24186
|
+
},
|
|
24187
|
+
{
|
|
24188
|
+
"name": "intersectionMode",
|
|
24189
|
+
"attribute": "intersection-mode",
|
|
24190
|
+
"description": "Triggers playback on intersection with the viewport / carousel.",
|
|
24191
|
+
"type": "boolean",
|
|
24192
|
+
"default": "false"
|
|
24193
|
+
},
|
|
24194
|
+
{
|
|
24195
|
+
"name": "buttonPosition",
|
|
24196
|
+
"attribute": "button-position",
|
|
24197
|
+
"description": "The position of the toggle playback button.",
|
|
24198
|
+
"type": "BUTTON_POSITION",
|
|
24199
|
+
"default": "\"bottom-right\""
|
|
24200
|
+
},
|
|
24201
|
+
{
|
|
24202
|
+
"name": "playbackTriggered",
|
|
24203
|
+
"description": "Track when we have triggered initial playback.",
|
|
24204
|
+
"type": "boolean",
|
|
24205
|
+
"default": "false"
|
|
24206
|
+
},
|
|
24207
|
+
{
|
|
24208
|
+
"name": "mediaData",
|
|
24209
|
+
"description": "The video data, keyed by the video ID.",
|
|
24210
|
+
"type": "{ [videoId: string]: MediaData; } | undefined"
|
|
24211
|
+
},
|
|
24212
|
+
{
|
|
24213
|
+
"name": "videoId",
|
|
24214
|
+
"attribute": "video-id",
|
|
24215
|
+
"description": "The video ID.",
|
|
24216
|
+
"type": "string",
|
|
24217
|
+
"default": "\"\""
|
|
24218
|
+
},
|
|
24219
|
+
{
|
|
24220
|
+
"name": "aspectRatio",
|
|
24221
|
+
"attribute": "aspect-ratio",
|
|
24222
|
+
"description": "The aspect ratio.",
|
|
24223
|
+
"type": "\"\" | undefined"
|
|
24224
|
+
},
|
|
24225
|
+
{
|
|
24226
|
+
"name": "isPlaying",
|
|
24227
|
+
"attribute": "isPlaying",
|
|
24228
|
+
"description": "The current playback state",
|
|
24229
|
+
"type": "boolean",
|
|
24230
|
+
"default": "false"
|
|
24231
|
+
},
|
|
24232
|
+
{
|
|
24233
|
+
"name": "playingMode",
|
|
24234
|
+
"attribute": "playing-mode",
|
|
24235
|
+
"description": "The video player's mode showing Inline or Lightbox.",
|
|
24236
|
+
"type": "VIDEO_PLAYER_PLAYING_MODE",
|
|
24237
|
+
"default": "\"inline\""
|
|
24238
|
+
},
|
|
24239
|
+
{
|
|
24240
|
+
"name": "thumbnail",
|
|
24241
|
+
"attribute": "thumbnail",
|
|
24242
|
+
"description": "Optional custom video thumbnail",
|
|
24243
|
+
"type": "\"\" | undefined"
|
|
24244
|
+
},
|
|
24245
|
+
{
|
|
24246
|
+
"name": "videoThumbnailWidth",
|
|
24247
|
+
"attribute": "video-thumbnail-width",
|
|
24248
|
+
"description": "The video thumbnail width.",
|
|
24249
|
+
"type": "number",
|
|
24250
|
+
"default": "3"
|
|
24251
|
+
},
|
|
24252
|
+
{
|
|
24253
|
+
"name": "isRTL",
|
|
24254
|
+
"attribute": "isRTL",
|
|
24255
|
+
"description": "Determines if the direction is right-to-left",
|
|
24256
|
+
"type": "boolean",
|
|
24257
|
+
"default": "false"
|
|
24258
|
+
}
|
|
24259
|
+
],
|
|
24260
|
+
"cssParts": [
|
|
24261
|
+
{
|
|
24262
|
+
"name": "video-player",
|
|
24263
|
+
"description": "The video player. Usage `c4d-video-player-composite-v7::part(video-player)`"
|
|
24264
|
+
}
|
|
24265
|
+
]
|
|
24266
|
+
},
|
|
24267
|
+
{
|
|
24268
|
+
"name": "c4d-video-player-v7",
|
|
24269
|
+
"path": "./src/components/video-player-v7/video-player.ts",
|
|
24270
|
+
"description": "Video player.",
|
|
24271
|
+
"attributes": [
|
|
24272
|
+
{
|
|
24273
|
+
"name": "playing-mode",
|
|
24274
|
+
"description": "The video player's mode showing Inline or Lightbox.",
|
|
24275
|
+
"type": "VIDEO_PLAYER_PLAYING_MODE",
|
|
24276
|
+
"default": "\"inline\""
|
|
24277
|
+
},
|
|
24278
|
+
{
|
|
24279
|
+
"name": "intersection-mode",
|
|
24280
|
+
"description": "Triggers playback on intersection with the viewport / carousel.",
|
|
24281
|
+
"type": "boolean",
|
|
24282
|
+
"default": "false"
|
|
24283
|
+
},
|
|
24284
|
+
{
|
|
24285
|
+
"name": "isPlaying",
|
|
24286
|
+
"description": "The current playback state, inherited from the parent.",
|
|
24287
|
+
"type": "boolean",
|
|
24288
|
+
"default": "false"
|
|
24289
|
+
},
|
|
24290
|
+
{
|
|
24291
|
+
"name": "button-position",
|
|
24292
|
+
"description": "The position of the toggle playback button.",
|
|
24293
|
+
"type": "BUTTON_POSITION",
|
|
24294
|
+
"default": "\"bottom-right\""
|
|
24295
|
+
},
|
|
24296
|
+
{
|
|
24297
|
+
"name": "content-state",
|
|
24298
|
+
"description": "The video player's content state.",
|
|
24299
|
+
"type": "VIDEO_PLAYER_CONTENT_STATE",
|
|
24300
|
+
"default": "\"thumbnail\""
|
|
24301
|
+
},
|
|
24302
|
+
{
|
|
24303
|
+
"name": "duration",
|
|
24304
|
+
"description": "The video duration.",
|
|
24305
|
+
"type": "number | undefined"
|
|
24306
|
+
},
|
|
24307
|
+
{
|
|
24308
|
+
"name": "hide-caption",
|
|
24309
|
+
"description": "`true` to hide the caption.",
|
|
24310
|
+
"type": "boolean",
|
|
24311
|
+
"default": "false"
|
|
24312
|
+
},
|
|
24313
|
+
{
|
|
24314
|
+
"name": "name",
|
|
24315
|
+
"description": "The video name.",
|
|
24316
|
+
"type": "string",
|
|
24317
|
+
"default": "\"\""
|
|
24318
|
+
},
|
|
24319
|
+
{
|
|
24320
|
+
"name": "background-mode",
|
|
24321
|
+
"description": "`true` to autoplay, mute video, and hide UI",
|
|
24322
|
+
"type": "boolean",
|
|
24323
|
+
"default": "false"
|
|
24324
|
+
},
|
|
24325
|
+
{
|
|
24326
|
+
"name": "auto-play",
|
|
24327
|
+
"description": "`true` to autoplay",
|
|
24328
|
+
"type": "boolean",
|
|
24329
|
+
"default": "false"
|
|
24330
|
+
},
|
|
24331
|
+
{
|
|
24332
|
+
"name": "video-description",
|
|
24333
|
+
"description": "Custom video description. This property should only be set when using `playing-mode=\"lightbox\"`",
|
|
24334
|
+
"type": "string | undefined"
|
|
24335
|
+
},
|
|
24336
|
+
{
|
|
24337
|
+
"name": "thumbnail-url",
|
|
24338
|
+
"description": "The thumbnail URL.",
|
|
24339
|
+
"type": "string",
|
|
24340
|
+
"default": "\"\""
|
|
24341
|
+
},
|
|
24342
|
+
{
|
|
24343
|
+
"name": "video-id",
|
|
24344
|
+
"description": "The video ID.",
|
|
24345
|
+
"type": "string | undefined"
|
|
24346
|
+
},
|
|
24347
|
+
{
|
|
24348
|
+
"name": "aspect-ratio",
|
|
24349
|
+
"description": "Override default aspect ratio of `16x9`.\nAvailable aspect ratios:\n\n`16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`",
|
|
24350
|
+
"type": "string | undefined"
|
|
24351
|
+
}
|
|
24352
|
+
],
|
|
24353
|
+
"properties": [
|
|
24354
|
+
{
|
|
24355
|
+
"name": "playingMode",
|
|
24356
|
+
"attribute": "playing-mode",
|
|
24357
|
+
"description": "The video player's mode showing Inline or Lightbox.",
|
|
24358
|
+
"type": "VIDEO_PLAYER_PLAYING_MODE",
|
|
24359
|
+
"default": "\"inline\""
|
|
24360
|
+
},
|
|
24361
|
+
{
|
|
24362
|
+
"name": "intersectionMode",
|
|
24363
|
+
"attribute": "intersection-mode",
|
|
24364
|
+
"description": "Triggers playback on intersection with the viewport / carousel.",
|
|
24365
|
+
"type": "boolean",
|
|
24366
|
+
"default": "false"
|
|
24367
|
+
},
|
|
24368
|
+
{
|
|
24369
|
+
"name": "isPlaying",
|
|
24370
|
+
"attribute": "isPlaying",
|
|
24371
|
+
"description": "The current playback state, inherited from the parent.",
|
|
24372
|
+
"type": "boolean",
|
|
24373
|
+
"default": "false"
|
|
24374
|
+
},
|
|
24375
|
+
{
|
|
24376
|
+
"name": "buttonPosition",
|
|
24377
|
+
"attribute": "button-position",
|
|
24378
|
+
"description": "The position of the toggle playback button.",
|
|
24379
|
+
"type": "BUTTON_POSITION",
|
|
24380
|
+
"default": "\"bottom-right\""
|
|
24381
|
+
},
|
|
24382
|
+
{
|
|
24383
|
+
"name": "contentState",
|
|
24384
|
+
"attribute": "content-state",
|
|
24385
|
+
"description": "The video player's content state.",
|
|
24386
|
+
"type": "VIDEO_PLAYER_CONTENT_STATE",
|
|
24387
|
+
"default": "\"thumbnail\""
|
|
24388
|
+
},
|
|
24389
|
+
{
|
|
24390
|
+
"name": "duration",
|
|
24391
|
+
"attribute": "duration",
|
|
24392
|
+
"description": "The video duration.",
|
|
24393
|
+
"type": "number | undefined"
|
|
24394
|
+
},
|
|
24395
|
+
{
|
|
24396
|
+
"name": "formatCaption",
|
|
24397
|
+
"description": "The formatter for the video caption, composed with the video name and the video duration.\nShould be changed upon the locale the UI is rendered with.",
|
|
24398
|
+
"type": "(...args: any[]) => string",
|
|
24399
|
+
"default": "\"formatVideoCaption\""
|
|
24400
|
+
},
|
|
24401
|
+
{
|
|
24402
|
+
"name": "formatDuration",
|
|
24403
|
+
"description": "The formatter for the video duration.\nShould be changed upon the locale the UI is rendered with.",
|
|
24404
|
+
"type": "(...args: any[]) => string",
|
|
24405
|
+
"default": "\"formatVideoDuration\""
|
|
24406
|
+
},
|
|
24407
|
+
{
|
|
24408
|
+
"name": "hideCaption",
|
|
24409
|
+
"attribute": "hide-caption",
|
|
24410
|
+
"description": "`true` to hide the caption.",
|
|
24411
|
+
"type": "boolean",
|
|
24412
|
+
"default": "false"
|
|
24413
|
+
},
|
|
24414
|
+
{
|
|
24415
|
+
"name": "name",
|
|
24416
|
+
"attribute": "name",
|
|
24417
|
+
"description": "The video name.",
|
|
24418
|
+
"type": "string",
|
|
24419
|
+
"default": "\"\""
|
|
24420
|
+
},
|
|
24421
|
+
{
|
|
24422
|
+
"name": "backgroundMode",
|
|
24423
|
+
"attribute": "background-mode",
|
|
24424
|
+
"description": "`true` to autoplay, mute video, and hide UI",
|
|
24425
|
+
"type": "boolean",
|
|
24426
|
+
"default": "false"
|
|
24427
|
+
},
|
|
24428
|
+
{
|
|
24429
|
+
"name": "autoplay",
|
|
24430
|
+
"attribute": "auto-play",
|
|
24431
|
+
"description": "`true` to autoplay",
|
|
24432
|
+
"type": "boolean",
|
|
24433
|
+
"default": "false"
|
|
24434
|
+
},
|
|
24435
|
+
{
|
|
24436
|
+
"name": "customVideoDescription",
|
|
24437
|
+
"attribute": "video-description",
|
|
24438
|
+
"description": "Custom video description. This property should only be set when using `playing-mode=\"lightbox\"`",
|
|
24439
|
+
"type": "string | undefined"
|
|
24440
|
+
},
|
|
24441
|
+
{
|
|
24442
|
+
"name": "thumbnailUrl",
|
|
24443
|
+
"attribute": "thumbnail-url",
|
|
24444
|
+
"description": "The thumbnail URL.",
|
|
24445
|
+
"type": "string",
|
|
24446
|
+
"default": "\"\""
|
|
24447
|
+
},
|
|
24448
|
+
{
|
|
24449
|
+
"name": "videoId",
|
|
24450
|
+
"attribute": "video-id",
|
|
24451
|
+
"description": "The video ID.",
|
|
24452
|
+
"type": "string | undefined"
|
|
24453
|
+
},
|
|
24454
|
+
{
|
|
24455
|
+
"name": "aspectRatio",
|
|
24456
|
+
"attribute": "aspect-ratio",
|
|
24457
|
+
"description": "Override default aspect ratio of `16x9`.\nAvailable aspect ratios:\n\n`16x9`, `9x16`, `2x1`, `1x2`, `4x3`, `3x4`, `1x1`",
|
|
24458
|
+
"type": "string | undefined"
|
|
24459
|
+
},
|
|
24460
|
+
{
|
|
24461
|
+
"name": "shadowRootOptions",
|
|
24462
|
+
"type": "{ delegatesFocus: boolean; mode: ShadowRootMode; }",
|
|
24463
|
+
"default": "{\"delegatesFocus\":true}"
|
|
24464
|
+
},
|
|
24465
|
+
{
|
|
24466
|
+
"name": "styles",
|
|
24467
|
+
"default": "\"styles\""
|
|
24468
|
+
}
|
|
24469
|
+
],
|
|
24470
|
+
"cssParts": [
|
|
24471
|
+
{
|
|
24472
|
+
"name": "video",
|
|
24473
|
+
"description": "The video. Usage `c4d-video-player::part(video)`"
|
|
24474
|
+
},
|
|
24475
|
+
{
|
|
24476
|
+
"name": "button",
|
|
24477
|
+
"description": "The play button. Usage `c4d-video-player::part(button)`"
|
|
24478
|
+
},
|
|
24479
|
+
{
|
|
24480
|
+
"name": "image",
|
|
24481
|
+
"description": "The thumbnail image. Usage `c4d-video-player::part(image)`"
|
|
24482
|
+
},
|
|
24483
|
+
{
|
|
24484
|
+
"name": "play-video",
|
|
24485
|
+
"description": "The play video icon. Usage `c4d-video-player::part(play-video)`"
|
|
24486
|
+
},
|
|
24487
|
+
{
|
|
24488
|
+
"name": "video-container",
|
|
24489
|
+
"description": "The video container. Usage `c4d-video-player::part(video-container)`"
|
|
24490
|
+
},
|
|
24491
|
+
{
|
|
24492
|
+
"name": "caption",
|
|
24493
|
+
"description": "The caption. Usage `c4d-video-player::part(caption)`"
|
|
24494
|
+
}
|
|
24495
|
+
]
|
|
24496
|
+
},
|
|
23816
24497
|
{
|
|
23817
24498
|
"name": "c4d-video-player-composite",
|
|
23818
24499
|
"path": "./src/components/video-player/video-player-composite.ts",
|