@sudobility/building_blocks 0.0.78 → 0.0.80
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/dist/{SafeSubscriptionContext-B8nGr5tC.js → SafeSubscriptionContext-BN1cInbb.js} +15 -2
- package/dist/{SafeSubscriptionContext-B8nGr5tC.js.map → SafeSubscriptionContext-BN1cInbb.js.map} +1 -1
- package/dist/components/app/SudobilityApp.d.ts +4 -1
- package/dist/firebase.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -10328,6 +10328,18 @@ function createDefaultThemeProvider(storageKeyPrefix) {
|
|
|
10328
10328
|
function DefaultToastProvider({ children }) {
|
|
10329
10329
|
return /* @__PURE__ */ jsx(zl, { children });
|
|
10330
10330
|
}
|
|
10331
|
+
function DefaultToastContainer() {
|
|
10332
|
+
const { toasts, removeToast } = Fl();
|
|
10333
|
+
if (toasts.length === 0) return null;
|
|
10334
|
+
return /* @__PURE__ */ jsx(
|
|
10335
|
+
Bl,
|
|
10336
|
+
{
|
|
10337
|
+
toasts,
|
|
10338
|
+
onDismiss: removeToast,
|
|
10339
|
+
position: "bottom-right"
|
|
10340
|
+
}
|
|
10341
|
+
);
|
|
10342
|
+
}
|
|
10331
10343
|
function SudobilityApp({
|
|
10332
10344
|
children,
|
|
10333
10345
|
i18n: i18nInstance,
|
|
@@ -10347,11 +10359,12 @@ function SudobilityApp({
|
|
|
10347
10359
|
const PageTrackerComponent = PageTrackerProp === false ? null : PageTrackerProp ?? DefaultPageTracker;
|
|
10348
10360
|
const ThemeProviderComponent = ThemeProviderProp ?? createDefaultThemeProvider(storageKeyPrefix);
|
|
10349
10361
|
const ToastProviderComponent = ToastProviderProp ?? DefaultToastProvider;
|
|
10362
|
+
const ToastContainerComponent = ToastContainer ?? DefaultToastContainer;
|
|
10350
10363
|
const queryClientInstance = queryClient ?? getDefaultQueryClient();
|
|
10351
10364
|
let routerContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10352
10365
|
PageTrackerComponent && /* @__PURE__ */ jsx(PageTrackerComponent, {}),
|
|
10353
10366
|
/* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingFallback, {}), children }),
|
|
10354
|
-
|
|
10367
|
+
/* @__PURE__ */ jsx(ToastContainerComponent, {}),
|
|
10355
10368
|
showInfoBanner && /* @__PURE__ */ jsx(InfoBanner, {})
|
|
10356
10369
|
] });
|
|
10357
10370
|
routerContent = /* @__PURE__ */ jsx(BrowserRouter, { children: routerContent });
|
|
@@ -10396,4 +10409,4 @@ export {
|
|
|
10396
10409
|
useSafeSubscription as u,
|
|
10397
10410
|
zl as z
|
|
10398
10411
|
};
|
|
10399
|
-
//# sourceMappingURL=SafeSubscriptionContext-
|
|
10412
|
+
//# sourceMappingURL=SafeSubscriptionContext-BN1cInbb.js.map
|