react-zeugma 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +6 -18
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -30,7 +30,7 @@ Combines the tree-based, arbitrary splitting of [react-mosaic](https://github.co
30
30
  ## Installation
31
31
 
32
32
  ```bash
33
- npm install react-zeugma @dnd-kit/core @dnd-kit/utilities @dnd-kit/sortable
33
+ npm install react-zeugma
34
34
  ```
35
35
 
36
36
  > **Peer dependencies:** React 18+ or 19+
@@ -119,24 +119,12 @@ export default function Dashboard() {
119
119
 
120
120
  ## Documentation
121
121
 
122
- 📖 **[Interactive Docs & Examples →](https://yusufarsln98.github.io/react-zeugma/)**
122
+ Run the interactive demo or Storybook locally:
123
123
 
124
- ### Hosting the live demo
125
-
126
- You do **not** need a personal site at `https://yusufarsln98.github.io/`. That URL only exists if you create a repo literally named `yusufarsln98.github.io`.
127
-
128
- This project uses a **project site** (one repo → one subpath):
129
-
130
- **https://yusufarsln98.github.io/react-zeugma/**
131
-
132
- CI pushes the built demo to the `gh-pages` branch. GitHub will not serve it until Pages is turned on once:
133
-
134
- 1. Open [Settings → Pages](https://github.com/yusufarsln98/react-zeugma/settings/pages)
135
- 2. **Build and deployment → Source:** **Deploy from a branch**
136
- 3. **Branch:** `gh-pages` / **`/ (root)`** → **Save**
137
- 4. Wait 1–2 minutes, then open the URL above
138
-
139
- If the workflow is green but the site is 404, Pages is almost always still disabled or pointed at the wrong branch.
124
+ ```bash
125
+ npm run demo # Vite demo app
126
+ npm run storybook # component docs & examples
127
+ ```
140
128
 
141
129
  ---
142
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-zeugma",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Recursive drag-and-drop dashboard layout engine for React — combining the tree-based splitting of react-mosaic with the declarative API of react-grid-layout.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,7 +28,7 @@
28
28
  "bugs": {
29
29
  "url": "https://github.com/yusufarsln98/react-zeugma/issues"
30
30
  },
31
- "homepage": "https://yusufarsln98.github.io/react-zeugma/",
31
+ "homepage": "https://github.com/yusufarsln98/react-zeugma#readme",
32
32
  "publishConfig": {
33
33
  "access": "public",
34
34
  "registry": "https://registry.npmjs.org/"
@@ -60,14 +60,15 @@
60
60
  "storybook": "storybook dev -p 6006",
61
61
  "build-storybook": "storybook build -o storybook-static",
62
62
  "prepare": "husky",
63
- "release": "changeset publish",
64
- "publish:npm": "sh -c 'set -a && [ -f .env ] && . ./.env; set +a; if [ -z \"${NPM_TOKEN:-}\" ]; then echo \"Error: NPM_TOKEN is not set. Add it to .env (see .env.example).\"; exit 1; fi; OTP_ARG=\"\"; [ -n \"${NPM_OTP:-}\" ] && OTP_ARG=\"--otp=${NPM_OTP}\"; npm publish --registry https://registry.npmjs.org/ --auth-type=legacy $OTP_ARG'"
63
+ "version": "changeset version",
64
+ "release": "npm run build && changeset publish"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "react": "^18.0.0 || ^19.0.0",
68
68
  "react-dom": "^18.0.0 || ^19.0.0"
69
69
  },
70
70
  "workspaces": [
71
+ ".",
71
72
  "demo"
72
73
  ],
73
74
  "dependencies": {