@playpilot/tpi 8.19.1-beta.6 → 8.21.0
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/dist/editorial.mount.js +8 -8
- package/dist/link-injections.js +2 -2
- package/dist/mount.js +5 -5
- package/package.json +1 -1
- package/src/routes/components/Explore/Routes/ExploreHome.svelte +1 -1
- package/src/routes/components/Modals/RailModal.svelte +38 -2
- package/src/routes/components/YouTubeEmbed.svelte +2 -0
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
const rails: { heading: string, params: Record<string, any>, properties: Record<string, any> }[] = [{
|
|
16
16
|
heading: 'List: Upcoming',
|
|
17
17
|
params: { from_playlist_sid: 'li42wf', region: null, no_region_filter: true },
|
|
18
|
-
properties: {},
|
|
18
|
+
properties: { expandable: true },
|
|
19
19
|
}, {
|
|
20
20
|
heading: 'List: Trending',
|
|
21
21
|
params: { ordering: Sorting.Popular },
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import RoundButton from '../RoundButton.svelte'
|
|
8
8
|
import IconClose from '../Icons/IconClose.svelte'
|
|
9
9
|
import IconArrow from '../Icons/IconArrow.svelte'
|
|
10
|
+
import Button from '../Button.svelte'
|
|
10
11
|
|
|
11
12
|
interface Props {
|
|
12
13
|
items: Record<string, any>[]
|
|
@@ -28,8 +29,9 @@
|
|
|
28
29
|
if (initialIndex !== 0) slider?.setIndex(initialIndex)
|
|
29
30
|
|
|
30
31
|
requestAnimationFrame(() => {
|
|
32
|
+
slider?.reposition()
|
|
33
|
+
|
|
31
34
|
initialized = true
|
|
32
|
-
slider.reposition()
|
|
33
35
|
})
|
|
34
36
|
})
|
|
35
37
|
})
|
|
@@ -74,6 +76,15 @@
|
|
|
74
76
|
</TinySlider>
|
|
75
77
|
</div>
|
|
76
78
|
|
|
79
|
+
{#if window.location.href.includes('route=modal')}
|
|
80
|
+
<div class="back">
|
|
81
|
+
<Button variant="link" onclick={() => { onclose(); destroyAllModals() }}>
|
|
82
|
+
<IconArrow direction="left" />
|
|
83
|
+
Streaming guide
|
|
84
|
+
</Button>
|
|
85
|
+
</div>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
77
88
|
<div class="close" transition:scale|global>
|
|
78
89
|
<RoundButton size="42px" onclick={() => { onclose(); destroyAllModals() }} aria-label="Close">
|
|
79
90
|
<IconClose size={24} />
|
|
@@ -158,7 +169,7 @@
|
|
|
158
169
|
|
|
159
170
|
@include desktop {
|
|
160
171
|
height: auto;
|
|
161
|
-
max-height:
|
|
172
|
+
max-height: 85vh;
|
|
162
173
|
border-radius: theme(rail-modal-item-border-radius, border-radius-huge);
|
|
163
174
|
}
|
|
164
175
|
|
|
@@ -175,6 +186,31 @@
|
|
|
175
186
|
right: margin(1);
|
|
176
187
|
}
|
|
177
188
|
|
|
189
|
+
.back {
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: margin(1.5);
|
|
192
|
+
left: calc((100vw - $size) / 2);
|
|
193
|
+
font-family: theme(font-family);
|
|
194
|
+
transition: transform 50ms;
|
|
195
|
+
|
|
196
|
+
@include desktop {
|
|
197
|
+
left: margin(1);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:hover {
|
|
201
|
+
transform: scale(1.025);
|
|
202
|
+
|
|
203
|
+
:global(button) {
|
|
204
|
+
text-decoration-thickness: 2px;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:global(button) {
|
|
209
|
+
text-decoration: underline;
|
|
210
|
+
color: white;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
178
214
|
.arrow {
|
|
179
215
|
--offset: #{margin(-1.25)};
|
|
180
216
|
--scale: 1;
|