@playpilot/tpi 8.29.2 → 8.29.3-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.29.2",
3
+ "version": "8.29.3-beta.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
package/src/lib/modal.ts CHANGED
@@ -65,6 +65,8 @@ function addModalToList({ type = 'title', injection = null, data, scrollPosition
65
65
 
66
66
  /** Unmount the last modal is the list of modals but keep it in the list of active modals */
67
67
  export function closeCurrentModal(outro: boolean = true): void {
68
+ console.trace('closeCurrentModal')
69
+
68
70
  if (!modals.length) return
69
71
 
70
72
  saveCurrentModalScrollPosition()
@@ -80,6 +82,8 @@ export function destroyCurrentModal(outro: boolean = true): void {
80
82
  }
81
83
 
82
84
  export function destroyAllModals(outro: boolean = true): void {
85
+ console.trace('destroyAllModals')
86
+
83
87
  closeCurrentModal(outro)
84
88
 
85
89
  while (modals.length > 0) modals.pop()
@@ -8,7 +8,6 @@
8
8
  import { track } from '$lib/tracking'
9
9
  import type { ParticipantData } from '$lib/types/participant'
10
10
  import type { TitleData } from '$lib/types/title'
11
- import { getContext } from 'svelte'
12
11
  import ParticipantImage from '../Participants/ParticipantImage.svelte'
13
12
  import Rail from './Rail.svelte'
14
13
  import { exploreModalUrl } from '$lib/routes'
@@ -20,8 +19,6 @@
20
19
 
21
20
  const { title, heading = t('Cast') }: Props = $props()
22
21
 
23
- const navigate: Function | undefined = getContext('navigate')
24
-
25
22
  /**
26
23
  * Order participants by how often their name appears in an the page text. This only takes into account
27
24
  * their full name. If an actor is mentioned by first name only, which is often the case, they won't get
@@ -93,7 +93,7 @@ describe('ParticipantsRail.svelte', () => {
93
93
  window.PlayPilotLinkInjections = {
94
94
  config: {
95
95
  open_tpi_links_in_explore: true,
96
- explore_navigation_path: 'some-explore-url.com'
96
+ explore_navigation_path: 'some-explore-url.com',
97
97
  },
98
98
  }
99
99