contentoh-components-library 21.3.3 → 21.3.5
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 -5
- package/.env.production +25 -25
- package/dist/components/atoms/GeneralButton/index.js +6 -2
- package/dist/components/atoms/Select/VersionSelect.js +2 -1
- package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
- package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
- package/dist/components/molecules/HeaderTop/index.js +5 -10
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
- package/dist/components/organisms/CreateVersion/index.js +30 -89
- package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/dist/components/organisms/OrderDetail/index.js +20 -11
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/utils.js +45 -15
- package/dist/components/organisms/VersionSelector/index.js +28 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +69 -147
- package/dist/components/pages/ProviderProductEdition/index.js +19 -39
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -67
- package/dist/components/pages/RetailerProductEdition/index.js +5 -24
- package/dist/global-files/fonts.css +3 -15
- package/dist/global-files/variables.js +0 -2
- package/dist/index.js +46 -267
- package/package.json +1 -12
- package/src/components/atoms/GeneralButton/index.js +4 -1
- package/src/components/atoms/Select/VersionSelect.js +4 -2
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +12 -20
- package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
- package/src/components/molecules/HeaderTop/index.js +6 -11
- package/src/components/molecules/HeaderTop/styles.js +0 -4
- package/src/components/organisms/CreateVersion/RenderChilds.js +28 -34
- package/src/components/organisms/CreateVersion/index.js +16 -36
- package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +19 -12
- package/src/components/organisms/OrderDetail/styles.js +1 -0
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +26 -0
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +30 -15
- package/src/components/organisms/VersionSelector/index.js +18 -3
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +75 -166
- package/src/components/pages/ProviderProductEdition/index.js +3 -22
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +79 -67
- package/src/components/pages/RetailerProductEdition/index.js +2 -14
- package/src/global-files/customHooks.js +2 -2
- package/src/global-files/fonts.css +3 -15
- package/src/global-files/variables.js +0 -2
- package/src/index.js +0 -17
- package/dist/assets/images/customSelect/starIcon.svg +0 -14
- package/dist/assets/images/defaultImages/Spinner.gif +0 -0
- package/dist/assets/images/defaultImages/notFound.svg +0 -124
- package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -72
- package/dist/components/atoms/ButtonFileChooser/index.js +0 -118
- package/dist/components/atoms/ButtonFileChooser/styles.js +0 -20
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +0 -66
- package/dist/components/atoms/ButtonV2/index.js +0 -110
- package/dist/components/atoms/ButtonV2/styles.js +0 -53
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +0 -50
- package/dist/components/atoms/CustomIcon/index.js +0 -40
- package/dist/components/atoms/CustomIcon/styles.js +0 -33
- package/dist/components/atoms/IconFile/IconFile.stories.js +0 -48
- package/dist/components/atoms/IconFile/index.js +0 -249
- package/dist/components/atoms/IconFile/styles.js +0 -23
- package/dist/components/atoms/Image/Image.stories.js +0 -73
- package/dist/components/atoms/Image/index.js +0 -76
- package/dist/components/atoms/Image/styles.js +0 -43
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +0 -63
- package/dist/components/atoms/ImageLink/index.js +0 -77
- package/dist/components/atoms/ImageLink/styles.js +0 -40
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +0 -70
- package/dist/components/atoms/ImagePreview/index.js +0 -222
- package/dist/components/atoms/ImagePreview/styles.js +0 -44
- package/dist/components/atoms/InputText/InputText.stories.js +0 -60
- package/dist/components/atoms/InputText/index.js +0 -66
- package/dist/components/atoms/InputText/styles.js +0 -32
- package/dist/components/atoms/NotFound/NotFound.stories.js +0 -36
- package/dist/components/atoms/NotFound/index.js +0 -75
- package/dist/components/atoms/NotFound/styles.js +0 -20
- package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -45
- package/dist/components/atoms/SelectItemV2/index.js +0 -57
- package/dist/components/atoms/SelectItemV2/styles.js +0 -30
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +0 -66
- package/dist/components/atoms/Tooltip/index.js +0 -72
- package/dist/components/atoms/Tooltip/styles.js +0 -20
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -66
- package/dist/components/molecules/ButtonDownloadFile/index.js +0 -179
- package/dist/components/molecules/ButtonDownloadFile/styles.js +0 -23
- package/dist/components/molecules/Dropdown/Dropdown.stories.js +0 -98
- package/dist/components/molecules/Dropdown/index.js +0 -150
- package/dist/components/molecules/Dropdown/styles.js +0 -26
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -82
- package/dist/components/molecules/ImageTooltip/index.js +0 -85
- package/dist/components/molecules/ImageTooltip/styles.js +0 -33
- package/dist/components/molecules/SelectV2/SelectV2.stories.js +0 -119
- package/dist/components/molecules/SelectV2/index.js +0 -306
- package/dist/components/molecules/SelectV2/styles.js +0 -42
- package/dist/components/molecules/SelectV2/test.js +0 -95
- package/dist/components/molecules/SelectV2/test.stories.js +0 -27
- package/dist/components/organisms/Chat/Chat.stories.js +0 -215
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -83
- package/dist/components/organisms/Chat/ChatLists/index.js +0 -160
- package/dist/components/organisms/Chat/ChatLists/styles.js +0 -29
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -176
- package/dist/components/organisms/Chat/ContainerItems/index.js +0 -569
- package/dist/components/organisms/Chat/ContainerItems/styles.js +0 -20
- package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -142
- package/dist/components/organisms/Chat/ContentChat/index.js +0 -1422
- package/dist/components/organisms/Chat/ContentChat/styles.js +0 -20
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +0 -43
- package/dist/components/organisms/Chat/Footer/index.js +0 -984
- package/dist/components/organisms/Chat/Footer/styles.js +0 -32
- package/dist/components/organisms/Chat/Header/Header.stories.js +0 -96
- package/dist/components/organisms/Chat/Header/index.js +0 -84
- package/dist/components/organisms/Chat/Header/styles.js +0 -20
- package/dist/components/organisms/Chat/index.js +0 -327
- package/dist/components/organisms/Chat/styles.js +0 -29
- package/dist/components/organisms/Modal/Modal.stories.js +0 -66
- package/dist/components/organisms/Modal/index.js +0 -95
- package/dist/components/organisms/Modal/styles.js +0 -20
- package/dist/components/organisms/RangeCalendar/RangeCalendar.stories.js +0 -33
- package/dist/components/organisms/RangeCalendar/index.js +0 -148
- package/dist/components/organisms/RangeCalendar/styles.js +0 -27
- package/dist/global-files/handle_http.js +0 -383
- package/dist/global-files/utils.js +0 -484
- package/src/assets/images/customSelect/starIcon.svg +0 -14
- package/src/assets/images/defaultImages/Spinner.gif +0 -0
- package/src/assets/images/defaultImages/notFound.svg +0 -124
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -47
- package/src/components/atoms/ButtonFileChooser/index.js +0 -69
- package/src/components/atoms/ButtonFileChooser/styles.js +0 -4
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -53
- package/src/components/atoms/ButtonV2/index.js +0 -85
- package/src/components/atoms/ButtonV2/styles.js +0 -217
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +0 -36
- package/src/components/atoms/CustomIcon/index.js +0 -41
- package/src/components/atoms/CustomIcon/styles.js +0 -85
- package/src/components/atoms/IconFile/IconFile.stories.js +0 -35
- package/src/components/atoms/IconFile/index.js +0 -119
- package/src/components/atoms/IconFile/styles.js +0 -67
- package/src/components/atoms/Image/Image.stories.js +0 -51
- package/src/components/atoms/Image/index.js +0 -55
- package/src/components/atoms/Image/styles.js +0 -34
- package/src/components/atoms/ImageLink/ImageLink.stories.js +0 -43
- package/src/components/atoms/ImageLink/index.js +0 -57
- package/src/components/atoms/ImageLink/styles.js +0 -30
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +0 -52
- package/src/components/atoms/ImagePreview/index.js +0 -191
- package/src/components/atoms/ImagePreview/styles.js +0 -77
- package/src/components/atoms/InputText/InputText.stories.js +0 -39
- package/src/components/atoms/InputText/index.js +0 -61
- package/src/components/atoms/InputText/styles.js +0 -89
- package/src/components/atoms/NotFound/NotFound.stories.js +0 -19
- package/src/components/atoms/NotFound/index.js +0 -52
- package/src/components/atoms/NotFound/styles.js +0 -55
- package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -26
- package/src/components/atoms/SelectItemV2/index.js +0 -61
- package/src/components/atoms/SelectItemV2/styles.js +0 -90
- package/src/components/atoms/Tooltip/Tooltip.stories.js +0 -51
- package/src/components/atoms/Tooltip/index.js +0 -59
- package/src/components/atoms/Tooltip/styles.js +0 -42
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -54
- package/src/components/molecules/ButtonDownloadFile/index.js +0 -111
- package/src/components/molecules/ButtonDownloadFile/styles.js +0 -66
- package/src/components/molecules/Dropdown/Dropdown.stories.js +0 -103
- package/src/components/molecules/Dropdown/index.js +0 -150
- package/src/components/molecules/Dropdown/styles.js +0 -75
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -68
- package/src/components/molecules/ImageTooltip/index.js +0 -63
- package/src/components/molecules/ImageTooltip/styles.js +0 -18
- package/src/components/molecules/SelectV2/SelectV2.stories.js +0 -114
- package/src/components/molecules/SelectV2/index.js +0 -350
- package/src/components/molecules/SelectV2/styles.js +0 -105
- package/src/components/molecules/SelectV2/test.js +0 -61
- package/src/components/molecules/SelectV2/test.stories.js +0 -10
- package/src/components/organisms/Chat/Chat.stories.js +0 -199
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -65
- package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chat/ChatLists/index.js +0 -141
- package/src/components/organisms/Chat/ChatLists/styles.js +0 -162
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -142
- package/src/components/organisms/Chat/ContainerItems/index.js +0 -549
- package/src/components/organisms/Chat/ContainerItems/styles.js +0 -328
- package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -102
- package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chat/ContentChat/index.js +0 -900
- package/src/components/organisms/Chat/ContentChat/styles.js +0 -41
- package/src/components/organisms/Chat/Footer/Footer.stories.js +0 -22
- package/src/components/organisms/Chat/Footer/index.js +0 -669
- package/src/components/organisms/Chat/Footer/styles.js +0 -286
- package/src/components/organisms/Chat/Header/Header.stories.js +0 -66
- package/src/components/organisms/Chat/Header/index.js +0 -94
- package/src/components/organisms/Chat/Header/styles.js +0 -49
- package/src/components/organisms/Chat/index.js +0 -294
- package/src/components/organisms/Chat/styles.js +0 -42
- package/src/components/organisms/Modal/Modal.stories.js +0 -55
- package/src/components/organisms/Modal/index.js +0 -97
- package/src/components/organisms/Modal/styles.js +0 -103
- package/src/components/organisms/RangeCalendar/RangeCalendar.stories.js +0 -16
- package/src/components/organisms/RangeCalendar/index.js +0 -121
- package/src/components/organisms/RangeCalendar/styles.js +0 -883
- package/src/global-files/handle_http.js +0 -231
- package/src/global-files/utils.js +0 -309
|
@@ -16,187 +16,96 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
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1ypq7XiSo9zrqWcmHBpOoJQS7WbWzjGe__NlJEXjo8bykS8QBTTOiMrKxz1KzGRYJkwgG0axk-zVysUQH0_y-fbwgEgMPtd6qO46DB_KlFI_PEL1-uR5MJ9U0kNkS61gMbHwFQFs_DU-sS01NxjBsjUEp783rs1r-jm7TelZac1rGaFNUyi5vHdSozYzlnzfzGcuACZ0lHqvah2FHbDyurp-G_uhpUn5lNmcL4rVNh2lDd4TOnhJ3AtN1wGSmtErmhjmBHTvavh1ub9pklA1B9qjVuTRpYANw",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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"
|
|
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
|
+
},
|
|
60
36
|
],
|
|
61
|
-
"id_article": 84492,
|
|
62
|
-
"retailersAvailable": [
|
|
63
|
-
{
|
|
64
|
-
"id": 59,
|
|
65
|
-
"name": "The Home Depot Platinum"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
37
|
},
|
|
69
38
|
productToEdit: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
}
|
|
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
|
+
},
|
|
96
55
|
],
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
}
|
|
56
|
+
},
|
|
57
|
+
],
|
|
118
58
|
},
|
|
119
59
|
location: {
|
|
120
60
|
state: { origin: "Contentoh" },
|
|
121
61
|
},
|
|
122
62
|
user: {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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",
|
|
153
93
|
},
|
|
154
|
-
|
|
94
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1669927021851",
|
|
155
95
|
},
|
|
156
96
|
company: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
]
|
|
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,
|
|
200
109
|
},
|
|
201
|
-
showSurvey: (v) => v && alert(
|
|
110
|
+
showSurvey: (v) => v && alert("se muestra"),
|
|
202
111
|
};
|
|
@@ -42,7 +42,6 @@ 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";
|
|
46
45
|
|
|
47
46
|
const reducerImages = (state, action) => {
|
|
48
47
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -114,8 +113,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
|
|
|
114
113
|
const REGION = "us-east-1";
|
|
115
114
|
|
|
116
115
|
AWS.config.update({
|
|
117
|
-
accessKeyId: process.env.
|
|
118
|
-
secretAccessKey: process.env.
|
|
116
|
+
accessKeyId: process.env.REACT_APP_KUTS3,
|
|
117
|
+
secretAccessKey: process.env.REACT_APP_AKUTS3,
|
|
119
118
|
});
|
|
120
119
|
|
|
121
120
|
const myBucket = new AWS.S3({
|
|
@@ -252,7 +251,6 @@ export const ProviderProductEdition = ({
|
|
|
252
251
|
const [retailerStatus, setRetailerStatus] = useState(
|
|
253
252
|
product.statusByRetailer
|
|
254
253
|
);
|
|
255
|
-
const [showCreateVersion, setShowCreateVersion] = useState(false);
|
|
256
254
|
const [showVersionSelector, setShowVersionSelector] =
|
|
257
255
|
useCloseModal("version-selector");
|
|
258
256
|
|
|
@@ -272,15 +270,6 @@ export const ProviderProductEdition = ({
|
|
|
272
270
|
setServices(services);
|
|
273
271
|
await getServices();
|
|
274
272
|
|
|
275
|
-
// if (!originProp) {
|
|
276
|
-
// setActiveRetailer(
|
|
277
|
-
// product?.retailers
|
|
278
|
-
// ? product?.retailers[0]
|
|
279
|
-
// : product?.retailersAvailable[0]
|
|
280
|
-
// );
|
|
281
|
-
// }
|
|
282
|
-
|
|
283
|
-
// setActiveRetailer(product?.retailers[0]);
|
|
284
273
|
setImages({ action: "init", init: services[2] });
|
|
285
274
|
if (services[2]?.values?.length > 0) setActiveImage(0);
|
|
286
275
|
|
|
@@ -481,7 +470,7 @@ export const ProviderProductEdition = ({
|
|
|
481
470
|
};
|
|
482
471
|
if (product?.orderId) dataObject["orderId"] = product?.orderId;
|
|
483
472
|
try {
|
|
484
|
-
await axios.put(
|
|
473
|
+
const res = await axios.put(
|
|
485
474
|
`${process.env.REACT_APP_ARTICLE_DATA_ENDPOINT}?datasheet=true&version=${version}`,
|
|
486
475
|
dataObject,
|
|
487
476
|
{
|
|
@@ -1497,18 +1486,10 @@ export const ProviderProductEdition = ({
|
|
|
1497
1486
|
setVersion={setVersion}
|
|
1498
1487
|
companyName={company.company_name}
|
|
1499
1488
|
currentVersion={version}
|
|
1500
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1501
1489
|
setShowVersionSelector={setShowVersionSelector}
|
|
1502
1490
|
jwt={token}
|
|
1503
1491
|
/>
|
|
1504
1492
|
)}
|
|
1505
|
-
{showCreateVersion && (
|
|
1506
|
-
<CreateVersion
|
|
1507
|
-
idArticle={product.id_article}
|
|
1508
|
-
version={version}
|
|
1509
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1510
|
-
/>
|
|
1511
|
-
)}
|
|
1512
1493
|
</Container>
|
|
1513
1494
|
);
|
|
1514
1495
|
};
|
|
@@ -16,104 +16,116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R3-YYRax85hKyN9YoV1MY_fTzT9WUVXWoqf4UPj2SH79g_A0l0lm18ODzzdhXFSpubuI8-Ml7MbXUh8klzl7T55S16sj8zPONpesrA01WsG1PWGqfRZI2g37edj_en2_fIcfi49tQjbSjnQOVOPnkO5TPiyoMtZdS53Rx75iSI8-fP-Z7kD-5TI_KK6vK35PHoG1B-N3EzDUjXek4MowNswnGA",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
22
|
datasheets: 1,
|
|
23
23
|
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
26
|
+
orderId: 123,
|
|
27
27
|
status: "PA",
|
|
28
|
-
datasheet_status: "
|
|
28
|
+
datasheet_status: "PA",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
31
|
-
description_status: "
|
|
30
|
+
version: 3,
|
|
31
|
+
description_status: "PA",
|
|
32
32
|
images_status: "PA",
|
|
33
33
|
statusByRetailer: {
|
|
34
|
-
|
|
35
|
-
datasheet: "
|
|
36
|
-
description: "
|
|
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",
|
|
37
47
|
images: "PA",
|
|
38
48
|
},
|
|
39
49
|
},
|
|
40
50
|
article: {
|
|
41
|
-
id_article:
|
|
42
|
-
id_category: "
|
|
43
|
-
name: "
|
|
44
|
-
upc: "
|
|
45
|
-
timestamp: "2022-11-
|
|
46
|
-
id_user:
|
|
47
|
-
status:
|
|
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",
|
|
48
58
|
active: 1,
|
|
49
|
-
company_id:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
id_description_facilitator: null,
|
|
61
|
-
id_images_especialist: null,
|
|
62
|
-
id_images_facilitator: null,
|
|
63
|
-
id_auditor: null,
|
|
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,
|
|
64
70
|
id_recepcionist: null,
|
|
65
71
|
category:
|
|
66
|
-
"
|
|
67
|
-
missingAttributes:
|
|
68
|
-
missingDescriptions:
|
|
69
|
-
missingImages:
|
|
72
|
+
"Salud y Belleza|Cuidado Facial|Cremas, Mascarillas y Tratamientos",
|
|
73
|
+
missingAttributes: 0,
|
|
74
|
+
missingDescriptions: 0,
|
|
75
|
+
missingImages: 0,
|
|
70
76
|
},
|
|
71
77
|
retailers: [
|
|
72
78
|
{
|
|
73
|
-
id:
|
|
74
|
-
name: "
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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",
|
|
78
89
|
},
|
|
79
90
|
],
|
|
80
|
-
country:
|
|
81
|
-
upc: "
|
|
91
|
+
country: "México",
|
|
92
|
+
upc: "34234353324",
|
|
82
93
|
},
|
|
83
94
|
location: {
|
|
84
95
|
product: { articleId: 109485, versionId: 3 },
|
|
85
96
|
},
|
|
86
97
|
user: {
|
|
87
|
-
id_user:
|
|
88
|
-
name: "
|
|
89
|
-
last_name: "
|
|
90
|
-
email: "
|
|
91
|
-
position: "
|
|
92
|
-
telephone:
|
|
93
|
-
country:
|
|
94
|
-
id_company:
|
|
95
|
-
id_cognito: "
|
|
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",
|
|
96
107
|
birth_Date: null,
|
|
97
|
-
about_me:
|
|
98
|
-
zip_code:
|
|
99
|
-
address:
|
|
100
|
-
job:
|
|
101
|
-
id_stripe:
|
|
102
|
-
id_role:
|
|
108
|
+
about_me: "",
|
|
109
|
+
zip_code: "",
|
|
110
|
+
address: "",
|
|
111
|
+
job: "",
|
|
112
|
+
id_stripe: "",
|
|
113
|
+
id_role: 1,
|
|
103
114
|
active: 1,
|
|
104
115
|
is_retailer: 0,
|
|
105
|
-
email_notify:
|
|
116
|
+
email_notify: 1,
|
|
117
|
+
is_user_tech: null,
|
|
106
118
|
membership: {
|
|
107
|
-
id:
|
|
108
|
-
start_date: "
|
|
109
|
-
end_date: "
|
|
110
|
-
planID:
|
|
111
|
-
plan: "
|
|
112
|
-
name: "Plan
|
|
113
|
-
user_limit: "
|
|
114
|
-
products_limit: "
|
|
115
|
-
type: "
|
|
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",
|
|
116
128
|
},
|
|
117
|
-
src: "https://content-management-profile
|
|
129
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1669928511679",
|
|
118
130
|
},
|
|
119
131
|
};
|
|
@@ -32,7 +32,6 @@ 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";
|
|
36
35
|
|
|
37
36
|
const reducerImages = (state, action) => {
|
|
38
37
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -108,8 +107,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
|
|
|
108
107
|
const REGION = "us-east-1";
|
|
109
108
|
|
|
110
109
|
AWS.config.update({
|
|
111
|
-
accessKeyId: process.env.
|
|
112
|
-
secretAccessKey: process.env.
|
|
110
|
+
accessKeyId: process.env.REACT_APP_KUTS3,
|
|
111
|
+
secretAccessKey: process.env.REACT_APP_AKUTS3,
|
|
113
112
|
});
|
|
114
113
|
|
|
115
114
|
const myBucket = new AWS.S3({
|
|
@@ -206,10 +205,7 @@ export const RetailerProductEdition = ({
|
|
|
206
205
|
const [retailerStatus, setRetailerStatus] = useState("-");
|
|
207
206
|
const [statusArray, setStatusArray] = useState([]);
|
|
208
207
|
const [socketType, setSocketType] = useState(null);
|
|
209
|
-
const [servicesStatus, setServicesStatus] = useState([]);
|
|
210
208
|
const [saving, setSaving] = useState(loading);
|
|
211
|
-
const isAuditor = user.id_role === 6;
|
|
212
|
-
const [showCreateVersion, setShowCreateVersion] = useState(false);
|
|
213
209
|
const [showVersionSelector, setShowVersionSelector] =
|
|
214
210
|
useCloseModal("version-selector");
|
|
215
211
|
const shotThd = [58, 59, 60, 61].includes(activeRetailer.id);
|
|
@@ -1549,18 +1545,10 @@ export const RetailerProductEdition = ({
|
|
|
1549
1545
|
setVersion={setVersion}
|
|
1550
1546
|
companyName={product.article.company_name}
|
|
1551
1547
|
currentVersion={version}
|
|
1552
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1553
1548
|
setShowVersionSelector={setShowVersionSelector}
|
|
1554
1549
|
jwt={token}
|
|
1555
1550
|
/>
|
|
1556
1551
|
)}
|
|
1557
|
-
{showCreateVersion && (
|
|
1558
|
-
<CreateVersion
|
|
1559
|
-
idArticle={product.article.id_article}
|
|
1560
|
-
version={version}
|
|
1561
|
-
setShowCreateVersion={setShowCreateVersion}
|
|
1562
|
-
/>
|
|
1563
|
-
)}
|
|
1564
1552
|
</Container>
|
|
1565
1553
|
);
|
|
1566
1554
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { useEffect } from "react";
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
3
2
|
|
|
4
3
|
export const useCloseModal = (id) => {
|
|
5
4
|
const [showModal, setShowModal] = useState(false);
|
|
@@ -11,6 +10,7 @@ export const useCloseModal = (id) => {
|
|
|
11
10
|
setShowModal(false);
|
|
12
11
|
}
|
|
13
12
|
};
|
|
13
|
+
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
if (showModal) {
|
|
16
16
|
document.addEventListener("click", closeModal, false);
|
|
@@ -46,30 +46,18 @@
|
|
|
46
46
|
|
|
47
47
|
@font-face {
|
|
48
48
|
font-family: "RobotoMedium";
|
|
49
|
-
src: url("../assets/fonts/
|
|
49
|
+
src: url("../assets/fonts/roboto/Roboto-Medium.ttf");
|
|
50
50
|
font-weight: 500;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@font-face {
|
|
54
54
|
font-family: "RobotoRegular";
|
|
55
|
-
src: url("../assets/fonts/
|
|
55
|
+
src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
|
|
56
56
|
font-weight: 400;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
@font-face {
|
|
60
60
|
font-family: "Roboto";
|
|
61
|
-
src: url("../assets/fonts/
|
|
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
|
-
}
|