@pelcro/react-pelcro-js 4.0.0-alpha.43 → 4.0.0-alpha.44
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 +4 -4
- package/dist/index.esm.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14396,6 +14396,10 @@ function Modal({
|
|
|
14396
14396
|
children,
|
|
14397
14397
|
...props
|
|
14398
14398
|
}) {
|
|
14399
|
+
React.useEffect(() => {
|
|
14400
|
+
onDisplay === null || onDisplay === void 0 ? void 0 : onDisplay();
|
|
14401
|
+
dispatchModalDisplayEvents(id);
|
|
14402
|
+
}, []);
|
|
14399
14403
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14400
14404
|
className: "pelcro-modal-overlay"
|
|
14401
14405
|
}, /*#__PURE__*/React__default['default'].createElement("div", Object.assign({
|
|
@@ -14427,10 +14431,6 @@ const ModalHeader = ({
|
|
|
14427
14431
|
var _window$Pelcro, _window$Pelcro$site$r;
|
|
14428
14432
|
|
|
14429
14433
|
const resetView = usePelcro(state => state.resetView);
|
|
14430
|
-
React.useEffect(() => {
|
|
14431
|
-
onDisplay === null || onDisplay === void 0 ? void 0 : onDisplay();
|
|
14432
|
-
dispatchModalDisplayEvents(id);
|
|
14433
|
-
}, []);
|
|
14434
14434
|
|
|
14435
14435
|
const onClose = () => {
|
|
14436
14436
|
var _props$onClose;
|
package/dist/index.esm.js
CHANGED
|
@@ -14366,6 +14366,10 @@ function Modal({
|
|
|
14366
14366
|
children,
|
|
14367
14367
|
...props
|
|
14368
14368
|
}) {
|
|
14369
|
+
useEffect(() => {
|
|
14370
|
+
onDisplay === null || onDisplay === void 0 ? void 0 : onDisplay();
|
|
14371
|
+
dispatchModalDisplayEvents(id);
|
|
14372
|
+
}, []);
|
|
14369
14373
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14370
14374
|
className: "pelcro-modal-overlay"
|
|
14371
14375
|
}, /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
@@ -14397,10 +14401,6 @@ const ModalHeader = ({
|
|
|
14397
14401
|
var _window$Pelcro, _window$Pelcro$site$r;
|
|
14398
14402
|
|
|
14399
14403
|
const resetView = usePelcro(state => state.resetView);
|
|
14400
|
-
useEffect(() => {
|
|
14401
|
-
onDisplay === null || onDisplay === void 0 ? void 0 : onDisplay();
|
|
14402
|
-
dispatchModalDisplayEvents(id);
|
|
14403
|
-
}, []);
|
|
14404
14404
|
|
|
14405
14405
|
const onClose = () => {
|
|
14406
14406
|
var _props$onClose;
|