@livetiles/reach-components-react 0.4.0-preview.193 → 0.4.0-preview.199

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/index.esm2.js CHANGED
@@ -87447,9 +87447,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
87447
87447
  }), void 0);
87448
87448
  };
87449
87449
 
87450
- var version$1 = "0.4.0-preview.193";
87451
- var buildId = "98143";
87452
- var commitId = "039d8b9f1dd2f781a29e041ebbe70bc6a1bf48d1";
87450
+ var version$1 = "0.4.0-preview.199";
87451
+ var buildId = "98183";
87452
+ var commitId = "7e20c687cb45e49232a4fa5309a8f0309763b72d";
87453
87453
  var isCustomerBuild = false;
87454
87454
  var buildInfo = {
87455
87455
  version: version$1,
@@ -88119,7 +88119,16 @@ var ReachContextProvider = function ReachContextProvider(props) {
88119
88119
 
88120
88120
  var envContextExists = useContext(EnvironmentContext) != null;
88121
88121
  useEffect$1(function () {
88122
+ if (window['__did_initialize_reach_context']) {
88123
+ return;
88124
+ }
88125
+
88122
88126
  window['__did_initialize_reach_context'] = true;
88127
+
88128
+ if (!envContextExists && !window['__is_reach_app']) {
88129
+ registerCorePackages();
88130
+ registerComponentLibraryPackages();
88131
+ }
88123
88132
  }, []);
88124
88133
  var envContextValue = useMemo(getEnvValue, [(_a = props.config) === null || _a === void 0 ? void 0 : _a.apiEndpoint, (_b = props.config) === null || _b === void 0 ? void 0 : _b.webAppUrl, (_c = props.config) === null || _c === void 0 ? void 0 : _c.api3Endpoint, (_d = props.config) === null || _d === void 0 ? void 0 : _d.webSocketsEndpoint]);
88125
88134
 
@@ -88348,8 +88357,6 @@ function initializeGlobalStuff() {
88348
88357
  }
88349
88358
 
88350
88359
  initializeIcons();
88351
- registerCorePackages();
88352
- registerComponentLibraryPackages();
88353
88360
  }
88354
88361
 
88355
88362
  var regex$4=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
package/index.umd.js CHANGED
@@ -87304,9 +87304,9 @@
87304
87304
  }), void 0);
87305
87305
  };
87306
87306
 
87307
- var version$1 = "0.4.0-preview.193";
87308
- var buildId = "98143";
87309
- var commitId = "039d8b9f1dd2f781a29e041ebbe70bc6a1bf48d1";
87307
+ var version$1 = "0.4.0-preview.199";
87308
+ var buildId = "98183";
87309
+ var commitId = "7e20c687cb45e49232a4fa5309a8f0309763b72d";
87310
87310
  var isCustomerBuild = false;
87311
87311
  var buildInfo = {
87312
87312
  version: version$1,
@@ -87976,7 +87976,16 @@
87976
87976
 
87977
87977
  var envContextExists = React$d.useContext(EnvironmentContext) != null;
87978
87978
  React$d.useEffect(function () {
87979
+ if (window['__did_initialize_reach_context']) {
87980
+ return;
87981
+ }
87982
+
87979
87983
  window['__did_initialize_reach_context'] = true;
87984
+
87985
+ if (!envContextExists && !window['__is_reach_app']) {
87986
+ registerCorePackages();
87987
+ registerComponentLibraryPackages();
87988
+ }
87980
87989
  }, []);
87981
87990
  var envContextValue = React$d.useMemo(getEnvValue, [(_a = props.config) === null || _a === void 0 ? void 0 : _a.apiEndpoint, (_b = props.config) === null || _b === void 0 ? void 0 : _b.webAppUrl, (_c = props.config) === null || _c === void 0 ? void 0 : _c.api3Endpoint, (_d = props.config) === null || _d === void 0 ? void 0 : _d.webSocketsEndpoint]);
87982
87991
 
@@ -88205,8 +88214,6 @@
88205
88214
  }
88206
88215
 
88207
88216
  officeUiFabricReact.initializeIcons();
88208
- registerCorePackages();
88209
- registerComponentLibraryPackages();
88210
88217
  }
88211
88218
 
88212
88219
  var regex$4=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
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.4.0-preview.193",
4
+ "version": "0.4.0-preview.199",
5
5
  "peerDependencies": {
6
6
  "react": "^16.14.0 || ^17",
7
7
  "react-dom": "^16.14.0 || ^17",