@inertiaui/modal-react 0.5.3 → 0.5.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inertiaui/modal-react",
3
3
  "author": "Pascal Baljet <pascal@protone.media>",
4
- "version": "0.5.3",
4
+ "version": "0.5.4",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -49,4 +49,4 @@
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  }
52
- }
52
+ }
package/src/ModalRoot.jsx CHANGED
@@ -129,7 +129,6 @@ export const ModalStackProvider = ({ children }) => {
129
129
  }
130
130
 
131
131
  close = () => {
132
- console.log('Closing', this.id)
133
132
  updateStack((prevStack) =>
134
133
  prevStack.map((modal) => {
135
134
  if (modal.id === this.id && modal.isOpen) {
@@ -146,7 +145,6 @@ export const ModalStackProvider = ({ children }) => {
146
145
  }
147
146
 
148
147
  afterLeave = () => {
149
- console.log('After leave', this.id)
150
148
  if (this.isOpen) {
151
149
  return
152
150
  }
@@ -377,7 +375,6 @@ export const ModalStackProvider = ({ children }) => {
377
375
  push,
378
376
  pushFromResponseData,
379
377
  closeAll: () => {
380
- console.log('Closing all modals', { stack, localStackCopy })
381
378
  localStackCopy.reverse().forEach((modal) => modal.close())
382
379
  },
383
380
  reset: () => updateStack(() => []),