@applicaster/zapp-react-native-utils 13.0.0-rc.141 → 13.0.0-rc.143
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.
|
@@ -2331,7 +2331,53 @@ function getPlayerConfiguration({ platform }) {
|
|
|
2331
2331
|
type: "number_input",
|
|
2332
2332
|
label: "Android TV Font Size",
|
|
2333
2333
|
key: "android_tv_audio_player_summary_font_size",
|
|
2334
|
-
initial_value:
|
|
2334
|
+
initial_value: 22,
|
|
2335
|
+
},
|
|
2336
|
+
]
|
|
2337
|
+
),
|
|
2338
|
+
fieldsGroup(
|
|
2339
|
+
"Audio Player Background",
|
|
2340
|
+
"This section allows you to configure the audio player layout",
|
|
2341
|
+
[
|
|
2342
|
+
{
|
|
2343
|
+
key: "audio_player_background_color",
|
|
2344
|
+
label: "Background Color",
|
|
2345
|
+
label_tooltip:
|
|
2346
|
+
"Set a background color using hex format and opacity. If left empty, the default color from the app’s theme will be used.",
|
|
2347
|
+
type: "color_picker_rgba",
|
|
2348
|
+
initial_value: "rgba(17, 17, 17, 1)",
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
key: "audio_player_background_image",
|
|
2352
|
+
label: "Background Image",
|
|
2353
|
+
label_tooltip:
|
|
2354
|
+
"Upload a background image for the audio player. If no image is provided, the background color will be used as a fallback.",
|
|
2355
|
+
type: "uploader",
|
|
2356
|
+
default: "",
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
key: "audio_player_background_image_overlay",
|
|
2360
|
+
label: "Background Image Overlay",
|
|
2361
|
+
label_tooltip:
|
|
2362
|
+
"Add a semi-transparent color overlay to improve text readability over the background image.",
|
|
2363
|
+
type: "color_picker_rgba",
|
|
2364
|
+
initial_value: "rgba(17, 17, 17, 0.5)",
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
type: "text_input",
|
|
2368
|
+
label: "Item Image Key",
|
|
2369
|
+
key: "audio_player_artwork_image_key",
|
|
2370
|
+
label_tooltip:
|
|
2371
|
+
"Define the key used to fetch the item’s image. If left empty, a default image will be shown.",
|
|
2372
|
+
initial_value: "image_base",
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
key: "audio_player_artwork_border_radius",
|
|
2376
|
+
label: "Item Image Corner Radius",
|
|
2377
|
+
label_tooltip:
|
|
2378
|
+
"Set the corner radius (in pixels) for item images. Leave empty for sharp corners (0px).",
|
|
2379
|
+
type: "number_input",
|
|
2380
|
+
initial_value: 16,
|
|
2335
2381
|
},
|
|
2336
2382
|
]
|
|
2337
2383
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "13.0.0-rc.
|
|
3
|
+
"version": "13.0.0-rc.143",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@applicaster/applicaster-types": "13.0.0-rc.
|
|
30
|
+
"@applicaster/applicaster-types": "13.0.0-rc.143",
|
|
31
31
|
"buffer": "^5.2.1",
|
|
32
32
|
"camelize": "^1.0.0",
|
|
33
33
|
"dayjs": "^1.11.10",
|
package/time/BackgroundTimer.ts
CHANGED
|
@@ -13,13 +13,15 @@ class BackgroundTimer {
|
|
|
13
13
|
|
|
14
14
|
const EventEmitter = platformSelect({
|
|
15
15
|
android: DeviceEventEmitter,
|
|
16
|
-
|
|
16
|
+
android_tv: DeviceEventEmitter,
|
|
17
|
+
amazon: DeviceEventEmitter, // probably does not exist and uses android_tv
|
|
17
18
|
default: undefined,
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
EventEmitter?.addListener("BackgroundTimer.timer.fired", (id: number) => {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
const callback = this.callbacks[id];
|
|
23
|
+
|
|
24
|
+
if (callback) {
|
|
23
25
|
delete this.callbacks[id];
|
|
24
26
|
callback();
|
|
25
27
|
}
|