@plitzi/sdk-shared 0.35.7 → 0.35.8
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 +17 -0
- package/dist/store/index.d.ts +33 -33
- package/dist/types/SchemaTypes.d.ts +7 -0
- package/dist/types/ServerTypes.d.ts +3 -1
- package/package.json +1 -1
|
@@ -155,6 +155,13 @@ export type Schema = {
|
|
|
155
155
|
sessionGate?: 'optimistic' | 'strict';
|
|
156
156
|
/** How old a confirmation may get before the SDK re-checks on the next focus. Defaults to 300. */
|
|
157
157
|
sessionRevalidateSeconds?: number;
|
|
158
|
+
/**
|
|
159
|
+
* Lets the published site open the dev tools — elements, state, interactions — for anybody who visits it.
|
|
160
|
+
*
|
|
161
|
+
* The space's own answer, read by a page server that left the decision open: a server that sets `debugMode`
|
|
162
|
+
* decides for every space it renders, and an explicit `false` there cannot be turned around from here.
|
|
163
|
+
*/
|
|
164
|
+
devTools?: boolean;
|
|
158
165
|
};
|
|
159
166
|
rsc?: SchemaRsc;
|
|
160
167
|
pages: Element['id'][];
|
|
@@ -738,7 +738,9 @@ export type SSRServerConfig = {
|
|
|
738
738
|
devMode?: boolean;
|
|
739
739
|
/** Authorizes debugging on the pages this server renders. An SSR page loads the very same SDK, so this is the
|
|
740
740
|
* server-side face of the SDK's `debugMode` prop: the page decides, and the visitor's 'plitzi_debug' cookie can
|
|
741
|
-
* only narrow it.
|
|
741
|
+
* only narrow it. Left unset, `devMode` authorizes it — a development server debugs without being told to — and
|
|
742
|
+
* so does a space whose settings switched `devTools` on. Set, it decides for every space: `false` is a refusal
|
|
743
|
+
* no space can turn around. */
|
|
742
744
|
debugMode?: boolean;
|
|
743
745
|
cacheTtlMs?: number;
|
|
744
746
|
loginPath?: string | false;
|