contentoh-components-library 21.2.104 → 21.2.106

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 (192) hide show
  1. package/.env.development +5 -2
  2. package/.env.production +25 -25
  3. package/dist/assets/images/customSelect/starIcon.svg +14 -0
  4. package/dist/assets/images/defaultImages/Spinner.gif +0 -0
  5. package/dist/assets/images/defaultImages/notFound.svg +124 -0
  6. package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +72 -0
  7. package/dist/components/atoms/ButtonFileChooser/index.js +118 -0
  8. package/dist/components/atoms/ButtonFileChooser/styles.js +20 -0
  9. package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +66 -0
  10. package/dist/components/atoms/ButtonV2/index.js +110 -0
  11. package/dist/components/atoms/ButtonV2/styles.js +53 -0
  12. package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +50 -0
  13. package/dist/components/atoms/CustomIcon/index.js +40 -0
  14. package/dist/components/atoms/CustomIcon/styles.js +33 -0
  15. package/dist/components/atoms/GeneralButton/index.js +2 -6
  16. package/dist/components/atoms/IconFile/IconFile.stories.js +48 -0
  17. package/dist/components/atoms/IconFile/index.js +249 -0
  18. package/dist/components/atoms/IconFile/styles.js +23 -0
  19. package/dist/components/atoms/Image/Image.stories.js +73 -0
  20. package/dist/components/atoms/Image/index.js +76 -0
  21. package/dist/components/atoms/Image/styles.js +43 -0
  22. package/dist/components/atoms/ImageLink/ImageLink.stories.js +63 -0
  23. package/dist/components/atoms/ImageLink/index.js +77 -0
  24. package/dist/components/atoms/ImageLink/styles.js +40 -0
  25. package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +70 -0
  26. package/dist/components/atoms/ImagePreview/index.js +222 -0
  27. package/dist/components/atoms/ImagePreview/styles.js +44 -0
  28. package/dist/components/atoms/InputText/InputText.stories.js +60 -0
  29. package/dist/components/atoms/InputText/index.js +66 -0
  30. package/dist/components/atoms/InputText/styles.js +32 -0
  31. package/dist/components/atoms/NotFound/NotFound.stories.js +36 -0
  32. package/dist/components/atoms/NotFound/index.js +75 -0
  33. package/dist/components/atoms/NotFound/styles.js +20 -0
  34. package/dist/components/atoms/Select/VersionSelect.js +1 -2
  35. package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +45 -0
  36. package/dist/components/atoms/SelectItemV2/index.js +57 -0
  37. package/dist/components/atoms/SelectItemV2/styles.js +30 -0
  38. package/dist/components/atoms/Tooltip/Tooltip.stories.js +66 -0
  39. package/dist/components/atoms/Tooltip/index.js +72 -0
  40. package/dist/components/atoms/Tooltip/styles.js +20 -0
  41. package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +66 -0
  42. package/dist/components/molecules/ButtonDownloadFile/index.js +179 -0
  43. package/dist/components/molecules/ButtonDownloadFile/styles.js +23 -0
  44. package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +21 -22
  45. package/dist/components/molecules/CustomSelect/SelectItem.js +10 -1
  46. package/dist/components/molecules/Dropdown/Dropdown.stories.js +98 -0
  47. package/dist/components/molecules/Dropdown/index.js +150 -0
  48. package/dist/components/molecules/Dropdown/styles.js +26 -0
  49. package/dist/components/molecules/HeaderTop/index.js +10 -5
  50. package/dist/components/molecules/HeaderTop/styles.js +1 -1
  51. package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +82 -0
  52. package/dist/components/molecules/ImageTooltip/index.js +85 -0
  53. package/dist/components/molecules/ImageTooltip/styles.js +33 -0
  54. package/dist/components/molecules/SelectV2/SelectV2.stories.js +119 -0
  55. package/dist/components/molecules/SelectV2/index.js +298 -0
  56. package/dist/components/molecules/SelectV2/styles.js +42 -0
  57. package/dist/components/organisms/Chat/Chat.stories.js +215 -0
  58. package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +83 -0
  59. package/dist/components/organisms/Chat/ChatLists/index.js +160 -0
  60. package/dist/components/organisms/Chat/ChatLists/styles.js +29 -0
  61. package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +176 -0
  62. package/dist/components/organisms/Chat/ContainerItems/index.js +569 -0
  63. package/dist/components/organisms/Chat/ContainerItems/styles.js +20 -0
  64. package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +142 -0
  65. package/dist/components/organisms/Chat/ContentChat/index.js +1422 -0
  66. package/dist/components/organisms/Chat/ContentChat/styles.js +20 -0
  67. package/dist/components/organisms/Chat/Footer/Footer.stories.js +43 -0
  68. package/dist/components/organisms/Chat/Footer/index.js +984 -0
  69. package/dist/components/organisms/Chat/Footer/styles.js +32 -0
  70. package/dist/components/organisms/Chat/Header/Header.stories.js +96 -0
  71. package/dist/components/organisms/Chat/Header/index.js +84 -0
  72. package/dist/components/organisms/Chat/Header/styles.js +20 -0
  73. package/dist/components/organisms/Chat/index.js +327 -0
  74. package/dist/components/organisms/Chat/styles.js +29 -0
  75. package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
  76. package/dist/components/organisms/CreateVersion/index.js +89 -30
  77. package/dist/components/organisms/Modal/Modal.stories.js +66 -0
  78. package/dist/components/organisms/Modal/index.js +95 -0
  79. package/dist/components/organisms/Modal/styles.js +20 -0
  80. package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
  81. package/dist/components/organisms/OrderDetail/index.js +11 -20
  82. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  83. package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
  84. package/dist/components/organisms/OrderDetail/utils/Table/utils.js +15 -45
  85. package/dist/components/organisms/VersionSelector/index.js +2 -28
  86. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +147 -69
  87. package/dist/components/pages/ProviderProductEdition/index.js +22 -2
  88. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -77
  89. package/dist/components/pages/RetailerProductEdition/index.js +24 -5
  90. package/dist/global-files/fonts.css +12 -0
  91. package/dist/global-files/handle_http.js +383 -0
  92. package/dist/global-files/utils.js +472 -0
  93. package/dist/global-files/variables.js +2 -0
  94. package/dist/index.js +254 -46
  95. package/package.json +12 -1
  96. package/src/assets/images/customSelect/starIcon.svg +14 -0
  97. package/src/assets/images/defaultImages/Spinner.gif +0 -0
  98. package/src/assets/images/defaultImages/notFound.svg +124 -0
  99. package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +47 -0
  100. package/src/components/atoms/ButtonFileChooser/index.js +69 -0
  101. package/src/components/atoms/ButtonFileChooser/styles.js +4 -0
  102. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +53 -0
  103. package/src/components/atoms/ButtonV2/index.js +85 -0
  104. package/src/components/atoms/ButtonV2/styles.js +217 -0
  105. package/src/components/atoms/CustomIcon/CustomIcon.stories.js +36 -0
  106. package/src/components/atoms/CustomIcon/index.js +41 -0
  107. package/src/components/atoms/CustomIcon/styles.js +85 -0
  108. package/src/components/atoms/GeneralButton/index.js +1 -4
  109. package/src/components/atoms/IconFile/IconFile.stories.js +35 -0
  110. package/src/components/atoms/IconFile/index.js +119 -0
  111. package/src/components/atoms/IconFile/styles.js +67 -0
  112. package/src/components/atoms/Image/Image.stories.js +51 -0
  113. package/src/components/atoms/Image/index.js +55 -0
  114. package/src/components/atoms/Image/styles.js +34 -0
  115. package/src/components/atoms/ImageLink/ImageLink.stories.js +43 -0
  116. package/src/components/atoms/ImageLink/index.js +57 -0
  117. package/src/components/atoms/ImageLink/styles.js +30 -0
  118. package/src/components/atoms/ImagePreview/ImagePreview.stories.js +52 -0
  119. package/src/components/atoms/ImagePreview/index.js +191 -0
  120. package/src/components/atoms/ImagePreview/styles.js +77 -0
  121. package/src/components/atoms/InputText/InputText.stories.js +39 -0
  122. package/src/components/atoms/InputText/index.js +61 -0
  123. package/src/components/atoms/InputText/styles.js +89 -0
  124. package/src/components/atoms/NotFound/NotFound.stories.js +19 -0
  125. package/src/components/atoms/NotFound/index.js +52 -0
  126. package/src/components/atoms/NotFound/styles.js +55 -0
  127. package/src/components/atoms/Select/VersionSelect.js +2 -4
  128. package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +26 -0
  129. package/src/components/atoms/SelectItemV2/index.js +61 -0
  130. package/src/components/atoms/SelectItemV2/styles.js +90 -0
  131. package/src/components/atoms/Tooltip/Tooltip.stories.js +51 -0
  132. package/src/components/atoms/Tooltip/index.js +59 -0
  133. package/src/components/atoms/Tooltip/styles.js +42 -0
  134. package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +54 -0
  135. package/src/components/molecules/ButtonDownloadFile/index.js +111 -0
  136. package/src/components/molecules/ButtonDownloadFile/styles.js +66 -0
  137. package/src/components/molecules/CustomSelect/CustomSelect.stories.js +20 -12
  138. package/src/components/molecules/CustomSelect/SelectItem.js +7 -0
  139. package/src/components/molecules/Dropdown/Dropdown.stories.js +103 -0
  140. package/src/components/molecules/Dropdown/index.js +150 -0
  141. package/src/components/molecules/Dropdown/styles.js +75 -0
  142. package/src/components/molecules/HeaderTop/index.js +11 -6
  143. package/src/components/molecules/HeaderTop/styles.js +4 -0
  144. package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +68 -0
  145. package/src/components/molecules/ImageTooltip/index.js +63 -0
  146. package/src/components/molecules/ImageTooltip/styles.js +18 -0
  147. package/src/components/molecules/SelectV2/SelectV2.stories.js +114 -0
  148. package/src/components/molecules/SelectV2/index.js +335 -0
  149. package/src/components/molecules/SelectV2/styles.js +105 -0
  150. package/src/components/organisms/Chat/Chat.stories.js +199 -0
  151. package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +65 -0
  152. package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
  153. package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
  154. package/src/components/organisms/Chat/ChatLists/index.js +141 -0
  155. package/src/components/organisms/Chat/ChatLists/styles.js +162 -0
  156. package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +142 -0
  157. package/src/components/organisms/Chat/ContainerItems/index.js +549 -0
  158. package/src/components/organisms/Chat/ContainerItems/styles.js +328 -0
  159. package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +102 -0
  160. package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
  161. package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
  162. package/src/components/organisms/Chat/ContentChat/index.js +900 -0
  163. package/src/components/organisms/Chat/ContentChat/styles.js +41 -0
  164. package/src/components/organisms/Chat/Footer/Footer.stories.js +22 -0
  165. package/src/components/organisms/Chat/Footer/index.js +669 -0
  166. package/src/components/organisms/Chat/Footer/styles.js +286 -0
  167. package/src/components/organisms/Chat/Header/Header.stories.js +66 -0
  168. package/src/components/organisms/Chat/Header/index.js +94 -0
  169. package/src/components/organisms/Chat/Header/styles.js +49 -0
  170. package/src/components/organisms/Chat/index.js +294 -0
  171. package/src/components/organisms/Chat/styles.js +42 -0
  172. package/src/components/organisms/CreateVersion/RenderChilds.js +34 -28
  173. package/src/components/organisms/CreateVersion/index.js +36 -16
  174. package/src/components/organisms/Modal/Modal.stories.js +55 -0
  175. package/src/components/organisms/Modal/index.js +97 -0
  176. package/src/components/organisms/Modal/styles.js +103 -0
  177. package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
  178. package/src/components/organisms/OrderDetail/index.js +12 -19
  179. package/src/components/organisms/OrderDetail/styles.js +0 -1
  180. package/src/components/organisms/OrderDetail/utils/Table/styles.js +0 -30
  181. package/src/components/organisms/OrderDetail/utils/Table/utils.js +15 -30
  182. package/src/components/organisms/VersionSelector/index.js +3 -18
  183. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +166 -75
  184. package/src/components/pages/ProviderProductEdition/index.js +21 -2
  185. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -79
  186. package/src/components/pages/RetailerProductEdition/index.js +14 -2
  187. package/src/global-files/customHooks.js +2 -2
  188. package/src/global-files/fonts.css +12 -0
  189. package/src/global-files/handle_http.js +231 -0
  190. package/src/global-files/utils.js +300 -0
  191. package/src/global-files/variables.js +2 -0
  192. package/src/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cCI6MTY2ODExMjA1MiwiaWF0IjoxNjY4MTA4NDUyLCJlbWFpbCI6Im1hcnRoYTI1Lm1pb0BnbWFpbC5jb20ifQ.JbpinyPv_38xvwwT_td3M_vP3xEffZ6dI0Xl3B9EVjPF7uW4ctZ_B7nKydPyUcB6LTaYEzCI1RfAgZpUQUFbYTfFHJ3T9kgwa9b9mDeDx3kiy2GK3CdYIuWiii5ZivxVKK10gV871OvxDish4w-vEOsClXDncoTX2zAx3wDM4xO83UdI0ahECOTYszuGB3FRnkrHnWJO0b2dpsyhqAmhw0aEcw6gwbqP5l-spOjMM3lE-bGm89pK_9oLYcyRMr09vcGJartmk_ctUisCflrYudnwVgwTwCi1PRBkiaUoDywYeGr6HxRoU1zsiC3LwB-m9b2YnNhEZmPanLfPstKVbw",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- id_article: 3,
