@yahoo/uds-mobile 2.4.0 → 2.4.1
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/dist/native/UDSScreenCornerRadiusModule.cjs +4 -22
- package/dist/native/UDSScreenCornerRadiusModule.d.cts +2 -2
- package/dist/native/UDSScreenCornerRadiusModule.d.cts.map +1 -1
- package/dist/native/UDSScreenCornerRadiusModule.d.ts +2 -2
- package/dist/native/UDSScreenCornerRadiusModule.d.ts.map +1 -1
- package/dist/native/UDSScreenCornerRadiusModule.js +2 -10
- package/dist/native/UDSScreenCornerRadiusModule.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,29 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
3
|
|
|
4
4
|
//#region src/native/UDSScreenCornerRadiusModule.ts
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const nativeModule = (globalThis.expo?.modules)?.UDSScreenCornerRadius ?? null;
|
|
6
|
+
const loadState = nativeModule ? "loaded" : "failed";
|
|
7
7
|
const loadListeners = [];
|
|
8
|
-
import("expo-modules-core").then((mod) => {
|
|
9
|
-
nativeModule = mod.requireNativeModule("UDSScreenCornerRadius");
|
|
10
|
-
loadState = "loaded";
|
|
11
|
-
loadListeners.forEach((cb) => cb());
|
|
12
|
-
}).catch(() => {
|
|
13
|
-
loadState = "failed";
|
|
14
|
-
loadListeners.forEach((cb) => cb());
|
|
15
|
-
});
|
|
16
8
|
|
|
17
9
|
//#endregion
|
|
18
10
|
exports.loadListeners = loadListeners;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
get: function () {
|
|
22
|
-
return loadState;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, 'nativeModule', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return nativeModule;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
11
|
+
exports.loadState = loadState;
|
|
12
|
+
exports.nativeModule = nativeModule;
|
|
@@ -4,8 +4,8 @@ interface UDSScreenCornerRadiusModuleType {
|
|
|
4
4
|
getCornerRadiusSync(): number | null;
|
|
5
5
|
getCornerRadius(): Promise<number | null>;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
7
|
+
declare const nativeModule: UDSScreenCornerRadiusModuleType;
|
|
8
|
+
declare const loadState: 'pending' | 'loaded' | 'failed';
|
|
9
9
|
declare const loadListeners: (() => void)[];
|
|
10
10
|
//#endregion
|
|
11
11
|
export { loadListeners, loadState, nativeModule };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UDSScreenCornerRadiusModule.d.cts","names":[],"sources":["../../src/native/UDSScreenCornerRadiusModule.ts"],"mappings":";;UAAU,+BAAA;EACR,mBAAA;EACA,eAAA,IAAmB,OAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"UDSScreenCornerRadiusModule.d.cts","names":[],"sources":["../../src/native/UDSScreenCornerRadiusModule.ts"],"mappings":";;UAAU,+BAAA;EACR,mBAAA;EACA,eAAA,IAAmB,OAAA;AAAA;AAAA,cAOf,YAAA,EAAY,+BAAA;AAAA,cAEZ,SAAA;AAAA,cAGA,aAAA"}
|
|
@@ -4,8 +4,8 @@ interface UDSScreenCornerRadiusModuleType {
|
|
|
4
4
|
getCornerRadiusSync(): number | null;
|
|
5
5
|
getCornerRadius(): Promise<number | null>;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
7
|
+
declare const nativeModule: UDSScreenCornerRadiusModuleType;
|
|
8
|
+
declare const loadState: 'pending' | 'loaded' | 'failed';
|
|
9
9
|
declare const loadListeners: (() => void)[];
|
|
10
10
|
//#endregion
|
|
11
11
|
export { loadListeners, loadState, nativeModule };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UDSScreenCornerRadiusModule.d.ts","names":[],"sources":["../../src/native/UDSScreenCornerRadiusModule.ts"],"mappings":";;UAAU,+BAAA;EACR,mBAAA;EACA,eAAA,IAAmB,OAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"UDSScreenCornerRadiusModule.d.ts","names":[],"sources":["../../src/native/UDSScreenCornerRadiusModule.ts"],"mappings":";;UAAU,+BAAA;EACR,mBAAA;EACA,eAAA,IAAmB,OAAA;AAAA;AAAA,cAOf,YAAA,EAAY,+BAAA;AAAA,cAEZ,SAAA;AAAA,cAGA,aAAA"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
2
|
//#region src/native/UDSScreenCornerRadiusModule.ts
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const nativeModule = (globalThis.expo?.modules)?.UDSScreenCornerRadius ?? null;
|
|
4
|
+
const loadState = nativeModule ? "loaded" : "failed";
|
|
5
5
|
const loadListeners = [];
|
|
6
|
-
import("expo-modules-core").then((mod) => {
|
|
7
|
-
nativeModule = mod.requireNativeModule("UDSScreenCornerRadius");
|
|
8
|
-
loadState = "loaded";
|
|
9
|
-
loadListeners.forEach((cb) => cb());
|
|
10
|
-
}).catch(() => {
|
|
11
|
-
loadState = "failed";
|
|
12
|
-
loadListeners.forEach((cb) => cb());
|
|
13
|
-
});
|
|
14
6
|
|
|
15
7
|
//#endregion
|
|
16
8
|
export { loadListeners, loadState, nativeModule };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UDSScreenCornerRadiusModule.js","names":[],"sources":["../../src/native/UDSScreenCornerRadiusModule.ts"],"sourcesContent":["interface UDSScreenCornerRadiusModuleType {\n getCornerRadiusSync(): number | null;\n getCornerRadius(): Promise<number | null>;\n}\n\
|
|
1
|
+
{"version":3,"file":"UDSScreenCornerRadiusModule.js","names":[],"sources":["../../src/native/UDSScreenCornerRadiusModule.ts"],"sourcesContent":["interface UDSScreenCornerRadiusModuleType {\n getCornerRadiusSync(): number | null;\n getCornerRadius(): Promise<number | null>;\n}\n\n// Access the native module from globalThis.expo.modules, which is populated\n// synchronously by the native side before any JS runs.\n// See packages/mobile/docs/DYNAMIC_IMPORTS.md for details on this approach.\nconst expoModules = (globalThis as { expo?: { modules?: Record<string, unknown> } }).expo?.modules;\nconst nativeModule =\n (expoModules?.UDSScreenCornerRadius as UDSScreenCornerRadiusModuleType) ?? null;\nconst loadState: 'pending' | 'loaded' | 'failed' = nativeModule ? 'loaded' : 'failed';\n\n// Kept for API compatibility with components that use the listener pattern\nconst loadListeners: (() => void)[] = [];\n\nexport { loadListeners, loadState, nativeModule };\n"],"mappings":";;AASA,MAAM,gBADe,WAAgE,MAAM,UAE3E,yBAA6D;AAC7E,MAAM,YAA6C,eAAe,WAAW;AAG7E,MAAM,gBAAgC,EAAE"}
|