tabexseriescomponents 0.0.472 → 0.0.473

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/dist/index.cjs.js CHANGED
@@ -16741,6 +16741,7 @@ var CardsSection = function CardsSection(props) {
16741
16741
  cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
16742
16742
  }
16743
16743
  cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
16744
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
16744
16745
  cardobj.hassale = arrayItem.productinfo.hassale;
16745
16746
  cardobj.productid = arrayItem.productinfo.productid;
16746
16747
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -72140,8 +72141,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72140
72141
  // Check if it's the second click
72141
72142
  if (clickCount === 1) {
72142
72143
  // Do whatever you want on the second click
72143
-
72144
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72144
+ var productidtobesend = null;
72145
+ if (sectionproperties.urlwithproductname == 'Yes') {
72146
+ productidtobesend = item.productendpointurl;
72147
+ } else {
72148
+ productidtobesend = item.productid;
72149
+ }
72150
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72145
72151
  }
72146
72152
  };
72147
72153
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -72284,7 +72290,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72284
72290
  },
72285
72291
  onClick: function onClick(e) {
72286
72292
  e.stopPropagation();
72287
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72293
+ var productidtobesend = null;
72294
+ if (sectionproperties.urlwithproductname == 'Yes') {
72295
+ productidtobesend = item.productendpointurl;
72296
+ } else {
72297
+ productidtobesend = item.productid;
72298
+ }
72299
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72288
72300
  }
72289
72301
  }, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
72290
72302
  "class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
@@ -72332,7 +72344,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72332
72344
  }
