@wise/dynamic-flow-client 2.8.12 → 2.8.15

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.
Files changed (86) hide show
  1. package/build/main.js +101 -100
  2. package/build/main.min.js +1 -1
  3. package/build/types/{legacy/common/contexts → common}/httpClientContext/HttpClientContext.d.ts +1 -1
  4. package/build/types/common/httpClientContext/index.d.ts +1 -0
  5. package/build/types/common/messages/persist-async.messages.d.ts +8 -0
  6. package/build/types/common/utils/api-utils.d.ts +1 -0
  7. package/build/types/legacy/common/contexts/index.d.ts +0 -1
  8. package/build/types/legacy/common/utils/api-utils.d.ts +0 -1
  9. package/build/types/revamp/domain/components/AllOfComponent.d.ts +16 -0
  10. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +2 -0
  11. package/build/types/revamp/domain/components/DateInputComponent.d.ts +2 -0
  12. package/build/types/revamp/domain/components/DecisionComponent.d.ts +15 -0
  13. package/build/types/revamp/domain/components/DividerComponent.d.ts +5 -0
  14. package/build/types/revamp/domain/components/HeadingComponent.d.ts +1 -1
  15. package/build/types/revamp/domain/components/ImageComponent.d.ts +9 -0
  16. package/build/types/revamp/domain/components/InstructionsComponent.d.ts +11 -0
  17. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +2 -0
  18. package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +8 -0
  19. package/build/types/revamp/domain/components/MarkdownComponent.d.ts +7 -0
  20. package/build/types/revamp/domain/components/ModalComponent.d.ts +12 -0
  21. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +2 -0
  22. package/build/types/revamp/domain/components/ObjectComponent.d.ts +0 -1
  23. package/build/types/revamp/domain/components/ReviewComponent.d.ts +17 -0
  24. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +2 -0
  25. package/build/types/revamp/domain/components/TextInputComponent.d.ts +2 -0
  26. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +2 -0
  27. package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +5 -5
  28. package/build/types/revamp/domain/features/persistAsync/getComponentPersistAsync.d.ts +15 -0
  29. package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +22 -0
  30. package/build/types/revamp/domain/features/persistAsync/persist-async-utils.d.ts +2 -0
  31. package/build/types/revamp/domain/features/validation/spec-utils.d.ts +1 -0
  32. package/build/types/revamp/domain/features/validation/validation-functions.d.ts +7 -0
  33. package/build/types/revamp/domain/features/validation/value-checks.d.ts +3 -3
  34. package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +3 -0
  35. package/build/types/revamp/domain/mappers/layout/dividerLayoutToComponent.d.ts +2 -0
  36. package/build/types/revamp/domain/mappers/layout/imageLayoutToComponent.d.ts +2 -0
  37. package/build/types/revamp/domain/mappers/layout/infoLayoutToComponent.d.ts +2 -0
  38. package/build/types/revamp/domain/mappers/layout/instructionsLayoutToComponent.d.ts +2 -0
  39. package/build/types/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +2 -0
  40. package/build/types/revamp/domain/mappers/layout/markdownLayoutToComponent.d.ts +2 -0
  41. package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +3 -0
  42. package/build/types/revamp/domain/mappers/layout/reviewLayoutToComponent.d.ts +3 -0
  43. package/build/types/revamp/domain/mappers/schema/allOfSchemaToComponent.d.ts +5 -0
  44. package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.d.ts +2 -2
  45. package/build/types/revamp/domain/mappers/schema/hiddenSchemaToComponent.d.ts +7 -0
  46. package/build/types/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.d.ts +1 -1
  47. package/build/types/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +1 -1
  48. package/build/types/revamp/domain/mappers/schema/tests/test-utils.d.ts +3 -2
  49. package/build/types/revamp/domain/mappers/schema/types.d.ts +2 -1
  50. package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +27 -0
  51. package/build/types/revamp/domain/mappers/types.d.ts +3 -0
  52. package/build/types/revamp/domain/types.d.ts +24 -8
  53. package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +4 -0
  54. package/build/types/revamp/renderers/mappers/decisionComponentToProps.d.ts +3 -0
  55. package/build/types/revamp/renderers/mappers/dividerComponentToProps.d.ts +3 -0
  56. package/build/types/revamp/renderers/mappers/imageComponentToProps.d.ts +3 -0
  57. package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +8 -0
  58. package/build/types/revamp/renderers/mappers/loadingIndicatorComponentToProps.d.ts +3 -0
  59. package/build/types/revamp/renderers/mappers/markdownComponentToProps.d.ts +3 -0
  60. package/build/types/revamp/renderers/mappers/modalComponentToProps.d.ts +4 -0
  61. package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +2 -2
  62. package/build/types/revamp/renderers/mappers/reviewComponentToProps.d.ts +3 -0
  63. package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +1 -3
  64. package/build/types/revamp/renderers/types.d.ts +59 -4
  65. package/build/types/revamp/utils/{getSubmittableData.d.ts → component-utils.d.ts} +1 -0
  66. package/build/types/revamp/utils/type-utils.d.ts +16 -5
  67. package/build/types/revamp/wise/renderers/DecisionRenderer.d.ts +3 -0
  68. package/build/types/revamp/wise/renderers/DividerRenderer.d.ts +3 -0
  69. package/build/types/revamp/wise/renderers/FormSectionRenderer.d.ts +3 -0
  70. package/build/types/revamp/wise/renderers/ImageRenderer.d.ts +3 -0
  71. package/build/types/revamp/wise/renderers/InstructionsRenderer.d.ts +3 -0
  72. package/build/types/revamp/wise/renderers/LoadingIndicatorRenderer.d.ts +3 -0
  73. package/build/types/revamp/wise/renderers/MarkdownRenderer.d.ts +3 -0
  74. package/build/types/revamp/wise/renderers/ModalRenderer.d.ts +3 -0
  75. package/build/types/revamp/wise/renderers/ReviewRenderer.d.ts +3 -0
  76. package/build/types/revamp/wise/renderers/SearchRenderer.d.ts +2 -1
  77. package/build/types/revamp/wise/renderers/components/Help.d.ts +4 -0
  78. package/build/types/test-utils/fetch-utils.d.ts +2 -2
  79. package/package.json +2 -2
  80. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -8
  81. package/build/types/revamp/domain/features/validation/getModelValidationErrors.d.ts +0 -6
  82. package/build/types/revamp/domain/features/validation/validateComponents.d.ts +0 -2
  83. package/build/types/revamp/domain/validation/validation-functions.d.ts +0 -8
  84. package/build/types/revamp/stories/visual-tests/array.d.ts +0 -3
  85. package/build/types/revamp/wise/renderers/ObjectRenderer.d.ts +0 -3
  86. /package/build/types/revamp/{domain/mappers/utils → utils}/type-validators.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import type { DecisionComponent } from '../../domain/components/DecisionComponent';
