@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexah/create-skin",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Scaffolder skórki Hexah (zdalny kontener Module Federation, harness dev z HMR).",
5
5
  "bin": {
6
6
  "create-hexah-skin": "index.js"
@@ -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
 
@@ -9,7 +9,7 @@
9
9
  "serve": "rspack serve"
10
10
  },
11
11
  "dependencies": {
12
- "@hexah/skin-sdk": "^0.2.0"
12
+ "@hexah/skin-sdk": "^0.11.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@module-federation/enhanced": "^0.9.0",
@@ -56,7 +56,7 @@ module.exports = {
56
56
  "@emotion/styled": singleton("^11"),
57
57
  "@mui/material": singleton("^7"),
58
58
  "@mui/material/styles": singleton("^7"),
59
- "@hexah/skin-sdk": singleton("^0.2"),
59
+ "@hexah/skin-sdk": singleton("^0.11"),
60
60
  },
61
61
  }),
62
62
  ],
@@ -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/Box";
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/Box";
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/Box";
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/Box";
11
- import Typography from "@mui/material/Typography";
10
+ import { Box, Typography } from "@mui/material";
12
11
  import {
13
12
  useCharacter,
14
13
  useShard,
@@ -11,7 +11,7 @@
11
11
  * (sekcja „Budowanie motywu — co masz do dyspozycji").
12
12
  */
13
13
  import { useEffect, useState } from "react";
14
- import Typography from "@mui/material/Typography";
14
+ import { Typography } from "@mui/material";
15
15
  import {
16
16
  useTales,
17
17
  useInn,
@@ -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/Box";
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. */