72333
72345
  }, /*#__PURE__*/React__default["default"].createElement("p", {
72334
72346
  onClick: function onClick() {
72335
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72347
+ var productidtobesend = null;
72348
+ if (sectionproperties.urlwithproductname == 'Yes') {
72349
+ productidtobesend = item.productendpointurl;
72350
+ } else {
72351
+ productidtobesend = item.productid;
72352
+ }
72353
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72336
72354
  },
72337
72355
  "class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 mb-1 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
72338
72356
  style: {
@@ -72408,7 +72426,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72408
72426
  }, /*#__PURE__*/React__default["default"].createElement("p", {
72409
72427
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
72410
72428
  onClick: function onClick() {
72411
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72429
+ var productidtobesend = null;
72430
+ if (sectionproperties.urlwithproductname == 'Yes') {
72431
+ productidtobesend = item.productendpointurl;
72432
+ } else {
72433
+ productidtobesend = item.productid;
72434
+ }
72435
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72412
72436
  // setShowProductInfoModalContext(true);
72413
72437
  // setProductIdProdutInfoModalContext(item.productid);
72414
72438
  }
package/dist/index.esm.js CHANGED
@@ -16692,6 +16692,7 @@ var CardsSection = function CardsSection(props) {
16692
16692
  cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
16693
16693
  }
16694
16694
  cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
16695
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
16695
16696
  cardobj.hassale = arrayItem.productinfo.hassale;
16696
16697
  cardobj.productid = arrayItem.productinfo.productid;
16697
16698
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -72091,8 +72092,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72091
72092
  // Check if it's the second click
72092
72093
  if (clickCount === 1) {
72093
72094
  // Do whatever you want on the second click
72094
-
72095
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72095
+ var productidtobesend = null;
72096
+ if (sectionproperties.urlwithproductname == 'Yes') {
72097
+ productidtobesend = item.productendpointurl;
72098
+ } else {
72099
+ productidtobesend = item.productid;
72100
+ }
72101
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72096
72102
  }
72097
72103
  };
72098
72104
  return /*#__PURE__*/React.createElement("div", {
@@ -72235,7 +72241,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72235
72241
  },
72236
72242
  onClick: function onClick(e) {
72237
72243
  e.stopPropagation();
72238
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72244
+ var productidtobesend = null;
72245
+ if (sectionproperties.urlwithproductname == 'Yes') {
72246
+ productidtobesend = item.productendpointurl;
72247
+ } else {
72248
+ productidtobesend = item.productid;
72249
+ }
72250
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72239
72251
  }
72240
72252
  }, Image('normal')), /*#__PURE__*/React.createElement("div", {
72241
72253
  "class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
@@ -72283,7 +72295,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72283
72295
  }
72284
72296
  }, /*#__PURE__*/React.createElement("p", {
72285
72297
  onClick: function onClick() {
72286
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72298
+ var productidtobesend = null;
72299
+ if (sectionproperties.urlwithproductname == 'Yes') {
72300
+ productidtobesend = item.productendpointurl;
72301
+ } else {
72302
+ productidtobesend = item.productid;
72303
+ }
72304
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72287
72305
  },
72288
72306
  "class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 mb-1 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
72289
72307
  style: {
@@ -72359,7 +72377,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
72359
72377
  }, /*#__PURE__*/React.createElement("p", {
72360
72378
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
72361
72379
  onClick: function onClick() {
72362
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72380
+ var productidtobesend = null;
72381
+ if (sectionproperties.urlwithproductname == 'Yes') {
72382
+ productidtobesend = item.productendpointurl;
72383
+ } else {
72384
+ productidtobesend = item.productid;
72385
+ }
72386
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72363
72387
  // setShowProductInfoModalContext(true);
72364
72388
  // setProductIdProdutInfoModalContext(item.productid);
72365
72389
  }
package/dist/index.umd.js CHANGED
@@ -16567,6 +16567,7 @@
16567
16567
  cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
16568
16568
  }
16569
16569
  cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
16570
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
16570
16571
  cardobj.hassale = arrayItem.productinfo.hassale;
16571
16572
  cardobj.productid = arrayItem.productinfo.productid;
16572
16573
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -71966,8 +71967,13 @@
71966
71967
  // Check if it's the second click
71967
71968
  if (clickCount === 1) {
71968
71969
  // Do whatever you want on the second click
71969
-
71970
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
71970
+ var productidtobesend = null;
71971
+ if (sectionproperties.urlwithproductname == 'Yes') {
71972
+ productidtobesend = item.productendpointurl;
71973
+ } else {
71974
+ productidtobesend = item.productid;
71975
+ }
71976
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
71971
71977
  }
71972
71978
  };
71973
71979
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -72110,7 +72116,13 @@
72110
72116
  },
72111
72117
  onClick: function onClick(e) {
72112
72118
  e.stopPropagation();
72113
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72119
+ var productidtobesend = null;
72120
+ if (sectionproperties.urlwithproductname == 'Yes') {
72121
+ productidtobesend = item.productendpointurl;
72122
+ } else {
72123
+ productidtobesend = item.productid;
72124
+ }
72125
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72114
72126
  }
72115
72127
  }, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
72116
72128
  "class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
@@ -72158,7 +72170,13 @@
72158
72170
  }
72159
72171
  }, /*#__PURE__*/React__default["default"].createElement("p", {
72160
72172
  onClick: function onClick() {
72161
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72173
+ var productidtobesend = null;
72174
+ if (sectionproperties.urlwithproductname == 'Yes') {
72175
+ productidtobesend = item.productendpointurl;
72176
+ } else {
72177
+ productidtobesend = item.productid;
72178
+ }
72179
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72162
72180
  },
72163
72181
  "class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 mb-1 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
72164
72182
  style: {
@@ -72234,7 +72252,13 @@
72234
72252
  }, /*#__PURE__*/React__default["default"].createElement("p", {
72235
72253
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
72236
72254
  onClick: function onClick() {
72237
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
72255
+ var productidtobesend = null;
72256
+ if (sectionproperties.urlwithproductname == 'Yes') {
72257
+ productidtobesend = item.productendpointurl;
72258
+ } else {
72259
+ productidtobesend = item.productid;
72260
+ }
72261
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
72238
72262
  // setShowProductInfoModalContext(true);
72239
72263
  // setProductIdProdutInfoModalContext(item.productid);
72240
72264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.472",
3
+ "version": "0.0.473",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {