@livetiles/reach-components-react 0.3.62 → 0.3.63

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.
@@ -1224,6 +1224,7 @@ var en = {
1224
1224
  "Customization.applicationLogoInfo3": "Recommended size: {dimensions}. Width or height can be reduced as required by your logo. If both dimensions are less than the recommended values the logo might look blurry on high resolution devices.",
1225
1225
  "Customization.applicationLogoInfo3.dimensions.small": "855px width by 150px height",
1226
1226
  "Customization.applicationLogoInfo3.dimensions.large": "1500px width by 465px height",
1227
+ "Customization.applicationLogo.large.legacy.info": "No logo has been uploaded for the sign-in dialog. The available logo for app and emails will be used until a new one has been uploaded. We recommend uploading a larger logo for a better user experience.",
1227
1228
  "Customization.applicationLogo.dialog.title": "Logo preview",
1228
1229
  "Customization.applicationLogo.dialog.description": "This is how your logo will look:",
1229
1230
  "Customization.applicationLogo.dialog.example.appBar": "App bar (large screens)",
package/index.d.ts CHANGED
@@ -233,7 +233,6 @@ interface BaseSubscription {
233
233
  contact: Account;
234
234
  theme: Theme;
235
235
  defaultLanguage: string;
236
- logoUrl: string;
237
236
  faviconUrl?: string;
238
237
  navigation: NavigationNode[];
239
238
  regionSettings?: RegionSettings;
@@ -242,6 +241,12 @@ interface BaseSubscription {
242
241
  hasUnreadItems: boolean;
243
242
  pageTrackingInfo: PageTrackingInfo;
244
243
  termsAndConditionsHash?: string;
244
+ logoInfo: LogoInfo;
245
+ }
246
+ interface LogoInfo {
247
+ smallUrl: string;
248
+ largeUrl: string;
249
+ isLegacyLogo: boolean;
245
250
  }
246
251
  interface PageTrackingInfo {
247
252
  type: string;
package/index.esm2.js CHANGED
@@ -51010,6 +51010,13 @@ var AudienceMatchMode;
51010
51010
  AudienceMatchMode[AudienceMatchMode["AnyGroupAndAnyProperty"] = 1] = "AnyGroupAndAnyProperty";
51011
51011
  })(AudienceMatchMode || (AudienceMatchMode = {}));
51012
51012
 
51013
+ var LogoSize;
51014
+
51015
+ (function (LogoSize) {
51016
+ LogoSize["large"] = "large";
51017
+ LogoSize["small"] = "small";
51018
+ })(LogoSize || (LogoSize = {}));
51019
+
51013
51020
  var LinkDirectoryResultType;
51014
51021
 
51015
51022
  (function (LinkDirectoryResultType) {
@@ -54623,16 +54630,19 @@ function getTheme$1(settings) {
54623
54630
  }
54624
54631
 
54625
54632
  function getTextColor(bgColor) {
54626
- var contrastWithBlack = s(bgColor, defaultDarkColor);
54627
- var contrastWithWhite = s(bgColor, defaultLightColor);
54628
-
54629
- if (contrastWithBlack > contrastWithWhite) {
54633
+ if (shouldUseDarkForegroundColor(bgColor)) {
54630
54634
  return defaultDarkColor;
54631
54635
  }
54632
54636
 
54633
54637
  return defaultLightColor;
54634
54638
  }
54635
54639
 
54640
+ function shouldUseDarkForegroundColor(bgColor) {
54641
+ var contrastWithBlack = s(bgColor, defaultDarkColor);
54642
+ var contrastWithWhite = s(bgColor, defaultLightColor);
54643
+ return contrastWithBlack > contrastWithWhite;
54644
+ }
54645
+
54636
54646
  var ThemeContext$1 = /*#__PURE__*/createContext(null);
54637
54647
 
54638
54648
  var ThemeContextProvider = function ThemeContextProvider(_a) {
@@ -87799,9 +87809,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
87799
87809
  }), void 0);
87800
87810
  };
87801
87811
 
87802
- var version$1 = "0.3.62";
87803
- var buildId = "101307";
87804
- var commitId = "e3f8f643cdb08e426cef29cac1041b071b4706e2";
87812
+ var version$1 = "0.3.63";
87813
+ var buildId = "101357";
87814
+ var commitId = "f078b425a853f8d5cf68defe05c48b15ccafda0c";
87805
87815
  var isCustomerBuild = false;
87806
87816
  var buildInfo = {
87807
87817
  version: version$1,
package/index.umd.js CHANGED
@@ -50868,6 +50868,13 @@
50868
50868
  AudienceMatchMode[AudienceMatchMode["AnyGroupAndAnyProperty"] = 1] = "AnyGroupAndAnyProperty";
50869
50869
  })(AudienceMatchMode || (AudienceMatchMode = {}));
