@wise/dynamic-flow-client 5.9.0 → 5.9.1
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/domain/components/step/StepDomainComponent.js +6 -1
- package/build/domain/mappers/mapStepSchemas.js +2 -4
- package/build/domain/mappers/mapStepToComponent.js +4 -3
- package/build/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.js +0 -10
- package/build/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.test.js +0 -40
- package/build/main.js +34 -43
- package/build/main.mjs +34 -43
- package/build/renderers/mappers/selectInputComponentToProps.js +9 -1
- package/build/stories/spec/schemas/features/PersistAsync.story.js +35 -0
- package/build/stories/spec/schemas/oneOf/OneOfWithSingleOption.story.js +114 -0
- package/build/tests/PersistAsync.test.js +33 -0
- package/build/tests/SchemaReferences.test.js +88 -0
- package/build/tests/Submission.test.js +80 -0
- package/build/tests/renderers/SelectInputRendererProps.test.js +1 -0
- package/build/types/domain/components/step/StepDomainComponent.d.ts +2 -1
- package/build/types/domain/components/step/StepDomainComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/mapStepSchemas.d.ts +1 -1
- package/build/types/domain/mappers/mapStepSchemas.d.ts.map +1 -1
- package/build/types/domain/mappers/mapStepToComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +1 -531
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts +0 -16
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts.map +1 -1
- package/build/types/domain/types.d.ts +0 -1
- package/build/types/domain/types.d.ts.map +1 -1
- package/build/types/renderers/mappers/selectInputComponentToProps.d.ts +2 -2
- package/build/types/renderers/mappers/selectInputComponentToProps.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { screen } from '@testing-library/react';
|
|
3
|
+
import userEvent from '@testing-library/user-event';
|
|
4
|
+
import { vi } from 'vitest';
|
|
5
|
+
import { renderWithProviders } from '../test-utils';
|
|
6
|
+
import DynamicFlowWise from '../test-utils/DynamicFlowWise';
|
|
7
|
+
const user = userEvent.setup({ advanceTimers: vi.advanceTimersByTime });
|
|
8
|
+
describe('Schema References', () => {
|
|
9
|
+
const getDefaultProps = () => ({
|
|
10
|
+
flowId: 'flow-id',
|
|
11
|
+
httpClient: vi.fn(),
|
|
12
|
+
onCompletion: vi.fn(),
|
|
13
|
+
onError: vi.fn(),
|
|
14
|
+
onEvent: vi.fn(),
|
|
15
|
+
onLog: vi.fn(),
|
|
16
|
+
});
|
|
17
|
+
const getInitialStep = () => ({
|
|
18
|
+
id: 'step-id',
|
|
19
|
+
title: 'Step Title',
|
|
20
|
+
schemas: [
|
|
21
|
+
{
|
|
22
|
+
$id: '#root-schema-id',
|
|
23
|
+
title: 'Select an account',
|
|
24
|
+
oneOf: [
|
|
25
|
+
{
|
|
26
|
+
$id: '#root-schema-id',
|
|
27
|
+
type: 'object',
|
|
28
|
+
title: 'Object Schema Title',
|
|
29
|
+
displayOrder: ['accountId'],
|
|
30
|
+
properties: {
|
|
31
|
+
accountId: {
|
|
32
|
+
title: 'Current account',
|
|
33
|
+
type: 'string',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
layout: [
|
|
41
|
+
{
|
|
42
|
+
type: 'form',
|
|
43
|
+
schemaId: '#root-schema-id',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'button',
|
|
47
|
+
title: 'Submit',
|
|
48
|
+
behavior: { type: 'action', action: { url: '/submit' } },
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
describe('Given a step with a root-level oneOf schema containing only one option', () => {
|
|
53
|
+
const props = Object.assign(Object.assign({}, getDefaultProps()), { initialStep: getInitialStep() });
|
|
54
|
+
it('should render without failing', async () => {
|
|
55
|
+
renderWithProviders(_jsx(DynamicFlowWise, Object.assign({}, props)));
|
|
56
|
+
expect(props.onError).not.toHaveBeenCalled();
|
|
57
|
+
expect(screen.getByText('Step Title')).toBeInTheDocument();
|
|
58
|
+
});
|
|
59
|
+
it('should skip the oneOf schema and show the single-option schema directly', async () => {
|
|
60
|
+
renderWithProviders(_jsx(DynamicFlowWise, Object.assign({}, props)));
|
|
61
|
+
expect(screen.queryByText('Object Schema Title')).not.toBeInTheDocument();
|
|
62
|
+
expect(screen.getByText('Current account')).toBeInTheDocument();
|
|
63
|
+
});
|
|
64
|
+
it('should trigger an analytics event for auto-selecting the single option', async () => {
|
|
65
|
+
const onEvent = vi.fn();
|
|
66
|
+
renderWithProviders(_jsx(DynamicFlowWise, Object.assign({}, props, { onAnalytics: onEvent })));
|
|
67
|
+
expect(onEvent).toHaveBeenCalledWith('Dynamic Flow - OneOf Option Selected - Auto-select single-option', expect.objectContaining({
|
|
68
|
+
integrationId: 'flow-id',
|
|
69
|
+
flowId: 'flow-id',
|
|
70
|
+
stepId: 'step-id',
|
|
71
|
+
}));
|
|
72
|
+
});
|
|
73
|
+
describe('when entering a value and attempting to submit', () => {
|
|
74
|
+
it('should submit the form successfully', async () => {
|
|
75
|
+
const mockHttpClient = vi.fn();
|
|
76
|
+
renderWithProviders(_jsx(DynamicFlowWise, Object.assign({}, props, { httpClient: mockHttpClient })));
|
|
77
|
+
const input = screen.getByLabelText('Current account');
|
|
78
|
+
await user.type(input, 'test-account');
|
|
79
|
+
const submitButton = screen.getByRole('button', { name: 'Submit' });
|
|
80
|
+
await user.click(submitButton);
|
|
81
|
+
expect(mockHttpClient).toHaveBeenCalledWith('/submit', expect.objectContaining({
|
|
82
|
+
method: 'POST',
|
|
83
|
+
body: JSON.stringify({ accountId: 'test-account' }),
|
|
84
|
+
}));
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
});
|
|
@@ -329,6 +329,86 @@ describe('Data submission', () => {
|
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
331
|
});
|
|
332
|
+
describe('with schemas referenced in the footer', () => {
|
|
333
|
+
it('should submit the values from schemas referenced in the footer', async () => {
|
|
334
|
+
const footerSchema = {
|
|
335
|
+
$id: '#footer-schema',
|
|
336
|
+
type: 'object',
|
|
337
|
+
displayOrder: ['city'],
|
|
338
|
+
properties: {
|
|
339
|
+
city: {
|
|
340
|
+
title: 'City',
|
|
341
|
+
type: 'string',
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
const initialStep = {
|
|
346
|
+
id: 'step-id',
|
|
347
|
+
title: 'Footer submission test',
|
|
348
|
+
layout: [
|
|
349
|
+
{ type: 'box', components: [{ type: 'form', schemaId: '#schema' }] },
|
|
350
|
+
],
|
|
351
|
+
footer: [
|
|
352
|
+
{ type: 'form', schemaId: '#footer-schema' },
|
|
353
|
+
{
|
|
354
|
+
type: 'button',
|
|
355
|
+
title: 'Submit',
|
|
356
|
+
behavior: { type: 'action', action: { url: '/submit', method: 'POST' } },
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
schemas: [schema, footerSchema],
|
|
360
|
+
model: { name: 'Name', number: '12345', city: 'London' },
|
|
361
|
+
};
|
|
362
|
+
const httpClient = vi.fn().mockResolvedValue(respondWith(emptyStep));
|
|
363
|
+
renderWithProviders(_jsx(DynamicFlowWise, Object.assign({ httpClient: httpClient, initialStep: initialStep }, getDefaultProps())));
|
|
364
|
+
const submitButton = screen.getByText('Submit');
|
|
365
|
+
await user.click(submitButton);
|
|
366
|
+
await waitFor(() => {
|
|
367
|
+
expect(httpClient).toHaveBeenCalledWith('/submit', expect.objectContaining({
|
|
368
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
369
|
+
body: expect.any(String),
|
|
370
|
+
}));
|
|
371
|
+
});
|
|
372
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
373
|
+
const requestBody = JSON.parse(httpClient.mock.calls[0][1].body);
|
|
374
|
+
expect(requestBody).toEqual({
|
|
375
|
+
name: 'Name',
|
|
376
|
+
number: '12345',
|
|
377
|
+
city: 'London',
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
it('should validate schemas referenced in the footer before submitting', async () => {
|
|
381
|
+
const footerSchema = {
|
|
382
|
+
$id: '#footer-schema',
|
|
383
|
+
title: 'Required field',
|
|
384
|
+
type: 'string',
|
|
385
|
+
minLength: 5,
|
|
386
|
+
};
|
|
387
|
+
const initialStep = {
|
|
388
|
+
id: 'step-id',
|
|
389
|
+
title: 'Footer validation test',
|
|
390
|
+
layout: [],
|
|
391
|
+
footer: [
|
|
392
|
+
{ type: 'form', schemaId: '#footer-schema' },
|
|
393
|
+
{
|
|
394
|
+
type: 'button',
|
|
395
|
+
title: 'Submit',
|
|
396
|
+
behavior: { type: 'action', action: { url: '/submit', method: 'POST' } },
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
schemas: [footerSchema],
|
|
400
|
+
model: null,
|
|
401
|
+
};
|
|
402
|
+
const httpClient = vi.fn().mockResolvedValue(respondWith(emptyStep));
|
|
403
|
+
renderWithProviders(_jsx(DynamicFlowWise, Object.assign({ httpClient: httpClient, initialStep: initialStep }, getDefaultProps())));
|
|
404
|
+
const submitButton = screen.getByText('Submit');
|
|
405
|
+
await user.click(submitButton);
|
|
406
|
+
await waitFor(() => {
|
|
407
|
+
expect(httpClient).not.toHaveBeenCalled();
|
|
408
|
+
});
|
|
409
|
+
expect(screen.getByText('Please fill out this field.')).toBeInTheDocument();
|
|
410
|
+
});
|
|
411
|
+
});
|
|
332
412
|
describe('with asynchronously persisted fields', () => {
|
|
333
413
|
const persistedSchema = {
|
|
334
414
|
$id: '#schema',
|
|
@@ -24,6 +24,7 @@ describe('SelectInputRendererProps mapper', () => {
|
|
|
24
24
|
const component = mapSchemaToComponent(schemaMapperProps, mapperProps);
|
|
25
25
|
const rendererMapperProps = Object.assign(Object.assign({}, getMockRendererMapperProps()), { render: () => null });
|
|
26
26
|
const props = selectInputComponentToProps(component, rendererMapperProps);
|
|
27
|
+
expect(props.type).toBe('input-select');
|
|
27
28
|
expect(props.options).toHaveLength(2);
|
|
28
29
|
expect(props.options[0].children).toBeDefined();
|
|
29
30
|
expect(props.options[1].children).toBeDefined();
|
|
@@ -29,6 +29,7 @@ export type StepDomainComponent = BaseComponent & {
|
|
|
29
29
|
modals: ModalComponent[];
|
|
30
30
|
tags?: string[];
|
|
31
31
|
requestCache: RequestCache;
|
|
32
|
+
referencedSchemaIds: string[];
|
|
32
33
|
dismissModal: () => void;
|
|
33
34
|
dismissAllModals: () => void;
|
|
34
35
|
showModal: (modal: ModalComponent) => void;
|
|
@@ -48,7 +49,7 @@ export type BackNavigation = {
|
|
|
48
49
|
title?: string;
|
|
49
50
|
onClick: () => void;
|
|
50
51
|
};
|
|
51
|
-
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent, "uid" | "back" | "toolbar" | "layoutComponents" | "schemaComponents" | "footerComponents" | "control" | "description" | "error" | "externalConfirmation" | "loadingState" | "stackBehavior" | "etag" | "step" | "title" | "tags" | "trackEvent" | "onBehavior"> & {
|
|
52
|
+
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent, "uid" | "back" | "toolbar" | "layoutComponents" | "schemaComponents" | "footerComponents" | "control" | "description" | "error" | "externalConfirmation" | "loadingState" | "referencedSchemaIds" | "stackBehavior" | "etag" | "step" | "title" | "tags" | "trackEvent" | "onBehavior"> & {
|
|
52
53
|
stepPolling?: StepPolling;
|
|
53
54
|
stepRefreshAfter?: StepRefreshAfter;
|
|
54
55
|
stepPrefetch: StepPrefetch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepDomainComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/step/StepDomainComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,uBAAuB,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAMrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,6BAA6B,CAAC;IACrD,YAAY,EAAE,YAAY,CAA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ACN,YAAY,GACZ,YAAY,CACf,GAAG;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,KACA,
|
|
1
|
+
{"version":3,"file":"StepDomainComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/step/StepDomainComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,uBAAuB,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAMrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACp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;AAEF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,IAAI,CACb,mBAAmB,EACjB,KAAK,GACL,MAAM,GACN,SAAS,GACT,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,SAAS,GACT,aAAa,GACb,OAAO,GACP,sBAAsB,GACtB,cAAc,GACd,qBAAqB,GACrB,eAAe,GACf,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,CACf,GAAG;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,KACA,mBAyEF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Step } from '@wise/dynamic-flow-types/spec';
|
|
2
2
|
import { LocalValue, SchemaComponent } from '../types';
|
|
3
3
|
import { MapperProps } from './schema/types';
|
|
4
|
-
export declare const mapStepSchemas: (uid: string, step: Step, stepLocalValue: LocalValue, mapperProps: MapperProps
|
|
4
|
+
export declare const mapStepSchemas: (uid: string, step: Step, stepLocalValue: LocalValue, mapperProps: MapperProps) => SchemaComponent[];
|
|
5
5
|
//# sourceMappingURL=mapStepSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapStepSchemas.d.ts","sourceRoot":"","sources":["../../../../src/domain/mappers/mapStepSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,cAAc,GACzB,KAAK,MAAM,EACX,MAAM,IAAI,EACV,gBAAgB,UAAU,EAC1B,aAAa,WAAW,
|
|
1
|
+
{"version":3,"file":"mapStepSchemas.d.ts","sourceRoot":"","sources":["../../../../src/domain/mappers/mapStepSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,cAAc,GACzB,KAAK,MAAM,EACX,MAAM,IAAI,EACV,gBAAgB,UAAU,EAC1B,aAAa,WAAW,KACvB,eAAe,EAejB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapStepToComponent.d.ts","sourceRoot":"","sources":["../../../../src/domain/mappers/mapStepToComponent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,EAAY,YAAY,EAAc,MAAM,EAAE,MAAM,UAAU,CAAC;AAI3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,4BAA4B,CAAC,GAAG;IAC7F,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC7C,gBAAgB,EAAE,YAAY,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,wFAQhC,eAAe,
|
|
1
|
+
{"version":3,"file":"mapStepToComponent.d.ts","sourceRoot":"","sources":["../../../../src/domain/mappers/mapStepToComponent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CA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