contentoh-components-library 21.1.40 → 21.1.41

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.
@@ -133,7 +133,7 @@ var myBucket = new _awsSdk.default.S3({
133
133
  });
134
134
 
135
135
  var RetailerProductEdition = function RetailerProductEdition(_ref) {
136
- var _product$retailers, _product$services2, _datasheets$, _datasheets$$data, _product$article14;
136
+ var _product$retailers, _product$services2, _datasheets$, _datasheets$$data, _product$article14, _comment$message;
137
137
 
138
138
  var tabsSections = _ref.tabsSections,
139
139
  _ref$productSelected = _ref.productSelected,
@@ -1249,7 +1249,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1249
1249
  data = {
1250
1250
  articleId: product === null || product === void 0 ? void 0 : (_product$article12 = product.article) === null || _product$article12 === void 0 ? void 0 : _product$article12.id_article,
1251
1251
  orderId: product === null || product === void 0 ? void 0 : product.orderId,
1252
- message: body,
1252
+ message: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, ""),
1253
1253
  concept: concept,
1254
1254
  version: version
1255
1255
  };
@@ -1832,7 +1832,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1832
1832
  }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1833
1833
  className: "feedback-box",
1834
1834
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
1835
- comment: comment.message,
1835
+ comment: comment === null || comment === void 0 ? void 0 : (_comment$message = comment.message) === null || _comment$message === void 0 ? void 0 : _comment$message.replace(/<.*?\/?>/gm, ""),
1836
1836
  reviewed: crossComment
1837
1837
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
1838
1838
  buttonType: "circular-button accept-button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.40",
3
+ "version": "21.1.41",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "scripts": {
36
36
  "start": "start-storybook -p 6006",
37
- "build": "cross-env BABEL_ENV=production babel src -d dist",
37
+ "build": "cross-env BABEL_ENV=production babel src -d dist && cp -a src/assets dist/ && cp -a src/global-files/*.css dist/global-files",
38
38
  "chromatic": "npx chromatic --project-token=d7bb0c8ba831",
39
39
  "release": "auto shipit --base-branch=main"
40
40
  },
@@ -778,7 +778,7 @@ export const RetailerProductEdition = ({
778
778
  const data = {
779
779
  articleId: product?.article?.id_article,
780
780
  orderId: product?.orderId,
781
- message: body,
781
+ message: body?.replace(/<.*?\/?>/gm,""),
782
782
  concept: concept,
783
783
  version: version,
784
784
  };
@@ -1364,7 +1364,7 @@ export const RetailerProductEdition = ({
1364
1364
  ) : (
1365
1365
  <div className="feedback-box">
1366
1366
  <Commentary
1367
- comment={comment.message}
1367
+ comment={comment?.message?.replace(/<.*?\/?>/gm,"")}
1368
1368
  reviewed={crossComment}
1369
1369
  />
1370
1370
  <Button