@playpilot/tpi 8.4.1 → 8.4.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.4.1",
3
+ "version": "8.4.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -1,7 +1,9 @@
1
1
  <script lang="ts">
2
+ import { Language } from '$lib/enums/Language'
2
3
  import { SplitTest } from '$lib/enums/SplitTest'
3
4
  import { destroyExplore, insertExplore, useExploreRouter } from '$lib/explore'
4
5
  import { getPageTextAndElements } from '$lib/injectionElements'
6
+ import { getLanguage } from '$lib/language'
5
7
  import { getFullUrlPath } from '$lib/url'
6
8
  import { onDestroy } from 'svelte'
7
9
 
@@ -186,12 +188,27 @@
186
188
 
187
189
  <hr />
188
190
 
189
- <small>Region</small>
190
- <input type="text" value={window.PlayPilotLinkInjections.region} onchange={event => {
191
- destroyExplore()
192
- window.PlayPilotLinkInjections.region = (event.target as HTMLInputElement).value
193
- insertExplore()
194
- }} />
191
+ <div>
192
+ <small>Region</small>
193
+ <input type="text" value={window.PlayPilotLinkInjections.region} onchange={event => {
194
+ destroyExplore()
195
+ window.PlayPilotLinkInjections.region = (event.target as HTMLInputElement).value
196
+ insertExplore()
197
+ }} />
198
+ </div>
199
+
200
+ <div style="margin-top: 4px">
201
+ <small>Language</small>
202
+ <select onchange={event => {
203
+ destroyExplore()
204
+ window.PlayPilotLinkInjections.language = (event.target as HTMLInputElement).value
205
+ insertExplore()
206
+ }}>
207
+ {#each Object.entries(Language) as [label, value] }
208
+ <option {value} selected={value === getLanguage()}>{label}</option>
209
+ {/each}
210
+ </select>
211
+ </div>
195
212
 
196
213
  <hr />
197
214
 
@@ -239,7 +256,8 @@
239
256
  }
240
257
  }
241
258
 
242
- input[type="text"] {
259
+ input[type="text"],
260
+ select {
243
261
  padding: margin(0.5);
244
262
  border: 1px solid theme(primary);
245
263
  background: black;
@@ -253,7 +271,7 @@
253
271
  top: 0;
254
272
  left: 0;
255
273
  max-width: 70dvw;
256
- max-height: 50dvh;
274
+ max-height: 80dvh;
257
275
  padding: margin(1);
258
276
  border: 1px solid theme(primary);
259
277
  background: black;
@@ -19,11 +19,11 @@
19
19
  }, {
20
20
  heading: t('List: Upcoming'),
21
21
  params: { from_playlist_sid: 'li42wf', region: null, no_region_filter: true },
22
- properties: { expandable: true },
22
+ properties: { aside: true, size: 'large' },
23
23
  }, {
24
24
  heading: t('List: New'),
25
25
  params: { from_playlist_sid: 'li42WR', include_playable_types: 'SVOD,FREE' },
26
- properties: { aside: true, size: 'large' },
26
+ properties: { expandable: true },
27
27
  }, {
28
28
  heading: t('List: Demand'),
29
29
  params: { from_playlist_sid: 'licBS' },
@@ -31,7 +31,7 @@
31
31
  }, {
32
32
  heading: t('List: Cinema'),
33
33
  params: { from_playlist_sid: 'li42WS', region: null, no_region_filter: true },
34
- properties: {},
34
+ properties: { aside: true, size: 'large' },
35
35
  }]
36
36
 
37
37
  async function getListTitles(params: Record<string, any> = {}): Promise<TitleData[]> {
@@ -219,6 +219,10 @@
219
219
  width: calc(var(--width) * 2);
220
220
  height: var(--image-height);
221
221
  overflow: hidden;
222
+
223
+ &.expanded {
224
+ width: calc(var(--expanded-width) + var(--width));
225
+ }
222
226
  }
223
227
  }
224
228