@plitzi/plitzi-builder 0.38.24 → 0.39.0

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.
Files changed (129) hide show
  1. package/CHANGELOG.md +163 -1
  2. package/dist/index.html +2 -2
  3. package/dist/modules/App/AppContainer/containers/ContainerServer.d.ts +1 -1
  4. package/dist/modules/App/AppContainer/containers/ContainerSettings.d.ts +4 -1
  5. package/dist/modules/App/AppContainer/containers/ContainerTests.d.ts +6 -0
  6. package/dist/modules/App/AppContainer/containers/SharingSettings.d.ts +8 -0
  7. package/dist/modules/App/components/AppHeader/PlanBadge.d.ts +2 -0
  8. package/dist/modules/App/components/AppHeader/RoleBadge.d.ts +2 -0
  9. package/dist/modules/App/components/AppHeader/ViewButtons.d.ts +7 -0
  10. package/dist/modules/App/components/EmptyState/EmptyState.d.ts +3 -1
  11. package/dist/modules/App/components/Notice/Notice.d.ts +23 -0
  12. package/dist/modules/App/components/Notice/index.d.ts +3 -0
  13. package/dist/modules/App/components/PanelSearch/PanelSearch.d.ts +9 -0
  14. package/dist/modules/App/components/PanelSearch/index.d.ts +3 -0
  15. package/dist/modules/App/components/PanelToolbar/PanelToolbar.d.ts +22 -0
  16. package/dist/modules/App/components/PanelToolbar/index.d.ts +3 -0
  17. package/dist/modules/App/components/SitemapDiagram/types.d.ts +3 -0
  18. package/dist/modules/App/components/SnapshotPruneNotice/SnapshotPruneNotice.d.ts +7 -0
  19. package/dist/modules/App/components/SnapshotPruneNotice/helpers.d.ts +5 -0
  20. package/dist/modules/App/components/SnapshotPruneNotice/index.d.ts +2 -0
  21. package/dist/modules/App/components/ViewTabs/ViewTabs.d.ts +19 -0
  22. package/dist/modules/App/components/ViewTabs/index.d.ts +3 -0
  23. package/dist/modules/App/helpers/utils.d.ts +4 -2
  24. package/dist/modules/Builder/components/BuilderArea/BuilderArea.d.ts +3 -1
  25. package/dist/modules/Builder/components/BuilderElementTools/ElementContentSettings.d.ts +22 -0
  26. package/dist/modules/Builder/components/BuilderElementTools/ElementMotion/helpers.d.ts +3 -1
  27. package/dist/modules/Builder/components/BuilderElementTools/contentAttributesFor.d.ts +7 -0
  28. package/dist/modules/Export/ExportSpace.d.ts +2 -2
  29. package/dist/modules/Export/components/ExportLocked/ExportLocked.d.ts +4 -2
  30. package/dist/modules/Export/helpers/exportFormats.d.ts +5 -0
  31. package/dist/modules/Export/helpers/repairs.d.ts +4 -4
  32. package/dist/modules/Export/hooks/useExportSession.d.ts +2 -2
  33. package/dist/modules/Navigation/NavigationProvider.d.ts +1 -1
  34. package/dist/modules/Space/components/PlanNotice/PlanNotice.d.ts +13 -0
  35. package/dist/modules/Space/components/PlanNotice/index.d.ts +2 -0
  36. package/dist/modules/Space/hooks/useNextPrune.d.ts +16 -0
  37. package/dist/modules/Space/hooks/useSpaceEntitlements.d.ts +17 -0
  38. package/dist/modules/Tests/Tests.d.ts +10 -0
  39. package/dist/modules/Tests/accounts.d.ts +18 -0
  40. package/dist/modules/Tests/components/AreaStats/AreaStats.d.ts +12 -0
  41. package/dist/modules/Tests/components/AreaStats/index.d.ts +1 -0
  42. package/dist/modules/Tests/components/CanvasPane/CanvasPane.d.ts +10 -0
  43. package/dist/modules/Tests/components/CanvasPane/index.d.ts +1 -0
  44. package/dist/modules/Tests/components/E2eRunView/E2eRunView.d.ts +13 -0
  45. package/dist/modules/Tests/components/E2eRunView/components/RunStep/RunStep.d.ts +10 -0
  46. package/dist/modules/Tests/components/E2eRunView/components/RunStep/index.d.ts +2 -0
  47. package/dist/modules/Tests/components/E2eRunView/index.d.ts +2 -0
  48. package/dist/modules/Tests/components/FlowList/FlowList.d.ts +25 -0
  49. package/dist/modules/Tests/components/FlowList/components/FlowRow/FlowRow.d.ts +34 -0
  50. package/dist/modules/Tests/components/FlowList/components/FlowRow/index.d.ts +2 -0
  51. package/dist/modules/Tests/components/FlowList/components/StatePill/StatePill.d.ts +10 -0
  52. package/dist/modules/Tests/components/FlowList/components/StatePill/index.d.ts +2 -0
  53. package/dist/modules/Tests/components/FlowList/components/TagFilter/TagFilter.d.ts +17 -0
  54. package/dist/modules/Tests/components/FlowList/components/TagFilter/index.d.ts +2 -0
  55. package/dist/modules/Tests/components/FlowList/index.d.ts +1 -0
  56. package/dist/modules/Tests/components/FlowPanel/FlowPanel.d.ts +16 -0
  57. package/dist/modules/Tests/components/FlowPanel/index.d.ts +1 -0
  58. package/dist/modules/Tests/components/FlowStrip/FlowStrip.d.ts +29 -0
  59. package/dist/modules/Tests/components/FlowStrip/index.d.ts +1 -0
  60. package/dist/modules/Tests/components/GateCard/GateCard.d.ts +16 -0
  61. package/dist/modules/Tests/components/GateCard/index.d.ts +1 -0
  62. package/dist/modules/Tests/components/JourneyTags/JourneyTags.d.ts +13 -0
  63. package/dist/modules/Tests/components/JourneyTags/index.d.ts +2 -0
  64. package/dist/modules/Tests/components/KindRow/KindRow.d.ts +26 -0
  65. package/dist/modules/Tests/components/KindRow/components/FieldInput/FieldInput.d.ts +17 -0
  66. package/dist/modules/Tests/components/KindRow/components/FieldInput/index.d.ts +2 -0
  67. package/dist/modules/Tests/components/KindRow/index.d.ts +2 -0
  68. package/dist/modules/Tests/components/NeedsLook/NeedsLook.d.ts +5 -0
  69. package/dist/modules/Tests/components/NeedsLook/index.d.ts +1 -0
  70. package/dist/modules/Tests/components/PlanUsage/PlanUsage.d.ts +14 -0
  71. package/dist/modules/Tests/components/PlanUsage/index.d.ts +2 -0
  72. package/dist/modules/Tests/components/ServerPlayCard/ServerPlayCard.d.ts +12 -0
  73. package/dist/modules/Tests/components/ServerPlayCard/index.d.ts +2 -0
  74. package/dist/modules/Tests/components/StartState/StartState.d.ts +12 -0
  75. package/dist/modules/Tests/components/StartState/index.d.ts +2 -0
  76. package/dist/modules/Tests/components/StepEditor/StepEditor.d.ts +16 -0
  77. package/dist/modules/Tests/components/StepEditor/index.d.ts +1 -0
  78. package/dist/modules/Tests/components/StudioStep/StudioStep.d.ts +27 -0
  79. package/dist/modules/Tests/components/StudioStep/index.d.ts +1 -0
  80. package/dist/modules/Tests/components/TestAccounts/TestAccounts.d.ts +6 -0
  81. package/dist/modules/Tests/components/TestAccounts/components/AccountForm/AccountForm.d.ts +15 -0
  82. package/dist/modules/Tests/components/TestAccounts/components/AccountForm/index.d.ts +1 -0
  83. package/dist/modules/Tests/components/TestAccounts/components/AccountRow/AccountRow.d.ts +12 -0
  84. package/dist/modules/Tests/components/TestAccounts/components/AccountRow/index.d.ts +1 -0
  85. package/dist/modules/Tests/components/TestAccounts/components/RoleChip/RoleChip.d.ts +10 -0
  86. package/dist/modules/Tests/components/TestAccounts/components/RoleChip/index.d.ts +1 -0
  87. package/dist/modules/Tests/components/TestAccounts/index.d.ts +1 -0
  88. package/dist/modules/Tests/components/TestsArea/TestsArea.d.ts +24 -0
  89. package/dist/modules/Tests/components/TestsArea/index.d.ts +1 -0
  90. package/dist/modules/Tests/components/TestsSummary/TestsSummary.d.ts +13 -0
  91. package/dist/modules/Tests/components/TestsSummary/index.d.ts +2 -0
  92. package/dist/modules/Tests/components/UnitTestForm/UnitTestForm.d.ts +14 -0
  93. package/dist/modules/Tests/components/UnitTestForm/index.d.ts +2 -0
  94. package/dist/modules/Tests/components/UnitTests/UnitTests.d.ts +19 -0
  95. package/dist/modules/Tests/components/UnitTests/components/UnitTestRow/UnitTestRow.d.ts +16 -0
  96. package/dist/modules/Tests/components/UnitTests/components/UnitTestRow/index.d.ts +2 -0
  97. package/dist/modules/Tests/components/UnitTests/index.d.ts +2 -0
  98. package/dist/modules/Tests/helpers.d.ts +143 -0
  99. package/dist/modules/Tests/hooks/useMayTest.d.ts +10 -0
  100. package/dist/modules/Tests/hooks/useSaveSpaceTests.d.ts +14 -0
  101. package/dist/modules/Tests/hooks/useServerPlay.d.ts +26 -0
  102. package/dist/modules/Tests/hooks/useSpaceTests.d.ts +20 -0
  103. package/dist/modules/Tests/hooks/useTestProblems.d.ts +9 -0
  104. package/dist/modules/Tests/index.d.ts +4 -0
  105. package/dist/modules/Tests/studio/JourneyVisitor.d.ts +11 -0
  106. package/dist/modules/Tests/studio/TestStudioContext.d.ts +126 -0
  107. package/dist/modules/Tests/studio/TestStudioProvider.d.ts +5 -0
  108. package/dist/modules/Tests/studio/canvasPage.d.ts +22 -0
  109. package/dist/modules/Tests/studio/canvasWaits.d.ts +9 -0
  110. package/dist/modules/Tests/studio/flowPlay.d.ts +38 -0
  111. package/dist/modules/Tests/studio/playsAsGuest.d.ts +5 -0
  112. package/dist/modules/Tests/studio/reveal.d.ts +8 -0
  113. package/dist/modules/Tests/studio/sentences.d.ts +34 -0
  114. package/dist/modules/Tests/studio/spotlight.d.ts +13 -0
  115. package/dist/modules/Tests/studio/stepDelay.d.ts +11 -0
  116. package/dist/modules/Tests/studio/stepOfEvent.d.ts +12 -0
  117. package/dist/modules/Tests/studio/useCanvasStudio.d.ts +9 -0
  118. package/dist/modules/Tests/studio/useStudioCanvas.d.ts +26 -0
  119. package/dist/modules/Usages/helpers/copy.d.ts +3 -1
  120. package/dist/package.json.d.ts +2 -2
  121. package/dist/plitzi-builder.css +1 -1
  122. package/dist/plitzi-builder.css.gz +0 -0
  123. package/dist/plitzi-builder.js +2167 -1942
  124. package/dist/plitzi-builder.js.gz +0 -0
  125. package/dist/plitzi-functions-worker.js +1 -1
  126. package/package.json +16 -16
  127. package/dist/modules/App/components/AppHeader/BorderButton.d.ts +0 -2
  128. package/dist/modules/App/components/AppHeader/GridButton.d.ts +0 -3
  129. package/dist/modules/App/components/AppHeader/MotionButton.d.ts +0 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,167 @@
