@app-studio/web 0.3.44 → 0.3.46

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.
@@ -1,2 +1,3 @@
1
1
  export { MessageLayout } from './Message/Message.layout';
2
2
  export { MessageView } from './Message/Message.view';
3
+ export * from './Message/Message.store';
@@ -3,4 +3,5 @@ import { ModalType } from './Modal/Modal.props';
3
3
  * It is a custom content overlay that appears on top of the main screen.
4
4
  */
5
5
  export declare const Modal: ModalType;
6
+ export * from './Modal/Modal.store';
6
7
  export default Modal;
@@ -3884,7 +3884,7 @@ var SelectView = function SelectView(_ref6) {
3884
3884
  return setIsFocused(true);
3885
3885
  };
3886
3886
  var handleClick = function handleClick(event) {
3887
- event.stopPropagation();
3887
+ if (event && event.stopPropagation) event.stopPropagation();
3888
3888
  setHide(!hide);
3889
3889
  setIsFocused(!isFocused);
3890
3890
  };
@@ -4432,6 +4432,15 @@ var useModalStore = /*#__PURE__*/zustand.create(function (set) {
4432
4432
  }
4433
4433
  };
4434
4434
  });
4435
+ var showModal = function showModal(modal, modalProps, overlayProps) {
4436
+ if (modalProps === void 0) {
4437
+ modalProps = {};
4438
+ }
4439
+ if (overlayProps === void 0) {
4440
+ overlayProps = {};
4441
+ }
4442
+ useModalStore.getState().show(modal, modalProps, overlayProps);
4443
+ };
4435
4444
  var hideModal = function hideModal() {
4436
4445
  useModalStore.getState().hide();
4437
4446
  };
@@ -4502,7 +4511,6 @@ var ModalOverlay = function ModalOverlay(_ref) {
4502
4511
  onClick: handleClick,
4503
4512
  visibility: isOpen ? 'visible' : 'hidden'
4504
4513
  }, React__default.createElement(View, Object.assign({
4505
- cursor: "pointer",
4506
4514
  position: "absolute",
4507
4515
  top: 0,
4508
4516
  left: 0,
@@ -4695,4 +4703,7 @@ exports.TextField = TextField;
4695
4703
  exports.Top = Top;
4696
4704
  exports.Vertical = Vertical;
4697
4705
  exports.View = View;
4706
+ exports.hideModal = hideModal;
4707
+ exports.showModal = showModal;
4708
+ exports.useModalStore = useModalStore;
4698
4709
  //# sourceMappingURL=web.cjs.development.js.map