@articles-media/articles-dev-box 1.1.4 → 1.1.5
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/{GameMenu-DeFdYvvR.js → GameMenu-BSfKeM4b.js} +5 -0
- package/dist/GameMenu.js +1 -1
- package/dist/PageTemplateLandingPage.js +3 -3
- package/dist/{SettingsModal-DP-hFQ5A.js → SettingsModal-DKvwredE.js} +7 -3
- package/dist/SettingsModal.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -131,6 +131,11 @@ function GameMenu(props) {
|
|
|
131
131
|
zIndex: 1,
|
|
132
132
|
height: "calc(100vh - 1rem)",
|
|
133
133
|
backgroundColor: "color-mix(in srgb, var(--bs-card-bg) 50%, transparent)"
|
|
134
|
+
},
|
|
135
|
+
...sidebarConfig.centerContent && {
|
|
136
|
+
top: "50%",
|
|
137
|
+
transform: "translateY(-50%)",
|
|
138
|
+
height: "fit-content"
|
|
134
139
|
}
|
|
135
140
|
},
|
|
136
141
|
children: /* @__PURE__ */ jsx(LeftPanelContent, {})
|
package/dist/GameMenu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as GameMenu } from "./GameMenu-
|
|
1
|
+
import { t as GameMenu } from "./GameMenu-BSfKeM4b.js";
|
|
2
2
|
export { GameMenu as default };
|
|
@@ -11,7 +11,7 @@ var SessionButton = lazy(() => import("./SessionButton.js"));
|
|
|
11
11
|
var ReturnToLauncherButton = lazy(() => import("./ReturnToLauncherButton.js"));
|
|
12
12
|
var GameScoreboard = lazy(() => import("./GameScoreboard.js"));
|
|
13
13
|
var Ad = lazy(() => import("./Ad.js"));
|
|
14
|
-
function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Link, logoImage, backgroundImage, CardBodyOverride, singlePlayerConfig, multiplayerConfig, brandingTextClass, disableHero, disableAd, disableGameScoreboard, maxInnerWidth = "20rem", AdditionalContent = null, PostCardContent = null, PostExtrasContent = null, PreHeroContent = null, PostHeroContent = null, NicknameInputConfig = null }) {
|
|
14
|
+
function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Link, logoImage, backgroundImage, CardBodyOverride, singlePlayerConfig, multiplayerConfig, brandingTextClass, disableHero, disableAd, disableGameScoreboard, maxInnerWidth = "20rem", AdditionalContent = null, PostCardContent = null, PostExtrasContent = null, PreHeroContent = null, PostHeroContent = null, NicknameInputConfig = null, CardOverride = null, LandingBackgroundAnimation = null }) {
|
|
15
15
|
const { data: userToken, error: userTokenError, isLoading: userTokenLoading, mutate: userTokenMutate } = useUserToken(process.env.NEXT_PUBLIC_GAME_PORT);
|
|
16
16
|
const { data: userDetails, error: userDetailsError, isLoading: userDetailsLoading, mutate: userDetailsMutate } = useUserDetails({ token: userToken });
|
|
17
17
|
const darkMode = useStore((state) => state.darkMode);
|
|
@@ -22,7 +22,7 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
|
|
|
22
22
|
AdditionalContent,
|
|
23
23
|
/* @__PURE__ */ jsx("div", {
|
|
24
24
|
className: "background-wrap",
|
|
25
|
-
children: /* @__PURE__ */ jsx("img", {
|
|
25
|
+
children: useStore((state) => state.landingAnimation) ? /* @__PURE__ */ jsx(LandingBackgroundAnimation, {}) : /* @__PURE__ */ jsx("img", {
|
|
26
26
|
src: backgroundImage,
|
|
27
27
|
alt: "",
|
|
28
28
|
width: "100%",
|
|
@@ -58,7 +58,7 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
|
|
|
58
58
|
})]
|
|
59
59
|
}),
|
|
60
60
|
PostHeroContent,
|
|
61
|
-
/* @__PURE__ */ jsxs("div", {
|
|
61
|
+
CardOverride ? /* @__PURE__ */ jsx(Fragment, { children: CardOverride }) : /* @__PURE__ */ jsxs("div", {
|
|
62
62
|
className: "card card-articles mb-3",
|
|
63
63
|
children: [
|
|
64
64
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -94,8 +94,12 @@ function AudioTab({ useAudioStore, config }) {
|
|
|
94
94
|
children: [/* @__PURE__ */ jsxs(Form.Label, {
|
|
95
95
|
className: "mb-0",
|
|
96
96
|
children: [/* @__PURE__ */ jsx("span", { children: slider_obj.label }), audioSettings?.[slider_obj.key] && /* @__PURE__ */ jsxs("span", {
|
|
97
|
-
className: "ms-2
|
|
98
|
-
children: [
|
|
97
|
+
className: "ms-2",
|
|
98
|
+
children: [
|
|
99
|
+
"- ",
|
|
100
|
+
audioSettings[slider_obj.key],
|
|
101
|
+
"%"
|
|
102
|
+
]
|
|
99
103
|
})]
|
|
100
104
|
}), /* @__PURE__ */ jsx(Form.Range, {
|
|
101
105
|
value: audioSettings?.[slider_obj.key],
|
|
@@ -242,7 +246,7 @@ function OtherTab({ useStore, config }) {
|
|
|
242
246
|
var package_default = {
|
|
243
247
|
name: "@articles-media/articles-dev-box",
|
|
244
248
|
description: "Shared code, functions, and components for different Articles Media projects.",
|
|
245
|
-
version: "1.1.
|
|
249
|
+
version: "1.1.5",
|
|
246
250
|
type: "module",
|
|
247
251
|
sideEffects: false,
|
|
248
252
|
imports: { "#root/src/*": "./src/*" },
|
package/dist/SettingsModal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SettingsModal } from "./SettingsModal-
|
|
1
|
+
import { t as SettingsModal } from "./SettingsModal-DKvwredE.js";
|
|
2
2
|
export { SettingsModal as default };
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import useUserFriends from "./useUserFriends.js";
|
|
|
8
8
|
import FriendsList from "./FriendsList.js";
|
|
9
9
|
import { t as SessionButton } from "./SessionButton-DsXEzmff.js";
|
|
10
10
|
import ArticlesAd from "./ArticlesAd.js";
|
|
11
|
-
import { t as GameMenu } from "./GameMenu-
|
|
11
|
+
import { t as GameMenu } from "./GameMenu-BSfKeM4b.js";
|
|
12
12
|
import useFullscreen from "./useFullscreen.js";
|
|
13
13
|
import PrimaryButtonGroup from "./GameMenuPrimaryButtonGroup.js";
|
|
14
14
|
import NicknameInput from "./NicknameInput.js";
|
|
@@ -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-
|
|
19
|
+
import { t as SettingsModal } from "./SettingsModal-DKvwredE.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