@capgo/capacitor-sheets 8.0.4 → 8.0.6
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 +21 -0
- package/package.json +24 -1
package/README.md
CHANGED
|
@@ -124,6 +124,27 @@ Each framework example opens the same 16-usecase gallery, so StackBlitz is usefu
|
|
|
124
124
|
- [Svelte playground](https://stackblitz.com/github/Cap-go/capacitor-sheets?file=examples/svelte-app/src/App.svelte&startScript=stackblitz-svelte)
|
|
125
125
|
- [Solid playground](https://stackblitz.com/github/Cap-go/capacitor-sheets?file=examples/solid-app/src/main.tsx&startScript=stackblitz-solid)
|
|
126
126
|
|
|
127
|
+
## Mobile Test App
|
|
128
|
+
|
|
129
|
+
The repo includes a Capacitor app that wraps the React gallery so the sheets can be tested on real iOS and Android devices. The app id is `app.capgo.capacitor.sheets`.
|
|
130
|
+
Capacitor 8 requires Node.js 22 or newer for local mobile commands.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npm run build:mobile
|
|
134
|
+
npx cap run ios
|
|
135
|
+
npx cap run android
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Capgo OTA uploads use the same built gallery:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npx @capgo/cli@latest app add app.capgo.capacitor.sheets --name "Capgo Sheets"
|
|
142
|
+
npm run deploy:capgo:dev
|
|
143
|
+
npm run deploy:capgo
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Create the Capgo app once before the first upload. GitHub Actions also include a Capgo deploy workflow. Tag builds deploy to `production`, alpha tags deploy to `dev`, and manual runs can choose either channel. Set `CAPGO_TOKEN` in repository secrets before running it.
|
|
147
|
+
|
|
127
148
|
## Features
|
|
128
149
|
|
|
129
150
|
- **Framework agnostic** custom elements: no React runtime dependency in the core package.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-sheets",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.6",
|
|
4
4
|
"description": "Framework-agnostic swipeable sheets, drawers, dialogs, and scroll primitives for Capacitor apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
"dist",
|
|
42
42
|
"docs"
|
|
43
43
|
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=22.0.0"
|
|
46
|
+
},
|
|
44
47
|
"scripts": {
|
|
45
48
|
"build": "tsup",
|
|
46
49
|
"dev": "tsup --watch",
|
|
@@ -52,10 +55,21 @@
|
|
|
52
55
|
"stackblitz-angular": "vite --config examples/angular-app/vite.config.ts --host 0.0.0.0",
|
|
53
56
|
"stackblitz-svelte": "vite --config examples/svelte-app/vite.config.ts --host 0.0.0.0",
|
|
54
57
|
"stackblitz-solid": "vite --config examples/solid-app/vite.config.ts --host 0.0.0.0",
|
|
58
|
+
"build:app": "vite --config examples/react-app/vite.config.ts build",
|
|
59
|
+
"build:mobile": "bun run build:app && bunx cap copy",
|
|
60
|
+
"sync": "bunx cap sync",
|
|
61
|
+
"sync:ios": "bunx cap sync ios",
|
|
62
|
+
"sync:android": "bunx cap sync android",
|
|
63
|
+
"ios": "bunx cap run ios",
|
|
64
|
+
"android": "bunx cap run android",
|
|
65
|
+
"capgo:app:add": "bunx @capgo/cli@latest app add app.capgo.capacitor.sheets --name \"Capgo Sheets\"",
|
|
66
|
+
"deploy:capgo": "bun run build:mobile && bunx @capgo/cli@latest bundle upload --channel production --delta",
|
|
67
|
+
"deploy:capgo:dev": "bun run build:mobile && bunx @capgo/cli@latest bundle upload --channel dev --delta",
|
|
55
68
|
"render:demos": "bun scripts/render-demo-webps.ts",
|
|
56
69
|
"typecheck": "tsc --noEmit",
|
|
57
70
|
"verify": "bun run verify:web",
|
|
58
71
|
"verify:web": "bun run build && bun run typecheck",
|
|
72
|
+
"verify:mobile": "bun run build:mobile",
|
|
59
73
|
"lint": "bun run eslint && bun run prettier -- --check",
|
|
60
74
|
"fmt": "bun run eslint -- --fix && bun run prettier -- --write",
|
|
61
75
|
"eslint": "eslint .",
|
|
@@ -92,6 +106,15 @@
|
|
|
92
106
|
"@angular/core": "^21.2.13",
|
|
93
107
|
"@angular/platform-browser": "^21.2.13",
|
|
94
108
|
"@angular/platform-browser-dynamic": "^21.2.13",
|
|
109
|
+
"@capacitor/android": "^8.3.4",
|
|
110
|
+
"@capacitor/cli": "^8.3.4",
|
|
111
|
+
"@capacitor/core": "^8.3.4",
|
|
112
|
+
"@capacitor/ios": "^8.3.4",
|
|
113
|
+
"@capacitor/keyboard": "^8.0.3",
|
|
114
|
+
"@capacitor/splash-screen": "^8.0.1",
|
|
115
|
+
"@capacitor/status-bar": "^8.0.2",
|
|
116
|
+
"@capgo/capacitor-updater": "^8.46.1",
|
|
117
|
+
"@capgo/cli": "^7.100.8",
|
|
95
118
|
"@eslint/eslintrc": "^3.3.5",
|
|
96
119
|
"@eslint/js": "^8.57.1",
|
|
97
120
|
"@ionic/eslint-config": "^0.4.0",
|