@protobase/cli 0.94.11 → 0.94.13

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.94.11";
2
+ var version = "0.94.13";
3
3
  //#endregion
4
4
  export { version };
@@ -1,6 +1,6 @@
1
1
  //#region ../mobile/package.json
2
2
  var name = "@protobase/mobile";
3
- var nativeContract = 10;
3
+ var nativeContract = 11;
4
4
  var dependencies = {
5
5
  "@capacitor/android": "8.5.3",
6
6
  "@capacitor/app": "8.1.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.94.11",
3
+ "version": "0.94.13",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.94.11",
47
- "@protobase/layout": "0.94.11",
48
- "@protobase/query": "0.94.11",
49
- "@protobase/schema": "0.94.11",
50
- "@protobase/server": "0.94.11",
51
- "@protobase/ui": "0.94.11",
52
- "@protobase/workflows": "0.94.11",
46
+ "@protobase/config": "0.94.13",
47
+ "@protobase/layout": "0.94.13",
48
+ "@protobase/query": "0.94.13",
49
+ "@protobase/schema": "0.94.13",
50
+ "@protobase/server": "0.94.13",
51
+ "@protobase/ui": "0.94.13",
52
+ "@protobase/workflows": "0.94.13",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -12,4 +12,9 @@ The app's colours, name, icon, language and installation.
12
12
  - [Named icons](../reference/layouts.md#named-actions): Actions, key facts and card meta show an icon picked by name from a set, such as `play`, `bed` or `cpu`.
13
13
  - [English and Dutch](../reference/languages.md): The built-in screens come in English and Dutch, with numbers and dates written to match.
14
14
  - [Installable app](../reference/installable-app.md): The admin installs as an app on phones and computers, and says when the server cannot be reached.
15
+
16
+ ## Accessibility
17
+
15
18
  - Reduced motion: When the system asks for less motion, animations and pulsing dots stop.
19
+ - [Text size](../reference/theme.md#text-size): All text grows with the reader's text size, in the browser and with the phone's text size in the iOS and Android app.
20
+ - Screen readers: Sidebar groups are headings to jump between, each list card reads as one link named by its title, filters read their values' labels, and each page has one main area with headings in order.
@@ -316,7 +316,7 @@ A component that asks for input looks like the app's own forms when it is built
316
316
  | `RecordPicker` | Records of another resource, picked as the create form picks a relation: type to narrow them by their search fields or title, scroll for more, or use the keyboard. `resource` names the resource, whose model it reads from the app; `value` is the chosen record's key as text and `onChange` gets the new one. With `multiple`, `value` and `onChange` hold several keys, such as the objectives a task serves through a join resource: each shows as a token that can be taken off. |
317
317
  | `Segmented`, `MenuSelect` | A switch between a few short options in a row (`size`, `iconOnly`), and the same options in a menu. |
318
318
  | `Button`, `buttonClass` | A button (`variant` `primary`, `secondary`, `ghost` or `danger`, `size` `sm`, `md` or `icon`, a square for an icon alone, and `loading`), and its classes for a link that looks like one. |
319
- | `Dialog`, `ResponsiveDialog` | A modal with a `title`, `description`, `actions` and a body, which Escape and a click outside close with `onClose`; the responsive one becomes a sheet from the bottom of a phone, which a swipe down on its header closes too. |
319
+ | `Dialog`, `ResponsiveDialog` | A modal with a `title`, `description`, `actions` and a body, which Escape and a click outside close with `onClose`; the responsive one becomes a sheet from the bottom of a phone, which follows a finger dragging it down by its header, or by its content once that is scrolled to its top, and closes when flung or let go past a third of its height. |
320
320
 
321
321
  ```tsx
322
322
  // components/book-repair.tsx, exported from protobase.ui.tsx
@@ -121,6 +121,12 @@ What they color:
121
121
 
122
122
  The list is `packages/ui/src/tokens.css`, and a test fails when one of its tokens disappears.
123
123
 
124
+ ## Text size
125
+
126
+ The app's text follows the reader's text size: every size is in `rem`, so all of it grows with the root size. In a browser that is the browser's own text size; in the [iOS app](../guides/mobile-app.md) the phone's text size, Dynamic Type included, and in the Android app the phone's font size. The base size is 0.875rem, 14px at a browser's default. A plugin's text follows it too when its sizes are in `rem`, such as Tailwind's `text-xs`, rather than pixels.
127
+
128
+ <gap>The phone's top bar cannot fit its buttons at the largest accessibility text sizes, about three times the default, because its icons and buttons grow with the text and the bar neither wraps nor shrinks them.</gap>
129
+
124
130
  ## Logo and favicon
125
131
 
126
132
  The sidebar's logo is the project's own favicon, or without one the app's initial when it has a name of its own and Protobase's mark when it keeps Protobase's, beside the app's [name](app-identity.md#the-name), with the organization the user works in under it, and the icon alone when the sidebar shows only icons. An app that keeps Protobase's name and has no favicon of its own shows Protobase's wordmark beside the mark. A project draws something else with `shell.logo` in `protobase.ui.tsx`, a component drawn in its place ([Shell slots](custom-components.md#shell-slots)); it draws with these tokens like the rest of the app.
@@ -129,4 +135,4 @@ The browser tab shows a neutral mark. A project shows its own with a `protobase.
129
135
 
130
136
  ## In a plugin
131
137
 
132
- A plugin's utilities read the same tokens, with Tailwind's default as the fallback where an app sets none: `bg-primary` is `var(--primary)`, `rounded-md` is `var(--radius, 6px)` and `font-sans` is `var(--font, ...)`. So a plugin follows the theme of every app that loads it, without knowing it. Write classes such as `bg-primary`, `text-muted-foreground` and `border-border` rather than fixed colors, and the plugin looks at home in light and dark alike. Text takes the app's base size, 14px, without a class; `text-body` restates it where a parent sets another. Where a plugin needs a value of its own for dark, a `dark:` class such as `dark:bg-muted` follows the theme the user picked, not only their system's.
138
+ A plugin's utilities read the same tokens, with Tailwind's default as the fallback where an app sets none: `bg-primary` is `var(--primary)`, `rounded-md` is `var(--radius, 6px)` and `font-sans` is `var(--font, ...)`. So a plugin follows the theme of every app that loads it, without knowing it. Write classes such as `bg-primary`, `text-muted-foreground` and `border-border` rather than fixed colors, and the plugin looks at home in light and dark alike. Text takes the app's base size, 0.875rem, without a class; `text-body` restates it where a parent sets another. Where a plugin needs a value of its own for dark, a `dark:` class such as `dark:bg-muted` follows the theme the user picked, not only their system's.