@plitzi/plitzi-builder 0.39.4 → 0.39.6
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 +39 -0
- package/dist/modules/App/components/AppDirectory/ItemActions.d.ts +3 -1
- package/dist/modules/App/components/AppDirectory/protection.d.ts +16 -0
- package/dist/modules/App/components/AppHeader/HeaderMenu.d.ts +33 -0
- package/dist/modules/App/components/AppHeader/HeaderPopover.d.ts +19 -0
- package/dist/modules/App/components/AppHeader/QuotaBreakdown.d.ts +4 -5
- package/dist/modules/App/components/AppHeader/ReleaseCluster/DraftPanel.d.ts +22 -0
- package/dist/modules/App/components/AppHeader/ReleaseCluster/draftStatus.d.ts +7 -0
- package/dist/modules/App/components/AppHeader/ReleaseCluster/targetAttention.d.ts +14 -0
- package/dist/modules/App/components/AppHeader/ReleaseCluster/useDraftStatus.d.ts +12 -0
- package/dist/modules/App/components/AppHeader/useAnchoredOverlay.d.ts +16 -0
- package/dist/modules/App/components/ChangesSummary/ChangesSummary.d.ts +13 -0
- package/dist/modules/App/components/ChangesSummary/helpers.d.ts +9 -0
- package/dist/modules/App/components/ChangesSummary/index.d.ts +4 -0
- package/dist/modules/App/components/ChangesSummary/useVersionChanges.d.ts +16 -0
- package/dist/modules/App/components/EnvironmentSegments/EnvironmentSegments.d.ts +21 -0
- package/dist/modules/App/components/EnvironmentSegments/index.d.ts +2 -0
- package/dist/modules/App/components/PanelSections/PanelSections.d.ts +1 -1
- package/dist/modules/App/components/SnapshotPruneNotice/SnapshotPruneNotice.d.ts +1 -1
- package/dist/modules/App/components/SnapshotPruneNotice/helpers.d.ts +2 -2
- package/dist/modules/App/components/ViewSection/ViewSection.d.ts +5 -1
- package/dist/modules/App/helpers/age.d.ts +7 -0
- package/dist/modules/App/helpers/environments.d.ts +21 -0
- package/dist/modules/App/helpers/modalSizes.d.ts +12 -0
- package/dist/modules/App/hooks/useLatestSnapshots.d.ts +16 -0
- package/dist/modules/App/hooks/useSpaceTargets.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/AccessPicker.d.ts +20 -0
- package/dist/modules/App/models/PublishSheet/DeployProgress.d.ts +14 -0
- package/dist/modules/App/models/PublishSheet/DomainCard.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/DomainList.d.ts +23 -0
- package/dist/modules/App/models/PublishSheet/OwnAddressRow.d.ts +14 -0
- package/dist/modules/App/models/PublishSheet/PublishDone.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/PublishSheet.d.ts +20 -0
- package/dist/modules/App/models/PublishSheet/ReleaseHistory.d.ts +16 -0
- package/dist/modules/App/models/PublishSheet/RevisionList.d.ts +16 -0
- package/dist/modules/App/models/PublishSheet/RevisionOption.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/RevisionRow.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/RollbackConfirm.d.ts +12 -0
- package/dist/modules/App/models/PublishSheet/SaveFirst.d.ts +18 -0
- package/dist/modules/App/models/PublishSheet/ScheduleRow.d.ts +9 -0
- package/dist/modules/App/models/PublishSheet/ScheduledPublishes.d.ts +7 -0
- package/dist/modules/App/models/PublishSheet/SheetFooter.d.ts +24 -0
- package/dist/modules/App/models/PublishSheet/SheetFrame.d.ts +9 -0
- package/dist/modules/App/models/PublishSheet/SheetTabs.d.ts +8 -0
- package/dist/modules/App/models/PublishSheet/ShowWhat.d.ts +34 -0
- package/dist/modules/App/models/PublishSheet/TargetAutomation.d.ts +13 -0
- package/dist/modules/App/models/PublishSheet/TargetNotices.d.ts +10 -0
- package/dist/modules/App/models/PublishSheet/TargetSettings.d.ts +18 -0
- package/dist/modules/App/models/PublishSheet/VersionChoice.d.ts +21 -0
- package/dist/modules/App/models/PublishSheet/WhatHappens.d.ts +24 -0
- package/dist/modules/App/models/PublishSheet/helpers.d.ts +30 -0
- package/dist/modules/App/models/PublishSheet/index.d.ts +2 -0
- package/dist/modules/App/models/SnapshotForm/SnapshotForm.d.ts +26 -0
- package/dist/modules/App/models/SnapshotForm/index.d.ts +2 -0
- package/dist/modules/Builder/Builder.d.ts +4 -1
- package/dist/modules/Builder/components/BuilderArea/BuilderArea.d.ts +6 -1
- package/dist/modules/Components/components/ComponentBanner/ComponentBanner.d.ts +10 -2
- package/dist/modules/Components/components/ComponentDetails/ComponentDetails.d.ts +10 -0
- package/dist/modules/Components/components/ComponentDetails/index.d.ts +3 -0
- package/dist/modules/Components/components/ComponentItem/ComponentItem.d.ts +4 -1
- package/dist/modules/Components/components/ComponentPreview/ComponentPreview.d.ts +10 -0
- package/dist/modules/Components/components/ComponentPreview/index.d.ts +3 -0
- package/dist/modules/Components/preview.d.ts +28 -0
- package/dist/modules/Components/useOpenComponent.d.ts +15 -6
- package/dist/modules/History/helpers.d.ts +1 -1
- package/dist/modules/Space/Models/SpaceCredentialForm/SpaceCredentialForm.d.ts +20 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialEditor/CredentialEditor.d.ts +17 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialEditor/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/CredentialFields.d.ts +7 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/components/CredentialField/CredentialField.d.ts +10 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/components/CredentialField/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/NamedValues.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/components/ValuesInput/ValuesInput.d.ts +8 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/components/ValuesInput/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ObtainGuide/ObtainGuide.d.ts +7 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ObtainGuide/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/ProviderPicker.d.ts +9 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/components/ProviderOption/ProviderOption.d.ts +8 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/components/ProviderOption/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderSummary/ProviderSummary.d.ts +9 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderSummary/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/helpers.d.ts +26 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/index.d.ts +4 -0
- package/dist/modules/Space/components/SpaceIssues/SpaceIssues.d.ts +3 -3
- package/dist/modules/Space/components/SpaceIssues/components/CodeGroup/CodeGroup.d.ts +23 -0
- package/dist/modules/Space/components/SpaceIssues/components/CodeGroup/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/CodeText/CodeText.d.ts +7 -0
- package/dist/modules/Space/components/SpaceIssues/components/CodeText/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueGroup/IssueGroup.d.ts +2 -2
- package/dist/modules/Space/components/SpaceIssues/components/IssueItem/IssueItem.d.ts +2 -4
- package/dist/modules/Space/components/SpaceIssues/components/Message/Message.d.ts +9 -0
- package/dist/modules/Space/components/SpaceIssues/components/Message/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/SuggestionGroup.d.ts +5 -2
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/SuggestionItem.d.ts +2 -2
- package/dist/modules/Space/components/SpaceIssues/helpers.d.ts +23 -1
- package/dist/modules/Space/hooks/useSpaceIssues.d.ts +8 -2
- package/dist/modules/StateManager/StateManager.d.ts +5 -0
- package/dist/modules/StateManager/components/ComputedTab/ComputedTab.d.ts +6 -0
- package/dist/modules/StateManager/components/ComputedTab/index.d.ts +3 -0
- package/dist/modules/StateManager/components/Kept/Kept.d.ts +7 -0
- package/dist/modules/StateManager/components/Kept/index.d.ts +3 -0
- package/dist/modules/StateManager/components/Scenarios/Scenarios.d.ts +6 -0
- package/dist/modules/StateManager/components/Scenarios/index.d.ts +3 -0
- package/dist/modules/StateManager/components/StateJson/StateJson.d.ts +7 -0
- package/dist/modules/StateManager/components/StateJson/index.d.ts +3 -0
- package/dist/modules/StateManager/components/StateRow/StateRow.d.ts +16 -0
- package/dist/modules/StateManager/components/StateRow/index.d.ts +3 -0
- package/dist/modules/StateManager/components/StateTab/StateTab.d.ts +8 -0
- package/dist/modules/StateManager/components/StateTab/index.d.ts +3 -0
- package/dist/modules/StateManager/components/SubPathRow/SubPathRow.d.ts +20 -0
- package/dist/modules/StateManager/components/SubPathRow/index.d.ts +3 -0
- package/dist/modules/StateManager/components/UseCounts/UseCounts.d.ts +9 -0
- package/dist/modules/StateManager/components/UseCounts/index.d.ts +3 -0
- package/dist/modules/StateManager/components/UsedBy/UsedBy.d.ts +7 -0
- package/dist/modules/StateManager/components/UsedBy/index.d.ts +3 -0
- package/dist/modules/StateManager/components/ValueEditor/ValueEditor.d.ts +12 -0
- package/dist/modules/StateManager/components/ValueEditor/index.d.ts +3 -0
- package/dist/modules/StateManager/components/ValueJson/ValueJson.d.ts +7 -0
- package/dist/modules/StateManager/components/ValueJson/index.d.ts +3 -0
- package/dist/modules/StateManager/components/VisitorTab/VisitorTab.d.ts +6 -0
- package/dist/modules/StateManager/components/VisitorTab/index.d.ts +3 -0
- package/dist/modules/StateManager/helpers.d.ts +54 -0
- package/dist/modules/StateManager/hooks/useCanvasVisitor.d.ts +21 -0
- package/dist/modules/StateManager/hooks/useStateChanges.d.ts +19 -0
- package/dist/modules/StateManager/layout.d.ts +2 -0
- package/dist/modules/Usages/components/UsageRow/components/UsageTreeGroup/UsageTreeGroup.d.ts +4 -2
- package/dist/modules/Usages/helpers/usageIndex.d.ts +6 -1
- package/dist/modules/Usages/index.d.ts +3 -0
- package/dist/package.json.d.ts +14 -14
- package/dist/plitzi-builder.css +1 -1
- package/dist/plitzi-builder.css.gz +0 -0
- package/dist/plitzi-builder.js +2839 -2675
- package/dist/plitzi-builder.js.gz +0 -0
- package/dist/plitzi-functions-worker.js +1 -1
- package/package.json +28 -28
- package/dist/modules/App/models/DeployForm/DeployForm.d.ts +0 -24
- package/dist/modules/App/models/DeployForm/InputEnvironment.d.ts +0 -2
- package/dist/modules/App/models/DeployForm/index.d.ts +0 -3
- package/dist/modules/App/models/PublishForm.d.ts +0 -20
- package/dist/modules/Space/Models/SpaceCredentialForm.d.ts +0 -63
- package/dist/modules/Space/helpers/buildCredentialData.d.ts +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @plitzi/plitzi-builder
|
|
2
2
|
|
|
3
|
+
## 0.39.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @plitzi/plitzi-sdk@0.39.6
|
|
8
|
+
- @plitzi/sdk-auth@0.39.6
|
|
9
|
+
- @plitzi/sdk-authoring@0.39.6
|
|
10
|
+
- @plitzi/sdk-dev-tools@0.39.6
|
|
11
|
+
- @plitzi/sdk-elements@0.39.6
|
|
12
|
+
- @plitzi/sdk-event-bridge@0.39.6
|
|
13
|
+
- @plitzi/sdk-interactions@0.39.6
|
|
14
|
+
- @plitzi/sdk-navigation@0.39.6
|
|
15
|
+
- @plitzi/sdk-plugins@0.39.6
|
|
16
|
+
- @plitzi/sdk-schema@0.39.6
|
|
17
|
+
- @plitzi/sdk-shared@0.39.6
|
|
18
|
+
- @plitzi/sdk-style@0.39.6
|
|
19
|
+
- @plitzi/sdk-variables@0.39.6
|
|
20
|
+
|
|
21
|
+
## 0.39.5
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 4427674: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
26
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
27
|
+
- Updated dependencies [4427674]
|
|
28
|
+
- @plitzi/plitzi-sdk@0.39.5
|
|
29
|
+
- @plitzi/sdk-auth@0.39.5
|
|
30
|
+
- @plitzi/sdk-authoring@0.39.5
|
|
31
|
+
- @plitzi/sdk-dev-tools@0.39.5
|
|
32
|
+
- @plitzi/sdk-elements@0.39.5
|
|
33
|
+
- @plitzi/sdk-event-bridge@0.39.5
|
|
34
|
+
- @plitzi/sdk-interactions@0.39.5
|
|
35
|
+
- @plitzi/sdk-navigation@0.39.5
|
|
36
|
+
- @plitzi/sdk-plugins@0.39.5
|
|
37
|
+
- @plitzi/sdk-schema@0.39.5
|
|
38
|
+
- @plitzi/sdk-shared@0.39.5
|
|
39
|
+
- @plitzi/sdk-style@0.39.5
|
|
40
|
+
- @plitzi/sdk-variables@0.39.5
|
|
41
|
+
|
|
3
42
|
## 0.39.4
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -5,7 +5,9 @@ export type PageActionsProps = {
|
|
|
5
5
|
zoom?: boolean;
|
|
6
6
|
type: string;
|
|
7
7
|
defaultPage?: boolean;
|
|
8
|
+
/** It is its place's 404 page (`slug: '*'`). */
|
|
9
|
+
notFound?: boolean;
|
|
8
10
|
onZoom?: (e: MouseEvent) => void;
|
|
9
11
|
};
|
|
10
|
-
declare const ItemActions: ({ id, type, active, zoom, defaultPage, onZoom }: PageActionsProps) => import('react').JSX.Element;
|
|
12
|
+
declare const ItemActions: ({ id, type, active, zoom, defaultPage, notFound, onZoom }: PageActionsProps) => import('react').JSX.Element;
|
|
11
13
|
export default ItemActions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Element, PageFolder } from '@plitzi/sdk-shared';
|
|
2
|
+
/** What a protected page or folder says beside its name: the lock's words, and whether all of it is protected. */
|
|
3
|
+
export type Protection = {
|
|
4
|
+
says: string;
|
|
5
|
+
whole: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Who a page is for, in words, or nothing for a page anybody may open — read by the rule the server withholds pages
|
|
9
|
+
* with (`protectedAccessOf`), so the lock and what a visitor is sent never disagree.
|
|
10
|
+
*/
|
|
11
|
+
export declare const pageProtection: (attributes: Record<string, unknown>) => Protection | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* A folder's lock: every page in it — in its folders too — protected, or some of them, said with how many; nothing for a
|
|
14
|
+
* folder with none, or with no pages. A folder protects nothing itself: what it says is what its pages are.
|
|
15
|
+
*/
|
|
16
|
+
export declare const folderProtection: (id: string, pageFolders: readonly PageFolder[], elements: readonly Element[]) => Protection | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type HeaderMenuItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** A second line, quieter: what the item does, or to what. */
|
|
6
|
+
detail?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
/** A choice among others in its section (the theme): marked when it is the one in force. */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
onSelect: () => void;
|
|
11
|
+
};
|
|
12
|
+
export type HeaderMenuSection = {
|
|
13
|
+
label?: string;
|
|
14
|
+
items: readonly HeaderMenuItem[];
|
|
15
|
+
};
|
|
16
|
+
export type HeaderMenuProps = {
|
|
17
|
+
id: string;
|
|
18
|
+
/** Its accessible name and title: what the menu is for. */
|
|
19
|
+
label: string;
|
|
20
|
+
/** What the button shows. */
|
|
21
|
+
trigger: ReactNode;
|
|
22
|
+
triggerClassName: string;
|
|
23
|
+
/** Which edge of the button the menu lines up with: its start under a button on the left, its end on the right. */
|
|
24
|
+
align?: 'start' | 'end';
|
|
25
|
+
sections: readonly HeaderMenuSection[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* A menu under a header button — the logo's: the way back to the spaces, the export, the theme. Opened, focus moves
|
|
29
|
+
* into it; arrows move between its items, Escape and a press outside close it, and choosing an item closes it. It is
|
|
30
|
+
* placed on the window, not inside the header: the header's left side scrolls when it is short of room, and would clip it.
|
|
31
|
+
*/
|
|
32
|
+
declare const HeaderMenu: ({ id, label, trigger, triggerClassName, align, sections }: HeaderMenuProps) => import('react').JSX.Element;
|
|
33
|
+
export default HeaderMenu;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type HeaderPopoverProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Its accessible name: what the panel is about. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** The button's own title, when it says more than the label. */
|
|
7
|
+
title?: string;
|
|
8
|
+
trigger: ReactNode;
|
|
9
|
+
triggerClassName: string;
|
|
10
|
+
align?: 'start' | 'end';
|
|
11
|
+
/** The panel's contents, given the way to close it. */
|
|
12
|
+
children: (close: () => void) => ReactNode;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A panel under a header button that says something and offers what to do about it — the draft's status. A dialog,
|
|
16
|
+
* not a menu: focus moves to its first control, Escape and a press outside close it.
|
|
17
|
+
*/
|
|
18
|
+
declare const HeaderPopover: ({ id, label, title, trigger, triggerClassName, align, children }: HeaderPopoverProps) => import('react').JSX.Element;
|
|
19
|
+
export default HeaderPopover;
|
|
@@ -8,13 +8,12 @@ export type QuotaBreakdownProps = {
|
|
|
8
8
|
/**
|
|
9
9
|
* The number in the header, taken apart — for the space being edited.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* spaces spent them is the dashboard's to show, to its members.
|
|
11
|
+
* First the allowances, this space's beside the account's (the space spends both), each a figure and how full it is.
|
|
12
|
+
* Then where this space's went, side by side: elements sit in pages, page views are spent by visitors on paths — each
|
|
13
|
+
* ranked, heaviest first. How the workspace's other spaces spent theirs is the dashboard's to show, to its members.
|
|
15
14
|
*
|
|
16
15
|
* Its elements are answered from the store, so they are on screen before any request is made. Its page views are what
|
|
17
|
-
* the request is for.
|
|
16
|
+
* the request is for.
|
|
18
17
|
*/
|
|
19
18
|
declare const QuotaBreakdown: ({ readings, spaceId, liveElements }: QuotaBreakdownProps) => import('react').JSX.Element;
|
|
20
19
|
export default QuotaBreakdown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TargetAttention } from './targetAttention';
|
|
2
|
+
import { SpaceSnapshot, SpaceVersionChanges } from '@plitzi/sdk-shared';
|
|
3
|
+
export type DraftPanelProps = {
|
|
4
|
+
newest: SpaceSnapshot | undefined;
|
|
5
|
+
changes: SpaceVersionChanges | undefined;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
/** Where the draft is live as it is saved — the space's own address — when it has one. */
|
|
8
|
+
draftAddress: string | undefined;
|
|
9
|
+
attention: readonly TargetAttention[];
|
|
10
|
+
/** Snapshot is locked by the plan: its button says so and leads to the plan. */
|
|
11
|
+
snapshotLocked: boolean;
|
|
12
|
+
onSnapshot: () => void;
|
|
13
|
+
/** Opens Publish, on a domain when one is named. */
|
|
14
|
+
onPublish: (domain?: string) => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The draft, opened from its chip: what it is against the last snapshot and what changed, where it is
|
|
18
|
+
* live as it is saved, what the space's targets ask — and the next step, Snapshot. Publish has its own button: this is
|
|
19
|
+
* where a person reads where they are, not a second way to the same sheet.
|
|
20
|
+
*/
|
|
21
|
+
declare const DraftPanel: ({ newest, changes, loading, draftAddress, attention, snapshotLocked, onSnapshot, onPublish }: DraftPanelProps) => import('react').JSX.Element;
|
|
22
|
+
export default DraftPanel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceSnapshot, SpaceVersionChanges } from '@plitzi/sdk-shared';
|
|
2
|
+
/** What the draft is against the last snapshot, in words: the header's answer to "is what I see kept anywhere?". */
|
|
3
|
+
export declare const draftStatus: (newest: SpaceSnapshot | undefined, changes: SpaceVersionChanges | undefined) => {
|
|
4
|
+
words: string;
|
|
5
|
+
short: string;
|
|
6
|
+
pending: boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpaceTarget } from '@plitzi/sdk-shared';
|
|
2
|
+
/** One thing a target asks of a publisher, in words: what the header's dot and the draft panel say. */
|
|
3
|
+
export type TargetAttention = {
|
|
4
|
+
domain: string;
|
|
5
|
+
tone: 'danger' | 'warning' | 'progress';
|
|
6
|
+
words: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* What the space's targets need, most pressing first: a deploy that failed, one under way, a plan that
|
|
10
|
+
* no longer includes the target, newer versions out, a domain not verified. A target that needs nothing says nothing.
|
|
11
|
+
*/
|
|
12
|
+
export declare const targetAttention: (targets: readonly SpaceTarget[]) => TargetAttention[];
|
|
13
|
+
/** The colour the header's dot takes: the most pressing thing any target asks. */
|
|
14
|
+
export declare const attentionTone: (attention: readonly TargetAttention[]) => TargetAttention["tone"] | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The draft against the last snapshot made, in any environment: how many things differ — read again once the saves
|
|
3
|
+
* have drained and stayed so for a moment, as the issues are, never on every edit.
|
|
4
|
+
*/
|
|
5
|
+
declare const useDraftStatus: () => {
|
|
6
|
+
newest: import('@plitzi/sdk-shared').SpaceSnapshot | undefined;
|
|
7
|
+
changes: import('@plitzi/sdk-shared').SpaceVersionChanges | undefined;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
/** After a snapshot or a publish: the newest snapshot, and the draft against it. */
|
|
10
|
+
refresh: () => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export default useDraftStatus;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A panel opened under a header button — a menu, a popover: placed on the window under the button (the header's left
|
|
4
|
+
* side scrolls when short of room, and would clip it), its first control focused when it opens, closed by Escape, by a
|
|
5
|
+
* press outside it and by `close`.
|
|
6
|
+
*/
|
|
7
|
+
declare const useAnchoredOverlay: (align: "start" | "end", focusSelector: string) => {
|
|
8
|
+
open: boolean;
|
|
9
|
+
close: () => void;
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
place: CSSProperties;
|
|
12
|
+
buttonRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
13
|
+
rootRef: import('react').RefObject<HTMLDivElement | null>;
|
|
14
|
+
panelRef: import('react').RefObject<HTMLDivElement | null>;
|
|
15
|
+
};
|
|
16
|
+
export default useAnchoredOverlay;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SpaceVersionChanges } from '@plitzi/sdk-shared';
|
|
2
|
+
export type ChangesSummaryProps = {
|
|
3
|
+
/** What it is a summary of: "What changes since production r12". */
|
|
4
|
+
title: string;
|
|
5
|
+
changes: SpaceVersionChanges | undefined;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
/** Said instead when there is nothing to compare with — the first snapshot of an environment. */
|
|
8
|
+
empty?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
/** What changes between two versions: a line of counts, and the names behind it for whoever opens them. */
|
|
12
|
+
declare const ChangesSummary: ({ title, changes, loading, empty, className }: ChangesSummaryProps) => import('react').JSX.Element;
|
|
13
|
+
export default ChangesSummary;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SpaceVersionChanges } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* What changes, in a line a person reads at a glance — the pages first, by what happened to them, then each other part
|
|
4
|
+
* that differs — and the names behind it, for whoever opens the list.
|
|
5
|
+
*/
|
|
6
|
+
export declare const changeLines: (changes: SpaceVersionChanges) => {
|
|
7
|
+
summary: string;
|
|
8
|
+
details: string[];
|
|
9
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Environment, SpaceVersionChanges } from '@plitzi/sdk-shared';
|
|
2
|
+
/** A version: an environment, and a revision of it — its latest when left out. */
|
|
3
|
+
export type VersionRef = {
|
|
4
|
+
environment: Environment;
|
|
5
|
+
revision?: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* What changes going from `from` to `to`, asked once both are known — nothing is asked while either is still being
|
|
9
|
+
* chosen or read.
|
|
10
|
+
*/
|
|
11
|
+
declare const useVersionChanges: (from: VersionRef | undefined, to: VersionRef | undefined) => {
|
|
12
|
+
changes: SpaceVersionChanges | undefined;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
refresh: () => Promise<unknown>;
|
|
15
|
+
};
|
|
16
|
+
export default useVersionChanges;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Environment } from '@plitzi/sdk-shared';
|
|
2
|
+
export type EnvironmentSegment = {
|
|
3
|
+
value: Environment;
|
|
4
|
+
/** A second line under its name: its latest revision and how old, or that it has none. */
|
|
5
|
+
detail?: string;
|
|
6
|
+
/** The plan that includes it, when the space's does not: shown locked with it, never chosen. */
|
|
7
|
+
lockedBy?: string;
|
|
8
|
+
};
|
|
9
|
+
export type EnvironmentSegmentsProps = {
|
|
10
|
+
label: string;
|
|
11
|
+
value: Environment;
|
|
12
|
+
segments: readonly EnvironmentSegment[];
|
|
13
|
+
onChange: (value: Environment) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Which environment, as a segmented control: each segment its name, its dot and a line under it. A locked one is
|
|
17
|
+
* outlined and dimmed with its lock and its plan — never a bright tile that reads as chosen. Arrow keys move between the
|
|
18
|
+
* ones that can be chosen, as a radio group does.
|
|
19
|
+
*/
|
|
20
|
+
declare const EnvironmentSegments: ({ label, value, segments, onChange }: EnvironmentSegmentsProps) => import('react').JSX.Element;
|
|
21
|
+
export default EnvironmentSegments;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
declare const HEADER_CLASS_NAME: {
|
|
3
3
|
readonly panel: "mx-2 mt-2";
|
|
4
|
-
readonly page: "mx-auto w-full max-w-5xl px-6 pt-5 pb-4";
|
|
4
|
+
readonly page: "mx-auto w-full max-w-5xl 2xl:max-w-7xl px-6 pt-5 pb-4";
|
|
5
5
|
};
|
|
6
6
|
export type PanelSection = {
|
|
7
7
|
id: string;
|
|
@@ -2,6 +2,6 @@ export type SnapshotPruneNoticeProps = {
|
|
|
2
2
|
/** The environment the snapshot is about to be taken into. */
|
|
3
3
|
environment: string;
|
|
4
4
|
};
|
|
5
|
-
/** What the
|
|
5
|
+
/** What the version about to be saved removes, said before it is saved. Nothing when it removes none. */
|
|
6
6
|
declare const SnapshotPruneNotice: ({ environment }: SnapshotPruneNoticeProps) => import('react').JSX.Element | null;
|
|
7
7
|
export default SnapshotPruneNotice;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextPrune } from '../../../Space/hooks/useNextPrune';
|
|
2
|
-
/** `
|
|
2
|
+
/** `version 2 (2 Oct 2026)`: a saved version as the dialog names it. */
|
|
3
3
|
export declare const snapshotName: ({ environment, revision, publishedAt }: NextPrune["removes"][number]) => string;
|
|
4
|
-
/** What the next
|
|
4
|
+
/** What saving the next version removes, said in a sentence; empty when it removes nothing. */
|
|
5
5
|
export declare const pruneSentence: (prune: NextPrune) => string;
|
|
@@ -5,6 +5,10 @@ export type ViewSectionProps = {
|
|
|
5
5
|
actions?: ReactNode;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* One part of a view's page, under a small label — never a second page title. On a wide screen the label stands in a
|
|
10
|
+
* column of its own beside what it holds, as a settings page is read: the page takes the width without a field
|
|
11
|
+
* stretched across it.
|
|
12
|
+
*/
|
|
9
13
|
declare const ViewSection: ({ title, actions, children }: ViewSectionProps) => import('react').JSX.Element;
|
|
10
14
|
export default ViewSection;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long ago, in a few characters — `just now`, `5 min`, `2 h`, `3 d`, `4 mo`, `2 y` — for where a sentence does not
|
|
3
|
+
* fit: a segment of the environment control, a domain's card. Never "about" or "less than": a glance, not a sentence.
|
|
4
|
+
*/
|
|
5
|
+
export declare const shortAge: (when: string | number | Date, now?: number) => string;
|
|
6
|
+
/** `5 min ago`, or `just now` — never "just now ago". */
|
|
7
|
+
export declare const ageAgo: (when: string | number | Date, now?: number) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Environment } from '@plitzi/sdk-shared';
|
|
2
|
+
/** An environment a snapshot is kept in: every one but the draft. */
|
|
3
|
+
export type PublishedEnvironment = Exclude<Environment, 'main'>;
|
|
4
|
+
/** The published environments, the one furthest from the public first — the order the snapshot modal offers them in. */
|
|
5
|
+
export declare const PUBLISHED_ENVIRONMENTS: readonly PublishedEnvironment[];
|
|
6
|
+
/**
|
|
7
|
+
* How an environment is named and marked wherever releases are shown: its words, its icon and the colour of its dot —
|
|
8
|
+
* the draft (`main`) is the draft, never an environment like the others.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ENVIRONMENT_META: Readonly<Record<Environment, {
|
|
11
|
+
label: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
dot: string;
|
|
14
|
+
}>>;
|
|
15
|
+
/**
|
|
16
|
+
* `version 12`, the way a revision is said everywhere: production's is the version a person means, so only another
|
|
17
|
+
* environment's is named (`staging version 3`) — revisions are counted per environment.
|
|
18
|
+
*/
|
|
19
|
+
export declare const revisionName: (environment: Environment, revision: number) => string;
|
|
20
|
+
/** The same, to start a sentence or a title: `Version 12`, `Staging version 3`. */
|
|
21
|
+
export declare const revisionTitle: (environment: Environment, revision: number) => string;
|
|
@@ -14,3 +14,15 @@ export declare const WIDE_MODAL: {
|
|
|
14
14
|
card: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* A side sheet: the right edge of the window, its whole height, sliding in — for what keeps what it acts on readable
|
|
19
|
+
* beside it (publishing, beside the page being published). Full width on a phone.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SHEET_MODAL: {
|
|
22
|
+
className: {
|
|
23
|
+
root: string;
|
|
24
|
+
card: string;
|
|
25
|
+
};
|
|
26
|
+
animation: "slideRight";
|
|
27
|
+
duration: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PublishedEnvironment } from '../helpers/environments';
|
|
2
|
+
import { SpaceSnapshot } from '@plitzi/sdk-shared';
|
|
3
|
+
/**
|
|
4
|
+
* Each published environment's latest snapshot — none when it has none yet — and the newest of them all: what the
|
|
5
|
+
* draft is compared with in the header and the snapshot modal. Read whenever shown: a snapshot taken in another tab
|
|
6
|
+
* counts.
|
|
7
|
+
*/
|
|
8
|
+
declare const useLatestSnapshots: () => {
|
|
9
|
+
byEnvironment: Record<PublishedEnvironment, SpaceSnapshot | undefined>;
|
|
10
|
+
newest: SpaceSnapshot | undefined;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
refresh: () => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
/** `v12 · 2 h`, or that there is none yet. */
|
|
15
|
+
export declare const latestDetail: (snapshot: SpaceSnapshot | undefined) => string;
|
|
16
|
+
export default useLatestSnapshots;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpaceTargets } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* The space's targets: how each domain serves it and where it stands — read whenever shown, and every few
|
|
4
|
+
* seconds while one of them is deploying, so the header and the sheet say when it ends.
|
|
5
|
+
*/
|
|
6
|
+
declare const useSpaceTargets: (enabled?: boolean) => {
|
|
7
|
+
targets: SpaceTargets | undefined;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
refresh: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default useSpaceTargets;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SpaceCredential } from '@plitzi/sdk-shared';
|
|
2
|
+
export type AccessPickerProps = {
|
|
3
|
+
/** The Site password it asks for, by identifier; empty, everybody. */
|
|
4
|
+
value: string;
|
|
5
|
+
passwords: readonly SpaceCredential[];
|
|
6
|
+
/** Said under it: when the choice takes effect. */
|
|
7
|
+
hint?: string;
|
|
8
|
+
/** The domain it is for, when it is not plain from where it is shown. */
|
|
9
|
+
domain?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Only the choice, small, inside a row: the row says what it is for. */
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
onChange: (identifier: string) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Who may see a domain: everybody, or whoever has one of the space's Site passwords — said in words, with where to make
|
|
17
|
+
* one when the space has none yet.
|
|
18
|
+
*/
|
|
19
|
+
declare const AccessPicker: ({ value, passwords, hint, domain, disabled, compact, onChange }: AccessPickerProps) => import('react').JSX.Element;
|
|
20
|
+
export default AccessPicker;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type DeployProgressProps = {
|
|
2
|
+
deployId: number;
|
|
3
|
+
domain: string;
|
|
4
|
+
/** What the deploy follows: "example.com now serves production r12." */
|
|
5
|
+
said: string;
|
|
6
|
+
onRollBack?: () => void;
|
|
7
|
+
onDone: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A deploy as it runs: its steps ticked, its log behind a
|
|
11
|
+
* toggle, a way to stop it; done, the site to open and the rollback beside it; failed, why, in its own words.
|
|
12
|
+
*/
|
|
13
|
+
declare const DeployProgress: ({ deployId, domain, said, onRollBack, onDone }: DeployProgressProps) => import('react').JSX.Element;
|
|
14
|
+
export default DeployProgress;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpaceTarget } from '@plitzi/sdk-shared';
|
|
2
|
+
export type DomainCardProps = {
|
|
3
|
+
target: SpaceTarget;
|
|
4
|
+
chosen: boolean;
|
|
5
|
+
onChoose: (domain: string) => void;
|
|
6
|
+
/** Its hosting: Plitzi's page servers, or a copy on a provider. Absent for a host of Plitzi's own. */
|
|
7
|
+
onSettings?: (domain: string) => void;
|
|
8
|
+
};
|
|
9
|
+
/** One domain to publish to, as a row of the list: what it shows now, where it is hosted, and what it asks for. */
|
|
10
|
+
declare const DomainCard: ({ target, chosen, onChoose, onSettings }: DomainCardProps) => import('react').JSX.Element;
|
|
11
|
+
export default DomainCard;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SpaceTarget } from '@plitzi/sdk-shared';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type DomainListProps = {
|
|
4
|
+
/** The space's own address, first: where the site is before any domain, with nothing to publish. */
|
|
5
|
+
own: ReactNode;
|
|
6
|
+
domains: readonly SpaceTarget[];
|
|
7
|
+
chosen: string | undefined;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
/** Where the space's domains are added: the console's Domains tab. */
|
|
10
|
+
addUrl: string;
|
|
11
|
+
/** The plan that includes domains of the space's own, when its own does not. */
|
|
12
|
+
lockedBy?: string;
|
|
13
|
+
/** Choosing one is what publishing is about: absent in the history, which only reads them. */
|
|
14
|
+
publishing: boolean;
|
|
15
|
+
onChoose: (domain: string) => void;
|
|
16
|
+
onSettings: (domain: string) => void;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Where the site is, in one list: the space's own address — always the latest saved edits — then the domains, one
|
|
20
|
+
* chosen to publish to, and the way to connect another. Before there is any, what one is for.
|
|
21
|
+
*/
|
|
22
|
+
declare const DomainList: ({ own, domains, chosen, loading, addUrl, lockedBy, publishing, onChoose, onSettings }: DomainListProps) => import('react').JSX.Element;
|
|
23
|
+
export default DomainList;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpaceCredential, SpaceTarget } from '@plitzi/sdk-shared';
|
|
2
|
+
export type OwnAddressRowProps = {
|
|
3
|
+
target: SpaceTarget;
|
|
4
|
+
/** The password it asks for now, by identifier: none, everybody sees it. */
|
|
5
|
+
access: string;
|
|
6
|
+
passwords: readonly SpaceCredential[];
|
|
7
|
+
onChanged: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The space's own address, first in the list of where the site is and said for what it is: always the latest saved
|
|
11
|
+
* edits, nothing to publish — so never chosen to publish to. Who may see it applies at once, beside it.
|
|
12
|
+
*/
|
|
13
|
+
declare const OwnAddressRow: ({ target, access, passwords, onChanged }: OwnAddressRowProps) => import('react').JSX.Element;
|
|
14
|
+
export default OwnAddressRow;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type PublishDoneProps = {
|
|
2
|
+
said: string;
|
|
3
|
+
/** "Roll back to r3": offered when there is something to put back. */
|
|
4
|
+
rollbackLabel?: string;
|
|
5
|
+
onRollBack: () => void;
|
|
6
|
+
onOpenSite: () => void;
|
|
7
|
+
onDone: () => void;
|
|
8
|
+
};
|
|
9
|
+
/** What a publish, a schedule or a rollback did, and the next steps: look at the site, or undo it. */
|
|
10
|
+
declare const PublishDone: ({ said, rollbackLabel, onRollBack, onOpenSite, onDone }: PublishDoneProps) => import('react').JSX.Element;
|
|
11
|
+
export default PublishDone;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Environment } from '@plitzi/sdk-shared';
|
|
2
|
+
export type PublishSheetProps = {
|
|
3
|
+
/** The snapshot to publish, when the sheet opens from "Snapshot and publish…". */
|
|
4
|
+
environment?: Environment;
|
|
5
|
+
revision?: number;
|
|
6
|
+
/** The domain to open on — one whose target asked for a look. */
|
|
7
|
+
domain?: string;
|
|
8
|
+
/** Opened on the domain's history, from the header's Publish menu. */
|
|
9
|
+
view?: 'history';
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Publish, for somebody who has never done it: where the site is, in one list — the space's own
|
|
14
|
+
* address, always the latest saved edits, then the domains, one chosen — and what the chosen one shows, decided in the
|
|
15
|
+
* order anybody would: an environment (each said for what it is for), the latest of it or one version, and whether the
|
|
16
|
+
* editor's changes are kept as a new one first. Who may see it and what will happen are said before anything does.
|
|
17
|
+
* The history lists every version kept, each to preview or publish; pressed, a deploy becomes its progress here.
|
|
18
|
+
*/
|
|
19
|
+
declare const PublishSheet: ({ environment: askedEnvironment, revision: askedRevision, domain: askedDomain, view: askedView, onClose }: PublishSheetProps) => import('react').JSX.Element;
|
|
20
|
+
export default PublishSheet;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SpaceRelease, SpaceServedVersion } from '@plitzi/sdk-shared';
|
|
2
|
+
export type ReleaseHistoryProps = {
|
|
3
|
+
domain: string;
|
|
4
|
+
releases: readonly SpaceRelease[];
|
|
5
|
+
loading: boolean;
|
|
6
|
+
/** Puts a version back on the domain — after the sheet asks to be sure. */
|
|
7
|
+
onServeAgain: (version: SpaceServedVersion) => void;
|
|
8
|
+
/** Shown open: the sheet's history view, rather than a fold under the publish. */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A domain's releases, newest first: what each put on it, who, when, and whether it was a publish or a rollback — every
|
|
13
|
+
* one but the live one with the way to serve it again.
|
|
14
|
+
*/
|
|
15
|
+
declare const ReleaseHistory: ({ domain, releases, loading, onServeAgain, open }: ReleaseHistoryProps) => import('react').JSX.Element;
|
|
16
|
+
export default ReleaseHistory;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PublishedEnvironment } from '../../helpers/environments';
|
|
2
|
+
import { SpaceSnapshot } from '@plitzi/sdk-shared';
|
|
3
|
+
export type RevisionListProps = {
|
|
4
|
+
/** Every version kept, newest first — one list, whatever environment kept each. */
|
|
5
|
+
snapshots: readonly SpaceSnapshot[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
/** The domain being published: a version live there says so. */
|
|
8
|
+
domain: string | undefined;
|
|
9
|
+
onPublish: (environment: PublishedEnvironment, revision: number) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The versions kept, newest first and in one list — each to preview at its own address or to publish on the domain: how
|
|
13
|
+
* a site goes back to what it showed before, or shows a version kept with Snapshot.
|
|
14
|
+
*/
|
|
15
|
+
declare const RevisionList: ({ snapshots, loading, domain, onPublish }: RevisionListProps) => import('react').JSX.Element;
|
|
16
|
+
export default RevisionList;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpaceSnapshot } from '@plitzi/sdk-shared';
|
|
2
|
+
export type RevisionOptionProps = {
|
|
3
|
+
snapshot: SpaceSnapshot;
|
|
4
|
+
chosen: boolean;
|
|
5
|
+
/** The domain being published: the version it shows says so. */
|
|
6
|
+
domain: string;
|
|
7
|
+
onPick: (revision: number) => void;
|
|
8
|
+
};
|
|
9
|
+
/** One version to choose: its number and words, who kept it and when, where it is live, and its own preview address. */
|
|
10
|
+
declare const RevisionOption: ({ snapshot, chosen, domain, onPick }: RevisionOptionProps) => import('react').JSX.Element;
|
|
11
|
+
export default RevisionOption;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PublishedEnvironment } from '../../helpers/environments';
|
|
2
|
+
import { SpaceSnapshot } from '@plitzi/sdk-shared';
|
|
3
|
+
export type RevisionRowProps = {
|
|
4
|
+
snapshot: SpaceSnapshot;
|
|
5
|
+
/** The domain being published: the version it shows says so instead of offering itself again. */
|
|
6
|
+
domain: string | undefined;
|
|
7
|
+
onPublish: (environment: PublishedEnvironment, revision: number) => void;
|
|
8
|
+
};
|
|
9
|
+
/** One version kept: its words, who kept it and when, where it is live, its own preview address and a way to publish it. */
|
|
10
|
+
declare const RevisionRow: ({ snapshot, domain, onPublish }: RevisionRowProps) => import('react').JSX.Element;
|
|
11
|
+
export default RevisionRow;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpaceServedVersion } from '@plitzi/sdk-shared';
|
|
2
|
+
export type RollbackConfirmProps = {
|
|
3
|
+
domain: string;
|
|
4
|
+
version: SpaceServedVersion;
|
|
5
|
+
holdsACopy: boolean;
|
|
6
|
+
working: boolean;
|
|
7
|
+
onKeep: () => void;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
};
|
|
10
|
+
/** A rollback asked for, said before it happens: what goes back, how soon, and what it leaves as it is. */
|
|
11
|
+
declare const RollbackConfirm: ({ domain, version, holdsACopy, working, onKeep, onConfirm }: RollbackConfirmProps) => import('react').JSX.Element;
|
|
12
|
+
export default RollbackConfirm;
|