1
1
  # @plitzi/plitzi-builder
2
2
 
3
+ ## 0.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 587c35b: A team of agents on one project (`plitzi run`, `plitzi task`), the page tools those agents measure with, tests kept in
8
+ the space, and what authoring and the elements learnt from the runs. Each command and option is in the CLI's README;
9
+ how the runs work, in `docs/en/agent-runs.md`.
10
+
11
+ ## To do when you upgrade
12
+ - **Node 24.** `engines` is `^24.22.1 || >=26.12.1`; Node 22 is no longer supported (`plitzi doctor` says it,
13
+ `doctor --fix` raises an older project's `engines`).
14
+ - **`createServer({ outbound: { privateOrigins } })` replaces `allowPrivatePluginHosts`:** a space's requests reach no
15
+ private address but the origins named (`privateOrigins: ['http://localhost:9000']`).
16
+ - **Job queues from 0.38.20 or before are recreated, not upgraded:** `createMongoJobQueue` / `createMysqlJobQueue` empty
17
+ or drop the old `action_jobs` / `action_kv` and make them again; `mysqlJobSchemaUpgrades` is gone.
18
+ - **`PLITZI_KV_FILE` is `PLITZI_STATE_DIR`**, a folder holding the server's `kv` and job queue.
19
+ - **A social provider's `fetchProfile` takes `{ accessToken, idToken, nonce }`**, and `createSocialAuth(...).start` is
20
+ async.
21
+ - **A `DraftStore` of a deployment's own keeps `inspected`** beside `reusable`, or a test session renders without the
22
+ state bridge.
23
+ - **`navigation.navigate(url, { external, replace })`** takes an object where it took `navigate(url, true)`.
24
+ - **`window.__plitzi.setSource` / `setAttribute` may answer `{ refused }`**: read it before treating the answer as written.
25
+ - **Renamed:** `stepText` → `e2eStepText` (a run's `said` is the step in words); `OverQuotaNotice` → `QuotaNotice` and
26
+ its classes `plitzi-quota-notice…`; `sightOf` / `sightText` come from `@plitzi/sdk-shared/devTools/sight`.
27
+ - **`SchemaVariables` and `StyleVariables` draw no add button of their own:** the holder passes `adding`, `onAddingEnd`
28
+ and optionally `empty`.
29
+ - **A page handed to `runE2eTest`** has `selectOption`, `position` in `click`/`hover` and `evaluate(fn, arg)`, as a
30
+ Playwright locator: a hand-written page adds them.
31
+ - **Journey steps play as the page commands do:** `scroll` with `dx`/`dy` scrolls the element's content, `waitFor`
32
+ waits 10 s, `type` replaces a field's value.
33
+ - **Authoring refuses more:** two flows of one element naming a step alike (`step-duplicate`), `visible` written as an
34
+ expression (`visible-expression`), a step condition naming a source by id alone (`condition-short-source`).
35
+ `navbar` / `navbarItem` are no longer read by `specFromSpace`.
36
+ - **`/robots.txt` ends naming its sitemap** unless the space's own text does.
37
+ - **The CLI's part of a project is `.plitzi/`** (it was split with `plitzi/`): `plitzi doctor --fix` moves it, and a
38
+ tsconfig names `.plitzi/**/*`.
39
+ - **`plitzi upgrade`** brings the new scripts (`start:preview`, the visual suite's server on 8400, `test`), the ignores
40
+ for `.plitzi/plitzi-reports/` and the skills. `test` runs the project's own tests, so red tests now fail
41
+ `plitzi verify` and a run's checks.
42
+ - **Reports to Plitzi live in `.plitzi/plitzi-reports/`**, committed: a run's in `runs/<run>/`, an agent's in
43
+ `agents/<date>/`. The old files are read no more.
44
+ - **The CLI's surface is smaller — one command for each thing.** Old names and flags are refused naming the new one;
45
+ `plitzi upgrade skills --write` updates the agents' skills. The main moves: `run plan` / `run rehearse` →
46
+ `run open --dry-run [--rehearse]`; `run extend` → `run open <stage>`; `run purge` → `run abort`; `task take` →
47
+ `task next <task>`; `task ask` / `block` / `note` → `task tell --ask | --blocked | --handoff`; `task wait` / `release`
48
+ → `task claim --wait | --release`; `task request` → `task propose --file`; `task check --before | --mutate` →
49
+ `task prove`; `run feedback` → `run report --plitzi`; `functions pull|push` → `space pull|push functions`;
50
+ `runtime push` → `space push runtime`; `page shot --live` / `--clip` → `--fresh` / `--within`; `PLITZI_TASK_TOKEN` →
51
+ `PLITZI_TOKEN`.
52
+ - **Research and reviews are cards on one board:** `task spike` and the separate UI review are gone; a card's `review`
53
+ names its roles in order. Runs opened before keep working.
54
+ - **Page commands:** `page check --expect` fails only on what it expects; every page command reads at 900 px tall
55
+ (`--height`); a page that sends a guest away is read signed in as the project's account (`--as`, `--guest`).
56
+ - **`create --from`** names page files by the page's name; a space's functions are pushed without their tests.
57
+
58
+ ## A space's tests (`@plitzi/sdk-authoring`, `@plitzi/sdk-shared`, `@plitzi/plitzi-builder`, `@plitzi/sdk-mcp`)
59
+ - **Tests are part of the space's document** (`Schema.tests`): unit tests (element checks) and journeys (what a visitor
60
+ does), authored in code, edited in the builder's Tests area, played on the canvas or the server. See
61
+ `docs/en/space-tests.md`.
62
+ - **Journeys play signed in as test accounts** (`tests.accounts`), carry tags, can be held and stopped
63
+ (`runE2eTest`'s `beforeStep`), and hold element checks (`e2e.expectCheck`).
64
+ - **`plitzi test [id…]`** runs a project's tests; **`plitzi_test`** lets an agent run them over the MCP. What a plan
65
+ allows (`journeysPerSpace`, `serverRunsPerMonth`) is in its entitlements; a `canTest` grant writes tests alone.
66
+
67
+ ## Several agents on one project (`@plitzi/cli`)
68
+ - **A run is a kanban:** a lead plans, reviews and closes; developers, testers, designers and scouts take cards with
69
+ `task next`, each in its own copy of the project; every card is reviewed by the roles it names, step by step.
70
+ Nothing reaches the project until a person applies the run (`run finish --apply`).
71
+ - **Files are owned by imports:** one agent per file, shared files taken by turns or changed by agreement
72
+ (`task propose`), merged line by line, checked on the whole result.
73
+ - **The run keeps itself going:** a keeper starts the agents work is waiting for, and holds
74
+ starts after the harness's limit or repeated quick exits until the lead allows them (`run hold`, `run allow`).
75
+ - **`run monitor`:** the run live in a terminal — board, flow, agents, spend, activity — with an emergency panel (`!`)
76
+ to pause, resume, hold or allow agents.
77
+ - **A change mid-run says what it reaches:** `run open <stage> --dry-run` and `run amend --dry-run` name the approved
78
+ tasks, tasks at work and tests each change touches, read off the import graph.
79
+ - **Reviews see what goes in:** a review taken says whether the task merges with the run's newer work and, if not, the
80
+ failing lines; `task show <file> --merged` and `task look --merged` read and serve the merge;
81
+ `task look --alone <element> --with '{…}'` draws a component or plugin no page places yet. A step's time stops while
82
+ its reviewer proves or looks.
83
+ - **Proofs:** `task prove --before` (what each acceptance line proves against the run before the task) and
84
+ `--mutate` (whether a task's tests catch a broken change, with a control run).
85
+ - **The finish:** `run finish` checks the whole result and stops at the first failing line; `--every-line` reports
86
+ them all. The run then leaves its reports in `.plitzi/plitzi-reports/runs/<run>/`.
87
+ - **A report to Plitzi holds nothing of the person or the project:** a run's `feedback.md` writes over names, emails,
88
+ addresses, IPs, the project's files, tasks and elements, leaves out what was said of the project alone, and lists
89
+ quoted passages for the person to read before sending. `plitzi feedback` carries no project name, asks the developer
90
+ before anything of the project goes in, and `plitzi feedback --check <file>` names what a filled report still holds.
91
+
92
+ ## Page tools (`@plitzi/cli`, `@plitzi/sdk-authoring`)
93
+ - **`page measure`** reads what an element draws (`--only drawn`, `box-*`, `attr:<name>`, `accessible-name`,
94
+ `scroll-*`, custom properties) and holds bounds and positions (`--expect "width<=44px"`, `"a.bottom + 8 <= b.top"`).
95
+ - **`page play`** plays steps — `drag … hold`, `scroll page 1500`, `click <el> 30%,60%` — reads what is drawn, not
96
+ what is in the DOM, and `--motion` plays animations moving. A press is made once and waits for the page to take it.
97
+ - **`page check`** says what a visitor cannot reach, text cut or spilling, canvases left blank, the server's error page
98
+ when the space does not author, and holds a text whole (`=`) or in part (`~`).
99
+ - **`page shot`** waits for canvases, pictures hovers (`--hover`, `--frames`) and parts (`--within`), and says what it
100
+ could not picture.
101
+ - **Every page command reads a page as one visitor from the same flags** (`--as`, `--guest`, `--width`, `--height`,
102
+ `--fresh`), with a browser driver of the CLI's own.
103
+
104
+ ## Authoring (`@plitzi/sdk-authoring`)
105
+ - **New checks:** a server provider the page server cannot read (`server-query-unresolved`) or that reads browser state
106
+ (`server-when-unknown`), an action without `runtime: 'server'` (`server-source-in-browser`), class overrides,
107
+ messages arriving while a flow runs, unused plugins.
108
+ - **New authoring:** `focus('field')`, a factory for every trigger, the scroll family's sides, `pagesIn(...)` to
109
+ register pages by folder, channel topics with a choice, a plugin's imported stylesheets read for its tokens.
110
+ - **An element drawn alone:** a server started with `PLITZI_PREVIEW_FILE` gets a page for one element at
111
+ `/plitzi-preview` (`withPreview`, `SpacePreviewError`) — what `task look --alone` uses.
112
+
113
+ ## Elements and the SDK (`@plitzi/sdk-elements`, `@plitzi/plitzi-sdk`, `@plitzi/sdk-shared`)
114
+ - **Navigation:** `navigate` can replace the address, and a navigation inside the site leaves the scroll as a page
115
+ load would.
116
+ - **Providers:** a `when` holds the same in the browser and on the page server; a server provider can read another
117
+ site's address while the page is built.
118
+ - **Plans and roles in the contract:** entitlements (`TSpaceEntitlements`), the space role (`TSpaceAccess`), the quota
119
+ warning at 80% (`render.quotaNear`) and the "Made with Plitzi" badge (`PlitziBadge`).
120
+ - **Fixes:** a binding's `sourceTo` is the previous value; an element with no tag and no `visible` draws nothing;
121
+ placeholder words never reach a page; notifications stay open for a visitor who asked for less motion.
122
+
123
+ ## Server (`@plitzi/sdk-server`, `@plitzi/sdk-auth`, `@plitzi/sdk-mcp`)
124
+ - **`/sitemap.xml`** for every space, and `/robots.txt` naming it.
125
+ - **Accounts:** terms accepted at sign-up (MySQL schema version 7), single sign-on with any OpenID Connect issuer
126
+ (`createOidcProvider`), providers resolved at run time, a password that may not sign in, `/auth/continue` with a step
127
+ of the deployment's own, a signed-out visitor never signed back in by a stale answer.
128
+ - **Policy adapters:** metering can hold a page back (503), decide the badge and `noindex`; the MCP can cap tool calls
129
+ and names the space's plan; realtime admits spaces per deployment.
130
+ - **Dev server:** a removed plugin folder is unregistered (`PluginRegistry.unregister`), and a space that does not
131
+ author is said whole, with no stack.
132
+
133
+ ## The builder (`@plitzi/plitzi-builder`)
134
+ - **A Tests area** with journeys played beside the page at the journey's device, and element checks.
135
+ - **One way to build a panel**, a header grouped by what its controls do, and the layout's mask dimming only what the
136
+ layout draws.
137
+ - **Plans and roles shown:** what the role allows (`useSpaceAccess`), what the plan leaves out shown locked, the plan
138
+ and its spend in the header; pages left out of the sitemap marked.
139
+
140
+ ## Dev tools (`@plitzi/sdk-dev-tools`)
141
+ - **`element(id).visible` is what a visitor sees** (`sightOf`), with why not; `element(id).resolved` says what each
142
+ binding gave; a refused server action is a `refused` step.
143
+ - **Report what you see** in the Run tab of a run's preview, and the panel docks at the bottom under 900 px.
144
+
145
+ ## The workspace
146
+ - **No file past 600 lines of code** (`max-lines`), and ESLint's `quotes` rule is gone — Prettier writes them.
147
+
148
+ ### Patch Changes
149
+
150
+ - Updated dependencies [587c35b]
151
+ - @plitzi/plitzi-sdk@0.39.0
152
+ - @plitzi/sdk-auth@0.39.0
153
+ - @plitzi/sdk-authoring@0.39.0
154
+ - @plitzi/sdk-dev-tools@0.39.0
155
+ - @plitzi/sdk-elements@0.39.0
156
+ - @plitzi/sdk-event-bridge@0.39.0
157
+ - @plitzi/sdk-interactions@0.39.0
158
+ - @plitzi/sdk-navigation@0.39.0
159
+ - @plitzi/sdk-plugins@0.39.0
160
+ - @plitzi/sdk-schema@0.39.0
161
+ - @plitzi/sdk-shared@0.39.0
162
+ - @plitzi/sdk-style@0.39.0
163
+ - @plitzi/sdk-variables@0.39.0
164
+
3
165
  ## 0.38.24
4
166
 
5
167
  ### Patch Changes
@@ -3838,7 +4000,7 @@ author`, `plitzi_validate`/`plitzi_apply`, `plitzi explain` and the builder's pr
3838
4000
  - **Devices are listed by device, not by session.** `GET /devices/sessions` groups sessions by what they were created
3839
4001
  from and answers this device apart; a browser that signed in forty times is one row saying "40 sessions". The list
3840
4002
  had shipped and drawn every session — 1,218 for one account a test suite signs in as — inside a box that scrolled.
3841
- - **Every device is named for what it is**: the application as it registered over OAuth (`Plitzi CLI on carlos-mbp`,
4003
+ - **Every device is named for what it is**: the application as it registered over OAuth (`Plitzi CLI on dev-laptop`,
3842
4004
  `Plitzi Desktop on studio`), a browser and its system, an automated client (Playwright, headless Chrome) — never a
3843
4005
  raw user agent. Sessions record their address and **when they were last used** (at most every five minutes, on the
3844
4006
  lookup a request already makes). A sign-in deletes the account's dead sessions.
package/dist/index.html CHANGED
@@ -50,10 +50,10 @@
50
50
  render(
51
51
  'plitzi',
52
52
  {
53
- webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwib3JpZ2lucyI6WyJodHRwczovL3dlYnNpdGUucGxpdHppLmFwcCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCIsImh0dHBzOi8vZGV2LnBsaXR6aS5jb20iLCJodHRwczovL3BsaXR6aS5jb20iLCJodHRwczovL3N0Zy5wbGl0emkuY29tIl0sImlzcyI6Imh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImF1ZCI6WyJodHRwczovL3BsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAwIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDEiLCJodHRwczovL2FwaS5wbGl0emkubG9jYWwiLCJodHRwczovL3Nzci5wbGl0emkubG9jYWwiLCJodHRwczovL3NlcnZlci5wbGl0emkubG9jYWwiLCJodHRwczovL21jcC5wbGl0emkubG9jYWwiLCJodHRwczovL2F1dGgucGxpdHppLmxvY2FsIiwiaHR0cDovLzEyNy4wLjAuMTo1MzAwIiwiaHR0cDovL2xvY2FsaG9zdDo1MTgwIl0sInNjb3BlIjoic3BhY2U6cmVuZGVyIiwiaWF0IjoxNzkwMjEzMjg5LCJqdGkiOiJhZDgyN2EyMjliZjhlMzk3IiwibmJmIjoxNzkwMjEzMjg5fQ.dedpVVA5Nv3Xr7nEOZ8UmEJcIamF9AHGnLgqQyDV8-k',
53
+ webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyIiwib3JpZ2lucyI6WyJodHRwczovL2F1dGgucGxpdHppLmFwcCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwczovL2F1dGgtZGV2LnBsaXR6aS5jb20iLCJodHRwczovL2F1dGgtc3RnLnBsaXR6aS5jb20iLCJodHRwczovL2F1dGgucGxpdHppLmNvbSIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6NDcxODAiXSwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwczovL2RvY3MucGxpdHppLmxvY2FsIiwiaHR0cDovLzEyNy4wLjAuMTo1MzAwIiwiaHR0cDovL2xvY2FsaG9zdDo1MTgwIl0sInNjb3BlIjoic3BhY2U6cmVuZGVyIiwiaWF0IjoxNzkzNDk2MDkzLCJqdGkiOiI5OGEwODhkM2RkMThkYmVhIiwibmJmIjoxNzkzNDk2MDkzfQ.FCp1812ZwHg4a02L69ig_0uECGI5GABRQdnNofACJ0A',
54
54
  // The actor. Without it the builder loads and every write is refused, since authorization is
55
55
  // can(actor, space, permission). Both halves come from `yarn token 1 --user admin` in plitzi-sdk-server.
56
- userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwOi8vMTI3LjAuMC4xOjUzMDAiLCJodHRwOi8vbG9jYWxob3N0OjUxODAiXSwic2NvcGUiOiJ1c2VyIiwiZXhwIjoxNzkyNDMxMTA1LCJpYXQiOjE3OTIzNDQ3MDUsImp0aSI6IjUwNjFmMmM3NDlhZTJlZTIiLCJuYmYiOjE3OTIzNDQ3MDV9.k_Ju7vY8JFIIZIQdU_H8CdeQ9kAp_Pb4yGhlNI2Ld_U',
56
+ userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwczovL2RvY3MucGxpdHppLmxvY2FsIiwiaHR0cDovLzEyNy4wLjAuMTo1MzAwIiwiaHR0cDovL2xvY2FsaG9zdDo1MTgwIl0sInNjb3BlIjoidXNlciIsImV4cCI6MTc5MzYyNjQ2NSwiaWF0IjoxNzkzNTQwMDY1LCJqdGkiOiIwMzQ2MjIzMmJlZjM3Y2QwIiwibmJmIjoxNzkzNTQwMDY1fQ.QqlaPQ4LVKc8YrXmJk7t4itmHhtiivl9bx8R8dGGKas',
57
57
  environment: 'main',
58
58
  functionsWorkerUrl: '/plitzi-functions-worker.js',
59
59
  sdkIconsStylePath: '',
@@ -3,5 +3,5 @@
3
3
  * the credentials they use and its runtime — under one entry of the sidebar. Whether the space HAS a server to run them is said here, once, above them
4
4
  * all.
5
5
  */
6
- declare const ContainerServer: () => import('react').JSX.Element;
6
+ declare const ContainerServer: () => import('react').JSX.Element | null;
7
7
  export default ContainerServer;
@@ -1,3 +1,6 @@
1
- /** The space's settings, who may visit it — the roles it declares and who holds them — and its realtime channels. */
1
+ /**
2
+ * The space's settings, who it is where a link to it shows (Sharing), who may visit it — the roles it declares and who
3
+ * holds them — and its realtime channels.
4
+ */
2
5
  declare const ContainerSettings: () => import('react').JSX.Element;
3
6
  export default ContainerSettings;
@@ -0,0 +1,6 @@
1
+ export type ContainerTestsProps = {
2
+ externalStyle?: string;
3
+ };
4
+ /** The space's own tests, in place of the canvas — with a canvas of their own: an entry of the sidebar, as Server is. */
5
+ declare const ContainerTests: ({ externalStyle }: ContainerTestsProps) => import('react').JSX.Element;
6
+ export default ContainerTests;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Who the site is where a link to it shows — its name, its language, its tab's icon, the picture a link shows when a
3
+ * page names none, the colour a phone paints around it — and what search engines may crawl (`robots.txt`). Held as it
4
+ * is typed to what a head reads (`spaceIdentityProblems`), the same check authoring refuses on; a page's own title,
5
+ * description and picture are the page's (its settings → SEO).
6
+ */
7
+ declare const SharingSettings: () => import('react').JSX.Element;
8
+ export default SharingSettings;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('react').MemoExoticComponent<() => import('react').JSX.Element | null>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('react').MemoExoticComponent<() => import('react').JSX.Element | null>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * How the canvas is drawn, in one group as history and the devices are: the elements' outlines (dark, light, none),
3
+ * the layout grid, and the elements' declared motion — still while editing, played from the start on asking. Drawn as
4
+ * the group's own icons: `IconGroup` keeps only those of its children.
5
+ */
6
+ declare const ViewButtons: () => import('react').JSX.Element;
7
+ export default ViewButtons;
@@ -6,7 +6,9 @@ export type EmptyStateProps = {
6
6
  description?: ReactNode;
7
7
  /** What starts it — usually the one button that creates the first one. */
8
8
  action?: ReactNode;
9
+ /** `page` in a view that takes the canvas' place; `panel` in the sidebar's narrow column. */
10
+ size?: 'page' | 'panel';
9
11
  };
10
12
  /** A subject with nothing in it yet: what it is for, and the way to start. The same everywhere it appears. */
11
- declare const EmptyState: ({ icon, title, description, action }: EmptyStateProps) => import('react').JSX.Element;
13
+ declare const EmptyState: ({ icon, title, description, action, size }: EmptyStateProps) => import('react').JSX.Element;
12
14
  export default EmptyState;
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * `info` says how something works; `caution` asks for a look — calm, nothing broke; `danger` is for what did break,
4
+ * and only that; `success` says something went through.
5
+ */
6
+ export type NoticeTone = 'info' | 'caution' | 'danger' | 'success';
7
+ export type NoticeProps = {
8
+ children: ReactNode;
9
+ tone?: NoticeTone;
10
+ /** Where to go for more, as a link after the words. */
11
+ link?: {
12
+ label: string;
13
+ href: string;
14
+ };
15
+ /** Closed by the person: a notice they may dismiss. */
16
+ onClose?: () => void;
17
+ className?: string;
18
+ };
19
+ /**
20
+ * Something said beside where it matters — the one way the builder says it: one size, soft, in one of four tones.
21
+ */
22
+ declare const Notice: ({ children, tone, link, onClose, className }: NoticeProps) => import('react').JSX.Element;
23
+ export default Notice;
@@ -0,0 +1,3 @@
1
+ import { default as Notice } from './Notice';
2
+ export * from './Notice';
3
+ export default Notice;
@@ -0,0 +1,9 @@
1
+ export type PanelSearchProps = {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ /** What it finds, in a few words: "Search elements". */
5
+ placeholder: string;
6
+ };
7
+ /** A panel's one search field: the same size, icon and place in every panel of the sidebar. */
8
+ declare const PanelSearch: ({ value, onChange, placeholder }: PanelSearchProps) => import('react').JSX.Element;
9
+ export default PanelSearch;
@@ -0,0 +1,3 @@
1
+ import { default as PanelSearch } from './PanelSearch';
2
+ export * from './PanelSearch';
3
+ export default PanelSearch;
@@ -0,0 +1,22 @@
1
+ import { ReactNode } from 'react';
2
+ export type PanelAction = {
3
+ /** What it makes, in sentence case: "New variable". */
4
+ label: string;
5
+ onClick: () => void;
6
+ disabled?: boolean;
7
+ /** Why it is disabled, said on hover. */
8
+ title?: string;
9
+ };
10
+ export type PanelToolbarProps = {
11
+ /** The panel's search — `PanelSearch` — taking the room left by the action. */
12
+ children?: ReactNode;
13
+ /** The panel's primary action: at the top right of every panel, never pinned below or across the width. */
14
+ action?: PanelAction;
15
+ };
16
+ /**
17
+ * The top of a sidebar panel: its search and its primary action, in one row — the same place in every panel, so what
18
+ * makes something new is found where it was in the last one. Beside a search the action is its "+" alone, named on
19
+ * hover and to a reader — a narrow panel left the search too short to read; alone, it says its name across the row.
20
+ */
21
+ declare const PanelToolbar: ({ children, action }: PanelToolbarProps) => import('react').JSX.Element;
22
+ export default PanelToolbar;
@@ -0,0 +1,3 @@
1
+ import { default as PanelToolbar } from './PanelToolbar';
2
+ export * from './PanelToolbar';
3
+ export default PanelToolbar;
@@ -1,4 +1,5 @@
1
1
  import { ElementFlagGate } from '@plitzi/sdk-shared';
2
+ import { SitemapExclusion } from '@plitzi/sdk-shared/navigation';
2
3
  /**
3
4
  * Who may open a page, as the page's `accessLevel` decides it: unset is anyone, `public` is only somebody signed out,
4
5
  * `authenticated` only somebody signed in.
@@ -17,6 +18,8 @@ export type SitemapPage = {
17
18
  flag?: ElementFlagGate;
18
19
  /** Where somebody it refuses is sent, by page name. */
19
20
  redirectTo?: string;
21
+ /** Why the site's `/sitemap.xml` leaves it out — the server's own reason (`sitemapExclusion`) — or nothing: it lists it. */
22
+ notInSitemap?: SitemapExclusion;
20
23
  };
21
24
  export type SitemapFolder = {
22
25
  type: 'folder';
@@ -0,0 +1,7 @@
1
+ export type SnapshotPruneNoticeProps = {
2
+ /** The environment the snapshot is about to be taken into. */
3
+ environment: string;
4
+ };
5
+ /** What the snapshot about to be taken removes, said before it is taken. Nothing when it removes none. */
6
+ declare const SnapshotPruneNotice: ({ environment }: SnapshotPruneNoticeProps) => import('react').JSX.Element | null;
7
+ export default SnapshotPruneNotice;
@@ -0,0 +1,5 @@
1
+ import { NextPrune } from '../../../Space/hooks/useNextPrune';
2
+ /** `production:2 (2 Oct 2026)`: a snapshot as the dialog names it. */
3
+ export declare const snapshotName: ({ environment, revision, publishedAt }: NextPrune["removes"][number]) => string;
4
+ /** What the next snapshot removes, said in a sentence; empty when it removes nothing. */
5
+ export declare const pruneSentence: (prune: NextPrune) => string;
@@ -0,0 +1,2 @@
1
+ export { default } from './SnapshotPruneNotice';
2
+ export type { SnapshotPruneNoticeProps } from './SnapshotPruneNotice';
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ export type ViewTab<T extends string> = {
3
+ id: T;
4
+ label: string;
5
+ /** Said beside the label: what in the tab needs a look. */
6
+ mark?: ReactNode;
7
+ };
8
+ export type ViewTabsProps<T extends string> = {
9
+ tabs: readonly ViewTab<T>[];
10
+ selected: T;
11
+ onSelect: (id: T) => void;
12
+ size?: 'xs' | 'sm';
13
+ };
14
+ /**
15
+ * The builder's tabs — the segmented row of `ContainerTabs`, with its theme — as buttons with a tab's role, and room
16
+ * beside a label for what the tab holds that needs a look.
17
+ */
18
+ declare const ViewTabs: <T extends string>({ tabs, selected, onSelect, size }: ViewTabsProps<T>) => import('react').JSX.Element;
19
+ export default ViewTabs;
@@ -0,0 +1,3 @@
1
+ import { default as ViewTabs } from './ViewTabs';
2
+ export * from './ViewTabs';
3
+ export default ViewTabs;
@@ -3,11 +3,13 @@ import { PopupInstance } from '@plitzi/plitzi-ui/components';
3
3
  * The entries of the sidebar that REPLACE the canvas instead of opening beside it. `AppContainer` draws them; here they
4
4
  * are only an icon, and alone on the side while open.
5
5
  */
6
- export declare const FULL_VIEW_IDS: readonly ["server", "settings"];
6
+ export declare const FULL_VIEW_IDS: readonly ["tests", "server", "settings"];
7
7
  export type FullViewId = (typeof FULL_VIEW_IDS)[number];
8
8
  export declare const isFullViewId: (id: string | undefined) => id is FullViewId;
9
- export declare const getPopups: ({ activeIds }: {
9
+ export declare const getPopups: ({ activeIds, may }: {
10
10
  activeIds?: string[];
11
+ /** Whether the person's role allows a space permission (`useSpaceAccess`); everything, when not said. */
12
+ may?: (permission: string) => boolean;
11
13
  }) => {
12
14
  left: PopupInstance[];
13
15
  right: PopupInstance[];
@@ -9,6 +9,8 @@ export type BuilderAreaProps = {
9
9
  mobilePreview?: boolean;
10
10
  previewMode?: boolean;
11
11
  debugMode?: boolean;
12
+ /** The canvas alone, its frame — size, padding, shadow — drawn by whoever places it: the Tests area's devices. */
13
+ bare?: boolean;
12
14
  };
13
- declare const _default: import('react').MemoExoticComponent<({ className, customCss, externalStyle, displayMode, showHeader, headerTitle, mobilePreview, previewMode, debugMode }: BuilderAreaProps) => import('react').JSX.Element>;
15
+ declare const _default: import('react').MemoExoticComponent<({ className, customCss, externalStyle, displayMode, showHeader, headerTitle, mobilePreview, previewMode, debugMode, bare }: BuilderAreaProps) => import('react').JSX.Element>;
14
16
  export default _default;
@@ -0,0 +1,22 @@
1
+ import { ComponentDefinition, Element } from '@plitzi/sdk-shared';
2
+ type Option = {
3
+ label: string;
4
+ value: unknown;
5
+ };
6
+ export type ElementContentSettingsProps = {
7
+ type: string;
8
+ /** What the builder registered for the type: a plugin's carries its manifest. */
9
+ registered: ComponentDefinition | undefined;
10
+ attributes: Element['attributes'];
11
+ /** The role views the space: the content is shown, never changed. */
12
+ readOnly: boolean;
13
+ onChange: (key: string, value: string | Option[]) => void;
14
+ };
15
+ /**
16
+ * The inspector of a role that edits the content and not the design: the element's content attributes —
17
+ * its words, a link's address, an image's source — as a form, read as the server's gate reads them
18
+ * (`contentAttributesFor`). Nothing else of the element is offered, so nothing is changed that the server would refuse.
19
+ * A select's choices are its labels alone: their values are what the page reads, the design's to change.
20
+ */
21
+ declare const ElementContentSettings: ({ type, registered, attributes, readOnly, onChange }: ElementContentSettingsProps) => import('react').JSX.Element;
22
+ export default ElementContentSettings;
@@ -1,10 +1,12 @@
1
1
  import { ElementMotion, MotionEnter, MotionLoop, MotionTrigger } from '@plitzi/sdk-shared/schema';
2
2
  export type Timing = 'duration' | 'delay' | 'stagger';
3
- /** What the fields hold while typed: the presets as chosen, the timings as written. */
3
+ /** What the fields hold while typed: the presets as chosen, the timings, the curve and the distance as written. */
4
4
  export type Draft = {
5
5
  enter: string;
6
6
  on: string;
7
7
  loop: string;
8
+ easing: string;
9
+ distance: string;
8
10
  } & Record<Timing, string>;
9
11
  export type PresetKind = 'enter' | 'loop';
10
12
  /** A preset as a person reads it: its name, what it looks like, and the words the summary says it with. */
@@ -0,0 +1,7 @@
1
+ import { ComponentDefinition } from '@plitzi/sdk-shared';
2
+ /**
3
+ * The content attributes of a type, read where the server's gate reads them: a plugin's in its manifest — over a
4
+ * built-in type of the same name — and a built-in's in its declaration (`contentAttributesOf`).
5
+ */
6
+ declare const contentAttributesFor: (type: string, registered: ComponentDefinition | undefined) => readonly string[];
7
+ export default contentAttributesFor;
@@ -2,8 +2,8 @@
2
2
  * A copy of the space on screen, as JSON or as the code that authors it.
3
3
  *
4
4
  * Generated as soon as a format is picked and shown before anything is saved, so the code can be copied straight into
5
- * an editor, or downloaded, from the one row of actions above it. A paid-plan capability: on the free plan the dialog
6
- * says what export is instead.
5
+ * an editor, or downloaded, from the one row of actions above it. The code is a paid plan's: on the free plan the dialog
6
+ * says so in its place and offers the JSON, which every plan downloads.
7
7
  */
8
8
  declare const ExportSpace: () => import('react').JSX.Element;
9
9
  export default ExportSpace;
@@ -1,7 +1,9 @@
1
1
  export type ExportLockedProps = {
2
2
  /** The plan the workspace is on, to say what it is being compared with. */
3
3
  planName?: string;
4
+ /** Shows the JSON instead, which every plan exports. */
5
+ onPickJson: () => void;
4
6
  };
5
- /** What export is and which plans have it — in place of the result, for a workspace on the free plan. */
6
- declare const ExportLocked: ({ planName }: ExportLockedProps) => import('react').JSX.Element;
7
+ /** What exporting as code is and which plans have it — in place of the result, for a workspace on the free plan. */
8
+ declare const ExportLocked: ({ planName, onPickJson }: ExportLockedProps) => import('react').JSX.Element;
7
9
  export default ExportLocked;
@@ -9,3 +9,8 @@ export type ExportFormatOption = {
9
9
  export declare const EXPORT_FORMATS: readonly ExportFormatOption[];
10
10
  export declare const DEFAULT_EXPORT_FORMAT: ExportFormat;
11
11
  export declare const descriptionOf: (format: ExportFormat) => string;
12
+ /**
13
+ * Whether `format` is held back by the workspace's plan: the code is a paid plan's, the documents are every plan's — a
14
+ * free workspace takes its work as JSON. `refused`: the server said so, the plan unread.
15
+ */
16
+ export declare const exportLocked: (format: ExportFormat, isFree: boolean, refused: boolean) => boolean;
@@ -1,7 +1,7 @@
1
- import { SpecCorrection } from '@plitzi/sdk-authoring';
2
- export declare const repairLabel: (code: string) => string;
1
+ import { SpecCorrection, SpecCorrectionCode } from '@plitzi/sdk-authoring';
2
+ export declare const repairLabel: (code: SpecCorrectionCode) => string;
3
3
  /** Removed, corrected or kept: what the reader DID, which is what the icon beside a kind of repair says. */
4
- export declare const repairIcon: (code: string) => string;
4
+ export declare const repairIcon: (code: SpecCorrectionCode) => string;
5
5
  /** A stretch of a message; `key` is its place in the message, which is fixed — a message is never reordered. */
6
6
  export type MessagePart = {
7
7
  key: string;
@@ -16,7 +16,7 @@ export type MessagePart = {
16
16
  */
17
17
  export declare const messageParts: (message: string) => MessagePart[];
18
18
  export type CorrectionGroup = {
19
- code: string;
19
+ code: SpecCorrectionCode;
20
20
  label: string;
21
21
  total: number;
22
22
  messages: {
@@ -3,8 +3,8 @@ import { ExportFormat } from '../helpers/exportFormats';
3
3
  * One visit to the export dialog: the format picked, what each format came to, and which file is on screen.
4
4
  *
5
5
  * A format is generated the first time it is shown and kept, so going back to one already seen is instant — the dialog
6
- * is short-lived, and nothing in it edits the space. Nothing is generated for a free plan: the dialog says what export
7
- * is instead, and the server would refuse the code anyway.
6
+ * is short-lived, and nothing in it edits the space. A free plan's is the JSON alone: the code is not generated for it —
7
+ * the dialog says so and offers the JSON — and the server would refuse it anyway.
8
8
  */
9
9
  declare const useExportSession: () => {
10
10
  format: ExportFormat;
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
2
2
  export type NavigationProviderProps = {
3
3
  children?: ReactNode;
4
4
  };
5
- declare const NavigationProvider: ({ children }: NavigationProviderProps) => import('react').JSX.Element | "Not Found" | "Access Denied";
5
+ declare const NavigationProvider: ({ children }: NavigationProviderProps) => string | import('react').JSX.Element;
6
6
  export default NavigationProvider;
@@ -0,0 +1,13 @@
1
+ export type PlanNoticeProps = {
2
+ /** The capability the panel is about, as the server's entitlements name it: `functions`, `visitors`… */
3
+ capability: string;
4
+ /** What the panel's work does on a plan without it, said after the plan: "Saved functions are kept; they do not run." */
5
+ meanwhile?: string;
6
+ };
7
+ /**
8
+ * Where a panel's capability is not in the space's plan, says so at its top — the plan that includes it and the way
9
+ * there — before anyone fills in a form the server will refuse. Nothing when the plan includes it, or
10
+ * when the server answered no plan at all (a self-hosted deployment).
11
+ */
12
+ declare const PlanNotice: ({ capability, meanwhile }: PlanNoticeProps) => import('react').JSX.Element | null;
13
+ export default PlanNotice;
@@ -0,0 +1,2 @@
1
+ export { default } from './PlanNotice';
2
+ export type { PlanNoticeProps } from './PlanNotice';
@@ -0,0 +1,16 @@
1
+ /** What taking the next snapshot of an environment would remove, as the server answers it. */
2
+ export type NextPrune = {
3
+ /** Unpublished snapshots the space's plan keeps. */
4
+ keep: number;
5
+ removes: {
6
+ environment: string;
7
+ revision: number;
8
+ publishedAt: string;
9
+ }[];
10
+ };
11
+ /**
12
+ * What the next snapshot of `environment` would remove — asked whenever the environment changes. Nothing when the
13
+ * server does not answer it (a self-hosted server keeps every snapshot).
14
+ */
15
+ declare const useNextPrune: (environment: string) => NextPrune | undefined;
16
+ export default useNextPrune;
@@ -0,0 +1,17 @@
1
+ import { TCapability, TSpaceAccess, TSpaceEntitlements } from '@plitzi/sdk-shared/network';
2
+ /**
3
+ * What the person's role on the space allows: the builder offers that and nothing the server would refuse —
4
+ * everything, until the server says otherwise.
5
+ */
6
+ export declare const useSpaceAccess: () => {
7
+ access: TSpaceAccess | undefined;
8
+ may: (permission: string) => boolean;
9
+ };
10
+ /** What the space's plan includes, and the way to what it does not. Everything, until the server says otherwise. */
11
+ declare const useSpaceEntitlements: () => {
12
+ entitlements: TSpaceEntitlements | undefined;
13
+ included: (capability: string) => boolean;
14
+ /** What the plan says of a capability it does not include: its words, the plan that does and the link. */
15
+ locked: (capability: string) => TCapability | undefined;
16
+ };
17
+ export default useSpaceEntitlements;
@@ -0,0 +1,10 @@
1
+ export type TestsProps = {
2
+ /** The editor's own CSS for the canvas the journeys are played on. */
3
+ externalStyle?: string;
4
+ };
5
+ /**
6
+ * The space's own tests, kept in its document and held where it ships. Its flows — what a visitor does, end
7
+ * to end — beside the page they are played on; its element checks — one element for a state, checked on every save.
8
+ */
9
+ declare const Tests: ({ externalStyle }: TestsProps) => import('react').JSX.Element;
10
+ export default Tests;