@wise/dynamic-flow-types 4.14.0-experimental-a850677 → 4.14.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/renderers/RendererProps.d.ts +4 -5
- package/build/renderers/RendererProps.d.ts.map +1 -1
- package/build/renderers/SubflowRendererProps.d.ts +17 -7
- package/build/renderers/SubflowRendererProps.d.ts.map +1 -1
- package/build/renderers/index.d.ts +12 -4
- package/build/renderers/index.d.ts.map +1 -1
- package/build/spec/feature/Action.d.ts +6 -6
- package/build/spec/feature/ActionBehavior.d.ts +1 -0
- package/build/spec/feature/ActionBehavior.d.ts.map +1 -1
- package/build/spec/feature/CopyBehavior.d.ts +1 -0
- package/build/spec/feature/CopyBehavior.d.ts.map +1 -1
- package/build/spec/feature/DismissBehavior.d.ts +1 -0
- package/build/spec/feature/DismissBehavior.d.ts.map +1 -1
- package/build/spec/feature/External.d.ts +1 -1
- package/build/spec/feature/LinkBehavior.d.ts +1 -0
- package/build/spec/feature/LinkBehavior.d.ts.map +1 -1
- package/build/spec/feature/ModalBehavior.d.ts +1 -0
- package/build/spec/feature/ModalBehavior.d.ts.map +1 -1
- package/build/spec/feature/NavigationBackBehavior.d.ts +8 -1
- package/build/spec/feature/NavigationBackBehavior.d.ts.map +1 -1
- package/build/spec/feature/NavigationStackBehavior.d.ts +4 -0
- package/build/spec/feature/NavigationStackBehavior.d.ts.map +1 -1
- package/build/spec/feature/PersistAsync.d.ts +1 -0
- package/build/spec/feature/PersistAsync.d.ts.map +1 -1
- package/build/spec/feature/Polling.d.ts +2 -2
- package/build/spec/feature/RefreshBehavior.d.ts +1 -0
- package/build/spec/feature/RefreshBehavior.d.ts.map +1 -1
- package/build/spec/feature/SubflowBehavior.d.ts +1 -1
- package/build/spec/feature/ValidateAsync.d.ts +1 -0
- package/build/spec/feature/ValidateAsync.d.ts.map +1 -1
- package/build/spec/feature/subflow/DynamicLaunchConfig.d.ts +1 -1
- package/build/spec/feature/subflow/LaunchConfig.d.ts +3 -2
- package/build/spec/feature/subflow/LaunchConfig.d.ts.map +1 -1
- package/build/spec/feature/subflow/NativeLaunchConfig.d.ts +22 -0
- package/build/spec/feature/subflow/NativeLaunchConfig.d.ts.map +1 -0
- package/build/spec/index.d.ts +0 -1
- package/build/spec/index.d.ts.map +1 -1
- package/build/spec/layout/AlertLayout.d.ts +5 -0
- package/build/spec/layout/AlertLayout.d.ts.map +1 -1
- package/build/spec/layout/AlertLayoutCallToAction.d.ts +2 -2
- package/build/spec/layout/BoxLayout.d.ts +1 -0
- package/build/spec/layout/BoxLayout.d.ts.map +1 -1
- package/build/spec/layout/ButtonLayout.d.ts +1 -1
- package/build/spec/layout/ColumnsLayout.d.ts +1 -0
- package/build/spec/layout/ColumnsLayout.d.ts.map +1 -1
- package/build/spec/layout/DecisionLayout.d.ts +8 -1
- package/build/spec/layout/DecisionLayout.d.ts.map +1 -1
- package/build/spec/layout/DividerLayout.d.ts +1 -0
- package/build/spec/layout/DividerLayout.d.ts.map +1 -1
- package/build/spec/layout/HeadingLayout.d.ts +1 -0
- package/build/spec/layout/HeadingLayout.d.ts.map +1 -1
- package/build/spec/layout/ImageLayout.d.ts +2 -0
- package/build/spec/layout/ImageLayout.d.ts.map +1 -1
- package/build/spec/layout/InstructionsLayout.d.ts +7 -0
- package/build/spec/layout/InstructionsLayout.d.ts.map +1 -1
- package/build/spec/layout/ItemCallToAction.d.ts +2 -2
- package/build/spec/layout/Layout.d.ts +3 -4
- package/build/spec/layout/Layout.d.ts.map +1 -1
- package/build/spec/layout/ListLayout.d.ts +7 -0
- package/build/spec/layout/ListLayout.d.ts.map +1 -1
- package/build/spec/layout/ListLayoutCallToAction.d.ts +1 -1
- package/build/spec/layout/LoadingIndicatorLayout.d.ts +1 -0
- package/build/spec/layout/LoadingIndicatorLayout.d.ts.map +1 -1
- package/build/spec/layout/MarkdownLayout.d.ts +1 -0
- package/build/spec/layout/MarkdownLayout.d.ts.map +1 -1
- package/build/spec/layout/MediaLayout.d.ts +1 -1
- package/build/spec/layout/ModalLayout.d.ts +5 -0
- package/build/spec/layout/ModalLayout.d.ts.map +1 -1
- package/build/spec/layout/ParagraphLayout.d.ts +1 -0
- package/build/spec/layout/ParagraphLayout.d.ts.map +1 -1
- package/build/spec/layout/ProgressLayout.d.ts +6 -0
- package/build/spec/layout/ProgressLayout.d.ts.map +1 -1
- package/build/spec/layout/ReviewLayout.d.ts +8 -0
- package/build/spec/layout/ReviewLayout.d.ts.map +1 -1
- package/build/spec/layout/ReviewLayoutCallToAction.d.ts +1 -1
- package/build/spec/layout/ReviewLayoutField.d.ts +1 -1
- package/build/spec/layout/SearchLayout.d.ts +6 -1
- package/build/spec/layout/SearchLayout.d.ts.map +1 -1
- package/build/spec/layout/SectionLayout.d.ts +5 -0
- package/build/spec/layout/SectionLayout.d.ts.map +1 -1
- package/build/spec/layout/SectionLayoutCallToAction.d.ts +1 -1
- package/build/spec/layout/StatusListLayout.d.ts +5 -0
- package/build/spec/layout/StatusListLayout.d.ts.map +1 -1
- package/build/spec/layout/TabsLayout.d.ts +1 -0
- package/build/spec/layout/TabsLayout.d.ts.map +1 -1
- package/build/spec/layout/UpsellLayout.d.ts +5 -0
- package/build/spec/layout/UpsellLayout.d.ts.map +1 -1
- package/build/spec/layout/UpsellLayoutCallToAction.d.ts +2 -2
- package/build/spec/main.js +11 -89
- package/build/spec/main.mjs +11 -89
- package/build/spec/responses/NoOpResponseBody.d.ts +4 -1
- package/build/spec/responses/NoOpResponseBody.d.ts.map +1 -1
- package/build/spec/responses/search/SearchInitialLayoutConfig.d.ts +1 -1
- package/build/spec/responses/subflow/SubflowResponseBody.d.ts +2 -2
- package/build/spec/schema/ArraySchema.d.ts +1 -0
- package/build/spec/schema/ArraySchema.d.ts.map +1 -1
- package/build/spec/schema/BlobSchema.d.ts +1 -0
- package/build/spec/schema/BlobSchema.d.ts.map +1 -1
- package/build/spec/schema/BooleanSchema.d.ts +1 -0
- package/build/spec/schema/BooleanSchema.d.ts.map +1 -1
- package/build/spec/schema/IntegerSchema.d.ts +1 -0
- package/build/spec/schema/IntegerSchema.d.ts.map +1 -1
- package/build/spec/schema/NumberSchema.d.ts +1 -0
- package/build/spec/schema/NumberSchema.d.ts.map +1 -1
- package/build/spec/schema/ObjectSchema.d.ts +1 -0
- package/build/spec/schema/ObjectSchema.d.ts.map +1 -1
- package/build/spec/schema/OneOfSchema.d.ts +15 -3
- package/build/spec/schema/OneOfSchema.d.ts.map +1 -1
- package/build/spec/schema/StringSchema.d.ts +20 -0
- package/build/spec/schema/StringSchema.d.ts.map +1 -1
- package/build/spec/step/Step.d.ts +14 -1
- package/build/spec/step/Step.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/zod/schemas.d.ts +85 -120
- package/build/zod/schemas.d.ts.map +1 -1
- package/build/zod/schemas.ts +7 -98
- package/package.json +1 -1
- package/build/renderers/CollectionRendererProps.d.ts +0 -59
- package/build/renderers/CollectionRendererProps.d.ts.map +0 -1
- package/build/spec/layout/CollectionLayout.d.ts +0 -85
- package/build/spec/layout/CollectionLayout.d.ts.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { AlertRendererProps } from './AlertRendererProps';
|
|
3
3
|
import type { BoxRendererProps } from './BoxRendererProps';
|
|
4
|
-
import type { CollectionRendererProps } from './CollectionRendererProps';
|
|
5
4
|
import type { ButtonRendererProps } from './ButtonRendererProps';
|
|
6
5
|
import type { CheckboxInputRendererProps } from './CheckboxInputRendererProps';
|
|
7
6
|
import type { ColumnsRendererProps } from './ColumnsRendererProps';
|
|
@@ -16,11 +15,11 @@ import type { FormSectionRendererProps } from './FormSectionRendererProps';
|
|
|
16
15
|
import type { HeadingRendererProps } from './HeadingRendererProps';
|
|
17
16
|
import type { HiddenRendererProps } from './HiddenRendererProps';
|
|
18
17
|
import type { ImageRendererProps } from './ImageRendererProps';
|
|
19
|
-
import type { LoadingStateRendererProps } from './LoadingStateRendererProps';
|
|
20
18
|
import type { InstructionsRendererProps } from './InstructionsRendererProps';
|
|
21
19
|
import type { IntegerInputRendererProps } from './IntegerInputRendererProps';
|
|
22
20
|
import type { ListRendererProps } from './ListRendererProps';
|
|
23
21
|
import type { LoadingIndicatorRendererProps } from './LoadingIndicatorRendererProps';
|
|
22
|
+
import type { LoadingStateRendererProps } from './LoadingStateRendererProps';
|
|
24
23
|
import type { MarkdownRendererProps } from './MarkdownRendererProps';
|
|
25
24
|
import type { MediaRendererProps } from './MediaRendererProps';
|
|
26
25
|
import type { ModalLayoutRendererProps } from './ModalLayoutRendererProps';
|
|
@@ -39,12 +38,12 @@ import type { SectionRendererProps } from './SectionRendererProps';
|
|
|
39
38
|
import type { SelectInputRendererProps } from './SelectInputRendererProps';
|
|
40
39
|
import type { StatusListRendererProps } from './StatusListRendererProps';
|
|
41
40
|
import type { AnalyticsEventDispatcher, LoadingState, StepRendererProps } from './StepRendererProps';
|
|
42
|
-
import {
|
|
41
|
+
import { NativeSubflowRendererProps, DynamicSubflowRendererProps } from './SubflowRendererProps';
|
|
43
42
|
import { TabsRendererProps } from './TabsRendererProps';
|
|
44
43
|
import type { TextInputRendererProps } from './TextInputRendererProps';
|
|
45
44
|
import type { UploadInputRendererProps } from './UploadInputRendererProps';
|
|
46
45
|
import type { UpsellRendererProps } from './UpsellRendererProps';
|
|
47
|
-
export type RendererProps = AlertRendererProps | CheckboxInputRendererProps | BoxRendererProps |
|
|
46
|
+
export type RendererProps = AlertRendererProps | CheckboxInputRendererProps | BoxRendererProps | ButtonRendererProps | ColumnsRendererProps | CoreContainerRendererProps | DateInputRendererProps | DecisionRendererProps | DividerRendererProps | ExternalConfirmationRendererProps | FormattedValueRendererProps | FormRendererProps | HeadingRendererProps | HiddenRendererProps | ImageRendererProps | LoadingStateRendererProps | InstructionsRendererProps | IntegerInputRendererProps | ListRendererProps | LoadingIndicatorRendererProps | MarkdownRendererProps | MediaRendererProps | ModalLayoutRendererProps | ModalRendererProps | MoneyInputRendererProps | MultiSelectInputRendererProps | MultiUploadInputRendererProps | NativeSubflowRendererProps | NumberInputRendererProps | ParagraphRendererProps | ProgressRendererProps | RepeatableRendererProps | ReviewRendererProps | RootRendererProps | SearchRendererProps | FormSectionRendererProps | SelectInputRendererProps | SectionRendererProps | StatusListRendererProps | StepRendererProps | DynamicSubflowRendererProps | TabsRendererProps | TextInputRendererProps | UploadInputRendererProps | UpsellRendererProps;
|
|
48
47
|
export type Renderer<P extends RendererProps> = {
|
|
49
48
|
canRenderType: P['type'];
|
|
50
49
|
canRender?: (props: P) => boolean;
|
|
@@ -54,7 +53,7 @@ export type RendererContext = {
|
|
|
54
53
|
render: RenderFunction;
|
|
55
54
|
};
|
|
56
55
|
export type RenderFunction = (props: RendererProps | null) => JSX.Element | null;
|
|
57
|
-
export type Renderers = readonly (Renderer<StepRendererProps> | Renderer<CoreContainerRendererProps> | Renderer<AlertRendererProps> | Renderer<BoxRendererProps> | Renderer<
|
|
56
|
+
export type Renderers = readonly (Renderer<StepRendererProps> | Renderer<CoreContainerRendererProps> | Renderer<AlertRendererProps> | Renderer<BoxRendererProps> | Renderer<ColumnsRendererProps> | Renderer<DecisionRendererProps> | Renderer<DividerRendererProps> | Renderer<ExternalConfirmationRendererProps> | Renderer<FormattedValueRendererProps> | Renderer<FormRendererProps> | Renderer<HeadingRendererProps> | Renderer<LoadingStateRendererProps> | Renderer<InstructionsRendererProps> | Renderer<ListRendererProps> | Renderer<LoadingIndicatorRendererProps> | Renderer<MarkdownRendererProps> | Renderer<ImageRendererProps> | Renderer<MediaRendererProps> | Renderer<ModalLayoutRendererProps> | Renderer<ModalRendererProps> | Renderer<ParagraphRendererProps> | Renderer<ProgressRendererProps> | Renderer<ReviewRendererProps> | Renderer<SearchRendererProps> | Renderer<StatusListRendererProps> | Renderer<CheckboxInputRendererProps> | Renderer<ButtonRendererProps> | Renderer<DateInputRendererProps> | Renderer<HiddenRendererProps> | Renderer<IntegerInputRendererProps> | Renderer<MoneyInputRendererProps> | Renderer<NativeSubflowRendererProps> | Renderer<NumberInputRendererProps> | Renderer<RepeatableRendererProps> | Renderer<RootRendererProps> | Renderer<FormSectionRendererProps> | Renderer<SelectInputRendererProps> | Renderer<SectionRendererProps> | Renderer<DynamicSubflowRendererProps> | Renderer<MultiSelectInputRendererProps> | Renderer<TabsRendererProps> | Renderer<TextInputRendererProps> | Renderer<UploadInputRendererProps> | Renderer<MultiUploadInputRendererProps> | Renderer<UpsellRendererProps>)[];
|
|
58
57
|
export type BaseRendererProps = {
|
|
59
58
|
uid: string;
|
|
60
59
|
analyticsId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RendererProps.d.ts","sourceRoot":"","sources":["../../src/renderers/RendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RendererProps.d.ts","sourceRoot":"","sources":["../../src/renderers/RendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0B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GACvC,QAAQ,CAAC,mBAAmB,CAAC,CAChC,EAAE,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,OAAO,KAAK,CAAC;IACzB,UAAU,EAAE,wBAAwB,CAAC;IACrC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC"}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { JsonElement, Request } from '../spec';
|
|
2
2
|
import { BaseRendererProps } from './RendererProps';
|
|
3
3
|
import { AnalyticsEventDispatcher } from './StepRendererProps';
|
|
4
|
+
type BaseSubflowRendererProps = BaseRendererProps & {
|
|
5
|
+
onCompletion: (result: JsonElement) => void;
|
|
6
|
+
onError: (error: unknown, status?: number) => void;
|
|
7
|
+
onCancellation: () => void;
|
|
8
|
+
onEvent: AnalyticsEventDispatcher;
|
|
9
|
+
};
|
|
4
10
|
/**
|
|
5
11
|
* @experimental These renderer props may change in the future without notice.
|
|
6
12
|
*/
|
|
7
|
-
export type
|
|
8
|
-
type: 'subflow';
|
|
9
|
-
|
|
13
|
+
export type NativeSubflowRendererProps = BaseSubflowRendererProps & {
|
|
14
|
+
type: 'subflow-native';
|
|
15
|
+
id: string;
|
|
16
|
+
payload: JsonElement | undefined;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @experimental These renderer props may change in the future without notice.
|
|
20
|
+
*/
|
|
21
|
+
export type DynamicSubflowRendererProps = BaseSubflowRendererProps & {
|
|
22
|
+
type: 'subflow-dynamic';
|
|
10
23
|
presentation: {
|
|
11
24
|
type: 'push';
|
|
12
25
|
} | {
|
|
@@ -14,13 +27,10 @@ export type SubflowRendererProps = BaseRendererProps & {
|
|
|
14
27
|
};
|
|
15
28
|
initialRequest: Request;
|
|
16
29
|
requestCache?: RequestCache;
|
|
17
|
-
onCompletion: (result: JsonElement) => void;
|
|
18
|
-
onError: (error: unknown, status?: number) => void;
|
|
19
|
-
onCancellation: () => void;
|
|
20
|
-
onEvent: AnalyticsEventDispatcher;
|
|
21
30
|
};
|
|
22
31
|
export type RequestCache = {
|
|
23
32
|
get: (requestParams: Parameters<typeof fetch>) => Promise<Response | null> | undefined;
|
|
24
33
|
set: (requestParams: Parameters<typeof fetch>, responsePromise: Promise<Response | null>) => void;
|
|
25
34
|
};
|
|
35
|
+
export {};
|
|
26
36
|
//# sourceMappingURL=SubflowRendererProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubflowRendererProps.d.ts","sourceRoot":"","sources":["../../src/renderers/SubflowRendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"SubflowRendererProps.d.ts","sourceRoot":"","sources":["../../src/renderers/SubflowRendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,KAAK,wBAAwB,GAAG,iBAAiB,GAAG;IAClD,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,GAAG;IACnE,IAAI,EAAE,iBAAiB,CAAC;IACxB,YAAY,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC;IACnD,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,KAAK,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACvF,GAAG,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC;CACnG,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import { JsonElement, Presentation } from '../spec';
|
|
3
|
+
import { NativeSubflowRendererProps } from './SubflowRendererProps';
|
|
1
4
|
export type { AlertRendererProps } from './AlertRendererProps';
|
|
2
5
|
export type { BoxRendererProps } from './BoxRendererProps';
|
|
3
|
-
export type { CollectionRendererProps, CollectionSection, CollectionItem, CollectionSearch, CollectionFilter, CollectionFilterOption, } from './CollectionRendererProps';
|
|
4
6
|
export type { ButtonRendererProps } from './ButtonRendererProps';
|
|
5
7
|
export type { CheckboxInputRendererProps } from './CheckboxInputRendererProps';
|
|
6
8
|
export type { ColumnsRendererProps } from './ColumnsRendererProps';
|
|
@@ -15,11 +17,11 @@ export type { FormSectionRendererProps } from './FormSectionRendererProps';
|
|
|
15
17
|
export type { HeadingRendererProps } from './HeadingRendererProps';
|
|
16
18
|
export type { HiddenRendererProps } from './HiddenRendererProps';
|
|
17
19
|
export type { ImageRendererProps } from './ImageRendererProps';
|
|
18
|
-
export type { LoadingStateRendererProps } from './LoadingStateRendererProps';
|
|
19
20
|
export type { InstructionItem, InstructionsRendererProps } from './InstructionsRendererProps';
|
|
20
21
|
export type { IntegerInputRendererProps } from './IntegerInputRendererProps';
|
|
21
22
|
export type { ListRendererProps } from './ListRendererProps';
|
|
22
23
|
export type { LoadingIndicatorRendererProps } from './LoadingIndicatorRendererProps';
|
|
24
|
+
export type { LoadingStateRendererProps } from './LoadingStateRendererProps';
|
|
23
25
|
export type { MarkdownRendererProps } from './MarkdownRendererProps';
|
|
24
26
|
export type { MediaRendererProps } from './MediaRendererProps';
|
|
25
27
|
export type { ModalLayoutRendererProps } from './ModalLayoutRendererProps';
|
|
@@ -43,12 +45,18 @@ export type { TextInputRendererProps } from './TextInputRendererProps';
|
|
|
43
45
|
export type { UploadInputRendererProps } from './UploadInputRendererProps';
|
|
44
46
|
export type { UpsellRendererProps } from './UpsellRendererProps';
|
|
45
47
|
export type { ValidationResult } from './BaseInputRendererProps';
|
|
46
|
-
export type {
|
|
48
|
+
export type { DynamicSubflowRendererProps, NativeSubflowRendererProps, } from './SubflowRendererProps';
|
|
47
49
|
export type { Align, Context, Margin, Size } from './constants';
|
|
48
50
|
export type { Icon } from './Icon';
|
|
49
51
|
export type { Image } from './Image';
|
|
50
|
-
export type {
|
|
52
|
+
export type { AvatarContent, AvatarTextContent, AvatarUriContent, LegacyMedia, Media, MediaAvatar, MediaImage, } from './Media';
|
|
51
53
|
export type { AdditionalInfo, InlineAlert, SupportingValues } from './constants';
|
|
52
54
|
export type { Renderer, RendererProps, Renderers, RenderFunction } from './RendererProps';
|
|
53
55
|
export type { CallToAction } from './CallToAction';
|
|
56
|
+
export type NativeSubflowHandler = {
|
|
57
|
+
id: string;
|
|
58
|
+
getCapabilityComments?: () => Record<string, string>;
|
|
59
|
+
getPresentationMode: (payload: JsonElement | undefined) => Presentation['type'];
|
|
60
|
+
render: (props: NativeSubflowRendererProps) => JSX.Element | null;
|
|
61
|
+
};
|
|
54
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/renderers/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/renderers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAC7F,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAA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E,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrD,mBAAmB,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,KAAK,YAAY,CAAC,MAAM,CAAC,CAAC;IAChF,MAAM,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;CACnE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import type { JsonElement } from '../JsonElement';
|
|
|
6
6
|
* An action typically defines its URL and HTTP method to submit step data, and can optionally indicate that, on success,
|
|
7
7
|
* the flow must end.
|
|
8
8
|
* An endpoint can respond to a submitting action with an error status code and the standard error response format in order to display errors to the user.
|
|
9
|
-
*
|
|
9
|
+
* ## Behavior
|
|
10
10
|
* If an action does not specify the `exit` property as true, it is expected that the action will submit the step payload.
|
|
11
11
|
* For example, the following action is a non-exiting action.
|
|
12
12
|
* ```kt
|
|
@@ -15,12 +15,12 @@ import type { JsonElement } from '../JsonElement';
|
|
|
15
15
|
* method = HttpMethod.POST
|
|
16
16
|
* }
|
|
17
17
|
* ```
|
|
18
|
-
*
|
|
18
|
+
* ### Exiting Actions
|
|
19
19
|
* If an action specifies `exit` as `true`, it is expected that this action should terminate the flow. For exiting actions,
|
|
20
20
|
* the `url` property is optional.
|
|
21
21
|
* If the `url` property is not specified, when the action is taken the flow will be terminated and the value of the result
|
|
22
22
|
* property will be used as the result of the flow.
|
|
23
|
-
*
|
|
23
|
+
* #### Example
|
|
24
24
|
* Given the following action:
|
|
25
25
|
* ```kt
|
|
26
26
|
* action {
|
|
@@ -36,18 +36,18 @@ import type { JsonElement } from '../JsonElement';
|
|
|
36
36
|
* "someKey": "someValue"
|
|
37
37
|
* }
|
|
38
38
|
* ```
|
|
39
|
-
*
|
|
39
|
+
* ### Submitting Exiting Actions (Not recommended)
|
|
40
40
|
* If the `url` property is specified, the step payload will be submitted. On a successful response, the `result` property of the action (if provided)
|
|
41
41
|
* will be merged with the response to the submission, and that combined result will be used as the result of the flow, which will terminate. In case
|
|
42
42
|
* of any conflicts in the merge, the value of the result property of the action takes precedence.
|
|
43
43
|
* **However, it is not recommended to use this approach.** Instead, a non-exiting action should be used to submit the step payload, and the flow should be
|
|
44
44
|
* terminated by the server by returning an `X-DF-Response-Type: exit` header in the response. See "Actions Which Sometimes Exit" for more information.
|
|
45
|
-
*
|
|
45
|
+
* ### Actions Which Sometimes Exit
|
|
46
46
|
* In some cases, the provider of the step will not know if a submitting action will exit. For example, depending on the data entered by the user,
|
|
47
47
|
* the flow may be complete, or we may need to ask them some follow-up questions. In these cases the `exit` property shouldn’t be specified. Instead,
|
|
48
48
|
* the response to the submission should include an `X-DF-Response-Type: exit` header. When the client receives this header
|
|
49
49
|
* in the response, it will continue in the same way as it would for a submitting exiting action. See [com.wise.dynamicflow.responses.FlowResponse].
|
|
50
|
-
*
|
|
50
|
+
* ### Summary
|
|
51
51
|
* This tree summarises the possible paths an action can lead to:
|
|
52
52
|
* - If `exit` is `true`:
|
|
53
53
|
* - If `url` is `null`:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/ActionBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC
|
|
1
|
+
{"version":3,"file":"ActionBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/ActionBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC;;;EAGE;AACF,MAAM,MAAM,cAAc,GAAG;IACzB;;MAEE;IACF,IAAI,EAAE,QAAQ,CAAC;IACf;;MAEE;IACF,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/CopyBehavior.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CopyBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/CopyBehavior.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,MAAM,MAAM,YAAY,GAAG;IACvB;;MAEE;IACF,IAAI,EAAE,MAAM,CAAC;IACb;;MAEE;IACF,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DismissBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/DismissBehavior.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"DismissBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/DismissBehavior.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,MAAM,MAAM,eAAe,GAAG;IAC1B;;MAEE;IACF,IAAI,EAAE,SAAS,CAAC;CACnB,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Mobile:
|
|
7
7
|
* - Open a URL in the default browser.
|
|
8
8
|
* - Or open another app via a universal link.
|
|
9
|
-
* External is typically used alongside [Polling].
|
|
9
|
+
* External is typically used alongside [com.wise.dynamicflow.feature.Polling].
|
|
10
10
|
* ### Example
|
|
11
11
|
* ```kt
|
|
12
12
|
* Step.build {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/LinkBehavior.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"LinkBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/LinkBehavior.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,MAAM,MAAM,YAAY,GAAG;IACvB;;MAEE;IACF,IAAI,EAAE,MAAM,CAAC;IACb;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/ModalBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C
|
|
1
|
+
{"version":3,"file":"ModalBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/ModalBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C;;;EAGE;AACF,MAAM,MAAM,aAAa,GAAG;IACxB;;MAEE;IACF,IAAI,EAAE,OAAO,CAAC;IACd;;MAEE;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;MAIE;IACF,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { Action } from './Action';
|
|
2
2
|
/**
|
|
3
|
-
* Describes how back navigation should be handled.
|
|
3
|
+
* Describes how back navigation should be handled. If omitted, clients will handle
|
|
4
|
+
* back navigation natively. This means they will return to the previous step if possible,
|
|
5
|
+
* or exit the flow.
|
|
6
|
+
* <!-- fixture: backnavigation -->
|
|
7
|
+
* ## When to use
|
|
8
|
+
* - When navigating back requires a new step from the server, e.g. if the content is invalid and needs to be regenerated.
|
|
9
|
+
* ## When not to use
|
|
10
|
+
* - If the step the user just navigated from is still valid, and is a logical place to go back to, then this property should be omitted so the native behavior is left intact.
|
|
4
11
|
*/
|
|
5
12
|
export type NavigationBackBehavior = {
|
|
6
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBackBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/NavigationBackBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC
|
|
1
|
+
{"version":3,"file":"NavigationBackBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/NavigationBackBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC;;;;;;;;;EASE;AACF,MAAM,MAAM,sBAAsB,GAAG;IACjC;;MAEE;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;MAGE;IACF,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Describes the behavior of the navigation stack when the step is presented.
|
|
3
|
+
* ## When to use
|
|
4
|
+
* - When an intermediate step (e.g. a step that displays a loader) which should not be kept on the stack, a `remove-previous` stack behaviour could be used.
|
|
5
|
+
* - When returning to previous steps is invalid, for example on a success screen after an operation has been completed, it might make sense to completely clear the stack with a `remove-all` stack behavior.
|
|
6
|
+
* - When the current step is being replaced, to give the appearance of refreshing, a `replace-current` stack behavior could be used.
|
|
3
7
|
*/
|
|
4
8
|
export type NavigationStackBehavior = 'default' | 'remove-previous' | 'remove-all' | 'replace-current';
|
|
5
9
|
//# sourceMappingURL=NavigationStackBehavior.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationStackBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/NavigationStackBehavior.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"NavigationStackBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/NavigationStackBehavior.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AACF,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,iBAAiB,GAAG,YAAY,GAAG,iBAAiB,CAAC"}
|
|
@@ -8,6 +8,7 @@ import type { HttpMethod } from '../misc/HttpMethod';
|
|
|
8
8
|
* Note that the schema on which the `persistAsync` property is set should reflect the value that is
|
|
9
9
|
* submitted (i.e. the token/identifier), while the [schema] property defines
|
|
10
10
|
* the schema that is shown to the user and submitted to the persist async endpoint.
|
|
11
|
+
* <!-- fixture: upload -->
|
|
11
12
|
* ### Example
|
|
12
13
|
* When the value of the field changes, a request is sent to the URL defined in the `persistAsync` object, where the request body is
|
|
13
14
|
* a JSON object containing the value of the field under a property matching the value of `persistAsync.param`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistAsync.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/PersistAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD
|
|
1
|
+
{"version":3,"file":"PersistAsync.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/PersistAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DE;AACF,MAAM,MAAM,YAAY,GAAG;IACvB;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,UAAU,EAAE,MAAM,CAAC;IACnB;;MAEE;IACF,MAAM,EAAE,MAAM,CAAC;IACf;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ;;MAEE;IACF,MAAM,EAAE,UAAU,CAAC;CACtB,CAAC"}
|
|
@@ -5,9 +5,9 @@ import type { PollingOnError } from './PollingOnError';
|
|
|
5
5
|
* The client may continue to another step or end the flow.
|
|
6
6
|
* ### Example
|
|
7
7
|
* Given the step below, the client will start making requests to the specified URL every 5 seconds.
|
|
8
|
-
* To
|
|
8
|
+
* **To continue polling**, the response should have a 2xx status code and an empty body. The client will continue to make requests until the flow progresses or [maxAttempts] is reached.
|
|
9
|
+
* **To stop polling**, the response should be a [com.wise.dynamicflow.responses.FlowResponse] with the `X-DF-Response-Type` header set accordingly.
|
|
9
10
|
* *Note that older clients only support [com.wise.dynamicflow.responses.action.ActionResponseBody]*
|
|
10
|
-
* To continue Polling, the response should have a 2xx status code and an empty body. The client will continue to make requests until the flow progresses or [maxAttempts] is reached.
|
|
11
11
|
* ```kt
|
|
12
12
|
* Step.build {
|
|
13
13
|
* layout { }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/RefreshBehavior.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"RefreshBehavior.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/RefreshBehavior.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,MAAM,MAAM,eAAe,GAAG;IAC1B;;MAEE;IACF,IAAI,EAAE,SAAS,CAAC;CACnB,CAAC"}
|
|
@@ -22,7 +22,7 @@ export type SubflowBehavior = {
|
|
|
22
22
|
resultKey?: string;
|
|
23
23
|
/**
|
|
24
24
|
* The behavior performed on successful completion of the subflow. If this is an ActionBehavior,
|
|
25
|
-
* the result of the subflow will be merged into the payload according to the
|
|
25
|
+
* the result of the subflow will be merged into the payload according to the `resultKey`.
|
|
26
26
|
*/
|
|
27
27
|
onCompletion?: Behavior;
|
|
28
28
|
/**
|
|
@@ -14,6 +14,7 @@ import type { HttpMethod } from '../misc/HttpMethod';
|
|
|
14
14
|
* Also, in the case where the validation-async network call fails or returns an unexpected response,
|
|
15
15
|
* the client ignores the problem and allows the user to submit.
|
|
16
16
|
* For these reasons, any validation which is critical should also be performed by the server on submission.
|
|
17
|
+
* <!-- fixture: validationasync -->
|
|
17
18
|
* ### Example
|
|
18
19
|
* Given a schema defined as:
|
|
19
20
|
* ```kt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidateAsync.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/ValidateAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD
|
|
1
|
+
{"version":3,"file":"ValidateAsync.d.ts","sourceRoot":"","sources":["../../../src/spec/feature/ValidateAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF,MAAM,MAAM,aAAa,GAAG;IACxB;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,MAAM,EAAE,UAAU,CAAC;IACnB;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Request } from '../../misc/Request';
|
|
2
2
|
import type { Presentation } from './Presentation';
|
|
3
3
|
/**
|
|
4
|
-
* Launches a [Subflow] that is powered by Dynamic Flow.
|
|
4
|
+
* Launches a [com.wise.dynamicflow.feature.subflow.Subflow] that is powered by Dynamic Flow.
|
|
5
5
|
* The subflow must be started with a request to the server.
|
|
6
6
|
*/
|
|
7
7
|
export type DynamicLaunchConfig = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DynamicLaunchConfig } from './DynamicLaunchConfig';
|
|
2
|
+
import type { NativeLaunchConfig } from './NativeLaunchConfig';
|
|
2
3
|
/**
|
|
3
|
-
* Describes how a [Subflow] should be launched.
|
|
4
|
+
* Describes how a [com.wise.dynamicflow.feature.subflow.Subflow] should be launched.
|
|
4
5
|
*/
|
|
5
|
-
export type LaunchConfig = DynamicLaunchConfig;
|
|
6
|
+
export type LaunchConfig = DynamicLaunchConfig | NativeLaunchConfig;
|
|
6
7
|
//# sourceMappingURL=LaunchConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LaunchConfig.d.ts","sourceRoot":"","sources":["../../../../src/spec/feature/subflow/LaunchConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"LaunchConfig.d.ts","sourceRoot":"","sources":["../../../../src/spec/feature/subflow/LaunchConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D;;EAEE;AACF,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { JsonElement } from '../../JsonElement';
|
|
2
|
+
/**
|
|
3
|
+
* Launches a [com.wise.dynamicflow.feature.subflow.Subflow] that uses native platform functionality.
|
|
4
|
+
* The native flow must be handled by a registered native subflow handler on the client.
|
|
5
|
+
*/
|
|
6
|
+
export type NativeLaunchConfig = {
|
|
7
|
+
/**
|
|
8
|
+
* It must be `native`.
|
|
9
|
+
*/
|
|
10
|
+
type: 'native';
|
|
11
|
+
/**
|
|
12
|
+
* Identifies which native flow should be launched.
|
|
13
|
+
* This ID must match a handler registered on the client platform.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional configuration payload for the native flow.
|
|
18
|
+
* The structure is determined by the native handler implementation.
|
|
19
|
+
*/
|
|
20
|
+
payload?: JsonElement;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=NativeLaunchConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeLaunchConfig.d.ts","sourceRoot":"","sources":["../../../../src/spec/feature/subflow/NativeLaunchConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;EAGE;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;MAEE;IACF,IAAI,EAAE,QAAQ,CAAC;IACf;;;MAGE;IACF,EAAE,EAAE,MAAM,CAAC;IACX;;;MAGE;IACF,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB,CAAC"}
|
package/build/spec/index.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ export type { AlertLayoutCallToAction } from './layout/AlertLayoutCallToAction';
|
|
|
42
42
|
export type { BoxLayout } from './layout/BoxLayout';
|
|
43
43
|
export type { ButtonLayout } from './layout/ButtonLayout';
|
|
44
44
|
export type { ColumnsLayout } from './layout/ColumnsLayout';
|
|
45
|
-
export type { CollectionLayout, CollectionCallToAction, CollectionFilter, CollectionSearch, CollectionState, CollectionSection, CollectionItem, CollectionResponse, } from './layout/CollectionLayout';
|
|
46
45
|
export type { DecisionLayout } from './layout/DecisionLayout';
|
|
47
46
|
export type { DecisionLayoutOption } from './layout/DecisionLayoutOption';
|
|
48
47
|
export type { DividerLayout } from './layout/DividerLayout';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/spec/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,YAAY,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAA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AY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,YAAY,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvF,MAAM,MAAM,KAAK,GAAG,WAAW,CAAC;AAChC,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC"}
|
|
@@ -4,6 +4,11 @@ import type { AlertLayoutCallToAction } from './AlertLayoutCallToAction';
|
|
|
4
4
|
/**
|
|
5
5
|
* Show an attention-grabbing message.
|
|
6
6
|
* Alerts can be used to communicate important messages to the user, drawing more attention than a standard paragraph or info layout.
|
|
7
|
+
* <!-- fixture: alert -->
|
|
8
|
+
* ## When to use
|
|
9
|
+
* - When the user needs to perform an action, or be aware of some key information that may impact them.
|
|
10
|
+
* ## When not to use
|
|
11
|
+
* - When the content is supplementary, consider using an [UpsellLayout] instead.
|
|
7
12
|
*/
|
|
8
13
|
export type AlertLayout = {
|
|
9
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertLayout.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/AlertLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAExE
|
|
1
|
+
{"version":3,"file":"AlertLayout.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/AlertLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAExE;;;;;;;;EAQE;AACF,MAAM,MAAM,WAAW,GAAG;IACtB;;MAEE;IACF,IAAI,EAAE,OAAO,CAAC;IACd;;;MAGE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB;;MAEE;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;MAEE;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;MAEE;IACF,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;MAEE;IACF,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC;;MAEE;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;MAEE;IACF,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Behavior } from '../feature/Behavior';
|
|
2
2
|
import type { Context } from '../misc/Context';
|
|
3
3
|
/**
|
|
4
|
-
* The call to action configuration to be used by
|
|
4
|
+
* The call to action configuration to be used by [com.wise.dynamicflow.layout.AlertLayout].
|
|
5
5
|
*/
|
|
6
6
|
export type AlertLayoutCallToAction = {
|
|
7
7
|
/**
|
|
@@ -13,7 +13,7 @@ export type AlertLayoutCallToAction = {
|
|
|
13
13
|
*/
|
|
14
14
|
accessibilityDescription?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Behavior that should be performed when user interacts with call to action.
|
|
16
|
+
* The [com.wise.dynamicflow.feature.Behavior] that should be performed when user interacts with call to action.
|
|
17
17
|
*/
|
|
18
18
|
behavior: Behavior;
|
|
19
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoxLayout.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/BoxLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC
|
|
1
|
+
{"version":3,"file":"BoxLayout.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/BoxLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC;;;EAGE;AACF,MAAM,MAAM,SAAS,GAAG;IACpB;;MAEE;IACF,IAAI,EAAE,KAAK,CAAC;IACZ;;MAEE;IACF,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;MAEE;IACF,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;;MAGE;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;MAEE;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;MAEE;IACF,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;MAEE;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;MAEE;IACF,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { Context } from '../misc/Context';
|
|
|
5
5
|
import type { Media } from '../misc/media/Media';
|
|
6
6
|
/**
|
|
7
7
|
* A component which performs a [com.wise.dynamicflow.feature.Behavior] when pressed.
|
|
8
|
-
*
|
|
8
|
+
* <!-- fixture: button -->
|
|
9
9
|
*/
|
|
10
10
|
export type ButtonLayout = {
|
|
11
11
|
/**
|