@nativescript/core 9.0.0-alpha.24 → 9.0.0-alpha.25
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/application/application.android.d.ts +9 -2
- package/application/application.android.js +83 -6
- package/application/application.android.js.map +1 -1
- package/application/application.d.ts +8 -1
- package/application/application.ios.d.ts +13 -1
- package/application/application.ios.js +30 -3
- package/application/application.ios.js.map +1 -1
- package/application/helpers.android.d.ts +0 -9
- package/application/helpers.android.js +0 -54
- package/application/helpers.android.js.map +1 -1
- package/application/helpers.d.ts +0 -10
- package/application/helpers.ios.d.ts +0 -19
- package/application/helpers.ios.js +0 -38
- package/application/helpers.ios.js.map +1 -1
- package/connectivity/index.android.js +3 -3
- package/connectivity/index.android.js.map +1 -1
- package/core-types/index.d.ts +68 -63
- package/core-types/index.js.map +1 -1
- package/image-source/index.d.ts +2 -2
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/widgets-release.aar +0 -0
- package/references.d.ts +1 -1
- package/ui/button/index.ios.js.map +1 -1
- package/ui/core/view/index.android.d.ts +4 -6
- package/ui/core/view/index.android.js +126 -271
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.d.ts +1 -1
- package/ui/core/view/index.ios.d.ts +7 -0
- package/ui/core/view/index.ios.js +74 -35
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +37 -5
- package/ui/core/view/view-common.js +21 -0
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-interfaces.d.ts +3 -0
- package/ui/frame/index.android.js +55 -2
- package/ui/frame/index.android.js.map +1 -1
- package/ui/index.d.ts +1 -1
- package/ui/layouts/index.d.ts +2 -0
- package/ui/layouts/index.js +2 -0
- package/ui/layouts/index.js.map +1 -1
- package/ui/layouts/liquid-glass/index.android.d.ts +5 -0
- package/ui/layouts/liquid-glass/index.android.js +8 -0
- package/ui/layouts/liquid-glass/index.android.js.map +1 -0
- package/ui/layouts/liquid-glass/index.d.ts +10 -0
- package/ui/layouts/liquid-glass/index.ios.d.ts +10 -0
- package/ui/layouts/liquid-glass/index.ios.js +59 -0
- package/ui/layouts/liquid-glass/index.ios.js.map +1 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.d.ts +3 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.js +4 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.js.map +1 -0
- package/ui/layouts/liquid-glass-container/index.android.d.ts +3 -0
- package/ui/layouts/liquid-glass-container/index.android.js +4 -0
- package/ui/layouts/liquid-glass-container/index.android.js.map +1 -0
- package/ui/layouts/liquid-glass-container/index.d.ts +3 -0
- package/ui/layouts/liquid-glass-container/index.ios.d.ts +14 -0
- package/ui/layouts/liquid-glass-container/index.ios.js +121 -0
- package/ui/layouts/liquid-glass-container/index.ios.js.map +1 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.d.ts +4 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js +5 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js.map +1 -0
- package/ui/list-view/index.android.d.ts +26 -1
- package/ui/list-view/index.android.js +701 -23
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.d.ts +122 -0
- package/ui/list-view/index.ios.d.ts +34 -2
- package/ui/list-view/index.ios.js +560 -9
- package/ui/list-view/index.ios.js.map +1 -1
- package/ui/list-view/list-view-common.d.ts +22 -1
- package/ui/list-view/list-view-common.js +85 -0
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/styling/background-common.d.ts +4 -4
- package/ui/styling/background-common.js +8 -8
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/background.d.ts +0 -3
- package/ui/styling/background.ios.d.ts +2 -1
- package/ui/styling/background.ios.js +47 -38
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/css-utils.d.ts +1 -0
- package/ui/styling/css-utils.js +15 -4
- package/ui/styling/css-utils.js.map +1 -1
- package/ui/styling/style/index.d.ts +2 -1
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.js +23 -11
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/tab-view/index.android.js +22 -8
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/tab-view/index.ios.d.ts +1 -1
- package/ui/tab-view/index.ios.js +28 -9
- package/ui/tab-view/index.ios.js.map +1 -1
- package/ui/tab-view/tab-view-common.d.ts +2 -0
- package/ui/tab-view/tab-view-common.js +5 -0
- package/ui/tab-view/tab-view-common.js.map +1 -1
- package/utils/common.d.ts +3 -1
- package/utils/common.js +9 -3
- package/utils/common.js.map +1 -1
- package/utils/index.d.ts +6 -0
- package/utils/native-helper-for-android.d.ts +14 -3
- package/utils/native-helper-for-android.js +57 -54
- package/utils/native-helper-for-android.js.map +1 -1
- package/utils/native-helper.android.d.ts +3 -3
- package/utils/native-helper.android.js +2 -2
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +22 -5
|
@@ -3,15 +3,6 @@ export declare function androidGetForegroundActivity(): androidx.appcompat.app.A
|
|
|
3
3
|
export declare function androidSetForegroundActivity(activity: androidx.appcompat.app.AppCompatActivity): void;
|
|
4
4
|
export declare function androidGetStartActivity(): androidx.appcompat.app.AppCompatActivity;
|
|
5
5
|
export declare function androidSetStartActivity(activity: androidx.appcompat.app.AppCompatActivity): void;
|
|
6
|
-
export declare const androidRegisteredReceivers: {
|
|
7
|
-
[key: string]: android.content.BroadcastReceiver;
|
|
8
|
-
};
|
|
9
|
-
export declare const androidPendingReceiverRegistrations: ((context: android.content.Context) => void)[];
|
|
10
|
-
export declare function androidRegisterBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void, flags?: number): void;
|
|
11
|
-
export declare function androidUnregisterBroadcastReceiver(intentFilter: string): void;
|
|
12
6
|
export declare function updateContentDescription(view: any, forceUpdate?: boolean): string | null;
|
|
13
7
|
export declare function applyContentDescription(view: any, forceUpdate?: boolean): string;
|
|
14
8
|
export declare function setupAccessibleView(view: any): void;
|
|
15
|
-
export declare const iosNotificationObservers: Array<any>;
|
|
16
|
-
export declare function iosAddNotificationObserver(notificationName: string, onReceiveCallback: (notification: any) => void): void;
|
|
17
|
-
export declare function iosRemoveNotificationObserver(observer: any, notificationName: string): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SDK_VERSION } from '../utils/constants';
|
|
2
1
|
import { getNativeApp, updateA11yPropertiesCallback } from './helpers-common';
|
|
3
2
|
import { AccessibilityRole, AccessibilityState } from '../accessibility/accessibility-common';
|
|
4
3
|
import { Trace } from '../trace';
|
|
@@ -22,56 +21,6 @@ export function androidSetStartActivity(activity) {
|
|
|
22
21
|
function getApplicationContext() {
|
|
23
22
|
return getNativeApp().getApplicationContext();
|
|
24
23
|
}
|
|
25
|
-
export const androidRegisteredReceivers = {};
|
|
26
|
-
export const androidPendingReceiverRegistrations = new Array();
|
|
27
|
-
let BroadcastReceiver_;
|
|
28
|
-
function initBroadcastReceiver() {
|
|
29
|
-
if (BroadcastReceiver_) {
|
|
30
|
-
return BroadcastReceiver_;
|
|
31
|
-
}
|
|
32
|
-
var BroadcastReceiverImpl = /** @class */ (function (_super) {
|
|
33
|
-
__extends(BroadcastReceiverImpl, _super);
|
|
34
|
-
function BroadcastReceiverImpl(onReceiveCallback) {
|
|
35
|
-
var _this = _super.call(this) || this;
|
|
36
|
-
_this._onReceiveCallback = onReceiveCallback;
|
|
37
|
-
return global.__native(_this);
|
|
38
|
-
}
|
|
39
|
-
BroadcastReceiverImpl.prototype.onReceive = function (context, intent) {
|
|
40
|
-
if (this._onReceiveCallback) {
|
|
41
|
-
this._onReceiveCallback(context, intent);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return BroadcastReceiverImpl;
|
|
45
|
-
}(android.content.BroadcastReceiver));
|
|
46
|
-
BroadcastReceiver_ = BroadcastReceiverImpl;
|
|
47
|
-
return BroadcastReceiver_;
|
|
48
|
-
}
|
|
49
|
-
export function androidRegisterBroadcastReceiver(intentFilter, onReceiveCallback, flags = 2) {
|
|
50
|
-
const registerFunc = (context) => {
|
|
51
|
-
const receiver = new (initBroadcastReceiver())(onReceiveCallback);
|
|
52
|
-
if (SDK_VERSION >= 26) {
|
|
53
|
-
context.registerReceiver(receiver, new android.content.IntentFilter(intentFilter), flags);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
context.registerReceiver(receiver, new android.content.IntentFilter(intentFilter));
|
|
57
|
-
}
|
|
58
|
-
androidRegisteredReceivers[intentFilter] = receiver;
|
|
59
|
-
};
|
|
60
|
-
if (getApplicationContext()) {
|
|
61
|
-
registerFunc(getApplicationContext());
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
androidPendingReceiverRegistrations.push(registerFunc);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export function androidUnregisterBroadcastReceiver(intentFilter) {
|
|
68
|
-
const receiver = androidRegisteredReceivers[intentFilter];
|
|
69
|
-
if (receiver) {
|
|
70
|
-
getApplicationContext().unregisterReceiver(receiver);
|
|
71
|
-
androidRegisteredReceivers[intentFilter] = undefined;
|
|
72
|
-
delete androidRegisteredReceivers[intentFilter];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
24
|
export function updateContentDescription(view /* View */, forceUpdate) {
|
|
76
25
|
if (!view.nativeViewProtected) {
|
|
77
26
|
return;
|
|
@@ -167,7 +116,4 @@ export function setupAccessibleView(view /* any */) {
|
|
|
167
116
|
updateA11yPropertiesCallback(view);
|
|
168
117
|
}
|
|
169
118
|
// stubs
|
|
170
|
-
export const iosNotificationObservers = [];
|
|
171
|
-
export function iosAddNotificationObserver(notificationName, onReceiveCallback) { }
|
|
172
|
-
export function iosRemoveNotificationObserver(observer, notificationName) { }
|
|
173
119
|
//# sourceMappingURL=helpers.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.android.js","sourceRoot":"","sources":["../../../../packages/core/application/helpers.android.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.android.js","sourceRoot":"","sources":["../../../../packages/core/application/helpers.android.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,IAAI,cAAwD,CAAC;AAC7D,IAAI,mBAA6D,CAAC;AAElE,MAAM,UAAU,yBAAyB;IACxC,OAAO,mBAAmB,IAAI,cAAc,CAAC;AAC9C,CAAC;AACD,MAAM,UAAU,4BAA4B;IAC3C,OAAO,mBAAmB,CAAC;AAC5B,CAAC;AACD,MAAM,UAAU,4BAA4B,CAAC,QAAkD;IAC9F,mBAAmB,GAAG,QAAQ,CAAC;AAChC,CAAC;AACD,MAAM,UAAU,uBAAuB;IACtC,OAAO,cAAc,CAAC;AACvB,CAAC;AACD,MAAM,UAAU,uBAAuB,CAAC,QAAkD;IACzF,cAAc,GAAG,QAAQ,CAAC;AAC3B,CAAC;AAED,SAAS,qBAAqB;IAC7B,OAAO,YAAY,EAA2B,CAAC,qBAAqB,EAAE,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAS,CAAC,UAAU,EAAE,WAAqB;IACnF,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC/B,OAAO;IACR,CAAC;IAED,OAAO,uBAAuB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS,CAAC,UAAU,EAAE,WAAqB;IAClF,IAAI,WAAW,GAAG,IAAI,CAAC,mBAAwC,CAAC;IAChE,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,YAAY,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,IA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,CAAC,iCAAiC,GAAG,KAAK,CAAC;IAE/C,OAAO,kBAAkB,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS,CAAC,SAAS;IACtD,4BAA4B,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,QAAQ"}
|
package/application/helpers.d.ts
CHANGED
|
@@ -8,18 +8,8 @@ export function setupAccessibleView(view: View): void;
|
|
|
8
8
|
export const updateContentDescription: (view: any /* View */, forceUpdate?: boolean) => string | null;
|
|
9
9
|
export function applyContentDescription(view: any /* View */, forceUpdate?: boolean);
|
|
10
10
|
/* Android app-wide helpers */
|
|
11
|
-
export const androidRegisteredReceivers: { [key: string]: android.content.BroadcastReceiver };
|
|
12
|
-
export const androidPendingReceiverRegistrations: Array<(context: android.content.Context) => void>;
|
|
13
|
-
export function androidRegisterBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void, flags = 2): void;
|
|
14
|
-
export function androidUnregisterBroadcastReceiver(intentFilter: string): void;
|
|
15
11
|
export function androidGetCurrentActivity(): androidx.appcompat.app.AppCompatActivity;
|
|
16
12
|
export function androidGetForegroundActivity(): androidx.appcompat.app.AppCompatActivity;
|
|
17
13
|
export function androidSetForegroundActivity(activity: androidx.appcompat.app.AppCompatActivity): void;
|
|
18
14
|
export function androidGetStartActivity(): androidx.appcompat.app.AppCompatActivity;
|
|
19
15
|
export function androidSetStartActivity(activity: androidx.appcompat.app.AppCompatActivity): void;
|
|
20
|
-
|
|
21
|
-
/* iOS app-wide helpers */
|
|
22
|
-
export const iosNotificationObservers: NotificationObserver[];
|
|
23
|
-
class NotificationObserver extends NSObject {}
|
|
24
|
-
export function iosAddNotificationObserver(notificationName: string, onReceiveCallback: (notification: NSNotification) => void): NotificationObserver;
|
|
25
|
-
export function iosRemoveNotificationObserver(observer: NotificationObserver, notificationName: string): void;
|
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
export declare const updateContentDescription: (view: any, forceUpdate?: boolean) => string | null;
|
|
2
2
|
export declare function applyContentDescription(view: any, forceUpdate?: boolean): any;
|
|
3
|
-
export declare const androidRegisteredReceivers: any;
|
|
4
|
-
export declare const androidPendingReceiverRegistrations: any;
|
|
5
|
-
export declare function androidRegisterBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void, flags?: number): void;
|
|
6
|
-
export declare function androidUnregisterBroadcastReceiver(intentFilter: string): void;
|
|
7
3
|
export declare function androidGetCurrentActivity(): void;
|
|
8
4
|
export declare function androidGetForegroundActivity(): void;
|
|
9
5
|
export declare function androidSetForegroundActivity(activity: androidx.appcompat.app.AppCompatActivity): void;
|
|
10
6
|
export declare function androidGetStartActivity(): void;
|
|
11
7
|
export declare function androidSetStartActivity(activity: androidx.appcompat.app.AppCompatActivity): void;
|
|
12
|
-
declare class NotificationObserver extends NSObject {
|
|
13
|
-
private _onReceiveCallback;
|
|
14
|
-
static initWithCallback(onReceiveCallback: (notification: NSNotification) => void): NotificationObserver;
|
|
15
|
-
onReceive(notification: NSNotification): void;
|
|
16
|
-
static ObjCExposedMethods: {
|
|
17
|
-
onReceive: {
|
|
18
|
-
returns: interop.Type<void>;
|
|
19
|
-
params: (typeof NSNotification)[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const iosNotificationObservers: NotificationObserver[];
|
|
24
|
-
export declare function iosAddNotificationObserver(notificationName: string, onReceiveCallback: (notification: NSNotification) => void): NotificationObserver;
|
|
25
|
-
export declare function iosRemoveNotificationObserver(observer: NotificationObserver, notificationName: string): void;
|
|
26
8
|
export declare function setupAccessibleView(view: any): void;
|
|
27
|
-
export {};
|
|
@@ -3,49 +3,11 @@ export const updateContentDescription = (view /* View */, forceUpdate) => null;
|
|
|
3
3
|
export function applyContentDescription(view /* View */, forceUpdate) {
|
|
4
4
|
return null;
|
|
5
5
|
}
|
|
6
|
-
export const androidRegisteredReceivers = undefined;
|
|
7
|
-
export const androidPendingReceiverRegistrations = undefined;
|
|
8
|
-
export function androidRegisterBroadcastReceiver(intentFilter, onReceiveCallback, flags = 2) { }
|
|
9
|
-
export function androidUnregisterBroadcastReceiver(intentFilter) { }
|
|
10
6
|
export function androidGetCurrentActivity() { }
|
|
11
7
|
export function androidGetForegroundActivity() { }
|
|
12
8
|
export function androidSetForegroundActivity(activity) { }
|
|
13
9
|
export function androidGetStartActivity() { }
|
|
14
10
|
export function androidSetStartActivity(activity) { }
|
|
15
|
-
var NotificationObserver = /** @class */ (function (_super) {
|
|
16
|
-
__extends(NotificationObserver, _super);
|
|
17
|
-
function NotificationObserver() {
|
|
18
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
-
}
|
|
20
|
-
NotificationObserver.initWithCallback = function (onReceiveCallback) {
|
|
21
|
-
var observer = _super.new.call(this);
|
|
22
|
-
observer._onReceiveCallback = onReceiveCallback;
|
|
23
|
-
return observer;
|
|
24
|
-
};
|
|
25
|
-
NotificationObserver.prototype.onReceive = function (notification) {
|
|
26
|
-
this._onReceiveCallback(notification);
|
|
27
|
-
};
|
|
28
|
-
NotificationObserver.ObjCExposedMethods = {
|
|
29
|
-
onReceive: { returns: interop.types.void, params: [NSNotification] },
|
|
30
|
-
};
|
|
31
|
-
return NotificationObserver;
|
|
32
|
-
}(NSObject));
|
|
33
|
-
export const iosNotificationObservers = [];
|
|
34
|
-
export function iosAddNotificationObserver(notificationName, onReceiveCallback) {
|
|
35
|
-
const observer = NotificationObserver.initWithCallback(onReceiveCallback);
|
|
36
|
-
NSNotificationCenter.defaultCenter.addObserverSelectorNameObject(observer, 'onReceive', notificationName, null);
|
|
37
|
-
iosNotificationObservers.push(observer);
|
|
38
|
-
return observer;
|
|
39
|
-
}
|
|
40
|
-
export function iosRemoveNotificationObserver(observer, notificationName) {
|
|
41
|
-
// TODO: test if this finds the right observer instance match everytime
|
|
42
|
-
// after circular dependencies are resolved
|
|
43
|
-
const index = iosNotificationObservers.indexOf(observer);
|
|
44
|
-
if (index >= 0) {
|
|
45
|
-
iosNotificationObservers.splice(index, 1);
|
|
46
|
-
NSNotificationCenter.defaultCenter.removeObserverNameObject(observer, notificationName, null);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
11
|
export function setupAccessibleView(view /* any */) {
|
|
50
12
|
const uiView = view.nativeViewProtected;
|
|
51
13
|
if (!uiView) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.ios.js","sourceRoot":"","sources":["../../../../packages/core/application/helpers.ios.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAS,CAAC,UAAU,EAAE,WAAqB,EAAiB,EAAE,CAAC,IAAI,CAAC;AAC7G,MAAM,UAAU,uBAAuB,CAAC,IAAS,CAAC,UAAU,EAAE,WAAqB;IAClF,OAAO,IAAI,CAAC;AACb,CAAC;AACD,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.ios.js","sourceRoot":"","sources":["../../../../packages/core/application/helpers.ios.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAS,CAAC,UAAU,EAAE,WAAqB,EAAiB,EAAE,CAAC,IAAI,CAAC;AAC7G,MAAM,UAAU,uBAAuB,CAAC,IAAS,CAAC,UAAU,EAAE,WAAqB;IAClF,OAAO,IAAI,CAAC;AACb,CAAC;AACD,MAAM,UAAU,yBAAyB,KAAI,CAAC;AAC9C,MAAM,UAAU,4BAA4B,KAAI,CAAC;AACjD,MAAM,UAAU,4BAA4B,CAAC,QAAkD,IAAS,CAAC;AACzG,MAAM,UAAU,uBAAuB,KAAI,CAAC;AAC5C,MAAM,UAAU,uBAAuB,CAAC,QAAkD,IAAS,CAAC;AAEpG,MAAM,UAAU,mBAAmB,CAAC,IAAS,CAAC,SAAS;IACtD,MAAM,MAAM,GAAG,IAAI,CAAC,mBAA6B,CAAC;IAClD,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO;IACR,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;AAC1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getNativeApp } from '../application/helpers-common';
|
|
2
|
-
import { androidRegisterBroadcastReceiver, androidUnregisterBroadcastReceiver } from '../application/helpers';
|
|
3
2
|
import { SDK_VERSION } from '../utils/constants';
|
|
3
|
+
import { Application } from '../application';
|
|
4
4
|
export var connectionType;
|
|
5
5
|
(function (connectionType) {
|
|
6
6
|
connectionType[connectionType["none"] = 0] = "none";
|
|
@@ -90,7 +90,7 @@ function startMonitoringLegacy(connectionTypeChangedCallback) {
|
|
|
90
90
|
connectionTypeChangedCallback(newConnectionType);
|
|
91
91
|
};
|
|
92
92
|
const zoneCallback = zonedCallback(onReceiveCallback);
|
|
93
|
-
|
|
93
|
+
Application.android.registerBroadcastReceiver(android.net.ConnectivityManager.CONNECTIVITY_ACTION, zoneCallback);
|
|
94
94
|
}
|
|
95
95
|
let callback;
|
|
96
96
|
let networkCallback;
|
|
@@ -151,7 +151,7 @@ export function stopMonitoring() {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
else {
|
|
154
|
-
|
|
154
|
+
Application.android.unregisterBroadcastReceiver(android.net.ConnectivityManager.CONNECTIVITY_ACTION);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
//# sourceMappingURL=index.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/core/connectivity/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/core/connectivity/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,C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cAAc,GAAG,CAAC,OAA4B,EAAE,mBAAoD,EAAE,EAAE;gBACvG,IAAI,iBAAiB,GAAG,cAAc,CAAC,IAAI,CAAC;gBAC5C,IAAI,OAAO,IAAI,mBAAmB,EAAE,CAAC;oBACpC,iBAAiB,GAAG,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;gBACnE,CAAC;gBACD,MAAM,YAAY,GAAG,aAAa,CAAC,6BAA6B,CAAC,CAAC;gBAClE,YAAY,CAAC,iBAAiB,CAAC,CAAC;YACjC,CAAC,CAAC;YACF,IAAI,CAAC,eAAe,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;gBAsBtB,eAAe,GAAG,mBAAmB,CAAC;YACvC,CAAC;YACD,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;YACjC,OAAO,CAAC,8BAA8B,CAAC,QAAQ,CAAC,CAAC;QAClD,CAAC;IACF,CAAC;SAAM,CAAC;QACP,qBAAqB,CAAC,6BAA6B,CAAC,CAAC;IACtD,CAAC;AACF,CAAC;AAED,MAAM,UAAU,cAAc;IAC7B,IAAI,WAAW,IAAI,EAAE,EAAE,CAAC;QACvB,aAAa;QACb,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;QACzC,IAAI,OAAO,IAAI,QAAQ,EAAE,CAAC;YACzB,OAAO,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;YAC5C,cAAc,GAAG,IAAI,CAAC;YACtB,QAAQ,GAAG,IAAI,CAAC;QACjB,CAAC;IACF,CAAC;SAAM,CAAC;QACP,WAAW,CAAC,OAAO,CAAC,2BAA2B,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IACtG,CAAC;AACF,CAAC"}
|
package/core-types/index.d.ts
CHANGED
|
@@ -3,40 +3,44 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { CubicBezierAnimationCurve } from './animation-types';
|
|
5
5
|
export declare namespace CoreTypes {
|
|
6
|
-
type
|
|
6
|
+
type AndroidOverflowSingle = 'ignore' | 'none' | 'dont-apply';
|
|
7
|
+
type AndroidOverflowMultiple = 'left' | 'right' | 'top' | 'bottom' | 'left-dont-consume' | 'top-dont-consume' | 'right-dont-consume' | 'bottom-dont-consume' | 'all-but-left' | 'all-but-top' | 'all-but-right' | 'all-but-bottom';
|
|
8
|
+
type AndroidOverflowStacked = AndroidOverflowSingle | `${AndroidOverflowSingle},${AndroidOverflowMultiple}`;
|
|
9
|
+
export type AndroidOverflow = AndroidOverflowSingle | AndroidOverflowStacked;
|
|
10
|
+
export type CSSWideKeywords = 'initial' | 'inherit' | 'unset' | 'revert';
|
|
7
11
|
/**
|
|
8
12
|
* Denotes a length number that is in device independent pixel units.
|
|
9
13
|
*/
|
|
10
|
-
type dip = number;
|
|
14
|
+
export type dip = number;
|
|
11
15
|
/**
|
|
12
16
|
* Denotes a length number that is in physical device pixels.
|
|
13
17
|
*/
|
|
14
|
-
type px = number;
|
|
18
|
+
export type px = number;
|
|
15
19
|
/**
|
|
16
20
|
* Denotes a normalized percent number.
|
|
17
21
|
* 0% is represented as 0
|
|
18
22
|
* 50% is represented as 0.5
|
|
19
23
|
* 100% is represented as 1
|
|
20
24
|
*/
|
|
21
|
-
type percent = number;
|
|
22
|
-
type LengthDipUnit = {
|
|
25
|
+
export type percent = number;
|
|
26
|
+
export type LengthDipUnit = {
|
|
23
27
|
readonly unit: 'dip';
|
|
24
28
|
readonly value: dip;
|
|
25
29
|
};
|
|
26
|
-
type LengthPxUnit = {
|
|
30
|
+
export type LengthPxUnit = {
|
|
27
31
|
readonly unit: 'px';
|
|
28
32
|
readonly value: px;
|
|
29
33
|
};
|
|
30
|
-
type LengthPercentUnit = {
|
|
34
|
+
export type LengthPercentUnit = {
|
|
31
35
|
readonly unit: '%';
|
|
32
36
|
readonly value: percent;
|
|
33
37
|
};
|
|
34
|
-
type FixedLengthType = dip | LengthDipUnit | LengthPxUnit | CSSWideKeywords;
|
|
35
|
-
type LengthType = 'auto' | FixedLengthType;
|
|
36
|
-
type PercentLengthType = 'auto' | FixedLengthType | LengthPercentUnit;
|
|
37
|
-
const zeroLength: LengthType;
|
|
38
|
-
type KeyboardInputType = 'datetime' | 'phone' | 'number' | 'decimal' | 'url' | 'email' | 'integer';
|
|
39
|
-
namespace KeyboardType {
|
|
38
|
+
export type FixedLengthType = dip | LengthDipUnit | LengthPxUnit | CSSWideKeywords;
|
|
39
|
+
export type LengthType = 'auto' | FixedLengthType;
|
|
40
|
+
export type PercentLengthType = 'auto' | FixedLengthType | LengthPercentUnit;
|
|
41
|
+
export const zeroLength: LengthType;
|
|
42
|
+
export type KeyboardInputType = 'datetime' | 'phone' | 'number' | 'decimal' | 'url' | 'email' | 'integer';
|
|
43
|
+
export namespace KeyboardType {
|
|
40
44
|
const datetime = "datetime";
|
|
41
45
|
const phone = "phone";
|
|
42
46
|
const number = "number";
|
|
@@ -45,8 +49,8 @@ export declare namespace CoreTypes {
|
|
|
45
49
|
const email = "email";
|
|
46
50
|
const integer = "integer";
|
|
47
51
|
}
|
|
48
|
-
type AutofillType = 'username' | 'password' | 'none' | string;
|
|
49
|
-
namespace AutofillType {
|
|
52
|
+
export type AutofillType = 'username' | 'password' | 'none' | string;
|
|
53
|
+
export namespace AutofillType {
|
|
50
54
|
const username = "username";
|
|
51
55
|
const password = "password";
|
|
52
56
|
const newUsername = "newUsername";
|
|
@@ -54,58 +58,58 @@ export declare namespace CoreTypes {
|
|
|
54
58
|
const oneTimeCode = "oneTimeCode";
|
|
55
59
|
const none = "none";
|
|
56
60
|
}
|
|
57
|
-
type ReturnKeyButtonType = 'done' | 'next' | 'go' | 'search' | 'send';
|
|
58
|
-
namespace ReturnKeyType {
|
|
61
|
+
export type ReturnKeyButtonType = 'done' | 'next' | 'go' | 'search' | 'send';
|
|
62
|
+
export namespace ReturnKeyType {
|
|
59
63
|
const done = "done";
|
|
60
64
|
const next = "next";
|
|
61
65
|
const go = "go";
|
|
62
66
|
const search = "search";
|
|
63
67
|
const send = "send";
|
|
64
68
|
}
|
|
65
|
-
type TextAlignmentType = 'left' | 'center' | 'right' | 'justify' | CSSWideKeywords;
|
|
66
|
-
namespace TextAlignment {
|
|
69
|
+
export type TextAlignmentType = 'left' | 'center' | 'right' | 'justify' | CSSWideKeywords;
|
|
70
|
+
export namespace TextAlignment {
|
|
67
71
|
const left = "left";
|
|
68
72
|
const center = "center";
|
|
69
73
|
const right = "right";
|
|
70
74
|
const justify = "justify";
|
|
71
75
|
}
|
|
72
|
-
type TextDecorationType = 'none' | 'underline' | 'line-through' | 'underline line-through' | CSSWideKeywords;
|
|
73
|
-
namespace TextDecoration {
|
|
76
|
+
export type TextDecorationType = 'none' | 'underline' | 'line-through' | 'underline line-through' | CSSWideKeywords;
|
|
77
|
+
export namespace TextDecoration {
|
|
74
78
|
const none = "none";
|
|
75
79
|
const underline = "underline";
|
|
76
80
|
const lineThrough = "line-through";
|
|
77
81
|
}
|
|
78
|
-
type TextTransformType = 'none' | 'capitalize' | 'uppercase' | 'lowercase' | CSSWideKeywords;
|
|
79
|
-
namespace TextTransform {
|
|
82
|
+
export type TextTransformType = 'none' | 'capitalize' | 'uppercase' | 'lowercase' | CSSWideKeywords;
|
|
83
|
+
export namespace TextTransform {
|
|
80
84
|
const none = "none";
|
|
81
85
|
const capitalize = "capitalize";
|
|
82
86
|
const uppercase = "uppercase";
|
|
83
87
|
const lowercase = "lowercase";
|
|
84
88
|
}
|
|
85
|
-
type WhiteSpaceType = 'normal' | 'nowrap' | 'wrap' | CSSWideKeywords;
|
|
86
|
-
namespace WhiteSpace {
|
|
89
|
+
export type WhiteSpaceType = 'normal' | 'nowrap' | 'wrap' | CSSWideKeywords;
|
|
90
|
+
export namespace WhiteSpace {
|
|
87
91
|
const normal = "normal";
|
|
88
92
|
const nowrap = "nowrap";
|
|
89
93
|
}
|
|
90
|
-
type TextOverflowType = 'clip' | 'ellipsis' | CSSWideKeywords;
|
|
91
|
-
namespace TextOverflow {
|
|
94
|
+
export type TextOverflowType = 'clip' | 'ellipsis' | CSSWideKeywords;
|
|
95
|
+
export namespace TextOverflow {
|
|
92
96
|
const clip = "clip";
|
|
93
97
|
const ellipsis = "ellipsis";
|
|
94
98
|
}
|
|
95
|
-
type MaxLinesType = number;
|
|
96
|
-
type OrientationType = 'horizontal' | 'vertical';
|
|
97
|
-
namespace Orientation {
|
|
99
|
+
export type MaxLinesType = number;
|
|
100
|
+
export type OrientationType = 'horizontal' | 'vertical';
|
|
101
|
+
export namespace Orientation {
|
|
98
102
|
const horizontal = "horizontal";
|
|
99
103
|
const vertical = "vertical";
|
|
100
104
|
}
|
|
101
|
-
type DeviceOrientationType = 'portrait' | 'landscape' | 'unknown';
|
|
102
|
-
namespace DeviceOrientation {
|
|
105
|
+
export type DeviceOrientationType = 'portrait' | 'landscape' | 'unknown';
|
|
106
|
+
export namespace DeviceOrientation {
|
|
103
107
|
const portrait = "portrait";
|
|
104
108
|
const landscape = "landscape";
|
|
105
109
|
const unknown = "unknown";
|
|
106
110
|
}
|
|
107
|
-
type HorizontalAlignmentType = 'left' | 'center' | 'right' | 'stretch' | CSSWideKeywords;
|
|
108
|
-
namespace HorizontalAlignment {
|
|
111
|
+
export type HorizontalAlignmentType = 'left' | 'center' | 'right' | 'stretch' | CSSWideKeywords;
|
|
112
|
+
export namespace HorizontalAlignment {
|
|
109
113
|
const left = "left";
|
|
110
114
|
const center = "center";
|
|
111
115
|
const right = "right";
|
|
@@ -113,15 +117,15 @@ export declare namespace CoreTypes {
|
|
|
113
117
|
const isValid: (value: any) => value is HorizontalAlignmentType;
|
|
114
118
|
const parse: (value: any) => HorizontalAlignmentType;
|
|
115
119
|
}
|
|
116
|
-
type VerticalAlignmentType = 'top' | 'middle' | 'bottom' | 'stretch' | CSSWideKeywords;
|
|
117
|
-
namespace VerticalAlignment {
|
|
120
|
+
export type VerticalAlignmentType = 'top' | 'middle' | 'bottom' | 'stretch' | CSSWideKeywords;
|
|
121
|
+
export namespace VerticalAlignment {
|
|
118
122
|
const top = "top";
|
|
119
123
|
const middle = "middle";
|
|
120
124
|
const bottom = "bottom";
|
|
121
125
|
const stretch = "stretch";
|
|
122
126
|
}
|
|
123
|
-
type VerticalAlignmentTextType = VerticalAlignmentType | 'text-top' | 'text-bottom' | 'sup' | 'sub' | 'baseline';
|
|
124
|
-
namespace VerticalAlignmentText {
|
|
127
|
+
export type VerticalAlignmentTextType = VerticalAlignmentType | 'text-top' | 'text-bottom' | 'sup' | 'sub' | 'baseline';
|
|
128
|
+
export namespace VerticalAlignmentText {
|
|
125
129
|
const top = "top";
|
|
126
130
|
const middle = "middle";
|
|
127
131
|
const bottom = "bottom";
|
|
@@ -134,15 +138,15 @@ export declare namespace CoreTypes {
|
|
|
134
138
|
const isValid: (value: any) => value is VerticalAlignmentTextType;
|
|
135
139
|
const parse: (value: string) => VerticalAlignmentTextType;
|
|
136
140
|
}
|
|
137
|
-
type ImageStretchType = 'none' | 'aspectFill' | 'aspectFit' | 'fill';
|
|
138
|
-
namespace ImageStretch {
|
|
141
|
+
export type ImageStretchType = 'none' | 'aspectFill' | 'aspectFit' | 'fill';
|
|
142
|
+
export namespace ImageStretch {
|
|
139
143
|
const none: ImageStretchType;
|
|
140
144
|
const aspectFill: ImageStretchType;
|
|
141
145
|
const aspectFit: ImageStretchType;
|
|
142
146
|
const fill: ImageStretchType;
|
|
143
147
|
}
|
|
144
|
-
type VisibilityType = 'visible' | 'hidden' | 'collapse' | 'collapsed' | CSSWideKeywords;
|
|
145
|
-
namespace Visibility {
|
|
148
|
+
export type VisibilityType = 'visible' | 'hidden' | 'collapse' | 'collapsed' | CSSWideKeywords;
|
|
149
|
+
export namespace Visibility {
|
|
146
150
|
const visible: VisibilityType;
|
|
147
151
|
const collapse: VisibilityType;
|
|
148
152
|
const collapsed: VisibilityType;
|
|
@@ -150,67 +154,67 @@ export declare namespace CoreTypes {
|
|
|
150
154
|
const isValid: (value: any) => value is VisibilityType;
|
|
151
155
|
const parse: (value: string) => VisibilityType;
|
|
152
156
|
}
|
|
153
|
-
namespace FontAttributes {
|
|
157
|
+
export namespace FontAttributes {
|
|
154
158
|
const Normal = 0;
|
|
155
159
|
const Bold = 1;
|
|
156
160
|
const Italic: number;
|
|
157
161
|
}
|
|
158
|
-
namespace DeviceType {
|
|
162
|
+
export namespace DeviceType {
|
|
159
163
|
const Phone: string;
|
|
160
164
|
const Tablet: string;
|
|
161
165
|
}
|
|
162
|
-
type UpdateTextTriggerType = 'focusLost' | 'textChanged';
|
|
163
|
-
namespace UpdateTextTrigger {
|
|
166
|
+
export type UpdateTextTriggerType = 'focusLost' | 'textChanged';
|
|
167
|
+
export namespace UpdateTextTrigger {
|
|
164
168
|
const focusLost: UpdateTextTriggerType;
|
|
165
169
|
const textChanged: UpdateTextTriggerType;
|
|
166
170
|
}
|
|
167
|
-
namespace Accuracy {
|
|
171
|
+
export namespace Accuracy {
|
|
168
172
|
const any: number;
|
|
169
173
|
const high: number;
|
|
170
174
|
}
|
|
171
|
-
type DockType = 'left' | 'top' | 'right' | 'bottom';
|
|
172
|
-
namespace Dock {
|
|
175
|
+
export type DockType = 'left' | 'top' | 'right' | 'bottom';
|
|
176
|
+
export namespace Dock {
|
|
173
177
|
const left: DockType;
|
|
174
178
|
const top: DockType;
|
|
175
179
|
const right: DockType;
|
|
176
180
|
const bottom: DockType;
|
|
177
181
|
}
|
|
178
|
-
type AutocapitalizationInputType = 'none' | 'words' | 'sentences' | 'allcharacters';
|
|
179
|
-
namespace AutocapitalizationType {
|
|
182
|
+
export type AutocapitalizationInputType = 'none' | 'words' | 'sentences' | 'allcharacters';
|
|
183
|
+
export namespace AutocapitalizationType {
|
|
180
184
|
const none: AutocapitalizationInputType;
|
|
181
185
|
const words: AutocapitalizationInputType;
|
|
182
186
|
const sentences: AutocapitalizationInputType;
|
|
183
187
|
const allCharacters: AutocapitalizationInputType;
|
|
184
188
|
}
|
|
185
|
-
namespace NavigationBarVisibility {
|
|
189
|
+
export namespace NavigationBarVisibility {
|
|
186
190
|
const auto: string;
|
|
187
191
|
const never: string;
|
|
188
192
|
const always: string;
|
|
189
193
|
}
|
|
190
|
-
namespace AndroidActionBarIconVisibility {
|
|
194
|
+
export namespace AndroidActionBarIconVisibility {
|
|
191
195
|
const auto: string;
|
|
192
196
|
const never: string;
|
|
193
197
|
const always: string;
|
|
194
198
|
}
|
|
195
|
-
namespace AndroidActionItemPosition {
|
|
199
|
+
export namespace AndroidActionItemPosition {
|
|
196
200
|
const actionBar: string;
|
|
197
201
|
const actionBarIfRoom: string;
|
|
198
202
|
const popup: string;
|
|
199
203
|
}
|
|
200
|
-
namespace IOSActionItemPosition {
|
|
204
|
+
export namespace IOSActionItemPosition {
|
|
201
205
|
const left: string;
|
|
202
206
|
const right: string;
|
|
203
207
|
}
|
|
204
|
-
namespace ImageFormat {
|
|
208
|
+
export namespace ImageFormat {
|
|
205
209
|
const png: string;
|
|
206
210
|
const jpeg: string;
|
|
207
211
|
const jpg: string;
|
|
208
212
|
}
|
|
209
|
-
namespace FontStyle {
|
|
213
|
+
export namespace FontStyle {
|
|
210
214
|
const normal: string;
|
|
211
215
|
const italic: string;
|
|
212
216
|
}
|
|
213
|
-
namespace FontWeight {
|
|
217
|
+
export namespace FontWeight {
|
|
214
218
|
const thin: string;
|
|
215
219
|
const extraLight: string;
|
|
216
220
|
const light: string;
|
|
@@ -221,8 +225,8 @@ export declare namespace CoreTypes {
|
|
|
221
225
|
const extraBold: string;
|
|
222
226
|
const black: string;
|
|
223
227
|
}
|
|
224
|
-
type BackgroundRepeatType = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | CSSWideKeywords;
|
|
225
|
-
namespace BackgroundRepeat {
|
|
228
|
+
export type BackgroundRepeatType = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | CSSWideKeywords;
|
|
229
|
+
export namespace BackgroundRepeat {
|
|
226
230
|
const repeat: BackgroundRepeatType;
|
|
227
231
|
const repeatX: BackgroundRepeatType;
|
|
228
232
|
const repeatY: BackgroundRepeatType;
|
|
@@ -230,7 +234,7 @@ export declare namespace CoreTypes {
|
|
|
230
234
|
const isValid: (value: any) => value is BackgroundRepeatType;
|
|
231
235
|
const parse: (value: any) => BackgroundRepeatType;
|
|
232
236
|
}
|
|
233
|
-
namespace AnimationCurve {
|
|
237
|
+
export namespace AnimationCurve {
|
|
234
238
|
const ease = "ease";
|
|
235
239
|
const easeIn = "easeIn";
|
|
236
240
|
const easeOut = "easeOut";
|
|
@@ -239,14 +243,15 @@ export declare namespace CoreTypes {
|
|
|
239
243
|
const spring = "spring";
|
|
240
244
|
function cubicBezier(x1: number, y1: number, x2: number, y2: number): CubicBezierAnimationCurve;
|
|
241
245
|
}
|
|
242
|
-
namespace StatusBarStyle {
|
|
246
|
+
export namespace StatusBarStyle {
|
|
243
247
|
const light = "light";
|
|
244
248
|
const dark = "dark";
|
|
245
249
|
}
|
|
246
|
-
namespace SystemAppearance {
|
|
250
|
+
export namespace SystemAppearance {
|
|
247
251
|
const light = "light";
|
|
248
252
|
const dark = "dark";
|
|
249
253
|
}
|
|
254
|
+
export {};
|
|
250
255
|
}
|
|
251
256
|
/**
|
|
252
257
|
* NOTE: Auto migrate deprecations via eslint-plugin in future
|
package/core-types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/core/core-types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wCAAwC;AACxC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,KAAW,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/core/core-types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wCAAwC;AACxC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CA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,EAAE,SAAS,CAAC,aAAa;IACtC,iBAAiB,EAAE,SAAS,CAAC,iBAAiB;IAC9C,iBAAiB,EAAE,SAAS,CAAC,iBAAiB;IAC9C,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,UAAU,EAAE,SAAS,CAAC,UAAU;CAChC,CAAC"}
|
package/image-source/index.d.ts
CHANGED
|
@@ -65,13 +65,13 @@ export class ImageSource {
|
|
|
65
65
|
* Loads this instance from the specified system image name.
|
|
66
66
|
* @param name the name of the system image
|
|
67
67
|
*/
|
|
68
|
-
static fromSystemImageSync(name: string, instance
|
|
68
|
+
static fromSystemImageSync(name: string, instance?: ImageBase): ImageSource;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Loads this instance from the specified system image name asynchronously.
|
|
72
72
|
* @param name the name of the system image
|
|
73
73
|
*/
|
|
74
|
-
static fromSystemImage(name: string, instance
|
|
74
|
+
static fromSystemImage(name: string, instance?: ImageBase): Promise<ImageSource>;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Loads this instance from the specified file.
|