@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.
Files changed (52) hide show
  1. package/components/Loop/Loop.d.ts +1 -0
  2. package/components/Loop/Loop.js +2 -2
  3. package/components/Loop/Loop.js.map +1 -1
  4. package/components/RosterForLoop/RosterForLoop.js +3 -1
  5. package/components/RosterForLoop/RosterForLoop.js.map +1 -1
  6. package/components/RosterForLoop/RosterForLoop.spec.js +12 -0
  7. package/components/RosterForLoop/RosterForLoop.spec.js.map +1 -1
  8. package/components/shared/Missing/Missing.js +3 -3
  9. package/components/shared/Missing/Missing.js.map +1 -1
  10. package/esm/components/Loop/Loop.d.ts +1 -0
  11. package/esm/components/Loop/Loop.js +2 -2
  12. package/esm/components/Loop/Loop.js.map +1 -1
  13. package/esm/components/RosterForLoop/RosterForLoop.js +3 -1
  14. package/esm/components/RosterForLoop/RosterForLoop.js.map +1 -1
  15. package/esm/components/RosterForLoop/RosterForLoop.spec.js +12 -0
  16. package/esm/components/RosterForLoop/RosterForLoop.spec.js.map +1 -1
  17. package/esm/components/shared/Missing/Missing.js +3 -3
  18. package/esm/components/shared/Missing/Missing.js.map +1 -1
  19. package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +3 -0
  20. package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
  21. package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +16 -0
  22. package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
  23. package/esm/use-lunatic/lunatic-context.d.ts +25 -23
  24. package/esm/use-lunatic/lunatic-context.js +11 -4
  25. package/esm/use-lunatic/lunatic-context.js.map +1 -1
  26. package/esm/use-lunatic/type.d.ts +56 -11
  27. package/esm/use-lunatic/use-lunatic.js +5 -1
  28. package/esm/use-lunatic/use-lunatic.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/components/Loop/Loop.tsx +6 -1
  31. package/src/components/RosterForLoop/RosterForLoop.spec.tsx +28 -0
  32. package/src/components/RosterForLoop/RosterForLoop.tsx +3 -0
  33. package/src/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +114 -0
  34. package/src/components/shared/Missing/Missing.tsx +3 -3
  35. package/src/stories/utils/Orchestrator.tsx +8 -1
  36. package/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.ts +2 -0
  37. package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +21 -0
  38. package/src/use-lunatic/lunatic-context.tsx +26 -14
  39. package/src/use-lunatic/type.ts +59 -12
  40. package/src/use-lunatic/use-lunatic.test.ts +4 -1
  41. package/src/use-lunatic/use-lunatic.ts +5 -1
  42. package/tsconfig.build.tsbuildinfo +1 -1
  43. package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +3 -0
  44. package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
  45. package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +16 -0
  46. package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
  47. package/use-lunatic/lunatic-context.d.ts +25 -23
  48. package/use-lunatic/lunatic-context.js +16 -9
  49. package/use-lunatic/lunatic-context.js.map +1 -1
  50. package/use-lunatic/type.d.ts +56 -11
  51. package/use-lunatic/use-lunatic.js +5 -1
  52. 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: { detailAlwaysDisplayed: false },
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