@inertiaui/modal-react 0.5.2 → 0.5.3

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.2",
4
+ "version": "0.5.3",
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
@@ -6,6 +6,7 @@ import { mergeDataIntoQueryString } from '@inertiajs/core'
6
6
  import { createContext, useContext } from 'react'
7
7
  import ModalRenderer from './ModalRenderer'
8
8
  import { waitFor } from './helpers'
9
+ import { getConfig } from './config'
9
10
 
10
11
  const ModalStackContext = createContext(null)
11
12
  ModalStackContext.displayName = 'ModalStackContext'
@@ -269,6 +270,7 @@ export const ModalStackProvider = ({ children }) => {
269
270
  options.onClose,
270
271
  options.onAfterLeave,
271
272
  options.queryStringArrayFormat ?? 'brackets',
273
+ options.navigate ?? getConfig('navigate'),
272
274
  )
273
275
 
274
276
  const visit = (