50870
50870
 
50871
+ var LogoSize;
50872
+
50873
+ (function (LogoSize) {
50874
+ LogoSize["large"] = "large";
50875
+ LogoSize["small"] = "small";
50876
+ })(LogoSize || (LogoSize = {}));
50877
+
50871
50878
  var LinkDirectoryResultType;
50872
50879
 
50873
50880
  (function (LinkDirectoryResultType) {
@@ -54481,16 +54488,19 @@
54481
54488
  }
54482
54489
 
54483
54490
  function getTextColor(bgColor) {
54484
- var contrastWithBlack = s(bgColor, defaultDarkColor);
54485
- var contrastWithWhite = s(bgColor, defaultLightColor);
54486
-
54487
- if (contrastWithBlack > contrastWithWhite) {
54491
+ if (shouldUseDarkForegroundColor(bgColor)) {
54488
54492
  return defaultDarkColor;
54489
54493
  }
54490
54494
 
54491
54495
  return defaultLightColor;
54492
54496
  }
54493
54497
 
54498
+ function shouldUseDarkForegroundColor(bgColor) {
54499
+ var contrastWithBlack = s(bgColor, defaultDarkColor);
54500
+ var contrastWithWhite = s(bgColor, defaultLightColor);
54501
+ return contrastWithBlack > contrastWithWhite;
54502
+ }
54503
+
54494
54504
  var ThemeContext$1 = /*#__PURE__*/React$d.createContext(null);
54495
54505
 
54496
54506
  var ThemeContextProvider = function ThemeContextProvider(_a) {
@@ -87657,9 +87667,9 @@
87657
87667
  }), void 0);
87658
87668
  };
87659
87669
 
87660
- var version$1 = "0.3.62";
87661
- var buildId = "101307";
87662
- var commitId = "e3f8f643cdb08e426cef29cac1041b071b4706e2";
87670
+ var version$1 = "0.3.63";
87671
+ var buildId = "101357";
87672
+ var commitId = "f078b425a853f8d5cf68defe05c48b15ccafda0c";
87663
87673
  var isCustomerBuild = false;
87664
87674
  var buildInfo = {
87665
87675
  version: version$1,
@@ -157390,6 +157400,7 @@
157390
157400
  "Customization.applicationLogoInfo3": "Recommended size: {dimensions}. Width or height can be reduced as required by your logo. If both dimensions are less than the recommended values the logo might look blurry on high resolution devices.",
157391
157401
  "Customization.applicationLogoInfo3.dimensions.small": "855px width by 150px height",
157392
157402
  "Customization.applicationLogoInfo3.dimensions.large": "1500px width by 465px height",
157403
+ "Customization.applicationLogo.large.legacy.info": "No logo has been uploaded for the sign-in dialog. The available logo for app and emails will be used until a new one has been uploaded. We recommend uploading a larger logo for a better user experience.",
157393
157404
  "Customization.applicationLogo.dialog.title": "Logo preview",
157394
157405
  "Customization.applicationLogo.dialog.description": "This is how your logo will look:",
157395
157406
  "Customization.applicationLogo.dialog.example.appBar": "App bar (large screens)",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@livetiles/reach-components-react",
3
3
  "description": "Provides React components to consume LiveTiles Reach data",
4
- "version": "0.3.62",
4
+ "version": "0.3.63",
5
5
  "peerDependencies": {
6
6
  "react": "^16.14.0 || ^17",
7
7
  "react-dom": "^16.14.0 || ^17",