@inseefr/lunatic 3.7.3 → 3.7.5-rc.0
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/components/Loop/Loop.d.ts +1 -0
- package/components/Loop/Loop.js +2 -2
- package/components/Loop/Loop.js.map +1 -1
- package/components/RosterForLoop/RosterForLoop.js +3 -1
- package/components/RosterForLoop/RosterForLoop.js.map +1 -1
- package/components/RosterForLoop/RosterForLoop.spec.js +12 -0
- package/components/RosterForLoop/RosterForLoop.spec.js.map +1 -1
- package/components/shared/Missing/Missing.js +3 -3
- package/components/shared/Missing/Missing.js.map +1 -1
- package/esm/components/Loop/Loop.d.ts +1 -0
- package/esm/components/Loop/Loop.js +2 -2
- package/esm/components/Loop/Loop.js.map +1 -1
- package/esm/components/RosterForLoop/RosterForLoop.js +3 -1
- package/esm/components/RosterForLoop/RosterForLoop.js.map +1 -1
- package/esm/components/RosterForLoop/RosterForLoop.spec.js +12 -0
- package/esm/components/RosterForLoop/RosterForLoop.spec.js.map +1 -1
- package/esm/components/shared/Missing/Missing.js +3 -3
- package/esm/components/shared/Missing/Missing.js.map +1 -1
- package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +3 -0
- package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +16 -0
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/esm/use-lunatic/lunatic-context.d.ts +25 -23
- package/esm/use-lunatic/lunatic-context.js +11 -4
- package/esm/use-lunatic/lunatic-context.js.map +1 -1
- package/esm/use-lunatic/type.d.ts +56 -11
- package/esm/use-lunatic/use-lunatic.js +5 -1
- package/esm/use-lunatic/use-lunatic.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Loop/Loop.tsx +6 -1
- package/src/components/RosterForLoop/RosterForLoop.spec.tsx +28 -0
- package/src/components/RosterForLoop/RosterForLoop.tsx +3 -0
- package/src/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +114 -0
- package/src/components/shared/Missing/Missing.tsx +3 -3
- package/src/stories/utils/Orchestrator.tsx +8 -1
- package/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.ts +2 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +21 -0
- package/src/use-lunatic/lunatic-context.tsx +26 -14
- package/src/use-lunatic/type.ts +59 -12
- package/src/use-lunatic/use-lunatic.test.ts +4 -1
- package/src/use-lunatic/use-lunatic.ts +5 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +3 -0
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +16 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/use-lunatic/lunatic-context.d.ts +25 -23
- package/use-lunatic/lunatic-context.js +16 -9
- package/use-lunatic/lunatic-context.js.map +1 -1
- package/use-lunatic/type.d.ts +56 -11
- package/use-lunatic/use-lunatic.js +5 -1
- package/use-lunatic/use-lunatic.js.map +1 -1
|
@@ -67,7 +67,10 @@ const defaultOptions = {
|
|
|
67
67
|
refusedButton: DEFAULT_REFUSED,
|
|
68
68
|
trackChanges: false,
|
|
69
69
|
logger: ConsoleLogger,
|
|
70
|
-
componentsOptions: {
|
|
70
|
+
componentsOptions: {
|
|
71
|
+
detailAlwaysDisplayed: false,
|
|
72
|
+
disableRosterForLoopDeleteRowButton: false,
|
|
73
|
+
},
|
|
71
74
|
} satisfies LunaticOptions;
|
|
72
75
|
|
|
73
76
|
/** The first library entrypoint is the `useLunatic` hook. */
|
|
@@ -143,6 +146,7 @@ export function useLunatic(
|
|
|
143
146
|
dontKnowButton,
|
|
144
147
|
refusedButton,
|
|
145
148
|
componentsOptions.detailAlwaysDisplayed,
|
|
149
|
+
componentsOptions.disableRosterForLoopDeleteRowButton,
|
|
146
150
|
]
|
|
147
151
|
);
|
|
148
152
|
|