@plitzi/plitzi-sdk 0.35.8 → 0.35.10

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,65 @@
1
1
  # @plitzi/plitzi-sdk
2
2
 
3
+ ## 0.35.10
4
+
5
+ ### Patch Changes
6
+
7
+ - **Breaking:** the space setting that lets a published site open the dev tools is now `settings.debugMode`, and
8
+ `settings.devTools` is gone.
9
+
10
+ It was always the same decision the SDK and the page server call `debugMode` — whether the dev-tools panel is
11
+ authorized — and having a third name for it invited confusing it with `devMode`, which is a different thing: it turns a
12
+ deployment into a development server (the unminified bundles, request timings, and the full action trace with every
13
+ step's results). A space can authorize debugging for its own site; it can never make its server a development one.
14
+
15
+ A space that stored `settings.devTools` needs it moved to `settings.debugMode`; nothing reads the old key.
16
+
17
+ - Updated dependencies
18
+ - @plitzi/sdk-auth@0.35.10
19
+ - @plitzi/sdk-dev-tools@0.35.10
20
+ - @plitzi/sdk-elements@0.35.10
21
+ - @plitzi/sdk-event-bridge@0.35.10
22
+ - @plitzi/sdk-interactions@0.35.10
23
+ - @plitzi/sdk-navigation@0.35.10
24
+ - @plitzi/sdk-plugins@0.35.10
25
+ - @plitzi/sdk-schema@0.35.10
26
+ - @plitzi/sdk-shared@0.35.10
27
+ - @plitzi/sdk-style@0.35.10
28
+ - @plitzi/sdk-variables@0.35.10
29
+
30
+ ## 0.35.9
31
+
32
+ ### Patch Changes
33
+
34
+ - Debug a server action's whole flow from the dev-tools, not just its answer.
35
+
36
+ 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
37
+ the redacted error of the one that broke the flow — the compensation steps `flow.onFailure` ran included. It carries
38
+ nothing a step was given or returned, so it goes to any page whose debugging the deployment authorized (`devMode`, or
39
+ a space that switched dev tools on for its published site) and to no other. The full trace, with each step's results,
40
+ still reaches only an authoring request or a development server.
41
+
42
+ Runs the SERVER started while rendering a page — the ones feeding `runtime: 'server'` elements — reach the dev-tools
43
+ too, seeded into the page and added to by every `/_rsc` refresh, under the same authorization: a page nobody
44
+ authorized is not told they happened. A response carrying them is never cached. A run that died on its deadline now
45
+ reports the step it was on rather than nothing at all.
46
+
47
+ The Actions tab was rebuilt around it: filters and search over the log, a run list that names the step that broke,
48
+ and a detail panel with the flow's timeline, its compensation shown apart, and what the run carried in and out.
49
+
50
+ - Updated dependencies
51
+ - @plitzi/sdk-auth@0.35.9
52
+ - @plitzi/sdk-dev-tools@0.35.9
53
+ - @plitzi/sdk-elements@0.35.9
54
+ - @plitzi/sdk-event-bridge@0.35.9
55
+ - @plitzi/sdk-interactions@0.35.9
56
+ - @plitzi/sdk-navigation@0.35.9
57
+ - @plitzi/sdk-plugins@0.35.9
58
+ - @plitzi/sdk-schema@0.35.9
59
+ - @plitzi/sdk-shared@0.35.9
60
+ - @plitzi/sdk-style@0.35.9
61
+ - @plitzi/sdk-variables@0.35.9
62
+
3
63
  ## 0.35.8
4
64
 
5
65
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ import { track } from './modules/Analytics';
16
16
  import { ElementContextValue } from '@plitzi/sdk-elements/Element/ElementContext';
17
17
  import { default as EventBridge } from '@plitzi/sdk-event-bridge';
18
18
  import { default as InteractionsManager } from '@plitzi/sdk-interactions/InteractionsManager';
19
- import { AnalyticsConfig, Element, Schema, Style, ComponentPluginFC, ComponentPlugin, InteractionCallback, InteractionCallbackParamValues, Environment, EventBridgeContextValue, HostActions, OfflineDataRaw, RenderMode, Server, RuntimeStateInstance, Theme, ThemeScope, PlitziServiceContextValue as BasePlitziServiceContextValue } from '@plitzi/sdk-shared';
19
+ import { ActionRunSummary, AnalyticsConfig, Element, Schema, Style, ComponentPluginFC, ComponentPlugin, InteractionCallback, InteractionCallbackParamValues, Environment, EventBridgeContextValue, HostActions, OfflineDataRaw, RenderMode, Server, RuntimeStateInstance, Theme, ThemeScope, PlitziServiceContextValue as BasePlitziServiceContextValue } from '@plitzi/sdk-shared';
20
20
  import { ReactNode } from 'react';
21
21
  /**
22
22
  * A registered plugin is a COMPONENT, not a decorated one.
@@ -66,6 +66,8 @@ export type PlitziSdkProps = {
66
66
  */
67
67
  routing?: 'browser' | 'memory';
68
68
  debugMode?: boolean;
69
+ /** What the server ran to build this page, for the dev-tools. Only ever sent to a page allowed to debug them. */
70
+ actionRuns?: ActionRunSummary[];
69
71
  isHydrating?: boolean;
70
72
  previewMode?: boolean;
71
73
  /** Shows the "Made in Plitzi" link over the rendered space; off for embeds that are not a Plitzi site of their