@inseefr/lunatic 0.3.11-v2 → 0.3.14-v2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "0.3.11-v2",
3
+ "version": "0.3.14-v2",
4
4
  "workersVersion": "0.2.4-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {
@@ -23,19 +23,17 @@
23
23
  }
24
24
  ],
25
25
  "license": "MIT",
26
- "main": "lib/index.js",
26
+ "main": "src/index.js",
27
27
  "module": "src/index.js",
28
28
  "files": [
29
- "lib",
30
29
  "src"
31
30
  ],
32
31
  "scripts": {
33
32
  "test": "cross-env NODE_PATH=src/ jest",
34
33
  "test-watch": "cross-env NODE_PATH=src/ jest --watchAll",
35
34
  "test-coverage": "cross-env NODE_PATH=src/ jest --coverage",
36
- "build": "rollup -c rollup.config.js",
35
+ "build": "babel src --out-dir lib --copy-files",
37
36
  "prepublish": "npm test && npm run build",
38
- "analyze": "yarn build && source-map-explorer lib/index.js --html bundle-report/lunatic.html",
39
37
  "build-append-worker": "webpack --config ./webpack-append-worker.config.js",
40
38
  "build-searching-worker": "webpack --config ./webpack-searching-worker.config.js",
41
39
  "build-label-worker": "webpack --config ./webpack-label-worker.config.js",
@@ -52,6 +50,8 @@
52
50
  "dependencies": {
53
51
  "@inseefr/trevas": "^0.1.10",
54
52
  "@inseefr/vtl-2.0-antlr-tools": "^0.1.0",
53
+ "antlr4": "^4.10.1",
54
+ "classnames": "^2.3.1",
55
55
  "date-fns": "^2.25.0",
56
56
  "lodash.camelcase": "^4.3.0",
57
57
  "lodash.debounce": "^4.0.8",
@@ -67,7 +67,8 @@
67
67
  "string-tokenizer": "^0.0.8"
68
68
  },
69
69
  "devDependencies": {
70
- "@babel/core": "^7.9.0",
70
+ "@babel/cli": "^7.18.6",
71
+ "@babel/core": "^7.18.6",
71
72
  "@babel/plugin-proposal-class-properties": "^7.7.4",
72
73
  "@babel/plugin-proposal-private-methods": "^7.18.6",
73
74
  "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
@@ -89,10 +90,8 @@
89
90
  "@storybook/react": "^6.5.8",
90
91
  "@storybook/testing-library": "^0.0.11",
91
92
  "@testing-library/react-hooks": "^7.0.0",
92
- "@timdp/rollup-plugin-image": "^1.0.3",
93
93
  "babel-eslint": "^10.0.3",
94
94
  "babel-loader": "^8.0.6",
95
- "classnames": "^2.3.1",
96
95
  "core-js": "^3.17.3",
97
96
  "cross-env": "^7.0.2",
98
97
  "css-loader": "^5.0.0",
@@ -118,18 +117,6 @@
118
117
  "react-dom": "^17.0.2",
119
118
  "regenerator-runtime": "^0.13.7",
120
119
  "remove-accents": "^0.4.2",
121
- "rollup": "^2.52.8",
122
- "rollup-plugin-babel": "^4.3.3",
123
- "rollup-plugin-babel-minify": "^10.0.0",
124
- "rollup-plugin-commonjs": "^10.1.0",
125
- "rollup-plugin-node-resolve": "^5.2.0",
126
- "rollup-plugin-postcss": "^4.0.0",
127
- "rollup-plugin-replace": "^2.2.0",
128
- "rollup-plugin-serve": "^1.0.1",
129
- "rollup-plugin-terser": "^7.0.1",
130
- "rollup-plugin-uglify": "^6.0.3",
131
- "rollup-plugin-url": "^3.0.1",
132
- "rollup-watch": "^4.3.1",
133
120
  "rxjs-marbles": "^6.0.1",
134
121
  "sass-loader": "^10.0.3",
135
122
  "source-map-explorer": "^2.4.2",
@@ -1,5 +1,5 @@
1
1
  // Import index once for bundle
2
- @import 'src/components/index.scss';
2
+ @import '../../../index.scss';
3
3
 
4
4
  .lunatic-component-container-test {
5
5
  display: flex;
@@ -1,3 +1,2 @@
1
1
  export * from './components';
2
2
  export { default as Table } from './table';
3
- export { default as useLunatic } from '../use-lunatic';
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export { default as useLunatic } from './use-lunatic';