Skip to content

Commit fbfb54d

Browse files
committed
feat(packages): introduce @dugyu/luna-stage-preview
Extract the stage visualization system (Mockup, Choreography, LunaLynxStage, Studio) from apps/studio into a standalone reusable package. apps/studio is now a thin consumer of it.
1 parent 4e65eb3 commit fbfb54d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+752
-710
lines changed

.cspell/misc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ elif
88
esac
99
startswith
1010
tostring
11+
tsgo

apps/studio/package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@
1414
"dependencies": {
1515
"@dugyu/luna-catalog": "workspace:*",
1616
"@dugyu/luna-core": "workspace:*",
17-
"@headlessui/react": "^2.2.7",
18-
"@headlessui/tailwindcss": "^0.2.2",
17+
"@dugyu/luna-stage-preview": "workspace:*",
1918
"@lynx-js/web-core": "catalog:lynx",
2019
"@lynx-js/web-elements": "catalog:lynx",
21-
"clsx": "catalog:utils",
22-
"lucide-react": "^0.546.0",
23-
"motion": "^12.23.21",
2420
"react": "catalog:react18",
25-
"react-dom": "catalog:react18",
26-
"tailwind-merge": "catalog:tailwind"
21+
"react-dom": "catalog:react18"
2722
},
2823
"devDependencies": {
24+
"@headlessui/tailwindcss": "^0.2.2",
2925
"@rsbuild/core": "catalog:rsbuild",
3026
"@rsbuild/plugin-react": "catalog:rsbuild",
3127
"@types/react": "catalog:react18",

apps/studio/src/App.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@
22
// Licensed under the Apache License Version 2.0 that can be found in the
33
// LICENSE file in the root directory of this source tree.
44

5+
// Lynx web element registration (side effects — must be imported by the app)
6+
import '@lynx-js/web-core/index.css';
7+
import '@lynx-js/web-elements/index.css';
8+
import '@lynx-js/web-core';
9+
import '@lynx-js/web-elements/all';
10+
511
import './App.css';
6-
import { Studio } from '@/components/studio';
7-
import { RECORD_MODE } from '@/constants/presentation.ts';
8-
import { cn } from '@/utils';
12+
13+
import { Studio, cn } from '@dugyu/luna-stage-preview';
14+
15+
import { RECORD_MODE } from './constants/presentation.ts';
916

1017
function App() {
1118
return (
@@ -32,7 +39,7 @@ function App() {
3239
RECORD_MODE ? 'h-full' : ' h-3/4',
3340
)}
3441
>
35-
<Studio />
42+
<Studio recordMode={RECORD_MODE} />
3643
</div>
3744
</div>
3845
</div>

apps/studio/src/components/choreography/archive/choreography-simple.tsx

Lines changed: 0 additions & 67 deletions
This file was deleted.

apps/studio/src/components/choreography/archive/compare-view.tsx

Lines changed: 0 additions & 100 deletions
This file was deleted.

apps/studio/src/components/choreography/archive/focus-view-test.tsx

Lines changed: 0 additions & 89 deletions
This file was deleted.

apps/studio/src/components/choreography/archive/focus-view.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)