@livetiles/reach-components-react 0.4.0-preview.196 → 0.4.0-preview.197

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.196";
87451
- var buildId = "98172";
87452
- var commitId = "1cda7c70d8264446ca790a4f3f06a184dc8a4f38";
87450
+ var version$1 = "0.4.0-preview.197";
87451
+ var buildId = "98175";
87452
+ var commitId = "e0a8b202409ac9a1f88ab88f4b727d18a90c5123";
87453
87453
  var isCustomerBuild = false;
87454
87454
  var buildInfo = {
87455
87455
  version: version$1,
@@ -88118,6 +88118,18 @@ var ReachContextProvider = function ReachContextProvider(props) {
88118
88118
  var _a, _b, _c, _d;
88119
88119
 
88120
88120
  var envContextExists = useContext(EnvironmentContext) != null;
88121
+ useEffect$1(function () {
88122
+ if (window['__did_initialize_reach_context']) {
88123
+ return;
88124
+ }
88125
+
88126
+ window['__did_initialize_reach_context'] = true;
88127
+
88128
+ if (!envContextExists && !window['__is_reach_app']) {
88129
+ registerCorePackages();
88130
+ registerComponentLibraryPackages();
88131
+ }
88132
+ }, []);
88121
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]);
88122
88134
 
88123
88135
  if (envContextExists) {
@@ -88344,10 +88356,7 @@ function initializeGlobalStuff() {
88344
88356
  return;
88345
88357
  }
88346
88358
 
88347
- window['__did_initialize_reach_context'] = true;
88348
88359
  initializeIcons();
88349
- registerCorePackages();
88350
- registerComponentLibraryPackages();
88351
88360
  }
88352
88361
 
88353
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.196";
87308
- var buildId = "98172";
87309
- var commitId = "1cda7c70d8264446ca790a4f3f06a184dc8a4f38";
87307
+ var version$1 = "0.4.0-preview.197";
87308
+ var buildId = "98175";
87309
+ var commitId = "e0a8b202409ac9a1f88ab88f4b727d18a90c5123";
87310
87310
  var isCustomerBuild = false;
87311
87311
  var buildInfo = {
87312
87312
  version: version$1,
@@ -87975,6 +87975,18 @@
87975
87975
  var _a, _b, _c, _d;
87976
87976
 
87977
87977
  var envContextExists = React$d.useContext(EnvironmentContext) != null;
87978
+ React$d.useEffect(function () {
87979
+ if (window['__did_initialize_reach_context']) {
87980
+ return;
87981
+ }
87982
+
87983
+ window['__did_initialize_reach_context'] = true;
87984
+
87985
+ if (!envContextExists && !window['__is_reach_app']) {
87986
+ registerCorePackages();
87987
+ registerComponentLibraryPackages();
87988
+ }
87989
+ }, []);
87978
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]);
87979
87991
 
87980
87992
  if (envContextExists) {
@@ -88201,10 +88213,7 @@
88201
88213
  return;
88202
88214
  }
88203
88215
 
88204
- window['__did_initialize_reach_context'] = true;
88205
88216
  officeUiFabricReact.initializeIcons();
88206
- registerCorePackages();
88207
- registerComponentLibraryPackages();
88208
88217
  }
88209
88218
 
88210
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.196",
4
+ "version": "0.4.0-preview.197",
5
5
  "peerDependencies": {
6
6
  "react": "^16.14.0 || ^17",
7
7
  "react-dom": "^16.14.0 || ^17",