@arquimedes.co/eureka-forms 1.9.134 → 2.0.1-test

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 (208) hide show
  1. package/dist/@Types/Form.d.ts +1 -1
  2. package/dist/@Types/FormStep.d.ts +2 -2
  3. package/dist/@Types/GenericFormSteps.d.ts +1 -0
  4. package/dist/App/App.css +6 -0
  5. package/dist/{App.d.ts → App/App.d.ts} +13 -21
  6. package/dist/App/App.js +76 -0
  7. package/dist/App/AppFunctions.d.ts +17 -0
  8. package/dist/App/AppFunctions.js +210 -0
  9. package/dist/App/AppHooks.d.ts +10 -0
  10. package/dist/App/AppHooks.js +235 -0
  11. package/dist/Contexts/CustomContext.d.ts +11 -0
  12. package/dist/Contexts/CustomContext.js +6 -0
  13. package/dist/Contexts/FormContext.d.ts +4 -0
  14. package/dist/Contexts/FormContext.js +19 -0
  15. package/dist/Contexts/SectionContext.d.ts +3 -0
  16. package/dist/Contexts/SectionContext.js +3 -0
  17. package/dist/Form/ConfirmationDialog/ConfirmationDialog.d.ts +2 -4
  18. package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +3 -1
  19. package/dist/Form/Form.d.ts +17 -34
  20. package/dist/Form/Form.js +73 -124
  21. package/dist/Form/FormFunctions.d.ts +5 -4
  22. package/dist/Form/FormFunctions.js +24 -25
  23. package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +1 -1
  24. package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +34 -58
  25. package/dist/Form/FormTypes/ColumnForm/ColumnForm.module.css +0 -4
  26. package/dist/Form/FormTypes/StepperForm/StepperForm.d.ts +1 -1
  27. package/dist/Form/FormTypes/StepperForm/StepperForm.js +122 -3
  28. package/dist/Form/FormTypes/StepperForm/StepperForm.module.css +53 -0
  29. package/dist/Form/Hooks.d.ts +9 -0
  30. package/dist/Form/Hooks.js +7 -0
  31. package/dist/Form/Section/MaterialSection/MaterialSection.d.ts +1 -1
  32. package/dist/Form/Section/MaterialSection/MaterialSection.js +15 -16
  33. package/dist/Form/Section/Section.d.ts +2 -34
  34. package/dist/Form/Section/Section.js +11 -5
  35. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.d.ts +1 -1
  36. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.js +19 -14
  37. package/dist/Form/Terms/Term/Term.d.ts +1 -8
  38. package/dist/Form/Terms/Term/Term.js +3 -1
  39. package/dist/Form/Terms/Terms.d.ts +1 -2
  40. package/dist/Form/Terms/Terms.js +17 -8
  41. package/dist/Form/Terms/Terms.module.css +3 -0
  42. package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.d.ts +3 -3
  43. package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.js +49 -38
  44. package/dist/FormSteps/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +3 -1
  45. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +2 -2
  46. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +11 -5
  47. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +29 -27
  48. package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +0 -6
  49. package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.js +39 -31
  50. package/dist/FormSteps/AYFStepMapper.js +42 -43
  51. package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.d.ts +1 -1
  52. package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.js +4 -14
  53. package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +84 -97
  54. package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.module.css +0 -9
  55. package/dist/FormSteps/CBRStepMapper.js +78 -74
  56. package/dist/FormSteps/CheckBoxStep/CheckBoxStep.d.ts +1 -1
  57. package/dist/FormSteps/CheckBoxStep/CheckBoxStep.js +4 -14
  58. package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +33 -26
  59. package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +17 -0
  60. package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +1 -1
  61. package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.js +4 -14
  62. package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +34 -27
  63. package/dist/FormSteps/CollapsibleStep/CollapsibleStep.d.ts +1 -1
  64. package/dist/FormSteps/CollapsibleStep/CollapsibleStep.js +4 -2
  65. package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +16 -11
  66. package/dist/FormSteps/CustomStep.d.ts +22 -0
  67. package/dist/FormSteps/CustomStep.js +37 -0
  68. package/dist/FormSteps/DatePickerStep/DatePickerStep.js +3 -1
  69. package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +1 -1
  70. package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +26 -14
  71. package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.d.ts +1 -1
  72. package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.js +4 -14
  73. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +93 -112
  74. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +0 -9
  75. package/dist/FormSteps/FileUploadStep/FileUploadStep.js +3 -1
  76. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +1 -1
  77. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +1 -1
  78. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +0 -7
  79. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +32 -18
  80. package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -7
  81. package/dist/FormSteps/MapperStep/MapperStep.d.ts +2 -2
  82. package/dist/FormSteps/MapperStep/MapperStep.js +4 -14
  83. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +1 -9
  84. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +7 -2
  85. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +3 -2
  86. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElement.js +18 -10
  87. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +1 -9
  88. package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +7 -2
  89. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +1 -1
  90. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.js +44 -228
  91. package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +0 -7
  92. package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.js +30 -14
  93. package/dist/FormSteps/RatingStep/RatingStep.js +3 -1
  94. package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +36 -26
  95. package/dist/FormSteps/SelectorStep/SelectorStep.d.ts +1 -1
  96. package/dist/FormSteps/SelectorStep/SelectorStep.js +4 -14
  97. package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +1 -1
  98. package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +3 -1
  99. package/dist/FormSteps/SeparatorStep/SeparatorStep.d.ts +1 -1
  100. package/dist/FormSteps/SeparatorStep/SeparatorStep.js +4 -14
  101. package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +5 -2
  102. package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +119 -199
  103. package/dist/FormSteps/SmartSelectStep/SmartSelectStep.d.ts +9 -10
  104. package/dist/FormSteps/SmartSelectStep/SmartSelectStep.js +3 -1
  105. package/dist/FormSteps/Step.d.ts +3 -4
  106. package/dist/FormSteps/Step.js +12 -8
  107. package/dist/FormSteps/StepFunctions.d.ts +10 -0
  108. package/dist/FormSteps/StepFunctions.js +156 -1
  109. package/dist/FormSteps/StepHooks.d.ts +23 -0
  110. package/dist/FormSteps/StepHooks.js +87 -0
  111. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.d.ts +10 -0
  112. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.js +148 -0
  113. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +1 -6
  114. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +40 -186
  115. package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -9
  116. package/dist/FormSteps/TextAreaStep/TextAreaStep.js +8 -2
  117. package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +1 -1
  118. package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +43 -42
  119. package/dist/FormSteps/TextInputStep/TextInputStep.js +3 -1
  120. package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.js +11 -6
  121. package/dist/FormSteps/TitleStep/TitleStep.d.ts +1 -1
  122. package/dist/FormSteps/TitleStep/TitleStep.js +4 -14
  123. package/dist/Icons/Construction/LeakIcon.d.ts +2 -2
  124. package/dist/Icons/Construction/LeakIcon.js +2 -1
  125. package/dist/Icons/Construction/ProjectIcon.d.ts +2 -2
  126. package/dist/Icons/Construction/ProjectIcon.js +2 -1
  127. package/dist/Icons/Construction/PropertyIcon.d.ts +2 -2
  128. package/dist/Icons/Construction/PropertyIcon.js +2 -1
  129. package/dist/Icons/Construction/SpaceIcon.d.ts +2 -2
  130. package/dist/Icons/Construction/SpaceIcon.js +2 -1
  131. package/dist/Icons/DocumentIcon.d.ts +2 -2
  132. package/dist/Icons/DocumentIcon.js +2 -1
  133. package/dist/Icons/Entities/CheckListIcon.d.ts +2 -2
  134. package/dist/Icons/Entities/CheckListIcon.js +2 -1
  135. package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -1
  136. package/dist/Icons/Entities/GenericEntityIcon.js +1 -1
  137. package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -1
  138. package/dist/Icons/Entities/HandshakeIcon.js +1 -1
  139. package/dist/Icons/Entities/SupplierIcon.d.ts +2 -1
  140. package/dist/Icons/Entities/SupplierIcon.js +4 -1
  141. package/dist/{controllers → Services}/FileService.d.ts +1 -1
  142. package/dist/{controllers → Services}/FileService.js +5 -5
  143. package/dist/Services/FormService.d.ts +5 -0
  144. package/dist/Services/FormService.js +59 -0
  145. package/dist/Services/OrganizationService.d.ts +2 -0
  146. package/dist/Services/OrganizationService.js +65 -0
  147. package/dist/Shared/Navbar/Navbar.module.css +8 -0
  148. package/dist/{shared → Shared}/Rating/Rating.d.ts +1 -1
  149. package/dist/Shared/Rating/Rating.module.css +18 -0
  150. package/dist/{shared → Shared}/Rating/Ratings/LikeRating.js +5 -5
  151. package/dist/{shared → Shared}/Rating/Ratings/SatisfactionRating.js +9 -9
  152. package/dist/{shared → Shared}/Rating/Ratings/ScaleRating.js +1 -2
  153. package/dist/{shared → Shared}/RoundedCheckBox/RoundedCheckBox.d.ts +1 -1
  154. package/dist/{shared → Shared}/RoundedSmartSelect/RoundedSmartSelect.js +4 -4
  155. package/dist/{shared → Shared}/RoundedTextField/RoundedTextField.d.ts +1 -1
  156. package/dist/{shared → Shared}/RoundedTextField/RoundedTextField.js +3 -2
  157. package/dist/Shared/RoundedTextField/RoundedTextField.stories.d.ts +24 -0
  158. package/dist/Shared/RoundedTextField/RoundedTextField.stories.js +25 -0
  159. package/dist/States/GlobalStateReducer.d.ts +35 -0
  160. package/dist/States/GlobalStateReducer.js +34 -0
  161. package/dist/States/SiteStateReducer.d.ts +63 -0
  162. package/dist/States/SiteStateReducer.js +110 -0
  163. package/dist/States/WidthStatsStateReducer.d.ts +11 -0
  164. package/dist/States/WidthStatsStateReducer.js +64 -0
  165. package/dist/Utils/DraftFunctions.d.ts +3 -0
  166. package/dist/Utils/DraftFunctions.js +42 -0
  167. package/dist/Utils/MaterialProviders.d.ts +6 -0
  168. package/dist/Utils/MaterialProviders.js +31 -0
  169. package/dist/Utils/store.d.ts +25 -0
  170. package/dist/Utils/store.js +52 -0
  171. package/dist/Widget.js +3 -3
  172. package/dist/constants/CBRFormStepTypes.d.ts +2 -2
  173. package/dist/constants/CBRFormStepTypes.js +22 -22
  174. package/dist/hooks.d.ts +5 -0
  175. package/dist/hooks.js +7 -0
  176. package/dist/index.js +1 -1
  177. package/dist/index.lib.d.ts +1 -1
  178. package/dist/index.lib.js +1 -1
  179. package/package.json +63 -44
  180. package/dist/App.js +0 -472
  181. package/dist/shared/Navbar/Navbar.module.css +0 -18
  182. package/dist/shared/Rating/Rating.module.css +0 -32
  183. package/dist/{App.module.css → App/App.module.css} +0 -0
  184. package/dist/{shared → Shared}/InputIcon/InputIcon.d.ts +0 -0
  185. package/dist/{shared → Shared}/InputIcon/InputIcon.js +0 -0
  186. package/dist/{shared → Shared}/Loader/Loader.d.ts +0 -0
  187. package/dist/{shared → Shared}/Loader/Loader.js +0 -0
  188. package/dist/{shared → Shared}/Loader/Loader.module.css +0 -0
  189. package/dist/{shared → Shared}/Navbar/Navbar.d.ts +0 -0
  190. package/dist/{shared → Shared}/Navbar/Navbar.js +0 -0
  191. package/dist/{shared → Shared}/Rating/Rating.js +2 -2
  192. /package/dist/{shared → Shared}/Rating/Ratings/LikeRating.d.ts +0 -0
  193. /package/dist/{shared → Shared}/Rating/Ratings/SatisfactionRating.d.ts +0 -0
  194. /package/dist/{shared → Shared}/Rating/Ratings/ScaleRating.d.ts +0 -0
  195. /package/dist/{shared → Shared}/RoundedButton/RoundedButton.d.ts +0 -0
  196. /package/dist/{shared → Shared}/RoundedButton/RoundedButton.js +0 -0
  197. /package/dist/{shared → Shared}/RoundedCheckBox/RoundedCheckBox.js +0 -0
  198. /package/dist/{shared → Shared}/RoundedDatePicker/RoundedDatePicker.d.ts +0 -0
  199. /package/dist/{shared → Shared}/RoundedDatePicker/RoundedDatePicker.js +0 -0
  200. /package/dist/{shared → Shared}/RoundedSelect/RoundedSelect.d.ts +0 -0
  201. /package/dist/{shared → Shared}/RoundedSelect/RoundedSelect.js +0 -0
  202. /package/dist/{shared → Shared}/RoundedSmartSelect/RoundedSmartSelect.d.ts +0 -0
  203. /package/dist/{AxiosAPI.d.ts → Utils/AxiosAPI.d.ts} +0 -0
  204. /package/dist/{AxiosAPI.js → Utils/AxiosAPI.js} +0 -0
  205. /package/dist/{AxiosWidget.d.ts → Utils/AxiosWidget.d.ts} +0 -0
  206. /package/dist/{AxiosWidget.js → Utils/AxiosWidget.js} +0 -0
  207. /package/dist/{utils/CbrFunctions.d.ts → Utils/CBRFunctions.d.ts} +0 -0
  208. /package/dist/{utils/CbrFunctions.js → Utils/CBRFunctions.js} +0 -0
