@omniumretail/shared-resources 0.0.89 → 0.0.91

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 (99) hide show
  1. package/package.json +4 -6
  2. package/src/constants/Icons.ts +2 -4
  3. package/webpack.config.js +26 -32
  4. package/dist/bundle.js +0 -1
  5. package/dist/bundle.js.gz +0 -0
  6. package/dist/types/components/BottomDrawer/index.d.ts +0 -9
  7. package/dist/types/components/Button/index.d.ts +0 -2
  8. package/dist/types/components/Footer/index.d.ts +0 -3
  9. package/dist/types/components/Form/FormInputField/index.d.ts +0 -8
  10. package/dist/types/components/Form/FormSelectField/index.d.ts +0 -9
  11. package/dist/types/components/Form/index.d.ts +0 -2
  12. package/dist/types/components/Header/index.d.ts +0 -4
  13. package/dist/types/components/Link/index.d.ts +0 -6
  14. package/dist/types/components/Navigation/index.d.ts +0 -8
  15. package/dist/types/components/Page/index.d.ts +0 -13
  16. package/dist/types/components/SharedContextProvider/index.d.ts +0 -7
  17. package/dist/types/components/index.d.ts +0 -9
  18. package/dist/types/constants/Icons.d.ts +0 -15
  19. package/dist/types/constants/QueryClient.d.ts +0 -2
  20. package/dist/types/constants/index.d.ts +0 -2
  21. package/dist/types/contexts/useStore.d.ts +0 -8
  22. package/dist/types/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +0 -7
  23. package/dist/types/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +0 -9
  24. package/dist/types/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +0 -7
  25. package/dist/types/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +0 -11
  26. package/dist/types/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +0 -14
  27. package/dist/types/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +0 -2
  28. package/dist/types/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +0 -7
  29. package/dist/types/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +0 -9
  30. package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +0 -8
  31. package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +0 -10
  32. package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +0 -2
  33. package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +0 -11
  34. package/dist/types/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +0 -2
  35. package/dist/types/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +0 -2
  36. package/dist/types/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +0 -2
  37. package/dist/types/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +0 -2
  38. package/dist/types/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +0 -2
  39. package/dist/types/hooks/Others/useApplicationDataQuery.hook.d.ts +0 -2
  40. package/dist/types/hooks/Others/useContractStatesQuery.hook.d.ts +0 -7
  41. package/dist/types/hooks/Others/useCountriesQuery.hook.d.ts +0 -7
  42. package/dist/types/hooks/Others/useCustomersQuery.hook.d.ts +0 -142
  43. package/dist/types/hooks/Others/useJobTitlesQuery.hook.d.ts +0 -7
  44. package/dist/types/hooks/Others/useTermNotificationQuery.hook.d.ts +0 -2
  45. package/dist/types/hooks/Product/get/useProductHierarchies.hook.d.ts +0 -7
  46. package/dist/types/hooks/Product/get/useProductsQuery.hook.d.ts +0 -142
  47. package/dist/types/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +0 -2
  48. package/dist/types/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +0 -11
  49. package/dist/types/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +0 -2
  50. package/dist/types/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +0 -2
  51. package/dist/types/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +0 -2
  52. package/dist/types/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +0 -2
  53. package/dist/types/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +0 -2
  54. package/dist/types/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +0 -2
  55. package/dist/types/hooks/Roles/get/useAllRolesQuery.hook.d.ts +0 -11
  56. package/dist/types/hooks/Roles/get/useAllStoreQuery.hook.d.ts +0 -13
  57. package/dist/types/hooks/Store/useStoreByCodeQuery.hook.d.ts +0 -8
  58. package/dist/types/hooks/Store/useStoreQuery.d.ts +0 -7
  59. package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +0 -8
  60. package/dist/types/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +0 -2
  61. package/dist/types/hooks/Users/get/useUserIdQuery.hook.d.ts +0 -2
  62. package/dist/types/hooks/Users/get/useUserListQuery.hook.d.ts +0 -11
  63. package/dist/types/hooks/Users/get/useUserQuery.hook.d.ts +0 -12
  64. package/dist/types/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +0 -2
  65. package/dist/types/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +0 -8
  66. package/dist/types/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +0 -6
  67. package/dist/types/hooks/Users/others/useUserBlockQuery.hook.d.ts +0 -2
  68. package/dist/types/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +0 -2
  69. package/dist/types/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +0 -2
  70. package/dist/types/hooks/index.d.ts +0 -48
  71. package/dist/types/index.d.ts +0 -7
  72. package/dist/types/interfaces/AnalyticsEvaluationCycle.d.ts +0 -19
  73. package/dist/types/interfaces/AnalyticsUserId.d.ts +0 -12
  74. package/dist/types/interfaces/Answer.d.ts +0 -12
  75. package/dist/types/interfaces/AnswersUserSupervisor.d.ts +0 -42
  76. package/dist/types/interfaces/ApplicationsByCategory.d.ts +0 -16
  77. package/dist/types/interfaces/AsvProductsByReference.d.ts +0 -12
  78. package/dist/types/interfaces/AsvProductsByStore.d.ts +0 -12
  79. package/dist/types/interfaces/Brand.d.ts +0 -4
  80. package/dist/types/interfaces/Cart.d.ts +0 -10
  81. package/dist/types/interfaces/Configuration.d.ts +0 -6
  82. package/dist/types/interfaces/ContractStates.d.ts +0 -7
  83. package/dist/types/interfaces/Countries.d.ts +0 -10
  84. package/dist/types/interfaces/Customer.d.ts +0 -21
  85. package/dist/types/interfaces/EvaluationCycle.d.ts +0 -32
  86. package/dist/types/interfaces/ExpUsersAnswers.d.ts +0 -15
  87. package/dist/types/interfaces/JobTitles.d.ts +0 -7
  88. package/dist/types/interfaces/Product.d.ts +0 -15
  89. package/dist/types/interfaces/ProductsHierarchies.d.ts +0 -5
  90. package/dist/types/interfaces/Questionnaire.d.ts +0 -36
  91. package/dist/types/interfaces/ResponseList.d.ts +0 -5
  92. package/dist/types/interfaces/Roles.d.ts +0 -5
  93. package/dist/types/interfaces/Store.d.ts +0 -7
  94. package/dist/types/interfaces/TermNotification.d.ts +0 -5
  95. package/dist/types/interfaces/User.d.ts +0 -68
  96. package/dist/types/interfaces/index.d.ts +0 -24
  97. package/dist/types/services/ApiService/index.d.ts +0 -9
  98. package/dist/types/services/InitService/index.d.ts +0 -3
  99. package/dist/types/services/index.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.0.89",
