@wise/dynamic-flow-types 2.2.1 → 2.4.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/build/next/feature/Action.d.ts +35 -0
- package/build/next/feature/ActionType.d.ts +4 -0
- package/build/next/feature/External.d.ts +3 -0
- package/build/next/feature/Help.d.ts +3 -0
- package/build/next/feature/LinkHandler.d.ts +5 -0
- package/build/next/feature/Navigation.d.ts +11 -0
- package/build/next/feature/NavigationBackBehaviour.d.ts +8 -0
- package/build/next/feature/PersistAsync.d.ts +9 -0
- package/build/next/feature/Polling.d.ts +7 -0
- package/build/next/feature/PollingOnError.d.ts +4 -0
- package/build/next/feature/StepError.d.ts +4 -0
- package/build/next/feature/Summary.d.ts +3 -0
- package/build/next/feature/SummaryProvider.d.ts +6 -0
- package/build/next/feature/SummarySummariser.d.ts +12 -0
- package/build/next/feature/ValidateAsync.d.ts +6 -0
- package/build/next/index.d.ts +2 -0
- package/build/next/layout/AlertLayout.d.ts +9 -0
- package/build/next/layout/BoxLayout.d.ts +10 -0
- package/build/next/layout/ButtonLayout.d.ts +17 -0
- package/build/next/layout/ColumnsLayout.d.ts +11 -0
- package/build/next/layout/ColumnsLayoutBias.d.ts +1 -0
- package/build/next/layout/DecisionLayout.d.ts +8 -0
- package/build/next/layout/DecisionLayoutOption.d.ts +11 -0
- package/build/next/layout/DividerLayout.d.ts +9 -0
- package/build/next/layout/FormLayout.d.ts +7 -0
- package/build/next/layout/HeadingLayout.d.ts +10 -0
- package/build/next/layout/ImageLayout.d.ts +16 -0
- package/build/next/layout/InfoLayout.d.ts +12 -0
- package/build/next/layout/InstructionsLayout.d.ts +9 -0
- package/build/next/layout/InstructionsLayoutItem.d.ts +5 -0
- package/build/next/layout/Layout.d.ts +20 -0
- package/build/next/layout/ListLayout.d.ts +12 -0
- package/build/next/layout/ListLayoutItem.d.ts +11 -0
- package/build/next/layout/ListLayoutStatus.d.ts +4 -0
- package/build/next/layout/LoadingIndicatorLayout.d.ts +7 -0
- package/build/next/layout/MarkdownLayout.d.ts +9 -0
- package/build/next/layout/ModalLayout.d.ts +13 -0
- package/build/next/layout/ModalLayoutContent.d.ts +4 -0
- package/build/next/layout/ModalLayoutTrigger.d.ts +3 -0
- package/build/next/layout/ParagraphLayout.d.ts +9 -0
- package/build/next/layout/ReviewLayout.d.ts +20 -0
- package/build/next/layout/ReviewLayoutCallToAction.d.ts +5 -0
- package/build/next/layout/ReviewLayoutField.d.ts +6 -0
- package/build/next/layout/SearchLayout.d.ts +12 -0
- package/build/next/layout/StatusListLayout.d.ts +9 -0
- package/build/next/layout/StatusListLayoutItem.d.ts +8 -0
- package/build/next/layout/StatusListLayoutStatus.d.ts +1 -0
- package/build/next/misc/Align.d.ts +1 -0
- package/build/next/misc/AutocompleteToken.d.ts +1 -0
- package/build/next/misc/Context.d.ts +1 -0
- package/build/next/misc/HttpMethod.d.ts +1 -0
- package/build/next/misc/Icon.d.ts +3 -0
- package/build/next/misc/IconNamed.d.ts +3 -0
- package/build/next/misc/IconText.d.ts +3 -0
- package/build/next/misc/Size.d.ts +1 -0
- package/build/next/responses/action/ActionResponseBody.d.ts +4 -0
- package/build/next/responses/error/ErrorResponseBody.d.ts +9 -0
- package/build/next/responses/search/SearchResponseBody.d.ts +4 -0
- package/build/next/responses/search/SearchResult.d.ts +3 -0
- package/build/next/responses/search/SearchResultAction.d.ts +11 -0
- package/build/next/responses/search/SearchResultSearch.d.ts +11 -0
- package/build/next/responses/search/SearchSearchRequest.d.ts +7 -0
- package/build/next/schema/AllOfSchema.d.ts +24 -0
- package/build/next/schema/ArraySchema.d.ts +3 -0
- package/build/next/schema/ArraySchemaList.d.ts +33 -0
- package/build/next/schema/ArraySchemaTuple.d.ts +29 -0
- package/build/next/schema/BlobSchema.d.ts +30 -0
- package/build/next/schema/BlobSchemaSource.d.ts +1 -0
- package/build/next/schema/BooleanSchema.d.ts +48 -0
- package/build/next/schema/ConstSchema.d.ts +23 -0
- package/build/next/schema/IntegerSchema.d.ts +54 -0
- package/build/next/schema/NumberSchema.d.ts +54 -0
- package/build/next/schema/ObjectSchema.d.ts +32 -0
- package/build/next/schema/OneOfSchema.d.ts +52 -0
- package/build/next/schema/Schema.d.ts +11 -0
- package/build/next/schema/StringSchema.d.ts +69 -0
- package/build/next/schema/StringSchemaFormat.d.ts +1 -0
- package/build/next/schema/StringSchemaSource.d.ts +4 -0
- package/build/next/step/Step.d.ts +38 -0
- package/build/spec/Action.d.ts +1 -1
- package/build/spec/FileUploadSchema.d.ts +2 -2
- package/build/spec/LayoutComponent.d.ts +21 -6
- package/build/spec/Model.d.ts +1 -1
- package/build/spec/Navigation.d.ts +1 -1
- package/build/spec/PersistAsync.d.ts +1 -1
- package/build/spec/Polling.d.ts +1 -1
- package/build/spec/Promotion.d.ts +1 -1
- package/build/spec/Schema.d.ts +8 -8
- package/build/spec/Search.d.ts +2 -2
- package/build/spec/Step.d.ts +9 -9
- package/build/spec/ValidationAsync.d.ts +1 -1
- package/build/spec/core.d.ts +2 -0
- package/build/spec/responses.d.ts +3 -3
- package/package.json +2 -5
package/build/spec/core.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type Image = {
|
|
2
|
+
type?: 'image';
|
|
2
3
|
url: string;
|
|
3
4
|
text?: string;
|
|
4
5
|
name?: string;
|
|
@@ -22,6 +23,7 @@ export type Reference = {
|
|
|
22
23
|
/** @deprecated Prefer Context */
|
|
23
24
|
export type LegacyContext = 'success' | 'failure' | 'info' | 'primary';
|
|
24
25
|
export type Alert = {
|
|
26
|
+
type?: 'alert';
|
|
25
27
|
markdown: string;
|
|
26
28
|
context?: Context | LegacyContext;
|
|
27
29
|
margin?: Margin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Action } from './Action';
|
|
2
|
-
import { SearchResult } from './Search';
|
|
3
|
-
import { FormErrors, GlobalError } from './Step';
|
|
1
|
+
import type { Action } from './Action';
|
|
2
|
+
import type { SearchResult } from './Search';
|
|
3
|
+
import type { FormErrors, GlobalError } from './Step';
|
|
4
4
|
export type ActionResponseBody = {
|
|
5
5
|
action: Action;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Dynamic Flow TypeScript Types",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,14 +13,11 @@
|
|
|
13
13
|
"build"
|
|
14
14
|
],
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@formatjs/cli": "^6.2.
|
|
17
|
-
"eslint": "8.53.0",
|
|
18
|
-
"prettier": "3.1.0",
|
|
16
|
+
"@formatjs/cli": "^6.2.4",
|
|
19
17
|
"typescript": "4.9.5"
|
|
20
18
|
},
|
|
21
19
|
"peerDependencies": {},
|
|
22
20
|
"dependencies": {},
|
|
23
|
-
"prettier": "@transferwise/eslint-config/.prettierrc.js",
|
|
24
21
|
"scripts": {
|
|
25
22
|
"dev": "pnpm tsc --noEmit --watch",
|
|
26
23
|
"test": "pnpm tsc --noEmit",
|