Compare commits

..
98 Commits
Author SHA1 Message Date
GitHub Actions 61c26874df chore: bump version to 4.11.234 [skip ci] 2026-11-02 22:16:29 +00:00
litruv 6d7a217eb7 Raise ContainerColor's specificity so the theme text color beats folds' DefaultReset in any stylesheet order.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m22s
2026-11-03 09:16:21 +11:00
GitHub Actions c216dcc5a1 chore: bump version to 4.11.233 [skip ci] 2026-11-02 16:43:56 +00:00
litruv 1e22cf3df5 Add the Tauri plugin packages the mobile overlay imports.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m31s
CI run 916 failed on the unresolved @tauri-apps/plugin-updater import, so the Android build could not resolve the plugin packages the overlay imports. No issue for this work.
2026-11-03 03:43:46 +11:00
GitHub Actions a0c1801460 chore: bump version to 4.11.232 [skip ci] 2026-11-02 16:05:20 +00:00
GitHub Actions 17ce9422ae Bump cinny: Turn off the prism index-key rule and drop the stale directives.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 1m22s
2026-11-02 15:58:17 +00:00
GitHub Actions 80401dad36 chore: bump version to 4.11.231 [skip ci] 2026-11-02 15:37:59 +00:00
GitHub Actions cfc4a805a4 Bump cinny: Merge the mutually recursive CSS scope helpers. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-02 15:37:52 +00:00
GitHub Actions 312843246a chore: bump version to 4.11.230 [skip ci] 2026-11-02 15:18:43 +00:00
GitHub Actions 6c7f8fb743 Bump cinny: Drop the key conflict handler and the crypto store prefix. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-02 15:18:38 +00:00
GitHub Actions f2b0e6ea74 chore: bump version to 4.11.229 [skip ci] 2026-11-02 14:16:43 +00:00
GitHub Actions ffa2b6a06d Bump cinny: Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-02 14:16:37 +00:00
GitHub Actions d2b39efb4b chore: bump version to 4.11.228 [skip ci] 2026-11-01 18:29:36 +00:00
GitHub Actions 9f3f714077 Bump cinny: Use EventType at the space create sites and augment the room kind key. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 18:29:30 +00:00
GitHub Actions 5d560e6092 chore: bump version to 4.11.227 [skip ci] 2026-11-01 18:17:23 +00:00
GitHub Actions ea50f64021 Bump cinny: Augment the custom event types and make the dep arrays honest. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 18:17:16 +00:00
GitHub Actions 6b0af26855 chore: bump version to 4.11.226 [skip ci] 2026-11-01 17:26:43 +00:00
GitHub Actions 0662e26630 Bump cinny: Fix the reaction content type and the fixable lint sites. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 17:26:38 +00:00
GitHub Actions 004ad26a2c chore: bump version to 4.11.225 [skip ci] 2026-11-01 17:00:49 +00:00
GitHub Actions aaca0d55f3 Bump cinny: Type the crypto, settings, and component any sites. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 17:00:44 +00:00
GitHub Actions bdfad5d747 chore: bump version to 4.11.224 [skip ci] 2026-11-01 15:26:49 +00:00
GitHub Actions 89ae584526 Bump cinny: Type the paarrot api, WebKit globals, and plugin command content. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 15:26:42 +00:00
GitHub Actions 4c2d9fe71d chore: bump version to 4.11.223 [skip ci] 2026-11-01 14:50:42 +00:00
GitHub Actions 1c2b2cdd43 Bump cinny: Type the window and power-level casts. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 14:50:35 +00:00
GitHub Actions 665a544e67 chore: bump version to 4.11.222 [skip ci] 2026-11-01 14:12:10 +00:00
GitHub Actions 9025e0e06a Bump cinny: Move the Capacitor code to the mobile overlay. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 14:12:03 +00:00
GitHub Actions b6d072271d chore: bump version to 4.11.221 [skip ci] 2026-11-01 13:56:21 +00:00
GitHub Actions 9dd3e8faea Bump cinny: Fix the ref, upload, keyframes, and implicit-any type errors. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 13:56:14 +00:00
GitHub Actions bdbd2f8d71 chore: bump version to 4.11.220 [skip ci] 2026-11-01 13:14:13 +00:00
GitHub Actions ee2f8cc448 Bump cinny: Drop the mutation and sequential-await rules and the stale directives. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 13:14:07 +00:00
GitHub Actions b7ff95e5d4 chore: bump version to 4.11.219 [skip ci] 2026-11-01 12:54:54 +00:00
GitHub Actions 17aca9f729 Bump cinny: Use EventType at the state and account data call sites. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 12:54:49 +00:00
GitHub Actions 9b6f3ae55b chore: bump version to 4.11.218 [skip ci] 2026-11-01 12:09:31 +00:00
GitHub Actions 82f1feaa26 Bump cinny: Resolve the exhaustive-deps findings and attach cause to the rethrown errors. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 12:09:23 +00:00
GitHub Actions 374b0432c3 chore: bump version to 4.11.217 [skip ci] 2026-11-01 11:41:37 +00:00
GitHub Actions 595b6541da Bump cinny: Type the updater API and the Tauri global. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 11:41:32 +00:00
GitHub Actions 11896dcd9f chore: bump version to 4.11.216 [skip ci] 2026-11-01 11:13:19 +00:00
GitHub Actions 77deeb9ef0 Bump cinny: Type the electron and matrix plugin call sites instead of any. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 11:13:12 +00:00
GitHub Actions 550cb61f28 chore: bump version to 4.11.215 [skip ci] 2026-11-01 10:37:29 +00:00
GitHub Actions 42367e2ae6 Bump cinny: Add keyboard activation to the interactive elements and use stable keys. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 10:37:21 +00:00
GitHub Actions db7c71a650 chore: bump version to 4.11.214 [skip ci] 2026-11-01 10:10:44 +00:00
GitHub Actions 2129482287 Bump cinny: Rewrite the restricted iterators and reorder the forward references. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 10:10:39 +00:00
GitHub Actions a9e3832b27 chore: bump version to 4.11.213 [skip ci] 2026-11-01 09:36:23 +00:00
GitHub Actions e7ac50ed44 Bump cinny: Fix the mechanical lint groups and delete the unused bindings. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 09:36:15 +00:00
GitHub Actions 8dcd1335dd chore: bump version to 4.11.212 [skip ci] 2026-11-01 09:00:19 +00:00
GitHub Actions 9b3c88702b Bump cinny: Mount the dialog host at the app root so prompts resolve before the client route renders. [skip build]
Build / increment-version (push) Successful in 6s
Build / build-android (push) Skipped
2026-11-01 09:00:10 +00:00
GitHub Actions 923d00c59a chore: bump version to 4.11.211 [skip ci] 2026-11-01 00:49:07 +00:00
GitHub Actions 8ed3fdbd70 Bump cinny: Replace the native confirm and alert with an in-app dialog. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 00:49:02 +00:00
GitHub Actions e77a63f580 chore: bump version to 4.11.210 [skip ci] 2026-11-01 00:32:59 +00:00
litruv 9de71b766d Render the settings content when the compact master nav is empty. Closes #1.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 1m20s
2026-11-01 11:32:51 +11:00
GitHub Actions 7156864da9 chore: bump version to 4.11.209 [skip ci] 2026-10-31 23:53:40 +00:00
GitHub Actions 22f24d901d Bump cinny: Drop autofocus and move the search reset out of render. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 23:53:33 +00:00
GitHub Actions 3006176027 chore: bump version to 4.11.208 [skip ci] 2026-10-31 23:44:31 +00:00
GitHub Actions 1fe4ce1bba Bump cinny: Drop the unused eslint-disable directives. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 23:44:24 +00:00
GitHub Actions 8390d7b8ee chore: bump version to 4.11.207 [skip ci] 2026-10-31 23:33:57 +00:00
GitHub Actions 6924d35497 Bump cinny: Fix the small mechanical rules. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 23:33:52 +00:00
GitHub Actions f4d8c5817c chore: bump version to 4.11.206 [skip ci] 2026-10-31 23:05:32 +00:00
GitHub Actions 38d7530362 Bump cinny: Turn off the React Compiler rules and no-bitwise. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 23:05:27 +00:00
GitHub Actions 7fb4a0bb03 chore: bump version to 4.11.205 [skip ci] 2026-10-31 22:57:39 +00:00
GitHub Actions df5b04eb09 Bump cinny: Move the browser-encrypt-attachment types into an ambient declaration file. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 22:57:32 +00:00
GitHub Actions 65381675c5 chore: bump version to 4.11.204 [skip ci] 2026-10-31 22:34:34 +00:00
GitHub Actions 6848870cb1 Bump cinny: Put the repo in the commit link. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 22:34:26 +00:00
GitHub Actions 26f5dd0a18 chore: bump version to 4.11.203 [skip ci] 2026-10-31 22:20:50 +00:00
GitHub Actions 205930db2e Bump cinny: Use globalThis and React.JSX in the browser code. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 22:20:42 +00:00
GitHub Actions 2120419c69 chore: bump version to 4.11.202 [skip ci] 2026-10-31 22:14:21 +00:00
GitHub Actions 5f893088a5 Bump cinny: Add the debug packet recorder behind the developer-tools toggle.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 1m20s
2026-10-31 22:07:00 +00:00
GitHub Actions 862125e60c chore: bump version to 4.11.201 [skip ci] 2026-10-31 20:07:36 +00:00
GitHub Actions fbab988cfb Bump cinny: Turn off the base unused-vars rule for the TS files. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 20:07:29 +00:00
GitHub Actions 1490a48d2d chore: bump version to 4.11.200 [skip ci] 2026-10-31 19:14:38 +00:00
GitHub Actions 761c939249 Bump cinny: Drop the unused imports and the inert unused variables. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 19:14:31 +00:00
GitHub Actions a67069e692 chore: bump version to 4.11.199 [skip ci] 2026-10-31 18:53:31 +00:00
GitHub Actions ba5747fb01 Bump cinny: Turn off no-undef for the TS files too. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 18:53:24 +00:00
GitHub Actions 6b5eced0ba chore: bump version to 4.11.198 [skip ci] 2026-10-31 18:40:27 +00:00
GitHub Actions a1d1dfad6c Bump cinny: Drop the dead Tauri branches and the plugin packages. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 18:40:19 +00:00
GitHub Actions 518b5b4ea9 chore: bump version to 4.11.197 [skip ci] 2026-10-31 17:58:55 +00:00
GitHub Actions fdd4cc0e8d Bump cinny: Remove the playground. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 17:58:50 +00:00
GitHub Actions 0f6517674e chore: bump version to 4.11.196 [skip ci] 2026-10-31 17:36:32 +00:00
GitHub Actions 9e7bc26bff Bump cinny: Export the default in the raw module declaration so the typecheck compiles.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m34s
2026-10-31 17:34:07 +00:00
litruv 9fe732fe32 Skip the mobile build when the commit message marks it.
Build / increment-version (push) Canceled after 0s
Build / build-android (push) Canceled after 0s
2026-11-01 04:32:25 +11:00
GitHub Actions 8f30d0fce6 Bump cinny: Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
Build / increment-version (push) Canceled after 0s
Build / build-android (push) Canceled after 0s
2026-10-31 17:28:53 +00:00
GitHub Actions d1982fb071 chore: bump version to 4.11.195 [skip ci] 2026-10-31 17:14:18 +00:00
GitHub Actions d9d1d90ab3 Bump cinny: Drop the redundant try around the render check fetch.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m33s
2026-10-31 17:14:13 +00:00
GitHub Actions 65a2e13f24 chore: bump version to 4.11.194 [skip ci] 2026-10-31 17:07:00 +00:00
GitHub Actions af022b5c16 Bump cinny: Drop the explicit undefined initialisation of encInfo.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Canceled after 0s
2026-10-31 17:00:26 +00:00
GitHub Actions c1c27d6cc0 chore: bump version to 4.11.193 [skip ci] 2026-10-31 16:50:16 +00:00
GitHub Actions 634f8ed2f8 Bump cinny: Page the open issue list so dedupe sees every check issue.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m37s
2026-10-31 16:40:52 +00:00
GitHub Actions 8a08073b96 chore: bump version to 4.11.192 [skip ci] 2026-10-31 16:33:22 +00:00
GitHub Actions 602a99efaf Bump cinny: Port the ESLint config to flat format and file check findings as Gitea issues.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m57s
2026-10-31 16:25:42 +00:00
GitHub Actions e00a5da74b chore: bump version to 4.11.191 [skip ci] 2026-10-31 15:03:56 +00:00
GitHub Actions 3af27ddaf2 Bump cinny: Add a developer tools view for public profile fields.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m58s
2026-10-31 15:03:48 +00:00
GitHub Actions 000d6158ae chore: bump version to 4.11.190 [skip ci] 2026-10-31 12:55:45 +00:00
GitHub Actions bb1586001a Bump cinny: Revert reporting the activity bar against the message in the viewport.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 5m20s
2026-10-31 12:55:38 +00:00
GitHub Actions 56463d5147 chore: bump version to 4.11.189 [skip ci] 2026-10-15 12:13:19 +00:00
GitHub Actions 1ebaa165bd Bump cinny: Fetch the TikTok oEmbed through the main process in Electron and drop the thumbnail crossOrigin.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m33s
2026-10-15 12:13:11 +00:00
GitHub Actions 55899d9cab chore: bump version to 4.11.188 [skip ci] 2026-10-13 09:11:50 +00:00
litruv 0d2e6c73a7 docs: add plugin development instructions (AGENTS.md)
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m30s
2026-10-13 20:11:43 +11:00
GitHub Actions 3067b88ecc chore: bump version to 4.11.187 [skip ci] 2026-10-13 08:44:39 +00:00
GitHub Actions c6e9c82ae5 Bump cinny: Remove the Paarrot delivery receipt.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m29s
2026-10-13 08:44:33 +00:00
7 changed files with 121 additions and 5 deletions
+7 -1
View File
@@ -46,7 +46,13 @@ jobs:
grep '"version"' package.json | head -1 grep '"version"' package.json | head -1
echo "VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT echo "VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "SHOULD_BUILD=true" >> $GITHUB_OUTPUT
# [skip build] runs the checks workflow but skips the mobile build.
if echo "${{ github.event.head_commit.message }}" | grep -qi '\[skip build\]'; then
echo "SHOULD_BUILD=false" >> $GITHUB_OUTPUT
else
echo "SHOULD_BUILD=true" >> $GITHUB_OUTPUT
fi
- name: Commit and push version bump - name: Commit and push version bump
run: | run: |
+48
View File
@@ -0,0 +1,48 @@
# Plugin development instructions
Instructions for opencode agents working on the Paarrot plugin system in this repo.
## Architecture
- Plugin host: `overlay/src/app/utils/pluginHost.ts`. Electron uses `window.electron.plugins`, Android uses the Capacitor `PluginStorage` plugin, web returns null.
- Native Android host: `android/app/src/main/java/com/paarrot/app/PluginStoragePlugin.kt` (download zip, unzip with zip-slip guard, list, uninstall, readPluginCode). Registered in `MainActivity.java`.
- Loader: `cinny/src/app/features/settings/plugins/PluginLoader.tsx`, mounted in `ClientRoot.tsx`. It evaluates `index.js` with `new Function` for CommonJS and falls back to a data-URL import for ESM.
- Registry and marketplace: `PluginAPI.ts` persists both to `localStorage`. Enabled state survives restarts. Plugins load at app start, so enabling a plugin requires an app restart.
## Plugin context contract
- `createPluginContext` from `@paarrot/plugin-manager` provides: `commands`, `messages`, `ui`, `settings`, `themes`, `events`, `timers`, `log`, `warn`, `error`.
- `PluginLoader` adds compat fields on top: `matrixClient`, `matrix`, `React`, `lucide`. Plugins destructure these directly (for example `const { Link } = ctx.lucide`), so a missing field throws at `onLoad` and the plugin never runs. Keep the compat fields in sync between `cinny` and `overlay`. A missing `lucide` caused silent plugin failure on mobile, fixed in commit `1f16f5d`.
## UI locations
- Valid `UILocation` values: `room-header`, `message-actions`, `user-menu`, `room-menu`, `composer-actions`, `channel-list`, `direct-messages`, `home-section`, `search-notification-section`, `text-composer-toolbar`, `sidebar-actions`.
- Button slots render at all screen sizes. Nav-only locations (`channel-list`, `direct-messages`, `home-section`, `sidebar-actions`) have no surface in the single-column mobile UI, so plugins that only register there are invisible on phones.
## Mobile quirks
- Capacitor injects plugins on `Capacitor.Plugins` after the bridge is ready, and `registerPlugin` is often missing on Android. The `waitForBridge` fallback pattern in `overlay/src/app/utils/backgroundSync.ts` is the reference.
- No CSP is configured in `capacitor.config.json`, so `new Function` and data-URL imports work. Adding CSP would break plugin evaluation.
- WebView console logs reach logcat under the tag `Capacitor/Console`.
## Debugging on device
- Wireless adb: `adb connect <ip>:<port>`. The `adb tcpip` port persists until reboot, then resets to 5555. Android 11+ wireless debugging randomizes the port per reboot by design. Pinning needs root (`persist.adb.tcp.port`).
- Plugin files: `adb shell run-as com.paarrot.app cat files/plugins/<id>/index.js` works on debuggable builds.
- Enabled state: localStorage lives in `app_webview/Local Storage/leveldb`. Search for `plugin-manager:installed-plugins`.
- Live eval: the WebView devtools socket is `@webview_devtools_remote_<pid>`. Forward with `adb forward tcp:9222 localsocket:webview_devtools_remote_<pid>`. The socket may refuse HTTP and WebSocket requests from non-localhost hosts.
- To trigger plugin load logs: force-stop, start, then `logcat -d | grep PluginLoader`.
- Hotpatching the installed copy with `run-as` plus an app restart tests plugin changes without reinstalling.
## Marketplace
- Directory: `Paarrot/Plugin-Directory`. Entries are static JSON files. The `version` field is a manual snapshot and is never synced from the plugin repo.
- Updates go through PRs. `validate-pr.yml` validates and auto-merges. `update-index.yml` regenerates `index.json` from committed entries only.
- A plugin repo needs `index.js` and `plugin-metadata.json`. The directory `downloadUrl` is the GitHub archive zip.
- Bump the version in both the plugin repo metadata and the directory entry when shipping changes.
## Repo conventions
- Edit `overlay/` files, not `cinny` directly. `scripts/apply-overlay.mjs` layers the overlay onto the cinny submodule before every Android build.
- `android/gradlew` is not executable. Run it as `sh gradlew`.
- Use `scripts/push.sh` for commits. It skips the cinny submodule pointer and `gradlew`.
+1 -1
Submodule cinny updated: f0495cccca...9b3956d85f
+6 -1
View File
@@ -2,6 +2,11 @@
"dependencies": { "dependencies": {
"@capacitor/app": "8.0.1", "@capacitor/app": "8.0.1",
"@capacitor/browser": "8.0.1", "@capacitor/browser": "8.0.1",
"@capacitor/status-bar": "8.0.1" "@capacitor/status-bar": "8.0.1",
"@tauri-apps/plugin-dialog": "2.7.1",
"@tauri-apps/plugin-notification": "2.3.3",
"@tauri-apps/plugin-opener": "2",
"@tauri-apps/plugin-process": "2.3.1",
"@tauri-apps/plugin-updater": "2.10.1"
} }
} }
+4 -1
View File
@@ -22,7 +22,10 @@ export function PageRoot({ nav, children }: PageRootProps) {
// Master list routes: only the channel/space list is interactive. // Master list routes: only the channel/space list is interactive.
// Never mount the detail/underlay stack here — an empty detail layer would // Never mount the detail/underlay stack here — an empty detail layer would
// sit above the list with pointer-events and freeze taps (DM → space bug). // sit above the list with pointer-events and freeze taps (DM → space bug).
if (compact && showCompactMaster) { // When nav is empty there is no master list to protect, so fall through to the
// detail branch. Settings is a modal, not a route: opening it from /home keeps
// the pathname a list route while Settings passes nav as undefined on mobile.
if (compact && showCompactMaster && nav) {
return ( return (
<Box grow="Yes" className={ContainerColor({ variant: 'Background' })}> <Box grow="Yes" className={ContainerColor({ variant: 'Background' })}>
{nav} {nav}
@@ -0,0 +1,54 @@
import { ComplexStyleRule } from '@vanilla-extract/css';
import { RecipeVariants, recipe } from '@vanilla-extract/recipes';
import { ContainerColor as TContainerColor, DefaultReset, color, config } from 'folds';
const getVariant = (variant: TContainerColor): ComplexStyleRule => ({
vars: {
backgroundColor: color[variant].Container,
borderColor: color[variant].ContainerLine,
outlineColor: color[variant].ContainerLine,
},
selectors: {
// DefaultReset sets `color: inherit` with the same specificity as this rule,
// so which one wins depends on stylesheet order. In the Android build the
// ContainerColor chunk is emitted before folds' reset, so the theme color
// loses and text falls back to the initial color. Raise specificity so the
// theme color wins regardless of order.
'&[class]': {
color: color[variant].OnContainer,
},
'button&[aria-pressed=true]': {
backgroundColor: color[variant].ContainerActive,
},
'button&:hover, &:focus-visible': {
backgroundColor: color[variant].ContainerHover,
},
'button&:active': {
backgroundColor: color[variant].ContainerActive,
},
'button&[disabled]': {
opacity: config.opacity.Disabled,
},
},
});
export const ContainerColor = recipe({
base: [DefaultReset],
variants: {
variant: {
Background: getVariant('Background'),
Surface: getVariant('Surface'),
SurfaceVariant: getVariant('SurfaceVariant'),
Primary: getVariant('Primary'),
Secondary: getVariant('Secondary'),
Success: getVariant('Success'),
Warning: getVariant('Warning'),
Critical: getVariant('Critical'),
},
},
defaultVariants: {
variant: 'Surface',
},
});
export type ContainerColorVariants = RecipeVariants<typeof ContainerColor>;
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "paarrot", "name": "paarrot",
"version": "4.11.186", "version": "4.11.234",
"description": "Paarrot - A Matrix client based on Cinny", "description": "Paarrot - A Matrix client based on Cinny",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"