dh-remixer-sdk 0.0.32 → 0.0.33-18ecded
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/package.json
CHANGED
|
@@ -14,12 +14,18 @@
|
|
|
14
14
|
"@internationalized/date": "3.10.0",
|
|
15
15
|
"@openobserve/browser-logs": "0.3.1",
|
|
16
16
|
"@openobserve/browser-rum-slim": "0.3.1",
|
|
17
|
+
"@radix-ui/react-accordion": "1.2.14",
|
|
17
18
|
"@react-three/drei": "10.0.6",
|
|
18
19
|
"@react-three/fiber": "9.5.0",
|
|
19
20
|
"@react-three/postprocessing": "3.0.4",
|
|
20
21
|
"@supabase/supabase-js": "2.86.0",
|
|
22
|
+
"class-variance-authority": "0.7.1",
|
|
23
|
+
"clsx": "2.1.1",
|
|
21
24
|
"date-fns": "4.1.0",
|
|
22
25
|
"framer-motion": "12.23.24",
|
|
26
|
+
"gsap": "3.15.0",
|
|
27
|
+
"hls.js": "1.6.16",
|
|
28
|
+
"lenis": "1.3.25",
|
|
23
29
|
"lucide-react": "0.554.0",
|
|
24
30
|
"postprocessing": "6.37.0",
|
|
25
31
|
"react": "19.2.0",
|
|
@@ -27,6 +33,9 @@
|
|
|
27
33
|
"react-dom": "19.2.0",
|
|
28
34
|
"react-helmet-async": "3.0.0",
|
|
29
35
|
"react-router-dom": "7.9.6",
|
|
36
|
+
"recharts": "3.9.0",
|
|
37
|
+
"swiper": "14.0.1",
|
|
38
|
+
"tailwind-merge": "2.6.1",
|
|
30
39
|
"three": "0.171.0"
|
|
31
40
|
},
|
|
32
41
|
"devDependencies": {
|
|
@@ -35,6 +44,7 @@
|
|
|
35
44
|
"autoprefixer": "10.4.21",
|
|
36
45
|
"postcss": "8.5.3",
|
|
37
46
|
"tailwindcss": "3.4.17",
|
|
47
|
+
"tailwindcss-animate": "1.0.7",
|
|
38
48
|
"typescript": "5.8.3",
|
|
39
49
|
"vite": "6.4.1"
|
|
40
50
|
}
|
|
@@ -4,31 +4,12 @@ import tailwindcss from "tailwindcss";
|
|
|
4
4
|
import autoprefixer from "autoprefixer";
|
|
5
5
|
import tailwindConfig from "./tailwind.config.ts";
|
|
6
6
|
import path from "path";
|
|
7
|
-
import { execSync } from "node:child_process";
|
|
8
7
|
|
|
9
8
|
const PREVIEW_DOMAINS = [
|
|
10
9
|
'.remixer.ai',
|
|
11
10
|
'.dreamhosters.ai',
|
|
12
11
|
];
|
|
13
12
|
|
|
14
|
-
function ssgPostbuild(): Plugin {
|
|
15
|
-
let config;
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
name: "ssg-postbuild",
|
|
19
|
-
|
|
20
|
-
configResolved(resolvedConfig) {
|
|
21
|
-
config = resolvedConfig;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
writeBundle() {
|
|
25
|
-
execSync(`BUILD_DIR=${config.build.outDir} npx ssg-helmet`, {
|
|
26
|
-
stdio: "inherit",
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
13
|
function injectRemixerMetaTagPlugin(): Plugin {
|
|
33
14
|
return {
|
|
34
15
|
name: "vite-plugin-inject-remixer-meta-tag",
|
|
@@ -47,12 +28,13 @@ function injectRemixerBadgePlugin(): Plugin {
|
|
|
47
28
|
|
|
48
29
|
transformIndexHtml(html) {
|
|
49
30
|
try {
|
|
31
|
+
const IS_SHOW_REMIXER_BADGE = process.env.IS_SHOW_REMIXER_BADGE === 'true';
|
|
50
32
|
const REMIXER_BADGE_TYPE: string = process.env.REMIXER_BADGE_TYPE || 'DEFAULT';
|
|
51
33
|
|
|
52
34
|
const domain = process.env.NEXT_PUBLIC_DOMAIN || '';
|
|
53
35
|
const isPreviewService = PREVIEW_DOMAINS.some(pd => domain.endsWith(pd));
|
|
54
36
|
|
|
55
|
-
if (!isPreviewService) return html
|
|
37
|
+
if (!IS_SHOW_REMIXER_BADGE && !isPreviewService) return html
|
|
56
38
|
|
|
57
39
|
const DICTIONARY: Record<string, string> = {
|
|
58
40
|
UPGRADE_PLAN: 'https://unpkg.com/dh-remixer-badge@latest/dist/upgradeBadge.js',
|
|
@@ -202,7 +184,6 @@ export default defineConfig({
|
|
|
202
184
|
tailwindProdPlugin(),
|
|
203
185
|
react(),
|
|
204
186
|
injectRemixerMetaTagPlugin(),
|
|
205
|
-
// ssgPostbuild()
|
|
206
187
|
],
|
|
207
188
|
resolve: {
|
|
208
189
|
alias: {
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"stage.ts": "components/stage.ts",
|
|
3
|
-
"ImmersiveStory.tsx": "components/stage/ImmersiveStory.tsx",
|
|
4
|
-
"ScrollStory.tsx": "components/stage/ScrollStory.tsx",
|
|
5
|
-
"Stage3D.tsx": "components/stage/Stage3D.tsx",
|
|
6
|
-
"Anchor3D.tsx": "components/stage/internal/Anchor3D.tsx",
|
|
7
|
-
"Atmosphere.tsx": "components/stage/internal/Atmosphere.tsx",
|
|
8
|
-
"StageContext.ts": "components/stage/internal/StageContext.ts",
|
|
9
|
-
"anchors.tsx": "components/stage/internal/anchors.tsx",
|
|
10
|
-
"phases.ts": "components/stage/internal/phases.ts",
|
|
11
|
-
"safeCanvas.tsx": "components/stage/internal/safeCanvas.tsx",
|
|
12
|
-
"useAnchor.ts": "components/stage/internal/useAnchor.ts"
|
|
13
|
-
}
|
|
1
|
+
{}
|