@inseefr/lunatic 2.7.19 → 2.7.20-rc.2

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 (35) hide show
  1. package/lib/components/commons/components/errors/errors.spec.js +6 -7
  2. package/lib/components/declarations/declarations-after-text.js +2 -1
  3. package/lib/components/declarations/declarations-before-text.js +2 -1
  4. package/lib/components/declarations/declarations-detachable.js +2 -1
  5. package/lib/components/index.js +7 -0
  6. package/lib/components/modal-controls/modal-controls.spec.js +8 -9
  7. package/lib/components/question/Question.js +49 -0
  8. package/lib/components/question/index.js +16 -0
  9. package/lib/index.js +8 -2
  10. package/lib/src/components/declarations/declarations-after-text.d.ts +3 -2
  11. package/lib/src/components/declarations/declarations-before-text.d.ts +3 -2
  12. package/lib/src/components/declarations/declarations-detachable.d.ts +3 -2
  13. package/lib/src/components/index.d.ts +1 -0
  14. package/lib/src/components/question/Question.d.ts +7 -0
  15. package/lib/src/components/question/index.d.ts +1 -0
  16. package/lib/src/components/type.d.ts +5 -1
  17. package/lib/src/index.d.ts +1 -0
  18. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +40 -20
  19. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +38 -0
  20. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +24 -18
  21. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +54 -4
  22. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
  23. package/lib/src/use-lunatic/replace-component-sequence.d.ts +5 -1
  24. package/lib/src/use-lunatic/type-source.d.ts +24 -19
  25. package/lib/src/use-lunatic/use-lunatic.d.ts +11 -3
  26. package/lib/stories/behaviour/others/V2_QuestSimple_Boucles.json +4 -1
  27. package/lib/stories/question/question.stories.js +32 -0
  28. package/lib/stories/question/source.json +220 -0
  29. package/lib/use-lunatic/commons/compile-controls.js +4 -5
  30. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +1 -0
  31. package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +10 -5
  32. package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +43 -0
  33. package/lib/use-lunatic/replace-component-sequence.js +6 -3
  34. package/lib/use-lunatic/type-source.js +1 -22
  35. package/package.json +2 -9
@@ -2,25 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.TypeOfControl = exports.Criticality = exports.ControlTypeEnum = void 0;
7
- /**
8
- * Types used for source data (lunatic models and data.json)
9
- */
10
- var Criticality = exports.Criticality = /*#__PURE__*/function (Criticality) {
11
- Criticality["INFO"] = "INFO";
12
- Criticality["WARN"] = "WARN";
13
- Criticality["ERROR"] = "ERROR";
14
- return Criticality;
15
- }({});
16
- var TypeOfControl = exports.TypeOfControl = /*#__PURE__*/function (TypeOfControl) {
17
- TypeOfControl["FORMAT"] = "FORMAT";
18
- TypeOfControl["CONSISTENCY"] = "CONSISTENCY";
19
- return TypeOfControl;
20
- }({});
21
- var ControlTypeEnum = exports.ControlTypeEnum = /*#__PURE__*/function (ControlTypeEnum) {
22
- ControlTypeEnum["roundabout"] = "roundabout";
23
- ControlTypeEnum["row"] = "ROW";
24
- ControlTypeEnum["simple"] = "simple";
25
- return ControlTypeEnum;
26
- }({});
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "2.7.19",
3
+ "version": "2.7.20-rc.2",
4
4
  "workersVersion": "0.3.0",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {
@@ -159,7 +159,7 @@
159
159
  "jsdom-global": "^3.0.2",
160
160
  "postcss": "^8.2.6",
161
161
  "postcss-scss": "^3.0.4",
162
- "prettier": "^2.0.5",
162
+ "prettier": "^3.2.5",
163
163
  "react": "^18.0.0",
164
164
  "react-dom": "^18.0.0",
165
165
  "regenerator-runtime": "^0.13.7",
@@ -180,13 +180,6 @@
180
180
  "publishConfig": {
181
181
  "access": "public"
182
182
  },
183
- "prettier": {
184
- "singleQuote": true,
185
- "semi": true,
186
- "useTabs": true,
187
- "bracketSpacing": true,
188
- "trailingComma": "es5"
189
- },
190
183
  "peerDependencies": {
191
184
  "react": "^18.0.0"
192
185
  },