@sevenfold/setto-client 0.29.0 → 0.30.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/dist/SettoImage.d.ts +22 -0
- package/dist/index.d.ts +7 -1
- package/dist/lib/page-store.d.ts +84 -0
- package/dist/pages/SettoPage.d.ts +63 -0
- package/dist/pages/bundled.d.ts +10 -0
- package/dist/pages/manifest.d.ts +202 -0
- package/dist/provider.d.ts +7 -0
- package/dist/setto-client.js +702 -17
- package/dist/setto-client.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -44,6 +44,19 @@ export interface SettoConfig {
|
|
|
44
44
|
* Keys must match `sectionId` on `<SettoSection>`.
|
|
45
45
|
*/
|
|
46
46
|
sectionSchemas?: Record<string, SectionSchema>;
|
|
47
|
+
/**
|
|
48
|
+
* The bundled page manifest (`src/content/pages.json`): which pages exist,
|
|
49
|
+
* the order of their sections, what is hidden, and the menu. Absent on a
|
|
50
|
+
* site built before pages were data; `SettoPage` then renders sections in
|
|
51
|
+
* the order the site gives them and the structure tools stay away.
|
|
52
|
+
*
|
|
53
|
+
* `unknown` because it is an imported JSON file, whose type TypeScript
|
|
54
|
+
* widens past what the manifest promises; the provider checks it, and a
|
|
55
|
+
* file that fails the check is treated as absent rather than trusted.
|
|
56
|
+
*/
|
|
57
|
+
pages?: unknown;
|
|
58
|
+
/** GitHub path for the manifest. Defaults to `src/content/pages.json`. */
|
|
59
|
+
pagesPath?: string;
|
|
47
60
|
}
|
|
48
61
|
export interface DeploymentRow {
|
|
49
62
|
id: string;
|