@trackunit/react-core-contexts 0.4.165 → 0.4.167

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.cjs CHANGED
@@ -8,6 +8,7 @@ var context = require('@apollo/client/link/context');
8
8
  var error = require('@apollo/client/link/error');
9
9
  var Sentry = require('@sentry/browser');
10
10
  var reactCoreHooks = require('@trackunit/react-core-hooks');
11
+ var amplitude = require('amplitude-js');
11
12
  var apolloUploadClient = require('apollo-upload-client');
12
13
  var React = require('react');
13
14
  var irisAppRuntimeCore = require('@trackunit/iris-app-runtime-core');
@@ -16,6 +17,8 @@ var i18nLibraryTranslation = require('@trackunit/i18n-library-translation');
16
17
  var reactComponents = require('@trackunit/react-components');
17
18
  var reactRouterDom = require('react-router-dom');
18
19
 
20
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
+
19
22
  function _interopNamespace(e) {
20
23
  if (e && e.__esModule) return e;
21
24
  var n = Object.create(null);
@@ -35,6 +38,7 @@ function _interopNamespace(e) {
35
38
  }
36
39
 
37
40
  var Sentry__namespace = /*#__PURE__*/_interopNamespace(Sentry);
41
+ var amplitude__default = /*#__PURE__*/_interopDefaultLegacy(amplitude);
38
42
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
39
43
 
40
44
  /******************************************************************************
@@ -119,14 +123,16 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
119
123
  ((_c = x === null || x === void 0 ? void 0 : x.message) === null || _c === void 0 ? void 0 : _c.includes("Access denied! You need to be authorized to perform this action!")));
120
124
  });
121
125
  if (invalidToken) {
122
- Sentry__namespace.captureException({
123
- category: "GraphQL",
124
- message: "GraphQL Error - invalidToken",
125
- level: "warning",
126
- data: {
127
- log: JSON.stringify(errorResponse.graphQLErrors),
128
- },
129
- });
126
+ amplitude__default["default"].getInstance().logEvent("ManagerApolloProviderError", errorResponse.graphQLErrors);
127
+ //Temp fix for Sentry overload
128
+ // Sentry.captureException({
129
+ // category: "GraphQL",
130
+ // message: "GraphQL Error - invalidToken",
131
+ // level: "warning",
132
+ // data: {
133
+ // log: JSON.stringify(errorResponse.graphQLErrors),
134
+ // },
135
+ // });
130
136
  }
131
137
  }
132
138
  if (errorResponse.networkError) {
@@ -210,7 +216,7 @@ const ManagerApolloProvider = ({ children, isIrisApp }) => {
210
216
  /**
211
217
  * This is a provider for the ToastContext.
212
218
  */
213
- const ToastProviderApp = ({ children }) => {
219
+ const ToastProviderIrisApp = ({ children }) => {
214
220
  const value = React.useMemo(() => ({ addToast: irisAppRuntimeCore.ToastRuntime.addToast }), []);
215
221
  return jsxRuntime.jsx(reactCoreHooks.ToastProvider, Object.assign({ value: value }, { children: children }));
216
222
  };
@@ -218,7 +224,7 @@ const ToastProviderApp = ({ children }) => {
218
224
  /**
219
225
  * This is a provider for the AnalyticsProvider.
220
226
  */
221
- const AnalyticsProvider = ({ children }) => {
227
+ const AnalyticsProviderIrisApp = ({ children }) => {
222
228
  const contextValue = React.useMemo(() => ({
223
229
  logPageView: details => {
224
230
  irisAppRuntimeCore.AnalyticsContextRuntime.logPageView(details);
@@ -253,7 +259,7 @@ const useSubscribeToHostChanges = (methods) => {
253
259
  /**
254
260
  * This is a provider for the AssetSortingContext.
255
261
  */
256
- const TileAssetSortingProvider = ({ children }) => {
262
+ const AssetSortingProviderIrisApp = ({ children }) => {
257
263
  const [assetSortingState, setAssetSortingState] = React.useState(null);
258
264
  React.useEffect(() => {
259
265
  irisAppRuntimeCore.AssetSortingRuntime.getAssetSortingState()
@@ -277,7 +283,7 @@ const TileAssetSortingProvider = ({ children }) => {
277
283
  /**
278
284
  * This is a provider for the EnvironmentContext.
279
285
  */
280
- const TileEnvironmentProvider = ({ children }) => {
286
+ const EnvironmentProviderIrisApp = ({ children }) => {
281
287
  const [environment, setEnvironment] = React__namespace.useState(null);
282
288
  React__namespace.useEffect(() => {
283
289
  const updateEnv = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -301,7 +307,7 @@ const TileEnvironmentProvider = ({ children }) => {
301
307
  /**
302
308
  * This is a provider for the GlobalSelectionContext.
303
309
  */
304
- const TileGlobalSelectionProvider = ({ children }) => {
310
+ const GlobalSelectionProviderIrisApp = ({ children }) => {
305
311
  const [GlobalSelectionContext, setGlobalSelectionContext] = React.useState(null);
306
312
  React.useEffect(() => {
307
313
  irisAppRuntimeCore.GlobalSelectionRuntime.getGlobalSelection()
@@ -321,7 +327,7 @@ const TileGlobalSelectionProvider = ({ children }) => {
321
327
  /**
322
328
  * This is a provider for the IOemBrandingContext.
323
329
  */
324
- const OemBrandingContextProvider = ({ children }) => {
330
+ const OemBrandingContextProviderIrisApp = ({ children }) => {
325
331
  const [oemBrandingContext, setOemBrandingContext] = React__namespace.useState(null);
326
332
  React__namespace.useEffect(() => {
327
333
  const updateContext = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -346,7 +352,7 @@ const OemBrandingContextProvider = ({ children }) => {
346
352
  /**
347
353
  * This is a provider for the TokenContext.
348
354
  */
349
- const TileTokenProvider = ({ children }) => {
355
+ const TokenProviderIrisApp = ({ children }) => {
350
356
  const [tokenContext, setTokenContext] = React__namespace.useState(null);
351
357
  React__namespace.useEffect(() => {
352
358
  const updateContext = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -369,10 +375,23 @@ const TileTokenProvider = ({ children }) => {
369
375
  return jsxRuntime.jsx(reactCoreHooks.TokenProvider, Object.assign({ value: tokenContext }, { children: children }));
370
376
  };
371
377
 
378
+ const HostNavigator = ({ children }) => {
379
+ reactCoreHooks.useURLSynchronization();
380
+ // eslint-disable-next-line react/jsx-no-useless-fragment
381
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children });
382
+ };
383
+ /**
384
+ * This is a router for the Trackunit app.
385
+ */
386
+ const TrackunitRouterIrisApp = ({ children }) => {
387
+ var _a;
388
+ return (jsxRuntime.jsx(reactRouterDom.BrowserRouter, Object.assign({ basename: `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}` }, { children: jsxRuntime.jsx(HostNavigator, { children: children }) })));
389
+ };
390
+
372
391
  /**
373
392
  * This is a provider for the CurrentUserContext.
374
393
  */
375
- const TileCurrentUserProvider = ({ children }) => {
394
+ const CurrentUserProviderIrisApp = ({ children }) => {
376
395
  const [currentuserContext, setCurrentUserContext] = React__namespace.useState(null);
377
396
  React__namespace.useEffect(() => {
378
397
  irisAppRuntimeCore.CurrentUserRuntime.getCurrentUserContext()
@@ -388,7 +407,7 @@ const TileCurrentUserProvider = ({ children }) => {
388
407
  /**
389
408
  * This is a provider for the UserSubscriptionContext.
390
409
  */
391
- const UserSubscriptionProvider = ({ children }) => {
410
+ const UserSubscriptionProviderIrisApp = ({ children }) => {
392
411
  const [subscription, setSubscription] = React__namespace.useState(null);
393
412
  React__namespace.useEffect(() => {
394
413
  irisAppRuntimeCore.UserSubscriptionRuntime.getUserSubscriptionContext()
@@ -401,24 +420,6 @@ const UserSubscriptionProvider = ({ children }) => {
401
420
  return jsxRuntime.jsx(reactCoreHooks.UserSubscriptionProvider, Object.assign({ value: subscription }, { children: children }));
402
421
  };
403
422
 
404
- /**
405
- * This is a provider for the TrackunitDataProviders.
406
- */
407
- const TrackunitDataProviders = ({ children }) => (jsxRuntime.jsx(TileEnvironmentProvider, { children: jsxRuntime.jsx(TileTokenProvider, { children: jsxRuntime.jsx(TileCurrentUserProvider, { children: jsxRuntime.jsx(UserSubscriptionProvider, { children: jsxRuntime.jsx(AnalyticsProvider, { children: jsxRuntime.jsx(TileGlobalSelectionProvider, { children: jsxRuntime.jsx(OemBrandingContextProvider, { children: jsxRuntime.jsx(TileAssetSortingProvider, { children: jsxRuntime.jsx(ManagerApolloProvider, Object.assign({ isIrisApp: true }, { children: children })) }) }) }) }) }) }) }) }));
408
-
409
- const HostNavigator = ({ children }) => {
410
- reactCoreHooks.useURLSynchronization();
411
- // eslint-disable-next-line react/jsx-no-useless-fragment
412
- return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children });
413
- };
414
- /**
415
- * This is a router for the Trackunit app.
416
- */
417
- const TrackunitRouter = ({ children }) => {
418
- var _a;
419
- return (jsxRuntime.jsx(reactRouterDom.BrowserRouter, Object.assign({ basename: `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}` }, { children: jsxRuntime.jsx(HostNavigator, { children: children }) })));
420
- };
421
-
422
423
  /**
423
424
  * This is a provider for the TrackunitDataProviders.
424
425
  */
@@ -427,9 +428,9 @@ const TrackunitProviders = ({ translations, children }) => {
427
428
  i18nLibraryTranslation.registerTranslations(translations); // Register the apps translations if passed.
428
429
  }
429
430
  i18nLibraryTranslation.initializeTranslationsForApp(); // Initialize all registered translations
430
- return (jsxRuntime.jsx(TrackunitDataProviders, { children: jsxRuntime.jsx(ToastProviderApp, { children: jsxRuntime.jsx(React__namespace.Suspense, Object.assign({ fallback: jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered" }) }, { children: jsxRuntime.jsx(TrackunitRouter, { children: children }) })) }) }));
431
+ return (jsxRuntime.jsx(EnvironmentProviderIrisApp, { children: jsxRuntime.jsx(TokenProviderIrisApp, { children: jsxRuntime.jsx(CurrentUserProviderIrisApp, { children: jsxRuntime.jsx(UserSubscriptionProviderIrisApp, { children: jsxRuntime.jsx(AnalyticsProviderIrisApp, { children: jsxRuntime.jsx(GlobalSelectionProviderIrisApp, { children: jsxRuntime.jsx(OemBrandingContextProviderIrisApp, { children: jsxRuntime.jsx(AssetSortingProviderIrisApp, { children: jsxRuntime.jsx(ManagerApolloProvider, Object.assign({ isIrisApp: true }, { children: jsxRuntime.jsx(ToastProviderIrisApp, { children: jsxRuntime.jsx(React__namespace.Suspense, Object.assign({ fallback: jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered" }) }, { children: jsxRuntime.jsx(TrackunitRouterIrisApp, { children: children }) })) }) })) }) }) }) }) }) }) }) }));
431
432
  };
432
433
 
433
434
  exports.ManagerApolloProvider = ManagerApolloProvider;
434
- exports.ToastProviderApp = ToastProviderApp;
435
+ exports.ToastProviderIrisApp = ToastProviderIrisApp;
435
436
  exports.TrackunitProviders = TrackunitProviders;
package/index.js CHANGED
@@ -3,7 +3,8 @@ import { ApolloProvider, ApolloClient, InMemoryCache, from, split } from '@apoll
3
3
  import { setContext } from '@apollo/client/link/context';
4
4
  import { onError } from '@apollo/client/link/error';
5
5
  import * as Sentry from '@sentry/browser';
6
- import { useEnvironment, useCurrentUser, useToken, ToastProvider, AnalyticsContextProvider, AssetSortingProvider, EnvironmentContextProvider, GlobalSelectionProvider, OemBrandingContextProvider as OemBrandingContextProvider$1, TokenProvider, CurrentUserProvider, UserSubscriptionProvider as UserSubscriptionProvider$1, useURLSynchronization } from '@trackunit/react-core-hooks';
6
+ import { useEnvironment, useCurrentUser, useToken, ToastProvider, AnalyticsContextProvider, AssetSortingProvider, EnvironmentContextProvider, GlobalSelectionProvider, OemBrandingContextProvider, TokenProvider, useURLSynchronization, CurrentUserProvider, UserSubscriptionProvider } from '@trackunit/react-core-hooks';
7
+ import amplitude from 'amplitude-js';
7
8
  import { createUploadLink } from 'apollo-upload-client';
8
9
  import * as React from 'react';
9
10
  import { useMemo, useEffect, useState } from 'react';
@@ -95,14 +96,16 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
95
96
  ((_c = x === null || x === void 0 ? void 0 : x.message) === null || _c === void 0 ? void 0 : _c.includes("Access denied! You need to be authorized to perform this action!")));
96
97
  });
97
98
  if (invalidToken) {
98
- Sentry.captureException({
99
- category: "GraphQL",
100
- message: "GraphQL Error - invalidToken",
101
- level: "warning",
102
- data: {
103
- log: JSON.stringify(errorResponse.graphQLErrors),
104
- },
105
- });
99
+ amplitude.getInstance().logEvent("ManagerApolloProviderError", errorResponse.graphQLErrors);
100
+ //Temp fix for Sentry overload
101
+ // Sentry.captureException({
102
+ // category: "GraphQL",
103
+ // message: "GraphQL Error - invalidToken",
104
+ // level: "warning",
105
+ // data: {
106
+ // log: JSON.stringify(errorResponse.graphQLErrors),
107
+ // },
108
+ // });
106
109
  }
107
110
  }
108
111
  if (errorResponse.networkError) {
@@ -186,7 +189,7 @@ const ManagerApolloProvider = ({ children, isIrisApp }) => {
186
189
  /**
187
190
  * This is a provider for the ToastContext.
188
191
  */
189
- const ToastProviderApp = ({ children }) => {
192
+ const ToastProviderIrisApp = ({ children }) => {
190
193
  const value = useMemo(() => ({ addToast: ToastRuntime.addToast }), []);
191
194
  return jsx(ToastProvider, Object.assign({ value: value }, { children: children }));
192
195
  };
@@ -194,7 +197,7 @@ const ToastProviderApp = ({ children }) => {
194
197
  /**
195
198
  * This is a provider for the AnalyticsProvider.
196
199
  */
197
- const AnalyticsProvider = ({ children }) => {
200
+ const AnalyticsProviderIrisApp = ({ children }) => {
198
201
  const contextValue = useMemo(() => ({
199
202
  logPageView: details => {
200
203
  AnalyticsContextRuntime.logPageView(details);
@@ -229,7 +232,7 @@ const useSubscribeToHostChanges = (methods) => {
229
232
  /**
230
233
  * This is a provider for the AssetSortingContext.
231
234
  */
232
- const TileAssetSortingProvider = ({ children }) => {
235
+ const AssetSortingProviderIrisApp = ({ children }) => {
233
236
  const [assetSortingState, setAssetSortingState] = useState(null);
234
237
  useEffect(() => {
235
238
  AssetSortingRuntime.getAssetSortingState()
@@ -253,7 +256,7 @@ const TileAssetSortingProvider = ({ children }) => {
253
256
  /**
254
257
  * This is a provider for the EnvironmentContext.
255
258
  */
256
- const TileEnvironmentProvider = ({ children }) => {
259
+ const EnvironmentProviderIrisApp = ({ children }) => {
257
260
  const [environment, setEnvironment] = React.useState(null);
258
261
  React.useEffect(() => {
259
262
  const updateEnv = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -277,7 +280,7 @@ const TileEnvironmentProvider = ({ children }) => {
277
280
  /**
278
281
  * This is a provider for the GlobalSelectionContext.
279
282
  */
280
- const TileGlobalSelectionProvider = ({ children }) => {
283
+ const GlobalSelectionProviderIrisApp = ({ children }) => {
281
284
  const [GlobalSelectionContext, setGlobalSelectionContext] = useState(null);
282
285
  useEffect(() => {
283
286
  GlobalSelectionRuntime.getGlobalSelection()
@@ -297,7 +300,7 @@ const TileGlobalSelectionProvider = ({ children }) => {
297
300
  /**
298
301
  * This is a provider for the IOemBrandingContext.
299
302
  */
300
- const OemBrandingContextProvider = ({ children }) => {
303
+ const OemBrandingContextProviderIrisApp = ({ children }) => {
301
304
  const [oemBrandingContext, setOemBrandingContext] = React.useState(null);
302
305
  React.useEffect(() => {
303
306
  const updateContext = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -316,13 +319,13 @@ const OemBrandingContextProvider = ({ children }) => {
316
319
  if (!oemBrandingContext) {
317
320
  return null;
318
321
  }
319
- return jsx(OemBrandingContextProvider$1, Object.assign({ value: oemBrandingContext }, { children: children }));
322
+ return jsx(OemBrandingContextProvider, Object.assign({ value: oemBrandingContext }, { children: children }));
320
323
  };
321
324
 
322
325
  /**
323
326
  * This is a provider for the TokenContext.
324
327
  */
325
- const TileTokenProvider = ({ children }) => {
328
+ const TokenProviderIrisApp = ({ children }) => {
326
329
  const [tokenContext, setTokenContext] = React.useState(null);
327
330
  React.useEffect(() => {
328
331
  const updateContext = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -345,10 +348,23 @@ const TileTokenProvider = ({ children }) => {
345
348
  return jsx(TokenProvider, Object.assign({ value: tokenContext }, { children: children }));
346
349
  };
347
350
 
351
+ const HostNavigator = ({ children }) => {
352
+ useURLSynchronization();
353
+ // eslint-disable-next-line react/jsx-no-useless-fragment
354
+ return jsx(Fragment, { children: children });
355
+ };
356
+ /**
357
+ * This is a router for the Trackunit app.
358
+ */
359
+ const TrackunitRouterIrisApp = ({ children }) => {
360
+ var _a;
361
+ return (jsx(BrowserRouter, Object.assign({ basename: `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}` }, { children: jsx(HostNavigator, { children: children }) })));
362
+ };
363
+
348
364
  /**
349
365
  * This is a provider for the CurrentUserContext.
350
366
  */
351
- const TileCurrentUserProvider = ({ children }) => {
367
+ const CurrentUserProviderIrisApp = ({ children }) => {
352
368
  const [currentuserContext, setCurrentUserContext] = React.useState(null);
353
369
  React.useEffect(() => {
354
370
  CurrentUserRuntime.getCurrentUserContext()
@@ -364,7 +380,7 @@ const TileCurrentUserProvider = ({ children }) => {
364
380
  /**
365
381
  * This is a provider for the UserSubscriptionContext.
366
382
  */
367
- const UserSubscriptionProvider = ({ children }) => {
383
+ const UserSubscriptionProviderIrisApp = ({ children }) => {
368
384
  const [subscription, setSubscription] = React.useState(null);
369
385
  React.useEffect(() => {
370
386
  UserSubscriptionRuntime.getUserSubscriptionContext()
@@ -374,25 +390,7 @@ const UserSubscriptionProvider = ({ children }) => {
374
390
  if (!subscription) {
375
391
  return null;
376
392
  }
377
- return jsx(UserSubscriptionProvider$1, Object.assign({ value: subscription }, { children: children }));
378
- };
379
-
380
- /**
381
- * This is a provider for the TrackunitDataProviders.
382
- */
383
- const TrackunitDataProviders = ({ children }) => (jsx(TileEnvironmentProvider, { children: jsx(TileTokenProvider, { children: jsx(TileCurrentUserProvider, { children: jsx(UserSubscriptionProvider, { children: jsx(AnalyticsProvider, { children: jsx(TileGlobalSelectionProvider, { children: jsx(OemBrandingContextProvider, { children: jsx(TileAssetSortingProvider, { children: jsx(ManagerApolloProvider, Object.assign({ isIrisApp: true }, { children: children })) }) }) }) }) }) }) }) }));
384
-
385
- const HostNavigator = ({ children }) => {
386
- useURLSynchronization();
387
- // eslint-disable-next-line react/jsx-no-useless-fragment
388
- return jsx(Fragment, { children: children });
389
- };
390
- /**
391
- * This is a router for the Trackunit app.
392
- */
393
- const TrackunitRouter = ({ children }) => {
394
- var _a;
395
- return (jsx(BrowserRouter, Object.assign({ basename: `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}` }, { children: jsx(HostNavigator, { children: children }) })));
393
+ return jsx(UserSubscriptionProvider, Object.assign({ value: subscription }, { children: children }));
396
394
  };
397
395
 
398
396
  /**
@@ -403,7 +401,7 @@ const TrackunitProviders = ({ translations, children }) => {
403
401
  registerTranslations(translations); // Register the apps translations if passed.
404
402
  }
405
403
  initializeTranslationsForApp(); // Initialize all registered translations
406
- return (jsx(TrackunitDataProviders, { children: jsx(ToastProviderApp, { children: jsx(React.Suspense, Object.assign({ fallback: jsx(Spinner, { centering: "centered" }) }, { children: jsx(TrackunitRouter, { children: children }) })) }) }));
404
+ return (jsx(EnvironmentProviderIrisApp, { children: jsx(TokenProviderIrisApp, { children: jsx(CurrentUserProviderIrisApp, { children: jsx(UserSubscriptionProviderIrisApp, { children: jsx(AnalyticsProviderIrisApp, { children: jsx(GlobalSelectionProviderIrisApp, { children: jsx(OemBrandingContextProviderIrisApp, { children: jsx(AssetSortingProviderIrisApp, { children: jsx(ManagerApolloProvider, Object.assign({ isIrisApp: true }, { children: jsx(ToastProviderIrisApp, { children: jsx(React.Suspense, Object.assign({ fallback: jsx(Spinner, { centering: "centered" }) }, { children: jsx(TrackunitRouterIrisApp, { children: children }) })) }) })) }) }) }) }) }) }) }) }));
407
405
  };
408
406
 
409
- export { ManagerApolloProvider, ToastProviderApp, TrackunitProviders };
407
+ export { ManagerApolloProvider, ToastProviderIrisApp, TrackunitProviders };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.165",
3
+ "version": "0.4.167",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
@@ -12,8 +12,9 @@
12
12
  "@trackunit/iris-app-runtime-core": "0.3.46",
13
13
  "@trackunit/react-components": "0.1.99",
14
14
  "@trackunit/react-core-contexts-api": "0.2.37",
15
- "@trackunit/react-core-contexts-test": "0.1.69",
15
+ "@trackunit/react-core-contexts-test": "0.1.70",
16
16
  "@trackunit/react-core-hooks": "0.2.60",
17
+ "amplitude-js": "7.4.4",
17
18
  "apollo-upload-client": "17.0.0",
18
19
  "react": "18.2.0",
19
20
  "react-router-dom": "6.4.5"
@@ -2,6 +2,6 @@
2
2
  /**
3
3
  * This is a router for the Trackunit app.
4
4
  */
5
- export declare const TrackunitRouter: ({ children }: {
5
+ export declare const TrackunitRouterIrisApp: ({ children }: {
6
6
  children?: React.ReactNode;
7
7
  }) => JSX.Element;
@@ -6,5 +6,5 @@ interface Props {
6
6
  /**
7
7
  * This is a provider for the AnalyticsProvider.
8
8
  */
9
- declare const AnalyticsProvider: ({ children }: Props) => JSX.Element;
10
- export default AnalyticsProvider;
9
+ export declare const AnalyticsProviderIrisApp: ({ children }: Props) => JSX.Element;
10
+ export {};
@@ -5,5 +5,5 @@ interface Props {
5
5
  /**
6
6
  * This is a provider for the AssetSortingContext.
7
7
  */
8
- declare const TileAssetSortingProvider: ({ children }: Props) => JSX.Element | null;
9
- export default TileAssetSortingProvider;
8
+ export declare const AssetSortingProviderIrisApp: ({ children }: Props) => JSX.Element | null;
9
+ export {};
@@ -5,5 +5,5 @@ interface IProps {
5
5
  /**
6
6
  * This is a provider for the EnvironmentContext.
7
7
  */
8
- declare const TileEnvironmentProvider: ({ children }: IProps) => JSX.Element | null;
9
- export default TileEnvironmentProvider;
8
+ export declare const EnvironmentProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -5,5 +5,5 @@ interface IProps {
5
5
  /**
6
6
  * This is a provider for the GlobalSelectionContext.
7
7
  */
8
- declare const TileGlobalSelectionProvider: ({ children }: IProps) => JSX.Element | null;
9
- export default TileGlobalSelectionProvider;
8
+ export declare const GlobalSelectionProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
package/src/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "./ManagerApolloProvider";
2
- export * from "./toast/ToastProviderApp";
2
+ export * from "./toast/ToastProviderIrisApp";
3
3
  export * from "./TrackunitProviders";
@@ -5,5 +5,5 @@ interface IProps {
5
5
  /**
6
6
  * This is a provider for the IOemBrandingContext.
7
7
  */
8
- declare const OemBrandingContextProvider: ({ children }: IProps) => JSX.Element | null;
9
- export default OemBrandingContextProvider;
8
+ export declare const OemBrandingContextProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -5,5 +5,5 @@ interface Props {
5
5
  /**
6
6
  * This is a provider for the ToastContext.
7
7
  */
8
- export declare const ToastProviderApp: ({ children }: Props) => JSX.Element;
8
+ export declare const ToastProviderIrisApp: ({ children }: Props) => JSX.Element;
9
9
  export {};
@@ -5,5 +5,5 @@ interface IProps {
5
5
  /**
6
6
  * This is a provider for the TokenContext.
7
7
  */
8
- declare const TileTokenProvider: ({ children }: IProps) => JSX.Element | null;
9
- export default TileTokenProvider;
8
+ export declare const TokenProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -5,5 +5,5 @@ interface IProps {
5
5
  /**
6
6
  * This is a provider for the CurrentUserContext.
7
7
  */
8
- declare const TileCurrentUserProvider: ({ children }: IProps) => JSX.Element | null;
9
- export default TileCurrentUserProvider;
8
+ export declare const CurrentUserProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -5,5 +5,5 @@ interface IProps {
5
5
  /**
6
6
  * This is a provider for the UserSubscriptionContext.
7
7
  */
8
- declare const UserSubscriptionProvider: ({ children }: IProps) => JSX.Element | null;
9
- export default UserSubscriptionProvider;
8
+ export declare const UserSubscriptionProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the TrackunitDataProviders.
7
- */
8
- export declare const TrackunitDataProviders: ({ children }: Props) => JSX.Element;
9
- export {};