25
- id_category: 2032,
26
- name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
27
- upc: "161157",
28
- timestamp: "2022-11-14T16:02:47.000Z",
29
- categoryName: "Decoración|Cortinas y Persianas|Cortinas",
30
- version: 1,
31
- retailersAvailable: [
32
- {
33
- name: "The Home Depot Golden",
34
- id: 58,
35
- },
24
+ "orderId": 3366,
25
+ "article_status": "AP",
26
+ "datasheet_status": "NS",
27
+ "description_status": "NS",
28
+ "images_status": "AP",
29
+ "prio": "none",
30
+ "version": 3,
31
+ "brand": null,
32
+ "article": {
33
+ "category": "Iluminación|Lámparas|Lámparas de Mesa",
34
+ "company_name": "Norday",
35
+ "id_company": 810,
36
+ "country": "México",
37
+ "id_category": "2454",
38
+ "id_article": 84492,
39
+ "name": "prueba dos",
40
+ "upc": "8375"
41
+ },
42
+ "retailers": [
43
+ {
44
+ "id": 59,
45
+ "name": "The Home Depot Platinum"
46
+ }
47
+ ],
48
+ "services": {
49
+ "datasheets": 0,
50
+ "descriptions": 0,
51
+ "images": 1
52
+ },
53
+ "statusByRetailer": {
54
+ "59": {
55
+ "images": "AP"
56
+ }
57
+ },
58
+ "retailersWithService": [
59
+ "59"
36
60
  ],
61
+ "id_article": 84492,
62
+ "retailersAvailable": [
63
+ {
64
+ "id": 59,
65
+ "name": "The Home Depot Platinum"
66
+ }
67
+ ]
37
68
  },
