@timpel/forumkit-sdk-web 0.2.2 → 0.2.3
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.
|
@@ -7531,6 +7531,7 @@ function NotificationSettingsModal({
|
|
|
7531
7531
|
|
|
7532
7532
|
// src/views/App.tsx
|
|
7533
7533
|
import { Fragment as Fragment20, jsx as jsx50, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7534
|
+
var FULLSCREEN_STYLE = { position: "fixed", inset: 0, zIndex: 2147483647 };
|
|
7534
7535
|
function Router() {
|
|
7535
7536
|
const {
|
|
7536
7537
|
state,
|
|
@@ -7597,10 +7598,10 @@ function Router() {
|
|
|
7597
7598
|
function SessionGate({ children }) {
|
|
7598
7599
|
const session = useSession();
|
|
7599
7600
|
if (session.status === "loading") {
|
|
7600
|
-
return /* @__PURE__ */ jsx50("div", { style:
|
|
7601
|
+
return /* @__PURE__ */ jsx50("div", { style: FULLSCREEN_STYLE });
|
|
7601
7602
|
}
|
|
7602
7603
|
if (session.status === "error") {
|
|
7603
|
-
return /* @__PURE__ */ jsxs44("div", { style:
|
|
7604
|
+
return /* @__PURE__ */ jsxs44("div", { style: FULLSCREEN_STYLE, children: [
|
|
7604
7605
|
"Failed to connect: ",
|
|
7605
7606
|
session.error
|
|
7606
7607
|
] });
|
|
@@ -7608,7 +7609,7 @@ function SessionGate({ children }) {
|
|
|
7608
7609
|
return /* @__PURE__ */ jsx50(Fragment20, { children });
|
|
7609
7610
|
}
|
|
7610
7611
|
function App({ config }) {
|
|
7611
|
-
return /* @__PURE__ */ jsx50(SessionProvider, { config, children: /* @__PURE__ */ jsx50(SessionGate, { children: /* @__PURE__ */ jsx50(ForumProvider, { children: /* @__PURE__ */ jsx50("div", { style:
|
|
7612
|
+
return /* @__PURE__ */ jsx50(SessionProvider, { config, children: /* @__PURE__ */ jsx50(SessionGate, { children: /* @__PURE__ */ jsx50(ForumProvider, { children: /* @__PURE__ */ jsx50("div", { style: FULLSCREEN_STYLE, children: /* @__PURE__ */ jsx50(Router, {}) }) }) }) });
|
|
7612
7613
|
}
|
|
7613
7614
|
|
|
7614
7615
|
// inline-css:/Users/timpel/Documents/Code/forumkit/packages/sdk-web/src/views/styles/all.css?inline
|
|
@@ -10834,4 +10835,4 @@ if (!customElements.get("forum-kit")) {
|
|
|
10834
10835
|
export {
|
|
10835
10836
|
ForumKitElement
|
|
10836
10837
|
};
|
|
10837
|
-
//# sourceMappingURL=chunk-
|
|
10838
|
+
//# sourceMappingURL=chunk-RR3K7HYI.js.map
|