tabexseriescomponents 0.0.590 → 0.0.593

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
@@ -15733,11 +15733,7 @@ var Filter$1 = function Filter(props) {
15733
15733
  }))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
15734
15734
  className: "p-0"
15735
15735
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15736
- className: "row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2 overflowyedit",
15737
- style: {
15738
- height: '30vh',
15739
- overflowY: 'scroll'
15740
- }
15736
+ className: "row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2 overflowyedit"
15741
15737
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15742
15738
  className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
15743
15739
  }, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
@@ -57118,9 +57114,9 @@ var Popupcomponent = function Popupcomponent(props) {
57118
57114
  var ikimagecredcontext = props.actions.ikimagecredcontext;
57119
57115
  props.actions;
57120
57116
  var _useState3 = React.useState(true),
57121
- _useState4 = _slicedToArray__default["default"](_useState3, 2),
57122
- showpopup = _useState4[0],
57123
- setshowpopup = _useState4[1];
57117
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
57118
+ _useState4[0];
57119
+ _useState4[1];
57124
57120
  var _useState5 = React.useState([]),
57125
57121
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
57126
57122
  imagesarray = _useState6[0],
@@ -57146,17 +57142,33 @@ var Popupcomponent = function Popupcomponent(props) {
57146
57142
  }
57147
57143
  }
57148
57144
  }, [sectionproperties]);
57149
- var closePopUp = function closePopUp() {
57150
- localStorage.setItem('seenPopUp', true);
57151
- setshowpopup(false);
57152
- };
57145
+ // const closePopUp = () => {
57146
+ // localStorage.setItem('seenPopUp', true);
57147
+ // setshowpopup(false);
57148
+ // };
57149
+ // useEffect(() => {
57150
+ // let returningUser = localStorage.getItem('seenPopUp');
57151
+ // setshowpopup(!returningUser);
57152
+ // }, []);
57153
+ var _useState7 = React.useState(false),
57154
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
57155
+ isModalVisible = _useState8[0],
57156
+ setModalVisible = _useState8[1];
57153
57157
  React.useEffect(function () {
57154
- var returningUser = localStorage.getItem('seenPopUp');
57155
- setshowpopup(!returningUser);
57158
+ // Check if the modal has been shown in the current session
57159
+ var hasModalBeenShown = sessionStorage.getItem('modalShown');
57160
+ if (!hasModalBeenShown) {
57161
+ setModalVisible(true);
57162
+ // Set the flag in sessionStorage
57163
+ sessionStorage.setItem('modalShown', 'true');
57164
+ }
57156
57165
  }, []);
57166
+ var closePopUp = function closePopUp() {
57167
+ setModalVisible(false);
57168
+ };
57157
57169
  return /*#__PURE__*/React__default["default"].createElement("div", {
57158
57170
  className: "row ml-0 mr-0 w-100"
57159
- }, showpopup == true && Object.keys(imagesarray).length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
57171
+ }, isModalVisible && Object.keys(imagesarray).length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
57160
57172
  show: true,
57161
57173
  onHide: function onHide() {
57162
57174
  closePopUp();
package/dist/index.esm.js CHANGED
@@ -15684,11 +15684,7 @@ var Filter$1 = function Filter(props) {
15684
15684
  }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
15685
15685
  className: "p-0"
15686
15686
  }, /*#__PURE__*/React.createElement("div", {
15687
- className: "row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2 overflowyedit",
15688
- style: {
15689
- height: '30vh',
15690
- overflowY: 'scroll'
15691
- }
15687
+ className: "row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2 overflowyedit"
15692
15688
  }, /*#__PURE__*/React.createElement("div", {
15693
15689
  className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
15694
15690
  }, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
@@ -57069,9 +57065,9 @@ var Popupcomponent = function Popupcomponent(props) {
57069
57065
  var ikimagecredcontext = props.actions.ikimagecredcontext;
57070
57066
  props.actions;
57071
57067
  var _useState3 = useState(true),
57072
- _useState4 = _slicedToArray(_useState3, 2),
57073
- showpopup = _useState4[0],
57074
- setshowpopup = _useState4[1];
57068
+ _useState4 = _slicedToArray(_useState3, 2);
57069
+ _useState4[0];
57070
+ _useState4[1];
57075
57071
  var _useState5 = useState([]),
57076
57072
  _useState6 = _slicedToArray(_useState5, 2),
57077
57073
  imagesarray = _useState6[0],
@@ -57097,17 +57093,33 @@ var Popupcomponent = function Popupcomponent(props) {
57097
57093
  }
57098
57094
  }
57099
57095
  }, [sectionproperties]);