2
+ import type { DecisionRendererProps } from '../types';
3
+ export declare const decisionComponentToProps: ({ options, margin, }: DecisionComponent) => DecisionRendererProps;
@@ -0,0 +1,3 @@
1
+ import type { DividerComponent } from '../../domain/components/DividerComponent';
2
+ import type { DividerRendererProps } from '../types';
3
+ export declare const dividerComponentToProps: ({ control, margin, }: DividerComponent) => DividerRendererProps;
@@ -0,0 +1,3 @@
1
+ import type { ImageComponent } from '../../domain/components/ImageComponent';
2
+ import type { ImageRendererProps } from '../types';
3
+ export declare const imageComponentToProps: ({ accessibilityDescription, control, margin, size, url, }: ImageComponent) => ImageRendererProps;
@@ -0,0 +1,8 @@
1
+ import type { InstructionsComponent } from '../../domain/components/InstructionsComponent';
2
+ export declare const instructionsComponentToProps: ({ control, items, margin, title, }: InstructionsComponent) => {
3
+ type: string;
4
+ control: string | undefined;
5
+ items: import("../../domain/components/InstructionsComponent").InstructionItem[];
6
+ margin: import("@wise/dynamic-flow-types/build/next").Size;
7
+ title: string | undefined;
8
+ };
@@ -0,0 +1,3 @@
1
+ import type { LoadingIndicatorComponent } from '../../domain/components/LoadingIndicatorComponent';
2
+ import type { LoadingIndicatorRendererProps } from '../types';
3
+ export declare const loadingIndicatorComponentToProps: ({ control, margin, size, }: LoadingIndicatorComponent) => LoadingIndicatorRendererProps;
@@ -0,0 +1,3 @@
1
+ import type { MarkdownComponent } from '../../domain/components/MarkdownComponent';
2
+ import type { MarkdownRendererProps } from '../types';
3
+ export declare const markdownComponentToProps: ({ align, content, control, margin, }: MarkdownComponent) => MarkdownRendererProps;
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ModalComponent } from '../../domain/components/ModalComponent';
3
+ import type { ModalRendererProps } from '../types';
4
+ export declare const modalComponentToProps: ({ control, margin, trigger }: ModalComponent, components: ReactNode) => ModalRendererProps;
@@ -1,4 +1,4 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { ObjectComponent } from '../../domain/components/ObjectComponent';
3
- import type { ObjectRendererProps } from '../types';
4
- export declare const objectComponentToProps: ({ control, description, help, title }: ObjectComponent, children: ReactNode) => ObjectRendererProps;
3
+ import type { FormSectionRendererProps } from '../types';
4
+ export declare const objectComponentToProps: ({ control, description, help, title }: ObjectComponent, children: ReactNode) => FormSectionRendererProps;
@@ -0,0 +1,3 @@
1
+ import type { ReviewComponent } from '../../domain/components/ReviewComponent';
2
+ import type { ReviewRendererProps } from '../types';
3
+ export declare const reviewComponentToProps: ({ callToAction, control, fields, margin, title, }: ReviewComponent) => ReviewRendererProps;
@@ -1,6 +1,5 @@
1
- import type { Model } from '@wise/dynamic-flow-types/build/next';
2
1
  import type { InputComponent } from '../../../domain/types';
