@series-inc/venus-sdk 3.0.6 → 3.1.1-beta.0
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/README.md +1 -1
- package/dist/{AdsApi-CIXV8I_p.d.mts → AdsApi-meVfUcZy.d.mts} +164 -355
- package/dist/{AdsApi-CIXV8I_p.d.ts → AdsApi-meVfUcZy.d.ts} +164 -355
- package/dist/chunk-2PDL7CQK.mjs +26 -0
- package/dist/chunk-2PDL7CQK.mjs.map +1 -0
- package/dist/{chunk-LBJFUHOH.mjs → chunk-EMVTVSGL.mjs} +1471 -737
- package/dist/chunk-EMVTVSGL.mjs.map +1 -0
- package/dist/chunk-IZLOB7DV.mjs +343 -0
- package/dist/chunk-IZLOB7DV.mjs.map +1 -0
- package/dist/{chunk-MWUS3A7C.mjs → chunk-QABXMFND.mjs} +3 -7
- package/dist/chunk-QABXMFND.mjs.map +1 -0
- package/dist/core-5JLON75E.mjs +4 -0
- package/dist/{core-RDMPQV6U.mjs.map → core-5JLON75E.mjs.map} +1 -1
- package/dist/index.cjs +1883 -778
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +113 -61
- package/dist/index.d.ts +113 -61
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/venus-api/index.cjs +1806 -748
- package/dist/venus-api/index.cjs.map +1 -1
- package/dist/venus-api/index.d.mts +2 -2
- package/dist/venus-api/index.d.ts +2 -2
- package/dist/venus-api/index.mjs +311 -3
- package/dist/venus-api/index.mjs.map +1 -1
- package/dist/vite/index.cjs +534 -0
- package/dist/vite/index.cjs.map +1 -0
- package/dist/vite/index.mjs +527 -0
- package/dist/vite/index.mjs.map +1 -0
- package/dist/webview/index.cjs +346 -0
- package/dist/webview/index.cjs.map +1 -0
- package/dist/webview/index.d.mts +17 -0
- package/dist/webview/index.d.ts +17 -0
- package/dist/webview/index.mjs +4 -0
- package/dist/webview/index.mjs.map +1 -0
- package/package.json +23 -3
- package/dist/chunk-LBJFUHOH.mjs.map +0 -1
- package/dist/chunk-MWUS3A7C.mjs.map +0 -1
- package/dist/core-RDMPQV6U.mjs +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VenusAPI$1 } from '../AdsApi-
|
|
2
|
-
export {
|
|
1
|
+
import { V as VenusAPI$1 } from '../AdsApi-meVfUcZy.mjs';
|
|
2
|
+
export { A as ActionSheetOption, B as BatchRecipeRequirementsResult, P as Profile, e as RecipeRequirementQuery, R as RecipeRequirementResult, g as VenusConfig, i as VenusRoom, h as VenusRoomsConfig, f as VenusSimulationAPI, d as VenusSimulationConfig, b as VenusSimulationEffect, c as VenusSimulationRecipe, a as VenusSimulationState } from '../AdsApi-meVfUcZy.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TypeScript definitions for venus-api
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VenusAPI$1 } from '../AdsApi-
|
|
2
|
-
export {
|
|
1
|
+
import { V as VenusAPI$1 } from '../AdsApi-meVfUcZy.js';
|
|
2
|
+
export { A as ActionSheetOption, B as BatchRecipeRequirementsResult, P as Profile, e as RecipeRequirementQuery, R as RecipeRequirementResult, g as VenusConfig, i as VenusRoom, h as VenusRoomsConfig, f as VenusSimulationAPI, d as VenusSimulationConfig, b as VenusSimulationEffect, c as VenusSimulationRecipe, a as VenusSimulationState } from '../AdsApi-meVfUcZy.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TypeScript definitions for venus-api
|
package/dist/venus-api/index.mjs
CHANGED
|
@@ -1,5 +1,189 @@
|
|
|
1
|
-
import { SDK_VERSION, createHost, initializeStorage, initializeRoomsApi, initializeAds, initializePopups, initializeAnalytics, initializeIap, initializeLeaderboard, initializeLocalNotifications, initializePreloader, initializeTime, initializeLifecycleApi, initializeHaptics, initializeCdn, initializeFeaturesApi, initializeLoggingApi, initializeProfile, initializeAvatar3d, initializeStackNavigation, initializePost, initializeAi, initializeSimulation, initializeSocial } from '../chunk-
|
|
2
|
-
import { createProxiedObject, createProxiedMethod } from '../chunk-
|
|
1
|
+
import { init_rooms, SDK_VERSION, createHost, initializeStorage, initializeRoomsApi, initializeAds, initializePopups, initializeAnalytics, initializeIap, initializeLeaderboard, initializeLocalNotifications, initializePreloader, initializeTime, initializeLifecycleApi, initializeHaptics, initializeCdn, initializeFeaturesApi, initializeLoggingApi, initializeProfile, initializeAvatar3d, initializeStackNavigation, initializePost, initializeAi, initializeSimulation, initializeSocial } from '../chunk-EMVTVSGL.mjs';
|
|
2
|
+
import { createProxiedObject, createProxiedMethod } from '../chunk-QABXMFND.mjs';
|
|
3
|
+
import '../chunk-2PDL7CQK.mjs';
|
|
4
|
+
|
|
5
|
+
// src/venus-api/systems/theme.js
|
|
6
|
+
var DEFAULT_TYPOGRAPHY = {
|
|
7
|
+
fontFamily: {
|
|
8
|
+
base: "Plus Jakarta Sans, Roboto, sans-serif",
|
|
9
|
+
heading: "Plus Jakarta Sans, Roboto, sans-serif",
|
|
10
|
+
mono: "monospace"
|
|
11
|
+
},
|
|
12
|
+
fontSize: {
|
|
13
|
+
"2xs": "10px",
|
|
14
|
+
xs: "12px",
|
|
15
|
+
sm: "14px",
|
|
16
|
+
md: "16px",
|
|
17
|
+
lg: "18px",
|
|
18
|
+
xl: "20px",
|
|
19
|
+
"2xl": "24px",
|
|
20
|
+
"3xl": "30px",
|
|
21
|
+
"4xl": "36px",
|
|
22
|
+
"5xl": "48px",
|
|
23
|
+
"6xl": "60px"
|
|
24
|
+
},
|
|
25
|
+
fontWeight: {
|
|
26
|
+
thin: "100",
|
|
27
|
+
extralight: "200",
|
|
28
|
+
light: "300",
|
|
29
|
+
regular: "400",
|
|
30
|
+
medium: "500",
|
|
31
|
+
semibold: "600",
|
|
32
|
+
bold: "700",
|
|
33
|
+
extrabold: "800",
|
|
34
|
+
black: "900",
|
|
35
|
+
extrablack: "950"
|
|
36
|
+
},
|
|
37
|
+
lineHeight: {
|
|
38
|
+
none: "1",
|
|
39
|
+
tight: "1.25",
|
|
40
|
+
snug: "1.375",
|
|
41
|
+
normal: "1.5",
|
|
42
|
+
relaxed: "1.625",
|
|
43
|
+
loose: "2"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var DEFAULT_THEME = {
|
|
47
|
+
background: {
|
|
48
|
+
default: "#131419",
|
|
49
|
+
// Dark background
|
|
50
|
+
muted: "#1b1d25",
|
|
51
|
+
// Mid-dark background
|
|
52
|
+
dark: "#0d0e11"
|
|
53
|
+
// Darker background
|
|
54
|
+
},
|
|
55
|
+
text: {
|
|
56
|
+
primary: "#ffffff",
|
|
57
|
+
// White
|
|
58
|
+
muted: "#808080",
|
|
59
|
+
// Gray
|
|
60
|
+
inverted: "#000000"
|
|
61
|
+
// Black
|
|
62
|
+
},
|
|
63
|
+
theme: {
|
|
64
|
+
primary: "#f6c833",
|
|
65
|
+
// Different yellow for testing (slightly lighter)
|
|
66
|
+
secondary: "#6366f1",
|
|
67
|
+
// Different secondary for testing (purple)
|
|
68
|
+
background: "#131419",
|
|
69
|
+
// Dark background
|
|
70
|
+
border: "#262626",
|
|
71
|
+
// Dark border
|
|
72
|
+
card: "#1b1d25",
|
|
73
|
+
// Dark card
|
|
74
|
+
"card-glass": "rgba(27, 29, 37, 0.8)"
|
|
75
|
+
// Translucent dark card
|
|
76
|
+
},
|
|
77
|
+
typography: DEFAULT_TYPOGRAPHY
|
|
78
|
+
};
|
|
79
|
+
function initializeTheme(venusApiInstance) {
|
|
80
|
+
if (!venusApiInstance._mock.theme) {
|
|
81
|
+
venusApiInstance._mock.theme = DEFAULT_THEME;
|
|
82
|
+
}
|
|
83
|
+
if (!venusApiInstance._mock.typography) {
|
|
84
|
+
venusApiInstance._mock.typography = DEFAULT_TYPOGRAPHY;
|
|
85
|
+
}
|
|
86
|
+
if (!venusApiInstance._mock.safeArea) {
|
|
87
|
+
venusApiInstance._mock.safeArea = { top: 0, bottom: 0, left: 0, right: 0 };
|
|
88
|
+
}
|
|
89
|
+
venusApiInstance.applyVenusThemeToCSS = function(theme) {
|
|
90
|
+
if (!theme) return;
|
|
91
|
+
const root = document.documentElement;
|
|
92
|
+
if (theme.background) {
|
|
93
|
+
if (theme.background.default)
|
|
94
|
+
root.style.setProperty("--color-background", theme.background.default);
|
|
95
|
+
if (theme.background.muted)
|
|
96
|
+
root.style.setProperty(
|
|
97
|
+
"--color-background-muted",
|
|
98
|
+
theme.background.muted
|
|
99
|
+
);
|
|
100
|
+
if (theme.background.dark)
|
|
101
|
+
root.style.setProperty(
|
|
102
|
+
"--color-background-dark",
|
|
103
|
+
theme.background.dark
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
if (theme.text) {
|
|
107
|
+
if (theme.text.primary)
|
|
108
|
+
root.style.setProperty("--color-text-primary", theme.text.primary);
|
|
109
|
+
if (theme.text.muted)
|
|
110
|
+
root.style.setProperty("--color-text-muted", theme.text.muted);
|
|
111
|
+
}
|
|
112
|
+
if (theme.theme) {
|
|
113
|
+
if (theme.theme.primary)
|
|
114
|
+
root.style.setProperty("--color-primary", theme.theme.primary);
|
|
115
|
+
if (theme.theme.secondary)
|
|
116
|
+
root.style.setProperty("--color-secondary", theme.theme.secondary);
|
|
117
|
+
if (theme.theme.border)
|
|
118
|
+
root.style.setProperty("--color-border", theme.theme.border);
|
|
119
|
+
}
|
|
120
|
+
if (theme.typography && theme.typography.fontFamily) {
|
|
121
|
+
if (theme.typography.fontFamily.base) {
|
|
122
|
+
root.style.setProperty(
|
|
123
|
+
"--font-family",
|
|
124
|
+
theme.typography.fontFamily.base
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
document.body.style.backgroundColor = root.style.getPropertyValue(
|
|
129
|
+
"--color-background-dark"
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
venusApiInstance.applyTheme = createProxiedMethod("applyTheme", function() {
|
|
133
|
+
let apiTheme = null;
|
|
134
|
+
apiTheme = this.config.theme;
|
|
135
|
+
if (apiTheme) {
|
|
136
|
+
this.applyVenusThemeToCSS(apiTheme);
|
|
137
|
+
this.colors = {
|
|
138
|
+
primary: apiTheme.theme?.primary || "#FF2877",
|
|
139
|
+
secondary: apiTheme.theme?.secondary || "#4755FF",
|
|
140
|
+
dark: apiTheme.background?.dark || "#0D0E11",
|
|
141
|
+
darkLight: apiTheme.background?.muted || "#1B1D25",
|
|
142
|
+
darkLighter: apiTheme.background?.default || "#23252F",
|
|
143
|
+
textPrimary: apiTheme.text?.primary || "#FFFFFF",
|
|
144
|
+
textMuted: apiTheme.text?.muted || "#808080",
|
|
145
|
+
border: apiTheme.theme?.border || "#262626"
|
|
146
|
+
};
|
|
147
|
+
} else {
|
|
148
|
+
this.colors = {
|
|
149
|
+
primary: "#FF2877",
|
|
150
|
+
secondary: "#4755FF",
|
|
151
|
+
dark: "#0D0E11",
|
|
152
|
+
darkLight: "#1B1D25",
|
|
153
|
+
darkLighter: "#23252F",
|
|
154
|
+
textPrimary: "#FFFFFF",
|
|
155
|
+
textMuted: "#808080",
|
|
156
|
+
border: "#262626"
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
this.log("Theme applied successfully");
|
|
160
|
+
});
|
|
161
|
+
venusApiInstance.applySafeArea = createProxiedMethod("applySafeArea", function() {
|
|
162
|
+
try {
|
|
163
|
+
const safeArea = this.config.ui.safeArea;
|
|
164
|
+
if (safeArea) {
|
|
165
|
+
this.log("Applying safe area insets: " + JSON.stringify(safeArea));
|
|
166
|
+
if (this.tapToStartScreen) {
|
|
167
|
+
this.tapToStartScreen.style.marginTop = `${safeArea.top}px`;
|
|
168
|
+
this.tapToStartScreen.style.marginBottom = `${safeArea.bottom}px`;
|
|
169
|
+
}
|
|
170
|
+
if (this.gameOverScreen) {
|
|
171
|
+
this.gameOverScreen.style.marginTop = `${safeArea.top}px`;
|
|
172
|
+
this.gameOverScreen.style.marginBottom = `${safeArea.bottom}px`;
|
|
173
|
+
}
|
|
174
|
+
if (this.maxScoreContainer) {
|
|
175
|
+
this.maxScoreContainer.style.marginTop = `${safeArea.top}px`;
|
|
176
|
+
this.maxScoreContainer.style.marginRight = `${safeArea.right}px`;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
} catch (error) {
|
|
180
|
+
this.error("Error applying safe area: " + error.message);
|
|
181
|
+
console.error("Error applying safe area:", error);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
venusApiInstance.DEFAULT_THEME = DEFAULT_THEME;
|
|
185
|
+
venusApiInstance.DEFAULT_TYPOGRAPHY = DEFAULT_TYPOGRAPHY;
|
|
186
|
+
}
|
|
3
187
|
|
|
4
188
|
// src/venus-api/systems/asset-loader.js
|
|
5
189
|
var VenusAssetLoader = class {
|
|
@@ -133,11 +317,14 @@ var VenusAssetLoader = class {
|
|
|
133
317
|
}, 1e4);
|
|
134
318
|
if (type === "image") {
|
|
135
319
|
const img = new Image();
|
|
320
|
+
console.log(`\u{1F5BC}\uFE0F [Asset Verification] Verifying image: ${url}`);
|
|
136
321
|
img.onload = () => {
|
|
322
|
+
console.log(`\u2705 [Asset Verification] Image verified successfully: ${url}`);
|
|
137
323
|
clearTimeout(timeout);
|
|
138
324
|
resolve();
|
|
139
325
|
};
|
|
140
326
|
img.onerror = (error) => {
|
|
327
|
+
console.log(`\u274C [Asset Verification] Image verification failed: ${url}`, error);
|
|
141
328
|
clearTimeout(timeout);
|
|
142
329
|
reject(new Error("Failed to load image"));
|
|
143
330
|
};
|
|
@@ -189,6 +376,7 @@ var VenusAssetLoader = class {
|
|
|
189
376
|
const CDN_BASE_URL = "https://venus-static-01293ak.web.app/";
|
|
190
377
|
const cleanUrl = url.startsWith("/") ? url.slice(1) : url;
|
|
191
378
|
const fullUrl = CDN_BASE_URL + cleanUrl;
|
|
379
|
+
console.log(`\u{1F310} [Asset Loader] Force remote CDN: ${url} -> ${fullUrl}`);
|
|
192
380
|
return fullUrl;
|
|
193
381
|
}
|
|
194
382
|
if (this.venusAPI && this.venusAPI.isMock && this.venusAPI.isMock()) {
|
|
@@ -1747,7 +1935,7 @@ function createNumbersAPI() {
|
|
|
1747
1935
|
return numbersAPI;
|
|
1748
1936
|
}
|
|
1749
1937
|
async function initializeNumbers(venusApiInstance) {
|
|
1750
|
-
const { createProxiedObject: createProxiedObject2, createProxiedMethod: createProxiedMethod2 } = await import('../core-
|
|
1938
|
+
const { createProxiedObject: createProxiedObject2, createProxiedMethod: createProxiedMethod2 } = await import('../core-5JLON75E.mjs');
|
|
1751
1939
|
const numbersAPI = createNumbersAPI();
|
|
1752
1940
|
venusApiInstance.numbers = createProxiedObject2.call(
|
|
1753
1941
|
venusApiInstance,
|
|
@@ -1769,6 +1957,7 @@ async function initializeNumbers(venusApiInstance) {
|
|
|
1769
1957
|
}
|
|
1770
1958
|
|
|
1771
1959
|
// src/venus-api/index.js
|
|
1960
|
+
init_rooms();
|
|
1772
1961
|
var HapticStyle = {
|
|
1773
1962
|
LIGHT: "light",
|
|
1774
1963
|
MEDIUM: "medium",
|
|
@@ -1819,6 +2008,67 @@ var VenusAPI2 = class {
|
|
|
1819
2008
|
height: 60
|
|
1820
2009
|
}
|
|
1821
2010
|
},
|
|
2011
|
+
// Complete theme structure (matching createH5Theme output)
|
|
2012
|
+
theme: {
|
|
2013
|
+
background: {
|
|
2014
|
+
default: "#131419",
|
|
2015
|
+
muted: "#1b1d25",
|
|
2016
|
+
dark: "#0d0e11"
|
|
2017
|
+
},
|
|
2018
|
+
text: {
|
|
2019
|
+
primary: "#ffffff",
|
|
2020
|
+
muted: "#808080",
|
|
2021
|
+
inverted: "#000000"
|
|
2022
|
+
},
|
|
2023
|
+
theme: {
|
|
2024
|
+
primary: "#f6c833",
|
|
2025
|
+
secondary: "#6366f1",
|
|
2026
|
+
background: "#131419",
|
|
2027
|
+
border: "#262626",
|
|
2028
|
+
card: "#1b1d25",
|
|
2029
|
+
"card-glass": "rgba(27, 29, 37, 0.8)"
|
|
2030
|
+
},
|
|
2031
|
+
typography: {
|
|
2032
|
+
fontFamily: {
|
|
2033
|
+
base: "Plus Jakarta Sans, Roboto, sans-serif",
|
|
2034
|
+
heading: "Plus Jakarta Sans, Roboto, sans-serif",
|
|
2035
|
+
mono: "monospace"
|
|
2036
|
+
},
|
|
2037
|
+
fontSize: {
|
|
2038
|
+
"2xs": "10px",
|
|
2039
|
+
xs: "12px",
|
|
2040
|
+
sm: "14px",
|
|
2041
|
+
md: "16px",
|
|
2042
|
+
lg: "18px",
|
|
2043
|
+
xl: "20px",
|
|
2044
|
+
"2xl": "24px",
|
|
2045
|
+
"3xl": "30px",
|
|
2046
|
+
"4xl": "36px",
|
|
2047
|
+
"5xl": "48px",
|
|
2048
|
+
"6xl": "60px"
|
|
2049
|
+
},
|
|
2050
|
+
fontWeight: {
|
|
2051
|
+
thin: "100",
|
|
2052
|
+
extralight: "200",
|
|
2053
|
+
light: "300",
|
|
2054
|
+
regular: "400",
|
|
2055
|
+
medium: "500",
|
|
2056
|
+
semibold: "600",
|
|
2057
|
+
bold: "700",
|
|
2058
|
+
extrabold: "800",
|
|
2059
|
+
black: "900",
|
|
2060
|
+
extrablack: "950"
|
|
2061
|
+
},
|
|
2062
|
+
lineHeight: {
|
|
2063
|
+
none: "1",
|
|
2064
|
+
tight: "1.25",
|
|
2065
|
+
snug: "1.375",
|
|
2066
|
+
normal: "1.5",
|
|
2067
|
+
relaxed: "1.625",
|
|
2068
|
+
loose: "2"
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
1822
2072
|
// Static locale data at top level
|
|
1823
2073
|
locale: "en-US",
|
|
1824
2074
|
languageCode: "en",
|
|
@@ -1949,6 +2199,58 @@ var VenusAPI2 = class {
|
|
|
1949
2199
|
deviceType: "phone",
|
|
1950
2200
|
hapticsEnabled: false,
|
|
1951
2201
|
haptics: { supported: false, enabled: false }
|
|
2202
|
+
},
|
|
2203
|
+
theme: {
|
|
2204
|
+
background: { default: "#131419", muted: "#1b1d25", dark: "#0d0e11" },
|
|
2205
|
+
text: { primary: "#ffffff", muted: "#808080", inverted: "#000000" },
|
|
2206
|
+
theme: {
|
|
2207
|
+
primary: "#f6c833",
|
|
2208
|
+
secondary: "#6366f1",
|
|
2209
|
+
background: "#131419",
|
|
2210
|
+
border: "#262626",
|
|
2211
|
+
card: "#1b1d25",
|
|
2212
|
+
"card-glass": "rgba(27, 29, 37, 0.8)"
|
|
2213
|
+
},
|
|
2214
|
+
typography: {
|
|
2215
|
+
fontFamily: {
|
|
2216
|
+
base: "Plus Jakarta Sans, Roboto, sans-serif",
|
|
2217
|
+
heading: "Plus Jakarta Sans, Roboto, sans-serif",
|
|
2218
|
+
mono: "monospace"
|
|
2219
|
+
},
|
|
2220
|
+
fontSize: {
|
|
2221
|
+
"2xs": "10px",
|
|
2222
|
+
xs: "12px",
|
|
2223
|
+
sm: "14px",
|
|
2224
|
+
md: "16px",
|
|
2225
|
+
lg: "18px",
|
|
2226
|
+
xl: "20px",
|
|
2227
|
+
"2xl": "24px",
|
|
2228
|
+
"3xl": "30px",
|
|
2229
|
+
"4xl": "36px",
|
|
2230
|
+
"5xl": "48px",
|
|
2231
|
+
"6xl": "60px"
|
|
2232
|
+
},
|
|
2233
|
+
fontWeight: {
|
|
2234
|
+
thin: "100",
|
|
2235
|
+
extralight: "200",
|
|
2236
|
+
light: "300",
|
|
2237
|
+
regular: "400",
|
|
2238
|
+
medium: "500",
|
|
2239
|
+
semibold: "600",
|
|
2240
|
+
bold: "700",
|
|
2241
|
+
extrabold: "800",
|
|
2242
|
+
black: "900",
|
|
2243
|
+
extrablack: "950"
|
|
2244
|
+
},
|
|
2245
|
+
lineHeight: {
|
|
2246
|
+
none: "1",
|
|
2247
|
+
tight: "1.25",
|
|
2248
|
+
snug: "1.375",
|
|
2249
|
+
normal: "1.5",
|
|
2250
|
+
relaxed: "1.625",
|
|
2251
|
+
loose: "2"
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
1952
2254
|
}
|
|
1953
2255
|
});
|
|
1954
2256
|
const originalConfig = this.config;
|
|
@@ -1977,6 +2279,7 @@ var VenusAPI2 = class {
|
|
|
1977
2279
|
initializeStorage(this, host);
|
|
1978
2280
|
initializeRoomsApi(this, host);
|
|
1979
2281
|
initializeAds(this, host);
|
|
2282
|
+
initializeTheme(this);
|
|
1980
2283
|
initializePopups(this, host);
|
|
1981
2284
|
initializeAnalytics(this, host);
|
|
1982
2285
|
initializeIap(this, host);
|
|
@@ -2058,9 +2361,13 @@ var VenusAPI2 = class {
|
|
|
2058
2361
|
// BOOTSTRAP METHODS
|
|
2059
2362
|
//---------------------------------------
|
|
2060
2363
|
_detectHostedEnvironment() {
|
|
2364
|
+
console.log("[Venus SDK] Detecting host environment...");
|
|
2061
2365
|
const isInIframe = window.self !== window.top;
|
|
2062
2366
|
const hasReactNativeWebView = typeof window.ReactNativeWebView !== "undefined";
|
|
2063
2367
|
this._bootstrap.isInsideHostedEnvironment = isInIframe || hasReactNativeWebView;
|
|
2368
|
+
console.log(
|
|
2369
|
+
`[Venus SDK] isInIframe: ${isInIframe}, hasReactNativeWebView: ${hasReactNativeWebView}`
|
|
2370
|
+
);
|
|
2064
2371
|
}
|
|
2065
2372
|
isMobile() {
|
|
2066
2373
|
return typeof window.ReactNativeWebView !== "undefined";
|
|
@@ -2115,6 +2422,7 @@ instance.isAvailable = function() {
|
|
|
2115
2422
|
(async () => {
|
|
2116
2423
|
try {
|
|
2117
2424
|
await initializeNumbers(instance);
|
|
2425
|
+
console.log("[Venus SDK] Numbers system initialized");
|
|
2118
2426
|
} catch (error) {
|
|
2119
2427
|
console.error("[Venus SDK] Failed to initialize numbers system:", error);
|
|
2120
2428
|
}
|