57100
- var closePopUp = function closePopUp() {
57101
- localStorage.setItem('seenPopUp', true);
57102
- setshowpopup(false);
57103
- };
57096
+ // const closePopUp = () => {
57097
+ // localStorage.setItem('seenPopUp', true);
57098
+ // setshowpopup(false);
57099
+ // };
57100
+ // useEffect(() => {
57101
+ // let returningUser = localStorage.getItem('seenPopUp');
57102
+ // setshowpopup(!returningUser);
57103
+ // }, []);
57104
+ var _useState7 = useState(false),
57105
+ _useState8 = _slicedToArray(_useState7, 2),
57106
+ isModalVisible = _useState8[0],
57107
+ setModalVisible = _useState8[1];
57104
57108
  useEffect(function () {
57105
- var returningUser = localStorage.getItem('seenPopUp');
57106
- setshowpopup(!returningUser);
57109
+ // Check if the modal has been shown in the current session
57110
+ var hasModalBeenShown = sessionStorage.getItem('modalShown');
57111
+ if (!hasModalBeenShown) {
57112
+ setModalVisible(true);
57113
+ // Set the flag in sessionStorage
57114
+ sessionStorage.setItem('modalShown', 'true');
57115
+ }
57107
57116
  }, []);
57117
+ var closePopUp = function closePopUp() {
57118
+ setModalVisible(false);
57119
+ };
57108
57120
  return /*#__PURE__*/React.createElement("div", {
57109
57121
  className: "row ml-0 mr-0 w-100"
57110
- }, showpopup == true && Object.keys(imagesarray).length != 0 && /*#__PURE__*/React.createElement(Modal, {
57122
+ }, isModalVisible && Object.keys(imagesarray).length != 0 && /*#__PURE__*/React.createElement(Modal, {
57111
57123
  show: true,
57112
57124
  onHide: function onHide() {
57113
57125
  closePopUp();
package/dist/index.umd.js CHANGED
@@ -15557,11 +15557,7 @@
15557
15557
  }))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
15558
15558
  className: "p-0"
15559
15559
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15560
- className: "row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2 overflowyedit",
15561
- style: {
15562
- height: '30vh',
15563
- overflowY: 'scroll'
15564
- }
15560
+ className: "row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2 overflowyedit"
15565
15561
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15566
15562
  className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
15567
15563
  }, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
@@ -56942,9 +56938,9 @@
56942
56938
  var ikimagecredcontext = props.actions.ikimagecredcontext;
56943
56939
  props.actions;
56944
56940
  var _useState3 = React.useState(true),
56945
- _useState4 = _slicedToArray__default["default"](_useState3, 2),
56946
- showpopup = _useState4[0],
56947
- setshowpopup = _useState4[1];
56941
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
56942
+ _useState4[0];
56943
+ _useState4[1];
56948
56944
  var _useState5 = React.useState([]),
56949
56945
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
56950
56946
  imagesarray = _useState6[0],
@@ -56970,17 +56966,33 @@
56970
56966
  }
56971
56967
  }
56972
56968
  }, [sectionproperties]);
56973
- var closePopUp = function closePopUp() {
56974
- localStorage.setItem('seenPopUp', true);
56975
- setshowpopup(false);
56976
- };
56969
+ // const closePopUp = () => {
56970
+ // localStorage.setItem('seenPopUp', true);
56971
+ // setshowpopup(false);
56972
+ // };
56973
+ // useEffect(() => {
56974
+ // let returningUser = localStorage.getItem('seenPopUp');
56975
+ // setshowpopup(!returningUser);
56976
+ // }, []);
56977
+ var _useState7 = React.useState(false),
56978
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
56979
+ isModalVisible = _useState8[0],
56980
+ setModalVisible = _useState8[1];
56977
56981
  React.useEffect(function () {
56978
- var returningUser = localStorage.getItem('seenPopUp');
56979
- setshowpopup(!returningUser);
56982
+ // Check if the modal has been shown in the current session
56983
+ var hasModalBeenShown = sessionStorage.getItem('modalShown');
56984
+ if (!hasModalBeenShown) {
56985
+ setModalVisible(true);
56986
+ // Set the flag in sessionStorage
56987
+ sessionStorage.setItem('modalShown', 'true');
56988
+ }
56980
56989
  }, []);
56990
+ var closePopUp = function closePopUp() {
56991
+ setModalVisible(false);
56992
+ };
56981
56993
  return /*#__PURE__*/React__default["default"].createElement("div", {
56982
56994
  className: "row ml-0 mr-0 w-100"
56983
- }, showpopup == true && Object.keys(imagesarray).length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
56995
+ }, isModalVisible && Object.keys(imagesarray).length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
56984
56996
  show: true,
56985
56997
  onHide: function onHide() {
56986
56998
  closePopUp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.590",
3
+ "version": "0.0.593",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {