@plitzi/plitzi-builder 0.38.24 → 0.39.1
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 +184 -1
- package/dist/index.html +2 -2
- package/dist/modules/App/AppContainer/containers/ContainerServer.d.ts +1 -1
- package/dist/modules/App/AppContainer/containers/ContainerSettings.d.ts +4 -1
- package/dist/modules/App/AppContainer/containers/ContainerTests.d.ts +6 -0
- package/dist/modules/App/AppContainer/containers/SharingSettings.d.ts +8 -0
- package/dist/modules/App/components/AppHeader/PlanBadge.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/RoleBadge.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/ViewButtons.d.ts +7 -0
- package/dist/modules/App/components/EmptyState/EmptyState.d.ts +3 -1
- package/dist/modules/App/components/Notice/Notice.d.ts +23 -0
- package/dist/modules/App/components/Notice/index.d.ts +3 -0
- package/dist/modules/App/components/PanelSearch/PanelSearch.d.ts +9 -0
- package/dist/modules/App/components/PanelSearch/index.d.ts +3 -0
- package/dist/modules/App/components/PanelToolbar/PanelToolbar.d.ts +22 -0
- package/dist/modules/App/components/PanelToolbar/index.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/types.d.ts +3 -0
- package/dist/modules/App/components/SnapshotPruneNotice/SnapshotPruneNotice.d.ts +7 -0
- package/dist/modules/App/components/SnapshotPruneNotice/helpers.d.ts +5 -0
- package/dist/modules/App/components/SnapshotPruneNotice/index.d.ts +2 -0
- package/dist/modules/App/components/ViewTabs/ViewTabs.d.ts +19 -0
- package/dist/modules/App/components/ViewTabs/index.d.ts +3 -0
- package/dist/modules/App/helpers/utils.d.ts +4 -2
- package/dist/modules/Builder/components/BuilderArea/BuilderArea.d.ts +3 -1
- package/dist/modules/Builder/components/BuilderElementTools/ElementContentSettings.d.ts +22 -0
- package/dist/modules/Builder/components/BuilderElementTools/ElementMotion/helpers.d.ts +3 -1
- package/dist/modules/Builder/components/BuilderElementTools/contentAttributesFor.d.ts +7 -0
- package/dist/modules/Export/ExportSpace.d.ts +2 -2
- package/dist/modules/Export/components/ExportLocked/ExportLocked.d.ts +4 -2
- package/dist/modules/Export/helpers/exportFormats.d.ts +5 -0
- package/dist/modules/Export/helpers/repairs.d.ts +4 -4
- package/dist/modules/Export/hooks/useExportSession.d.ts +2 -2
- package/dist/modules/Navigation/NavigationProvider.d.ts +1 -1
- package/dist/modules/Space/components/PlanNotice/PlanNotice.d.ts +13 -0
- package/dist/modules/Space/components/PlanNotice/index.d.ts +2 -0
- package/dist/modules/Space/hooks/useNextPrune.d.ts +16 -0
- package/dist/modules/Space/hooks/useSpaceEntitlements.d.ts +17 -0
- package/dist/modules/Tests/Tests.d.ts +10 -0
- package/dist/modules/Tests/accounts.d.ts +18 -0
- package/dist/modules/Tests/components/AreaStats/AreaStats.d.ts +12 -0
- package/dist/modules/Tests/components/AreaStats/index.d.ts +1 -0
- package/dist/modules/Tests/components/CanvasPane/CanvasPane.d.ts +10 -0
- package/dist/modules/Tests/components/CanvasPane/index.d.ts +1 -0
- package/dist/modules/Tests/components/E2eRunView/E2eRunView.d.ts +13 -0
- package/dist/modules/Tests/components/E2eRunView/components/RunStep/RunStep.d.ts +10 -0
- package/dist/modules/Tests/components/E2eRunView/components/RunStep/index.d.ts +2 -0
- package/dist/modules/Tests/components/E2eRunView/index.d.ts +2 -0
- package/dist/modules/Tests/components/FlowList/FlowList.d.ts +25 -0
- package/dist/modules/Tests/components/FlowList/components/FlowRow/FlowRow.d.ts +34 -0
- package/dist/modules/Tests/components/FlowList/components/FlowRow/index.d.ts +2 -0
- package/dist/modules/Tests/components/FlowList/components/StatePill/StatePill.d.ts +10 -0
- package/dist/modules/Tests/components/FlowList/components/StatePill/index.d.ts +2 -0
- package/dist/modules/Tests/components/FlowList/components/TagFilter/TagFilter.d.ts +17 -0
- package/dist/modules/Tests/components/FlowList/components/TagFilter/index.d.ts +2 -0
- package/dist/modules/Tests/components/FlowList/index.d.ts +1 -0
- package/dist/modules/Tests/components/FlowPanel/FlowPanel.d.ts +16 -0
- package/dist/modules/Tests/components/FlowPanel/index.d.ts +1 -0
- package/dist/modules/Tests/components/FlowStrip/FlowStrip.d.ts +29 -0
- package/dist/modules/Tests/components/FlowStrip/index.d.ts +1 -0
- package/dist/modules/Tests/components/GateCard/GateCard.d.ts +16 -0
- package/dist/modules/Tests/components/GateCard/index.d.ts +1 -0
- package/dist/modules/Tests/components/JourneyTags/JourneyTags.d.ts +13 -0
- package/dist/modules/Tests/components/JourneyTags/index.d.ts +2 -0
- package/dist/modules/Tests/components/KindRow/KindRow.d.ts +26 -0
- package/dist/modules/Tests/components/KindRow/components/FieldInput/FieldInput.d.ts +17 -0
- package/dist/modules/Tests/components/KindRow/components/FieldInput/index.d.ts +2 -0
- package/dist/modules/Tests/components/KindRow/index.d.ts +2 -0
- package/dist/modules/Tests/components/NeedsLook/NeedsLook.d.ts +5 -0
- package/dist/modules/Tests/components/NeedsLook/index.d.ts +1 -0
- package/dist/modules/Tests/components/PlanUsage/PlanUsage.d.ts +14 -0
- package/dist/modules/Tests/components/PlanUsage/index.d.ts +2 -0
- package/dist/modules/Tests/components/ServerPlayCard/ServerPlayCard.d.ts +12 -0
- package/dist/modules/Tests/components/ServerPlayCard/index.d.ts +2 -0
- package/dist/modules/Tests/components/StartState/StartState.d.ts +12 -0
- package/dist/modules/Tests/components/StartState/index.d.ts +2 -0
- package/dist/modules/Tests/components/StepEditor/StepEditor.d.ts +16 -0
- package/dist/modules/Tests/components/StepEditor/index.d.ts +1 -0
- package/dist/modules/Tests/components/StudioStep/StudioStep.d.ts +27 -0
- package/dist/modules/Tests/components/StudioStep/index.d.ts +1 -0
- package/dist/modules/Tests/components/TestAccounts/TestAccounts.d.ts +6 -0
- package/dist/modules/Tests/components/TestAccounts/components/AccountForm/AccountForm.d.ts +15 -0
- package/dist/modules/Tests/components/TestAccounts/components/AccountForm/index.d.ts +1 -0
- package/dist/modules/Tests/components/TestAccounts/components/AccountRow/AccountRow.d.ts +12 -0
- package/dist/modules/Tests/components/TestAccounts/components/AccountRow/index.d.ts +1 -0
- package/dist/modules/Tests/components/TestAccounts/components/RoleChip/RoleChip.d.ts +10 -0
- package/dist/modules/Tests/components/TestAccounts/components/RoleChip/index.d.ts +1 -0
- package/dist/modules/Tests/components/TestAccounts/index.d.ts +1 -0
- package/dist/modules/Tests/components/TestsArea/TestsArea.d.ts +24 -0
- package/dist/modules/Tests/components/TestsArea/index.d.ts +1 -0
- package/dist/modules/Tests/components/TestsSummary/TestsSummary.d.ts +13 -0
- package/dist/modules/Tests/components/TestsSummary/index.d.ts +2 -0
- package/dist/modules/Tests/components/UnitTestForm/UnitTestForm.d.ts +14 -0
- package/dist/modules/Tests/components/UnitTestForm/index.d.ts +2 -0
- package/dist/modules/Tests/components/UnitTests/UnitTests.d.ts +19 -0
- package/dist/modules/Tests/components/UnitTests/components/UnitTestRow/UnitTestRow.d.ts +16 -0
- package/dist/modules/Tests/components/UnitTests/components/UnitTestRow/index.d.ts +2 -0
- package/dist/modules/Tests/components/UnitTests/index.d.ts +2 -0
- package/dist/modules/Tests/helpers.d.ts +143 -0
- package/dist/modules/Tests/hooks/useMayTest.d.ts +10 -0
- package/dist/modules/Tests/hooks/useSaveSpaceTests.d.ts +14 -0
- package/dist/modules/Tests/hooks/useServerPlay.d.ts +26 -0
- package/dist/modules/Tests/hooks/useSpaceTests.d.ts +20 -0
- package/dist/modules/Tests/hooks/useTestProblems.d.ts +9 -0
- package/dist/modules/Tests/index.d.ts +4 -0
- package/dist/modules/Tests/studio/JourneyVisitor.d.ts +11 -0
- package/dist/modules/Tests/studio/TestStudioContext.d.ts +126 -0
- package/dist/modules/Tests/studio/TestStudioProvider.d.ts +5 -0
- package/dist/modules/Tests/studio/canvasPage.d.ts +22 -0
- package/dist/modules/Tests/studio/canvasWaits.d.ts +9 -0
- package/dist/modules/Tests/studio/flowPlay.d.ts +38 -0
- package/dist/modules/Tests/studio/playsAsGuest.d.ts +5 -0
- package/dist/modules/Tests/studio/reveal.d.ts +8 -0
- package/dist/modules/Tests/studio/sentences.d.ts +34 -0
- package/dist/modules/Tests/studio/spotlight.d.ts +13 -0
- package/dist/modules/Tests/studio/stepDelay.d.ts +11 -0
- package/dist/modules/Tests/studio/stepOfEvent.d.ts +12 -0
- package/dist/modules/Tests/studio/useCanvasStudio.d.ts +9 -0
- package/dist/modules/Tests/studio/useStudioCanvas.d.ts +26 -0
- package/dist/modules/Usages/helpers/copy.d.ts +3 -1
- package/dist/package.json.d.ts +2 -2
- package/dist/plitzi-builder.css +1 -1
- package/dist/plitzi-builder.css.gz +0 -0
- package/dist/plitzi-builder.js +2171 -1957
- package/dist/plitzi-builder.js.gz +0 -0
- package/dist/plitzi-functions-worker.js +1 -1
- package/package.json +16 -16
- package/dist/modules/App/components/AppHeader/BorderButton.d.ts +0 -2
- package/dist/modules/App/components/AppHeader/GridButton.d.ts +0 -3
- package/dist/modules/App/components/AppHeader/MotionButton.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,188 @@
|
|
|
1
1
|
# @plitzi/plitzi-builder
|
|
2
2
|
|
|
3
|
+
## 0.39.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f174a61: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
8
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
9
|
+
- Updated dependencies [f174a61]
|
|
10
|
+
- @plitzi/plitzi-sdk@0.39.1
|
|
11
|
+
- @plitzi/sdk-auth@0.39.1
|
|
12
|
+
- @plitzi/sdk-authoring@0.39.1
|
|
13
|
+
- @plitzi/sdk-dev-tools@0.39.1
|
|
14
|
+
- @plitzi/sdk-elements@0.39.1
|
|
15
|
+
- @plitzi/sdk-event-bridge@0.39.1
|
|
16
|
+
- @plitzi/sdk-interactions@0.39.1
|
|
17
|
+
- @plitzi/sdk-navigation@0.39.1
|
|
18
|
+
- @plitzi/sdk-plugins@0.39.1
|
|
19
|
+
- @plitzi/sdk-schema@0.39.1
|
|
20
|
+
- @plitzi/sdk-shared@0.39.1
|
|
21
|
+
- @plitzi/sdk-style@0.39.1
|
|
22
|
+
- @plitzi/sdk-variables@0.39.1
|
|
23
|
+
|
|
24
|
+
## 0.39.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- 587c35b: A team of agents on one project (`plitzi run`, `plitzi task`), the page tools those agents measure with, tests kept in
|
|
29
|
+
the space, and what authoring and the elements learnt from the runs. Each command and option is in the CLI's README;
|
|
30
|
+
how the runs work, in `docs/en/agent-runs.md`.
|
|
31
|
+
|
|
32
|
+
## To do when you upgrade
|
|
33
|
+
- **Node 24.** `engines` is `^24.22.1 || >=26.12.1`; Node 22 is no longer supported (`plitzi doctor` says it,
|
|
34
|
+
`doctor --fix` raises an older project's `engines`).
|
|
35
|
+
- **`createServer({ outbound: { privateOrigins } })` replaces `allowPrivatePluginHosts`:** a space's requests reach no
|
|
36
|
+
private address but the origins named (`privateOrigins: ['http://localhost:9000']`).
|
|
37
|
+
- **Job queues from 0.38.20 or before are recreated, not upgraded:** `createMongoJobQueue` / `createMysqlJobQueue` empty
|
|
38
|
+
or drop the old `action_jobs` / `action_kv` and make them again; `mysqlJobSchemaUpgrades` is gone.
|
|
39
|
+
- **`PLITZI_KV_FILE` is `PLITZI_STATE_DIR`**, a folder holding the server's `kv` and job queue.
|
|
40
|
+
- **A social provider's `fetchProfile` takes `{ accessToken, idToken, nonce }`**, and `createSocialAuth(...).start` is
|
|
41
|
+
async.
|
|
42
|
+
- **A `DraftStore` of a deployment's own keeps `inspected`** beside `reusable`, or a test session renders without the
|
|
43
|
+
state bridge.
|
|
44
|
+
- **`navigation.navigate(url, { external, replace })`** takes an object where it took `navigate(url, true)`.
|
|
45
|
+
- **`window.__plitzi.setSource` / `setAttribute` may answer `{ refused }`**: read it before treating the answer as written.
|
|
46
|
+
- **Renamed:** `stepText` → `e2eStepText` (a run's `said` is the step in words); `OverQuotaNotice` → `QuotaNotice` and
|
|
47
|
+
its classes `plitzi-quota-notice…`; `sightOf` / `sightText` come from `@plitzi/sdk-shared/devTools/sight`.
|
|
48
|
+
- **`SchemaVariables` and `StyleVariables` draw no add button of their own:** the holder passes `adding`, `onAddingEnd`
|
|
49
|
+
and optionally `empty`.
|
|
50
|
+
- **A page handed to `runE2eTest`** has `selectOption`, `position` in `click`/`hover` and `evaluate(fn, arg)`, as a
|
|
51
|
+
Playwright locator: a hand-written page adds them.
|
|
52
|
+
- **Journey steps play as the page commands do:** `scroll` with `dx`/`dy` scrolls the element's content, `waitFor`
|
|
53
|
+
waits 10 s, `type` replaces a field's value.
|
|
54
|
+
- **Authoring refuses more:** two flows of one element naming a step alike (`step-duplicate`), `visible` written as an
|
|
55
|
+
expression (`visible-expression`), a step condition naming a source by id alone (`condition-short-source`).
|
|
56
|
+
`navbar` / `navbarItem` are no longer read by `specFromSpace`.
|
|
57
|
+
- **`/robots.txt` ends naming its sitemap** unless the space's own text does.
|
|
58
|
+
- **The CLI's part of a project is `.plitzi/`** (it was split with `plitzi/`): `plitzi doctor --fix` moves it, and a
|
|
59
|
+
tsconfig names `.plitzi/**/*`.
|
|
60
|
+
- **`plitzi upgrade`** brings the new scripts (`start:preview`, the visual suite's server on 8400, `test`), the ignores
|
|
61
|
+
for `.plitzi/plitzi-reports/` and the skills. `test` runs the project's own tests, so red tests now fail
|
|
62
|
+
`plitzi verify` and a run's checks.
|
|
63
|
+
- **Reports to Plitzi live in `.plitzi/plitzi-reports/`**, committed: a run's in `runs/<run>/`, an agent's in
|
|
64
|
+
`agents/<date>/`. The old files are read no more.
|
|
65
|
+
- **The CLI's surface is smaller — one command for each thing.** Old names and flags are refused naming the new one;
|
|
66
|
+
`plitzi upgrade skills --write` updates the agents' skills. The main moves: `run plan` / `run rehearse` →
|
|
67
|
+
`run open --dry-run [--rehearse]`; `run extend` → `run open <stage>`; `run purge` → `run abort`; `task take` →
|
|
68
|
+
`task next <task>`; `task ask` / `block` / `note` → `task tell --ask | --blocked | --handoff`; `task wait` / `release`
|
|
69
|
+
→ `task claim --wait | --release`; `task request` → `task propose --file`; `task check --before | --mutate` →
|
|
70
|
+
`task prove`; `run feedback` → `run report --plitzi`; `functions pull|push` → `space pull|push functions`;
|
|
71
|
+
`runtime push` → `space push runtime`; `page shot --live` / `--clip` → `--fresh` / `--within`; `PLITZI_TASK_TOKEN` →
|
|
72
|
+
`PLITZI_TOKEN`.
|
|
73
|
+
- **Research and reviews are cards on one board:** `task spike` and the separate UI review are gone; a card's `review`
|
|
74
|
+
names its roles in order. Runs opened before keep working.
|
|
75
|
+
- **Page commands:** `page check --expect` fails only on what it expects; every page command reads at 900 px tall
|
|
76
|
+
(`--height`); a page that sends a guest away is read signed in as the project's account (`--as`, `--guest`).
|
|
77
|
+
- **`create --from`** names page files by the page's name; a space's functions are pushed without their tests.
|
|
78
|
+
|
|
79
|
+
## A space's tests (`@plitzi/sdk-authoring`, `@plitzi/sdk-shared`, `@plitzi/plitzi-builder`, `@plitzi/sdk-mcp`)
|
|
80
|
+
- **Tests are part of the space's document** (`Schema.tests`): unit tests (element checks) and journeys (what a visitor
|
|
81
|
+
does), authored in code, edited in the builder's Tests area, played on the canvas or the server. See
|
|
82
|
+
`docs/en/space-tests.md`.
|
|
83
|
+
- **Journeys play signed in as test accounts** (`tests.accounts`), carry tags, can be held and stopped
|
|
84
|
+
(`runE2eTest`'s `beforeStep`), and hold element checks (`e2e.expectCheck`).
|
|
85
|
+
- **`plitzi test [id…]`** runs a project's tests; **`plitzi_test`** lets an agent run them over the MCP. What a plan
|
|
86
|
+
allows (`journeysPerSpace`, `serverRunsPerMonth`) is in its entitlements; a `canTest` grant writes tests alone.
|
|
87
|
+
|
|
88
|
+
## Several agents on one project (`@plitzi/cli`)
|
|
89
|
+
- **A run is a kanban:** a lead plans, reviews and closes; developers, testers, designers and scouts take cards with
|
|
90
|
+
`task next`, each in its own copy of the project; every card is reviewed by the roles it names, step by step.
|
|
91
|
+
Nothing reaches the project until a person applies the run (`run finish --apply`).
|
|
92
|
+
- **Files are owned by imports:** one agent per file, shared files taken by turns or changed by agreement
|
|
93
|
+
(`task propose`), merged line by line, checked on the whole result.
|
|
94
|
+
- **The run keeps itself going:** a keeper starts the agents work is waiting for, and holds
|
|
95
|
+
starts after the harness's limit or repeated quick exits until the lead allows them (`run hold`, `run allow`).
|
|
96
|
+
- **`run monitor`:** the run live in a terminal — board, flow, agents, spend, activity — with an emergency panel (`!`)
|
|
97
|
+
to pause, resume, hold or allow agents.
|
|
98
|
+
- **A change mid-run says what it reaches:** `run open <stage> --dry-run` and `run amend --dry-run` name the approved
|
|
99
|
+
tasks, tasks at work and tests each change touches, read off the import graph.
|
|
100
|
+
- **Reviews see what goes in:** a review taken says whether the task merges with the run's newer work and, if not, the
|
|
101
|
+
failing lines; `task show <file> --merged` and `task look --merged` read and serve the merge;
|
|
102
|
+
`task look --alone <element> --with '{…}'` draws a component or plugin no page places yet. A step's time stops while
|
|
103
|
+
its reviewer proves or looks.
|
|
104
|
+
- **Proofs:** `task prove --before` (what each acceptance line proves against the run before the task) and
|
|
105
|
+
`--mutate` (whether a task's tests catch a broken change, with a control run).
|
|
106
|
+
- **The finish:** `run finish` checks the whole result and stops at the first failing line; `--every-line` reports
|
|
107
|
+
them all. The run then leaves its reports in `.plitzi/plitzi-reports/runs/<run>/`.
|
|
108
|
+
- **A report to Plitzi holds nothing of the person or the project:** a run's `feedback.md` writes over names, emails,
|
|
109
|
+
addresses, IPs, the project's files, tasks and elements, leaves out what was said of the project alone, and lists
|
|
110
|
+
quoted passages for the person to read before sending. `plitzi feedback` carries no project name, asks the developer
|
|
111
|
+
before anything of the project goes in, and `plitzi feedback --check <file>` names what a filled report still holds.
|
|
112
|
+
|
|
113
|
+
## Page tools (`@plitzi/cli`, `@plitzi/sdk-authoring`)
|
|
114
|
+
- **`page measure`** reads what an element draws (`--only drawn`, `box-*`, `attr:<name>`, `accessible-name`,
|
|
115
|
+
`scroll-*`, custom properties) and holds bounds and positions (`--expect "width<=44px"`, `"a.bottom + 8 <= b.top"`).
|
|
116
|
+
- **`page play`** plays steps — `drag … hold`, `scroll page 1500`, `click <el> 30%,60%` — reads what is drawn, not
|
|
117
|
+
what is in the DOM, and `--motion` plays animations moving. A press is made once and waits for the page to take it.
|
|
118
|
+
- **`page check`** says what a visitor cannot reach, text cut or spilling, canvases left blank, the server's error page
|
|
119
|
+
when the space does not author, and holds a text whole (`=`) or in part (`~`).
|
|
120
|
+
- **`page shot`** waits for canvases, pictures hovers (`--hover`, `--frames`) and parts (`--within`), and says what it
|
|
121
|
+
could not picture.
|
|
122
|
+
- **Every page command reads a page as one visitor from the same flags** (`--as`, `--guest`, `--width`, `--height`,
|
|
123
|
+
`--fresh`), with a browser driver of the CLI's own.
|
|
124
|
+
|
|
125
|
+
## Authoring (`@plitzi/sdk-authoring`)
|
|
126
|
+
- **New checks:** a server provider the page server cannot read (`server-query-unresolved`) or that reads browser state
|
|
127
|
+
(`server-when-unknown`), an action without `runtime: 'server'` (`server-source-in-browser`), class overrides,
|
|
128
|
+
messages arriving while a flow runs, unused plugins.
|
|
129
|
+
- **New authoring:** `focus('field')`, a factory for every trigger, the scroll family's sides, `pagesIn(...)` to
|
|
130
|
+
register pages by folder, channel topics with a choice, a plugin's imported stylesheets read for its tokens.
|
|
131
|
+
- **An element drawn alone:** a server started with `PLITZI_PREVIEW_FILE` gets a page for one element at
|
|
132
|
+
`/plitzi-preview` (`withPreview`, `SpacePreviewError`) — what `task look --alone` uses.
|
|
133
|
+
|
|
134
|
+
## Elements and the SDK (`@plitzi/sdk-elements`, `@plitzi/plitzi-sdk`, `@plitzi/sdk-shared`)
|
|
135
|
+
- **Navigation:** `navigate` can replace the address, and a navigation inside the site leaves the scroll as a page
|
|
136
|
+
load would.
|
|
137
|
+
- **Providers:** a `when` holds the same in the browser and on the page server; a server provider can read another
|
|
138
|
+
site's address while the page is built.
|
|
139
|
+
- **Plans and roles in the contract:** entitlements (`TSpaceEntitlements`), the space role (`TSpaceAccess`), the quota
|
|
140
|
+
warning at 80% (`render.quotaNear`) and the "Made with Plitzi" badge (`PlitziBadge`).
|
|
141
|
+
- **Fixes:** a binding's `sourceTo` is the previous value; an element with no tag and no `visible` draws nothing;
|
|
142
|
+
placeholder words never reach a page; notifications stay open for a visitor who asked for less motion.
|
|
143
|
+
|
|
144
|
+
## Server (`@plitzi/sdk-server`, `@plitzi/sdk-auth`, `@plitzi/sdk-mcp`)
|
|
145
|
+
- **`/sitemap.xml`** for every space, and `/robots.txt` naming it.
|
|
146
|
+
- **Accounts:** terms accepted at sign-up (MySQL schema version 7), single sign-on with any OpenID Connect issuer
|
|
147
|
+
(`createOidcProvider`), providers resolved at run time, a password that may not sign in, `/auth/continue` with a step
|
|
148
|
+
of the deployment's own, a signed-out visitor never signed back in by a stale answer.
|
|
149
|
+
- **Policy adapters:** metering can hold a page back (503), decide the badge and `noindex`; the MCP can cap tool calls
|
|
150
|
+
and names the space's plan; realtime admits spaces per deployment.
|
|
151
|
+
- **Dev server:** a removed plugin folder is unregistered (`PluginRegistry.unregister`), and a space that does not
|
|
152
|
+
author is said whole, with no stack.
|
|
153
|
+
|
|
154
|
+
## The builder (`@plitzi/plitzi-builder`)
|
|
155
|
+
- **A Tests area** with journeys played beside the page at the journey's device, and element checks.
|
|
156
|
+
- **One way to build a panel**, a header grouped by what its controls do, and the layout's mask dimming only what the
|
|
157
|
+
layout draws.
|
|
158
|
+
- **Plans and roles shown:** what the role allows (`useSpaceAccess`), what the plan leaves out shown locked, the plan
|
|
159
|
+
and its spend in the header; pages left out of the sitemap marked.
|
|
160
|
+
|
|
161
|
+
## Dev tools (`@plitzi/sdk-dev-tools`)
|
|
162
|
+
- **`element(id).visible` is what a visitor sees** (`sightOf`), with why not; `element(id).resolved` says what each
|
|
163
|
+
binding gave; a refused server action is a `refused` step.
|
|
164
|
+
- **Report what you see** in the Run tab of a run's preview, and the panel docks at the bottom under 900 px.
|
|
165
|
+
|
|
166
|
+
## The workspace
|
|
167
|
+
- **No file past 600 lines of code** (`max-lines`), and ESLint's `quotes` rule is gone — Prettier writes them.
|
|
168
|
+
|
|
169
|
+
### Patch Changes
|
|
170
|
+
|
|
171
|
+
- Updated dependencies [587c35b]
|
|
172
|
+
- @plitzi/plitzi-sdk@0.39.0
|
|
173
|
+
- @plitzi/sdk-auth@0.39.0
|
|
174
|
+
- @plitzi/sdk-authoring@0.39.0
|
|
175
|
+
- @plitzi/sdk-dev-tools@0.39.0
|
|
176
|
+
- @plitzi/sdk-elements@0.39.0
|
|
177
|
+
- @plitzi/sdk-event-bridge@0.39.0
|
|
178
|
+
- @plitzi/sdk-interactions@0.39.0
|
|
179
|
+
- @plitzi/sdk-navigation@0.39.0
|
|
180
|
+
- @plitzi/sdk-plugins@0.39.0
|
|
181
|
+
- @plitzi/sdk-schema@0.39.0
|
|
182
|
+
- @plitzi/sdk-shared@0.39.0
|
|
183
|
+
- @plitzi/sdk-style@0.39.0
|
|
184
|
+
- @plitzi/sdk-variables@0.39.0
|
|
185
|
+
|
|
3
186
|
## 0.38.24
|
|
4
187
|
|
|
5
188
|
### Patch Changes
|
|
@@ -3838,7 +4021,7 @@ author`, `plitzi_validate`/`plitzi_apply`, `plitzi explain` and the builder's pr
|
|
|
3838
4021
|
- **Devices are listed by device, not by session.** `GET /devices/sessions` groups sessions by what they were created
|
|
3839
4022
|
from and answers this device apart; a browser that signed in forty times is one row saying "40 sessions". The list
|
|
3840
4023
|
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
|
|
4024
|
+
- **Every device is named for what it is**: the application as it registered over OAuth (`Plitzi CLI on dev-laptop`,
|
|
3842
4025
|
`Plitzi Desktop on studio`), a browser and its system, an automated client (Playwright, headless Chrome) — never a
|
|
3843
4026
|
raw user agent. Sessions record their address and **when they were last used** (at most every five minutes, on the
|
|
3844
4027
|
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.
|
|
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.
|
|
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
|
-
/**
|
|
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,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,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,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;
|
|
@@ -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,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;
|
|
@@ -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.
|
|
6
|
-
* says
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
7
|
-
*
|
|
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
|
|
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,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;
|