@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.19.1-beta.6",
3
+ "version": "8.21.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -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: 90vh;
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;
@@ -64,6 +64,8 @@
64
64
 
65
65
  <style lang="scss">
66
66
  iframe {
67
+ z-index: -1;
68
+ position: relative;
67
69
  width: 100%;
68
70
  height: 100%;
69
71
  }