@inseefr/lunatic 3.4.6 → 3.4.7-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/README.md CHANGED
@@ -10,6 +10,7 @@
10
10
 
11
11
  Lunatic is a front-end library in the form of a React hook and component libraries for generating a questionnaire from the [Lunatic-Model](https://github.com/InseeFr/Lunatic-Model) data format.
12
12
 
13
+ - [Storybook 3.0](https://inseefr.github.io/Lunatic/storybook-3.0), branch `3.0`
13
14
  - [Storybook 2.7](https://inseefr.github.io/Lunatic/storybook-2.7), branch `2.7`
14
15
  - [Storybook 2.6](https://inseefr.github.io/Lunatic/storybook-2.6), branch `2.6`
15
16
  - [Storybook v1](https://inseefr.github.io/Lunatic/storybook-0.3.9), branch `v1-main`
@@ -109,7 +110,7 @@ function App({ source, data }) {
109
110
  }
110
111
  ```
111
112
 
112
- All the components offered by Lunatic are available in the [src/components](https://github.com/InseeFr/Lunatic/tree/2.7/src/components) folder.
113
+ All the components offered by Lunatic are available in the [src/components](https://github.com/InseeFr/Lunatic/tree/3.0/src/components) folder.
113
114
 
114
115
  To activate the **autofocus**, you need to pass a key in the `autoFocusKey` property of `LunaticComponents`. As soon as this value changes, the first field is focused (a good solution is to pass the `pageTag` provided by `useLunatic`).
115
116
 
@@ -241,3 +242,10 @@ For publishing a release candidate update your `package.json` with `1.3.4-rc.0`
241
242
  It also work if you do it from a branch that have an open PR on main.
242
243
 
243
244
  > Make sure your have defined the `NPM_TOKEN` repository secret or NPM publishing will fail.
245
+
246
+ ## Build
247
+
248
+ We build this library in ESM and CJS. ESM is the standard when you develop a front-end app.
249
+ But if you need test which use `@inseefr/lunatic`, you need lunatic library as CJS lib (to allow to run in node environnement).
250
+ So we have two build: one for ESM and one for CJS.
251
+ You have nothing to change in your code base, it's simply working.
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" ?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
+ <svg fill="#000000" width="800px" height="800px" viewBox="0 0 52 52" data-name="Layer 1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"><path d="M26,0A26,26,0,1,0,52,26,26,26,0,0,0,26,0Zm0,48A22,22,0,1,1,48,26,22,22,0,0,1,26,48Z"/><path d="M28.83,26l8.58-8.59a2,2,0,0,0-2.82-2.82L26,23.17l-8.58-8.58a2,2,0,0,0-2.83,2.82L23.17,26l-8.58,8.58a2,2,0,1,0,2.82,2.83L26,28.83l8.59,8.58A2,2,0,0,0,36,38a2,2,0,0,0,1.42-.59,2,2,0,0,0,0-2.82Z"/></svg>
@@ -0,0 +1,17 @@
1
+ <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
2
+ <svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
3
+ <g fill="none" fill-rule="evenodd">
4
+ <g transform="translate(1 1)" stroke-width="2">
5
+ <circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
6
+ <path d="M36 18c0-9.94-8.06-18-18-18">
7
+ <animateTransform
8
+ attributeName="transform"
9
+ type="rotate"
10
+ from="0 18 18"
11
+ to="360 18 18"
12
+ dur="1s"
13
+ repeatCount="indefinite"/>
14
+ </path>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -0,0 +1 @@
1
+ <svg class="svg-icon" style="width: 1em; height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M956.416 802.816L581.632 159.744c-17.408-30.72-41.984-47.104-69.632-47.104-26.624 0-52.224 16.384-69.632 47.104L66.56 802.816c-17.408 29.696-19.456 59.392-6.144 82.944 13.312 23.552 39.936 35.84 74.752 35.84h753.664c34.816 0 61.44-13.312 74.752-35.84 13.312-23.552 10.24-53.248-7.168-82.944z m-28.672 62.464c-6.144 10.24-19.456 15.36-38.912 15.36H135.168c-19.456 0-33.792-6.144-38.912-15.36-6.144-10.24-4.096-25.6 6.144-41.984l376.832-643.072c10.24-17.408 22.528-26.624 33.792-26.624s24.576 10.24 33.792 26.624L921.6 823.296c9.216 16.384 12.288 31.744 6.144 41.984zM542.72 716.8c0 17.408-13.312 30.72-30.72 30.72s-30.72-13.312-30.72-30.72 13.312-30.72 30.72-30.72 30.72 13.312 30.72 30.72z m0-296.96v194.56c0 17.408-13.312 30.72-30.72 30.72s-30.72-13.312-30.72-30.72V419.84c0-17.408 13.312-30.72 30.72-30.72s30.72 13.312 30.72 30.72z" /></svg>