contentoh-components-library 21.4.0 → 21.4.2

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.
@@ -72,28 +72,28 @@ var UserCatalog = function UserCatalog(_ref) {
72
72
  product: product,
73
73
  userId: datasheet,
74
74
  usersArray: textSpecialists,
75
- id: id + "-" + datasheet,
75
+ id: id + "-datasheet",
76
76
  index: "datasheet"
77
77
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
78
78
  onAssign: onAssign,
79
79
  product: product,
80
80
  userId: description,
81
81
  usersArray: textSpecialists,
82
- id: id + "-" + description,
82
+ id: id + "-description",
83
83
  index: "description"
84
84
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
85
85
  onAssign: onAssign,
86
86
  product: product,
87
87
  userId: images,
88
88
  usersArray: imagesSpecialists,
89
- id: id + "-" + images,
89
+ id: id + "-images",
90
90
  index: "image"
91
91
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserOption.UserOption, {
92
92
  onAssign: onAssign,
93
93
  product: product,
94
94
  userId: auditor,
95
95
  usersArray: auditors,
96
- id: id + "-" + auditor,
96
+ id: id + "-auditor",
97
97
  index: "auditor"
98
98
  })]
99
99
  })]
@@ -70,6 +70,7 @@ var getProductsToTable = function getProductsToTable() {
70
70
  datasheet: article.id_datasheet_especialist,
71
71
  description: article.id_description_especialist,
72
72
  images: article.id_images_especialist,
73
+ auditor: article.id_auditor,
73
74
  textSpecialists: textSpecialists,
74
75
  imagesSpecialists: imagesSpecialists,
75
76
  auditors: auditors,
@@ -21,6 +21,7 @@ var useCloseModal = function useCloseModal(id) {
21
21
  e.stopPropagation();
22
22
 
23
23
  if (!e.target.closest("#".concat(id)) && showModal) {
24
+ console.log(id);
24
25
  document.removeEventListener("click", closeModal, false);
25
26
  setShowModal(false);
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.0",
3
+ "version": "21.4.2",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -62,7 +62,7 @@ export const UserCatalog = ({
62
62
  product={product}
63
63
  userId={datasheet}
64
64
  usersArray={textSpecialists}
65
- id={id + "-" + datasheet}
65
+ id={id + "-datasheet"}
66
66
  index={"datasheet"}
67
67
  />
68
68
  <UserOption
@@ -70,7 +70,7 @@ export const UserCatalog = ({
70
70
  product={product}
71
71
  userId={description}
72
72
  usersArray={textSpecialists}
73
- id={id + "-" + description}
73
+ id={id + "-description"}
74
74
  index={"description"}
75
75
  />
76
76
  <UserOption
@@ -78,7 +78,7 @@ export const UserCatalog = ({
78
78
  product={product}
79
79
  userId={images}
80
80
  usersArray={imagesSpecialists}
81
- id={id + "-" + images}
81
+ id={id + "-images"}
82
82
  index={"image"}
83
83
  />
84
84
  <UserOption
@@ -86,7 +86,7 @@ export const UserCatalog = ({
86
86
  product={product}
87
87
  userId={auditor}
88
88
  usersArray={auditors}
89
- id={id + "-" + auditor}
89
+ id={id + "-auditor"}
90
90
  index={"auditor"}
91
91
  />
92
92
  </div>
@@ -42,6 +42,7 @@ export const getProductsToTable = (
42
42
  datasheet={article.id_datasheet_especialist}
43
43
  description={article.id_description_especialist}
44
44
  images={article.id_images_especialist}
45
+ auditor={article.id_auditor}
45
46
  textSpecialists={textSpecialists}
46
47
  imagesSpecialists={imagesSpecialists}
47
48
  auditors={auditors}
@@ -6,6 +6,7 @@ export const useCloseModal = (id) => {
6
6
  const closeModal = (e) => {
7
7
  e.stopPropagation();
8
8
  if (!e.target.closest(`#${id}`) && showModal) {
9
+ console.log(id);
9
10
  document.removeEventListener("click", closeModal, false);
10
11
  setShowModal(false);
11
12
  }