@sevenfold/setto-client 0.6.2 → 0.8.0
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/README.md +58 -10
- package/dist/admin/App.d.ts +3 -2
- package/dist/admin/DeploymentsView.d.ts +5 -0
- package/dist/admin/styles.d.ts +20 -0
- package/dist/block-tree/schema.d.ts +14 -16
- package/dist/edit-mode/mount.d.ts +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/lib/api.d.ts +15 -0
- package/dist/lib/i18n-store.d.ts +38 -0
- package/dist/lib/nested-resource.d.ts +7 -1
- package/dist/lib/urls.d.ts +13 -0
- package/dist/modules/forms/FormsView.d.ts +17 -0
- package/dist/modules/forms/SettoForm.d.ts +58 -0
- package/dist/modules/forms/api.d.ts +40 -0
- package/dist/modules/forms/field-editor.d.ts +29 -0
- package/dist/modules/forms/fields.d.ts +112 -0
- package/dist/modules/forms/index.d.ts +12 -0
- package/dist/modules/index.d.ts +5 -0
- package/dist/modules/module.d.ts +30 -0
- package/dist/preview-bar.d.ts +3 -0
- package/dist/setto-client.js +2743 -1097
- package/dist/setto-client.js.map +1 -1
- package/dist/types.d.ts +16 -0
- package/package.json +1 -1
- package/dist/SettoForm.d.ts +0 -18
package/dist/types.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export interface BrandColor {
|
|
|
8
8
|
export interface SettoConfig {
|
|
9
9
|
/** Stable slug identifying the site, e.g. 'carryon-no'. */
|
|
10
10
|
siteId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The trading name, shipped in `setto.config.json`.
|
|
13
|
+
*
|
|
14
|
+
* Used where a customer reads it — the preview bar said `nordvik-ror-f14c3a27`
|
|
15
|
+
* to anyone who opened the site, which is a database key, not a business.
|
|
16
|
+
*/
|
|
17
|
+
displayName?: string;
|
|
11
18
|
/** Base URL of setto-server, e.g. 'https://api.setto.no'. */
|
|
12
19
|
apiUrl: string;
|
|
13
20
|
/** Supabase project credentials. */
|
|
@@ -44,6 +51,15 @@ export interface DeploymentRow {
|
|
|
44
51
|
export interface SiteRow {
|
|
45
52
|
id: string;
|
|
46
53
|
display_name: string;
|
|
54
|
+
/**
|
|
55
|
+
* `live` once it has been paid for.
|
|
56
|
+
*
|
|
57
|
+
* The row already carries it — `useSiteAccess` selects `*` — and only the
|
|
58
|
+
* type hid it. The preview bar needs it because a paid site stays on
|
|
59
|
+
* `*.site.setto.no` until a custom domain is attached, so the host alone
|
|
60
|
+
* cannot say whether it has been bought.
|
|
61
|
+
*/
|
|
62
|
+
status?: string;
|
|
47
63
|
repo_owner: string;
|
|
48
64
|
repo_name: string;
|
|
49
65
|
branch: string;
|
package/package.json
CHANGED
package/dist/SettoForm.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { FormField } from './block-tree/schema';
|
|
2
|
-
export interface SettoFormProps {
|
|
3
|
-
/** Scopes i18n keys: `form.{formId}.submit`, `.success`, `.error`. */
|
|
4
|
-
formId: string;
|
|
5
|
-
fields: FormField[];
|
|
6
|
-
/** Static POST endpoint. Either this or `endpointKey` must be provided. */
|
|
7
|
-
endpoint?: string;
|
|
8
|
-
/** i18n key whose value is the runtime endpoint URL. */
|
|
9
|
-
endpointKey?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Generic POST form whose copy lives in i18n. Field structure is fixed by
|
|
14
|
-
* the host (or by the block tree) — editors can change labels and copy but
|
|
15
|
-
* not the field set, matching the Setto product principle that the editor
|
|
16
|
-
* adjusts content, not structure.
|
|
17
|
-
*/
|
|
18
|
-
export declare function SettoForm({ formId, fields, endpoint, endpointKey, className, }: SettoFormProps): import("react/jsx-runtime").JSX.Element;
|