contentoh-components-library 21.5.5 → 21.5.7

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.
@@ -228,6 +228,14 @@ var InputGroup = function InputGroup(_ref) {
228
228
  changeImageBtn: changeImageBtn,
229
229
  showDivState: showDivStates,
230
230
  imageStates: imageStates
231
+ }), (input.id === 44186 || input.id === 44187) && (input === null || input === void 0 ? void 0 : input.isApproved) && /*#__PURE__*/(0, _jsxRuntime.jsx)(InputReviewSection, {
232
+ inputId: input === null || input === void 0 ? void 0 : input.id,
233
+ isApproved: !(input !== null && input !== void 0 && input.isApproved),
234
+ comment: input === null || input === void 0 ? void 0 : input.comment,
235
+ handleImgClick: handleImgClick,
236
+ changeImageBtn: changeImageBtn,
237
+ showDivState: showDivStates,
238
+ imageStates: imageStates
231
239
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
232
240
  inputId: input.id,
233
241
  index: index,
@@ -1225,11 +1225,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1225
1225
  };
1226
1226
  dataObject.articleData = dataObject.articleData.map(function (item) {
1227
1227
  var attributeId = item.attributeId;
1228
- item.isApproved = true;
1229
- /**if (approvedInputs.hasOwnProperty(attributeId)) {
1228
+
1229
+ if (approvedInputs.hasOwnProperty(attributeId)) {
1230
1230
  item.isApproved = true;
1231
1231
  }
1232
- return item;**/
1232
+
1233
+ return item;
1233
1234
  });
1234
1235
  if (product !== null && product !== void 0 && product.orderId) dataObject["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
1235
1236
  console.log("dataObject", dataObject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.5.5",
3
+ "version": "21.5.7",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -247,6 +247,17 @@ export const InputGroup = ({
247
247
  imageStates={imageStates}
248
248
  />
249
249
  )}
250
+ {(input.id===44186||input.id===44187)&&input?.isApproved && (
251
+ <InputReviewSection
252
+ inputId={input?.id}
253
+ isApproved={!input?.isApproved}
254
+ comment={input?.comment}
255
+ handleImgClick={handleImgClick}
256
+ changeImageBtn={changeImageBtn}
257
+ showDivState={showDivStates}
258
+ imageStates={imageStates}
259
+ />
260
+ )}
250
261
  <TagAndInput
251
262
  key={index + "-" + input?.value + "-" + compare}
252
263
  inputId={input.id}
@@ -701,11 +701,10 @@ export const ProviderProductEdition = ({
701
701
  };
702
702
  dataObject.articleData = dataObject.articleData.map((item) => {
703
703
  const attributeId = item.attributeId;
704
- item.isApproved = true;
705
- /**if (approvedInputs.hasOwnProperty(attributeId)) {
704
+ if (approvedInputs.hasOwnProperty(attributeId)) {
706
705
  item.isApproved = true;
707
706
  }
708
- return item;**/
707
+ return item;
709
708
  });
710
709
 
711
710
  if (product?.orderId) dataObject["orderId"] = product?.orderId;