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

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.195";
87451
- var buildId = "98169";
87452
- var commitId = "e0a8b202409ac9a1f88ab88f4b727d18a90c5123";
87450
+ var version$1 = "0.4.0-preview.196";
87451
+ var buildId = "98172";
87452
+ var commitId = "1cda7c70d8264446ca790a4f3f06a184dc8a4f38";
87453
87453
  var isCustomerBuild = false;
87454
87454
  var buildInfo = {
87455
87455
  version: version$1,
@@ -88118,18 +88118,6 @@ 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
- }, []);
88133
88121
  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]);
88134
88122
 
88135
88123
  if (envContextExists) {
@@ -88356,7 +88344,10 @@ function initializeGlobalStuff() {
88356
88344
  return;
88357
88345
  }
88358
88346
 
88347
+ window['__did_initialize_reach_context'] = true;
88359
88348
  initializeIcons();
88349
+ registerCorePackages();
88350
+ registerComponentLibraryPackages();
88360
88351
  }
88361
88352
 
88362
88353
  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.195";
87308
- var buildId = "98169";
87309
- var commitId = "e0a8b202409ac9a1f88ab88f4b727d18a90c5123";
87307
+ var version$1 = "0.4.0-preview.196";
87308
+ var buildId = "98172";
87309
+ var commitId = "1cda7c70d8264446ca790a4f3f06a184dc8a4f38";
87310
87310
  var isCustomerBuild = false;
87311
87311
  var buildInfo = {
87312
87312
  version: version$1,
@@ -87975,18 +87975,6 @@
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
- }, []);
87990
87978
  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]);
87991
87979
 
87992
87980
  if (envContextExists) {
@@ -88213,7 +88201,10 @@
88213
88201
  return;
88214
88202
  }
88215
88203
 
88204
+ window['__did_initialize_reach_context'] = true;
88216
88205
  officeUiFabricReact.initializeIcons();
88206
+ registerCorePackages();
88207
+ registerComponentLibraryPackages();
88217
88208
  }
88218
88209
 
88219
88210
  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.195",
4
+ "version": "0.4.0-preview.196",
5
5
  "peerDependencies": {
6
6
  "react": "^16.14.0 || ^17",
7
7
  "react-dom": "^16.14.0 || ^17",