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.
- package/.env.development +2 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/organisms/Chat/Chat.stories.js +21 -1
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +343 -191
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +48 -3
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +190 -111
- package/dist/components/pages/ProviderProductEdition/index.js +193 -152
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -57
- package/dist/components/pages/RetailerProductEdition/index.js +266 -277
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/package.json +1 -1
- package/src/components/molecules/AvatarAndValidation/index.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/organisms/Chat/Chat.stories.js +21 -0
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
- package/src/components/organisms/Chat/ContentChat/index.js +81 -6
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +47 -3
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +202 -115
- package/src/components/pages/ProviderProductEdition/index.js +109 -75
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +93 -59
- package/src/components/pages/RetailerProductEdition/index.js +110 -136
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- 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:
|
|
15
|
-
|
|
16
|
-
datasheet_status: "
|
|
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
|
-
|
|
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:
|
|
24
|
-
|
|
25
|
-
|
|
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: "
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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:
|
|
35
|
-
name: "
|
|
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
|
-
|
|
45
|
-
datasheet: "
|
|
46
|
-
description: "
|
|
47
|
-
images: "
|
|
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
|
-
|
|
51
|
-
id_article: 37565,
|
|
93
|
+
checked: false,
|
|
52
94
|
retailersAvailable: [
|
|
53
95
|
{
|
|
54
|
-
id:
|
|
55
|
-
name: "
|
|
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:
|
|
61
|
-
idCategory: "
|
|
115
|
+
ArticleId: 39270,
|
|
116
|
+
idCategory: "697",
|
|
62
117
|
product: {
|
|
63
|
-
orderId:
|
|
64
|
-
|
|
65
|
-
datasheet_status: "
|
|
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
|
-
|
|
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:
|
|
73
|
-
|
|
74
|
-
|
|
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: "
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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:
|
|
84
|
-
name: "
|
|
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
|
-
|
|
94
|
-
datasheet: "
|
|
95
|
-
description: "
|
|
96
|
-
images: "
|
|
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
|
-
|
|
100
|
-
id_article: 37565,
|
|
187
|
+
checked: false,
|
|
101
188
|
retailersAvailable: [
|
|
102
189
|
{
|
|
103
|
-
id:
|
|
104
|
-
name: "
|
|
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:
|
|
111
|
-
name: "
|
|
112
|
-
last_name: "
|
|
113
|
-
email: "
|
|
114
|
-
position: "
|
|
115
|
-
telephone: "+
|
|
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:
|
|
118
|
-
id_cognito: "
|
|
228
|
+
id_company: 1,
|
|
229
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
119
230
|
birth_Date: null,
|
|
120
|
-
about_me:
|
|
121
|
-
zip_code:
|
|
122
|
-
address:
|
|
123
|
-
job:
|
|
124
|
-
id_stripe:
|
|
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:
|
|
238
|
+
is_retailer: 0,
|
|
128
239
|
email_notify: 1,
|
|
129
|
-
is_user_tech:
|
|
240
|
+
is_user_tech: "ADMIN-AS",
|
|
130
241
|
membership: {
|
|
131
|
-
id:
|
|
132
|
-
start_date: "2022-
|
|
133
|
-
end_date: "2023-
|
|
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-
|
|
252
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
|
|
142
253
|
},
|
|
143
254
|
company: {
|
|
144
|
-
id_company:
|
|
145
|
-
trade_name: "
|
|
146
|
-
company_name: "
|
|
147
|
-
rfc: "
|
|
148
|
-
adress: "
|
|
149
|
-
about_company:
|
|
150
|
-
telephone:
|
|
151
|
-
web_site:
|
|
152
|
-
zip_code:
|
|
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:
|
|
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:
|
|
168
|
-
name:
|
|
169
|
-
country:
|
|
269
|
+
id: null,
|
|
270
|
+
name: null,
|
|
271
|
+
country: null,
|
|
170
272
|
},
|
|
171
273
|
],
|
|
172
274
|
},
|
|
173
|
-
|
|
174
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIzNzVlYjM0NC05NDlkLTQ5ZWYtOWZmYy1iOWExZmM3MmU1ZTUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyMTYzMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyNTIzMSwiaWF0IjoxNjgzOTIxNjMxLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.mtA-W1rNzbIveH7a9R8f8Fam7mNLmD0hX6PyRteCA7sJbfT733X_dnETZ3z1-_o7PgELGL-6rHitcj0K9ktGN1TXXewNF3eOOysXfBv5E1mUnnzuCeEm9XCZf-BjHgw4FNAI2BW8CDLJYlfVLLR-TPncVbRtUoXGVY3Vnq2rM6Ziw57uSIOWVzwH9UyYoFpSkl2qnmg7NpDrKA5wG8VRyTbUoRQpSysTxW-Q5epDaxD3CibykwALv_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
|
};
|