@articles-media/articles-dev-box 1.1.5 → 1.1.6

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.
@@ -16,13 +16,14 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
16
16
  const { data: userDetails, error: userDetailsError, isLoading: userDetailsLoading, mutate: userDetailsMutate } = useUserDetails({ token: userToken });
17
17
  const darkMode = useStore((state) => state.darkMode);
18
18
  const lobbyDetails = useStore((state) => state.lobbyDetails);
19
+ const landingAnimation = useStore((state) => state.landingAnimation);
19
20
  return /* @__PURE__ */ jsxs("div", {
20
21
  className: "landing-page",
21
22
  children: [
22
- AdditionalContent,
23
+ AdditionalContent && AdditionalContent,
23
24
  /* @__PURE__ */ jsx("div", {
24
25
  className: "background-wrap",
25
- children: useStore((state) => state.landingAnimation) ? /* @__PURE__ */ jsx(LandingBackgroundAnimation, {}) : /* @__PURE__ */ jsx("img", {
26
+ children: LandingBackgroundAnimation && landingAnimation ? LandingBackgroundAnimation : /* @__PURE__ */ jsx("img", {
26
27
  src: backgroundImage,
27
28
  alt: "",
28
29
  width: "100%",
@@ -40,7 +41,7 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
40
41
  className: "",
41
42
  style: { "width": maxInnerWidth },
42
43
  children: [
43
- PreHeroContent,
44
+ PreHeroContent && PreHeroContent,
44
45
  !disableHero && /* @__PURE__ */ jsxs("div", {
45
46
  className: "landing-hero text-center mb-2",
46
47
  children: [/* @__PURE__ */ jsx("img", {
@@ -57,8 +58,8 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
57
58
  children: process.env.NEXT_PUBLIC_GAME_NAME
58
59
  })]
59
60
  }),
60
- PostHeroContent,
61
- CardOverride ? /* @__PURE__ */ jsx(Fragment, { children: CardOverride }) : /* @__PURE__ */ jsxs("div", {
61
+ PostHeroContent && PostHeroContent,
62
+ CardOverride ? CardOverride : /* @__PURE__ */ jsxs("div", {
62
63
  className: "card card-articles mb-3",
63
64
  children: [
64
65
  /* @__PURE__ */ jsx("div", {
@@ -68,7 +69,7 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
68
69
  config: NicknameInputConfig
69
70
  })
70
71
  }),
71
- CardBodyOverride ? /* @__PURE__ */ jsx(CardBodyOverride, {}) : /* @__PURE__ */ jsxs("div", {
72
+ CardBodyOverride ? CardBodyOverride : /* @__PURE__ */ jsxs("div", {
72
73
  className: "card-body",
73
74
  children: [singlePlayerConfig && /* @__PURE__ */ jsx(Link, {
74
75
  href: "/play",
@@ -154,7 +155,7 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
154
155
  })
155
156
  ]
156
157
  }),
157
- PostCardContent,
158
+ PostCardContent && PostCardContent,
158
159
  /* @__PURE__ */ jsxs("div", {
159
160
  className: "extras",
160
161
  children: [/* @__PURE__ */ jsx(SessionButton, {
@@ -162,7 +163,7 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
162
163
  friendsButton: true
163
164
  }), /* @__PURE__ */ jsx(ReturnToLauncherButton, {})]
164
165
  }),
165
- PostExtrasContent
166
+ PostExtrasContent && PostExtrasContent
166
167
  ]
167
168
  }),
168
169
  !disableGameScoreboard && /* @__PURE__ */ jsx(GameScoreboard, {
@@ -246,7 +246,7 @@ function OtherTab({ useStore, config }) {
246
246
  var package_default = {
247
247
  name: "@articles-media/articles-dev-box",
248
248
  description: "Shared code, functions, and components for different Articles Media projects.",
249
- version: "1.1.5",
249
+ version: "1.1.6",
250
250
  type: "module",
251
251
  sideEffects: false,
252
252
  imports: { "#root/src/*": "./src/*" },
@@ -1,2 +1,2 @@
1
- import { t as SettingsModal } from "./SettingsModal-DKvwredE.js";
1
+ import { t as SettingsModal } from "./SettingsModal-CZvPy5hf.js";
2
2
  export { SettingsModal as default };
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { t as GameScoreboard } from "./GameScoreboard-CYuTBE_E.js";
16
16
  import PageTemplateLandingPage from "./PageTemplateLandingPage.js";
17
17
  import GlobalHead from "./GlobalHead.js";
18
18
  import GlobalBody_default from "./GlobalBody.js";
19
- import { t as SettingsModal } from "./SettingsModal-DKvwredE.js";
19
+ import { t as SettingsModal } from "./SettingsModal-CZvPy5hf.js";
20
20
  import CreditsModal from "./CreditsModal.js";
21
21
  import InfoModal from "./InfoModal.js";
22
22
  import DarkModeHandler from "./DarkModeHandler.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@articles-media/articles-dev-box",
3
3
  "description": "Shared code, functions, and components for different Articles Media projects.",
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "imports": {