swup 4.4.0 → 4.4.1

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.
Files changed (83) hide show
  1. package/dist/Swup.cjs +1 -1
  2. package/dist/Swup.cjs.map +1 -1
  3. package/dist/Swup.modern.js +1 -1
  4. package/dist/Swup.modern.js.map +1 -1
  5. package/dist/Swup.module.js +1 -1
  6. package/dist/Swup.module.js.map +1 -1
  7. package/dist/Swup.umd.js +1 -1
  8. package/dist/Swup.umd.js.map +1 -1
  9. package/dist/types/Swup.d.ts +8 -5
  10. package/dist/types/Swup.d.ts.map +1 -0
  11. package/dist/types/config/version.d.ts +1 -0
  12. package/dist/types/config/version.d.ts.map +1 -0
  13. package/dist/types/helpers/Location.d.ts +1 -0
  14. package/dist/types/helpers/Location.d.ts.map +1 -0
  15. package/dist/types/helpers/classify.d.ts +1 -0
  16. package/dist/types/helpers/classify.d.ts.map +1 -0
  17. package/dist/types/helpers/createHistoryRecord.d.ts +1 -0
  18. package/dist/types/helpers/createHistoryRecord.d.ts.map +1 -0
  19. package/dist/types/helpers/delegateEvent.d.ts +3 -2
  20. package/dist/types/helpers/delegateEvent.d.ts.map +1 -0
  21. package/dist/types/helpers/getCurrentUrl.d.ts +1 -0
  22. package/dist/types/helpers/getCurrentUrl.d.ts.map +1 -0
  23. package/dist/types/helpers/matchPath.d.ts +2 -1
  24. package/dist/types/helpers/matchPath.d.ts.map +1 -0
  25. package/dist/types/helpers/updateHistoryRecord.d.ts +1 -0
  26. package/dist/types/helpers/updateHistoryRecord.d.ts.map +1 -0
  27. package/dist/types/helpers.d.ts +1 -0
  28. package/dist/types/helpers.d.ts.map +1 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/dist/types/index.d.ts.map +1 -0
  31. package/dist/types/modules/Cache.d.ts +3 -2
  32. package/dist/types/modules/Cache.d.ts.map +1 -0
  33. package/dist/types/modules/Classes.d.ts +2 -1
  34. package/dist/types/modules/Classes.d.ts.map +1 -0
  35. package/dist/types/modules/Hooks.d.ts +5 -4
  36. package/dist/types/modules/Hooks.d.ts.map +1 -0
  37. package/dist/types/modules/Visit.d.ts +4 -2
  38. package/dist/types/modules/Visit.d.ts.map +1 -0
  39. package/dist/types/modules/animatePageIn.d.ts +2 -1
  40. package/dist/types/modules/animatePageIn.d.ts.map +1 -0
  41. package/dist/types/modules/animatePageOut.d.ts +2 -1
  42. package/dist/types/modules/animatePageOut.d.ts.map +1 -0
  43. package/dist/types/modules/awaitAnimations.d.ts +3 -1
  44. package/dist/types/modules/awaitAnimations.d.ts.map +1 -0
  45. package/dist/types/modules/fetchPage.d.ts +2 -1
  46. package/dist/types/modules/fetchPage.d.ts.map +1 -0
  47. package/dist/types/modules/getAnchorElement.d.ts +1 -0
  48. package/dist/types/modules/getAnchorElement.d.ts.map +1 -0
  49. package/dist/types/modules/navigate.d.ts +4 -3
  50. package/dist/types/modules/navigate.d.ts.map +1 -0
  51. package/dist/types/modules/plugins.d.ts +2 -1
  52. package/dist/types/modules/plugins.d.ts.map +1 -0
  53. package/dist/types/modules/renderPage.d.ts +3 -2
  54. package/dist/types/modules/renderPage.d.ts.map +1 -0
  55. package/dist/types/modules/replaceContent.d.ts +4 -2
  56. package/dist/types/modules/replaceContent.d.ts.map +1 -0
  57. package/dist/types/modules/resolveUrl.d.ts +2 -1
  58. package/dist/types/modules/resolveUrl.d.ts.map +1 -0
  59. package/dist/types/modules/scrollToContent.d.ts +2 -1
  60. package/dist/types/modules/scrollToContent.d.ts.map +1 -0
  61. package/dist/types/utils/index.d.ts +1 -0
  62. package/dist/types/utils/index.d.ts.map +1 -0
  63. package/dist/types/utils.d.ts +1 -0
  64. package/dist/types/utils.d.ts.map +1 -0
  65. package/package.json +2 -1
  66. package/src/Swup.ts +14 -6
  67. package/src/helpers/delegateEvent.ts +6 -2
  68. package/src/helpers/matchPath.ts +1 -1
  69. package/src/helpers/updateHistoryRecord.ts +1 -1
  70. package/src/modules/Cache.ts +2 -2
  71. package/src/modules/Classes.ts +1 -1
  72. package/src/modules/Hooks.ts +4 -4
  73. package/src/modules/Visit.ts +3 -2
  74. package/src/modules/animatePageIn.ts +1 -1
  75. package/src/modules/animatePageOut.ts +1 -1
  76. package/src/modules/awaitAnimations.ts +2 -1
  77. package/src/modules/fetchPage.ts +1 -1
  78. package/src/modules/navigate.ts +5 -3
  79. package/src/modules/plugins.ts +1 -1
  80. package/src/modules/renderPage.ts +2 -2
  81. package/src/modules/replaceContent.ts +3 -2
  82. package/src/modules/resolveUrl.ts +1 -1
  83. package/src/modules/scrollToContent.ts +1 -1
@@ -1,6 +1,7 @@
1
- import Swup, { Options } from '../Swup.js';
1
+ import type Swup from '../Swup.js';
2
+ import type { Options } from '../Swup.js';
2
3
  import { query, queryAll } from '../utils.js';
3
- import { PageData } from './fetchPage.js';
4
+ import type { PageData } from './fetchPage.js';
4
5
 
5
6
  /**
6
7
  * Perform the replacement of content after loading a page.
@@ -1,4 +1,4 @@
1
- import Swup from '../Swup.js';
1
+ import type Swup from '../Swup.js';
2
2
 
3
3
  /**
4
4
  * Utility function to validate and run the global option 'resolveUrl'
@@ -1,4 +1,4 @@
1
- import Swup from '../Swup.js';
1
+ import type Swup from '../Swup.js';
2
2
 
3
3
  /**
4
4
  * Update the scroll position after page render.