@use-voltra/android 2.3.2 → 2.4.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/build/commonjs/index.js +25 -0
- package/build/commonjs/index.js.map +1 -1
- package/build/commonjs/jsx/primitives.js +36 -0
- package/build/commonjs/jsx/primitives.js.map +1 -1
- package/build/commonjs/modifiers/createAndroidModifier.js +20 -0
- package/build/commonjs/modifiers/createAndroidModifier.js.map +1 -0
- package/build/commonjs/modifiers/index.js +188 -0
- package/build/commonjs/modifiers/index.js.map +1 -0
- package/build/commonjs/ongoing-notification/components.js +7 -1
- package/build/commonjs/ongoing-notification/components.js.map +1 -1
- package/build/commonjs/ongoing-notification/renderer.js +354 -18
- package/build/commonjs/ongoing-notification/renderer.js.map +1 -1
- package/build/commonjs/ongoing-notification/types.js +56 -0
- package/build/commonjs/ongoing-notification/types.js.map +1 -1
- package/build/commonjs/server.js.map +1 -1
- package/build/module/index.js +3 -1
- package/build/module/index.js.map +1 -1
- package/build/module/jsx/primitives.js +1 -0
- package/build/module/jsx/primitives.js.map +1 -1
- package/build/module/modifiers/createAndroidModifier.js +15 -0
- package/build/module/modifiers/createAndroidModifier.js.map +1 -0
- package/build/module/modifiers/index.js +169 -0
- package/build/module/modifiers/index.js.map +1 -0
- package/build/module/ongoing-notification/components.js +6 -0
- package/build/module/ongoing-notification/components.js.map +1 -1
- package/build/module/ongoing-notification/renderer.js +354 -18
- package/build/module/ongoing-notification/renderer.js.map +1 -1
- package/build/module/ongoing-notification/types.js +55 -1
- package/build/module/ongoing-notification/types.js.map +1 -1
- package/build/module/server.js.map +1 -1
- package/build/typescript/commonjs/index.d.ts +4 -3
- package/build/typescript/commonjs/index.d.ts.map +1 -1
- package/build/typescript/commonjs/jsx/baseProps.d.ts +8 -0
- package/build/typescript/commonjs/jsx/baseProps.d.ts.map +1 -1
- package/build/typescript/commonjs/jsx/primitives.d.ts +1 -0
- package/build/typescript/commonjs/jsx/primitives.d.ts.map +1 -1
- package/build/typescript/commonjs/modifiers/createAndroidModifier.d.ts +13 -0
- package/build/typescript/commonjs/modifiers/createAndroidModifier.d.ts.map +1 -0
- package/build/typescript/commonjs/modifiers/index.d.ts +171 -0
- package/build/typescript/commonjs/modifiers/index.d.ts.map +1 -0
- package/build/typescript/commonjs/ongoing-notification/components.d.ts +8 -2
- package/build/typescript/commonjs/ongoing-notification/components.d.ts.map +1 -1
- package/build/typescript/commonjs/ongoing-notification/renderer.d.ts.map +1 -1
- package/build/typescript/commonjs/ongoing-notification/types.d.ts +281 -3
- package/build/typescript/commonjs/ongoing-notification/types.d.ts.map +1 -1
- package/build/typescript/commonjs/server.d.ts +1 -1
- package/build/typescript/commonjs/server.d.ts.map +1 -1
- package/build/typescript/module/index.d.ts +4 -3
- package/build/typescript/module/index.d.ts.map +1 -1
- package/build/typescript/module/jsx/baseProps.d.ts +8 -0
- package/build/typescript/module/jsx/baseProps.d.ts.map +1 -1
- package/build/typescript/module/jsx/primitives.d.ts +1 -0
- package/build/typescript/module/jsx/primitives.d.ts.map +1 -1
- package/build/typescript/module/modifiers/createAndroidModifier.d.ts +13 -0
- package/build/typescript/module/modifiers/createAndroidModifier.d.ts.map +1 -0
- package/build/typescript/module/modifiers/index.d.ts +171 -0
- package/build/typescript/module/modifiers/index.d.ts.map +1 -0
- package/build/typescript/module/ongoing-notification/components.d.ts +8 -2
- package/build/typescript/module/ongoing-notification/components.d.ts.map +1 -1
- package/build/typescript/module/ongoing-notification/renderer.d.ts.map +1 -1
- package/build/typescript/module/ongoing-notification/types.d.ts +281 -3
- package/build/typescript/module/ongoing-notification/types.d.ts.map +1 -1
- package/build/typescript/module/server.d.ts +1 -1
- package/build/typescript/module/server.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +36 -2
- package/src/jsx/baseProps.tsx +8 -0
- package/src/jsx/primitives.ts +1 -0
- package/src/modifiers/createAndroidModifier.ts +21 -0
- package/src/modifiers/index.ts +166 -0
- package/src/ongoing-notification/components.tsx +22 -1
- package/src/ongoing-notification/renderer.ts +451 -18
- package/src/ongoing-notification/types.ts +298 -4
- package/src/server.ts +15 -0
|
@@ -1,12 +1,70 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ImageSource } from '../jsx/Image.js';
|
|
3
3
|
export type AndroidOngoingNotificationFallbackBehavior = 'standard' | 'error';
|
|
4
|
+
/** Lock-screen and heads-up visibility, mapped onto `Notification.VISIBILITY_*` on Android. */
|
|
5
|
+
export declare const ANDROID_ONGOING_NOTIFICATION_VISIBILITIES: readonly ["public", "private", "secret"];
|
|
6
|
+
export type AndroidOngoingNotificationVisibility = (typeof ANDROID_ONGOING_NOTIFICATION_VISIBILITIES)[number];
|
|
7
|
+
/**
|
|
8
|
+
* Notification categories Voltra exposes.
|
|
9
|
+
*
|
|
10
|
+
* Categories that carry do-not-disturb or ranking meaning for other notification kinds (`call`,
|
|
11
|
+
* `alarm`, `message`, and the rest) are deliberately absent: Voltra does not post those kinds, and
|
|
12
|
+
* picking one would change how an ongoing notification is treated beside unrelated notifications.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ANDROID_ONGOING_NOTIFICATION_CATEGORIES: readonly ["progress", "navigation", "transport", "service", "status", "workout", "stopwatch", "location_sharing"];
|
|
15
|
+
export type AndroidOngoingNotificationCategory = (typeof ANDROID_ONGOING_NOTIFICATION_CATEGORIES)[number];
|
|
16
|
+
/**
|
|
17
|
+
* How the system should treat an ongoing notification for its whole lifetime.
|
|
18
|
+
*
|
|
19
|
+
* These belong in the options rather than the payload because they are a decision the app makes
|
|
20
|
+
* once and keeps: an update that does not mention them must not change them, and a server that only
|
|
21
|
+
* renders what the notification says has no business deciding them. Set them where you set
|
|
22
|
+
* `channelId`.
|
|
23
|
+
*/
|
|
24
|
+
export type AndroidOngoingNotificationPresentationOptions = {
|
|
25
|
+
/** Lock-screen visibility. Unset keeps the system default, which is `'private'`. */
|
|
26
|
+
visibility?: AndroidOngoingNotificationVisibility;
|
|
27
|
+
/** Accent color for the notification, as any static color string: `#1E88E5`, `rgb(30, 136, 229)`, or a name. */
|
|
28
|
+
color?: string;
|
|
29
|
+
/** Overrides the category Voltra derives from the payload kind. */
|
|
30
|
+
category?: AndroidOngoingNotificationCategory;
|
|
31
|
+
/**
|
|
32
|
+
* Remove the notification after this many milliseconds without an update. Applied on every post,
|
|
33
|
+
* so each update restarts the timer. Needs Android 8.0 or newer; the value is kept on older
|
|
34
|
+
* releases and applied once the device updates.
|
|
35
|
+
*/
|
|
36
|
+
timeoutMs?: number;
|
|
37
|
+
/** Keep the notification on this device instead of mirroring it to Wear or Android Auto. */
|
|
38
|
+
localOnly?: boolean;
|
|
39
|
+
/** Group key, for the system bundle that collects this notification with siblings. */
|
|
40
|
+
group?: string;
|
|
41
|
+
/** Orders this notification inside its group. */
|
|
42
|
+
sortKey?: string;
|
|
43
|
+
/** Let the system add its own contextual actions, such as a directions chip. Defaults to the platform default, `true`. */
|
|
44
|
+
allowSystemGeneratedContextualActions?: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** The lock-screen copy of a notification whose private content should stay hidden there. */
|
|
47
|
+
export type AndroidOngoingNotificationPublicVersion = {
|
|
48
|
+
title: string;
|
|
49
|
+
text?: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Display props shared by both payload kinds.
|
|
53
|
+
*
|
|
54
|
+
* These travel in the payload rather than the options because they say what the notification means
|
|
55
|
+
* right now: like `title` and `text`, an update replaces them wholesale, so omitting `publicVersion`
|
|
56
|
+
* posts without one.
|
|
57
|
+
*/
|
|
58
|
+
export type AndroidOngoingNotificationChronometer = boolean | 'countUp' | 'countDown';
|
|
4
59
|
export type AndroidOngoingNotificationCommonDisplayProps = {
|
|
5
60
|
title?: string;
|
|
6
61
|
subText?: string;
|
|
7
62
|
shortCriticalText?: string;
|
|
8
63
|
when?: Date | number;
|
|
9
|
-
chronometer?:
|
|
64
|
+
chronometer?: AndroidOngoingNotificationChronometer;
|
|
65
|
+
/** Show the timestamp. Defaults to true when `when` or `chronometer` is set, false otherwise. */
|
|
66
|
+
showWhen?: boolean;
|
|
67
|
+
publicVersion?: AndroidOngoingNotificationPublicVersion;
|
|
10
68
|
};
|
|
11
69
|
export type AndroidOngoingNotificationProgressSegment = {
|
|
12
70
|
length: number;
|
|
@@ -45,6 +103,76 @@ export type AndroidOngoingNotificationBigTextProps = AndroidOngoingNotificationC
|
|
|
45
103
|
largeIcon?: ImageSource;
|
|
46
104
|
children?: ReactNode;
|
|
47
105
|
};
|
|
106
|
+
export type AndroidOngoingNotificationBigPictureProps = AndroidOngoingNotificationCommonDisplayProps & {
|
|
107
|
+
picture: ImageSource;
|
|
108
|
+
text?: string;
|
|
109
|
+
summaryText?: string;
|
|
110
|
+
pictureContentDescription?: string;
|
|
111
|
+
showPictureWhenCollapsed?: boolean;
|
|
112
|
+
largeIcon?: ImageSource;
|
|
113
|
+
bigLargeIcon?: ImageSource;
|
|
114
|
+
hideLargeIconWhenExpanded?: boolean;
|
|
115
|
+
children?: ReactNode;
|
|
116
|
+
};
|
|
117
|
+
export type AndroidOngoingNotificationInboxProps = AndroidOngoingNotificationCommonDisplayProps & {
|
|
118
|
+
lines: string[];
|
|
119
|
+
text?: string;
|
|
120
|
+
summaryText?: string;
|
|
121
|
+
largeIcon?: ImageSource;
|
|
122
|
+
children?: ReactNode;
|
|
123
|
+
};
|
|
124
|
+
export type AndroidOngoingNotificationMetricSemanticStyle = 'unspecified' | 'info' | 'safe' | 'caution' | 'danger';
|
|
125
|
+
export type AndroidOngoingNotificationMetricTimeFormat = 'adaptive' | 'chronometer';
|
|
126
|
+
/**
|
|
127
|
+
* A metric reading. Plain numbers and strings are shorthands: an integer becomes
|
|
128
|
+
* `int`, any other number becomes `float`, and a string becomes `text`.
|
|
129
|
+
*/
|
|
130
|
+
export type AndroidOngoingNotificationMetricValue = {
|
|
131
|
+
type: 'int';
|
|
132
|
+
value: number;
|
|
133
|
+
unit?: string;
|
|
134
|
+
} | {
|
|
135
|
+
type: 'float';
|
|
136
|
+
value: number;
|
|
137
|
+
unit?: string;
|
|
138
|
+
min?: number;
|
|
139
|
+
max?: number;
|
|
140
|
+
fractionDigits?: number;
|
|
141
|
+
} | {
|
|
142
|
+
type: 'text';
|
|
143
|
+
value: string;
|
|
144
|
+
unit?: string;
|
|
145
|
+
} | {
|
|
146
|
+
type: 'time';
|
|
147
|
+
value: string;
|
|
148
|
+
} | {
|
|
149
|
+
type: 'timer';
|
|
150
|
+
endsAt: number | Date;
|
|
151
|
+
format?: AndroidOngoingNotificationMetricTimeFormat;
|
|
152
|
+
} | {
|
|
153
|
+
type: 'stopwatch';
|
|
154
|
+
startedAt: number | Date;
|
|
155
|
+
format?: AndroidOngoingNotificationMetricTimeFormat;
|
|
156
|
+
} | {
|
|
157
|
+
type: 'pausedTimer';
|
|
158
|
+
remainingMillis: number;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'pausedStopwatch';
|
|
161
|
+
elapsedMillis: number;
|
|
162
|
+
} | number | string;
|
|
163
|
+
export type AndroidOngoingNotificationMetricDescriptor = {
|
|
164
|
+
label: string;
|
|
165
|
+
value: AndroidOngoingNotificationMetricValue;
|
|
166
|
+
/** Shorthand for the unit of a number value; moved into the value object when rendering. */
|
|
167
|
+
unit?: string;
|
|
168
|
+
};
|
|
169
|
+
export type AndroidOngoingNotificationMetricProps = AndroidOngoingNotificationCommonDisplayProps & {
|
|
170
|
+
metrics: AndroidOngoingNotificationMetricDescriptor[];
|
|
171
|
+
criticalMetric?: number;
|
|
172
|
+
semanticStyle?: AndroidOngoingNotificationMetricSemanticStyle;
|
|
173
|
+
largeIcon?: ImageSource;
|
|
174
|
+
children?: ReactNode;
|
|
175
|
+
};
|
|
48
176
|
export type AndroidOngoingNotificationProgressPayload = {
|
|
49
177
|
v: 1;
|
|
50
178
|
kind: 'progress';
|
|
@@ -57,7 +185,10 @@ export type AndroidOngoingNotificationProgressPayload = {
|
|
|
57
185
|
shortCriticalText?: string;
|
|
58
186
|
when?: number;
|
|
59
187
|
chronometer?: boolean;
|
|
188
|
+
chronometerCountDown?: boolean;
|
|
189
|
+
showWhen?: boolean;
|
|
60
190
|
largeIcon?: ImageSource;
|
|
191
|
+
publicVersion?: AndroidOngoingNotificationPublicVersion;
|
|
61
192
|
progressTrackerIcon?: ImageSource;
|
|
62
193
|
progressStartIcon?: ImageSource;
|
|
63
194
|
progressEndIcon?: ImageSource;
|
|
@@ -75,10 +206,105 @@ export type AndroidOngoingNotificationBigTextPayload = {
|
|
|
75
206
|
shortCriticalText?: string;
|
|
76
207
|
when?: number;
|
|
77
208
|
chronometer?: boolean;
|
|
209
|
+
chronometerCountDown?: boolean;
|
|
210
|
+
showWhen?: boolean;
|
|
211
|
+
largeIcon?: ImageSource;
|
|
212
|
+
publicVersion?: AndroidOngoingNotificationPublicVersion;
|
|
213
|
+
actions?: AndroidOngoingNotificationActionPayload[];
|
|
214
|
+
};
|
|
215
|
+
export type AndroidOngoingNotificationBigPicturePayload = {
|
|
216
|
+
v: 1;
|
|
217
|
+
kind: 'bigPicture';
|
|
218
|
+
title?: string;
|
|
219
|
+
subText?: string;
|
|
220
|
+
text?: string;
|
|
221
|
+
picture: ImageSource;
|
|
222
|
+
summaryText?: string;
|
|
223
|
+
pictureContentDescription?: string;
|
|
224
|
+
showPictureWhenCollapsed?: boolean;
|
|
78
225
|
largeIcon?: ImageSource;
|
|
226
|
+
bigLargeIcon?: ImageSource;
|
|
227
|
+
hideLargeIconWhenExpanded?: boolean;
|
|
228
|
+
shortCriticalText?: string;
|
|
229
|
+
when?: number;
|
|
230
|
+
chronometer?: boolean;
|
|
231
|
+
chronometerCountDown?: boolean;
|
|
232
|
+
showWhen?: boolean;
|
|
233
|
+
publicVersion?: AndroidOngoingNotificationPublicVersion;
|
|
79
234
|
actions?: AndroidOngoingNotificationActionPayload[];
|
|
80
235
|
};
|
|
81
|
-
export type
|
|
236
|
+
export type AndroidOngoingNotificationInboxPayload = {
|
|
237
|
+
v: 1;
|
|
238
|
+
kind: 'inbox';
|
|
239
|
+
title?: string;
|
|
240
|
+
subText?: string;
|
|
241
|
+
text: string;
|
|
242
|
+
lines: string[];
|
|
243
|
+
summaryText?: string;
|
|
244
|
+
shortCriticalText?: string;
|
|
245
|
+
when?: number;
|
|
246
|
+
chronometer?: boolean;
|
|
247
|
+
chronometerCountDown?: boolean;
|
|
248
|
+
showWhen?: boolean;
|
|
249
|
+
largeIcon?: ImageSource;
|
|
250
|
+
publicVersion?: AndroidOngoingNotificationPublicVersion;
|
|
251
|
+
actions?: AndroidOngoingNotificationActionPayload[];
|
|
252
|
+
};
|
|
253
|
+
export type AndroidOngoingNotificationMetricValuePayload = {
|
|
254
|
+
type: 'int';
|
|
255
|
+
value: number;
|
|
256
|
+
unit?: string;
|
|
257
|
+
} | {
|
|
258
|
+
type: 'float';
|
|
259
|
+
value: number;
|
|
260
|
+
unit?: string;
|
|
261
|
+
min?: number;
|
|
262
|
+
max?: number;
|
|
263
|
+
fractionDigits?: number;
|
|
264
|
+
} | {
|
|
265
|
+
type: 'text';
|
|
266
|
+
value: string;
|
|
267
|
+
unit?: string;
|
|
268
|
+
} | {
|
|
269
|
+
type: 'time';
|
|
270
|
+
value: string;
|
|
271
|
+
} | {
|
|
272
|
+
type: 'timer';
|
|
273
|
+
endsAt: number;
|
|
274
|
+
format?: AndroidOngoingNotificationMetricTimeFormat;
|
|
275
|
+
} | {
|
|
276
|
+
type: 'stopwatch';
|
|
277
|
+
startedAt: number;
|
|
278
|
+
format?: AndroidOngoingNotificationMetricTimeFormat;
|
|
279
|
+
} | {
|
|
280
|
+
type: 'pausedTimer';
|
|
281
|
+
remainingMillis: number;
|
|
282
|
+
} | {
|
|
283
|
+
type: 'pausedStopwatch';
|
|
284
|
+
elapsedMillis: number;
|
|
285
|
+
};
|
|
286
|
+
export type AndroidOngoingNotificationMetricEntryPayload = {
|
|
287
|
+
label: string;
|
|
288
|
+
value: AndroidOngoingNotificationMetricValuePayload;
|
|
289
|
+
};
|
|
290
|
+
export type AndroidOngoingNotificationMetricPayload = {
|
|
291
|
+
v: 1;
|
|
292
|
+
kind: 'metric';
|
|
293
|
+
title?: string;
|
|
294
|
+
subText?: string;
|
|
295
|
+
shortCriticalText?: string;
|
|
296
|
+
when?: number;
|
|
297
|
+
chronometer?: boolean;
|
|
298
|
+
chronometerCountDown?: boolean;
|
|
299
|
+
showWhen?: boolean;
|
|
300
|
+
largeIcon?: ImageSource;
|
|
301
|
+
publicVersion?: AndroidOngoingNotificationPublicVersion;
|
|
302
|
+
metrics: AndroidOngoingNotificationMetricEntryPayload[];
|
|
303
|
+
criticalMetric?: number;
|
|
304
|
+
semanticStyle?: AndroidOngoingNotificationMetricSemanticStyle;
|
|
305
|
+
actions?: AndroidOngoingNotificationActionPayload[];
|
|
306
|
+
};
|
|
307
|
+
export type AndroidOngoingNotificationPayload = AndroidOngoingNotificationProgressPayload | AndroidOngoingNotificationBigTextPayload | AndroidOngoingNotificationBigPicturePayload | AndroidOngoingNotificationInboxPayload | AndroidOngoingNotificationMetricPayload;
|
|
82
308
|
export type AndroidOngoingNotificationContent = ReactNode;
|
|
83
309
|
export type AndroidOngoingNotificationInput = AndroidOngoingNotificationContent | AndroidOngoingNotificationPayload | string;
|
|
84
310
|
export type StartAndroidOngoingNotificationOptions = {
|
|
@@ -88,8 +314,38 @@ export type StartAndroidOngoingNotificationOptions = {
|
|
|
88
314
|
deepLinkUrl?: string;
|
|
89
315
|
requestPromotedOngoing?: boolean;
|
|
90
316
|
fallbackBehavior?: AndroidOngoingNotificationFallbackBehavior;
|
|
317
|
+
} & AndroidOngoingNotificationPresentationOptions;
|
|
318
|
+
/** An update can send `null` for a presentation option to clear the value stored at start. */
|
|
319
|
+
type Clearable<T> = {
|
|
320
|
+
[K in keyof T]?: T[K] | null;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Options for one update.
|
|
324
|
+
*
|
|
325
|
+
* Presentation options are three-state: leave a key out to keep what the running notification
|
|
326
|
+
* already uses, send `null` to clear it, or send a value to replace and store it. Every other key
|
|
327
|
+
* keeps the existing merge behaviour, where an omitted key reuses the stored value.
|
|
328
|
+
*/
|
|
329
|
+
export type UpdateAndroidOngoingNotificationOptions = Omit<Partial<StartAndroidOngoingNotificationOptions>, 'notificationId' | keyof AndroidOngoingNotificationPresentationOptions> & Clearable<AndroidOngoingNotificationPresentationOptions> & {
|
|
330
|
+
/**
|
|
331
|
+
* Let this update make a sound, vibrate or show lights the way a first post does, instead of
|
|
332
|
+
* updating silently. Applies to this post only and is never stored, so the next update is quiet
|
|
333
|
+
* again unless it asks.
|
|
334
|
+
*/
|
|
335
|
+
alert?: boolean;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Options for starting or updating with one call.
|
|
339
|
+
*
|
|
340
|
+
* The shape of start plus what only an update can use: a presentation option sent as `null` clears
|
|
341
|
+
* the stored value when the notification already exists, and `alert` lets that update branch alert.
|
|
342
|
+
* On the start branch neither changes anything, because nothing is stored yet and a first post
|
|
343
|
+
* always alerts.
|
|
344
|
+
*/
|
|
345
|
+
export type UpsertAndroidOngoingNotificationOptions = Omit<StartAndroidOngoingNotificationOptions, keyof AndroidOngoingNotificationPresentationOptions> & Clearable<AndroidOngoingNotificationPresentationOptions> & {
|
|
346
|
+
/** Let the update branch make a sound the way a first post does. A start branch always alerts. */
|
|
347
|
+
alert?: boolean;
|
|
91
348
|
};
|
|
92
|
-
export type UpdateAndroidOngoingNotificationOptions = Omit<Partial<StartAndroidOngoingNotificationOptions>, 'notificationId'>;
|
|
93
349
|
export type UseAndroidOngoingNotificationOptions = StartAndroidOngoingNotificationOptions & {
|
|
94
350
|
autoStart?: boolean;
|
|
95
351
|
autoUpdate?: boolean;
|
|
@@ -107,11 +363,28 @@ export type AndroidOngoingNotificationStatus = {
|
|
|
107
363
|
isPromoted?: boolean;
|
|
108
364
|
hasPromotableCharacteristics?: boolean;
|
|
109
365
|
};
|
|
366
|
+
export type AndroidOngoingNotificationPromotionIssue = 'unsupported_api_level' | 'permission_not_declared' | 'notifications_disabled' | 'promotion_disabled_by_user' | 'channel_importance_min' | 'missing_title' | 'not_promotable';
|
|
367
|
+
export type AndroidOngoingNotificationPromotionInfo = {
|
|
368
|
+
requested: boolean;
|
|
369
|
+
eligible: boolean;
|
|
370
|
+
reasons: AndroidOngoingNotificationPromotionIssue[];
|
|
371
|
+
hasPromotableCharacteristics?: boolean;
|
|
372
|
+
};
|
|
373
|
+
export type CheckAndroidOngoingNotificationPromotionOptions = Pick<StartAndroidOngoingNotificationOptions, 'channelId' | 'smallIcon'>;
|
|
374
|
+
export type AndroidOngoingNotificationCheckPromotionResult = {
|
|
375
|
+
eligible: boolean;
|
|
376
|
+
reasons: AndroidOngoingNotificationPromotionIssue[];
|
|
377
|
+
hasPromotableCharacteristics?: boolean;
|
|
378
|
+
};
|
|
379
|
+
/** Set when a style the device cannot show yet was posted as a standard notification. */
|
|
380
|
+
export type AndroidOngoingNotificationStyleFallback = 'standard';
|
|
110
381
|
export type AndroidOngoingNotificationStartResult = {
|
|
111
382
|
ok: true;
|
|
112
383
|
notificationId: string;
|
|
113
384
|
action: 'started';
|
|
114
385
|
reason?: undefined;
|
|
386
|
+
promotion?: AndroidOngoingNotificationPromotionInfo;
|
|
387
|
+
styleFallback?: AndroidOngoingNotificationStyleFallback;
|
|
115
388
|
} | {
|
|
116
389
|
ok: false;
|
|
117
390
|
notificationId: string;
|
|
@@ -123,6 +396,8 @@ export type AndroidOngoingNotificationUpdateResult = {
|
|
|
123
396
|
notificationId: string;
|
|
124
397
|
action: 'updated';
|
|
125
398
|
reason?: undefined;
|
|
399
|
+
promotion?: AndroidOngoingNotificationPromotionInfo;
|
|
400
|
+
styleFallback?: AndroidOngoingNotificationStyleFallback;
|
|
126
401
|
} | {
|
|
127
402
|
ok: false;
|
|
128
403
|
notificationId: string;
|
|
@@ -134,6 +409,8 @@ export type AndroidOngoingNotificationUpsertResult = {
|
|
|
134
409
|
notificationId: string;
|
|
135
410
|
action: 'started' | 'updated';
|
|
136
411
|
reason?: undefined;
|
|
412
|
+
promotion?: AndroidOngoingNotificationPromotionInfo;
|
|
413
|
+
styleFallback?: AndroidOngoingNotificationStyleFallback;
|
|
137
414
|
} | {
|
|
138
415
|
ok: false;
|
|
139
416
|
notificationId: string;
|
|
@@ -157,4 +434,5 @@ export type UseAndroidOngoingNotificationResult = {
|
|
|
157
434
|
end: () => Promise<AndroidOngoingNotificationStopResult>;
|
|
158
435
|
isActive: boolean;
|
|
159
436
|
};
|
|
437
|
+
export {};
|
|
160
438
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ongoing-notification/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAElD,MAAM,MAAM,0CAA0C,GAAG,UAAU,GAAG,OAAO,CAAA;AAE7E,MAAM,MAAM,4CAA4C,GAAG;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,yCAAyC,GAAG;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,uCAAuC,GAAG;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,WAAW,CAAA;CACnB,CAAA;A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,CAAC,EAAE,SAAS,CAAA;CACnB,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,EAAE,WAAW,CAAA;CACpB,CAAA;AAEL,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,sCAAsC,CAAC,KAAK,OAAO,CAAC,qCAAqC,CAAC,CAAA;IACpH,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,uCAAuC,KAAK,OAAO,CAAC,sCAAsC,CAAC,CAAA;IAC9G,GAAG,EAAE,MAAM,OAAO,CAAC,oCAAoC,CAAC,CAAA;IACxD,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AndroidOngoingNotification } from './ongoing-notification/components.js';
|
|
2
2
|
export { renderAndroidOngoingNotificationPayload, renderAndroidOngoingNotificationPayloadToJson, } from './ongoing-notification/renderer.js';
|
|
3
|
-
export type { AndroidOngoingNotificationActionPayload, AndroidOngoingNotificationActionProps, AndroidOngoingNotificationBigTextPayload, AndroidOngoingNotificationBigTextProps, AndroidOngoingNotificationContent, AndroidOngoingNotificationPayload, AndroidOngoingNotificationProgressPayload, AndroidOngoingNotificationProgressPoint, AndroidOngoingNotificationProgressProps, AndroidOngoingNotificationProgressSegment, } from './ongoing-notification/types.js';
|
|
3
|
+
export type { AndroidOngoingNotificationActionPayload, AndroidOngoingNotificationActionProps, AndroidOngoingNotificationBigPicturePayload, AndroidOngoingNotificationBigPictureProps, AndroidOngoingNotificationBigTextPayload, AndroidOngoingNotificationBigTextProps, AndroidOngoingNotificationChronometer, AndroidOngoingNotificationCommonDisplayProps, AndroidOngoingNotificationContent, AndroidOngoingNotificationInboxPayload, AndroidOngoingNotificationInboxProps, AndroidOngoingNotificationMetricDescriptor, AndroidOngoingNotificationMetricEntryPayload, AndroidOngoingNotificationMetricPayload, AndroidOngoingNotificationMetricProps, AndroidOngoingNotificationMetricSemanticStyle, AndroidOngoingNotificationMetricTimeFormat, AndroidOngoingNotificationMetricValue, AndroidOngoingNotificationMetricValuePayload, AndroidOngoingNotificationPayload, AndroidOngoingNotificationProgressPayload, AndroidOngoingNotificationProgressPoint, AndroidOngoingNotificationProgressProps, AndroidOngoingNotificationProgressSegment, AndroidOngoingNotificationPublicVersion, } from './ongoing-notification/types.js';
|
|
4
4
|
export { renderAndroidWidgetToString } from './widgets/renderer.js';
|
|
5
5
|
export type { AndroidColorValue, AndroidDynamicColorRole, AndroidDynamicColorToken } from './dynamic-colors.js';
|
|
6
6
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAA;AACjF,OAAO,EACL,uCAAuC,EACvC,6CAA6C,GAC9C,MAAM,oCAAoC,CAAA;AAC3C,YAAY,EACV,uCAAuC,EACvC,qCAAqC,EACrC,wCAAwC,EACxC,sCAAsC,EACtC,iCAAiC,EACjC,iCAAiC,EACjC,yCAAyC,EACzC,uCAAuC,EACvC,uCAAuC,EACvC,yCAAyC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAA;AACjF,OAAO,EACL,uCAAuC,EACvC,6CAA6C,GAC9C,MAAM,oCAAoC,CAAA;AAC3C,YAAY,EACV,uCAAuC,EACvC,qCAAqC,EACrC,2CAA2C,EAC3C,yCAAyC,EACzC,wCAAwC,EACxC,sCAAsC,EACtC,qCAAqC,EACrC,4CAA4C,EAC5C,iCAAiC,EACjC,sCAAsC,EACtC,oCAAoC,EACpC,0CAA0C,EAC1C,4CAA4C,EAC5C,uCAAuC,EACvC,qCAAqC,EACrC,6CAA6C,EAC7C,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,iCAAiC,EACjC,yCAAyC,EACzC,uCAAuC,EACvC,uCAAuC,EACvC,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AACnE,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -13,7 +13,8 @@ export type { AndroidColorValue, AndroidDynamicColorRole, AndroidDynamicColorTok
|
|
|
13
13
|
export type { AndroidLiveUpdateJson, AndroidLiveUpdateVariants, AndroidLiveUpdateVariantsJson, StartAndroidLiveUpdateOptions, UpdateAndroidLiveUpdateOptions, UseAndroidLiveUpdateOptions, UseAndroidLiveUpdateResult, } from './live-update/types.js';
|
|
14
14
|
export type { EventSubscription, PreloadImageFailure, PreloadImageOptions, PreloadImageSvgOptions, PreloadImageUrlOptions, PreloadImagesResult, VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue, WidgetServerCredentials, WidgetServerUpdateBody, WidgetServerUpdateOptions, WidgetServerUpdateSettings, WidgetServerUpdateSnapshot, } from './types.js';
|
|
15
15
|
export type { AndroidWidgetSize, AndroidWidgetSizeVariant, AndroidWidgetVariants, UpdateAndroidWidgetOptions, WidgetInfo, } from './widgets/types.js';
|
|
16
|
-
export type { AndroidOngoingNotificationActionPayload, AndroidOngoingNotificationActionProps, AndroidOngoingNotificationBigTextPayload, AndroidOngoingNotificationBigTextProps, AndroidOngoingNotificationCapabilities, AndroidOngoingNotificationCommonDisplayProps, AndroidOngoingNotificationContent, AndroidOngoingNotificationFallbackBehavior, AndroidOngoingNotificationInput, AndroidOngoingNotificationPayload, AndroidOngoingNotificationProgressPayload, AndroidOngoingNotificationProgressPoint, AndroidOngoingNotificationProgressProps, AndroidOngoingNotificationProgressSegment, AndroidOngoingNotificationStartResult, AndroidOngoingNotificationStatus, AndroidOngoingNotificationStopResult, AndroidOngoingNotificationUpdateResult, AndroidOngoingNotificationUpsertResult, StartAndroidOngoingNotificationOptions, UpdateAndroidOngoingNotificationOptions, UseAndroidOngoingNotificationOptions, UseAndroidOngoingNotificationResult, } from './ongoing-notification/types.js';
|
|
16
|
+
export type { AndroidOngoingNotificationActionPayload, AndroidOngoingNotificationActionProps, AndroidOngoingNotificationBigPicturePayload, AndroidOngoingNotificationBigPictureProps, AndroidOngoingNotificationBigTextPayload, AndroidOngoingNotificationBigTextProps, AndroidOngoingNotificationCapabilities, AndroidOngoingNotificationCategory, AndroidOngoingNotificationCheckPromotionResult, AndroidOngoingNotificationChronometer, AndroidOngoingNotificationCommonDisplayProps, AndroidOngoingNotificationContent, AndroidOngoingNotificationFallbackBehavior, AndroidOngoingNotificationInboxPayload, AndroidOngoingNotificationInboxProps, AndroidOngoingNotificationInput, AndroidOngoingNotificationMetricDescriptor, AndroidOngoingNotificationMetricEntryPayload, AndroidOngoingNotificationMetricPayload, AndroidOngoingNotificationMetricProps, AndroidOngoingNotificationMetricSemanticStyle, AndroidOngoingNotificationMetricTimeFormat, AndroidOngoingNotificationMetricValue, AndroidOngoingNotificationMetricValuePayload, AndroidOngoingNotificationPayload, AndroidOngoingNotificationPresentationOptions, AndroidOngoingNotificationProgressPayload, AndroidOngoingNotificationProgressPoint, AndroidOngoingNotificationProgressProps, AndroidOngoingNotificationProgressSegment, AndroidOngoingNotificationPromotionInfo, AndroidOngoingNotificationPromotionIssue, AndroidOngoingNotificationPublicVersion, AndroidOngoingNotificationStartResult, AndroidOngoingNotificationStatus, AndroidOngoingNotificationStopResult, AndroidOngoingNotificationStyleFallback, AndroidOngoingNotificationUpdateResult, AndroidOngoingNotificationUpsertResult, AndroidOngoingNotificationVisibility, CheckAndroidOngoingNotificationPromotionOptions, StartAndroidOngoingNotificationOptions, UpdateAndroidOngoingNotificationOptions, UpsertAndroidOngoingNotificationOptions, UseAndroidOngoingNotificationOptions, UseAndroidOngoingNotificationResult, } from './ongoing-notification/types.js';
|
|
17
|
+
export { ANDROID_ONGOING_NOTIFICATION_CATEGORIES, ANDROID_ONGOING_NOTIFICATION_VISIBILITIES, } from './ongoing-notification/types.js';
|
|
17
18
|
export type { BoxProps } from './jsx/Box.js';
|
|
18
19
|
export type { ButtonProps } from './jsx/Button.js';
|
|
19
20
|
export type { CircularProgressIndicatorProps } from './jsx/CircularProgressIndicator.js';
|
|
@@ -25,6 +26,6 @@ export type { LinearProgressIndicatorProps } from './jsx/LinearProgressIndicator
|
|
|
25
26
|
export type { RowProps } from './jsx/Row.js';
|
|
26
27
|
export type { SpacerProps } from './jsx/Spacer.js';
|
|
27
28
|
export type { TextProps } from './jsx/Text.js';
|
|
28
|
-
export { getFastRefreshHub, isAndroidEnv, isIosEnv, useUpdateOnHMR } from '@use-voltra/core';
|
|
29
|
-
export type { FastRefreshHub, WidgetBuildEnvironment, WidgetEnvironment } from '@use-voltra/core';
|
|
29
|
+
export { getFastRefreshHub, isAndroidEnv, isIosEnv, pickLocalizedValue, resolveLocale, useUpdateOnHMR, } from '@use-voltra/core';
|
|
30
|
+
export type { FastRefreshHub, LocaleEnvironment, WidgetBuildEnvironment, WidgetEnvironment } from '@use-voltra/core';
|
|
30
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,qBAAqB,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,CAAA;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAC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'react';
|
|
3
|
+
import type { AndroidModifier } from '../modifiers/createAndroidModifier.js';
|
|
2
4
|
import type { VoltraAndroidStyleProp } from '../styles/types.js';
|
|
3
5
|
export type VoltraAndroidBaseProps = {
|
|
4
6
|
id?: string;
|
|
5
7
|
deepLinkUrl?: string;
|
|
6
8
|
style?: VoltraAndroidStyleProp;
|
|
9
|
+
/**
|
|
10
|
+
* Jetpack Glance modifiers from `VoltraAndroid.modifiers`, applied after `style`. Glance
|
|
11
|
+
* ignores their order, except that repeated `padding` adds up. Falsy entries, such as
|
|
12
|
+
* `count && modifier` with `count = 0`, mean no modifier.
|
|
13
|
+
*/
|
|
14
|
+
modifiers?: NativeModifiersProp<AndroidModifier>;
|
|
7
15
|
children?: ReactNode;
|
|
8
16
|
};
|
|
9
17
|
/** Alias used by generated `props/*.ts` component types */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseProps.d.ts","sourceRoot":"","sources":["../../../../src/jsx/baseProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"baseProps.d.ts","sourceRoot":"","sources":["../../../../src/jsx/baseProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uC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ACzB,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../src/jsx/primitives.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const ANDROID_MODIFIER_BRAND: unique symbol;
|
|
2
|
+
/**
|
|
3
|
+
* A Jetpack Glance modifier descriptor produced by a `VoltraAndroid.modifiers` factory. The brand
|
|
4
|
+
* exists only in the type system, so an iOS modifier cannot be passed to a `VoltraAndroid`
|
|
5
|
+
* component.
|
|
6
|
+
*/
|
|
7
|
+
export type AndroidModifier = {
|
|
8
|
+
readonly $type: string;
|
|
9
|
+
readonly [ANDROID_MODIFIER_BRAND]: 'android';
|
|
10
|
+
};
|
|
11
|
+
export declare const createAndroidModifier: <Params extends Record<string, unknown>>(type: string, params?: Params) => AndroidModifier & Readonly<Params>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=createAndroidModifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAndroidModifier.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/createAndroidModifier.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,sBAAsB,EAAE,OAAO,MAAM,CAAA;AAEnD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,CAAC,sBAAsB,CAAC,EAAE,SAAS,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1E,MAAM,MAAM,EACZ,SAAS,MAAM,KACd,eAAe,GAAG,QAAQ,CAAC,MAAM,CAKiB,CAAA"}
|