contentoh-components-library 21.3.52 → 21.3.54

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 (36) hide show
  1. package/.env.development +2 -0
  2. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  3. package/dist/components/molecules/HeaderTop/index.js +68 -11
  4. package/dist/components/organisms/Chat/Chat.stories.js +21 -1
  5. package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
  6. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  7. package/dist/components/organisms/Chat/ContentChat/index.js +343 -191
  8. package/dist/components/organisms/Chat/Footer/index.js +48 -39
  9. package/dist/components/organisms/Chat/index.js +48 -3
  10. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  11. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +190 -111
  12. package/dist/components/pages/ProviderProductEdition/index.js +193 -152
  13. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  14. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -57
  15. package/dist/components/pages/RetailerProductEdition/index.js +266 -277
  16. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  17. package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
  18. package/package.json +1 -1
  19. package/src/components/molecules/AvatarAndValidation/index.js +1 -1
  20. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  21. package/src/components/molecules/HeaderTop/index.js +52 -6
  22. package/src/components/organisms/Chat/Chat.stories.js +21 -0
  23. package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
  24. package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
  25. package/src/components/organisms/Chat/ContentChat/index.js +81 -6
  26. package/src/components/organisms/Chat/Footer/index.js +11 -0
  27. package/src/components/organisms/Chat/index.js +47 -3
  28. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  29. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +202 -115
  30. package/src/components/pages/ProviderProductEdition/index.js +109 -75
  31. package/src/components/pages/ProviderProductEdition/styles.js +5 -1
  32. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +93 -59
  33. package/src/components/pages/RetailerProductEdition/index.js +110 -136
  34. package/src/components/pages/RetailerProductEdition/styles.js +4 -0
  35. package/src/components/pages/RetailerProductEdition/utils.js +37 -0
  36. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
@@ -10,127 +10,238 @@ const Template = (args) => <ProviderProductEdition {...args} />;
10
10
  export const ProviderProductEditionDefault = Template.bind({});
11
11
 
