tabexseriescomponents 0.0.368 → 0.0.370

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
@@ -620,7 +620,38 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
620
620
  };
621
621
 
622
622
  var Imagekitimagecomp = function Imagekitimagecomp(props) {
623
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (props === null || props === void 0 ? void 0 : props.urlEndpoint) != undefined && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != '' && /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
623
+ var _useState = React.useState(false),
624
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
625
+ _useState2[0];
626
+ _useState2[1];
627
+ var _useState3 = React.useState(''),
628
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
629
+ outsidelinkpath = _useState4[0],
630
+ setoutsidelinkpath = _useState4[1];
631
+ var _useState5 = React.useState(false),
632
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
633
+ outsidelink = _useState6[0],
634
+ setoutsidelink = _useState6[1];
635
+ React.useEffect(function () {
636
+ if (props.path != undefined && props.path != null && props.path.length != 0) {
637
+ // if (props.path[0] == 'h') {
638
+ // setisoutsidelink(true);
639
+ // }
640
+ var imagepath = props.path;
641
+ if (imagepath.includes('https')) {
642
+ var position = imagepath.search('https');
643
+ var result = imagepath.slice(position);
644
+ // var myArray = imagepath.split('https');
645
+ // if (Array.isArray(myArray)) {
646
+ // if (myArray.length > 1) {
647
+ // }
648
+ // }
649
+ setoutsidelinkpath(result);
650
+ setoutsidelink(true);
651
+ }
652
+ }
653
+ }, [props.path]);
654
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, outsidelink == false && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != undefined && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != '' && /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
624
655
  urlEndpoint: props === null || props === void 0 ? void 0 : props.urlEndpoint
625
656
  // urlEndpoint={'https://ik.imagekit.io/ppcqtfrxp'}
626
657
  ,
@@ -632,6 +663,12 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
632
663
  loading: props.loading,
633
664
  onClick: props.onClick,
634
665
  "class": props["class"]
666
+ }), outsidelink && /*#__PURE__*/React__default["default"].createElement("img", {
667
+ src: outsidelinkpath,
668
+ style: props.style,
669
+ loading: props.loading,
670
+ onClick: props.onClick,
671
+ "class": props["class"]
635
672
  }));
636
673
  };
637
674
 
@@ -4720,17 +4757,28 @@ var Productinfo = function Productinfo(props) {
4720
4757
  var tempproductimagesarray = [];
4721
4758
  if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
4722
4759
  fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
4723
- var productimagesarrayobj = {
4724
- thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4725
- original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4726
- galleryid: arrayItem.galleryid
4727
- // description:
4728
- // // { dangerouslySetInnerHTML={{
4729
- // // __html:
4730
- // // fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en,
4731
- // // }}}
4732
- // langdetect == 'en' ? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en : fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar,
4733
- };
4760
+ var imagepath = arrayItem.path;
4761
+ if (imagepath.includes('https')) {
4762
+ var position = imagepath.search('https');
4763
+ imagepath.slice(position);
4764
+ var productimagesarrayobj = {
4765
+ thumbnail: arrayItem.path,
4766
+ original: arrayItem.path,
4767
+ galleryid: arrayItem.galleryid
4768
+ };
4769
+ } else {
4770
+ var productimagesarrayobj = {
4771
+ thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4772
+ original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4773
+ galleryid: arrayItem.galleryid
4774
+ // description:
4775
+ // // { dangerouslySetInnerHTML={{
4776
+ // // __html:
4777
+ // // fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en,
4778
+ // // }}}
4779
+ // langdetect == 'en' ? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en : fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar,
4780
+ };
4781
+ }
4734
4782
 
4735
4783
  tempproductimagesarray.push(productimagesarrayobj);
4736
4784
  });
package/dist/index.esm.js CHANGED
@@ -571,7 +571,38 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
571
571
  };
572
572
 
