@hexah/create-skin 0.1.6 → 0.1.7
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 +3 -1
- package/package.json +1 -1
- package/template/AGENTS.md +4 -1
- package/template/_package.json +1 -1
- package/template/rspack.config.js +1 -1
- package/template/src/ArticleScreen.jsx +1 -2
- package/template/src/GptListScreen.jsx +1 -2
- package/template/src/ReportScreen.jsx +1 -2
- package/template/src/SkinFrame.jsx +1 -2
- package/template/src/examples/dataHooks.jsx +1 -1
- package/template/src/examples/slots.jsx +1 -2
package/README.md
CHANGED
|
@@ -112,7 +112,9 @@ reports.list({ page: 1, pageSize: 10, callback: (ret) => {
|
|
|
112
112
|
`PageBox` (kontener strony, pełna wysokość) · `HexahCharacterSection` · `AngularPanel` ·
|
|
113
113
|
`StandardButton` (tekst ≤ 16 znaków) · `RoundAvatar` · `DataList` (lista wierszy z opisem/akcją) ·
|
|
114
114
|
`HexahChip` · `HexahPagination` + `HexahPaginationItem`. Poza nimi używaj zwykłego `@mui/material`
|
|
115
|
-
(`Box`, `Typography`, …) — to też instancja hosta.
|
|
115
|
+
(`Box`, `Typography`, …) — to też instancja hosta. **Importuj z barrela**
|
|
116
|
+
(`import { Box, Typography } from '@mui/material'`), **nie z subpath** (`@mui/material/Box`) — host
|
|
117
|
+
współdzieli jako singleton tylko barrel, więc subpath nie zbuduje się w skórce.
|
|
116
118
|
|
|
117
119
|
### Sloty (host renderuje, skórka rozmieszcza)
|
|
118
120
|
|
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -43,7 +43,10 @@ komponenty wewnątrz gry. Budujesz **wyłącznie** na publicznym kontrakcie `@he
|
|
|
43
43
|
`useGamePageShell({ title })`.
|
|
44
44
|
- **Prymitywy UI**: `PageBox`, `HexahCharacterSection`, `AngularPanel`, `StandardButton`
|
|
45
45
|
(tekst ≤ 16 znaków), `RoundAvatar`, `DataList`, `HexahChip`, `HexahPagination`,
|
|
46
|
-
`HexahPaginationItem`. Poza nimi zwykłe `@mui/material
|
|
46
|
+
`HexahPaginationItem`. Poza nimi zwykłe `@mui/material` — **importuj z barrela**
|
|
47
|
+
(`import { Box, Typography } from '@mui/material'`), **nie z subpath** (`@mui/material/Box`):
|
|
48
|
+
host współdzieli jako singleton tylko barrel `@mui/material`, więc subpath się nie zbuduje
|
|
49
|
+
(„Module not found").
|
|
47
50
|
- **Sloty**: `useSlots()` + `SLOT_KEYS` (`WORLD_MAP`, `ISSUE_STATS`, …).
|
|
48
51
|
- **Stałe**: `SCREEN_KEYS`, `SLOT_KEYS`, `DEFAULT_TEMPLATE`, `SKIN_API_VERSION`.
|
|
49
52
|
|
package/template/_package.json
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* metoda dostaje obiekt opcji z `callback`, reszta pól leci do hosta jako `data`.
|
|
8
8
|
*/
|
|
9
9
|
import { useEffect, useMemo, useState } from "react";
|
|
10
|
-
import Box from "@mui/material
|
|
11
|
-
import Typography from "@mui/material/Typography";
|
|
10
|
+
import { Box, Typography } from "@mui/material";
|
|
12
11
|
import {
|
|
13
12
|
PageBox,
|
|
14
13
|
DataList,
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* (modal hosta) oraz prymityw `StandardButton` (tekst ≤ 16 znaków).
|
|
7
7
|
*/
|
|
8
8
|
import { useEffect, useMemo, useState } from "react";
|
|
9
|
-
import Box from "@mui/material
|
|
10
|
-
import Typography from "@mui/material/Typography";
|
|
9
|
+
import { Box, Typography } from "@mui/material";
|
|
11
10
|
import {
|
|
12
11
|
PageBox,
|
|
13
12
|
DataList,
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* (`PageBox`, `DataList`, `HexahChip`) dostarcza host; tu masz tylko ich kontrakt.
|
|
7
7
|
*/
|
|
8
8
|
import { useEffect, useMemo, useState } from "react";
|
|
9
|
-
import Box from "@mui/material
|
|
10
|
-
import Typography from "@mui/material/Typography";
|
|
9
|
+
import { Box, Typography } from "@mui/material";
|
|
11
10
|
import {
|
|
12
11
|
PageBox,
|
|
13
12
|
DataList,
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* Importuj WYŁĄCZNIE z `@hexah/skin-sdk` (+ React/MUI). Nawigacja to zwykłe linki do tras
|
|
8
8
|
* `/game/*` (publiczne adresy) — nie masz dostępu do wewnętrznego routingu gry.
|
|
9
9
|
*/
|
|
10
|
-
import Box from "@mui/material
|
|
11
|
-
import Typography from "@mui/material/Typography";
|
|
10
|
+
import { Box, Typography } from "@mui/material";
|
|
12
11
|
import {
|
|
13
12
|
useCharacter,
|
|
14
13
|
useShard,
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Zawsze degraduj łagodnie: gdy host nie dostarcza danego slotu, `slots[KLUCZ]` jest `undefined`.
|
|
7
7
|
*/
|
|
8
|
-
import Box from "@mui/material
|
|
9
|
-
import Typography from "@mui/material/Typography";
|
|
8
|
+
import { Box, Typography } from "@mui/material";
|
|
10
9
|
import { useSlots, SLOT_KEYS } from "@hexah/skin-sdk";
|
|
11
10
|
|
|
12
11
|
/** Mapa Sektora (mapa świata + ruiny) wstawiona we własny kontener skórki. */
|