@softr/sdk 0.0.80-alpha.0 → 0.0.80-alpha.3
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/dist/badge.d.ts +6 -9
- package/dist/badge.js +8 -3
- package/dist/default-error-overlay.d.ts +2 -2
- package/dist/formatting.d.ts +3 -3
- package/dist/package.js +1 -1
- package/dist/pwa.d.ts +2 -2
- package/package.json +1 -1
- package/skills/softr-sdk/SKILL.md +1 -1
- package/skills/softr-sdk/auth/SKILL.md +1 -1
- package/skills/softr-sdk/charts-and-metrics/SKILL.md +1 -1
- package/skills/softr-sdk/comments/SKILL.md +1 -1
- package/skills/softr-sdk/current-user/SKILL.md +1 -1
- 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/pwa/SKILL.md +1 -1
- package/skills/softr-sdk/record-mutations/SKILL.md +1 -1
- package/skills/softr-sdk/record-queries/SKILL.md +1 -1
- package/skills/softr-sdk/region-visibility/SKILL.md +1 -1
- package/skills/softr-sdk/routes-and-visibility/SKILL.md +1 -1
- package/skills/softr-sdk/workflows/SKILL.md +1 -1
package/dist/badge.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ import "@tanstack/react-start";
|
|
|
14
14
|
* right-to-left app. Set `--made-with-softr-left` and
|
|
15
15
|
* `--made-with-softr-bottom` to move it clear of the app's own layout.
|
|
16
16
|
*
|
|
17
|
+
* The bar sits after the page. While it shows, `--made-with-softr-footer-height`
|
|
18
|
+
* holds its height. A layout that fills the screen subtracts it, so a short
|
|
19
|
+
* page still shows the bar without a scroll:
|
|
20
|
+
* `min-height: calc(100svh - var(--made-with-softr-footer-height, 0px))`.
|
|
21
|
+
*
|
|
17
22
|
* @example
|
|
18
23
|
* <body>
|
|
19
24
|
* {children}
|
|
@@ -21,15 +26,7 @@ import "@tanstack/react-start";
|
|
|
21
26
|
* <Scripts />
|
|
22
27
|
* </body>
|
|
23
28
|
*/
|
|
24
|
-
declare function SoftrBadge(): react6.DetailedReactHTMLElement<{
|
|
25
|
-
style: {
|
|
26
|
-
display: "flex";
|
|
27
|
-
alignItems: "center";
|
|
28
|
-
justifyContent: "center";
|
|
29
|
-
height: number;
|
|
30
|
-
width: string;
|
|
31
|
-
};
|
|
32
|
-
}, HTMLElement> | react6.DetailedReactHTMLElement<{
|
|
29
|
+
declare function SoftrBadge(): react6.FunctionComponentElement<react6.FragmentProps> | react6.DetailedReactHTMLElement<{
|
|
33
30
|
role: "complementary";
|
|
34
31
|
style: CSSProperties;
|
|
35
32
|
}, HTMLElement> | null;
|
package/dist/badge.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fetch } from "./fetch.js";
|
|
|
3
3
|
import { sessionConfig } from "./auth/config.js";
|
|
4
4
|
import { platformApiUrl } from "./auth/platform.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import { createElement, useEffect, useState } from "react";
|
|
6
|
+
import { Fragment, createElement, useEffect, useState } from "react";
|
|
7
7
|
import { createMiddleware } from "@tanstack/react-start";
|
|
8
8
|
|
|
9
9
|
//#region src/badge.ts
|
|
@@ -63,6 +63,11 @@ function badgeMiddleware() {
|
|
|
63
63
|
* right-to-left app. Set `--made-with-softr-left` and
|
|
64
64
|
* `--made-with-softr-bottom` to move it clear of the app's own layout.
|
|
65
65
|
*
|
|
66
|
+
* The bar sits after the page. While it shows, `--made-with-softr-footer-height`
|
|
67
|
+
* holds its height. A layout that fills the screen subtracts it, so a short
|
|
68
|
+
* page still shows the bar without a scroll:
|
|
69
|
+
* `min-height: calc(100svh - var(--made-with-softr-footer-height, 0px))`.
|
|
70
|
+
*
|
|
66
71
|
* @example
|
|
67
72
|
* <body>
|
|
68
73
|
* {children}
|
|
@@ -183,7 +188,7 @@ function floatingAiBadge(dark) {
|
|
|
183
188
|
}
|
|
184
189
|
function footerBanner() {
|
|
185
190
|
const fill = "#9E9E9E";
|
|
186
|
-
return createElement("section", { style: {
|
|
191
|
+
return createElement(Fragment, null, createElement("style", null, ":root { --made-with-softr-footer-height: 40px; }"), createElement("section", { style: {
|
|
187
192
|
display: "flex",
|
|
188
193
|
alignItems: "center",
|
|
189
194
|
justifyContent: "center",
|
|
@@ -199,7 +204,7 @@ function footerBanner() {
|
|
|
199
204
|
key: d,
|
|
200
205
|
d,
|
|
201
206
|
fill
|
|
202
|
-
}))));
|
|
207
|
+
})))));
|
|
203
208
|
}
|
|
204
209
|
const AI_WORDMARK = [
|
|
205
210
|
{ "d": "M4.91129 15.1113C2.7282 15.1113 1.05867 14.0464 0.941719 12.1649C0.940194 12.1378 0.94426 12.1107 0.953583 12.0853C0.962905 12.0598 0.977312 12.0366 0.995956 12.0169C1.01426 11.997 1.03664 11.9811 1.06138 11.9702C1.08613 11.9594 1.11291 11.9538 1.14003 11.954H2.66548C2.71481 11.9538 2.76243 11.9722 2.79888 12.0056C2.83532 12.039 2.85786 12.085 2.8621 12.1343C2.95363 13.138 3.8011 13.6483 4.91129 13.6483C6.02148 13.6483 6.69607 13.2247 6.69607 12.3929C6.69607 10.1575 1.11969 11.9319 1.11969 8.2182C1.11969 6.53745 2.64514 5.49634 4.63501 5.49634C6.69607 5.49634 8.26899 6.69906 8.3995 8.29306C8.40119 8.32028 8.39747 8.34756 8.38848 8.3733C8.3795 8.39902 8.36526 8.42265 8.34696 8.44276C8.32848 8.46307 8.30594 8.4793 8.28085 8.49043C8.25577 8.50155 8.22865 8.50734 8.20119 8.5074H6.67574C6.62811 8.50751 6.582 8.49036 6.5459 8.45912C6.5098 8.42787 6.48607 8.38463 6.47912 8.33729C6.38251 7.54114 5.63164 6.97635 4.63162 6.97635C3.6316 6.97635 2.97566 7.40164 2.97566 8.13995C2.97566 10.1814 8.58764 8.54653 8.58764 12.3146C8.59103 14.0583 7.04523 15.1113 4.91129 15.1113Z" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react9 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/default-error-overlay.d.ts
|
|
4
4
|
type Props = {
|
|
@@ -8,6 +8,6 @@ type Props = {
|
|
|
8
8
|
declare function DefaultErrorOverlay({
|
|
9
9
|
error,
|
|
10
10
|
reset
|
|
11
|
-
}: Props):
|
|
11
|
+
}: Props): react9.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { DefaultErrorOverlay };
|
package/dist/formatting.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/formatting.d.ts
|
|
@@ -94,7 +94,7 @@ declare function FormattingScope({
|
|
|
94
94
|
/** A BCP 47 locale, such as `de-DE`. It drops the app's fixed date format inside the scope. */
|
|
95
95
|
locale?: string;
|
|
96
96
|
children?: ReactNode;
|
|
97
|
-
}):
|
|
97
|
+
}): react0.FunctionComponentElement<react0.ProviderProps<Scope>>;
|
|
98
98
|
/**
|
|
99
99
|
* A date in the app's format, safe to render on the server. A timestamp whose
|
|
100
100
|
* zone is not known yet renders `fallback` until the browser supplies it, so
|
|
@@ -115,6 +115,6 @@ declare function FormattedDate({
|
|
|
115
115
|
time?: boolean;
|
|
116
116
|
/** What renders while the visitor's zone is unknown. */
|
|
117
117
|
fallback?: ReactNode;
|
|
118
|
-
}):
|
|
118
|
+
}): react0.FunctionComponentElement<react0.FragmentProps>;
|
|
119
119
|
//#endregion
|
|
120
120
|
export { DateOptions, DateParts, DateSeparator, DateValue, FixedDateFormat, FormattedDate, Formatting, FormattingScope, WeekDay, formatDate, formatDateTime, formatNumber, useFormatting };
|
package/dist/package.js
CHANGED
package/dist/pwa.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react4 from "react";
|
|
2
2
|
import "@tanstack/react-start";
|
|
3
3
|
|
|
4
4
|
//#region src/pwa.d.ts
|
|
@@ -23,7 +23,7 @@ import "@tanstack/react-start";
|
|
|
23
23
|
* )
|
|
24
24
|
* }
|
|
25
25
|
*/
|
|
26
|
-
declare function SoftrPwaHead():
|
|
26
|
+
declare function SoftrPwaHead(): react4.FunctionComponentElement<react4.FragmentProps>;
|
|
27
27
|
type PwaPlatform = "ios" | "android" | "desktop";
|
|
28
28
|
type PwaInstall = {
|
|
29
29
|
available: false;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 0.0.
|
|
12
|
+
library_version: 0.0.80-alpha.3
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
**Boundary.** `auth` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler — importing it into a component fails the build.
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 0.0.
|
|
12
|
+
library_version: 0.0.80-alpha.3
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
**Boundary.** `ds` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler or a server-side route hook — importing it into a component fails the build. `defineQuery` and every type come from `@softr/sdk` and can be imported anywhere.
|
|
@@ -8,7 +8,7 @@ description: >-
|
|
|
8
8
|
metadata:
|
|
9
9
|
type: sub-skill
|
|
10
10
|
library: softr-sdk
|
|
11
|
-
library_version: 0.0.
|
|
11
|
+
library_version: 0.0.80-alpha.3
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
**Boundary.** `comments` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler. Importing it into a component fails the build. `useCommentComposer` lives on `@softr/sdk/client` and runs in components. `defineComments` comes from `@softr/sdk` and can be imported anywhere.
|
|
@@ -7,7 +7,7 @@ description: >-
|
|
|
7
7
|
metadata:
|
|
8
8
|
type: sub-skill
|
|
9
9
|
library: softr-sdk
|
|
10
|
-
library_version: 0.0.
|
|
10
|
+
library_version: 0.0.80-alpha.3
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
**Boundary.** `upload` lives on `@softr/sdk/server` and runs inside server functions. `useFileUpload` and `FileItem` live on `@softr/sdk` and run in components. `FileAttachment` comes from `@softr/sdk` and can be imported anywhere.
|
|
@@ -7,7 +7,7 @@ description: >-
|
|
|
7
7
|
metadata:
|
|
8
8
|
type: sub-skill
|
|
9
9
|
library: softr-sdk
|
|
10
|
-
library_version: 0.0.
|
|
10
|
+
library_version: 0.0.80-alpha.3
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
**Boundary.** `integration` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler — importing it into a component fails the build. `defineIntegration` and every type come from `@softr/sdk` and can be imported anywhere.
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 0.0.
|
|
12
|
+
library_version: 0.0.80-alpha.3
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
**Boundary.** `softrMcpMiddleware` lives on `@softr/sdk` and is registered once, in `src/start.ts`. The actions you hand it are the same `defineQuery` / `defineMutation` values the app's own pages use — declared wherever they already live, not duplicated for MCP.
|
|
@@ -8,7 +8,7 @@ description: >-
|
|
|
8
8
|
metadata:
|
|
9
9
|
type: sub-skill
|
|
10
10
|
library: softr-sdk
|
|
11
|
-
library_version: 0.0.
|
|
11
|
+
library_version: 0.0.80-alpha.3
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
**Boundary.** `ds` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler — importing it into a component fails the build. `defineMutation` and every type come from `@softr/sdk` and can be imported anywhere.
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 0.0.
|
|
12
|
+
library_version: 0.0.80-alpha.3
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
**Boundary.** `ds` lives on `@softr/sdk/server` and runs only inside a `createServerFn` handler or a server-side route hook — importing it into a component fails the build. The same holds for any helper that calls `ds`: declare it inside the handler. A function at module level that calls `ds` keeps the server-only import in the browser bundle, and every page stops loading until it moves. `defineQuery` and every type come from `@softr/sdk` and can be imported anywhere.
|
|
@@ -8,7 +8,7 @@ description: >-
|
|
|
8
8
|
metadata:
|
|
9
9
|
type: sub-skill
|
|
10
10
|
library: softr-sdk
|
|
11
|
-
library_version: 0.0.
|
|
11
|
+
library_version: 0.0.80-alpha.3
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
**Boundary.** `defineVisibility`, the access functions and the error predicates come from `@softr/sdk` and work anywhere.
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
metadata:
|
|
10
10
|
type: sub-skill
|
|
11
11
|
library: softr-sdk
|
|
12
|
-
library_version: 0.0.
|
|
12
|
+
library_version: 0.0.80-alpha.3
|
|
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.
|