@@ -0,0 +1,34 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import InternalFormStyle from '../constants/InternalFormStyle';
13
+ import { createSlice } from '@reduxjs/toolkit';
14
+ var initialState = {
15
+ idOrganization: '',
16
+ formStyle: InternalFormStyle,
17
+ editable: false,
18
+ preview: false,
19
+ postview: false,
20
+ partial: false,
21
+ internal: false,
22
+ loaded: false,
23
+ };
24
+ export var GlobalSlice = createSlice({
25
+ name: 'global',
26
+ initialState: initialState,
27
+ reducers: {
28
+ reset: function (state, action) {
29
+ return __assign(__assign(__assign({}, state), action.payload), { loaded: true });
30
+ },
31
+ },
32
+ });
33
+ export var reset = GlobalSlice.actions.reset;
34
+ export default GlobalSlice.reducer;
@@ -0,0 +1,63 @@
1
+ import { DependencyStore, StepDependency } from '../Form/Form';
2
+ import { GBaseStep } from '../@Types/GenericFormSteps';
3
+ import { FormStep } from '../@Types/FormStep';
4
+ import { CustomStep } from '../FormSteps/CustomStep';
5
+ import { CBRFormStep } from '../@Types/CBRFormStep';
6
+ import type { PayloadAction } from '@reduxjs/toolkit';
7
+ import { FieldValues } from 'react-hook-form';
8
+ export interface SiteState {
9
+ dependencies: DependencyStore;
10
+ values: ValuesStore;
11
+ idCurrentSection: string | null;
12
+ previousSections: string[];
13
+ nextSections: string[];
14
+ focusStep?: string;
15
+ }
16
+ export interface ValuesStore {
17
+ global: Record<string, any>;
18
+ sections: Record<string, Record<string, any>>;
19
+ }
20
+ export declare const SiteSlice: import("@reduxjs/toolkit").Slice<SiteState, {
21
+ setStepDependency: (state: import("immer/dist/internal").WritableDraft<SiteState>, { payload: { step: { id, type, idSection }, value, }, }: {
22
+ payload: {
23
+ step: GBaseStep;
24
+ value: StepDependency['value'];
25
+ };
26
+ type: string;
27
+ }) => void;
28
+ setEmptyDependency: (state: import("immer/dist/internal").WritableDraft<SiteState>, { payload: { step: { id }, empty, }, }: {
29
+ payload: {
30
+ step: GBaseStep;
31
+ empty: StepDependency['empty'];
32
+ };
33
+ type: string;
34
+ }) => void;
35
+ addStepsDependencies: (state: import("immer/dist/internal").WritableDraft<SiteState>, { payload: { steps, customSteps }, }: {
36
+ payload: {
37
+ steps: Record<string, FormStep | CBRFormStep>;
38
+ customSteps: Record<string, CustomStep>;
39
+ };
40
+ type: string;
41
+ }) => void;
42
+ handlePrevious: (state: import("immer/dist/internal").WritableDraft<SiteState>, { payload }: PayloadAction<Record<string, any>>) => void;
43
+ handleNext: (state: import("immer/dist/internal").WritableDraft<SiteState>, { payload }: PayloadAction<Record<string, any>>) => void;
44
+ focusStep: (state: import("immer/dist/internal").WritableDraft<SiteState>, { payload, }: PayloadAction<{
45
+ step: FormStep;
46
+ values: FieldValues;
47
+ } | undefined>) => void;
48
+ }, "site">;
49
+ export declare const focusStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
50
+ step: FormStep;
51
+ values: FieldValues;
52
+ } | undefined, "site/focusStep">, setStepDependency: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
53
+ step: GBaseStep;
54
+ value: StepDependency['value'];
55
+ }, "site/setStepDependency">, addStepsDependencies: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
56
+ steps: Record<string, FormStep | CBRFormStep>;
57
+ customSteps: Record<string, CustomStep>;
58
+ }, "site/addStepsDependencies">, setEmptyDependency: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
59
+ step: GBaseStep;
60
+ empty: StepDependency['empty'];
61
+ }, "site/setEmptyDependency">, handlePrevious: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, any>, "site/handlePrevious">, handleNext: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, any>, "site/handleNext">;
62
+ declare const _default: import("redux").Reducer<SiteState, import("redux").AnyAction>;
63
+ export default _default;
@@ -0,0 +1,110 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var _a;
13
+ import { createSlice } from '@reduxjs/toolkit';
14
+ import { reset } from './GlobalStateReducer';
15
+ import { calcDependencies } from '../Form/FormFunctions';
16
+ import { calcDefaultValue } from '../FormSteps/StepFunctions';
17
+ var initialState = {
18
+ values: {
19
+ global: {},
20
+ sections: {},
21
+ },
22
+ dependencies: {},
23
+ idCurrentSection: null,
24
+ previousSections: [],
25
+ nextSections: [],
26
+ };
27
+ export var SiteSlice = createSlice({
28
+ name: 'site',
29
+ initialState: initialState,
30
+ reducers: {
31
+ setStepDependency: function (state, _a) {
32
+ var _b = _a.payload, _c = _b.step, id = _c.id, type = _c.type, idSection = _c.idSection, value = _b.value;
33
+ var old = state.dependencies[id];
34
+ if (old && (old.type !== type || old.value !== value)) {
35
+ state.dependencies[id] = __assign(__assign({}, state.dependencies[id]), { type: type, value: value });
36
+ for (var _i = 0, _d = old.dependents; _i < _d.length; _i++) {
37
+ var dependent = _d[_i];
38
+ if (state.idCurrentSection !== null &&
39
+ dependent.idSection !== idSection) {
40
+ state.values.sections[dependent.idSection][dependent.id] = calcDefaultValue(dependent);
41
+ }
42
+ }
43
+ }
44
+ },
45
+ setEmptyDependency: function (state, _a) {
46
+ var _b = _a.payload, id = _b.step.id, empty = _b.empty;
47
+ if (state.dependencies[id]) {
48
+ state.dependencies[id].empty = empty;
49
+ }
50
+ },
51
+ addStepsDependencies: function (state, _a) {
52
+ var _b = _a.payload, steps = _b.steps, customSteps = _b.customSteps;
53
+ calcDependencies(steps, {}, customSteps, steps, state.dependencies);
54
+ },
55
+ handlePrevious: function (state, _a) {
56
+ var payload = _a.payload;
57
+ var previousSections = state.previousSections, nextSections = state.nextSections, idCurrentSection = state.idCurrentSection;
58
+ var idPreviousSection = previousSections.pop();
59
+ if (!idPreviousSection || !idCurrentSection)
60
+ return;
61
+ nextSections.unshift(idCurrentSection);
62
+ state.values.sections[idCurrentSection] = payload;
63
+ state.idCurrentSection = idPreviousSection;
64
+ },
65
+ handleNext: function (state, _a) {
66
+ var payload = _a.payload;
67
+ var previousSections = state.previousSections, nextSections = state.nextSections, idCurrentSection = state.idCurrentSection;
68
+ var idNextSection = nextSections.shift();
69
+ if (!idNextSection || !idCurrentSection)
70
+ return;
71
+ previousSections.push(idCurrentSection);
72
+ state.values.sections[idCurrentSection] = payload;
73
+ state.idCurrentSection = idNextSection;
74
+ },
75
+ focusStep: function (state, _a) {
76
+ var payload = _a.payload;
77
+ var idSection = payload === null || payload === void 0 ? void 0 : payload.step.idSection;
78
+ var previousSections = state.previousSections, nextSections = state.nextSections;
79
+ var idCurrentSection = state.idCurrentSection;
80
+ if (idSection &&
81
+ idCurrentSection &&
82
+ previousSections.includes(idSection)) {
83
+ state.values.sections[idCurrentSection] = payload.values;
84
+ while (idCurrentSection !== idSection) {
85
+ var idPreviousSection = previousSections.pop();
86
+ if (!idCurrentSection)
87
+ return;
88
+ nextSections.unshift(idCurrentSection);
89
+ idCurrentSection = idPreviousSection;
90
+ }
91
+ }
92
+ state.previousSections = previousSections;
93
+ state.idCurrentSection = idCurrentSection;
94
+ state.nextSections = nextSections;
95
+ state.focusStep = payload === null || payload === void 0 ? void 0 : payload.step.id;
96
+ },
97
+ },
98
+ extraReducers: function (builder) {
99
+ builder.addCase(reset, function (state, action) {
100
+ var payload = action.payload;
101
+ state.previousSections = payload.previousSections;
102
+ state.idCurrentSection = payload.idCurrentSection;
103
+ state.nextSections = payload.nextSections;
104
+ state.values = payload.values;
105
+ state.dependencies = payload.dependencies;
106
+ });
107
+ },
108
+ });
109
+ export var focusStep = (_a = SiteSlice.actions, _a.focusStep), setStepDependency = _a.setStepDependency, addStepsDependencies = _a.addStepsDependencies, setEmptyDependency = _a.setEmptyDependency, handlePrevious = _a.handlePrevious, handleNext = _a.handleNext;
110
+ export default SiteSlice.reducer;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { WidthStats } from '../Form/Form';
3
+ import { Form } from '../@Types';
4
+ import type { PayloadAction } from '@reduxjs/toolkit';
5
+ export declare const WidthStatsSlice: import("@reduxjs/toolkit").Slice<WidthStats, {
6
+ updateWidthStats: (state: import("immer/dist/internal").WritableDraft<WidthStats>, { payload }: PayloadAction<WidthStats>) => WidthStats;
7
+ }, "widthstats">;
8
+ export declare const updateWidthStats: import("@reduxjs/toolkit").ActionCreatorWithPayload<WidthStats, "widthstats/updateWidthStats">;
9
+ declare const _default: import("redux").Reducer<WidthStats, import("redux").AnyAction>;
10
+ export default _default;
11
+ export declare function useWidthStats(containerRef: React.RefObject<HTMLDivElement>, form: Form, postview: boolean, internal: boolean): void;
@@ -0,0 +1,64 @@
1
+ import { useCallback, useLayoutEffect } from 'react';
2
+ import { createSlice } from '@reduxjs/toolkit';
3
+ import { useDispatch } from 'react-redux';
4
+ var initialState = {
5
+ currentBreakPoint: 0,
6
+ isMobile: false,
7
+ isResponsive: false,
8
+ };
9
+ export var WidthStatsSlice = createSlice({
10
+ name: 'widthstats',
11
+ initialState: initialState,
12
+ reducers: {
13
+ updateWidthStats: function (state, _a) {
14
+ var payload = _a.payload;
15
+ if (payload.isMobile !== (state === null || state === void 0 ? void 0 : state.isMobile) ||
16
+ payload.isResponsive !== (state === null || state === void 0 ? void 0 : state.isResponsive) ||
17
+ payload.currentBreakPoint !== (state === null || state === void 0 ? void 0 : state.currentBreakPoint))
18
+ return payload;
19
+ else
20
+ return state;
21
+ },
22
+ },
23
+ });
24
+ export var updateWidthStats = WidthStatsSlice.actions.updateWidthStats;
25
+ export default WidthStatsSlice.reducer;
26
+ export function useWidthStats(containerRef, form, postview, internal) {
27
+ var calcWidthStats = useCallback(function (currentWidth) {
28
+ var currentBreakPoint = form.size.blockNum;
29
+ var padding = postview || internal || !form.isStandAlone ? 0 : 40;
30
+ while (currentWidth <
31
+ (form.size.blockSize + form.size.spacingSize) *
32
+ currentBreakPoint +
33
+ padding) {
34
+ currentBreakPoint--;
35
+ }
36
+ return {
37
+ isResponsive: currentWidth <
38
+ (form.size.blockSize + form.size.spacingSize) *
39
+ form.size.blockNum +
40
+ padding,
41
+ isMobile: currentWidth <
42
+ (form.size.blockSize + form.size.spacingSize) * 2 + padding,
43
+ currentBreakPoint: currentBreakPoint,
44
+ };
45
+ }, [form, postview, internal]);
46
+ var dispatch = useDispatch();
47
+ /** Calcs the currentBreakPoint and if is mobile */
48
+ useLayoutEffect(function () {
49
+ var handleResize = function () {
50
+ var _a;
51
+ var currentWidth = (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth;
52
+ if (currentWidth !== undefined) {
53
+ var current = calcWidthStats(currentWidth);
54
+ dispatch(updateWidthStats(current));
55
+ }
56
+ };
57
+ /** On load add a resize listener to calc the currentBreakpoint */
58
+ window.addEventListener('resize', handleResize);
59
+ handleResize();
60
+ return function () {
61
+ window.removeEventListener('resize', handleResize);
62
+ };
63
+ }, []);
64
+ }
@@ -0,0 +1,3 @@
1
+ import { RawDraftContentState } from 'draft-js';
2
+ export declare function stringToDraft(text: string): RawDraftContentState;
3
+ export declare const getRawText: (draft?: RawDraftContentState, text?: string) => RawDraftContentState;
@@ -0,0 +1,42 @@
1
+ export function stringToDraft(text) {
2
+ var draftStructure = {
3
+ blocks: [],
4
+ entityMap: {},
5
+ };
6
+ text.split('\n').forEach(function (element, index) {
7
+ draftStructure.blocks.push({
8
+ key: String(index),
9
+ text: element,
10
+ type: 'unstyled',
11
+ depth: 0,
12
+ inlineStyleRanges: [],
13
+ entityRanges: [],
14
+ data: {},
15
+ });
16
+ });
17
+ return draftStructure;
18
+ }
19
+ export var getRawText = function (draft, text) {
20
+ if (draft !== undefined) {
21
+ return draft;
22
+ }
23
+ else if (text !== undefined) {
24
+ return stringToDraft(text);
25
+ }
26
+ else {
27
+ return {
28
+ blocks: [
29
+ {
30
+ key: 'fudmo',
31
+ text: '',
32
+ type: 'unstyled',
33
+ depth: 0,
34
+ inlineStyleRanges: [],
35
+ entityRanges: [],
36
+ data: {},
37
+ },
38
+ ],
39
+ entityMap: {},
40
+ };
41
+ }
42
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface MaterialProvidersProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare function MaterialProviders({ children }: MaterialProvidersProps): JSX.Element;
6
+ export default MaterialProviders;
@@ -0,0 +1,31 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { StylesProvider, ThemeProvider, createGenerateClassName, createTheme, } from '@material-ui/core';
14
+ import DateFnsUtils from '@date-io/date-fns';
15
+ import { MuiPickersUtilsProvider } from '@material-ui/pickers';
16
+ import { SEED } from '../constants/MaterialClassNameSeed';
17
+ import { getLocale } from '../Form/Form';
18
+ var muiTheme = createTheme({
19
+ typography: {
20
+ fontFamily: 'inherit',
21
+ },
22
+ });
23
+ var generateClassName = createGenerateClassName({
24
+ seed: SEED,
25
+ productionPrefix: 'efjss',
26
+ });
27
+ function MaterialProviders(_a) {
28
+ var children = _a.children;
29
+ return (_jsx(StylesProvider, __assign({ generateClassName: generateClassName }, { children: _jsx(ThemeProvider, __assign({ theme: muiTheme }, { children: _jsx(MuiPickersUtilsProvider, __assign({ utils: DateFnsUtils, locale: getLocale() }, { children: children })) })) })));
30
+ }
31
+ export default MaterialProviders;
@@ -0,0 +1,25 @@
1
+ export declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<{
2
+ global: import("../States/GlobalStateReducer").GlobalState;
3
+ site: import("../States/SiteStateReducer").SiteState;
4
+ widthStats: import("../Form/Form").WidthStats;
5
+ }, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<{
6
+ global: import("../States/GlobalStateReducer").GlobalState;
7
+ site: import("../States/SiteStateReducer").SiteState;
8
+ widthStats: import("../Form/Form").WidthStats;
9
+ }, import("redux").AnyAction, undefined>]>;
10
+ export type RootState = ReturnType<typeof store.getState>;
11
+ export type AppDispatch = typeof store.dispatch;
12
+ export declare const getAppState: import("@reduxjs/toolkit").AsyncThunk<{
13
+ global: import("../States/GlobalStateReducer").GlobalState;
14
+ site: import("../States/SiteStateReducer").SiteState;
15
+ widthStats: import("../Form/Form").WidthStats;
16
+ }, void, {
17
+ state?: unknown;
18
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
19
+ extra?: unknown;
20
+ rejectValue?: unknown;
21
+ serializedErrorType?: unknown;
22
+ pendingMeta?: unknown;
23
+ fulfilledMeta?: unknown;
24
+ rejectedMeta?: unknown;
25
+ }>;
@@ -0,0 +1,52 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { configureStore, createAsyncThunk } from '@reduxjs/toolkit';
38
+ import GlobalStateReducer from '../States/GlobalStateReducer';
39
+ import SiteStateReducer from '../States/SiteStateReducer';
40
+ import WidthStatsStateReducer from '../States/WidthStatsStateReducer';
41
+ export var store = configureStore({
42
+ reducer: {
43
+ global: GlobalStateReducer,
44
+ site: SiteStateReducer,
45
+ widthStats: WidthStatsStateReducer,
46
+ },
47
+ });
48
+ export var getAppState = createAsyncThunk('get/state', function (payload, thunkAPI) { return __awaiter(void 0, void 0, void 0, function () {
49
+ return __generator(this, function (_a) {
50
+ return [2 /*return*/, thunkAPI.getState()];
51
+ });
52
+ }); });
package/dist/Widget.js CHANGED
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  var _a;
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import ReactDOM from 'react-dom';
15
- import App from './App';
15
+ import App from './App/App';
16
16
  var WIDGET_ID = 'widget:eureka';
17
17
  var element = document.getElementById(WIDGET_ID);
18
18
  var props = {};
@@ -23,11 +23,11 @@ if (element) {
23
23
  if (splitUrl.length > 0) {
24
24
  props.apiKey = splitUrl[splitUrl.length - 1];
25
25
  }
26
- var domain = (_a = /:\/\/([^\/]+)/.exec(url)) === null || _a === void 0 ? void 0 : _a[1];
26
+ var domain = (_a = /:\/\/([^/]+)/.exec(url)) === null || _a === void 0 ? void 0 : _a[1];
27
27
  if (domain) {
28
28
  var splitDomain = domain.split('.');
29
29
  if (splitDomain.length > 0 && splitDomain[0] !== 'forms') {
30
- props.domain = splitDomain[0];
30
+ props.idOrganization = splitDomain[0];
31
31
  }
32
32
  }
33
33
  }
@@ -1,4 +1,4 @@
1
- declare enum TYPES {
1
+ declare enum CBRFormStepTypes {
2
2
  CBR_MACRO_PROYECTO = "CBR_MACRO_PROYECTO",
3
3
  CBR_POSTVENTA = "CBR_POSTVENTA",
4
4
  CBR_FIRST_NAME = "CBR_FIRST_NAME",
@@ -18,4 +18,4 @@ declare enum TYPES {
18
18
  CBR_INCIDENCIAS = "CBR_INCIDENCIAS",
19
19
  CBR_COMENTARIO = "CBR_COMENTARIO"
20
20
  }
21
- export default TYPES;
21
+ export default CBRFormStepTypes;
@@ -1,22 +1,22 @@
1
- var TYPES;
2
- (function (TYPES) {
3
- TYPES["CBR_MACRO_PROYECTO"] = "CBR_MACRO_PROYECTO";
4
- TYPES["CBR_POSTVENTA"] = "CBR_POSTVENTA";
5
- TYPES["CBR_FIRST_NAME"] = "CBR_FIRST_NAME";
6
- TYPES["CBR_MIDDLE_NAME"] = "CBR_MIDDLE_NAME";
7
- TYPES["CBR_LAST_NAME"] = "CBR_LAST_NAME";
8
- TYPES["CBR_SECOND_LAST_NAME"] = "CBR_SECOND_LAST_NAME";
9
- TYPES["CBR_DOC"] = "CBR_DOC";
10
- TYPES["CBR_CEL"] = "CBR_CEL";
11
- TYPES["CBR_PHONE"] = "CBR_PHONE";
12
- TYPES["CBR_EMAIL"] = "CBR_EMAIL";
13
- TYPES["CBR_PROYECTO"] = "CBR_PROYECTO";
14
- TYPES["CBR_TIPO_DOC"] = "CBR_TIPO_DOC";
15
- TYPES["CBR_TIPO_SOLICITANTE"] = "CBR_TIPO_SOLICITANTE";
16
- TYPES["CBR_INMUEBLE"] = "CBR_INMUEBLE";
17
- TYPES["CBR_TIPO_ESPACIO"] = "CBR_TIPO_ESPACIO";
18
- TYPES["CBR_LOCATIVAS"] = "CBR_LOCATIVAS";
19
- TYPES["CBR_INCIDENCIAS"] = "CBR_INCIDENCIAS";
20
- TYPES["CBR_COMENTARIO"] = "CBR_COMENTARIO";
21
- })(TYPES || (TYPES = {}));
22
- export default TYPES;
1
+ var CBRFormStepTypes;
2
+ (function (CBRFormStepTypes) {
3
+ CBRFormStepTypes["CBR_MACRO_PROYECTO"] = "CBR_MACRO_PROYECTO";
4
+ CBRFormStepTypes["CBR_POSTVENTA"] = "CBR_POSTVENTA";
5
+ CBRFormStepTypes["CBR_FIRST_NAME"] = "CBR_FIRST_NAME";
6
+ CBRFormStepTypes["CBR_MIDDLE_NAME"] = "CBR_MIDDLE_NAME";
7
+ CBRFormStepTypes["CBR_LAST_NAME"] = "CBR_LAST_NAME";
8
+ CBRFormStepTypes["CBR_SECOND_LAST_NAME"] = "CBR_SECOND_LAST_NAME";
9
+ CBRFormStepTypes["CBR_DOC"] = "CBR_DOC";
10
+ CBRFormStepTypes["CBR_CEL"] = "CBR_CEL";
11
+ CBRFormStepTypes["CBR_PHONE"] = "CBR_PHONE";
12
+ CBRFormStepTypes["CBR_EMAIL"] = "CBR_EMAIL";
13
+ CBRFormStepTypes["CBR_PROYECTO"] = "CBR_PROYECTO";
14
+ CBRFormStepTypes["CBR_TIPO_DOC"] = "CBR_TIPO_DOC";
15
+ CBRFormStepTypes["CBR_TIPO_SOLICITANTE"] = "CBR_TIPO_SOLICITANTE";
16
+ CBRFormStepTypes["CBR_INMUEBLE"] = "CBR_INMUEBLE";
17
+ CBRFormStepTypes["CBR_TIPO_ESPACIO"] = "CBR_TIPO_ESPACIO";
18
+ CBRFormStepTypes["CBR_LOCATIVAS"] = "CBR_LOCATIVAS";
19
+ CBRFormStepTypes["CBR_INCIDENCIAS"] = "CBR_INCIDENCIAS";
20
+ CBRFormStepTypes["CBR_COMENTARIO"] = "CBR_COMENTARIO";
21
+ })(CBRFormStepTypes || (CBRFormStepTypes = {}));
22
+ export default CBRFormStepTypes;
@@ -0,0 +1,5 @@
1
+ import type { TypedUseSelectorHook } from 'react-redux';
2
+ import type { RootState, AppDispatch } from './Utils/store';
3
+ export declare const useAppDispatch: () => AppDispatch;
4
+ export declare const useAppSelector: TypedUseSelectorHook<RootState>;
5
+ export declare const selectBreakPoint: (state: RootState) => number;
package/dist/hooks.js ADDED
@@ -0,0 +1,7 @@
1
+ import { useDispatch, useSelector } from 'react-redux';
2
+ // Use throughout your app instead of plain `useDispatch` and `useSelector`
3
+ export var useAppDispatch = useDispatch;
4
+ export var useAppSelector = useSelector;
5
+ export var selectBreakPoint = function (state) {
6
+ return state.widthStats.currentBreakPoint;
7
+ };
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as ReactDOM from 'react-dom';
14
- import App from './App';
14
+ import App from './App/App';
15
15
  import styles from './index.module.css';
16
16
  var urlParams = new URLSearchParams(window.location.search);
17
17
  var values = urlParams.get('data-values');
@@ -1,4 +1,4 @@
1
- import EurekaForm, { AppProps as EurekaFormProps } from './App';
1
+ import EurekaForm, { AppProps as EurekaFormProps } from './App/App';
2
2
  import { StepProps } from './FormSteps/Step';
3
3
  import * as StepFunctions from './FormSteps/StepFunctions';
4
4
  export type { StepProps, EurekaFormProps };
package/dist/index.lib.js CHANGED
@@ -1,4 +1,4 @@
1
- import EurekaForm from './App';
1
+ import EurekaForm from './App/App';
2
2
  import * as StepFunctions from './FormSteps/StepFunctions';
3
3
  export { EurekaForm, StepFunctions };
4
4
  export default EurekaForm;