@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.
@@ -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. Defaults to `devMode`, so a development server debugs without being told to. */
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-shared",
3
- "version": "0.35.7",
3
+ "version": "0.35.8",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",