573
573
  var Imagekitimagecomp = function Imagekitimagecomp(props) {
574
- return /*#__PURE__*/React.createElement(React.Fragment, null, (props === null || props === void 0 ? void 0 : props.urlEndpoint) != undefined && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != '' && /*#__PURE__*/React.createElement(IKImage, {
574
+ var _useState = useState(false),
575
+ _useState2 = _slicedToArray(_useState, 2);
576
+ _useState2[0];
577
+ _useState2[1];
578
+ var _useState3 = useState(''),
579
+ _useState4 = _slicedToArray(_useState3, 2),
580
+ outsidelinkpath = _useState4[0],
581
+ setoutsidelinkpath = _useState4[1];
582
+ var _useState5 = useState(false),
583
+ _useState6 = _slicedToArray(_useState5, 2),
584
+ outsidelink = _useState6[0],
585
+ setoutsidelink = _useState6[1];
586
+ useEffect(function () {
587
+ if (props.path != undefined && props.path != null && props.path.length != 0) {
588
+ // if (props.path[0] == 'h') {
589
+ // setisoutsidelink(true);
590
+ // }
591
+ var imagepath = props.path;
592
+ if (imagepath.includes('https')) {
593
+ var position = imagepath.search('https');
594
+ var result = imagepath.slice(position);
595
+ // var myArray = imagepath.split('https');
596
+ // if (Array.isArray(myArray)) {
597
+ // if (myArray.length > 1) {
598
+ // }
599
+ // }
600
+ setoutsidelinkpath(result);
601
+ setoutsidelink(true);
602
+ }
603
+ }
604
+ }, [props.path]);
605
+ return /*#__PURE__*/React.createElement(React.Fragment, null, outsidelink == false && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != undefined && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != '' && /*#__PURE__*/React.createElement(IKImage, {
575
606
  urlEndpoint: props === null || props === void 0 ? void 0 : props.urlEndpoint
576
607
  // urlEndpoint={'https://ik.imagekit.io/ppcqtfrxp'}
577
608
  ,
@@ -583,6 +614,12 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
583
614
  loading: props.loading,
584
615
  onClick: props.onClick,
585
616
  "class": props["class"]
617
+ }), outsidelink && /*#__PURE__*/React.createElement("img", {
618
+ src: outsidelinkpath,
619
+ style: props.style,
620
+ loading: props.loading,
621
+ onClick: props.onClick,
622
+ "class": props["class"]
586
623
  }));
587
624
  };
588
625
 
@@ -4671,17 +4708,28 @@ var Productinfo = function Productinfo(props) {
4671
4708
  var tempproductimagesarray = [];
4672
4709
  if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
4673
4710
  fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
4674
- var productimagesarrayobj = {
4675
- thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4676
- original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4677
- galleryid: arrayItem.galleryid
4678
- // description:
4679
- // // { dangerouslySetInnerHTML={{
4680
- // // __html:
4681
- // // fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en,
4682
- // // }}}
4683
- // langdetect == 'en' ? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en : fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar,
4684
- };
4711
+ var imagepath = arrayItem.path;
4712
+ if (imagepath.includes('https')) {
4713
+ var position = imagepath.search('https');
4714
+ imagepath.slice(position);
4715
+ var productimagesarrayobj = {
4716
+ thumbnail: arrayItem.path,
4717
+ original: arrayItem.path,
4718
+ galleryid: arrayItem.galleryid
4719
+ };
4720
+ } else {
4721
+ var productimagesarrayobj = {
4722
+ thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4723
+ original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4724
+ galleryid: arrayItem.galleryid
4725
+ // description:
4726
+ // // { dangerouslySetInnerHTML={{
4727
+ // // __html:
4728
+ // // fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en,
4729
+ // // }}}
4730
+ // langdetect == 'en' ? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en : fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar,
4731
+ };
4732
+ }
4685
4733
 
4686
4734
  tempproductimagesarray.push(productimagesarrayobj);
4687
4735
  });
package/dist/index.umd.js CHANGED
@@ -453,7 +453,38 @@
453
453
  };
454
454
 
455
455
  var Imagekitimagecomp = function Imagekitimagecomp(props) {
456
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (props === null || props === void 0 ? void 0 : props.urlEndpoint) != undefined && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != '' && /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
456
+ var _useState = React.useState(false),
457
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
458
+ _useState2[0];
459
+ _useState2[1];
460
+ var _useState3 = React.useState(''),
461
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
462
+ outsidelinkpath = _useState4[0],
463
+ setoutsidelinkpath = _useState4[1];
464
+ var _useState5 = React.useState(false),
465
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
466
+ outsidelink = _useState6[0],
467
+ setoutsidelink = _useState6[1];
468
+ React.useEffect(function () {
469
+ if (props.path != undefined && props.path != null && props.path.length != 0) {
470
+ // if (props.path[0] == 'h') {
471
+ // setisoutsidelink(true);
472
+ // }
473
+ var imagepath = props.path;
474
+ if (imagepath.includes('https')) {
475
+ var position = imagepath.search('https');
476
+ var result = imagepath.slice(position);
477
+ // var myArray = imagepath.split('https');
478
+ // if (Array.isArray(myArray)) {
479
+ // if (myArray.length > 1) {
480
+ // }
481
+ // }
482
+ setoutsidelinkpath(result);
483
+ setoutsidelink(true);
484
+ }
485
+ }
486
+ }, [props.path]);
487
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, outsidelink == false && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != undefined && (props === null || props === void 0 ? void 0 : props.urlEndpoint) != '' && /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
457
488
  urlEndpoint: props === null || props === void 0 ? void 0 : props.urlEndpoint
458
489
  // urlEndpoint={'https://ik.imagekit.io/ppcqtfrxp'}
459
490
  ,
@@ -465,6 +496,12 @@
465
496
  loading: props.loading,
466
497
  onClick: props.onClick,
467
498
  "class": props["class"]
499
+ }), outsidelink && /*#__PURE__*/React__default["default"].createElement("img", {
500
+ src: outsidelinkpath,
501
+ style: props.style,
502
+ loading: props.loading,
503
+ onClick: props.onClick,
504
+ "class": props["class"]
468
505
  }));