3
+ "version": "0.0.91",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -27,23 +27,21 @@
27
27
  "typescript": "^4.8.3",
28
28
  "url-loader": "^4.1.1",
29
29
  "webpack": "^5.74.0",
30
- "webpack-cli": "^5.1.4"
30
+ "webpack-cli": "^4.10.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "@fortawesome/fontawesome-svg-core": "^6.2.0",
34
- "@fortawesome/free-regular-svg-icons": "^6.2.0",
35
34
  "@fortawesome/free-solid-svg-icons": "^6.2.0",
36
35
  "@fortawesome/react-fontawesome": "^0.2.0",
37
36
  "@tanstack/react-query": "^4.29.19",
38
37
  "antd": "^4.23.4",
39
- "babel-plugin-import": "^1.13.8",
40
- "babel-plugin-lodash": "^3.3.4",
41
38
  "classnames": "^2.3.2",
42
- "compression-webpack-plugin": "^10.0.0",
43
39
  "date-fns": "^2.29.3",
40
+ "mini-css-extract-plugin": "^2.7.6",
44
41
  "react": "^18.0.0",
45
42
  "react-dom": "^18.0.0",
46
43
  "react-router-dom": "^6.4.1",
44
+ "terser-webpack-plugin": "^5.3.9",
47
45
  "whatwg-fetch": "^3.6.2"
48
46
  }
49
47
  }
@@ -1,11 +1,9 @@
1
1
 
2
2
  import {
3
3
  faBars, faUserTie, faPlus, faXmark, faUser, faUserPlus,
4
- faCartShopping, faChevronDown, faFilter, faSearch, faQrcode, faCheck
4
+ faCartShopping, faChevronDown, faFilter, faSearch, faQrcode, faCheck, faTrashAlt
5
5
  } from '@fortawesome/free-solid-svg-icons'
6
6
 
7
- import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
8
-
9
7
  export const icons = {
10
8
  faBars,
11
9
  faUser,
@@ -19,5 +17,5 @@ export const icons = {
19
17
  faSearch,
20
18
  faQrcode,
21
19
  faCheck,
22
- 'fa-thin': faTrashAlt
20
+ faTrashAlt
23
21
  };
package/webpack.config.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const path = require('path');
2
- const CompressionWebpackPlugin = require('compression-webpack-plugin');
2
+ const TerserPlugin = require('terser-webpack-plugin');
3
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3
4
 
4
5
  module.exports = {
5
6
  mode: 'production',
@@ -14,55 +15,48 @@ module.exports = {
14
15
  resolve: {
15
16
  extensions: ['.js', '.jsx', '.ts', '.tsx'],
16
17
  },
18
+ optimization: {
19
+ minimizer: [
20
+ new TerserPlugin({
21
+ terserOptions: {
22
+ format: {
23
+ comments: false,
24
+ },
25
+ },
26
+ extractComments: false,
27
+ }),
28
+ ],
29
+ },
30
+ plugins: [
31
+ new MiniCssExtractPlugin({
32
+ filename: 'styles.css',
33
+ }),
34
+ ],
17
35
  module: {
18
36
  rules: [
19
37
  {
20
38
  test: /\.s?css$/,
21
39
  use: [
22
- { loader: 'style-loader' },
40
+ MiniCssExtractPlugin.loader,
23
41
  {
24
42
  loader: 'css-loader',
25
43
  options: {
26
- modules: true,
27
- },
44
+ modules: true
45
+ }
28
46
  },
29
- { loader: 'sass-loader' },
30
- ],
47
+ { loader: 'sass-loader' }
48
+ ]
31
49
  },
32
50
  {
33
51
  test: /\.(png|svg|jpg|gif)$/,
34
52
  loader: 'url-loader',
35
53
  options: {
36
- limit: Infinity, // everything
37
- },
54
+ limit: Infinity // everything
55
+ }
38
56
  },
39
57
  { test: /\.tsx?$/, use: 'ts-loader' },
40
- {
41
- test: /\.js$/,
42
- exclude: /node_modules/,
43
- use: {
44
- loader: 'babel-loader',
45
- options: {
46
- plugins: [
47
- ['import', { libraryName: 'antd', style: 'css' }],
48
- // Add other plugins if needed
49
- ],
50
- presets: [['@babel/env', { 'targets': { 'node': 6 } }]],
51
- },
52
- },
53
- },
54
58
  ],
55
59
  },
56
- plugins: [
57
- new CompressionWebpackPlugin({
58
- filename: '[path][base].gz',
59
- algorithm: 'gzip',
60
- test: /\.js$|\.css$|\.html$/,
61
- threshold: 10240,
62
- minRatio: 0.8,
63
- }),
64
- // ...other plugins...
65
- ],
66
60
  externals: {
67
61
  react: "react",
68
62
  "react-dom": "react-dom",