@capgo/capacitor-sheets 8.0.4 → 8.0.5

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 +20 -0
  2. package/package.json +21 -1
package/README.md CHANGED
@@ -124,6 +124,26 @@ 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
+
131
+ ```bash
132
+ npm run build:mobile
133
+ npx cap run ios
134
+ npx cap run android
135
+ ```
136
+
137
+ Capgo OTA uploads use the same built gallery:
138
+
139
+ ```bash
140
+ npx @capgo/cli@latest app add app.capgo.capacitor.sheets --name "Capgo Sheets"
141
+ npm run deploy:capgo:dev
142
+ npm run deploy:capgo
143
+ ```
144
+
145
+ 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.
146
+
127
147
  ## Features
128
148
 
129
149
  - **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.4",
3
+ "version": "8.0.5",
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",
@@ -52,10 +52,21 @@
52
52
  "stackblitz-angular": "vite --config examples/angular-app/vite.config.ts --host 0.0.0.0",
53
53
  "stackblitz-svelte": "vite --config examples/svelte-app/vite.config.ts --host 0.0.0.0",
54
54
  "stackblitz-solid": "vite --config examples/solid-app/vite.config.ts --host 0.0.0.0",
55
+ "build:app": "vite --config examples/react-app/vite.config.ts build",
56
+ "build:mobile": "bun run build:app && bunx cap copy",
57
+ "sync": "bunx cap sync",
58
+ "sync:ios": "bunx cap sync ios",
59
+ "sync:android": "bunx cap sync android",
60
+ "ios": "bunx cap run ios",
61
+ "android": "bunx cap run android",
62
+ "capgo:app:add": "bunx @capgo/cli@latest app add app.capgo.capacitor.sheets --name \"Capgo Sheets\"",
63
+ "deploy:capgo": "bun run build:mobile && bunx @capgo/cli@latest bundle upload --channel production --delta",
64
+ "deploy:capgo:dev": "bun run build:mobile && bunx @capgo/cli@latest bundle upload --channel dev --delta",
55
65
  "render:demos": "bun scripts/render-demo-webps.ts",
56
66
  "typecheck": "tsc --noEmit",
57
67
  "verify": "bun run verify:web",
58
68
  "verify:web": "bun run build && bun run typecheck",
69
+ "verify:mobile": "bun run build:mobile",
59
70
  "lint": "bun run eslint && bun run prettier -- --check",
60
71
  "fmt": "bun run eslint -- --fix && bun run prettier -- --write",
61
72
  "eslint": "eslint .",
@@ -92,6 +103,15 @@
92
103
  "@angular/core": "^21.2.13",
93
104
  "@angular/platform-browser": "^21.2.13",
94
105
  "@angular/platform-browser-dynamic": "^21.2.13",
106
+ "@capacitor/android": "^8.3.4",
107
+ "@capacitor/cli": "^8.3.4",
108
+ "@capacitor/core": "^8.3.4",
109
+ "@capacitor/ios": "^8.3.4",
110
+ "@capacitor/keyboard": "^8.0.3",
111
+ "@capacitor/splash-screen": "^8.0.1",
112
+ "@capacitor/status-bar": "^8.0.2",
113
+ "@capgo/capacitor-updater": "^8.46.1",
114
+ "@capgo/cli": "^7.100.8",
95
115
  "@eslint/eslintrc": "^3.3.5",
96
116
  "@eslint/js": "^8.57.1",
97
117
  "@ionic/eslint-config": "^0.4.0",