38
69
  productToEdit: {
39
- idCategory: 2032,
40
- ArticleId: 3,
41
- product: [
42
- {
43
- id_article: 3,
44
- id_category: 2032,
45
- name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
46
- upc: "161157",
47
- timestamp: "2022-11-14T16:02:47.000Z",
48
- categoryName: "Decoración|Cortinas y Persianas|Cortinas",
49
- version: 1,
50
- retailersAvailable: [
51
- {
52
- name: "The Home Depot Golden",
53
- id: 58,
54
- },
70
+ "ArticleId": 84492,
71
+ "idCategory": "2454",
72
+ "product": {
73
+ "orderId": 3366,
74
+ "article_status": "AP",
75
+ "datasheet_status": "NS",
76
+ "description_status": "NS",
77
+ "images_status": "AP",
78
+ "prio": "none",
79
+ "version": 3,
80
+ "brand": null,
81
+ "article": {
82
+ "category": "Iluminación|Lámparas|Lámparas de Mesa",
83
+ "company_name": "Norday",
84
+ "id_company": 810,
85
+ "country": "México",
86
+ "id_category": "2454",
87
+ "id_article": 84492,
88
+ "name": "prueba dos",
89
+ "upc": "8375"
90
+ },
91
+ "retailers": [
92
+ {
93
+ "id": 59,
94
+ "name": "The Home Depot Platinum"
95
+ }
55
96
  ],
56
- },
57
- ],
97
+ "services": {
98
+ "datasheets": 0,
99
+ "descriptions": 0,
100
+ "images": 1
101
+ },
102
+ "statusByRetailer": {
103
+ "59": {
104
+ "images": "AP"
105
+ }
106
+ },
107
+ "retailersWithService": [
108
+ "59"
109
+ ],
110
+ "id_article": 84492,
111
+ "retailersAvailable": [
112
+ {
113
+ "id": 59,
114
+ "name": "The Home Depot Platinum"
115
+ }
116
+ ]
117
+ }
58
118
  },
59
119
  location: {
60
120
  state: { origin: "Contentoh" },
61
121
  },
62
122
  user: {
63
- id_user: 28,
64
- name: "Ismael",
65
- last_name: "López",
66
- email: "ilopez@contentoh.com",
67
- position: "Test States",
68
- telephone: "+523111366336",
69
- country: "México",
70
- id_company: 1,
71
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
72
- birth_Date: null,
73
- about_me: "",
74
- zip_code: "",
75
- address: "",
76
- job: "",
77
- id_stripe: "cus_KuEt6R6vwmN09f",
78
- id_role: 0,
79
- active: 1,
80
- is_retailer: 0,
81
- email_notify: 0,
82
- is_user_tech: "AS",
83
- membership: {
84
- id: 76,
85
- start_date: "2022-01-18T17:25:35.000Z",
86
- end_date: "2023-01-18T17:25:35.000Z",
87
- planID: 8,
88
- plan: "prod_KtlhECVSFG2iro",
89
- name: "Plan Pro",
90
- user_limit: "20",
91
- products_limit: "5000",
92
- type: "Enterprise",
123
+ "id_user": 59,
124
+ "name": "The Home",
125
+ "last_name": "Depot",
126
+ "email": "cadena.ismael@allfreemail.net",
127
+ "position": "Admin",
128
+ "telephone": "+523111366336",
129
+ "country": "México",
130
+ "id_company": 817,
131
+ "id_cognito": "5884ae34-59d6-4454-b98e-821518bcc3a7",
132
+ "birth_Date": null,
133
+ "about_me": "",
134
+ "zip_code": "",
135
+ "address": "",
136
+ "job": "",
137
+ "id_stripe": "",
138
+ "id_role": 0,
139
+ "active": 1,
140
+ "is_retailer": 1,
141
+ "email_notify": 0,
142
+ "is_user_tech": null,
143
+ "membership": {
144
+ "id": 47,
145
+ "start_date": "2022-05-25T14:31:12.000Z",
146
+ "end_date": "2023-05-25T14:31:12.000Z",
147
+ "planID": 5,
148
+ "plan": "prod_Ktl6B5Ou2gqTB2",
149
+ "name": "Plan Pro",
150
+ "user_limit": "5",
151
+ "products_limit": "500",
152
+ "type": "PyMES"
93
153
  },
94
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1669927021851",
154
+ "src": "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1668127460068"
95
155
  },
96
156
  company: {
97
- id_company: 1,
98
- trade_name: "GRUPO BRAHMA",
99
- company_name: "GRUPO BRAHMA",
100
- rfc: "XAXX010101000",
101
- adress: "AA",
102
- about_company: "",
103
- telephone: "",
104
- web_site: "",
105
- zip_code: "",
106
- email: null,
107
- social_link: "",
108
- is_retailer: 0,
157
+ "id_company": 817,
158
+ "trade_name": "Retailer acc",
159
+ "company_name": "Retailer acc",
160
+ "rfc": "ASER12345",
161
+ "adress": "Av. Insurgentes",
162
+ "about_company": null,
163
+ "telephone": null,
164
+ "web_site": null,
165
+ "zip_code": null,
166
+ "email": null,
167
+ "social_link": null,
168
+ "is_retailer": 1,
169
+ "financedRetailers": [
170
+ {
171
+ "id": 68,
172
+ "name": "The Home Depot Merchants",
173
+ "country": "México",
174
+ "id_region": 1,
175
+ "active": 1
176
+ }
177
+ ],
178
+ "retailers": [
179
+ {
180
+ "id": 59,
181
+ "name": "The Home Depot Platinum",
182
+ "country": "México"
183
+ },
184
+ {
185
+ "id": 60,
186
+ "name": "The Home Depot Resizing",
187
+ "country": "México"
188
+ },
189
+ {
190
+ "id": 61,
191
+ "name": "Home Depot TAB",
192
+ "country": "México"
193
+ },
194
+ {
195
+ "id": 68,
196
+ "name": "The Home Depot Merchants",
197
+ "country": "México"
198
+ }
199
+ ]
109
200
  },
110
- showSurvey: (v) => v && alert("se muestra"),
201
+ showSurvey: (v) => v && alert('se muestra'),
111
202
  };
@@ -42,6 +42,7 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
42
42
  import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
43
43
  import { VersionSelector } from "../../organisms/VersionSelector";
44
44
  import { useCloseModal } from "../../../global-files/customHooks";
45
+ import { CreateVersion } from "../../organisms/CreateVersion";
45
46
 
46
47
  const reducerImages = (state, action) => {
47
48
  let { values, attrForImgs, inputsByRetailer } = state;
@@ -113,8 +114,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
113
114
  const REGION = "us-east-1";
114
115
 
115
116
  AWS.config.update({
116
- accessKeyId: process.env.REACT_APP_KUTS3,
117
- secretAccessKey: process.env.REACT_APP_AKUTS3,
117
+ accessKeyId: process.env.REACT_APP_KEY_UPLOAD_TO_S3,
118
+ secretAccessKey: process.env.REACT_APP_ACCESS_KEY_UPLOAD_TO_S3,
118
119
  });
119
120
 
120
121
  const myBucket = new AWS.S3({
@@ -251,6 +252,7 @@ export const ProviderProductEdition = ({
251
252
  const [retailerStatus, setRetailerStatus] = useState(
252
253
  product.statusByRetailer
253
254
  );
255
+ const [showCreateVersion, setShowCreateVersion] = useState(false);
254
256
  const [showVersionSelector, setShowVersionSelector] =
255
257
  useCloseModal("version-selector");
256
258
 
@@ -270,6 +272,15 @@ export const ProviderProductEdition = ({
270
272
  setServices(services);
271
273
  await getServices();
272
274
 
275
+ // if (!originProp) {
276
+ // setActiveRetailer(
277
+ // product?.retailers
278
+ // ? product?.retailers[0]
279
+ // : product?.retailersAvailable[0]
280
+ // );
281
+ // }
282
+
283
+ // setActiveRetailer(product?.retailers[0]);
273
284
  setImages({ action: "init", init: services[2] });
274
285
  if (services[2]?.values?.length > 0) setActiveImage(0);
275
286
 
@@ -1486,10 +1497,18 @@ export const ProviderProductEdition = ({
1486
1497
  setVersion={setVersion}
1487
1498
  companyName={company.company_name}
1488
1499
  currentVersion={version}
1500
+ setShowCreateVersion={setShowCreateVersion}
1489
1501
  setShowVersionSelector={setShowVersionSelector}
1490
1502
  jwt={token}
1491
1503
  />
1492
1504
  )}
1505
+ {showCreateVersion && (
1506
+ <CreateVersion
1507
+ idArticle={product.id_article}
1508
+ version={version}
1509
+ setShowCreateVersion={setShowCreateVersion}
1510
+ />
1511
+ )}
1493
1512
  </Container>
1494
1513
  );
1495
1514
  };
@@ -16,116 +16,104 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWU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QysADVxYOlMkAQql328oqoqdXRbZrntnxYxa5EMpmref1bGbSOFk4qgHax4qa3gD2_h291NLjCZS7IMGDSIhOk9r7irItbojM01Q",
20
20
  productSelected: {
21
21
  services: {
22
22
  datasheets: 1,
23
23
  descriptions: 1,
24
24
  images: 1,
25
25
  },
26
- orderId: 123,
26
+ orderId: 3321,
27
27
  status: "PA",
28
- datasheet_status: "PA",
28
+ datasheet_status: "AC",
29
29
  prio: "none",
30
- version: 3,
31
- description_status: "PA",
30
+ version: 2,
31
+ description_status: "AC",
32
32
  images_status: "PA",
33
33
  statusByRetailer: {
34
- 4: {
35
- datasheet: "PA",
36
- description: "PA",
37
- images: "PA",
38
- },
39
- 5: {
40
- datasheet: "PA",
41
- description: "PA",
42
- images: "PA",
43
- },
44
- 6: {
45
- datasheet: "PA",
46
- description: "PA",
34
+ 58: {
35
+ datasheet: "AC",
36
+ description: "AC",
47
37
  images: "PA",
48
38
  },
49
39
  },
50
40
  article: {
51
- id_article: 127,
52
- id_category: "700",
53
- name: "prueba prod flujo",
54
- upc: "34234353324",
55
- timestamp: "2022-11-23T23:12:30.000Z",
56
- id_user: 28,
57
- status: "NULL",
41
+ id_article: 85655,
42
+ id_category: "2052",
43
+ name: "EXTENSION P/ EXTERIOR 3X10 AWG 10M ROJO",
44
+ upc: "165679",
45
+ timestamp: "2022-11-01T15:46:51.000Z",
46
+ id_user: 1436,
47
+ status: null,
58
48
  active: 1,
59
- company_id: 1,
60
- company_name: "GRUPO BRAHMA",
61
- country: "México",
62
- id_order: 123,
63
- id_datasheet_especialist: 54,
64
- id_datasheet_facilitator: 52,
65
- id_description_especialist: 54,
66
- id_description_facilitator: 52,
67
- id_images_especialist: 55,
68
- id_images_facilitator: 53,
69
- id_auditor: 37,
49
+ company_id: 409,
50
+ SKU: null,
51
+ Descripcion: null,
52
+ Proveedor: null,
53
+ id_proveedor: 0,
54
+ company_name: "HIGHLINE-WARREN LLC",
55
+ country: null,
56
+ id_order: 3321,
57
+ id_datasheet_especialist: 1248,
58
+ id_datasheet_facilitator: null,
59
+ id_description_especialist: 1248,
60
+ id_description_facilitator: null,
61
+ id_images_especialist: null,
62
+ id_images_facilitator: null,
63
+ id_auditor: null,
70
64
  id_recepcionist: null,
71
65
  category:
72
- "Salud y Belleza|Cuidado Facial|Cremas, Mascarillas y Tratamientos",
73
- missingAttributes: 0,
74
- missingDescriptions: 0,
75
- missingImages: 0,
66
+ "Eléctrico|Extensiones y Multicontactos|Extensiones y Multicontactos",
67
+ missingAttributes: null,
68
+ missingDescriptions: null,
69
+ missingImages: null,
76
70
  },
77
71
  retailers: [
78
72
  {
79
- id: 4,
80
- name: "Walmart Super y Superama",
81
- },
82
- {
83
- id: 5,
84
- name: "Chedraui",
85
- },
86
- {
87
- id: 6,
88
- name: "HEB",
73
+ id: 58,
74
+ name: "The Home Depot Golden",
75
+ country: "México",
76
+ id_region: 1,
77
+ active: 1,
89
78
  },
90
79
  ],
91
- country: "México",
92
- upc: "34234353324",
80
+ country: null,
81
+ upc: "165679",
93
82
  },
94
83
  location: {
95
84
  product: { articleId: 109485, versionId: 3 },
96
85
  },
97
86
  user: {
98
- id_user: 51,
99
- name: "ADMIN PRUEBA",
100
- last_name: "",
101
- email: "etc@contentoh.com",
102
- position: "",
103
- telephone: "",
104
- country: "",
105
- id_company: 2,
106
- id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
87
+ id_user: 426,
88
+ name: "Especialista Textos",
89
+ last_name: " ",
90
+ email: "karafe3218@mom2kid.com",
91
+ position: "Tester",
92
+ telephone: null,
93
+ country: null,
94
+ id_company: 254,
95
+ id_cognito: "8d010214-5bfa-43c3-96fb-c556dc05774b",
107
96
  birth_Date: null,
108
- about_me: "",
109
- zip_code: "",
110
- address: "",
111
- job: "",
112
- id_stripe: "",
113
- id_role: 1,
97
+ about_me: null,
98
+ zip_code: null,
99
+ address: null,
100
+ job: null,
101
+ id_stripe: null,
102
+ id_role: 7,
114
103
  active: 1,
115
104
  is_retailer: 0,
116
- email_notify: 1,
117
- is_user_tech: null,
105
+ email_notify: null,
118
106
  membership: {
119
- id: 2,
120
- start_date: "2021-11-05T02:35:12.000Z",
121
- end_date: "2022-11-05T02:34:49.000Z",
122
- planID: 1,
123
- plan: "prod_KtkvuFFLpOdP6e",
124
- name: "Plan Free",
125
- user_limit: "1",
126
- products_limit: "3",
127
- type: "PyMES",
107
+ id: 750,
108
+ start_date: "2022-01-07T21:32:54.000Z",
109
+ end_date: "2023-01-07T21:32:54.000Z",
110
+ planID: 6,
111
+ plan: "prod_KvGd6YSTJyR3AP",
112
+ name: "Plan Small",
113
+ user_limit: "10",
114
+ products_limit: "1000",
115
+ type: "Enterprise",
128
116
  },
129
- src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1669928511679",
117
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-426/426.png?1667321494598",
130
118
  },
131
119
  };
@@ -32,6 +32,7 @@ import succes from "../../../assets/images/genericModal/genericModalCheck.svg";
32
32
  import errorModal from "../../../assets/images/genericModal/errorModal.svg";
33
33
  import { VersionSelector } from "../../organisms/VersionSelector";
34
34
  import { useCloseModal } from "../../../global-files/customHooks";
35
+ import { CreateVersion } from "../../organisms/CreateVersion";
35
36
 
36
37
  const reducerImages = (state, action) => {
37
38
  let { values, attrForImgs, inputsByRetailer } = state;
@@ -107,8 +108,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
107
108
  const REGION = "us-east-1";
108
109
 
109
110
  AWS.config.update({
110
- accessKeyId: process.env.REACT_APP_KUTS3,
111
- secretAccessKey: process.env.REACT_APP_AKUTS3,
111
+ accessKeyId: process.env.REACT_APP_KEY_UPLOAD_TO_S3,
112
+ secretAccessKey: process.env.REACT_APP_ACCESS_KEY_UPLOAD_TO_S3,
112
113
  });
113
114
 
114
115
  const myBucket = new AWS.S3({
@@ -205,7 +206,10 @@ export const RetailerProductEdition = ({
205
206
  const [retailerStatus, setRetailerStatus] = useState("-");
206
207
  const [statusArray, setStatusArray] = useState([]);
207
208
  const [socketType, setSocketType] = useState(null);
209
+ const [servicesStatus, setServicesStatus] = useState([]);
208
210
  const [saving, setSaving] = useState(loading);
211
+ const isAuditor = user.id_role === 6;
212
+ const [showCreateVersion, setShowCreateVersion] = useState(false);
209
213
  const [showVersionSelector, setShowVersionSelector] =
210
214
  useCloseModal("version-selector");
211
215
  const shotThd = [58, 59, 60, 61].includes(activeRetailer.id);
@@ -1545,10 +1549,18 @@ export const RetailerProductEdition = ({
1545
1549
  setVersion={setVersion}
1546
1550
  companyName={product.article.company_name}
1547
1551
  currentVersion={version}
1552
+ setShowCreateVersion={setShowCreateVersion}
1548
1553
  setShowVersionSelector={setShowVersionSelector}
1549
1554
  jwt={token}
1550
1555
  />
1551
1556
  )}
1557
+ {showCreateVersion && (
1558
+ <CreateVersion
1559
+ idArticle={product.article.id_article}
1560
+ version={version}
1561
+ setShowCreateVersion={setShowCreateVersion}
1562
+ />
1563
+ )}
1552
1564
  </Container>
1553
1565
  );
1554
1566
  };
@@ -1,4 +1,5 @@
1
- import { useState, useEffect } from "react";
1
+ import { useState } from "react";
2
+ import { useEffect } from "react";
2
3
 
3
4
  export const useCloseModal = (id) => {
4
5
  const [showModal, setShowModal] = useState(false);
@@ -10,7 +11,6 @@ export const useCloseModal = (id) => {
10
11
  setShowModal(false);
11
12
  }
12
13
  };
13
-
14
14
  useEffect(() => {
15
15
  if (showModal) {
16
16
  document.addEventListener("click", closeModal, false);
@@ -61,3 +61,15 @@
61
61
  src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
62
62
  font-weight: 400;
63
63
  }
64
+
65
+ @font-face {
66
+ font-family: "Roboto";
67
+ src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
68
+ font-weight: 400;
69
+ }
70
+
71
+ .prueba {
72
+ color: #9e3e26;
73
+ color: #b42983;
74
+ color: #e7e7e7;
75
+ }