@woosmap/ui 4.223.2 → 4.224.1
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/.eslintrc +0 -10
- package/.storybook/main.js +0 -7
- package/package.json +113 -109
- package/src/components/PricingSlider/PricingSimulator.js +3 -3
package/.eslintrc
CHANGED
package/.storybook/main.js
CHANGED
|
@@ -92,13 +92,6 @@ module.exports = {
|
|
|
92
92
|
},
|
|
93
93
|
);
|
|
94
94
|
|
|
95
|
-
// Ajout de l'alias '@' pour src
|
|
96
|
-
config.resolve = config.resolve || {};
|
|
97
|
-
config.resolve.alias = {
|
|
98
|
-
...(config.resolve.alias || {}),
|
|
99
|
-
'@': path.resolve(__dirname, '../src'),
|
|
100
|
-
};
|
|
101
|
-
|
|
102
95
|
return config;
|
|
103
96
|
},
|
|
104
97
|
|
package/package.json
CHANGED
|
@@ -1,111 +1,115 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
2
|
+
"name": "@woosmap/ui",
|
|
3
|
+
"version": "4.224.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/WebGeoServices/ui.git"
|
|
7
|
+
},
|
|
8
|
+
"main": "src/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/index.js",
|
|
11
|
+
"./src/website": "./src/website.js",
|
|
12
|
+
"./src/styles/style-website.styl": "./src/styles/style-website.styl",
|
|
13
|
+
"./src/styles/style-console.styl": "./src/styles/style-console.styl"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@mapbox/polyline": "^1.2.1",
|
|
17
|
+
"axios": "0.28.1",
|
|
18
|
+
"classnames": "^2.5.1",
|
|
19
|
+
"framer-motion": "^11.3.28",
|
|
20
|
+
"google-map-react": "^2.2.1",
|
|
21
|
+
"i18next": "^23.14.0",
|
|
22
|
+
"moment": "^2.30.1",
|
|
23
|
+
"numeral": "^2.0.6",
|
|
24
|
+
"perfect-scrollbar": "^1.5.5",
|
|
25
|
+
"prop-types": "^15.8.1",
|
|
26
|
+
"react": "^18.3.1",
|
|
27
|
+
"react-datetime": "^3.2.0",
|
|
28
|
+
"react-dom": "^18.3.1",
|
|
29
|
+
"react-laag": "^2.0.5",
|
|
30
|
+
"react-select": "^5.10.0",
|
|
31
|
+
"react-slider": "^2.0.6",
|
|
32
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
33
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
34
|
+
"zxcvbn": "^4.4.2"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"start": "yarn stylus-dev && yarn storybook:dev",
|
|
38
|
+
"stylus": "stylus ./src/styles/style-console.styl -o dist/styles/dev",
|
|
39
|
+
"stylus-dev": "stylus ./src/styles/style-console.styl -o dist/styles/dev && stylus ./src/styles/style-stories.styl -o dist/styles/dev",
|
|
40
|
+
"build": "rimraf dist && NODE_ENV=production babel src --out-dir dist --copy-files --no-copy-ignored --ignore '**/*.stories.js,**/*.test.js,**/*.styl' && yarn build-css",
|
|
41
|
+
"build-css": "stylus ./src/styles/style-console.styl -o dist && stylus ./src/styles/style-stories.styl -o dist",
|
|
42
|
+
"test": "react-scripts test",
|
|
43
|
+
"test:generate-output": "react-scripts test --json --outputFile=./.storybook/jest-test-results.json --silent",
|
|
44
|
+
"prestorybook:dev": "clear && echo \"DOING FIRST TEST RUN\" && CI=true npm run test:generate-output",
|
|
45
|
+
"storybook:dev": "clear && concurrently -k \"npm run storybook\" \"npm run test:generate-output\"",
|
|
46
|
+
"storybook": "storybook dev -p 9009 public -h localhost",
|
|
47
|
+
"build-storybook": "storybook build -s public",
|
|
48
|
+
"icons": "svgo -f ./src/icons --config ./svgo-config.js",
|
|
49
|
+
"deploy-storybook": "storybook-to-ghpages",
|
|
50
|
+
"publish-npm": "yarn version --minor && npm publish --access=public",
|
|
51
|
+
"extract": "babel -f .babelrc 'src/components/**/*.{js,jsx,ts,tsx}'",
|
|
52
|
+
"coverage": "react-scripts test --coverage --silent --ci --coverageReporters=text --coverageReporters=text-summary --watchAll=false --collectCoverageFrom=!src/**/*.stories.js --collectCoverageFrom=!src/**/*.json ",
|
|
53
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
54
|
+
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
55
|
+
"lint": "eslint src --ext .js,.jsx --fix",
|
|
56
|
+
"lint:check": "eslint src --ext .js,.jsx"
|
|
57
|
+
},
|
|
58
|
+
"eslintConfig": {
|
|
59
|
+
"extends": [
|
|
60
|
+
"react-app",
|
|
61
|
+
"react-app/jest"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"browserslist": {
|
|
65
|
+
"production": [
|
|
66
|
+
">0.2%",
|
|
67
|
+
"not dead",
|
|
68
|
+
"not op_mini all"
|
|
69
|
+
],
|
|
70
|
+
"development": [
|
|
71
|
+
"last 1 chrome version",
|
|
72
|
+
"last 1 firefox version",
|
|
73
|
+
"last 1 safari version"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/cli": "^7.24.8",
|
|
78
|
+
"@babel/core": "^7.25.2",
|
|
79
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
80
|
+
"@babel/preset-env": "^7.25.4",
|
|
81
|
+
"@babel/preset-react": "^7.24.7",
|
|
82
|
+
"@emotion/is-prop-valid": "^1.3.0",
|
|
83
|
+
"@storybook/addon-actions": "^8.3.1",
|
|
84
|
+
"@storybook/addon-essentials": "^8.3.1",
|
|
85
|
+
"@storybook/addon-jest": "^8.3.1",
|
|
86
|
+
"@storybook/addon-links": "^8.3.1",
|
|
87
|
+
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
88
|
+
"@storybook/node-logger": "^8.3.1",
|
|
89
|
+
"@storybook/preset-create-react-app": "^8.3.1",
|
|
90
|
+
"@storybook/react": "^8.3.1",
|
|
91
|
+
"@storybook/react-webpack5": "^8.3.1",
|
|
92
|
+
"@storybook/storybook-deployer": "^2.8.16",
|
|
93
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
94
|
+
"@testing-library/react": "^13.4.0",
|
|
95
|
+
"@testing-library/user-event": "^14.5.2",
|
|
96
|
+
"babel-plugin-i18next-extract": "^0.10.0",
|
|
97
|
+
"babel-plugin-transform-dynamic-import": "^2.1.0",
|
|
98
|
+
"concurrently": "^8.2.2",
|
|
99
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
100
|
+
"eslint-config-prettier": "^9.1.0",
|
|
101
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
102
|
+
"eslint-plugin-sonarjs": "^1.0.4",
|
|
103
|
+
"jest-google-maps-mock": "^1.0.7",
|
|
104
|
+
"prettier": "^3.3.3",
|
|
105
|
+
"react-scripts": "5.0.1",
|
|
106
|
+
"rimraf": "^6.0.1",
|
|
107
|
+
"storybook": "^8.3.1",
|
|
108
|
+
"stylus": "^0.63.0",
|
|
109
|
+
"stylus-loader": "^8.1.0",
|
|
110
|
+
"svgo": "^3.3.2"
|
|
111
|
+
},
|
|
112
|
+
"resolutions": {
|
|
113
|
+
"nwsapi": "2.2.13"
|
|
114
|
+
}
|
|
111
115
|
}
|
|
@@ -113,7 +113,7 @@ export default class PricingSimulator extends Component {
|
|
|
113
113
|
{product.computedQueries === '∞'
|
|
114
114
|
? product.aboveLastTier
|
|
115
115
|
: `${this.formatNumber(product.computedQueries, currency)}
|
|
116
|
-
${tr('/ mo')}`}
|
|
116
|
+
${tr('req / mo')}`}
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
119
119
|
<div className="pricing-summary-amount">
|
|
@@ -136,7 +136,7 @@ export default class PricingSimulator extends Component {
|
|
|
136
136
|
|
|
137
137
|
return (
|
|
138
138
|
<div className="pricing-summary-wrapper">
|
|
139
|
-
<div className="pricing-summary-header">{tr('
|
|
139
|
+
{productCount >= 1 && <div className="pricing-summary-header">{tr('Split per product')}</div>}
|
|
140
140
|
<div className="pricing-summary-content">
|
|
141
141
|
{productElements}
|
|
142
142
|
{/* Ligne de total - affichée seulement s'il y a au moins deux produits */}
|
|
@@ -212,7 +212,7 @@ export default class PricingSimulator extends Component {
|
|
|
212
212
|
{PricingData[category].description}
|
|
213
213
|
</p>
|
|
214
214
|
</div>
|
|
215
|
-
<span className="pricing-simulator__prod-price-label">{tr('Monthly
|
|
215
|
+
<span className="pricing-simulator__prod-price-label">{tr('Monthly cost estimation')}</span>
|
|
216
216
|
</div>
|
|
217
217
|
{Object.keys(PricingData[category].pricings).map((pricingKey) => {
|
|
218
218
|
const productPricing = PricingData[category].pricings[pricingKey];
|