3
- export declare const inputComponentToProps: <T extends string, M extends Model>(component: Omit<InputComponent<M>, "onChange">, type: T) => {
2
+ export declare const inputComponentToProps: <T extends string, M extends import("@wise/dynamic-flow-types/build/next").JsonElement>(component: Omit<InputComponent<M>, "onChange">, type: T) => {
4
3
  type: T;
5
4
  autoComplete: string;
6
5
  control: string | undefined;
@@ -10,7 +9,6 @@ export declare const inputComponentToProps: <T extends string, M extends Model>(
10
9
  help: string | undefined;
11
10
  id: string;
12
11
  label: string | undefined;
13
- name: string;
14
12
  placeholder: string | undefined;
15
13
  required: boolean;
16
14
  value: M | null;
@@ -1,5 +1,8 @@
1
1
  import type { Margin as DFMargin, Size as DFSize, SearchResult as SearchResultSpec, Icon as DFIcon } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { ReactNode } from 'react';
3
+ import type { DecisionOption as DomainDecisionOption } from '../domain/components/DecisionComponent';
4
+ import type { InstructionItem as DomainInstructionItem } from '../domain/components/InstructionsComponent';
5
+ import type { ReviewCallToAction as DomainReviewCallToAction, ReviewField as DomainReviewField } from '../domain/components/ReviewComponent';
3
6
  export type Renderer<P extends RendererProps> = {
4
7
  canRender: (props: RendererProps) => boolean;
5
8
  render: (props: P) => JSX.Element;
@@ -38,6 +41,16 @@ export interface ColumnsRendererProps extends RendererProps {
38
41
  startChildren: ReactNode;
39
42
  endChildren: ReactNode;
40
43
  }
44
+ export interface DecisionRendererProps extends RendererProps {
45
+ type: 'decision';
46
+ options: DecisionOption[];
47
+ margin: Margin;
48
+ }
49
+ export type DecisionOption = DomainDecisionOption;
50
+ export interface DividerRendererProps extends RendererProps {
51
+ type: 'divider';
52
+ margin: Margin;
53
+ }
41
54
  export interface FormRendererProps extends RendererProps {
42
55
  type: 'form';
43
56
  children: ReactNode;
@@ -48,10 +61,44 @@ export interface FormRendererProps extends RendererProps {
48
61
  */
49
62
  export interface HeadingRendererProps extends RendererProps {
50
63
  type: 'heading';
64
+ align: Align;
65
+ margin: Margin;
66
+ size: Size;
51
67
  text: string;
68
+ }
69
+ export interface InstructionsRendererProps extends RendererProps {
70
+ items: InstructionItem[];
71
+ margin: Margin;
72
+ title?: string;
73
+ }
74
+ export type InstructionItem = DomainInstructionItem;
75
+ export interface LoadingIndicatorRendererProps extends RendererProps {
76
+ type: 'loading-indicator';
77
+ margin: Margin;
78
+ size: Size;
79
+ }
80
+ export interface MarkdownRendererProps extends RendererProps {
81
+ type: 'markdown';
52
82
  align: Align;
53
83
  margin: Margin;
84
+ content: string;
85
+ }
86
+ export interface ImageRendererProps extends RendererProps {
87
+ type: 'image';
88
+ accessibilityDescription?: string;
54
89
  size: Size;
90
+ margin: Margin;
91
+ url: string;
92
+ }
93
+ export interface ModalRendererProps extends RendererProps {
94
+ type: 'modal';
95
+ content: {
96
+ components: ReactNode;
97
+ };
98
+ margin: Margin;
99
+ trigger: {
100
+ title: string;
101
+ };
55
102
  }
56
103
  /**
57
104
  * Known values for "control" are: 'copyable'.
@@ -62,9 +109,18 @@ export interface ParagraphRendererProps extends RendererProps {
62
109
  margin: Margin;
63
110
  text: string;
64
111
  }
112
+ export interface ReviewRendererProps extends RendererProps {
113
+ type: 'review';
114
+ fields: ReviewField[];
115
+ margin: Margin;
116
+ title?: string;
117
+ callToAction?: ReviewCallToAction;
118
+ }
119
+ export type ReviewCallToAction = DomainReviewCallToAction;
120
+ export type ReviewField = DomainReviewField;
65
121
  export interface SearchRendererProps extends RendererProps {
66
122
  type: 'search';
67
- control?: string;
123
+ id: string;
68
124
  emptyMessage?: string;
69
125
  isLoading: boolean;
70
126
  margin: Margin;
@@ -92,8 +148,8 @@ export type ResultsSearchState = {
92
148
  export type SearchResult = Pick<SearchResultSpec, 'description' | 'icon' | 'image' | 'title'> & {
93
149
  onClick: () => void;
94
150
  };
95
- export interface ObjectRendererProps extends RendererProps {
96
- type: 'object';
151
+ export interface FormSectionRendererProps extends RendererProps {
152
+ type: 'form-section';
97
153
  title?: string;
98
154
  description?: string;
99
155
  help?: string;
@@ -107,7 +163,6 @@ interface BaseInputRendererProps<M extends string | number | boolean | null> ext
107
163
  error?: string;
108
164
  help?: string;
109
165
  label?: string;
110
- name: string;
111
166
  placeholder?: string;
112
167
  required: boolean;
113
168
  value: M | null;
@@ -1,3 +1,4 @@
1
1
  import type { Model } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { StepComponent } from '../domain/types';
3
3
  export declare const getSubmittableData: (components: StepComponent[]) => Model;
4
+ export declare const getLocalValues: (components: StepComponent[]) => Model;
@@ -1,12 +1,18 @@
1
- import type { AllOfSchema, ArrayModel, ArraySchema, ArraySchemaList, BooleanSchema, ConstSchema, IntegerSchema, Model, NumberSchema, ObjectSchema, OneOfSchema, Schema, StringSchema } from '@wise/dynamic-flow-types/build/next';
2
- import type { HasChildren, StepComponent } from '../domain/types';
1
+ import type { AllOfSchema, ArraySchema, ArraySchemaList, ArraySchemaTuple, BooleanSchema, ConstSchema, IntegerSchema, Model, NumberSchema, ObjectSchema, OneOfSchema, Schema, StringSchema } from '@wise/dynamic-flow-types/build/next';
2
+ import type { StepComponent } from '../domain/types';
3
3
  import type { ColumnsComponent } from '../domain/components/ColumnsComponent';
4
4
  import type { RepeatableComponent } from '../domain/components/repeatableComponent/RepeatableComponent';
5
- export declare const hasChildren: (component: StepComponent) => component is HasChildren;
5
+ import type { PersistAsync } from '@wise/dynamic-flow-types/build/next/feature/PersistAsync';
6
+ type SchemaWithPersistAsync = (ArraySchemaList | ArraySchemaTuple | BooleanSchema | IntegerSchema | NumberSchema | StringSchema) & {
7
+ persistAsync: PersistAsync;
8
+ };
9
+ export declare const hasChildren: (component: StepComponent) => component is StepComponent & {
10
+ getChildren: () => StepComponent[];
11
+ };
6
12
  export declare const isColumnsComponent: (component: StepComponent) => component is ColumnsComponent;
7
13
  export declare const isRepeatableComponent: (component: StepComponent) => component is RepeatableComponent;
8
- export declare const isObjectModel: (model: Model) => model is Record<string, Model>;
9
- export declare const isArrayModel: (model: Model) => model is ArrayModel;
14
+ export declare const isObjectModel: (model: Model) => model is Record<string, import("@wise/dynamic-flow-types/build/next").JsonElement>;
15
+ export declare const isArrayModel: (model: Model) => model is import("@wise/dynamic-flow-types/build/next").JsonElement[];
10
16
  export declare const isAllOfSchema: (schema: Schema) => schema is AllOfSchema;
11
17
  export declare const isBooleanSchema: (schema: Schema) => schema is BooleanSchema;
12
18
  export declare const isConstSchema: (schema: Schema) => schema is ConstSchema;
@@ -17,3 +23,8 @@ export declare const isOneOfSchema: (schema: Schema) => schema is OneOfSchema;
17
23
  export declare const isArraySchema: (schema: Schema) => schema is ArraySchema;
18
24
  export declare const isArrayListSchema: (schema: Schema) => schema is ArraySchemaList;
19
25
  export declare const isStringSchema: (schema: Schema) => schema is StringSchema;
26
+ export declare const isSchemaWithPersistAsync: (schema: Schema) => schema is SchemaWithPersistAsync;
27
+ export declare const isHiddenSchema: (schema: Schema) => schema is Schema & {
28
+ hidden: true;
29
+ };
30
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { DecisionRendererProps, Renderer } from '../../renderers/types';
2
+ declare const DecisionRenderer: Renderer<DecisionRendererProps>;
3
+ export default DecisionRenderer;
@@ -0,0 +1,3 @@
1
+ import type { DividerRendererProps, Renderer } from '../../renderers/types';
2
+ declare const DividerRenderer: Renderer<DividerRendererProps>;
3
+ export default DividerRenderer;
@@ -0,0 +1,3 @@
1
+ import type { FormSectionRendererProps, Renderer } from '../../renderers/types';
2
+ declare const FormSectionRenderer: Renderer<FormSectionRendererProps>;
3
+ export default FormSectionRenderer;
@@ -0,0 +1,3 @@
1
+ import type { ImageRendererProps, Renderer } from '../../renderers/types';
2
+ declare const ImageRenderer: Renderer<ImageRendererProps>;
3
+ export default ImageRenderer;
@@ -0,0 +1,3 @@
1
+ import type { InstructionsRendererProps, Renderer } from '../../renderers/types';
2
+ declare const InstructionsRenderer: Renderer<InstructionsRendererProps>;
3
+ export default InstructionsRenderer;
@@ -0,0 +1,3 @@
1
+ import type { LoadingIndicatorRendererProps, Renderer } from '../../renderers/types';
2
+ declare const LoadingIndicatorRenderer: Renderer<LoadingIndicatorRendererProps>;
3
+ export default LoadingIndicatorRenderer;
@@ -0,0 +1,3 @@
1
+ import type { MarkdownRendererProps, Renderer } from '../../renderers/types';
2
+ declare const MarkdownRenderer: Renderer<MarkdownRendererProps>;
3
+ export default MarkdownRenderer;
@@ -0,0 +1,3 @@
1
+ import type { ModalRendererProps, Renderer } from '../../renderers/types';
2
+ declare const ModalRenderer: Renderer<ModalRendererProps>;
3
+ export default ModalRenderer;
@@ -0,0 +1,3 @@
1
+ import type { Renderer, ReviewRendererProps } from '../../renderers/types';
2
+ declare const ReviewRenderer: Renderer<ReviewRendererProps>;
3
+ export default ReviewRenderer;
@@ -1,6 +1,7 @@
1
1
  import type { ErrorSearchState, Renderer, ResultsSearchState, SearchRendererProps } from '../../renderers/types';
2
2
  declare const SearchRenderer: Renderer<SearchRendererProps>;
3
- export declare function SearchInput({ query, onChange, }: {
3
+ export declare function SearchInput({ id, query, onChange, }: {
4
+ id: string;
4
5
  query: string;
5
6
  onChange: (query: string) => void;
6
7
  }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare function Help({ help }: {
2
+ help: string;
3
+ }): JSX.Element;
4
+ export default Help;
@@ -1,4 +1,4 @@
1
- import type { ActionResponseBody, Step } from '@wise/dynamic-flow-types';
1
+ import type { Step } from '@wise/dynamic-flow-types';
2
2
  type HttpClient = typeof fetch;
3
3
  /**
4
4
  * Returns a mock http client you can use in your DynamicFlow.
@@ -11,7 +11,7 @@ type HttpClient = typeof fetch;
11
11
  * })
12
12
  */
13
13
  export declare const getMockHttpClient: (handlers: Record<string, HttpClient | undefined>) => HttpClient;
14
- export declare const respondWith: (step: Step | ActionResponseBody | Record<string, unknown>, init?: ResponseInit) => Promise<Response>;
14
+ export declare const respondWith: (data: unknown, init?: ResponseInit) => Promise<Response>;
15
15
  export declare const respondWithEtag: (step: Step) => Promise<Response>;
16
16
  export declare const respondWithEmptyOk: () => Promise<Response>;
17
17
  export declare const respondWithEmptyAndEtag: (step: Step) => Promise<Response>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "2.8.12",
3
+ "version": "2.8.15",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -92,7 +92,7 @@
92
92
  "classnames": "2.5.1",
93
93
  "react-webcam": "^7.2.0",
94
94
  "screenfull": "^5.2.0",
95
- "@wise/dynamic-flow-types": "2.5.2"
95
+ "@wise/dynamic-flow-types": "2.6.1"
96
96
  },
97
97
  "scripts": {
98
98
  "dev": "storybook dev -p 3003",
@@ -1,8 +0,0 @@
1
- declare namespace _default {
2
- namespace genericError {
3
- const id: string;
4
- const defaultMessage: string;
5
- const description: string;
6
- }
7
- }
8
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { Model } from '@wise/dynamic-flow-types/build/next';
2
- import type { IsInvalidCheck } from './value-checks';
3
- export declare const getModelValidationErrors: <M extends Model>({ checks, model, }: {
4
- checks: IsInvalidCheck<M>[];
5
- model: M;
6
- }) => string[];
@@ -1,2 +0,0 @@
1
- import type { StepComponent } from '../../types';
2
- export declare const validateComponents: (components: StepComponent[]) => boolean;
@@ -1,8 +0,0 @@
1
- import type { Model } from '@wise/dynamic-flow-types/build/next';
2
- import type { StepComponent } from '../types';
3
- import type { IsInvalidCheck } from '../features/validation/value-checks';
4
- export declare const validateComponents: (components: StepComponent[]) => boolean;
5
- export declare const getModelValidationErrors: <M extends Model>({ checks, model, }: {
6
- checks: IsInvalidCheck<M>[];
7
- model: M;
8
- }) => string[];
@@ -1,3 +0,0 @@
1
- import type { Step } from '@wise/dynamic-flow-types/build/next';
2
- declare const step: Step;
3
- export default step;
@@ -1,3 +0,0 @@
1
- import type { ObjectRendererProps, Renderer } from '../../renderers/types';
2
- declare const ObjectRenderer: Renderer<ObjectRendererProps>;
3
- export default ObjectRenderer;