@glomex/integration-web-component 1.1304.0 → 1.1306.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/build/index.d.ts +115 -124
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare interface ExperimentVariant {
|
|
|
94
94
|
*
|
|
95
95
|
* @example the most simple glomex-external-media-item with inline JSON
|
|
96
96
|
*
|
|
97
|
-
* It is possible to use {@link MediaItem}
|
|
97
|
+
* It is possible to use {@link MediaItem} or array of {@link MediaItem}
|
|
98
98
|
* in JSON format.
|
|
99
99
|
*
|
|
100
100
|
* ```html
|
|
@@ -182,7 +182,7 @@ export declare class ExternalMediaItemElement extends HTMLElement implements Med
|
|
|
182
182
|
* {@inheritDoc MediaItem#hasProductPlacement}
|
|
183
183
|
*/
|
|
184
184
|
hasProductPlacement?: boolean;
|
|
185
|
-
get data():
|
|
185
|
+
get data(): MediaItem;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export declare function getIntegrationCssUrl(integrationId: string): string;
|
|
@@ -662,15 +662,102 @@ declare interface MediaError_2 {
|
|
|
662
662
|
}
|
|
663
663
|
export { MediaError_2 as MediaError }
|
|
664
664
|
|
|
665
|
-
export declare interface MediaItem
|
|
666
|
-
/**
|
|
667
|
-
|
|
665
|
+
export declare interface MediaItem {
|
|
666
|
+
/**
|
|
667
|
+
* Unique identifier of the media item.
|
|
668
|
+
*/
|
|
669
|
+
id: string;
|
|
670
|
+
/**
|
|
671
|
+
* Poster image of the media item.
|
|
672
|
+
*/
|
|
673
|
+
poster: string;
|
|
674
|
+
/**
|
|
675
|
+
* Sources of the media item.
|
|
676
|
+
*/
|
|
677
|
+
sources: MediaSource_2[];
|
|
678
|
+
/**
|
|
679
|
+
* Title of the media item.
|
|
680
|
+
*/
|
|
681
|
+
title: string;
|
|
682
|
+
/**
|
|
683
|
+
* Duration of the media item in seconds. Not defined when livestream.
|
|
684
|
+
*/
|
|
685
|
+
duration?: number;
|
|
686
|
+
/**
|
|
687
|
+
* Description of the media item.
|
|
688
|
+
*/
|
|
689
|
+
description?: string;
|
|
690
|
+
/**
|
|
691
|
+
* Language of the media item. 2-letter ISO language code.
|
|
692
|
+
*
|
|
693
|
+
* @defaultValue `de` (German)
|
|
694
|
+
*/
|
|
695
|
+
language?: string;
|
|
696
|
+
/**
|
|
697
|
+
* IAB categories (as {@link iabCategoryTaxonomy}) of the media item. Used for monetization.
|
|
698
|
+
*/
|
|
699
|
+
iabCategories?: string[];
|
|
700
|
+
/**
|
|
701
|
+
* IAB category taxonomy used for {@link iabCategories} ({@link https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/main/AdCOM%20v1.0%20FINAL.md#list_categorytaxonomies see IAB spec for details})
|
|
702
|
+
* @defaultValue `9` for IAB Tech Lab Content Taxonomy 3.1
|
|
703
|
+
*/
|
|
704
|
+
iabCategoryTaxonomy?: number;
|
|
705
|
+
/**
|
|
706
|
+
* Aspect ratio of the media item. Useful when vertical variants are used.
|
|
707
|
+
*
|
|
708
|
+
* @defaultValue `16:9`
|
|
709
|
+
*/
|
|
710
|
+
aspectRatio?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Minimum age to watch the media item. Shows a minimum age indicator in the UI.
|
|
713
|
+
*
|
|
714
|
+
* @defaultValue `0` (no minimum age)
|
|
715
|
+
*/
|
|
716
|
+
minimumAge?: number;
|
|
717
|
+
/**
|
|
718
|
+
* Release date of the media item. Unix timestamp in milliseconds.
|
|
719
|
+
* Useful for JSON-LD generation.
|
|
720
|
+
*/
|
|
721
|
+
releaseDate?: number;
|
|
722
|
+
/**
|
|
723
|
+
* Time when the media item expires. Unix timestamp in milliseconds.
|
|
724
|
+
* Useful for JSON-LD generation.
|
|
725
|
+
*/
|
|
726
|
+
endDate?: number;
|
|
727
|
+
/**
|
|
728
|
+
* Whether the media item has product placements. Shows a product placement indicator in the UI.
|
|
729
|
+
*/
|
|
730
|
+
hasProductPlacement?: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* Channel of the media item.
|
|
733
|
+
*/
|
|
734
|
+
channel?: Channel;
|
|
735
|
+
/**
|
|
736
|
+
* Markers of the media item.
|
|
737
|
+
*
|
|
738
|
+
* @defaultValue `[{ name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 }]`
|
|
739
|
+
*/
|
|
740
|
+
markers?: (Marker | CustomMarker)[];
|
|
741
|
+
/**
|
|
742
|
+
* In which country can this media item be played (e.g. `['de', 'at']`)? Useful for
|
|
743
|
+
* JSON-LD generation.
|
|
744
|
+
*
|
|
745
|
+
* @defaultValue `['all']` (worldwide)
|
|
746
|
+
*/
|
|
747
|
+
regionsAllowed?: string[];
|
|
748
|
+
/**
|
|
749
|
+
* Will be automatically filled based on {@link minimumAge} and {@link iabCategories}.
|
|
750
|
+
* @ignore */
|
|
751
|
+
ppsj?: string;
|
|
668
752
|
/**
|
|
669
753
|
* Mark this media item as a recommendation.
|
|
670
754
|
*/
|
|
671
755
|
isRecommendation?: boolean;
|
|
672
|
-
/**
|
|
673
|
-
|
|
756
|
+
/**
|
|
757
|
+
* An internal marker for the used playlist. It is automatically filled.
|
|
758
|
+
* @ignore
|
|
759
|
+
*/
|
|
760
|
+
playlistId?: string;
|
|
674
761
|
/**
|
|
675
762
|
* JSON-LD `contentUrl` that allows search engines to crawl the media source.
|
|
676
763
|
* You should only allow known crawlers ({@link https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot?hl=en how to verify Googlebot & Crawler})
|
|
@@ -678,7 +765,8 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
678
765
|
*/
|
|
679
766
|
seoContentUrl?: string;
|
|
680
767
|
/**
|
|
681
|
-
* Additional teaser options
|
|
768
|
+
* Additional teaser options that improve the loading experience and enable additional
|
|
769
|
+
* integration variants.
|
|
682
770
|
*/
|
|
683
771
|
teaser?: {
|
|
684
772
|
/** Image of the first frame of the media item. Used for initially showing the first frame of the media item. */
|
|
@@ -687,30 +775,16 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
687
775
|
firstFrameBlurHash?: string | null;
|
|
688
776
|
/** Blurred version of the first frame of the media item. Used to show something early while loading. */
|
|
689
777
|
firstFrameBlurred?: string;
|
|
690
|
-
/**
|
|
691
|
-
* The root `poster` is used
|
|
692
|
-
* @ignore
|
|
693
|
-
*/
|
|
694
|
-
poster?: string;
|
|
695
778
|
/** {@link https://blurha.sh/ Blurhash} of the poster of the media item. Used for coloring the background. */
|
|
696
779
|
posterBlurHash?: string | null;
|
|
697
780
|
/** Blurred version of the poster of the media item. Used to show something early while loading. */
|
|
698
781
|
posterBlurred?: string;
|
|
699
|
-
/**
|
|
700
|
-
* Can probably be removed because unused.
|
|
701
|
-
* @ignore
|
|
702
|
-
*/
|
|
703
|
-
thumbnail?: string;
|
|
704
782
|
/** Teaser video URL which is used for previewing the media item for some integrations. */
|
|
705
783
|
video?: string;
|
|
706
|
-
/**
|
|
707
|
-
* The root `title` is used
|
|
708
|
-
*
|
|
709
|
-
* @ignore
|
|
710
|
-
*/
|
|
711
|
-
title?: string;
|
|
712
784
|
};
|
|
713
|
-
/**
|
|
785
|
+
/**
|
|
786
|
+
* Additional labels for this media item.
|
|
787
|
+
*/
|
|
714
788
|
labels?: {
|
|
715
789
|
id: string;
|
|
716
790
|
name: string;
|
|
@@ -723,7 +797,7 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
723
797
|
name: string;
|
|
724
798
|
};
|
|
725
799
|
/**
|
|
726
|
-
*
|
|
800
|
+
* Additional details to show for the age rating (e.g. `['Alcohol']`) next to the minimum age.
|
|
727
801
|
*/
|
|
728
802
|
ageRatingDetails?: string[];
|
|
729
803
|
/** Keywords of the media item */
|
|
@@ -738,10 +812,17 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
738
812
|
name: string;
|
|
739
813
|
id?: string;
|
|
740
814
|
};
|
|
815
|
+
/** Error information if the media item is not available upfront. */
|
|
741
816
|
error?: MediaItemError;
|
|
742
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* Internal definition of experiments.
|
|
819
|
+
* @ignore
|
|
820
|
+
*/
|
|
743
821
|
experiments?: Experiment[];
|
|
744
|
-
/**
|
|
822
|
+
/**
|
|
823
|
+
* Advanced additional content branding (e.g. L around the video).
|
|
824
|
+
* @ignore
|
|
825
|
+
*/
|
|
745
826
|
branding?: {
|
|
746
827
|
backgroundColor?: string;
|
|
747
828
|
cutInZoomAssetUrl?: string;
|
|
@@ -749,17 +830,6 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
749
830
|
logoUrl?: string;
|
|
750
831
|
logoLinkUrl?: string;
|
|
751
832
|
};
|
|
752
|
-
/** @ignore */
|
|
753
|
-
tracking?: {
|
|
754
|
-
scriptUrl: string;
|
|
755
|
-
data?: {
|
|
756
|
-
episodeExternalId?: string;
|
|
757
|
-
showTitle?: string;
|
|
758
|
-
showId?: string;
|
|
759
|
-
onlineExclusive?: boolean;
|
|
760
|
-
channel?: string;
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
833
|
/** Livestream details */
|
|
764
834
|
livestream?: {
|
|
765
835
|
/** UTC start time of the livestream in milliseconds */
|
|
@@ -767,8 +837,11 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
767
837
|
/** UTC end time of the livestream in milliseconds */
|
|
768
838
|
endTime?: number;
|
|
769
839
|
};
|
|
770
|
-
/**
|
|
771
|
-
|
|
840
|
+
/**
|
|
841
|
+
* Only relevant for glomex-internal use.
|
|
842
|
+
* @ignore
|
|
843
|
+
*/
|
|
844
|
+
allowTeaserExperiments?: boolean;
|
|
772
845
|
/**
|
|
773
846
|
* URL of the API script that should be executed for this media-item. Script
|
|
774
847
|
* must export `export function connectIntegration(glomexIntegration) {}`
|
|
@@ -830,7 +903,7 @@ export declare interface MediaItem extends MinimalMediaItem {
|
|
|
830
903
|
* ```
|
|
831
904
|
*/
|
|
832
905
|
export declare interface MediaItemElement extends HTMLElement {
|
|
833
|
-
readonly data: MediaItem |
|
|
906
|
+
readonly data: MediaItem | MediaItem[] | Promise<MediaItem | MediaItem[]>;
|
|
834
907
|
}
|
|
835
908
|
|
|
836
909
|
/**
|
|
@@ -960,88 +1033,6 @@ export declare enum Mimetype {
|
|
|
960
1033
|
JOYN = "application/x-joyn-source"
|
|
961
1034
|
}
|
|
962
1035
|
|
|
963
|
-
export declare interface MinimalMediaItem {
|
|
964
|
-
/**
|
|
965
|
-
* Unique identifier of the media item.
|
|
966
|
-
*/
|
|
967
|
-
id: string;
|
|
968
|
-
/**
|
|
969
|
-
* Poster image of the media item.
|
|
970
|
-
*/
|
|
971
|
-
poster: string;
|
|
972
|
-
/**
|
|
973
|
-
* Sources of the media item.
|
|
974
|
-
*/
|
|
975
|
-
sources: MediaSource_2[];
|
|
976
|
-
/**
|
|
977
|
-
* Title of the media item.
|
|
978
|
-
*/
|
|
979
|
-
title: string;
|
|
980
|
-
/**
|
|
981
|
-
* Duration of the media item in seconds. Not defined when livestream.
|
|
982
|
-
*/
|
|
983
|
-
duration?: number;
|
|
984
|
-
/**
|
|
985
|
-
* Description of the media item.
|
|
986
|
-
*/
|
|
987
|
-
description?: string;
|
|
988
|
-
/**
|
|
989
|
-
* Language of the media item. 2-letter ISO language code.
|
|
990
|
-
*
|
|
991
|
-
* @defaultValue `de` (German)
|
|
992
|
-
*/
|
|
993
|
-
language?: string;
|
|
994
|
-
/**
|
|
995
|
-
* IAB categories (as {@link iabCategoryTaxonomy}) of the media item.
|
|
996
|
-
*/
|
|
997
|
-
iabCategories?: string[];
|
|
998
|
-
/**
|
|
999
|
-
* IAB category taxonomy used for {@link iabCategories} ({@link https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/main/AdCOM%20v1.0%20FINAL.md#list_categorytaxonomies see IAB spec for details})
|
|
1000
|
-
* @defaultValue `9` for IAB Tech Lab Content Taxonomy 3.1
|
|
1001
|
-
*/
|
|
1002
|
-
iabCategoryTaxonomy?: number;
|
|
1003
|
-
/**
|
|
1004
|
-
* Aspect ratio of the media item.
|
|
1005
|
-
*
|
|
1006
|
-
* @defaultValue `16:9`
|
|
1007
|
-
*/
|
|
1008
|
-
aspectRatio?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* Minimum age to watch the media item.
|
|
1011
|
-
*
|
|
1012
|
-
* @defaultValue `0` (no minimum age)
|
|
1013
|
-
*/
|
|
1014
|
-
minimumAge?: number;
|
|
1015
|
-
/**
|
|
1016
|
-
* Release date of the media item. Unix timestamp in milliseconds.
|
|
1017
|
-
*/
|
|
1018
|
-
releaseDate?: number;
|
|
1019
|
-
/**
|
|
1020
|
-
* Time when the media item expires. Unix timestamp in milliseconds.
|
|
1021
|
-
*/
|
|
1022
|
-
endDate?: number;
|
|
1023
|
-
/**
|
|
1024
|
-
* Whether the media item has product placements.
|
|
1025
|
-
*/
|
|
1026
|
-
hasProductPlacement?: boolean;
|
|
1027
|
-
/**
|
|
1028
|
-
* Channel of the media item.
|
|
1029
|
-
*/
|
|
1030
|
-
channel?: Channel;
|
|
1031
|
-
/**
|
|
1032
|
-
* Markers of the media item.
|
|
1033
|
-
*
|
|
1034
|
-
* @defaultValue `[{ name: KnownMarkerName.PREROLL, type: MarkerType.TIME_IN_SECONDS, threshold: 0 }]`
|
|
1035
|
-
*/
|
|
1036
|
-
markers?: (Marker | CustomMarker)[];
|
|
1037
|
-
/**
|
|
1038
|
-
* In which country can this media item be played (e.g. `['de', 'at']`)?
|
|
1039
|
-
*
|
|
1040
|
-
* @defaultValue `['all']` (worldwide)
|
|
1041
|
-
*/
|
|
1042
|
-
regionsAllowed?: string[];
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
1036
|
export declare interface Page {
|
|
1046
1037
|
url: string;
|
|
1047
1038
|
searchParams: Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1306.0",
|
|
4
4
|
"description": "Web component and types to integrate the glomex player",
|
|
5
5
|
"documentation": "https://docs.glomex.com",
|
|
6
6
|
"homepage": "https://glomex.com",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "^1.9.4",
|
|
32
|
-
"@glomex/integration": "^1.
|
|
32
|
+
"@glomex/integration": "^1.1306.0",
|
|
33
33
|
"@microsoft/api-extractor": "^7.52.1",
|
|
34
34
|
"@rslib/core": "^0.5.4",
|
|
35
35
|
"typescript": "^5.8.2"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "899ed92cd26a595ef3a97d06e547903253b4e002"
|
|
41
41
|
}
|