@tivio/sdk-react 5.0.2 → 5.0.3-alpha-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.
- package/dist/index.d.ts +40 -7
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +40 -7
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ComponentType } from 'react';
|
2
2
|
import { FunctionComponentElement } from 'react';
|
3
|
+
import { GeoPoint } from '@firebase/firestore-types';
|
3
4
|
import { OperatingSystem } from 'detect-browser';
|
4
5
|
import { default as React_2 } from 'react';
|
5
6
|
|
@@ -947,18 +948,44 @@ export declare type LiveTvChannelSource = SourceBase & {
|
|
947
948
|
};
|
948
949
|
|
949
950
|
/**
|
951
|
+
* If value of the field (only 1st level) is undefined it means that it was never saved
|
952
|
+
* and might or might not be present in maxmind service.
|
953
|
+
*
|
954
|
+
* If it is null it means that maxmind does not have data for this field.
|
955
|
+
*
|
950
956
|
* @public
|
951
957
|
*/
|
952
|
-
export declare
|
958
|
+
export declare interface LocationField {
|
953
959
|
/**
|
954
|
-
* Two-letter uppercase continent code (TODO not sure if this ISO-3166 format or something else, we get these from maxmind service)
|
960
|
+
* Two-letter uppercase continent code (TODO not sure if this ISO-3166 format or something else, we get these from maxmind service).
|
955
961
|
*/
|
956
|
-
continentCode?: 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA';
|
962
|
+
continentCode?: 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA' | null;
|
957
963
|
/**
|
958
|
-
* Two-letter uppercase country code according to ISO-3166 format (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
|
964
|
+
* Two-letter uppercase country code according to ISO-3166 format (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
|
959
965
|
*/
|
960
|
-
countryIsoCode?: string;
|
961
|
-
|
966
|
+
countryIsoCode?: string | null;
|
967
|
+
/**
|
968
|
+
*
|
969
|
+
*/
|
970
|
+
city?: {
|
971
|
+
/**
|
972
|
+
* Maxmind specific id, works as key for identifying cities
|
973
|
+
* (see https://support.maxmind.com/hc/en-us/articles/4414877149467-IP-Geolocation-Data#h_01FRRNFD5Z5EWNCAXM6SZZ5H2C).
|
974
|
+
*/
|
975
|
+
geonameId: number;
|
976
|
+
/**
|
977
|
+
* City name in english (see https://maxmind.github.io/GeoIP2-node/interfaces/CityRecord.html#names).
|
978
|
+
*/
|
979
|
+
cityName?: string;
|
980
|
+
} | null;
|
981
|
+
/**
|
982
|
+
* The approximate latitude and longitude of the location associated with the IP address.
|
983
|
+
* This value is not precise and should not be used to identify a particular address or household.
|
984
|
+
*
|
985
|
+
* Source https://maxmind.github.io/GeoIP2-node/interfaces/LocationRecord.html#latitude.
|
986
|
+
*/
|
987
|
+
geoPoint?: GeoPoint | null;
|
988
|
+
}
|
962
989
|
|
963
990
|
declare interface Logger {
|
964
991
|
/** important messages */
|
@@ -2310,7 +2337,7 @@ export declare type TivioComponents = {
|
|
2310
2337
|
onEnded?: () => any;
|
2311
2338
|
}>;
|
2312
2339
|
TvApp: React_2.ComponentType<TvAppProps>;
|
2313
|
-
FeatureSupportCheck: React_2.ComponentType
|
2340
|
+
FeatureSupportCheck: React_2.ComponentType;
|
2314
2341
|
CustomerScreen: React_2.ComponentType<{
|
2315
2342
|
screenId: string;
|
2316
2343
|
}>;
|
@@ -2698,6 +2725,11 @@ export declare type TivioVodSource = SourceBase & StartAndContinuePosition & {
|
|
2698
2725
|
*/
|
2699
2726
|
export declare const TivioWidget: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<TivioWidgetRef>>;
|
2700
2727
|
|
2728
|
+
/**
|
2729
|
+
* @public
|
2730
|
+
*/
|
2731
|
+
export declare const TivioWidgetApp: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<unknown>>;
|
2732
|
+
|
2701
2733
|
/**
|
2702
2734
|
* @public
|
2703
2735
|
*/
|
@@ -2724,6 +2756,7 @@ export declare interface TivioWidgetProps {
|
|
2724
2756
|
width: number;
|
2725
2757
|
x: number;
|
2726
2758
|
}) => any;
|
2759
|
+
navigateFunction?: any;
|
2727
2760
|
}
|
2728
2761
|
|
2729
2762
|
/**
|