12
12
  ProviderProductEditionDefault.args = {
13
+ tabsSections: {
14
+ Descripción: true,
15
+ "Ficha técnica": false,
16
+ Imágenes: false,
17
+ },
18
+ token:
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
20
+ articleId: 238,
21
+ category: 846,
22
+ version: 2,
13
23
  productSelected: {
14
- orderId: 15104,
15
- article_status: "AP",
16
- datasheet_status: "AP",
17
- description_status: "AP",
18
- images_status: "AP",
24
+ orderId: 15142,
25
+ status: "AA",
26
+ datasheet_status: "AA",
19
27
  prio: "none",
20
28
  version: 3,
21
- brand: null,
29
+ description_status: "AA",
30
+ images_status: "AA",
31
+ brand: "Garnier",
32
+ retailerOrder: 0,
33
+ missing: {
34
+ datasheet: null,
35
+ descriptions: null,
36
+ images: null,
37
+ },
38
+ services: {
39
+ datasheets: 1,
40
+ descriptions: 1,
41
+ images: 1,
42
+ },
22
43
  article: {
23
- category: "Juguetes|Juguetes|Juguetes",
24
- company_name: "Financiado Bodega",
25
- id_company: 912,
44
+ category:
45
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
46
+ company_name: "GRUPO BRAHMA",
26
47
  country: "México",
27
- id_category: "4208",
28
- id_article: 37565,
29
- name: "CARRIOLA Y MUNECA 30CM",
30
- upc: "26253713368",
48
+ id_category: "697",
49
+ id_datasheet_especialist: 54,
50
+ id_datasheet_facilitator: 52,
51
+ id_description_especialist: 54,
52
+ id_description_facilitator: 52,
53
+ id_images_especialist: 55,
54
+ id_images_facilitator: 53,
55
+ id_order: 15142,
56
+ id_article: 39270,
57
+ id_auditor: 37,
58
+ name: "Acondicionador Garnier Fructis 650 ml",
59
+ timestamp: "2023-03-27T18:37:48.000Z",
60
+ upc: "750955287656712",
31
61
  },
32
62
  retailers: [
33
63
  {
34
- id: 70,
35
- name: "Bodega Aurrera",
64
+ id: 12,
65
+ name: "La Comer",
66
+ },
67
+ {
68
+ id: 29,
69
+ name: "Farmacias del Ahorro",
70
+ },
71
+ {
72
+ id: 63,
73
+ name: "DAX",
36
74
  },
37
75
  ],
38
- services: {
39
- datasheets: 1,
40
- descriptions: 1,
41
- images: 1,
42
- },
43
76
  statusByRetailer: {
44
- 70: {
45
- datasheet: "AP",
46
- description: "AP",
47
- images: "AP",
77
+ 12: {
78
+ datasheet: "AA",
79
+ description: "AA",
80
+ images: "AA",
81
+ },
82
+ 29: {
83
+ datasheet: "AA",
84
+ description: "AA",
85
+ images: "AA",
86
+ },
87
+ 63: {
88
+ datasheet: "AA",
89
+ description: "AA",
90
+ images: "AA",
48
91
  },
49
92
  },
50
- retailersWithService: ["70"],
51
- id_article: 37565,
93
+ checked: false,
52
94
  retailersAvailable: [
53
95
  {
54
- id: 70,
55
- name: "Bodega Aurrera",
96
+ id: 12,
97
+ name: "La Comer",
98
+ },
99
+ {
100
+ id: 29,
101
+ name: "Farmacias del Ahorro",
102
+ },
103
+ {
104
+ id: 63,
105
+ name: "DAX",
56
106
  },
57
107
  ],
108
+ categoryName:
109
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
110
+ upc: "750955287656712",
111
+ id_article: 39270,
112
+ id_order: 15142,
58
113
  },
59
114
  productToEdit: {
60
- ArticleId: 37565,
61
- idCategory: "4208",
115
+ ArticleId: 39270,
116
+ idCategory: "697",
62
117
  product: {
63
- orderId: 15104,
64
- article_status: "AP",
65
- datasheet_status: "AP",
66
- description_status: "AP",
67
- images_status: "AP",
118
+ orderId: 15142,
119
+ status: "AA",
120
+ datasheet_status: "AA",
68
121
  prio: "none",
69
122
  version: 3,
70
- brand: null,
123
+ description_status: "AA",
124
+ images_status: "AA",
125
+ brand: "Garnier",
126
+ retailerOrder: 0,
127
+ missing: {
128
+ datasheet: null,
129
+ descriptions: null,
130
+ images: null,
131
+ },
132
+ services: {
133
+ datasheets: 1,
134
+ descriptions: 1,
135
+ images: 1,
136
+ },
71
137
  article: {
72
- category: "Juguetes|Juguetes|Juguetes",
73
- company_name: "Financiado Bodega",
74
- id_company: 912,
138
+ category:
139
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
140
+ company_name: "GRUPO BRAHMA",
75
141
  country: "México",
76
- id_category: "4208",
77
- id_article: 37565,
78
- name: "CARRIOLA Y MUNECA 30CM",
79
- upc: "26253713368",
142
+ id_category: "697",
143
+ id_datasheet_especialist: 54,
144
+ id_datasheet_facilitator: 52,
145
+ id_description_especialist: 54,
146
+ id_description_facilitator: 52,
147
+ id_images_especialist: 55,
148
+ id_images_facilitator: 53,
149
+ id_order: 15142,
150
+ id_article: 39270,
151
+ id_auditor: 37,
152
+ name: "Acondicionador Garnier Fructis 650 ml",
153
+ timestamp: "2023-03-27T18:37:48.000Z",
154
+ upc: "750955287656712",
80
155
  },
81
156
  retailers: [
82
157
  {
83
- id: 70,
84
- name: "Bodega Aurrera",
158
+ id: 12,
159
+ name: "La Comer",
160
+ },
161
+ {
162
+ id: 29,
163
+ name: "Farmacias del Ahorro",
164
+ },
165
+ {
166
+ id: 63,
167
+ name: "DAX",
85
168
  },
86
169
  ],
87
- services: {
88
- datasheets: 1,
89
- descriptions: 1,
90
- images: 1,
91
- },
92
170
  statusByRetailer: {
93
- 70: {
94
- datasheet: "AP",
95
- description: "AP",
96
- images: "AP",
171
+ 12: {
172
+ datasheet: "AA",
173
+ description: "AA",
174
+ images: "AA",
175
+ },
176
+ 29: {
177
+ datasheet: "AA",
178
+ description: "AA",
179
+ images: "AA",
180
+ },
181
+ 63: {
182
+ datasheet: "AA",
183
+ description: "AA",
184
+ images: "AA",
97
185
  },
98
186
  },
99
- retailersWithService: ["70"],
100
- id_article: 37565,
187
+ checked: false,
101
188
  retailersAvailable: [
102
189
  {
103
- id: 70,
104
- name: "Bodega Aurrera",
190
+ id: 12,
191
+ name: "La Comer",
192
+ },
193
+ {
194
+ id: 29,
195
+ name: "Farmacias del Ahorro",
196
+ },
197
+ {
198
+ id: 63,
199
+ name: "DAX",
105
200
  },
106
201
  ],
202
+ categoryName:
203
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
204
+ upc: "750955287656712",
205
+ id_article: 39270,
206
+ id_order: 15142,
107
207
  },
108
208
  },
209
+ location: {
210
+ pathname: "/EditProducts",
211
+ search: "",
212
+ hash: "",
213
+ state: {
214
+ withChat: true,
215
+ chatType: "product_status",
216
+ origin: "RequestWithContentoh",
217
+ },
218
+ key: "24vwut",
219
+ },
109
220
  user: {
110
- id_user: 132,
111
- name: "Bodega",
112
- last_name: "Aurrera",
113
- email: "cadenabodega@allfreemail.net",
114
- position: "TI",
115
- telephone: "+529999999999",
221
+ id_user: 28,
222
+ name: "Ismael",
223
+ last_name: "López",
224
+ email: "ilopez@contentoh.com",
225
+ position: "Test States",
226
+ telephone: "+523111366336",
116
227
  country: "México",
117
- id_company: 912,
118
- id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
228
+ id_company: 1,
229
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
119
230
  birth_Date: null,
120
- about_me: null,
121
- zip_code: null,
122
- address: null,
123
- job: null,
124
- id_stripe: null,
231
+ about_me: "",
232
+ zip_code: "",
233
+ address: "",
234
+ job: "",
235
+ id_stripe: "cus_KuEt6R6vwmN09f",
125
236
  id_role: 0,
126
237
  active: 1,
127
- is_retailer: 1,
238
+ is_retailer: 0,
128
239
  email_notify: 1,
129
- is_user_tech: null,
240
+ is_user_tech: "ADMIN-AS",
130
241
  membership: {
131
- id: 101,
132
- start_date: "2022-12-22T19:16:53.000Z",
133
- end_date: "2023-12-22T19:16:53.000Z",
242
+ id: 76,
243
+ start_date: "2022-01-18T17:25:35.000Z",
244
+ end_date: "2023-01-18T17:25:35.000Z",
134
245
  planID: 8,
135
246
  plan: "prod_KtlhECVSFG2iro",
136
247
  name: "Plan Pro",
@@ -138,52 +249,28 @@ ProviderProductEditionDefault.args = {
138
249
  products_limit: "5000",
139
250
  type: "Enterprise",
140
251
  },
141
- src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683921632099",
252
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
142
253
  },
143
254
  company: {
144
- id_company: 912,
145
- trade_name: "Financiado Bodega",
146
- company_name: "Bodega",
147
- rfc: "9395jwhs",
148
- adress: "Toluca",
149
- about_company: null,
150
- telephone: null,
151
- web_site: null,
152
- zip_code: null,
255
+ id_company: 1,
256
+ trade_name: "GRUPO BRAHMA",
257
+ company_name: "GRUPO BRAHMA",
258
+ rfc: "XAXX010101000",
259
+ adress: "AA",
260
+ about_company: "",
261
+ telephone: "",
262
+ web_site: "",
263
+ zip_code: "",
153
264
  email: null,
154
- social_link: null,
265
+ social_link: "",
155
266
  is_retailer: 0,
156
- financedRetailers: [
157
- {
158
- id: 70,
159
- name: "Bodega Aurrera",
160
- country: "México",
161
- id_region: 1,
162
- active: 1,
163
- },
164
- ],
165
267
  retailers: [
166
268
  {
167
- id: 70,
168
- name: "Bodega Aurrera",
169
- country: "México",
269
+ id: null,
270
+ name: null,
271
+ country: null,
170
272
  },
171
273
  ],
172
274
  },
173
- token:
174
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvU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3CibykwALv_GPw8FtRZlXJMi7j9yKs4ftHaqVGiO7lvI7gqPWXyd1U-NcH-W6CtuyNGpKbexVDgy_nb1esvV0vaMGTq85CgrC4gL3MWEMQg",
175
- tabsSections: {
176
- Descripción: true,
177
- "Ficha técnica": false,
178
- Imágenes: false,
179
- },
180
- location: {
181
- pathname: "/products/37565/datasheet",
182
- state: {
183
- origin: "RequestWithContentoh",
184
- },
185
- search: "",
186
- hash: "",
187
- key: "oym1rf",
188
- },
275
+ showSurvey: (v) => v && alert("se muestra"),
189
276
  };