469
506
  };
470
507
 
@@ -4553,17 +4590,28 @@
4553
4590
  var tempproductimagesarray = [];
4554
4591
  if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
4555
4592
  fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
4556
- var productimagesarrayobj = {
4557
- thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4558
- original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4559
- galleryid: arrayItem.galleryid
4560
- // description:
4561
- // // { dangerouslySetInnerHTML={{
4562
- // // __html:
4563
- // // fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en,
4564
- // // }}}
4565
- // langdetect == 'en' ? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en : fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar,
4566
- };
4593
+ var imagepath = arrayItem.path;
4594
+ if (imagepath.includes('https')) {
4595
+ var position = imagepath.search('https');
4596
+ imagepath.slice(position);
4597
+ var productimagesarrayobj = {
4598
+ thumbnail: arrayItem.path,
4599
+ original: arrayItem.path,
4600
+ galleryid: arrayItem.galleryid
4601
+ };
4602
+ } else {
4603
+ var productimagesarrayobj = {
4604
+ thumbnail: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4605
+ original: (ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + arrayItem.path,
4606
+ galleryid: arrayItem.galleryid
4607
+ // description:
4608
+ // // { dangerouslySetInnerHTML={{
4609
+ // // __html:
4610
+ // // fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en,
4611
+ // // }}}
4612
+ // langdetect == 'en' ? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en : fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar,
4613
+ };
4614
+ }
4567
4615
 
4568
4616
  tempproductimagesarray.push(productimagesarrayobj);
4569
4617
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.368",
3
+ "version": "0.0.370",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {