@tivio/sdk-react 5.0.2 → 5.0.3-alpha

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.
@@ -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
 
@@ -1100,18 +1101,44 @@ export declare type LiveTvChannelSource = SourceBase & {
1100
1101
  };
1101
1102
 
1102
1103
  /**
1104
+ * If value of the field (only 1st level) is undefined it means that it was never saved
1105
+ * and might or might not be present in maxmind service.
1106
+ *
1107
+ * If it is null it means that maxmind does not have data for this field.
1108
+ *
1103
1109
  * @public
1104
1110
  */
1105
- export declare type LocationField = {
1111
+ export declare interface LocationField {
1106
1112
  /**
1107
- * Two-letter uppercase continent code (TODO not sure if this ISO-3166 format or something else, we get these from maxmind service)
1113
+ * Two-letter uppercase continent code (TODO not sure if this ISO-3166 format or something else, we get these from maxmind service).
1108
1114
  */
1109
- continentCode?: 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA';
1115
+ continentCode?: 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA' | null;
1110
1116
  /**
1111
- * Two-letter uppercase country code according to ISO-3166 format (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
1117
+ * Two-letter uppercase country code according to ISO-3166 format (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
1112
1118
  */
1113
- countryIsoCode?: string;
1114
- };
1119
+ countryIsoCode?: string | null;
1120
+ /**
1121
+ *
1122
+ */
1123
+ city?: {
1124
+ /**
1125
+ * Maxmind specific id, works as key for identifying cities
1126
+ * (see https://support.maxmind.com/hc/en-us/articles/4414877149467-IP-Geolocation-Data#h_01FRRNFD5Z5EWNCAXM6SZZ5H2C).
1127
+ */
1128
+ geonameId: number;
1129
+ /**
1130
+ * City name in english (see https://maxmind.github.io/GeoIP2-node/interfaces/CityRecord.html#names).
1131
+ */
1132
+ cityName?: string;
1133
+ } | null;
1134
+ /**
1135
+ * The approximate latitude and longitude of the location associated with the IP address.
1136
+ * This value is not precise and should not be used to identify a particular address or household.
1137
+ *
1138
+ * Source https://maxmind.github.io/GeoIP2-node/interfaces/LocationRecord.html#latitude.
1139
+ */
1140
+ geoPoint?: GeoPoint | null;
1141
+ }
1115
1142
 
1116
1143
  declare interface Logger {
1117
1144
  /** important messages */
@@ -2552,7 +2579,7 @@ export declare type TivioComponents = {
2552
2579
  onEnded?: () => any;
2553
2580
  }>;
2554
2581
  TvApp: React_2.ComponentType<TvAppProps>;
2555
- FeatureSupportCheck: React_2.ComponentType<{}>;
2582
+ FeatureSupportCheck: React_2.ComponentType;
2556
2583
  CustomerScreen: React_2.ComponentType<{
2557
2584
  screenId: string;
2558
2585
  }>;
@@ -2948,6 +2975,11 @@ export declare type TivioVodSource = SourceBase & StartAndContinuePosition & {
2948
2975
  */
2949
2976
  export declare const TivioWidget: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<TivioWidgetRef>>;
2950
2977
 
2978
+ /**
2979
+ * @public
2980
+ */
2981
+ export declare const TivioWidgetApp: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<unknown>>;
2982
+
2951
2983
  /**
2952
2984
  * @public
2953
2985
  */
@@ -2974,6 +3006,7 @@ export declare interface TivioWidgetProps {
2974
3006
  width: number;
2975
3007
  x: number;
2976
3008
  }) => any;
3009
+ navigateFunction?: any;
2977
3010
  }
2978
3011
 
2979
3012
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "5.0.2",
3
+ "version": "5.0.3-alpha",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "source": "src/index.ts",
@@ -33,7 +33,7 @@
33
33
  "@material-ui/core": "^4.11.2",
34
34
  "@material-ui/icons": "^4.11.2",
35
35
  "@sentry/browser": "^6.1.0",
36
- "@tivio/common": "1.1.104",
36
+ "@tivio/common": "1.1.105",
37
37
  "dayjs": "^1.11.0",
38
38
  "es7-object-polyfill": "^1.0.1",
39
39
  "firebase": "8.10.1",