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
@@ -26,119 +26,217 @@ var Template = function Template(args) {
26
26
  var ProviderProductEditionDefault = Template.bind({});
27
27
  exports.ProviderProductEditionDefault = ProviderProductEditionDefault;
28
28
  ProviderProductEditionDefault.args = {
29
+ tabsSections: {
30
+ Descripción: true,
31
+ "Ficha técnica": false,
32
+ Imágenes: false
33
+ },
34
+ token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
35
+ articleId: 238,
36
+ category: 846,
37
+ version: 2,
29
38
  productSelected: {
30
- orderId: 15104,
31
- article_status: "AP",
32
- datasheet_status: "AP",
33
- description_status: "AP",
34
- images_status: "AP",
39
+ orderId: 15142,
40
+ status: "AA",
41
+ datasheet_status: "AA",
35
42
  prio: "none",
36
43
  version: 3,
37
- brand: null,
38
- article: {
39
- category: "Juguetes|Juguetes|Juguetes",
40
- company_name: "Financiado Bodega",
41
- id_company: 912,
42
- country: "México",
43
- id_category: "4208",
44
- id_article: 37565,
45
- name: "CARRIOLA Y MUNECA 30CM",
46
- upc: "26253713368"
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
47
52
  },
48
- retailers: [{
49
- id: 70,
50
- name: "Bodega Aurrera"
51
- }],
52
53
  services: {
53
54
  datasheets: 1,
54
55
  descriptions: 1,
55
56
  images: 1
56
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
+ }],
57
86
  statusByRetailer: {
58
- 70: {
59
- datasheet: "AP",
60
- description: "AP",
61
- images: "AP"
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"
62
101
  }
63
102
  },
64
- retailersWithService: ["70"],
65
- id_article: 37565,
103
+ checked: false,
66
104
  retailersAvailable: [{
67
- id: 70,
68
- name: "Bodega Aurrera"
69
- }]
105
+ id: 12,
106
+ name: "La Comer"
107
+ }, {
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
70
118
  },
71
119
  productToEdit: {
72
- ArticleId: 37565,
73
- idCategory: "4208",
120
+ ArticleId: 39270,
121
+ idCategory: "697",
74
122
  product: {
75
- orderId: 15104,
76
- article_status: "AP",
77
- datasheet_status: "AP",
78
- description_status: "AP",
79
- images_status: "AP",
123
+ orderId: 15142,
124
+ status: "AA",
125
+ datasheet_status: "AA",
80
126
  prio: "none",
81
127
  version: 3,
82
- brand: null,
83
- article: {
84
- category: "Juguetes|Juguetes|Juguetes",
85
- company_name: "Financiado Bodega",
86
- id_company: 912,
87
- country: "México",
88
- id_category: "4208",
89
- id_article: 37565,
90
- name: "CARRIOLA Y MUNECA 30CM",
91
- upc: "26253713368"
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
92
136
  },
93
- retailers: [{
94
- id: 70,
95
- name: "Bodega Aurrera"
96
- }],
97
137
  services: {
98
138
  datasheets: 1,
99
139
  descriptions: 1,
100
140
  images: 1
101
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
+ }],
102
170
  statusByRetailer: {
103
- 70: {
104
- datasheet: "AP",
105
- description: "AP",
106
- 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"
107
185
  }
108
186
  },
109
- retailersWithService: ["70"],
110
- id_article: 37565,
187
+ checked: false,
111
188
  retailersAvailable: [{
112
- id: 70,
113
- name: "Bodega Aurrera"
114
- }]
189
+ id: 12,
190
+ name: "La Comer"
191
+ }, {
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
115
202
  }
116
203
  },
204
+ location: {
205
+ pathname: "/EditProducts",
206
+ search: "",
207
+ hash: "",
208
+ state: {
209
+ withChat: true,
210
+ chatType: "product_status",
211
+ origin: "RequestWithContentoh"
212
+ },
213
+ key: "24vwut"
214
+ },
117
215
  user: {
118
- id_user: 132,
119
- name: "Bodega",
120
- last_name: "Aurrera",
121
- email: "cadenabodega@allfreemail.net",
122
- position: "TI",
123
- telephone: "+529999999999",
216
+ id_user: 28,
217
+ name: "Ismael",
218
+ last_name: "López",
219
+ email: "ilopez@contentoh.com",
220
+ position: "Test States",
221
+ telephone: "+523111366336",
124
222
  country: "México",
125
- id_company: 912,
126
- id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
223
+ id_company: 1,
224
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
127
225
  birth_Date: null,
128
- about_me: null,
129
- zip_code: null,
130
- address: null,
131
- job: null,
132
- id_stripe: null,
226
+ about_me: "",
227
+ zip_code: "",
228
+ address: "",
229
+ job: "",
230
+ id_stripe: "cus_KuEt6R6vwmN09f",
133
231
  id_role: 0,
134
232
  active: 1,
135
- is_retailer: 1,
233
+ is_retailer: 0,
136
234
  email_notify: 1,
137
- is_user_tech: null,
235
+ is_user_tech: "ADMIN-AS",
138
236
  membership: {
139
- id: 101,
140
- start_date: "2022-12-22T19:16:53.000Z",
141
- end_date: "2023-12-22T19:16:53.000Z",
237
+ id: 76,
238
+ start_date: "2022-01-18T17:25:35.000Z",
239
+ end_date: "2023-01-18T17:25:35.000Z",
142
240
  planID: 8,
143
241
  plan: "prod_KtlhECVSFG2iro",
144
242
  name: "Plan Pro",
@@ -146,47 +244,28 @@ ProviderProductEditionDefault.args = {
146
244
  products_limit: "5000",
147
245
  type: "Enterprise"
148
246
  },
149
- src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683921632099"
247
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779"
150
248
  },
151
249
  company: {
152
- id_company: 912,
153
- trade_name: "Financiado Bodega",
154
- company_name: "Bodega",
155
- rfc: "9395jwhs",
156
- adress: "Toluca",
157
- about_company: null,
158
- telephone: null,
159
- web_site: null,
160
- zip_code: null,
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: "",
161
259
  email: null,
162
- social_link: null,
260
+ social_link: "",
163
261
  is_retailer: 0,
164
- financedRetailers: [{
165
- id: 70,
166
- name: "Bodega Aurrera",
167
- country: "México",
168
- id_region: 1,
169
- active: 1
170
- }],
171
262
  retailers: [{
172
- id: 70,
173
- name: "Bodega Aurrera",
174
- country: "México"
263
+ id: null,
264
+ name: null,
265
+ country: null
175
266
  }]
176
267
  },
177
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ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Imágenes: false
182
- },
183
- location: {
184
- pathname: "/products/37565/datasheet",
185
- state: {
186
- origin: "RequestWithContentoh"
187
- },
188
- search: "",
189
- hash: "",
190
- key: "oym1rf"
268
+ showSurvey: function showSurvey(v) {
269
+ return v && alert("se muestra");
191
270
  }
192
271
  };