@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.
- package/CHANGELOG.md +163 -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 +2167 -1942
- 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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UnitTest } from '@plitzi/sdk-shared';
|
|
2
|
+
import { TSpaceUnitTestResult } from '@plitzi/sdk-shared/network';
|
|
3
|
+
export type UnitTestRowProps = {
|
|
4
|
+
test: UnitTest;
|
|
5
|
+
/** How it went against the saved document; none until the space is saved with it. */
|
|
6
|
+
result?: TSpaceUnitTestResult;
|
|
7
|
+
/** What is wrong with it as written, each a sentence: marked, and said under it. */
|
|
8
|
+
problems?: readonly string[];
|
|
9
|
+
/** Read, never written: a role that does not write the tests. */
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
onEdit: (id: string) => void;
|
|
12
|
+
onRemove: (id: string) => void;
|
|
13
|
+
};
|
|
14
|
+
/** One unit test: what it holds of which element, and how it went — what it missed, said, when it failed. */
|
|
15
|
+
declare const UnitTestRow: ({ test, result, problems, readOnly, onEdit, onRemove }: UnitTestRowProps) => import('react').JSX.Element;
|
|
16
|
+
export default UnitTestRow;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { E2eStep, E2eTest, SpaceTests, UnitExpectation, UnitTest } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* The space's tests as the builder edits them: two kinds kept apart — unit tests, one element resolved with
|
|
4
|
+
* no browser, and e2e tests, a visitor's steps on a page — each edited as a list of rows whose fields its kind says.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* What a field of a row holds: words, a number, any value (JSON when it reads as JSON), an element of the space, or one
|
|
8
|
+
* of its element checks.
|
|
9
|
+
*/
|
|
10
|
+
export type FieldKind = 'text' | 'number' | 'value' | 'element' | 'check';
|
|
11
|
+
export type FieldSpec = {
|
|
12
|
+
name: string;
|
|
13
|
+
label: string;
|
|
14
|
+
kind: FieldKind;
|
|
15
|
+
};
|
|
16
|
+
export type KindSpec = {
|
|
17
|
+
label: string;
|
|
18
|
+
fields: FieldSpec[];
|
|
19
|
+
};
|
|
20
|
+
/** What must hold of a unit test's element, by kind. */
|
|
21
|
+
export declare const UNIT_KINDS: Record<UnitExpectation['kind'], KindSpec>;
|
|
22
|
+
/** A step of an e2e test — something done, or something that must hold — by kind. */
|
|
23
|
+
export declare const STEP_KINDS: Record<E2eStep['kind'], KindSpec>;
|
|
24
|
+
export declare const stepKindOf: (kind: string) => KindSpec | undefined;
|
|
25
|
+
/** The widths an e2e test is played at, as the builder offers them. */
|
|
26
|
+
export declare const WIDTHS: {
|
|
27
|
+
value: number;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
/** An id no test of the list has: `<prefix>-1`, `<prefix>-2`… */
|
|
31
|
+
export declare const nextId: (prefix: string, taken: readonly {
|
|
32
|
+
id: string;
|
|
33
|
+
}[]) => string;
|
|
34
|
+
export declare const newUnitTest: (element: string, taken: readonly UnitTest[]) => UnitTest;
|
|
35
|
+
export declare const newE2eTest: (page: string, taken: readonly E2eTest[]) => E2eTest;
|
|
36
|
+
/**
|
|
37
|
+
* A row of a kind, its fields as the kind starts them: an element field the element given, an element check's the
|
|
38
|
+
* check given, the rest empty.
|
|
39
|
+
*/
|
|
40
|
+
export declare const emptyOf: (kind: string, spec: KindSpec, elementId: string, checkId?: string) => Row;
|
|
41
|
+
/** What a value field shows: words as they are, anything else as JSON. */
|
|
42
|
+
export declare const valueText: (value: unknown) => string;
|
|
43
|
+
/** What a value field holds: what it reads as JSON — a number, true, a list — or else its words. */
|
|
44
|
+
export declare const valueOf: (text: string) => unknown;
|
|
45
|
+
/** The tests with one unit test saved under `id`, or removed: what is saved whole. */
|
|
46
|
+
/** A tag as typed, made one: lower case, spaces as `-`, nothing but letters, digits, `-` and `_` — `Sign in` is `sign-in`. */
|
|
47
|
+
export declare const tagOf: (text: string) => string;
|
|
48
|
+
/** Every tag the journeys carry, with how many carry it — the most used first, then by name. */
|
|
49
|
+
export declare const tagsOf: (journeys: readonly E2eTest[]) => {
|
|
50
|
+
tag: string;
|
|
51
|
+
count: number;
|
|
52
|
+
}[];
|
|
53
|
+
/** What the list of journeys is narrowed to: words searched for, and a tag. */
|
|
54
|
+
export type JourneyFilter = {
|
|
55
|
+
query: string;
|
|
56
|
+
tag?: string;
|
|
57
|
+
};
|
|
58
|
+
/** Whether a journey is one the filter keeps: it carries the tag, and the words are in its title, id, page or a tag. */
|
|
59
|
+
export declare const journeyMatches: (journey: E2eTest, { query, tag }: JourneyFilter) => boolean;
|
|
60
|
+
export declare const withUnitTest: (tests: SpaceTests, test: UnitTest | undefined, id: string) => SpaceTests;
|
|
61
|
+
/** The tests with one e2e test saved under `id`, or removed: what is saved whole. */
|
|
62
|
+
export declare const withE2eTest: (tests: SpaceTests, test: E2eTest | undefined, id: string) => SpaceTests;
|
|
63
|
+
/** The elements a field may name, as the builder lists them: its label or type, and its id. */
|
|
64
|
+
export declare const elementOptions: (flat: Record<string, {
|
|
65
|
+
definition: {
|
|
66
|
+
label?: string;
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
}>) => {
|
|
70
|
+
value: string;
|
|
71
|
+
label: string;
|
|
72
|
+
}[];
|
|
73
|
+
/**
|
|
74
|
+
* What a person calls the element a step names: the label it was given — else its id, which a space's author chose — and
|
|
75
|
+
* which copy, for one a list draws more than once.
|
|
76
|
+
*/
|
|
77
|
+
export declare const elementNameOf: (flat: Partial<Record<string, {
|
|
78
|
+
definition: {
|
|
79
|
+
label?: string;
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
}>>, target: string) => string;
|
|
83
|
+
/** A row as the builder edits it: a kind and the fields it took. */
|
|
84
|
+
export type Row = {
|
|
85
|
+
kind: string;
|
|
86
|
+
} & Record<string, unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* A row as a unit test's expectation. Its fields are held by the server's reader (`readSpaceTests`) as it saves — a
|
|
89
|
+
* field missing refuses the save, saying which — so the record is sent as the row reads.
|
|
90
|
+
*/
|
|
91
|
+
export declare const expectationOf: (row: Row) => UnitExpectation;
|
|
92
|
+
/** A row as an e2e test's step, held by the server's reader as it saves (see `expectationOf`). */
|
|
93
|
+
export declare const stepOf: (row: Row) => E2eStep;
|
|
94
|
+
/** A list with the row at `index` moved by `by` places, or the list as it was past either end. */
|
|
95
|
+
export declare const moved: <T>(list: readonly T[], index: number, by: number) => T[];
|
|
96
|
+
/** The step a run is shown at first: the one that failed, else the last played. */
|
|
97
|
+
export declare const shownStepOf: (steps: readonly {
|
|
98
|
+
ok: boolean;
|
|
99
|
+
notRun?: true;
|
|
100
|
+
}[]) => number;
|
|
101
|
+
/** How wide the device frame draws a page of a width: a phone at its size, anything wider scaled to fit. */
|
|
102
|
+
export declare const frameWidthOf: (width: number) => number;
|
|
103
|
+
/** A step of a flow, where it sits in it. */
|
|
104
|
+
export type PlacedStep = {
|
|
105
|
+
step: E2eStep;
|
|
106
|
+
index: number;
|
|
107
|
+
};
|
|
108
|
+
/** One moment of a flow: something done — none for the page as it opens — and what must hold once it is. */
|
|
109
|
+
export type FlowMoment = {
|
|
110
|
+
action?: PlacedStep;
|
|
111
|
+
checks: PlacedStep[];
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* A flow read as a person reads it: moments, each a thing done and the checks after it — "when this, then that". The
|
|
115
|
+
* checks before anything is done are the page as it opens; a flow that checks nothing there does not start with one.
|
|
116
|
+
*/
|
|
117
|
+
export declare const momentsOf: (steps: readonly E2eStep[]) => FlowMoment[];
|
|
118
|
+
/**
|
|
119
|
+
* A problem the server said of a test, as the person reads it: the test by the title they gave it — not its id — and
|
|
120
|
+
* what is wrong with it, a sentence.
|
|
121
|
+
*/
|
|
122
|
+
export declare const problemInWords: (problem: string, tests: SpaceTests) => {
|
|
123
|
+
test: string;
|
|
124
|
+
said: string;
|
|
125
|
+
};
|
|
126
|
+
/** What the server said is wrong with one test — of a kind, by its id — each a sentence; none when it said nothing. */
|
|
127
|
+
export declare const problemsOfTest: (problems: readonly string[], kind: "e2e" | "unit", id: string) => string[];
|
|
128
|
+
/** The problems the server said of one kind of test — the flows', or the element checks' — each as it said it. */
|
|
129
|
+
export declare const problemsOfKind: (problems: readonly string[], kind: "e2e" | "unit") => string[];
|
|
130
|
+
/** The tests of a kind that need a look, by id, each once and in the order the server named them. */
|
|
131
|
+
export declare const testsNeedingLook: (problems: readonly string[], kind: "e2e" | "unit") => string[];
|
|
132
|
+
/** What is wrong with one flow, by where it is fixed: where it starts, its device, a step, or the flow as a whole. */
|
|
133
|
+
export type FlowProblems = {
|
|
134
|
+
page: string[];
|
|
135
|
+
device: string[];
|
|
136
|
+
steps: Map<number, string[]>;
|
|
137
|
+
other: string[];
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* A flow's problems placed where they are fixed — the field or the step a person changes — so each is said beside it
|
|
141
|
+
* rather than in a list apart.
|
|
142
|
+
*/
|
|
143
|
+
export declare const flowProblemsOf: (problems: readonly string[], id: string) => FlowProblems;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the person writes the space's tests here — `spaceTests`: a tester, and every role that edits — and, when not,
|
|
3
|
+
* the calm line that says so. Reading and playing them in the builder is everyone's; writing them, and playing them on
|
|
4
|
+
* the server (which counts against the plan), is not.
|
|
5
|
+
*/
|
|
6
|
+
declare const useMayTest: () => {
|
|
7
|
+
mayTest: boolean;
|
|
8
|
+
why?: string;
|
|
9
|
+
};
|
|
10
|
+
export default useMayTest;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpaceTests } from '@plitzi/sdk-shared';
|
|
2
|
+
/** The document being edited: a published snapshot was tested when it was taken, and cannot change. */
|
|
3
|
+
export declare const TESTS_VARIABLES: {
|
|
4
|
+
environment: string;
|
|
5
|
+
};
|
|
6
|
+
export type SavedTests = {
|
|
7
|
+
ok: true;
|
|
8
|
+
} | {
|
|
9
|
+
ok: false;
|
|
10
|
+
problem: string;
|
|
11
|
+
};
|
|
12
|
+
/** Stores the space's tests whole, answering whether they were kept — or what was wrong with them, as the server says. */
|
|
13
|
+
declare const useSaveSpaceTests: () => ((tests: SpaceTests) => Promise<SavedTests>);
|
|
14
|
+
export default useSaveSpaceTests;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FlowState } from '../studio/TestStudioContext';
|
|
2
|
+
/** A play of the journeys on the server, as it goes: each journey reached, the one playing now and the page after its step. */
|
|
3
|
+
export type ServerPlay = {
|
|
4
|
+
run: string;
|
|
5
|
+
/** How many journeys the run plays. */
|
|
6
|
+
of: number;
|
|
7
|
+
journeys: Partial<Record<string, FlowState>>;
|
|
8
|
+
now: {
|
|
9
|
+
test: string;
|
|
10
|
+
at: number;
|
|
11
|
+
played: number;
|
|
12
|
+
steps: number;
|
|
13
|
+
frame?: string;
|
|
14
|
+
};
|
|
15
|
+
/** Its last journey ended: what the run answers is the report from here on. */
|
|
16
|
+
ended: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The journeys the server is playing on asking — this person's "Run on the server", someone else's, an agent's — heard
|
|
20
|
+
* on the space's channel step by step (`SPACE_TESTS_PLAYING`). The latest run only: one plays at a time per space. `settle` ends it when the run's own answer arrives.
|
|
21
|
+
*/
|
|
22
|
+
declare const useServerPlay: () => {
|
|
23
|
+
play?: ServerPlay;
|
|
24
|
+
settle: () => void;
|
|
25
|
+
};
|
|
26
|
+
export default useServerPlay;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SavedTests } from './useSaveSpaceTests';
|
|
2
|
+
import { SpaceTests } from '@plitzi/sdk-shared';
|
|
3
|
+
import { TSpaceRunE2eTestsMutation, TSpaceTests } from '@plitzi/sdk-shared/network';
|
|
4
|
+
/**
|
|
5
|
+
* The space's tests as the saved document keeps them, and how they stand against it — what a snapshot would meet. Asked
|
|
6
|
+
* again each time the save queue drains, as the issues are: an edit of the space is what makes a test pass or fail.
|
|
7
|
+
* `save` stores the list whole and answers how it stands, or what was wrong with it.
|
|
8
|
+
*/
|
|
9
|
+
export type SpaceTestsState = {
|
|
10
|
+
answer: TSpaceTests | undefined;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
save: (tests: SpaceTests) => Promise<SavedTests>;
|
|
13
|
+
/** The e2e tests played now on the saved draft, by the server: each as it went, or why none was run. */
|
|
14
|
+
runE2e: () => Promise<TSpaceRunE2eTestsMutation | {
|
|
15
|
+
notRun: string;
|
|
16
|
+
results: [];
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
declare const useSpaceTests: () => SpaceTestsState;
|
|
20
|
+
export default useSpaceTests;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { E2eTest, SpaceTests } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* What is wrong with the space's tests as they are written, read here against the document as it is being edited — the
|
|
4
|
+
* same reading a snapshot makes (sdk-authoring's), so what the builder says and what a snapshot refuses agree: an edit
|
|
5
|
+
* that fixes a test fixes it at once, and the answer does not hang on the server's version. The flow being written is
|
|
6
|
+
* read as it stands, saved or not.
|
|
7
|
+
*/
|
|
8
|
+
declare const useTestProblems: (tests: SpaceTests, flow?: E2eTest) => string[];
|
|
9
|
+
export default useTestProblems;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The page under it shows the visitor of the journey on the canvas (`journeyOnCanvas`, opened or played) — never the
|
|
4
|
+
* editor's session: its test account (`as`, laid over the page as `runtime.testAccount`), a session it signs in to, or a
|
|
5
|
+
* guest. The editor's session hid every page for visitors without one, and a journey that passed on the server failed
|
|
6
|
+
* here; a journey opened as an account showed the page as the editor until it was played.
|
|
7
|
+
*/
|
|
8
|
+
declare const JourneyVisitor: ({ children }: {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}) => import('react').JSX.Element;
|
|
11
|
+
export default JourneyVisitor;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { E2eStep, E2eTest, SpaceTests } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* The builder's Tests area: the space's flows beside its page — the canvas, live and in preview, on the left;
|
|
4
|
+
* the flows on the right, each with how it went; the flow chosen below, its steps in words. What is pressed on the
|
|
5
|
+
* right is played on the left: a flow chosen opens on its page and device, a step pressed replays the flow up to it,
|
|
6
|
+
* Record turns what is done on the page into steps.
|
|
7
|
+
*
|
|
8
|
+
* Every play starts as a new visitor would: the canvas drawn again and the state empty. What the author had in state is
|
|
9
|
+
* put back when the area closes.
|
|
10
|
+
*/
|
|
11
|
+
/** How one step went the last time its flow was played. */
|
|
12
|
+
export type StepPlay = {
|
|
13
|
+
state: 'next';
|
|
14
|
+
} | {
|
|
15
|
+
state: 'running';
|
|
16
|
+
} | {
|
|
17
|
+
state: 'passed';
|
|
18
|
+
ms: number;
|
|
19
|
+
} | {
|
|
20
|
+
state: 'failed';
|
|
21
|
+
read: string;
|
|
22
|
+
} | {
|
|
23
|
+
state: 'notRun';
|
|
24
|
+
};
|
|
25
|
+
/** Where a flow stands: not played yet, waiting its turn, playing, how its last play ended, or one only the server plays. */
|
|
26
|
+
export type FlowState = {
|
|
27
|
+
state: 'idle';
|
|
28
|
+
} | {
|
|
29
|
+
state: 'queued';
|
|
30
|
+
} | {
|
|
31
|
+
state: 'playing';
|
|
32
|
+
played: number;
|
|
33
|
+
} | {
|
|
34
|
+
state: 'passed';
|
|
35
|
+
ms: number;
|
|
36
|
+
steps: number;
|
|
37
|
+
} | {
|
|
38
|
+
state: 'failed';
|
|
39
|
+
read: string;
|
|
40
|
+
at?: number;
|
|
41
|
+
} | {
|
|
42
|
+
state: 'stopped';
|
|
43
|
+
} | {
|
|
44
|
+
state: 'server';
|
|
45
|
+
why: string;
|
|
46
|
+
};
|
|
47
|
+
/** A line of a play's log: when, which flow, the step in words, and whether it held. */
|
|
48
|
+
export type PlayLogLine = {
|
|
49
|
+
at: number;
|
|
50
|
+
flow: string;
|
|
51
|
+
text: string;
|
|
52
|
+
ok: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type StudioMode = 'idle' | 'recording' | 'playing';
|
|
55
|
+
export type TestStudioValue = {
|
|
56
|
+
/** Whether the Tests area is open: the canvas in it is the one played on. */
|
|
57
|
+
active: boolean;
|
|
58
|
+
/** Whether the page just drawn for a flow is still being sent on as it opens — kept out of sight until it is still. */
|
|
59
|
+
settling: boolean;
|
|
60
|
+
/** The space's tests, as last saved — the list the area shows. */
|
|
61
|
+
tests: SpaceTests;
|
|
62
|
+
/** The flow chosen, as edited so far. */
|
|
63
|
+
flow?: E2eTest;
|
|
64
|
+
/** Whether the chosen flow changed since it was chosen or saved. */
|
|
65
|
+
dirty: boolean;
|
|
66
|
+
mode: StudioMode;
|
|
67
|
+
/** Every flow being played in turn, as against one. */
|
|
68
|
+
playingAll: boolean;
|
|
69
|
+
/** Held before its next step: Continue goes on, Next step plays that one step. */
|
|
70
|
+
paused: boolean;
|
|
71
|
+
/** Whether the next click on the page adds a check of what it shows, instead of pressing it. */
|
|
72
|
+
checking: boolean;
|
|
73
|
+
/** How each step of the chosen flow went, the last time it was played. */
|
|
74
|
+
plays: (StepPlay | undefined)[];
|
|
75
|
+
/** Where each flow stands, by id. */
|
|
76
|
+
states: Partial<Record<string, FlowState>>;
|
|
77
|
+
/** The last play's log: every step, when, and whether it held. */
|
|
78
|
+
log: PlayLogLine[];
|
|
79
|
+
/** How the last play ended, in words; none while playing or before the first. */
|
|
80
|
+
outcome?: {
|
|
81
|
+
ok: boolean;
|
|
82
|
+
said: string;
|
|
83
|
+
};
|
|
84
|
+
/** How long the last play took, in ms, once it ended. */
|
|
85
|
+
playedMs?: number;
|
|
86
|
+
/** Draws the canvas anew: each play starts on a page as fresh as a visitor's. */
|
|
87
|
+
canvasKey: number;
|
|
88
|
+
/** The pause between two steps of a play, in seconds — the person's own; never below 0. */
|
|
89
|
+
stepDelay: number;
|
|
90
|
+
setStepDelay: (seconds: number) => void;
|
|
91
|
+
/** Opens the area on `tests`: the canvas in preview, the author's state kept to put back. */
|
|
92
|
+
enter: (tests: SpaceTests) => void;
|
|
93
|
+
leave: () => void;
|
|
94
|
+
/** The list as saved again — after the area's own save, or another's. */
|
|
95
|
+
load: (tests: SpaceTests) => void;
|
|
96
|
+
/** Chooses a flow: it opens on its page and device, as a new visitor. */
|
|
97
|
+
select: (id: string) => void;
|
|
98
|
+
/** A new flow, chosen — on the page the canvas shows. */
|
|
99
|
+
create: (page: string) => void;
|
|
100
|
+
edit: (flow: E2eTest) => void;
|
|
101
|
+
add: (step: E2eStep) => void;
|
|
102
|
+
record: (on: boolean) => void;
|
|
103
|
+
check: (on: boolean) => void;
|
|
104
|
+
/** Plays the chosen flow from its start: held before its first step when `stepping`, after step `until` when given. */
|
|
105
|
+
play: (options?: {
|
|
106
|
+
stepping?: boolean;
|
|
107
|
+
until?: number;
|
|
108
|
+
}) => void;
|
|
109
|
+
/** Plays every journey in turn — or only those of `only`, by id: the ones a filter shows. */
|
|
110
|
+
playAll: (only?: readonly string[]) => void;
|
|
111
|
+
/** What the rows last said of the canvas's plays, forgotten: a run on the server speaks for them now. */
|
|
112
|
+
forgetStates: () => void;
|
|
113
|
+
pause: () => void;
|
|
114
|
+
resume: () => void;
|
|
115
|
+
next: () => void;
|
|
116
|
+
stop: () => void;
|
|
117
|
+
/** Lights the element a step names on the page — or none. */
|
|
118
|
+
point: (step: E2eStep | undefined) => void;
|
|
119
|
+
save: () => Promise<string | undefined>;
|
|
120
|
+
discard: () => void;
|
|
121
|
+
remove: (id: string) => Promise<string | undefined>;
|
|
122
|
+
/** The canvas the area plays and records in: the builder's iframe, handed over as it mounts. */
|
|
123
|
+
attach: (iframe: HTMLIFrameElement | null) => void;
|
|
124
|
+
};
|
|
125
|
+
declare const TestStudioContext: import('react').Context<TestStudioValue>;
|
|
126
|
+
export default TestStudioContext;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { E2ePage } from '@plitzi/sdk-authoring';
|
|
2
|
+
/**
|
|
3
|
+
* The builder's canvas as the page an e2e test is played on: the same runner as the CLI's and the server's —
|
|
4
|
+
* `runE2eTest`, given this instead of Playwright's page — pressing the elements the SDK draws in the canvas' iframe. A
|
|
5
|
+
* press waits as Playwright's does, and says why it could not happen in the words of Playwright's own log, so the runner
|
|
6
|
+
* reads a failure the same way whichever page played it.
|
|
7
|
+
*
|
|
8
|
+
* The canvas is the editor's own page, not a browser of its own: what needs one — reloading, a held clock, the space's
|
|
9
|
+
* actions answered by the test — is the server's run's, and said so.
|
|
10
|
+
*/
|
|
11
|
+
export type CanvasPageOptions = {
|
|
12
|
+
iframe: HTMLIFrameElement;
|
|
13
|
+
/** Opens a path of the space in the canvas, as a link in it does. */
|
|
14
|
+
navigate: (path: string) => void;
|
|
15
|
+
back: () => void;
|
|
16
|
+
/** The canvas drawn at a width: the builder's device. */
|
|
17
|
+
resize: (width: number) => void;
|
|
18
|
+
scheme: (scheme: 'light' | 'dark') => void;
|
|
19
|
+
};
|
|
20
|
+
/** What only a browser of its own plays: the canvas cannot. */
|
|
21
|
+
export declare const playedOnServer: (what: string) => Error;
|
|
22
|
+
export declare const createCanvasPage: ({ iframe, navigate, back, resize, scheme }: CanvasPageOptions) => E2ePage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The waits for the canvas drawn anew, answered together by the next one mounted: a flow chosen and played at once asks
|
|
3
|
+
* twice, and a wait given up on after `ms` takes only itself away — a choice superseded by another once cleared the
|
|
4
|
+
* wait of the play that followed it, which then never had its page.
|
|
5
|
+
*/
|
|
6
|
+
export declare const canvasWaits: (ms: number) => {
|
|
7
|
+
wait: () => Promise<HTMLIFrameElement>;
|
|
8
|
+
mounted: (iframe: HTMLIFrameElement) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { elementNameOf } from '../helpers';
|
|
2
|
+
import { FlowState, PlayLogLine, StepPlay } from './TestStudioContext';
|
|
3
|
+
import { E2eResult, E2eRunOptions } from '@plitzi/sdk-authoring';
|
|
4
|
+
import { E2eStep, E2eTest, Schema, UnitTest } from '@plitzi/sdk-shared';
|
|
5
|
+
/** What a play in the Tests area is made of, without the area: devices, how a step and a flow stand, the lit tone. */
|
|
6
|
+
/** The builder's device for a width: the canvas a flow of that width is played in. */
|
|
7
|
+
export declare const deviceOf: (width?: number) => "mobile" | "tablet" | "desktop";
|
|
8
|
+
/** A time as a person reads it: `1.3 s`. */
|
|
9
|
+
export declare const seconds: (ms: number) => string;
|
|
10
|
+
/** A played step as the area shows it. */
|
|
11
|
+
export declare const playOf: (step: {
|
|
12
|
+
ok: boolean;
|
|
13
|
+
ms: number;
|
|
14
|
+
read?: string;
|
|
15
|
+
}) => StepPlay;
|
|
16
|
+
/** What only a browser of its own plays — the space's actions answered by the flow, a held clock — said, or none. */
|
|
17
|
+
export declare const needsServer: (flow: E2eTest) => string | undefined;
|
|
18
|
+
/** Where a flow stands once played. */
|
|
19
|
+
export declare const stateOf: (result: E2eResult) => FlowState;
|
|
20
|
+
/** The canvas' document, once it has one. */
|
|
21
|
+
export declare const documentOf: (frame: {
|
|
22
|
+
current: HTMLIFrameElement | null;
|
|
23
|
+
}) => Document | null | undefined;
|
|
24
|
+
/** How a step is lit on the page: something done, or something checked. */
|
|
25
|
+
export declare const toneOf: (step: E2eStep) => "check" | "act";
|
|
26
|
+
/** What a play is handed by whoever runs it: its stop, and what it says before and after each step. */
|
|
27
|
+
export type PlayHooks = Pick<E2eRunOptions, 'beforeStep' | 'onStep'> & {
|
|
28
|
+
signal: AbortSignal;
|
|
29
|
+
};
|
|
30
|
+
/** A step played, as a line of the log: in the words a person reads it, and what it read when it did not hold. */
|
|
31
|
+
export declare const logLineOf: (played: E2eTest, index: number, step: {
|
|
32
|
+
ok: boolean;
|
|
33
|
+
read?: string;
|
|
34
|
+
}, started: number, flat: Parameters<typeof elementNameOf>[0], checks: readonly UnitTest[]) => PlayLogLine;
|
|
35
|
+
/** A play's hooks that show the canvas as its first step is reached (`settling`). */
|
|
36
|
+
export declare const shownFromFirstStep: (hooks: PlayHooks, show: () => void) => PlayHooks;
|
|
37
|
+
/** What a flow played on the canvas runs with: the editor's page, its element checks as `space` holds them. */
|
|
38
|
+
export declare const canvasRun: (played: E2eTest, { signal, beforeStep, onStep }: PlayHooks, space: Schema) => E2eRunOptions;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the page is shown as a guest while a journey is on the canvas: unless its test account is laid over it, or
|
|
3
|
+
* the session is no longer the editor's — one the journey signed in to, which is then what it reads.
|
|
4
|
+
*/
|
|
5
|
+
export declare const playsAsGuest: (onCanvas: boolean, accountLaid: boolean, token: string | undefined, editorToken: string | undefined) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An element of the canvas brought into view — the one a step is about, so what happens to it is seen.
|
|
3
|
+
*
|
|
4
|
+
* Not `scrollIntoView`: from inside the canvas' iframe it scrolls the editor around it too, and the Tests area would
|
|
5
|
+
* shift under the person's eyes. Only what scrolls inside the page moves: the element's nearest scroller, else the
|
|
6
|
+
* page, and only when the element is not already well in view — then it is centred.
|
|
7
|
+
*/
|
|
8
|
+
export declare const reveal: (node: Element, behavior?: ScrollBehavior) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { E2eStep } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* A step of an e2e test as a person reads it, not as it is stored: "Click [Add to basket]", "Check [Basket] shows
|
|
4
|
+
* “1”" — words, the element as a chip, a value quoted. Written for whoever builds the space, who need not know what a
|
|
5
|
+
* selector or an expectation is.
|
|
6
|
+
*/
|
|
7
|
+
/** A word, an element of the space (by id), a value — or an element check of the space (by id), said by its title. */
|
|
8
|
+
export type SentencePart = {
|
|
9
|
+
text: string;
|
|
10
|
+
} | {
|
|
11
|
+
element: string;
|
|
12
|
+
} | {
|
|
13
|
+
value: string;
|
|
14
|
+
} | {
|
|
15
|
+
check: string;
|
|
16
|
+
};
|
|
17
|
+
export type Sentence = {
|
|
18
|
+
icon: string;
|
|
19
|
+
check: boolean;
|
|
20
|
+
parts: SentencePart[];
|
|
21
|
+
};
|
|
22
|
+
export declare const sentenceOf: (step: E2eStep) => Sentence;
|
|
23
|
+
/** The element a step is about, when it names one: what the canvas lights while it plays. */
|
|
24
|
+
export declare const stepElementOf: (step: E2eStep) => string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* A step in plain words, its element by the name a person knows it by and an element check by its title: a line of a
|
|
27
|
+
* play's log, a timeline's tooltip.
|
|
28
|
+
*/
|
|
29
|
+
export declare const sentenceText: (step: E2eStep, nameOf: (target: string) => string, titleOf?: (check: string) => string) => string;
|
|
30
|
+
/** An element check's title, as its author gave it — its id when it has none, or when no check is it. */
|
|
31
|
+
export declare const checkTitleOf: (checks: readonly {
|
|
32
|
+
id: string;
|
|
33
|
+
title: string;
|
|
34
|
+
}[]) => (id: string) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a step of a test is about, lit in the canvas while it is played: a ring around its element — the builder's
|
|
3
|
+
* violet for something done, green for something checked, red when it failed — drawn over the page, taking no press.
|
|
4
|
+
*/
|
|
5
|
+
export type SpotlightTone = 'act' | 'check' | 'failed';
|
|
6
|
+
/** The element a target names — `row`, `row:3`, `row:last` — in the canvas. */
|
|
7
|
+
export declare const canvasElementOf: (document: Document, target: string) => Element | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Lights the element a step names, and brings it into view; nothing to light — a step with no element, or one not on
|
|
10
|
+
* the page — clears it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const spotlight: (document: Document | null | undefined, target: string | undefined, tone: SpotlightTone) => void;
|
|
13
|
+
export declare const clearSpotlight: (document: Document | null | undefined) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pause between two steps of a play, in seconds, until the person sets their own: long enough to see each one work
|
|
3
|
+
* on the page, short enough not to wait for it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const STEP_DELAY_S = 0.25;
|
|
6
|
+
/** A pause asked for as the person wrote it: a number of seconds, none below 0 — anything else is the default. */
|
|
7
|
+
export declare const stepDelayOf: (seconds: unknown) => number;
|
|
8
|
+
/** The pause before a step — the first is played at once — read as the play reaches it, so a change applies mid-play. */
|
|
9
|
+
export declare const pauseBefore: (delay: {
|
|
10
|
+
current: number;
|
|
11
|
+
}, index: number) => Promise<void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { E2eStep } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* The element a visitor's event is about, as a step names it: its id — and, for one a list draws more than once, which
|
|
4
|
+
* copy (`row:3`, from one). None for an event on nothing of the space's.
|
|
5
|
+
*/
|
|
6
|
+
export declare const targetOfEvent: (event: Event) => string | undefined;
|
|
7
|
+
/** The words an element shows, as an expectation holds them: its text, its spaces as one, cut at 80. */
|
|
8
|
+
export declare const shownTextOf: (event: Event) => string;
|
|
9
|
+
/** The step a click is: a press — on a canvas, at the point it landed — or, while checking, what the element shows. */
|
|
10
|
+
export declare const clickStep: (event: Event, checking: boolean) => E2eStep | undefined;
|
|
11
|
+
/** The step a field changed is: what was typed in it. */
|
|
12
|
+
export declare const changeStep: (event: Event) => E2eStep | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The canvas as the test studio uses it: handed over to play tests in, and — while a test is recorded, or a check is
|
|
4
|
+
* being picked — each click on an element of the space, and each field changed, a step of it. A click that picks a
|
|
5
|
+
* check reads the element and presses nothing. While open, the page's state is read and written from the canvas'
|
|
6
|
+
* window (`window.__plitzi`), as a test's state steps do on any page.
|
|
7
|
+
*/
|
|
8
|
+
declare const useCanvasStudio: (frame: RefObject<HTMLIFrameElement | null>) => void;
|
|
9
|
+
export default useCanvasStudio;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DisplayMode, E2eTest, Schema } from '@plitzi/sdk-shared';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The canvas of the Tests view: drawn anew for each flow, as a new visitor's page, and showing the visitor of the flow
|
|
5
|
+
* on it — its test account signed in (`as`) or a guest, never the editor's session (`journeyOnCanvas`, `JourneyVisitor`).
|
|
6
|
+
*/
|
|
7
|
+
declare const useStudioCanvas: ({ canvas, navigate, setDisplayMode, space }: {
|
|
8
|
+
/** Where the canvas' iframe is kept, once mounted: what a play's spotlight reads. */
|
|
9
|
+
canvas: RefObject<HTMLIFrameElement | null>;
|
|
10
|
+
navigate: (path: string) => void;
|
|
11
|
+
setDisplayMode: (mode: DisplayMode) => void;
|
|
12
|
+
/** The document a flow is opened against, its tests as they stand in the area: where its account is declared. */
|
|
13
|
+
space: () => Schema;
|
|
14
|
+
}) => {
|
|
15
|
+
canvasKey: number;
|
|
16
|
+
settling: boolean;
|
|
17
|
+
conceal: () => {
|
|
18
|
+
current: () => boolean;
|
|
19
|
+
reveal: () => void;
|
|
20
|
+
};
|
|
21
|
+
freshCanvas: () => Promise<HTMLIFrameElement>;
|
|
22
|
+
showVisitor: (flow: E2eTest | undefined) => string | undefined;
|
|
23
|
+
openOnCanvas: (opened: E2eTest | undefined) => Promise<string | undefined>;
|
|
24
|
+
attach: (iframe: HTMLIFrameElement | null) => void;
|
|
25
|
+
};
|
|
26
|
+
export default useStudioCanvas;
|
|
@@ -7,8 +7,10 @@ type CategoryCopy = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
/** What the search box searches. */
|
|
9
9
|
search: string;
|
|
10
|
-
/** Said when the space declares none. */
|
|
10
|
+
/** Said when the space declares none: an empty list's title, with no full stop. */
|
|
11
11
|
empty: string;
|
|
12
|
+
/** What the empty list shows beside it: a Font Awesome class. */
|
|
13
|
+
icon: string;
|
|
12
14
|
/** Said of an item nothing uses, under its name. */
|
|
13
15
|
unused: string;
|
|
14
16
|
/** What the unused filter is called. */
|
package/dist/package.json.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "@plitzi/plitzi-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"homepage": "./",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"files": [
|
|
@@ -34,7 +34,7 @@ declare const _default: {
|
|
|
34
34
|
"@fortawesome/fontawesome-free": "^7.3.1",
|
|
35
35
|
"@plitzi/nexus": "^1.4.0",
|
|
36
36
|
"@plitzi/plitzi-sdk": "workspace:*",
|
|
37
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
37
|
+
"@plitzi/plitzi-ui": "^1.6.36",
|
|
38
38
|
"@plitzi/sdk-auth": "workspace:*",
|
|
39
39
|
"@plitzi/sdk-authoring": "workspace:*",
|
|
40
40
|
"@plitzi/sdk-dev-tools": "workspace:*",
|