@wise/dynamic-flow-client 4.8.5 → 4.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +142 -48
- package/build/main.mjs +142 -48
- package/build/types/revamp/domain/components/AlertComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/BoxComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ColumnsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DecisionComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DividerComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/FormComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ImageComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/InstructionsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ListComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MarkdownComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ModalComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ModalContentComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/PersistAsyncComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/RepeatableComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/ReviewComponent.d.ts +2 -1
- package/build/types/revamp/domain/components/SectionComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/StatusListComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TabsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/columnsLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/deprecatedListLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/dividerLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/imageLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/infoLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/instructionsLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/listLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/markdownLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/reviewLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/searchLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/sectionLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/statusListLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/tabsLayoutToComponent.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/alertComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/columnsComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/dividerComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/formComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/headingComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/imageComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/listComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/loadingIndicatorComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/markdownComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/modalComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/paragraphComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +1 -0
- package/package.json +2 -2
|
@@ -6,4 +6,4 @@ export type ColumnsComponent = BaseLayoutComponent & {
|
|
|
6
6
|
endComponents: DomainComponent[];
|
|
7
7
|
getChildren: () => DomainComponent[];
|
|
8
8
|
};
|
|
9
|
-
export declare const createColumnsComponent: (columnsProps: Pick<ColumnsComponent, "uid" | "bias" | "control" | "margin" | "startComponents" | "endComponents">) => ColumnsComponent;
|
|
9
|
+
export declare const createColumnsComponent: (columnsProps: Pick<ColumnsComponent, "uid" | "analyticsId" | "bias" | "control" | "margin" | "startComponents" | "endComponents">) => ColumnsComponent;
|
|
@@ -18,4 +18,4 @@ export type DecisionOption = {
|
|
|
18
18
|
inlineAlert?: InlineAlert;
|
|
19
19
|
onClick: () => void;
|
|
20
20
|
};
|
|
21
|
-
export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, "uid" | "control" | "margin" | "options" | "title">) => DecisionComponent;
|
|
21
|
+
export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, "uid" | "control" | "margin" | "options" | "title" | "analyticsId">) => DecisionComponent;
|
|
@@ -2,4 +2,4 @@ import type { BaseLayoutComponent } from '../types';
|
|
|
2
2
|
export type DividerComponent = BaseLayoutComponent & {
|
|
3
3
|
type: 'divider';
|
|
4
4
|
};
|
|
5
|
-
export declare const createDividerComponent: (props: Pick<DividerComponent, "uid" | "control" | "margin">) => DividerComponent;
|
|
5
|
+
export declare const createDividerComponent: (props: Pick<DividerComponent, "uid" | "control" | "margin" | "analyticsId">) => DividerComponent;
|
|
@@ -4,4 +4,4 @@ export type FormComponent = BaseLayoutComponent & {
|
|
|
4
4
|
schemaComponent: SchemaComponent;
|
|
5
5
|
getChildren: () => SchemaComponent[];
|
|
6
6
|
};
|
|
7
|
-
export declare const createFormComponent: (formProps: Pick<FormComponent, "uid" | "schemaComponent" | "control" | "margin">) => FormComponent;
|
|
7
|
+
export declare const createFormComponent: (formProps: Pick<FormComponent, "uid" | "schemaComponent" | "control" | "margin" | "analyticsId">) => FormComponent;
|
|
@@ -6,4 +6,4 @@ export type HeadingComponent = BaseLayoutComponent & {
|
|
|
6
6
|
align: Align;
|
|
7
7
|
size: Size;
|
|
8
8
|
};
|
|
9
|
-
export declare const createHeadingComponent: (headingProps: Pick<HeadingComponent, "uid" | "control" | "text" | "align" | "margin" | "size">) => HeadingComponent;
|
|
9
|
+
export declare const createHeadingComponent: (headingProps: Pick<HeadingComponent, "uid" | "control" | "text" | "align" | "margin" | "size" | "analyticsId">) => HeadingComponent;
|
|
@@ -10,5 +10,5 @@ type ImageContent = {
|
|
|
10
10
|
accessibilityDescription?: string;
|
|
11
11
|
uri: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const createImageComponent: (imageProps: Pick<ImageComponent, "uid" | "align" | "content" | "control" | "margin" | "size">) => ImageComponent;
|
|
13
|
+
export declare const createImageComponent: (imageProps: Pick<ImageComponent, "uid" | "align" | "content" | "control" | "margin" | "size" | "analyticsId">) => ImageComponent;
|
|
14
14
|
export {};
|
|
@@ -9,4 +9,4 @@ export type InstructionItem = {
|
|
|
9
9
|
text: string;
|
|
10
10
|
tag?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const createInstructionsComponent: (instructionsProps: Pick<InstructionsComponent, "uid" | "control" | "items" | "margin" | "title">) => InstructionsComponent;
|
|
12
|
+
export declare const createInstructionsComponent: (instructionsProps: Pick<InstructionsComponent, "uid" | "analyticsId" | "control" | "items" | "margin" | "title">) => InstructionsComponent;
|
|
@@ -16,4 +16,4 @@ export type ListItem = {
|
|
|
16
16
|
additionalInfo?: AdditionalInfo;
|
|
17
17
|
inlineAlert?: InlineAlert;
|
|
18
18
|
};
|
|
19
|
-
export declare const createListComponent: (listProps: Pick<ListComponent, "uid" | "callToAction" | "control" | "items" | "margin" | "title">) => ListComponent;
|
|
19
|
+
export declare const createListComponent: (listProps: Pick<ListComponent, "uid" | "analyticsId" | "callToAction" | "control" | "items" | "margin" | "title">) => ListComponent;
|
|
@@ -5,4 +5,4 @@ export type LoadingIndicatorComponent = BaseLayoutComponent & {
|
|
|
5
5
|
control?: string;
|
|
6
6
|
size: Size;
|
|
7
7
|
};
|
|
8
|
-
export declare const createLoadingIndicatorComponent: (loadingIndicatorProps: Pick<LoadingIndicatorComponent, "uid" | "control" | "margin" | "size">) => LoadingIndicatorComponent;
|
|
8
|
+
export declare const createLoadingIndicatorComponent: (loadingIndicatorProps: Pick<LoadingIndicatorComponent, "uid" | "analyticsId" | "control" | "margin" | "size">) => LoadingIndicatorComponent;
|
|
@@ -4,4 +4,4 @@ export type MarkdownComponent = BaseLayoutComponent & {
|
|
|
4
4
|
align: Align;
|
|
5
5
|
content: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const createMarkdownComponent: (markdownProps: Pick<MarkdownComponent, "uid" | "align" | "control" | "content" | "margin">) => MarkdownComponent;
|
|
7
|
+
export declare const createMarkdownComponent: (markdownProps: Pick<MarkdownComponent, "uid" | "analyticsId" | "align" | "control" | "content" | "margin">) => MarkdownComponent;
|
|
@@ -10,4 +10,4 @@ export type ModalContent = {
|
|
|
10
10
|
components: DomainComponent[];
|
|
11
11
|
title?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const createModalComponent: (modalProps: Pick<ModalComponent, "uid" | "content" | "control" | "margin" | "trigger">) => ModalComponent;
|
|
13
|
+
export declare const createModalComponent: (modalProps: Pick<ModalComponent, "uid" | "analyticsId" | "content" | "control" | "margin" | "trigger">) => ModalComponent;
|
|
@@ -7,4 +7,4 @@ export type ModalContentComponent = BaseComponent & {
|
|
|
7
7
|
getChildren: () => DomainComponent[];
|
|
8
8
|
close: () => void;
|
|
9
9
|
};
|
|
10
|
-
export declare const createModalContentComponent: (modalProps: Pick<ModalContentComponent, "uid" | "components" | "title">, updateComponent: UpdateComponent) => ModalContentComponent;
|
|
10
|
+
export declare const createModalContentComponent: (modalProps: Pick<ModalContentComponent, "uid" | "analyticsId" | "components" | "title">, updateComponent: UpdateComponent) => ModalContentComponent;
|
|
@@ -4,4 +4,4 @@ export type ParagraphComponent = BaseLayoutComponent & {
|
|
|
4
4
|
align: Align;
|
|
5
5
|
text: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const createParagraphComponent: (paragraphProps: Pick<ParagraphComponent, "uid" | "align" | "control" | "margin" | "text">) => ParagraphComponent;
|
|
7
|
+
export declare const createParagraphComponent: (paragraphProps: Pick<ParagraphComponent, "uid" | "analyticsId" | "align" | "control" | "margin" | "text">) => ParagraphComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JsonElement } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
|
|
3
|
-
import type { BaseSchemaComponent, LocalValue, SchemaComponent, UpdateComponent } from '../types';
|
|
4
3
|
import { SchemaOnChange } from '../features/schema-on-change/getSchemaOnChange';
|
|
4
|
+
import type { BaseSchemaComponent, LocalValue, SchemaComponent, UpdateComponent } from '../types';
|
|
5
5
|
export type PersistAsyncComponent = BaseSchemaComponent<LocalValue> & {
|
|
6
6
|
type: 'persist-async';
|
|
7
7
|
component: SchemaComponent;
|
|
@@ -12,7 +12,7 @@ export type PersistAsyncComponent = BaseSchemaComponent<LocalValue> & {
|
|
|
12
12
|
errors: string[];
|
|
13
13
|
persist: () => Promise<JsonElement>;
|
|
14
14
|
};
|
|
15
|
-
export declare const createPersistAsyncComponent: (props: Pick<PersistAsyncComponent, "uid" | "schemaId" | "component" | "hidden"> & {
|
|
15
|
+
export declare const createPersistAsyncComponent: (props: Pick<PersistAsyncComponent, "uid" | "analyticsId" | "schemaId" | "component" | "hidden"> & {
|
|
16
16
|
model?: JsonElement | null;
|
|
17
17
|
localValue?: LocalValue | null;
|
|
18
18
|
}, performPersistAsync: PerformPersistAsync, schemaOnChange: SchemaOnChange | undefined, updateComponent: UpdateComponent) => PersistAsyncComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Icon } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { IsInvalidCheck } from '../features/validation/value-checks';
|
|
3
|
-
import type { BaseSchemaComponent, Image, InlineAlert,
|
|
3
|
+
import type { BaseSchemaComponent, Image, InlineAlert, LocalValue, LocalValueArray, OnValueChange, RepeatableSummary, SchemaComponent, UpdateComponent } from '../types';
|
|
4
4
|
export type RepeatableComponent = BaseSchemaComponent<LocalValueArray> & {
|
|
5
5
|
type: 'repeatable';
|
|
6
6
|
id?: string;
|
|
@@ -30,7 +30,7 @@ type Summary = {
|
|
|
30
30
|
providesIcon?: boolean;
|
|
31
31
|
providesImage?: boolean;
|
|
32
32
|
};
|
|
33
|
-
export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "uid" | "
|
|
33
|
+
export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "uid" | "analyticsId" | "schemaId" | "id" | "addItemTitle" | "alert" | "components" | "control" | "description" | "editItemTitle" | "errors" | "hidden" | "icon" | "image" | "maxItems" | "minItems" | "title"> & {
|
|
34
34
|
checks: IsInvalidCheck<LocalValueArray | null>[];
|
|
35
35
|
summary?: Summary;
|
|
36
36
|
summariser: (value: LocalValueArray | null) => RepeatableSummary;
|
|
@@ -7,6 +7,7 @@ export type ReviewComponent = BaseLayoutComponent & {
|
|
|
7
7
|
callToAction?: CallToAction;
|
|
8
8
|
};
|
|
9
9
|
export type ReviewField = {
|
|
10
|
+
analyticsId?: string;
|
|
10
11
|
help?: string;
|
|
11
12
|
label: string;
|
|
12
13
|
value: string;
|
|
@@ -18,4 +19,4 @@ export type ReviewField = {
|
|
|
18
19
|
icon?: Icon;
|
|
19
20
|
image?: Image;
|
|
20
21
|
};
|
|
21
|
-
export declare const createReviewComponent: (reviewProps: Pick<ReviewComponent, "uid" | "callToAction" | "control" | "fields" | "margin" | "title">) => ReviewComponent;
|
|
22
|
+
export declare const createReviewComponent: (reviewProps: Pick<ReviewComponent, "uid" | "analyticsId" | "callToAction" | "control" | "fields" | "margin" | "title">) => ReviewComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseLayoutComponent,
|
|
1
|
+
import { BaseLayoutComponent, CallToAction, DomainComponent } from '../types';
|
|
2
2
|
export type SectionComponent = BaseLayoutComponent & {
|
|
3
3
|
type: 'section';
|
|
4
4
|
title: string;
|
|
@@ -6,4 +6,4 @@ export type SectionComponent = BaseLayoutComponent & {
|
|
|
6
6
|
callToAction?: CallToAction;
|
|
7
7
|
getChildren: () => DomainComponent[];
|
|
8
8
|
};
|
|
9
|
-
export declare const createSectionComponent: (props: Pick<SectionComponent, "uid" | "title" | "control" | "components" | "callToAction" | "margin">) => SectionComponent;
|
|
9
|
+
export declare const createSectionComponent: (props: Pick<SectionComponent, "uid" | "analyticsId" | "title" | "control" | "components" | "callToAction" | "margin">) => SectionComponent;
|
|
@@ -16,4 +16,4 @@ export type StatusListItem = {
|
|
|
16
16
|
callToAction?: CallToAction;
|
|
17
17
|
tag?: string;
|
|
18
18
|
};
|
|
19
|
-
export declare const createStatusListComponent: (statusListProps: Pick<StatusListComponent, "uid" | "control" | "items" | "margin" | "title">) => StatusListComponent;
|
|
19
|
+
export declare const createStatusListComponent: (statusListProps: Pick<StatusListComponent, "uid" | "analyticsId" | "control" | "items" | "margin" | "title">) => StatusListComponent;
|
|
@@ -8,4 +8,4 @@ export type Tab = {
|
|
|
8
8
|
components: DomainComponent[];
|
|
9
9
|
tag?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const createTabsComponent: (tabsProps: Pick<TabsComponent, "uid" | "control" | "margin" | "tabs">) => TabsComponent;
|
|
11
|
+
export declare const createTabsComponent: (tabsProps: Pick<TabsComponent, "uid" | "analyticsId" | "control" | "margin" | "tabs">) => TabsComponent;
|
|
@@ -22,4 +22,4 @@ export type SearchComponent = BaseLayoutComponent & {
|
|
|
22
22
|
onChange: (query: string) => void;
|
|
23
23
|
onSelect: (result: SearchResult) => void;
|
|
24
24
|
};
|
|
25
|
-
export declare const createSearchComponent: (searchProps: Pick<SearchComponent, "uid" | "control" | "emptyMessage" | "margin" | "title">, performSearch: PerformSearch, onBehavior: OnBehavior, updateComponent: UpdateComponent) => SearchComponent;
|
|
25
|
+
export declare const createSearchComponent: (searchProps: Pick<SearchComponent, "uid" | "analyticsId" | "control" | "emptyMessage" | "margin" | "title">, performSearch: PerformSearch, onBehavior: OnBehavior, updateComponent: UpdateComponent) => SearchComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AlertLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const alertLayoutToComponent: (uid: string, { control, markdown, margin, context, callToAction }: AlertLayout, { onBehavior, step }: MapperProps) => import("../../components/AlertComponent").AlertComponent;
|
|
3
|
+
export declare const alertLayoutToComponent: (uid: string, { control, markdown, margin, context, callToAction, analyticsId }: AlertLayout, { onBehavior, step }: MapperProps) => import("../../components/AlertComponent").AlertComponent;
|
|
@@ -2,4 +2,4 @@ import type { BoxLayout } from '@wise/dynamic-flow-types/build/next';
|
|
|
2
2
|
import { type BoxComponent } from '../../components/BoxComponent';
|
|
3
3
|
import type { SchemaComponent } from '../../types';
|
|
4
4
|
import type { MapperProps } from '../schema/types';
|
|
5
|
-
export declare const boxLayoutToComponent: (uid: string, { border, components, control, margin, width }: BoxLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => BoxComponent;
|
|
5
|
+
export declare const boxLayoutToComponent: (uid: string, { border, components, control, margin, width, analyticsId }: BoxLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => BoxComponent;
|
|
@@ -2,4 +2,4 @@ import type { ColumnsLayout } from '@wise/dynamic-flow-types/build/next';
|
|
|
2
2
|
import { type ColumnsComponent } from '../../components/ColumnsComponent';
|
|
3
3
|
import type { SchemaComponent } from '../../types';
|
|
4
4
|
import type { MapperProps } from '../schema/types';
|
|
5
|
-
export declare const columnsLayoutToComponent: (uid: string, { control, left, right, bias, margin }: ColumnsLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => ColumnsComponent;
|
|
5
|
+
export declare const columnsLayoutToComponent: (uid: string, { control, left, right, bias, margin, analyticsId }: ColumnsLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => ColumnsComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DecisionLayout, DecisionLayoutOption } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const decisionLayoutToComponent: (uid: string, { control, margin, options, title, }: Omit<DecisionLayout, "options"> & {
|
|
3
|
+
export declare const decisionLayoutToComponent: (uid: string, { analyticsId, control, margin, options, title, }: Omit<DecisionLayout, "options"> & {
|
|
4
4
|
options: DecisionLayoutOption[];
|
|
5
5
|
}, { onBehavior, step }: MapperProps) => import("../../components/DecisionComponent").DecisionComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ListLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
export declare const isDeprecatedListLayout: (layout: ListLayout) => boolean;
|
|
3
|
-
export declare const deprecatedListLayoutToComponent: (uid: string, { control, items, margin, title }: ListLayout) => import("../../components/StatusListComponent").StatusListComponent;
|
|
3
|
+
export declare const deprecatedListLayoutToComponent: (uid: string, { analyticsId, control, items, margin, title }: ListLayout) => import("../../components/StatusListComponent").StatusListComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DividerLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const dividerLayoutToComponent: (uid: string, { control, margin }: DividerLayout) => import("../../components/DividerComponent").DividerComponent;
|
|
2
|
+
export declare const dividerLayoutToComponent: (uid: string, { control, margin, analyticsId }: DividerLayout) => import("../../components/DividerComponent").DividerComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FormLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import { FormComponent } from '../../components/FormComponent';
|
|
3
3
|
import type { SchemaComponent } from '../../types';
|
|
4
|
-
export declare const formLayoutToComponent: (uid: string, { schemaId, schema: schemaRef, control, margin }: FormLayout, schemaComponents: SchemaComponent[]) => FormComponent;
|
|
4
|
+
export declare const formLayoutToComponent: (uid: string, { analyticsId, schemaId, schema: schemaRef, control, margin }: FormLayout, schemaComponents: SchemaComponent[]) => FormComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HeadingLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const headingLayoutToComponent: (uid: string, { align, margin, size, control, text }: HeadingLayout) => import("../../components/HeadingComponent").HeadingComponent;
|
|
2
|
+
export declare const headingLayoutToComponent: (uid: string, { analyticsId, align, margin, size, control, text }: HeadingLayout) => import("../../components/HeadingComponent").HeadingComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ImageLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const imageLayoutToComponent: (uid: string, { accessibilityDescription, align, content, control, margin, size, text, url, }: ImageLayout) => import("../../components/ImageComponent").ImageComponent;
|
|
2
|
+
export declare const imageLayoutToComponent: (uid: string, { analyticsId, accessibilityDescription, align, content, control, margin, size, text, url, }: ImageLayout) => import("../../components/ImageComponent").ImageComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { InfoLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const infoLayoutToComponent: (uid: string, { align, control, margin, markdown: content }: InfoLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
|
|
2
|
+
export declare const infoLayoutToComponent: (uid: string, { analyticsId, align, control, margin, markdown: content }: InfoLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { InstructionsLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const instructionsLayoutToComponent: (uid: string, { control, items, margin, title }: InstructionsLayout) => import("../../components/InstructionsComponent").InstructionsComponent;
|
|
2
|
+
export declare const instructionsLayoutToComponent: (uid: string, { analyticsId, control, items, margin, title }: InstructionsLayout) => import("../../components/InstructionsComponent").InstructionsComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const listLayoutToComponent: (uid: string, { callToAction, control, items, margin, title }: ListLayout, mapperProps: MapperProps) => import("../../components/ListComponent").ListComponent;
|
|
3
|
+
export declare const listLayoutToComponent: (uid: string, { analyticsId, callToAction, control, items, margin, title }: ListLayout, mapperProps: MapperProps) => import("../../components/ListComponent").ListComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { LoadingIndicatorLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const loadingIndicatorLayoutToComponent: (uid: string, { size, margin, control }: LoadingIndicatorLayout) => import("../../components/LoadingIndicatorComponent").LoadingIndicatorComponent;
|
|
2
|
+
export declare const loadingIndicatorLayoutToComponent: (uid: string, { analyticsId, size, margin, control }: LoadingIndicatorLayout) => import("../../components/LoadingIndicatorComponent").LoadingIndicatorComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { MarkdownLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const markdownLayoutToComponent: (uid: string, { align, margin, control, content }: MarkdownLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
|
|
2
|
+
export declare const markdownLayoutToComponent: (uid: string, { analyticsId, align, margin, control, content }: MarkdownLayout) => import("../../components/MarkdownComponent").MarkdownComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ModalLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { SchemaComponent } from '../../types';
|
|
3
3
|
import type { MapperProps } from '../schema/types';
|
|
4
|
-
export declare const modalLayoutToComponent: (uid: string, { content, control, margin, trigger }: ModalLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => import("../../components/ModalComponent").ModalComponent;
|
|
4
|
+
export declare const modalLayoutToComponent: (uid: string, { analyticsId, content, control, margin, trigger }: ModalLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => import("../../components/ModalComponent").ModalComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ParagraphLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
|
-
export declare const paragraphLayoutToComponent: (uid: string, { align, control, margin, text }: ParagraphLayout) => import("../../components/ParagraphComponent").ParagraphComponent;
|
|
2
|
+
export declare const paragraphLayoutToComponent: (uid: string, { analyticsId, align, control, margin, text }: ParagraphLayout) => import("../../components/ParagraphComponent").ParagraphComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ReviewLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const reviewLayoutToComponent: (uid: string, { fields, title, callToAction, control, margin, orientation, action }: ReviewLayout, { onBehavior, step }: MapperProps) => import("../../components/ReviewComponent").ReviewComponent;
|
|
3
|
+
export declare const reviewLayoutToComponent: (uid: string, { analyticsId, fields, title, callToAction, control, margin, orientation, action, }: ReviewLayout, { onBehavior, step }: MapperProps) => import("../../components/ReviewComponent").ReviewComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SearchLayout } from '@wise/dynamic-flow-types/build/next/layout/SearchLayout';
|
|
2
2
|
import type { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const searchLayoutToComponent: (uid: string, { control, emptyMessage, method, param, title, url, margin }: SearchLayout, mapperProps: MapperProps) => import("../../components/searchComponent/SearchComponent").SearchComponent;
|
|
3
|
+
export declare const searchLayoutToComponent: (uid: string, { analyticsId, control, emptyMessage, method, param, title, url, margin, }: SearchLayout, mapperProps: MapperProps) => import("../../components/searchComponent/SearchComponent").SearchComponent;
|
|
@@ -2,4 +2,4 @@ import { SectionLayout } from '@wise/dynamic-flow-types/build/next';
|
|
|
2
2
|
import { SectionComponent } from '../../components/SectionComponent';
|
|
3
3
|
import { SchemaComponent } from '../../types';
|
|
4
4
|
import { MapperProps } from '../schema/types';
|
|
5
|
-
export declare const sectionLayoutToComponent: (uid: string, { control, title, components, callToAction, margin }: SectionLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => SectionComponent;
|
|
5
|
+
export declare const sectionLayoutToComponent: (uid: string, { analyticsId, control, title, components, callToAction, margin }: SectionLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => SectionComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { StatusListLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const statusListLayoutToComponent: (uid: string, { control, items, margin, title }: StatusListLayout, { onBehavior, step }: MapperProps) => import("../../components/StatusListComponent").StatusListComponent;
|
|
3
|
+
export declare const statusListLayoutToComponent: (uid: string, { analyticsId, control, items, margin, title }: StatusListLayout, { onBehavior, step }: MapperProps) => import("../../components/StatusListComponent").StatusListComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabsLayout } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import { TabsComponent } from '../../components/TabsComponent';
|
|
3
|
-
import { MapperProps } from '../schema/types';
|
|
4
3
|
import { SchemaComponent } from '../../types';
|
|
5
|
-
|
|
4
|
+
import { MapperProps } from '../schema/types';
|
|
5
|
+
export declare const tabsLayoutToComponent: (uid: string, { analyticsId, control, margin, tabs }: TabsLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => TabsComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AlertComponent } from '../../domain/components/AlertComponent';
|
|
2
1
|
import type { AlertRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { AlertComponent } from '../../domain/components/AlertComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const alertComponentToProps: (component: AlertComponent, rendererMapperProps: RendererMapperProps) => AlertRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonComponent } from '../../domain/components/ButtonComponent';
|
|
2
1
|
import type { ButtonRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { ButtonComponent } from '../../domain/components/ButtonComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const buttonComponentToProps: (component: ButtonComponent, rendererMapperProps: RendererMapperProps) => ButtonRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ColumnsRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
2
|
import type { ColumnsComponent } from '../../domain/components/ColumnsComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
|
-
export declare const columnsComponentToProps: ({ uid, bias, control, margin, startComponents, endComponents }: ColumnsComponent, rendererMapperProps: RendererMapperProps) => ColumnsRendererProps;
|
|
4
|
+
export declare const columnsComponentToProps: ({ uid, analyticsId, bias, control, margin, startComponents, endComponents }: ColumnsComponent, rendererMapperProps: RendererMapperProps) => ColumnsRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DividerComponent } from '../../domain/components/DividerComponent';
|
|
2
1
|
import type { DividerRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { DividerComponent } from '../../domain/components/DividerComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const dividerComponentToProps: (component: DividerComponent, rendererMapperProps: RendererMapperProps) => DividerRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormComponent } from '../../domain/components/FormComponent';
|
|
2
1
|
import type { FormRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { FormComponent } from '../../domain/components/FormComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const formComponentToProps: (component: FormComponent, rendererMapperProps: RendererMapperProps) => FormRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeadingComponent } from '../../domain/components/HeadingComponent';
|
|
2
1
|
import type { HeadingRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { HeadingComponent } from '../../domain/components/HeadingComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const headingComponentToProps: (component: HeadingComponent, rendererMapperProps: RendererMapperProps) => HeadingRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImageComponent } from '../../domain/components/ImageComponent';
|
|
2
1
|
import type { ImageRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { ImageComponent } from '../../domain/components/ImageComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const imageComponentToProps: (component: ImageComponent, rendererMapperProps: RendererMapperProps) => ImageRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InstructionsComponent } from '../../domain/components/InstructionsComponent';
|
|
2
1
|
import type { InstructionsRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { InstructionsComponent } from '../../domain/components/InstructionsComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const instructionsComponentToProps: (component: InstructionsComponent, rendererMapperProps: RendererMapperProps) => InstructionsRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ListComponent } from '../../domain/components/ListComponent';
|
|
2
1
|
import type { ListRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { ListComponent } from '../../domain/components/ListComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const listComponentToProps: (component: ListComponent, rendererMapperProps: RendererMapperProps) => ListRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoadingIndicatorComponent } from '../../domain/components/LoadingIndicatorComponent';
|
|
2
1
|
import type { LoadingIndicatorRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { LoadingIndicatorComponent } from '../../domain/components/LoadingIndicatorComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const loadingIndicatorComponentToProps: (component: LoadingIndicatorComponent, rendererMapperProps: RendererMapperProps) => LoadingIndicatorRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MarkdownComponent } from '../../domain/components/MarkdownComponent';
|
|
2
1
|
import type { MarkdownRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { MarkdownComponent } from '../../domain/components/MarkdownComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const markdownComponentToProps: (control: MarkdownComponent, rendererMapperProps: RendererMapperProps) => MarkdownRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModalComponent } from '../../domain/components/ModalComponent';
|
|
2
1
|
import type { ModalRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { ModalComponent } from '../../domain/components/ModalComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const modalComponentToProps: (component: ModalComponent, rendererMapperProps: RendererMapperProps) => ModalRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ParagraphComponent } from '../../domain/components/ParagraphComponent';
|
|
2
1
|
import type { ParagraphRendererProps } from '@wise/dynamic-flow-types/build/renderers';
|
|
2
|
+
import type { ParagraphComponent } from '../../domain/components/ParagraphComponent';
|
|
3
3
|
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
4
|
export declare const paragraphComponentToProps: (component: ParagraphComponent, rendererMapperProps: RendererMapperProps) => ParagraphRendererProps;
|
|
@@ -2,6 +2,7 @@ import { ValidationResult } from '@wise/dynamic-flow-types/build/renderers';
|
|
|
2
2
|
import type { BaseInputComponent, LocalValue } from '../../../domain/types';
|
|
3
3
|
export declare const inputComponentToProps: <T extends string, V extends LocalValue>(component: BaseInputComponent<V>, type: T) => {
|
|
4
4
|
uid: string;
|
|
5
|
+
analyticsId: string | undefined;
|
|
5
6
|
type: T;
|
|
6
7
|
control: string | undefined;
|
|
7
8
|
description: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.6",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"classnames": "2.5.1",
|
|
96
96
|
"react-webcam": "^7.2.0",
|
|
97
97
|
"screenfull": "^5.2.0",
|
|
98
|
-
"@wise/dynamic-flow-types": "3.
|
|
98
|
+
"@wise/dynamic-flow-types": "3.7.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"dev": "pnpm build:visual-tests && storybook dev -p 3003",
|