@use-voltra/android 2.3.1 → 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 +31 -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/commonjs/types.d.ts +1 -81
- package/build/typescript/commonjs/types.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/build/typescript/module/types.d.ts +1 -81
- package/build/typescript/module/types.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
- package/src/types.ts +17 -97
- package/build/commonjs/preload-utils.js +0 -55
- package/build/commonjs/preload-utils.js.map +0 -1
- package/build/commonjs/utils/index.js +0 -2
- package/build/commonjs/utils/index.js.map +0 -1
- package/build/module/preload-utils.js +0 -51
- package/build/module/preload-utils.js.map +0 -1
- package/build/module/utils/index.js +0 -2
- package/build/module/utils/index.js.map +0 -1
- package/build/typescript/commonjs/preload-utils.d.ts +0 -8
- package/build/typescript/commonjs/preload-utils.d.ts.map +0 -1
- package/build/typescript/commonjs/utils/index.d.ts +0 -1
- package/build/typescript/commonjs/utils/index.d.ts.map +0 -1
- package/build/typescript/module/preload-utils.d.ts +0 -8
- package/build/typescript/module/preload-utils.d.ts.map +0 -1
- package/build/typescript/module/utils/index.d.ts +0 -1
- package/build/typescript/module/utils/index.d.ts.map +0 -1
- package/src/preload-utils.ts +0 -78
- package/src/utils/index.ts +0 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { AndroidColorValue, AndroidDynamicColorToken } from '../dynamic-colors.js';
|
|
2
|
+
export type { AndroidModifier } from './createAndroidModifier.js';
|
|
3
|
+
export type PaddingValues = {
|
|
4
|
+
all?: number;
|
|
5
|
+
horizontal?: number;
|
|
6
|
+
vertical?: number;
|
|
7
|
+
start?: number;
|
|
8
|
+
top?: number;
|
|
9
|
+
end?: number;
|
|
10
|
+
bottom?: number;
|
|
11
|
+
};
|
|
12
|
+
export type AbsolutePaddingValues = {
|
|
13
|
+
all?: number;
|
|
14
|
+
horizontal?: number;
|
|
15
|
+
vertical?: number;
|
|
16
|
+
left?: number;
|
|
17
|
+
top?: number;
|
|
18
|
+
right?: number;
|
|
19
|
+
bottom?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* A static color string. Resolves to `never` for an `AndroidDynamicColors` token, so passing one
|
|
23
|
+
* where Glance needs a concrete color is a compile-time error.
|
|
24
|
+
*/
|
|
25
|
+
export type StaticColor<Color extends string> = Color extends AndroidDynamicColorToken ? never : Color;
|
|
26
|
+
export type DayNightColors<Day extends string = string, Night extends string = string> = {
|
|
27
|
+
/** Static color used in light mode. `AndroidDynamicColors` tokens are not accepted. */
|
|
28
|
+
day: StaticColor<Day>;
|
|
29
|
+
/** Static color used in dark mode. `AndroidDynamicColors` tokens are not accepted. */
|
|
30
|
+
night: StaticColor<Night>;
|
|
31
|
+
};
|
|
32
|
+
/** At least one of the two keys is required. */
|
|
33
|
+
export type SemanticsValues = {
|
|
34
|
+
/** Text read by accessibility services. */
|
|
35
|
+
contentDescription: string;
|
|
36
|
+
/**
|
|
37
|
+
* Identifier for Glance's own test APIs. The widget on a device does not expose it, so UI
|
|
38
|
+
* tests cannot find it.
|
|
39
|
+
*/
|
|
40
|
+
testTag?: string;
|
|
41
|
+
} | {
|
|
42
|
+
/** Text read by accessibility services. */
|
|
43
|
+
contentDescription?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Identifier for Glance's own test APIs. The widget on a device does not expose it, so UI
|
|
46
|
+
* tests cannot find it.
|
|
47
|
+
*/
|
|
48
|
+
testTag: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Adds padding in dp, mirrored in right-to-left layouts. The most specific edge wins (`start` over
|
|
52
|
+
* `horizontal` over `all`). Glance adds repeated padding together, including `style.padding`.
|
|
53
|
+
*
|
|
54
|
+
* @since Android 7.0
|
|
55
|
+
*/
|
|
56
|
+
export declare const padding: (values: number | PaddingValues) => (import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
57
|
+
all: number;
|
|
58
|
+
}>) | (import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
59
|
+
all: number | undefined;
|
|
60
|
+
horizontal: number | undefined;
|
|
61
|
+
vertical: number | undefined;
|
|
62
|
+
start: number | undefined;
|
|
63
|
+
top: number | undefined;
|
|
64
|
+
end: number | undefined;
|
|
65
|
+
bottom: number | undefined;
|
|
66
|
+
}>);
|
|
67
|
+
/**
|
|
68
|
+
* Adds padding in dp that ignores the layout direction. Adds up with `padding` and `style.padding`.
|
|
69
|
+
*
|
|
70
|
+
* @since Android 7.0
|
|
71
|
+
*/
|
|
72
|
+
export declare const absolutePadding: (values: number | AbsolutePaddingValues) => (import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
73
|
+
all: number;
|
|
74
|
+
}>) | (import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
75
|
+
all: number | undefined;
|
|
76
|
+
horizontal: number | undefined;
|
|
77
|
+
vertical: number | undefined;
|
|
78
|
+
left: number | undefined;
|
|
79
|
+
top: number | undefined;
|
|
80
|
+
right: number | undefined;
|
|
81
|
+
bottom: number | undefined;
|
|
82
|
+
}>);
|
|
83
|
+
/**
|
|
84
|
+
* Sets a fixed width in dp.
|
|
85
|
+
*
|
|
86
|
+
* @since Android 7.0
|
|
87
|
+
*/
|
|
88
|
+
export declare const width: (dp: number) => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
89
|
+
width: number;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Sets a fixed height in dp.
|
|
93
|
+
*
|
|
94
|
+
* @since Android 7.0
|
|
95
|
+
*/
|
|
96
|
+
export declare const height: (dp: number) => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
97
|
+
height: number;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Sets a fixed size in dp. A single number sets both dimensions.
|
|
101
|
+
*
|
|
102
|
+
* @since Android 7.0
|
|
103
|
+
*/
|
|
104
|
+
export declare const size: (value: number | {
|
|
105
|
+
width: number;
|
|
106
|
+
height: number;
|
|
107
|
+
}) => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
108
|
+
width: number;
|
|
109
|
+
height: number;
|
|
110
|
+
}>;
|
|
111
|
+
/** @since Android 7.0 */
|
|
112
|
+
export declare const fillMaxWidth: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
113
|
+
/** @since Android 7.0 */
|
|
114
|
+
export declare const fillMaxHeight: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
115
|
+
/** @since Android 7.0 */
|
|
116
|
+
export declare const fillMaxSize: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
117
|
+
/** @since Android 7.0 */
|
|
118
|
+
export declare const wrapContentWidth: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
119
|
+
/** @since Android 7.0 */
|
|
120
|
+
export declare const wrapContentHeight: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
121
|
+
/** @since Android 7.0 */
|
|
122
|
+
export declare const wrapContentSize: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
123
|
+
/**
|
|
124
|
+
* Fills the background with a color: a static color, an `AndroidDynamicColors` token, or a pair of
|
|
125
|
+
* static colors for light and dark mode.
|
|
126
|
+
*
|
|
127
|
+
* @since Android 7.0
|
|
128
|
+
*/
|
|
129
|
+
export declare const background: <Day extends string, Night extends string>(color: AndroidColorValue | DayNightColors<Day, Night>) => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
130
|
+
color: string;
|
|
131
|
+
day?: undefined;
|
|
132
|
+
night?: undefined;
|
|
133
|
+
} | {
|
|
134
|
+
day: StaticColor<Day>;
|
|
135
|
+
night: StaticColor<Night>;
|
|
136
|
+
color?: undefined;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* Rounds the corners in dp. Glance ignores it below Android 12 (API 31).
|
|
140
|
+
*
|
|
141
|
+
* @since Android 12
|
|
142
|
+
*/
|
|
143
|
+
export declare const cornerRadius: (radius: number) => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
144
|
+
radius: number;
|
|
145
|
+
}>;
|
|
146
|
+
/**
|
|
147
|
+
* Shows, hides (keeping its space), or removes the component from layout.
|
|
148
|
+
*
|
|
149
|
+
* @since Android 7.0
|
|
150
|
+
*/
|
|
151
|
+
export declare const visibility: (value: "visible" | "invisible" | "gone") => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
152
|
+
visibility: "visible" | "invisible" | "gone";
|
|
153
|
+
}>;
|
|
154
|
+
/**
|
|
155
|
+
* Sets accessibility and test metadata.
|
|
156
|
+
*
|
|
157
|
+
* @since Android 7.0
|
|
158
|
+
*/
|
|
159
|
+
export declare const semantics: (values: SemanticsValues) => import("./createAndroidModifier.js").AndroidModifier & Readonly<{
|
|
160
|
+
contentDescription: string | undefined;
|
|
161
|
+
testTag: string | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
/**
|
|
164
|
+
* Marks the widget's background view so the launcher can animate it when the widget opens the app.
|
|
165
|
+
* Use it once per widget, on the outermost component. Only one component keeps it: the first that
|
|
166
|
+
* appears once in the widget, and none inside a widget with a `Scaffold`, which marks its own.
|
|
167
|
+
*
|
|
168
|
+
* @since Android 12
|
|
169
|
+
*/
|
|
170
|
+
export declare const appWidgetBackground: () => import("./createAndroidModifier.js").AndroidModifier & Readonly<Record<string, unknown>>;
|
|
171
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAGvF,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,E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import type { AndroidOngoingNotificationActionProps, AndroidOngoingNotificationBigTextProps, AndroidOngoingNotificationProgressProps } from './types.js';
|
|
2
|
+
import type { AndroidOngoingNotificationActionProps, AndroidOngoingNotificationBigPictureProps, AndroidOngoingNotificationBigTextProps, AndroidOngoingNotificationInboxProps, AndroidOngoingNotificationMetricProps, AndroidOngoingNotificationProgressProps } from './types.js';
|
|
3
3
|
export declare const ANDROID_ONGOING_NOTIFICATION_COMPONENT_TAG: unique symbol;
|
|
4
|
-
type AndroidOngoingNotificationComponentKind = 'progress' | 'bigText' | 'action';
|
|
4
|
+
type AndroidOngoingNotificationComponentKind = 'progress' | 'bigText' | 'bigPicture' | 'inbox' | 'metric' | 'action';
|
|
5
5
|
type AndroidOngoingNotificationComponent<TProps extends Record<string, unknown>> = ComponentType<TProps> & {
|
|
6
6
|
displayName: string;
|
|
7
7
|
[ANDROID_ONGOING_NOTIFICATION_COMPONENT_TAG]: AndroidOngoingNotificationComponentKind;
|
|
8
8
|
};
|
|
9
9
|
export declare const Progress: AndroidOngoingNotificationComponent<AndroidOngoingNotificationProgressProps>;
|
|
10
10
|
export declare const BigText: AndroidOngoingNotificationComponent<AndroidOngoingNotificationBigTextProps>;
|
|
11
|
+
export declare const BigPicture: AndroidOngoingNotificationComponent<AndroidOngoingNotificationBigPictureProps>;
|
|
12
|
+
export declare const Inbox: AndroidOngoingNotificationComponent<AndroidOngoingNotificationInboxProps>;
|
|
13
|
+
export declare const Metric: AndroidOngoingNotificationComponent<AndroidOngoingNotificationMetricProps>;
|
|
11
14
|
export declare const Action: AndroidOngoingNotificationComponent<AndroidOngoingNotificationActionProps>;
|
|
12
15
|
export declare const AndroidOngoingNotification: {
|
|
13
16
|
readonly Progress: AndroidOngoingNotificationComponent<AndroidOngoingNotificationProgressProps>;
|
|
14
17
|
readonly BigText: AndroidOngoingNotificationComponent<AndroidOngoingNotificationBigTextProps>;
|
|
18
|
+
readonly BigPicture: AndroidOngoingNotificationComponent<AndroidOngoingNotificationBigPictureProps>;
|
|
19
|
+
readonly Inbox: AndroidOngoingNotificationComponent<AndroidOngoingNotificationInboxProps>;
|
|
20
|
+
readonly Metric: AndroidOngoingNotificationComponent<AndroidOngoingNotificationMetricProps>;
|
|
15
21
|
readonly Action: AndroidOngoingNotificationComponent<AndroidOngoingNotificationActionProps>;
|
|
16
22
|
};
|
|
17
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/ongoing-notification/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EACV,qCAAqC,EACrC,sCAAsC,EACtC,uCAAuC,EACxC,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,0CAA0C,eAA8D,CAAA;AAErH,KAAK,uCAAuC,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/ongoing-notification/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EACV,qCAAqC,EACrC,yCAAyC,EACzC,sCAAsC,EACtC,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACxC,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,0CAA0C,eAA8D,CAAA;AAErH,KAAK,uCAAuC,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEpH,KAAK,mCAAmC,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG;IACzG,WAAW,EAAE,MAAM,CAAA;IACnB,CAAC,0CAA0C,CAAC,EAAE,uCAAuC,CAAA;CACtF,CAAA;AAcD,eAAO,MAAM,QAAQ,8EAGpB,CAAA;AAED,eAAO,MAAM,OAAO,6EAGnB,CAAA;AAED,eAAO,MAAM,UAAU,gFAGtB,CAAA;AAED,eAAO,MAAM,KAAK,2EAGjB,CAAA;AAED,eAAO,MAAM,MAAM,4EAGlB,CAAA;AAED,eAAO,MAAM,MAAM,4EAGlB,CAAA;AAED,eAAO,MAAM,0BAA0B;;;;;;;CAO7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/ongoing-notification/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7F,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/ongoing-notification/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7F,OAAO,KAAK,EAQV,iCAAiC,EAOjC,iCAAiC,EAMlC,MAAM,YAAY,CAAA;AAytBnB,eAAO,MAAM,6CAA6C,GACxD,SAAS,SAAS,KACjB,iCA2BF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,SAAS,KAAG,MAE5E,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,iCAAiC,KAAG,MAEpG,CAAA"}
|
|
@@ -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,OAA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,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"}
|