@plitzi/sdk-authoring 0.35.7 → 0.35.9

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 CHANGED
@@ -1,5 +1,42 @@
1
1
  # @plitzi/sdk-authoring
2
2
 
3
+ ## 0.35.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Debug a server action's whole flow from the dev-tools, not just its answer.
8
+
9
+ A run now reports an OUTLINE of what it did: every step in order, with its task, how it ended, how long it took, and
10
+ the redacted error of the one that broke the flow — the compensation steps `flow.onFailure` ran included. It carries
11
+ nothing a step was given or returned, so it goes to any page whose debugging the deployment authorized (`devMode`, or
12
+ a space that switched dev tools on for its published site) and to no other. The full trace, with each step's results,
13
+ still reaches only an authoring request or a development server.
14
+
15
+ Runs the SERVER started while rendering a page — the ones feeding `runtime: 'server'` elements — reach the dev-tools
16
+ too, seeded into the page and added to by every `/_rsc` refresh, under the same authorization: a page nobody
17
+ authorized is not told they happened. A response carrying them is never cached. A run that died on its deadline now
18
+ reports the step it was on rather than nothing at all.
19
+
20
+ The Actions tab was rebuilt around it: filters and search over the log, a run list that names the step that broke,
21
+ and a detail panel with the flow's timeline, its compensation shown apart, and what the run carried in and out.
22
+
23
+ ## 0.35.8
24
+
25
+ ### Patch Changes
26
+
27
+ - A space can switch the dev tools on for its own published site.
28
+
29
+ - **`settings.devTools`** in the space schema, set from the builder's Settings panel ("Dev tools on the published SSR
30
+ site (*.plitzi.app)"). It applies to sites served with SSR — usually a space's `*.plitzi.app` address, or a custom
31
+ domain pointed at it. A page server that left `debugMode` unset now authorizes debugging for a space that asked for it, as it
32
+ already did in `devMode`. A server that sets `debugMode` still decides for every space, and `false` cannot be
33
+ turned around by a space. Preview renders stay undebuggable either way.
34
+ - The space is read from the schema the server loaded, never from the request, and the visitor's cookie can still
35
+ only hide the panel.
36
+ - **The HTML cache keys whether a visitor hid the dev tools.** A cached page on a published environment used to be
37
+ keyed on the theme alone, so on a page authorizing dev tools the first visitor's choice — panel or no panel — was
38
+ served to everybody after them.
39
+
3
40
  ## 0.35.7
4
41
 
5
42
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -5437,6 +5437,13 @@ declare type Schema = {
5437
5437
  sessionGate?: 'optimistic' | 'strict';
5438
5438
  /** How old a confirmation may get before the SDK re-checks on the next focus. Defaults to 300. */
5439
5439
  sessionRevalidateSeconds?: number;
5440
+ /**
5441
+ * Lets the published site open the dev tools — elements, state, interactions — for anybody who visits it.
5442
+ *
5443
+ * The space's own answer, read by a page server that left the decision open: a server that sets `debugMode`
5444
+ * decides for every space it renders, and an explicit `false` there cannot be turned around from here.
5445
+ */
5446
+ devTools?: boolean;
5440
5447
  };
5441
5448
  rsc?: SchemaRsc;
5442
5449
  pages: Element_2['id'][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-authoring",
3
- "version": "0.35.7",
3
+ "version": "0.35.9",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist/index.js",
@@ -44,11 +44,11 @@
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.59.1",
46
46
  "@plitzi/plitzi-ui": "^1.6.21",
47
- "@plitzi/sdk-elements": "0.35.7",
48
- "@plitzi/sdk-interactions": "0.35.7",
49
- "@plitzi/sdk-schema": "0.35.7",
50
- "@plitzi/sdk-shared": "0.35.7",
51
- "@plitzi/sdk-style": "0.35.7",
47
+ "@plitzi/sdk-elements": "0.35.9",
48
+ "@plitzi/sdk-interactions": "0.35.9",
49
+ "@plitzi/sdk-schema": "0.35.9",
50
+ "@plitzi/sdk-shared": "0.35.9",
51
+ "@plitzi/sdk-style": "0.35.9",
52
52
  "@types/react": "^19.3.0",
53
53
  "eslint": "^9.39.5",
54
54
  "typescript": "^6.0.3",