@softr/sdk 1.4.0-se22529.1 → 1.4.1
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/CHANGELOG.md +14 -1
- package/dist/auth/idle-clock.js +161 -0
- package/dist/auth/idle-timeout.d.ts +17 -0
- package/dist/auth/idle-timeout.js +85 -0
- package/dist/cli.js +1 -5
- package/dist/codegen/fetch-metadata.js +13 -33
- package/dist/datasource/chart.js +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
- package/skills/softr-sdk/SKILL.md +2 -2
- package/skills/softr-sdk/ai/SKILL.md +2 -2
- package/skills/softr-sdk/auth/SKILL.md +8 -5
- package/skills/softr-sdk/charts-and-metrics/SKILL.md +19 -13
- package/skills/softr-sdk/current-user/SKILL.md +30 -11
- package/skills/softr-sdk/file-uploads/SKILL.md +1 -1
- package/skills/softr-sdk/formatting/SKILL.md +1 -1
- package/skills/softr-sdk/integrations/SKILL.md +1 -1
- package/skills/softr-sdk/mcp/SKILL.md +1 -1
- package/skills/softr-sdk/push-notifications/SKILL.md +1 -1
- package/skills/softr-sdk/pwa/SKILL.md +1 -1
- package/skills/softr-sdk/record-mutations/SKILL.md +34 -31
- package/skills/softr-sdk/record-queries/SKILL.md +128 -84
- package/skills/softr-sdk/record-queries/references/filters-and-sorting.md +11 -0
- package/skills/softr-sdk/region-visibility/SKILL.md +1 -1
- package/skills/softr-sdk/routes-and-visibility/SKILL.md +2 -2
- package/skills/softr-sdk/workflows/SKILL.md +1 -1
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 1.4.
|
|
12
|
+
library_version: 1.4.1
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
**Boundary.** `definePage`, `pageHead`, the access functions and the error predicates come from `@softr/sdk` and work anywhere.
|
|
@@ -73,7 +73,7 @@ Everyone is both audiences, as in the first line above. A set names each audienc
|
|
|
73
73
|
|
|
74
74
|
Take every id in `customGroups` from `docs/user-groups.md`, which lists each group the app has with its name and id. An id the app does not have is a type error.
|
|
75
75
|
|
|
76
|
-
**`visibility` guards the page, not the server functions it calls.** A call can reach them without the page and with any arguments, so the queries and mutations behind a page carry its groups in their own `permissions`. `permissions` decide who may run them, not which rows they reach: each
|
|
76
|
+
**`visibility` guards the page, not the server functions it calls.** A call can reach them without the page and with any arguments, so the queries and mutations behind a page carry its groups in their own `permissions`. `permissions` decide who may run them, not which rows they reach: the `filter` of each query and mutation decides that, as [record-queries](../record-queries/SKILL.md#keep-each-visitor-to-their-own-records) shows.
|
|
77
77
|
|
|
78
78
|
## Core Patterns
|
|
79
79
|
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 1.4.
|
|
12
|
+
library_version: 1.4.1
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
**Boundary.** `workflow` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler — importing it into a component fails the build. `defineWorkflow` and every type come from `@softr/sdk` and can be imported anywhere.
|