@inseefr/lunatic 2.4.5-mvp-eap → 2.4.6-allDecla
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/lib/components/commons/components/combo-box/combo-box-content.js +5 -2
- package/lib/components/commons/components/combo-box/combo-box.js +16 -16
- package/lib/components/commons/components/combo-box/combo-box.scss +1 -0
- package/lib/components/commons/components/combo-box/panel/panel.js +4 -2
- package/lib/components/commons/components/combo-box/state-management/reduce-on-init.js +1 -4
- package/lib/components/commons/components/dragger/dragger.scss +7 -7
- package/lib/components/commons/components/is-network/use-online-status.spec.js +0 -4
- package/lib/components/commons/components/lunatic-component-without-label.js +4 -11
- package/lib/components/commons/components/md-label/md-label.js +2 -1
- package/lib/components/commons/components/orchestrated-component.js +3 -4
- package/lib/components/commons/create-row-orchestrator.js +2 -2
- package/lib/components/component-set/html/component-set-components.js +6 -2
- package/lib/components/component-set/lunatic-component-set.js +3 -1
- package/lib/components/declarations/declarations.spec.js +0 -1
- package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +1 -1
- package/lib/components/dropdown/html/dropdown-simple/simple-option-renderer.js +5 -7
- package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +1 -1
- package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +1 -1
- package/lib/components/dropdown/html/dropdown.scss +0 -3
- package/lib/components/dropdown/lunatic-dropdown.js +0 -1
- package/lib/components/index.js +14 -0
- package/lib/components/input-number/html/input-number.js +1 -2
- package/lib/components/input-number/html/input-number.scss +1 -1
- package/lib/components/input-number/lunatic-input-number.js +0 -2
- package/lib/components/loop/loop.js +4 -6
- package/lib/components/loop/roster-for-loop/body.js +52 -0
- package/lib/components/loop/roster-for-loop/header.js +34 -0
- package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +0 -1
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +33 -45
- package/lib/components/loop/roster-for-loop/roster-table.js +17 -22
- package/lib/components/loop/roster-for-loop/roster.scss +34 -30
- package/lib/components/loop/roster-for-loop/row.js +31 -84
- package/lib/components/modal-controls/modal-controls.spec.js +0 -14
- package/lib/components/pairwise-links/pairwise-links.js +3 -2
- package/lib/components/pairwise-links/row.js +0 -1
- package/lib/components/questions/question-context.js +21 -7
- package/lib/components/questions/question-context.scss +1 -0
- package/lib/components/questions/question-information.js +19 -5
- package/lib/components/questions/question-information.scss +1 -0
- package/lib/components/roundabout/components/roundabout.scss +0 -3
- package/lib/components/sequence/html/sequence.js +13 -6
- package/lib/components/sequence/html/sequence.scss +13 -0
- package/lib/components/sequence/lunatic-sequence.js +1 -5
- package/lib/components/sequence/sequence.spec.js +0 -3
- package/lib/components/suggester/html/default-style.scss +1 -6
- package/lib/components/suggester/html/suggester.js +12 -31
- package/lib/components/suggester/idb-suggester/check-store.js +2 -1
- package/lib/components/suggester/idb-suggester/idb-suggester.js +7 -10
- package/lib/components/suggester/lunatic-suggester.js +4 -31
- package/lib/components/suggester-loader-widget/loader-row.js +2 -1
- package/lib/components/switch/html/switch.scss +0 -2
- package/lib/components/switch/lunatic-switch.js +1 -1
- package/lib/src/components/commons/components/combo-box/combo-box.d.ts +4 -4
- package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/state-management/actions.d.ts +4 -4
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +1 -1
- package/lib/src/components/commons/components/orchestrated-component.d.ts +3 -3
- package/lib/src/components/commons/create-row-orchestrator.d.ts +4 -5
- package/lib/src/components/component-set/html/component-set-components.d.ts +3 -2
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown.d.ts +1 -2
- package/lib/src/components/index.d.ts +2 -0
- package/lib/src/components/input-number/html/input-number.d.ts +0 -1
- package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +3 -11
- package/lib/src/components/loop/block-for-loop/block-for-loop.d.ts +1 -5
- package/lib/src/components/loop/commons/handle-row-button.d.ts +1 -2
- package/lib/src/components/loop/roster-for-loop/body.d.ts +12 -0
- package/lib/src/components/loop/roster-for-loop/header.d.ts +9 -0
- package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +3 -11
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +4 -8
- package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +3 -3
- package/lib/src/components/loop/roster-for-loop/row.d.ts +2 -3
- package/lib/src/components/questions/question-context.d.ts +1 -2
- package/lib/src/components/questions/question-information.d.ts +1 -2
- package/lib/src/components/sequence/html/sequence.d.ts +1 -1
- package/lib/src/components/sequence/lunatic-sequence.d.ts +1 -1
- package/lib/src/components/suggester/html/suggester.d.ts +4 -6
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +3 -4
- package/lib/src/components/suggester/idb-suggester/suggester-notification.d.ts +1 -3
- package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -1
- package/lib/src/components/type.d.ts +7 -28
- package/lib/src/hooks/use-ref-sync.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +16 -61
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +0 -36
- package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/commons/resize-array-variable.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +1 -106
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +1 -1
- package/lib/src/use-lunatic/type-source.d.ts +1 -11
- package/lib/src/use-lunatic/type.d.ts +1 -1
- package/lib/src/utils/logger.d.ts +6 -0
- package/lib/stories/component-set/data2.json +7 -0
- package/lib/stories/component-set/source2.json +31 -31
- package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +0 -1
- package/lib/stories/input/input.stories.js +9 -1
- package/lib/stories/input/source-with-question.json +74 -0
- package/lib/stories/input-number/input-number.stories.js +1 -8
- package/lib/stories/loop/block-for-loop.stories.js +8 -1
- package/lib/stories/loop/roster-for-loop.stories.js +1 -8
- package/lib/stories/loop/source-with-header.json +3 -15
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +2 -1
- package/lib/stories/sequence/afterInSeq.json +293 -0
- package/lib/stories/sequence/sequence.stories.js +12 -8
- package/lib/stories/sequence/source-declarations.json +9 -0
- package/lib/stories/suggester/suggester-workers.stories.js +7 -6
- package/lib/stories/suggester/suggester.stories.js +5 -18
- package/lib/stories/utils/orchestrator.js +4 -3
- package/lib/use-lunatic/commons/calculated-variables.js +1 -1
- package/lib/use-lunatic/commons/compile-controls.js +1 -1
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +1 -4
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +1 -1
- package/lib/use-lunatic/commons/get-component-value/get-component-value.js +0 -8
- package/lib/use-lunatic/commons/load-suggesters.js +46 -46
- package/lib/use-lunatic/initial-state.js +0 -1
- package/lib/use-lunatic/reducer/reducer.js +0 -1
- package/lib/utils/logger.js +44 -0
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +2 -1
- package/lib/utils/suggester-workers/create-worker-ts.js +2 -1
- package/lib/utils/suggester-workers/create-worker.js +2 -1
- package/package.json +1 -1
- package/lib/components/questions/type.js +0 -5
- package/lib/hooks/use-did-change.js +0 -19
- package/lib/src/components/questions/type.d.ts +0 -4
- package/lib/src/hooks/use-did-change.d.ts +0 -4
- package/lib/stories/input-number/source-dynamic.json +0 -41
- package/lib/stories/questionnaires/EAP/data-eap.json +0 -46
- package/lib/stories/questionnaires/EAP/eap.stories.js +0 -71
- package/lib/stories/questionnaires/EAP/source-eap.json +0 -433
- package/lib/stories/sequence/source-questions.json +0 -19
- package/lib/stories/suggester/multipleResponses.json +0 -100
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default:
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.ComponentType<import("../../type").LunaticBaseProps<unknown> & {
|
|
3
3
|
lines: {
|
|
4
4
|
min: number;
|
|
5
5
|
max: number;
|
|
@@ -12,13 +12,9 @@ declare const _default: import("react").ComponentType<import("../../type").Lunat
|
|
|
12
12
|
logging?: import("../../../use-lunatic/commons/execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
13
13
|
bindingDependencies?: string[] | undefined;
|
|
14
14
|
} | undefined) => T;
|
|
15
|
-
getSuggesterStatus: (name: string) => {
|
|
16
|
-
status: import("../../../use-lunatic/use-suggesters").SuggesterStatus;
|
|
17
|
-
timestamp: number;
|
|
18
|
-
};
|
|
19
15
|
value: Record<string, unknown[]>;
|
|
20
|
-
|
|
21
|
-
label:
|
|
16
|
+
headers?: {
|
|
17
|
+
label: React.ReactNode;
|
|
22
18
|
}[] | undefined;
|
|
23
19
|
paginatedLoop?: boolean | undefined;
|
|
24
20
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LunaticComponentProps } from '../../type';
|
|
2
1
|
import './roster.scss';
|
|
2
|
+
import { LunaticComponentProps } from '../../type';
|
|
3
3
|
type Props = {
|
|
4
4
|
nbRows: number;
|
|
5
5
|
handleChange: (response: {
|
|
@@ -8,6 +8,6 @@ type Props = {
|
|
|
8
8
|
index: number;
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
}) => void;
|
|
11
|
-
} & Pick<LunaticComponentProps<'RosterForLoop'>, 'id' | 'components' | 'executeExpression' | '
|
|
12
|
-
declare function RosterTable({ components, nbRows, executeExpression,
|
|
11
|
+
} & Pick<LunaticComponentProps<'RosterForLoop'>, 'id' | 'components' | 'executeExpression' | 'headers' | 'value' | 'management' | 'missing' | 'shortcut' | 'errors'>;
|
|
12
|
+
declare function RosterTable({ components, nbRows, executeExpression, id, headers, value: valueMap, shortcut, missing, management, handleChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default RosterTable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LunaticComponentDefinition, LunaticState } from '../../../use-lunatic/type';
|
|
2
1
|
import { LunaticBaseProps } from '../../type';
|
|
2
|
+
import { LunaticComponentDefinition } from '../../../use-lunatic/type';
|
|
3
3
|
type Props = {
|
|
4
4
|
id: string;
|
|
5
5
|
valueMap?: Record<string, unknown>;
|
|
@@ -14,11 +14,10 @@ type Props = {
|
|
|
14
14
|
missing?: LunaticBaseProps['missing'];
|
|
15
15
|
management?: LunaticBaseProps['management'];
|
|
16
16
|
executeExpression: LunaticBaseProps['executeExpression'];
|
|
17
|
-
getSuggesterStatus: LunaticState['getSuggesterStatus'];
|
|
18
17
|
errors?: LunaticBaseProps['errors'];
|
|
19
18
|
components: LunaticComponentDefinition[];
|
|
20
19
|
preferences?: LunaticBaseProps['preferences'];
|
|
21
20
|
shortcut?: LunaticBaseProps['shortcut'];
|
|
22
21
|
};
|
|
23
|
-
declare function Row({ id, components, valueMap, rowIndex, handleChange, features, missing, shortcut, management, preferences, executeExpression,
|
|
22
|
+
declare function Row({ id, components, valueMap, rowIndex, handleChange, features, missing, shortcut, management, preferences, executeExpression, errors, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
export default Row;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageType } from './type';
|
|
3
2
|
import './question-context.scss';
|
|
4
|
-
declare const _default: import("react").ComponentType<
|
|
3
|
+
declare const _default: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<unknown>, "label" | "description">>;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageType } from './type';
|
|
3
2
|
import './question-information.scss';
|
|
4
|
-
declare const _default: import("react").ComponentType<
|
|
3
|
+
declare const _default: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<unknown>, "label" | "description">>;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './sequence.scss';
|
|
3
3
|
import { LunaticBaseProps } from '../../type';
|
|
4
|
-
declare const _default: import("react").ComponentType<Pick<LunaticBaseProps<string>, "label" | "style" | "id">>;
|
|
4
|
+
declare const _default: import("react").ComponentType<Pick<LunaticBaseProps<string>, "label" | "style" | "id" | "description">>;
|
|
5
5
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LunaticComponentProps } from '../type';
|
|
2
|
-
declare function LunaticSequence({ declarations, label, id, style
|
|
2
|
+
declare function LunaticSequence({ declarations, label, id, style }: LunaticComponentProps<'Sequence'>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LunaticSequence;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './default-style.scss';
|
|
2
3
|
import { LunaticError } from '../../../use-lunatic/type';
|
|
3
4
|
import { ComboBoxOption } from '../../commons/components/combo-box/combo-box.type';
|
|
4
5
|
import { LunaticComponentProps } from '../../type';
|
|
5
|
-
import './default-style.scss';
|
|
6
6
|
type Props = {
|
|
7
7
|
className?: string;
|
|
8
8
|
placeholder?: string;
|
|
9
|
-
onSelect?: (s:
|
|
9
|
+
onSelect?: (s: string | null) => void;
|
|
10
10
|
value: string | null;
|
|
11
11
|
labelRenderer: LunaticComponentProps<'Suggester'>['labelRenderer'];
|
|
12
12
|
optionRenderer: LunaticComponentProps<'Suggester'>['optionRenderer'];
|
|
@@ -18,8 +18,6 @@ type Props = {
|
|
|
18
18
|
label?: ReactNode;
|
|
19
19
|
description?: ReactNode;
|
|
20
20
|
errors?: Record<string, LunaticError[]>;
|
|
21
|
-
responses?: any;
|
|
22
|
-
response?: any;
|
|
23
21
|
};
|
|
24
|
-
declare const _default:
|
|
22
|
+
declare const _default: React.ComponentType<Props>;
|
|
25
23
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ComboBoxOption } from '../../commons/components/combo-box/combo-box.type';
|
|
2
1
|
import { LunaticComponentProps } from '../../type';
|
|
3
|
-
type Props = Pick<LunaticComponentProps<'Suggester'>, 'storeName' | 'idbVersion' | 'id' | 'className' | 'optionRenderer' | 'labelRenderer' | 'disabled' | 'value' | 'label' | 'description' | 'getSuggesterStatus' | 'errors'
|
|
4
|
-
onSelect: (v:
|
|
2
|
+
type Props = Pick<LunaticComponentProps<'Suggester'>, 'storeName' | 'idbVersion' | 'id' | 'className' | 'optionRenderer' | 'labelRenderer' | 'disabled' | 'value' | 'label' | 'description' | 'getSuggesterStatus' | 'errors'> & {
|
|
3
|
+
onSelect: (v: string | null) => void;
|
|
5
4
|
};
|
|
6
|
-
export declare function IDBSuggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, onSelect, disabled, value, label, description, getSuggesterStatus, errors,
|
|
5
|
+
export declare function IDBSuggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, onSelect, disabled, value, label, description, getSuggesterStatus, errors, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
|
3
2
|
import { SuggesterStatus } from '../../../use-lunatic/use-suggesters';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
3
|
type Props = PropsWithChildren<{
|
|
6
4
|
status: SuggesterStatus;
|
|
7
5
|
storeName: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LunaticComponentProps } from '../type';
|
|
2
|
-
declare function LunaticSuggester({ id, storeName, optionRenderer, labelRenderer, idbVersion, focused, value, handleChange, disabled, errors, label, description, preferences, declarations, missing, missingResponse, management, response,
|
|
2
|
+
declare function LunaticSuggester({ id, storeName, optionRenderer, labelRenderer, idbVersion, focused, value, handleChange, disabled, errors, label, description, preferences, declarations, missing, missingResponse, management, response, getSuggesterStatus, }: LunaticComponentProps<'Suggester'>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LunaticSuggester;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CSSProperties, FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import useLunatic from '../use-lunatic';
|
|
3
1
|
import { LunaticComponentDefinition, LunaticError, LunaticExpression, LunaticState } from '../use-lunatic/type';
|
|
2
|
+
import { CSSProperties, FunctionComponent, ReactNode } from 'react';
|
|
4
3
|
import { SuggesterStatus } from '../use-lunatic/use-suggesters';
|
|
4
|
+
import useLunatic from '../use-lunatic';
|
|
5
5
|
export type LunaticBaseProps<ValueType = unknown> = {
|
|
6
6
|
id: string;
|
|
7
7
|
handleChange: (response: {
|
|
@@ -36,12 +36,6 @@ export type LunaticBaseProps<ValueType = unknown> = {
|
|
|
36
36
|
executeExpression: LunaticState['executeExpression'];
|
|
37
37
|
features?: string[];
|
|
38
38
|
componentType?: string;
|
|
39
|
-
questionContext?: ReactNode;
|
|
40
|
-
questionInformation?: ReactNode;
|
|
41
|
-
getSuggesterStatus?: (name: string) => {
|
|
42
|
-
status: SuggesterStatus;
|
|
43
|
-
timestamp: number;
|
|
44
|
-
};
|
|
45
39
|
};
|
|
46
40
|
export type SuggesterOption = {
|
|
47
41
|
children?: string[];
|
|
@@ -62,7 +56,6 @@ type ComponentPropsByType = {
|
|
|
62
56
|
max: number;
|
|
63
57
|
decimals: number;
|
|
64
58
|
unit?: string;
|
|
65
|
-
dynamicUnit?: ReactNode;
|
|
66
59
|
response: {
|
|
67
60
|
name: string;
|
|
68
61
|
};
|
|
@@ -74,8 +67,9 @@ type ComponentPropsByType = {
|
|
|
74
67
|
name: string;
|
|
75
68
|
};
|
|
76
69
|
};
|
|
77
|
-
Sequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label' | 'style'
|
|
70
|
+
Sequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label' | 'style'>;
|
|
78
71
|
Subsequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label'>;
|
|
72
|
+
Question: Pick<LunaticBaseProps<unknown>, 'label' | 'description'>;
|
|
79
73
|
ComponentSet: LunaticBaseProps<unknown> & {
|
|
80
74
|
components: LunaticComponentDefinition[];
|
|
81
75
|
value: Record<string, unknown>;
|
|
@@ -88,12 +82,8 @@ type ComponentPropsByType = {
|
|
|
88
82
|
iterations?: number;
|
|
89
83
|
components: LunaticComponentDefinition[];
|
|
90
84
|
executeExpression: LunaticState['executeExpression'];
|
|
91
|
-
getSuggesterStatus: (name: string) => {
|
|
92
|
-
status: SuggesterStatus;
|
|
93
|
-
timestamp: number;
|
|
94
|
-
};
|
|
95
85
|
value: Record<string, unknown[]>;
|
|
96
|
-
|
|
86
|
+
headers?: Array<{
|
|
97
87
|
label: ReactNode;
|
|
98
88
|
}>;
|
|
99
89
|
paginatedLoop?: boolean;
|
|
@@ -106,12 +96,8 @@ type ComponentPropsByType = {
|
|
|
106
96
|
iterations?: number;
|
|
107
97
|
components: LunaticComponentDefinition[];
|
|
108
98
|
executeExpression: LunaticState['executeExpression'];
|
|
109
|
-
getSuggesterStatus: (name: string) => {
|
|
110
|
-
status: SuggesterStatus;
|
|
111
|
-
timestamp: number;
|
|
112
|
-
};
|
|
113
99
|
value: Record<string, unknown[]>;
|
|
114
|
-
|
|
100
|
+
headers?: Array<{
|
|
115
101
|
label: ReactNode;
|
|
116
102
|
}>;
|
|
117
103
|
paginatedLoop?: boolean;
|
|
@@ -211,7 +197,6 @@ type ComponentPropsByType = {
|
|
|
211
197
|
name: string;
|
|
212
198
|
};
|
|
213
199
|
writable?: boolean;
|
|
214
|
-
onSelect?: any;
|
|
215
200
|
};
|
|
216
201
|
Textarea: LunaticBaseProps<string> & {
|
|
217
202
|
cols?: number;
|
|
@@ -250,15 +235,9 @@ type ComponentPropsByType = {
|
|
|
250
235
|
}>;
|
|
251
236
|
idbVersion?: string;
|
|
252
237
|
focused: boolean;
|
|
253
|
-
response
|
|
238
|
+
response: {
|
|
254
239
|
name: string;
|
|
255
240
|
};
|
|
256
|
-
responses?: Array<{
|
|
257
|
-
id: string;
|
|
258
|
-
response: {
|
|
259
|
-
name: string;
|
|
260
|
-
};
|
|
261
|
-
}>;
|
|
262
241
|
};
|
|
263
242
|
};
|
|
264
243
|
export type LunaticComponentType = keyof ComponentPropsByType;
|
|
@@ -27,7 +27,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
27
27
|
} | undefined;
|
|
28
28
|
}) => void;
|
|
29
29
|
shortcut: boolean | undefined;
|
|
30
|
-
getSuggesterStatus: (name: string
|
|
30
|
+
getSuggesterStatus: (name: string) => {
|
|
31
31
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
32
32
|
timestamp: number;
|
|
33
33
|
};
|
|
@@ -64,7 +64,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
64
64
|
} | undefined;
|
|
65
65
|
}) => void;
|
|
66
66
|
shortcut: boolean | undefined;
|
|
67
|
-
getSuggesterStatus: (name: string
|
|
67
|
+
getSuggesterStatus: (name: string) => {
|
|
68
68
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
69
69
|
timestamp: number;
|
|
70
70
|
};
|
|
@@ -102,7 +102,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
102
102
|
} | undefined;
|
|
103
103
|
}) => void;
|
|
104
104
|
shortcut: boolean | undefined;
|
|
105
|
-
getSuggesterStatus: (name: string
|
|
105
|
+
getSuggesterStatus: (name: string) => {
|
|
106
106
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
107
107
|
timestamp: number;
|
|
108
108
|
};
|
|
@@ -139,7 +139,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
139
139
|
format?: string | undefined;
|
|
140
140
|
dateFormat?: string | undefined;
|
|
141
141
|
unit?: string | undefined;
|
|
142
|
-
dynamicUnit?: import("../../type-source").LabelType | undefined;
|
|
143
142
|
options: {
|
|
144
143
|
value: string;
|
|
145
144
|
label: import("../../type-source").LabelType;
|
|
@@ -177,7 +176,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
177
176
|
} | undefined;
|
|
178
177
|
}) => void;
|
|
179
178
|
shortcut: boolean | undefined;
|
|
180
|
-
getSuggesterStatus: (name: string
|
|
179
|
+
getSuggesterStatus: (name: string) => {
|
|
181
180
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
182
181
|
timestamp: number;
|
|
183
182
|
};
|
|
@@ -224,7 +223,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
224
223
|
} | undefined;
|
|
225
224
|
}) => void;
|
|
226
225
|
shortcut: boolean | undefined;
|
|
227
|
-
getSuggesterStatus: (name: string
|
|
226
|
+
getSuggesterStatus: (name: string) => {
|
|
228
227
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
229
228
|
timestamp: number;
|
|
230
229
|
};
|
|
@@ -260,7 +259,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
260
259
|
format?: string | undefined;
|
|
261
260
|
dateFormat?: string | undefined;
|
|
262
261
|
unit?: string | undefined;
|
|
263
|
-
dynamicUnit?: import("../../type-source").LabelType | undefined;
|
|
264
262
|
options: {
|
|
265
263
|
value: string;
|
|
266
264
|
label: import("../../type-source").LabelType;
|
|
@@ -298,7 +296,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
298
296
|
} | undefined;
|
|
299
297
|
}) => void;
|
|
300
298
|
shortcut: boolean | undefined;
|
|
301
|
-
getSuggesterStatus: (name: string
|
|
299
|
+
getSuggesterStatus: (name: string) => {
|
|
302
300
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
303
301
|
timestamp: number;
|
|
304
302
|
};
|
|
@@ -315,7 +313,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
315
313
|
page: string;
|
|
316
314
|
componentType: "InputNumber";
|
|
317
315
|
unit: string;
|
|
318
|
-
dynamicUnit?: import("../../type-source").LabelType | undefined;
|
|
319
316
|
response: import("../../type-source").ResponseType;
|
|
320
317
|
min?: number | undefined;
|
|
321
318
|
max?: number | undefined;
|
|
@@ -341,7 +338,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
341
338
|
} | undefined;
|
|
342
339
|
}) => void;
|
|
343
340
|
shortcut: boolean | undefined;
|
|
344
|
-
getSuggesterStatus: (name: string
|
|
341
|
+
getSuggesterStatus: (name: string) => {
|
|
345
342
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
346
343
|
timestamp: number;
|
|
347
344
|
};
|
|
@@ -382,7 +379,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
382
379
|
} | undefined;
|
|
383
380
|
}) => void;
|
|
384
381
|
shortcut: boolean | undefined;
|
|
385
|
-
getSuggesterStatus: (name: string
|
|
382
|
+
getSuggesterStatus: (name: string) => {
|
|
386
383
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
387
384
|
timestamp: number;
|
|
388
385
|
};
|
|
@@ -424,7 +421,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
424
421
|
} | undefined;
|
|
425
422
|
}) => void;
|
|
426
423
|
shortcut: boolean | undefined;
|
|
427
|
-
getSuggesterStatus: (name: string
|
|
424
|
+
getSuggesterStatus: (name: string) => {
|
|
428
425
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
429
426
|
timestamp: number;
|
|
430
427
|
};
|
|
@@ -462,7 +459,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
462
459
|
} | undefined;
|
|
463
460
|
}) => void;
|
|
464
461
|
shortcut: boolean | undefined;
|
|
465
|
-
getSuggesterStatus: (name: string
|
|
462
|
+
getSuggesterStatus: (name: string) => {
|
|
466
463
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
467
464
|
timestamp: number;
|
|
468
465
|
};
|
|
@@ -504,7 +501,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
504
501
|
} | undefined;
|
|
505
502
|
}) => void;
|
|
506
503
|
shortcut: boolean | undefined;
|
|
507
|
-
getSuggesterStatus: (name: string
|
|
504
|
+
getSuggesterStatus: (name: string) => {
|
|
508
505
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
509
506
|
timestamp: number;
|
|
510
507
|
};
|
|
@@ -542,7 +539,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
542
539
|
} | undefined;
|
|
543
540
|
}) => void;
|
|
544
541
|
shortcut: boolean | undefined;
|
|
545
|
-
getSuggesterStatus: (name: string
|
|
542
|
+
getSuggesterStatus: (name: string) => {
|
|
546
543
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
547
544
|
timestamp: number;
|
|
548
545
|
};
|
|
@@ -584,49 +581,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
584
581
|
} | undefined;
|
|
585
582
|
}) => void;
|
|
586
583
|
shortcut: boolean | undefined;
|
|
587
|
-
getSuggesterStatus: (name: string
|
|
588
|
-
status: import("../../use-suggesters").SuggesterStatus;
|
|
589
|
-
timestamp: number;
|
|
590
|
-
};
|
|
591
|
-
label: import("../../type-source").LabelType;
|
|
592
|
-
declarations: import("../../type-source").DeclarationType[];
|
|
593
|
-
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
594
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
595
|
-
id: string;
|
|
596
|
-
storeName: string;
|
|
597
|
-
bindingDependencies: string[];
|
|
598
|
-
hierarchy: import("../../type-source").Hierarchy;
|
|
599
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
600
|
-
mandatory?: boolean | undefined;
|
|
601
|
-
page: string;
|
|
602
|
-
componentType: "Suggester";
|
|
603
|
-
response?: import("../../type-source").ResponseType | undefined;
|
|
604
|
-
responses?: {
|
|
605
|
-
id: string;
|
|
606
|
-
response: import("../../type-source").ResponseType;
|
|
607
|
-
}[] | undefined;
|
|
608
|
-
} | {
|
|
609
|
-
handleChange: (response: {
|
|
610
|
-
name: string;
|
|
611
|
-
}, value: any, args?: Record<string, unknown> | undefined) => void;
|
|
612
|
-
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
613
|
-
iteration?: number | undefined;
|
|
614
|
-
linksIterations?: number[] | undefined;
|
|
615
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
616
|
-
bindingDependencies?: string[] | undefined;
|
|
617
|
-
} | undefined) => T;
|
|
618
|
-
preferences: ["COLLECTED"];
|
|
619
|
-
goToPage: (page: {
|
|
620
|
-
page: string;
|
|
621
|
-
iteration?: number | undefined;
|
|
622
|
-
nbIterations?: number | undefined;
|
|
623
|
-
subPage?: number | undefined;
|
|
624
|
-
roundabout?: {
|
|
625
|
-
page: string;
|
|
626
|
-
} | undefined;
|
|
627
|
-
}) => void;
|
|
628
|
-
shortcut: boolean | undefined;
|
|
629
|
-
getSuggesterStatus: (name: string | undefined) => {
|
|
584
|
+
getSuggesterStatus: (name: string) => {
|
|
630
585
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
631
586
|
timestamp: number;
|
|
632
587
|
};
|
|
@@ -668,7 +623,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
668
623
|
} | undefined;
|
|
669
624
|
}) => void;
|
|
670
625
|
shortcut: boolean | undefined;
|
|
671
|
-
getSuggesterStatus: (name: string
|
|
626
|
+
getSuggesterStatus: (name: string) => {
|
|
672
627
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
673
628
|
timestamp: number;
|
|
674
629
|
};
|
|
@@ -709,7 +664,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
709
664
|
} | undefined;
|
|
710
665
|
}) => void;
|
|
711
666
|
shortcut: boolean | undefined;
|
|
712
|
-
getSuggesterStatus: (name: string
|
|
667
|
+
getSuggesterStatus: (name: string) => {
|
|
713
668
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
714
669
|
timestamp: number;
|
|
715
670
|
};
|
|
@@ -746,7 +701,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
746
701
|
} | undefined;
|
|
747
702
|
}) => void;
|
|
748
703
|
shortcut: boolean | undefined;
|
|
749
|
-
getSuggesterStatus: (name: string
|
|
704
|
+
getSuggesterStatus: (name: string) => {
|
|
750
705
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
751
706
|
timestamp: number;
|
|
752
707
|
};
|
|
@@ -101,7 +101,6 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
|
|
|
101
101
|
format?: string | undefined;
|
|
102
102
|
dateFormat?: string | undefined;
|
|
103
103
|
unit?: string | undefined;
|
|
104
|
-
dynamicUnit?: import("../../type-source").LabelType | undefined;
|
|
105
104
|
options: {
|
|
106
105
|
value: string;
|
|
107
106
|
label: import("../../type-source").LabelType;
|
|
@@ -200,7 +199,6 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
|
|
|
200
199
|
format?: string | undefined;
|
|
201
200
|
dateFormat?: string | undefined;
|
|
202
201
|
unit?: string | undefined;
|
|
203
|
-
dynamicUnit?: import("../../type-source").LabelType | undefined;
|
|
204
202
|
options: {
|
|
205
203
|
value: string;
|
|
206
204
|
label: import("../../type-source").LabelType;
|
|
@@ -244,7 +242,6 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
|
|
|
244
242
|
page: string;
|
|
245
243
|
componentType: "InputNumber";
|
|
246
244
|
unit: string;
|
|
247
|
-
dynamicUnit?: import("react").ReactNode;
|
|
248
245
|
response: {
|
|
249
246
|
name: string;
|
|
250
247
|
};
|
|
@@ -436,39 +433,6 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
|
|
|
436
433
|
response: {
|
|
437
434
|
name: string;
|
|
438
435
|
};
|
|
439
|
-
} | {
|
|
440
|
-
label: import("react").ReactNode;
|
|
441
|
-
declarations: import("../../type-source").DeclarationType[];
|
|
442
|
-
conditionFilter: import("react").ReactNode;
|
|
443
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
444
|
-
id: string;
|
|
445
|
-
storeName: string;
|
|
446
|
-
bindingDependencies: string[];
|
|
447
|
-
hierarchy: {
|
|
448
|
-
sequence: {
|
|
449
|
-
label: import("react").ReactNode;
|
|
450
|
-
id: string;
|
|
451
|
-
page: string;
|
|
452
|
-
};
|
|
453
|
-
subSequence?: {
|
|
454
|
-
label: import("react").ReactNode;
|
|
455
|
-
id: string;
|
|
456
|
-
page: string;
|
|
457
|
-
} | undefined;
|
|
458
|
-
};
|
|
459
|
-
missingResponse: {
|
|
460
|
-
name: string;
|
|
461
|
-
};
|
|
462
|
-
mandatory?: boolean | undefined;
|
|
463
|
-
page: string;
|
|
464
|
-
componentType: "Suggester";
|
|
465
|
-
response?: {
|
|
466
|
-
name: string;
|
|
467
|
-
} | undefined;
|
|
468
|
-
responses?: {
|
|
469
|
-
id: string;
|
|
470
|
-
response: import("../../type-source").ResponseType;
|
|
471
|
-
}[] | undefined;
|
|
472
436
|
} | {
|
|
473
437
|
label: import("react").ReactNode;
|
|
474
438
|
declarations: import("../../type-source").DeclarationType[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LunaticComponentDefinition } from '../../type';
|
|
2
2
|
export declare const isLoopComponent: (component: LunaticComponentDefinition) => component is (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRosterForLoopType & {
|
|
3
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "
|
|
3
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "ComponentSet" | "Roundabout";
|
|
4
4
|
} & {
|
|
5
5
|
componentType: 'Loop' | 'RosterForLoop';
|
|
6
6
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentLoopType & {
|
|
7
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "
|
|
7
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "ComponentSet" | "Roundabout";
|
|
8
8
|
} & {
|
|
9
9
|
componentType: 'Loop' | 'RosterForLoop';
|
|
10
10
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cast the variable into an array and adjust the length if necessary
|
|
3
3
|
*/
|
|
4
|
-
declare function resizeArrayVariable<T
|
|
4
|
+
declare function resizeArrayVariable<T = unknown>(array: unknown, length: number, defaultValue?: T): T[];
|
|
5
5
|
export default resizeArrayVariable;
|
|
@@ -101,7 +101,7 @@ export declare function reduceOverviewOnInit(state: LunaticState, action: Action
|
|
|
101
101
|
page: string;
|
|
102
102
|
} | undefined;
|
|
103
103
|
}) => void;
|
|
104
|
-
getSuggesterStatus: (name: string
|
|
104
|
+
getSuggesterStatus: (name: string) => {
|
|
105
105
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
106
106
|
timestamp: number;
|
|
107
107
|
};
|
|
@@ -1,108 +1,3 @@
|
|
|
1
1
|
import { ActionUpdateState } from '../actions';
|
|
2
2
|
import { LunaticState } from '../type';
|
|
3
|
-
export declare function reduceUpdateState(state: LunaticState, action: ActionUpdateState):
|
|
4
|
-
getSuggesterStatus: (name: string) => {
|
|
5
|
-
status: import("../use-suggesters").SuggesterStatus;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
};
|
|
8
|
-
variables: {
|
|
9
|
-
[variableName: string]: import("../type").LunaticStateVariable;
|
|
10
|
-
};
|
|
11
|
-
pages: {
|
|
12
|
-
[key: string]: {
|
|
13
|
-
components: import("../type-source").ComponentType[];
|
|
14
|
-
isLoop: false;
|
|
15
|
-
iterations?: undefined;
|
|
16
|
-
loopDependencies?: undefined;
|
|
17
|
-
subPages?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
components: import("../type-source").ComponentType[];
|
|
20
|
-
isLoop: true;
|
|
21
|
-
iterations: import("../type").ExpressionType;
|
|
22
|
-
loopDependencies: string[];
|
|
23
|
-
subPages: string[];
|
|
24
|
-
};
|
|
25
|
-
[key: number]: {
|
|
26
|
-
components: import("../type-source").ComponentType[];
|
|
27
|
-
isLoop: false;
|
|
28
|
-
iterations?: undefined;
|
|
29
|
-
loopDependencies?: undefined;
|
|
30
|
-
subPages?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
components: import("../type-source").ComponentType[];
|
|
33
|
-
isLoop: true;
|
|
34
|
-
iterations: import("../type").ExpressionType;
|
|
35
|
-
loopDependencies: string[];
|
|
36
|
-
subPages: string[];
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
isInLoop: boolean;
|
|
40
|
-
isFirstPage: boolean;
|
|
41
|
-
isLastPage: boolean;
|
|
42
|
-
features: "VTL"[];
|
|
43
|
-
preferences: ["COLLECTED"];
|
|
44
|
-
savingType: "COLLECTED";
|
|
45
|
-
cleaning: {
|
|
46
|
-
[variableName: string]: {
|
|
47
|
-
[variableName: string]: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
missingBlock: {
|
|
51
|
-
[variable: string]: string[];
|
|
52
|
-
};
|
|
53
|
-
resizing: {
|
|
54
|
-
[variable: string]: {
|
|
55
|
-
size: string;
|
|
56
|
-
variables: string[];
|
|
57
|
-
sizeForLinksVariables?: unknown;
|
|
58
|
-
linksVariables?: string[] | undefined;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
overview: import("../type").LunaticOverviewItem[];
|
|
62
|
-
pager: {
|
|
63
|
-
lastReachedPage?: string | undefined;
|
|
64
|
-
maxPage: string;
|
|
65
|
-
nbSubPages?: number | undefined;
|
|
66
|
-
page: string;
|
|
67
|
-
subPage?: number | undefined;
|
|
68
|
-
iteration?: number | undefined;
|
|
69
|
-
nbIterations?: number | undefined;
|
|
70
|
-
shallowIteration?: number | undefined;
|
|
71
|
-
linksIterations?: number[] | undefined;
|
|
72
|
-
roundabout?: {
|
|
73
|
-
page: string;
|
|
74
|
-
} | undefined;
|
|
75
|
-
};
|
|
76
|
-
waiting: boolean;
|
|
77
|
-
errors?: {
|
|
78
|
-
[page: string]: {
|
|
79
|
-
[id: string]: import("../type").LunaticError[];
|
|
80
|
-
};
|
|
81
|
-
} | undefined;
|
|
82
|
-
currentErrors?: {
|
|
83
|
-
[id: string]: import("../type").LunaticError[];
|
|
84
|
-
} | undefined;
|
|
85
|
-
modalErrors?: Record<string, import("../type").LunaticError[]> | undefined;
|
|
86
|
-
handleChange: (response: {
|
|
87
|
-
name: string;
|
|
88
|
-
}, value: any, args?: Record<string, unknown> | undefined) => void;
|
|
89
|
-
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
90
|
-
iteration?: number | undefined;
|
|
91
|
-
linksIterations?: number[] | undefined;
|
|
92
|
-
logging?: import("../commons/execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
93
|
-
bindingDependencies?: string[] | undefined;
|
|
94
|
-
} | undefined) => T;
|
|
95
|
-
updateBindings: (variableName: string, value: unknown) => unknown;
|
|
96
|
-
activeControls: boolean;
|
|
97
|
-
shortcut?: boolean | undefined;
|
|
98
|
-
management?: boolean | undefined;
|
|
99
|
-
goToPage: (page: {
|
|
100
|
-
page: string;
|
|
101
|
-
iteration?: number | undefined;
|
|
102
|
-
nbIterations?: number | undefined;
|
|
103
|
-
subPage?: number | undefined;
|
|
104
|
-
roundabout?: {
|
|
105
|
-
page: string;
|
|
106
|
-
} | undefined;
|
|
107
|
-
}) => void;
|
|
108
|
-
};
|
|
3
|
+
export declare function reduceUpdateState(state: LunaticState, action: ActionUpdateState): LunaticState;
|