@arquimedes.co/eureka-forms 3.0.59 → 3.0.60
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/dist/App/App.module.css +34 -34
- package/dist/App/AppFunctions.d.ts +1 -1
- package/dist/App/AppHooks.d.ts +2 -2
- package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +1 -1
- package/dist/Form/Form.js +8 -7
- package/dist/Form/FormFunctions.d.ts +17 -0
- package/dist/Form/FormFunctions.js +22 -0
- package/dist/Form/FormFunctions.test.js +28 -1
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.module.css +19 -19
- package/dist/Form/Section/MaterialSection/MaterialSection.js +3 -7
- package/dist/Form/Section/MaterialSection/MaterialSection.module.css +6 -6
- package/dist/Form/Section/Section.js +1 -1
- package/dist/Form/Terms/Terms.js +1 -1
- package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +1 -1
- package/dist/FormSteps/CheckBoxStep/CheckBoxStep.mobileLabel.test.js +1 -3
- package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +63 -63
- package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +68 -68
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +1 -1
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +1 -3
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.js +1 -1
- package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +41 -41
- package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +30 -30
- package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +9 -9
- package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +1 -3
- package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +7 -7
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.js +1 -1
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +113 -113
- package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +9 -9
- package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +18 -18
- package/dist/FormSteps/Utils/@StepFiller/StepFiller.js +1 -1
- package/dist/Services/ApiSelectorService.d.ts +134 -134
- package/dist/Services/DraftService.d.ts +8 -8
- package/dist/Services/IntegrationService.d.ts +8 -8
- package/dist/Shared/CustomBtn/CustomBtn.js +1 -1
- package/dist/Shared/ErkDatePicker/ErkDatePicker.js +1 -3
- package/dist/Shared/ErkMenuItem.d.ts +1 -1
- package/dist/Shared/ErkSelect/ErkSelect.d.ts +3 -3
- package/dist/Shared/ErkSelect/ErkSelect.js +1 -1
- package/dist/Shared/ErkTimePicker/ErkTimePicker.js +1 -1
- package/dist/Shared/Loader/Loader.module.css +12 -12
- package/dist/Shared/Navbar/Navbar.js +1 -1
- package/dist/Shared/SmartDraftRenderer/FormDecorator.module.css +1 -6
- package/dist/States/SiteSlice.d.ts +2 -2
- package/dist/Utils/AxiosAPI.d.ts +4 -4
- package/dist/Utils/PhoneFunctions.js +1 -1
- package/dist/Utils/TestUtils.d.ts +7 -7
- package/dist/Utils/_api.d.ts +4 -4
- package/dist/Utils/store.d.ts +1 -1
- package/dist/constants/ConditionTypes.d.ts +2 -2
- package/dist/hooks.d.ts +1 -1
- package/dist/index.module.css +14 -14
- package/package.json +14 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import styles from './Navbar.module.css';
|
|
4
4
|
import { IconButton, Avatar, Menu, MenuItem } from '@mui/material';
|
|
@@ -5,12 +5,7 @@
|
|
|
5
5
|
animation-iteration-count: infinite;
|
|
6
6
|
animation-name: loading;
|
|
7
7
|
animation-timing-function: linear;
|
|
8
|
-
background: linear-gradient(
|
|
9
|
-
to right,
|
|
10
|
-
#d6d6d6 2%,
|
|
11
|
-
rgba(255, 255, 255, 0.3) 20%,
|
|
12
|
-
#d6d6d6 50%
|
|
13
|
-
);
|
|
8
|
+
background: linear-gradient(to right, #d6d6d6 2%, rgba(255, 255, 255, 0.3) 20%, #d6d6d6 50%);
|
|
14
9
|
background-size: 800px 100px;
|
|
15
10
|
height: 100%;
|
|
16
11
|
width: 100%;
|
|
@@ -29,14 +29,14 @@ export declare const focusStep: import("@reduxjs/toolkit").ActionCreatorWithOpti
|
|
|
29
29
|
values: FieldValues;
|
|
30
30
|
} | undefined, "site/focusStep">, clearDependency: import("@reduxjs/toolkit").ActionCreatorWithPayload<GBaseStep, "site/clearDependency">, setStepDependency: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
31
31
|
step: GBaseStep;
|
|
32
|
-
value: StepDependency[
|
|
32
|
+
value: StepDependency['value'];
|
|
33
33
|
}, "site/setStepDependency">, addStepsDependencies: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
34
34
|
steps: Record<string, FormStep | CBRFormStep>;
|
|
35
35
|
customSteps: Record<string, CustomStep>;
|
|
36
36
|
allSteps: Record<string, FormStep | CBRFormStep>;
|
|
37
37
|
}, "site/addStepsDependencies">, setEmptyDependency: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
38
38
|
step: GBaseStep;
|
|
39
|
-
empty: StepDependency[
|
|
39
|
+
empty: StepDependency['empty'];
|
|
40
40
|
}, "site/setEmptyDependency">, handlePrevious: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
41
41
|
values: Record<string, any>;
|
|
42
42
|
form: Form;
|
package/dist/Utils/AxiosAPI.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ declare const axiosInstance: import("axios").AxiosInstance;
|
|
|
4
4
|
export default axiosInstance;
|
|
5
5
|
export declare const axiosBaseQuery: () => BaseQueryFn<{
|
|
6
6
|
url: string;
|
|
7
|
-
timeout?: AxiosRequestConfig[
|
|
8
|
-
method?: AxiosRequestConfig[
|
|
9
|
-
body?: AxiosRequestConfig[
|
|
10
|
-
params?: AxiosRequestConfig[
|
|
7
|
+
timeout?: AxiosRequestConfig['timeout'];
|
|
8
|
+
method?: AxiosRequestConfig['method'];
|
|
9
|
+
body?: AxiosRequestConfig['data'];
|
|
10
|
+
params?: AxiosRequestConfig['params'];
|
|
11
11
|
headers?: Record<string, any>;
|
|
12
12
|
}, unknown, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as libphonenumber from 'libphonenumber-js/max';
|
|
2
|
-
import { guessCountryByPartialPhoneNumber, removeDialCode
|
|
2
|
+
import { guessCountryByPartialPhoneNumber, removeDialCode } from 'react-international-phone';
|
|
3
3
|
export function isValidPhoneNumber(phone) {
|
|
4
4
|
if (!phone.startsWith('+'))
|
|
5
5
|
phone = '+' + phone;
|
|
@@ -5,12 +5,6 @@ interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
|
|
|
5
5
|
store?: AppStore;
|
|
6
6
|
}
|
|
7
7
|
export declare function renderWithProviders(ui: React.ReactElement, { store, ...renderOptions }?: ExtendedRenderOptions): {
|
|
8
|
-
container: HTMLElement;
|
|
9
|
-
baseElement: HTMLElement;
|
|
10
|
-
debug: (baseElement?: import("react-dom/client").Container | (Document | Element) | Array<import("react-dom/client").Container | (Document | Element)> | undefined, maxLength?: number | undefined, options?: import("pretty-format").OptionsReceived | undefined) => void;
|
|
11
|
-
rerender: (ui: React.ReactNode) => void;
|
|
12
|
-
unmount: () => void;
|
|
13
|
-
asFragment: () => DocumentFragment;
|
|
14
8
|
getByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
15
9
|
getAllByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
16
10
|
queryByLabelText: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
@@ -59,10 +53,16 @@ export declare function renderWithProviders(ui: React.ReactElement, { store, ...
|
|
|
59
53
|
queryAllByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[];
|
|
60
54
|
findByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
61
55
|
findAllByTestId: (id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
56
|
+
container: HTMLElement;
|
|
57
|
+
baseElement: HTMLElement;
|
|
58
|
+
debug: (baseElement?: import("react-dom/client").Container | (Document | Element) | Array<import("react-dom/client").Container | (Document | Element)> | undefined, maxLength?: number | undefined, options?: import("pretty-format").OptionsReceived | undefined) => void;
|
|
59
|
+
rerender: (ui: React.ReactNode) => void;
|
|
60
|
+
unmount: () => void;
|
|
61
|
+
asFragment: () => DocumentFragment;
|
|
62
62
|
store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
63
63
|
forms: import("./store").EurekaFormsState;
|
|
64
64
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, never, "api">;
|
|
65
|
-
}, import("redux").
|
|
65
|
+
}, import("redux").AnyAction | import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
66
66
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
67
67
|
forms: import("./store").EurekaFormsState;
|
|
68
68
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, never, "api">;
|
package/dist/Utils/_api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const RootApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<{
|
|
2
2
|
url: string;
|
|
3
|
-
timeout?: import("axios").AxiosRequestConfig[
|
|
4
|
-
method?: import("axios").AxiosRequestConfig[
|
|
5
|
-
body?: import("axios").AxiosRequestConfig[
|
|
6
|
-
params?: import("axios").AxiosRequestConfig[
|
|
3
|
+
timeout?: import("axios").AxiosRequestConfig['timeout'];
|
|
4
|
+
method?: import("axios").AxiosRequestConfig['method'];
|
|
5
|
+
body?: import("axios").AxiosRequestConfig['data'];
|
|
6
|
+
params?: import("axios").AxiosRequestConfig['params'];
|
|
7
7
|
headers?: Record<string, any>;
|
|
8
8
|
}, unknown, unknown>, {}, "api", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
package/dist/Utils/store.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function EurekaFormsReducer(state: EurekaFormsState | undefined,
|
|
|
13
13
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
14
14
|
forms: EurekaFormsState;
|
|
15
15
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, never, "api">;
|
|
16
|
-
}, import("redux").UnknownAction
|
|
16
|
+
}, AnyAction | import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
17
17
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
18
18
|
forms: EurekaFormsState;
|
|
19
19
|
api: import("@reduxjs/toolkit/query").CombinedState<{}, never, "api">;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { QueryActionCreatorResult, QueryDefinition, ResultTypeFrom } from '@redu
|
|
|
5
5
|
export declare const useAppDispatch: () => AppDispatch;
|
|
6
6
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
7
7
|
export declare const selectBreakPoint: (state: RootState) => number;
|
|
8
|
-
export declare const selectWidthStats: (state: RootState) => RootState[
|
|
8
|
+
export declare const selectWidthStats: (state: RootState) => RootState['widthStats'];
|
|
9
9
|
export declare function useApiSubscribe(): <D extends QueryDefinition<any, any, any, any>>(subscription: ThunkAction<QueryActionCreatorResult<D>, any, any, any>) => Promise<ResultTypeFrom<D> | undefined>;
|
package/dist/index.module.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
|
|
2
|
-
|
|
3
|
-
body {
|
|
4
|
-
font-family: 'Nunito';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.eurekaForm {
|
|
8
|
-
min-height: 100vh;
|
|
9
|
-
width: 100%;
|
|
10
|
-
scroll-behavior: smooth;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
}
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
font-family: 'Nunito';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.eurekaForm {
|
|
8
|
+
min-height: 100vh;
|
|
9
|
+
width: 100%;
|
|
10
|
+
scroll-behavior: smooth;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
overflow-x: hidden;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arquimedes.co/eureka-forms",
|
|
3
3
|
"repository": "git://github.com/Arquimede5/Eureka-Forms.git",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.60",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"watch": "
|
|
6
|
+
"watch": "node node_modules/@typescript/native/bin/tsc --noEmit --watch --project tsconfig.app.json",
|
|
7
7
|
"start": "vite",
|
|
8
|
-
"build": "tsc --noEmit -p tsconfig.app.json && vite build",
|
|
9
|
-
"format": "
|
|
10
|
-
"lint": "
|
|
8
|
+
"build": "node node_modules/@typescript/native/bin/tsc --noEmit -p tsconfig.app.json && vite build",
|
|
9
|
+
"format": "oxfmt ./src",
|
|
10
|
+
"lint": "oxlint ./src --deny-warnings --report-unused-disable-directives",
|
|
11
11
|
"preview": "vite preview",
|
|
12
12
|
"test": "vitest",
|
|
13
|
-
"tsc-build": "tsc --p tsconfig.app.json --noEmit false --outDir ./dist --composite false --declaration true --allowImportingTsExtensions false --rootDir ./src",
|
|
13
|
+
"tsc-build": "node node_modules/@typescript/native/bin/tsc --p tsconfig.app.json --noEmit false --outDir ./dist --composite false --declaration true --allowImportingTsExtensions false --rootDir ./src",
|
|
14
14
|
"cypress": "DISPLAY=:0 cypress open",
|
|
15
15
|
"storybook": "storybook dev -p 6006",
|
|
16
|
-
"build-storybook": "storybook build"
|
|
16
|
+
"build-storybook": "storybook build",
|
|
17
|
+
"format:check": "oxfmt --check ./src"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"@reduxjs/toolkit": "2.11.2",
|
|
@@ -32,7 +33,6 @@
|
|
|
32
33
|
"react-redux": "9.2.0",
|
|
33
34
|
"typescript": "6.0.3"
|
|
34
35
|
},
|
|
35
|
-
"eslintConfig": {},
|
|
36
36
|
"browserslist": {
|
|
37
37
|
"production": [
|
|
38
38
|
">0.2%",
|
|
@@ -46,9 +46,6 @@
|
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@eslint/compat": "1.4.0",
|
|
50
|
-
"@eslint/eslintrc": "3.3.3",
|
|
51
|
-
"@eslint/js": "9.39.1",
|
|
52
49
|
"@faker-js/faker": "10.1.0",
|
|
53
50
|
"@mui/material": "^9.2.0",
|
|
54
51
|
"@mui/x-data-grid-pro": "^9.10.1",
|
|
@@ -67,24 +64,20 @@
|
|
|
67
64
|
"@types/react-dom": "19.2.3",
|
|
68
65
|
"@types/react-draft-wysiwyg": "1.13.9",
|
|
69
66
|
"@types/react-google-recaptcha": "2.1.9",
|
|
70
|
-
"@typescript
|
|
71
|
-
"@
|
|
72
|
-
"@typescript/native-preview": "^7.0.0-dev.20260515.1",
|
|
73
|
-
"@vitejs/plugin-react": "^5.1.1",
|
|
74
|
-
"babel-plugin-react-compiler": "^1.0.0",
|
|
67
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
68
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
75
69
|
"css-loader": "7.1.2",
|
|
76
70
|
"cypress": "15.7.1",
|
|
77
71
|
"dotenv-webpack": "8.1.1",
|
|
78
|
-
"eslint": "9.39.1",
|
|
79
|
-
"eslint-config-prettier": "10.1.8",
|
|
80
|
-
"eslint-plugin-react": "7.37.5",
|
|
81
|
-
"eslint-plugin-react-hooks": "7.0.1",
|
|
82
72
|
"eslint-plugin-react-refresh": "0.4.24",
|
|
83
73
|
"eslint-plugin-storybook": "10.4.0",
|
|
84
74
|
"globals": "17.6.0",
|
|
85
75
|
"identity-obj-proxy": "3.0.0",
|
|
86
76
|
"jsdom": "27.2.0",
|
|
87
|
-
"
|
|
77
|
+
"oxc-transform-react": "^0.145.0",
|
|
78
|
+
"oxfmt": "^0.67.0",
|
|
79
|
+
"oxlint": "^1.82.0",
|
|
80
|
+
"oxlint-tsgolint": "^7.0.2001",
|
|
88
81
|
"react": "19.2.6",
|
|
89
82
|
"react-dom": "19.2.6",
|
|
90
83
|
"react-refresh": "0.18.0",
|