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