@onekeyfe/react-native-native-overlay 6.7.0-alpha.432 → 6.7.0-alpha.436
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/android/src/test/java/com/onekey/nativeoverlay/NativeOverlayBackTest.kt +8 -0
- package/lib/typescript/src/OverlayPageHost.d.ts +1 -1
- package/lib/typescript/src/OverlayPageHost.d.ts.map +1 -1
- package/lib/typescript/src/OverlayPageHost.web.d.ts +1 -1
- package/lib/typescript/src/OverlayPageHost.web.d.ts.map +1 -1
- package/lib/typescript/src/OverlayPageScope.d.ts +2 -2
- package/lib/typescript/src/OverlayPageScope.d.ts.map +1 -1
- package/lib/typescript/src/OverlayView.d.ts +1 -1
- package/lib/typescript/src/OverlayView.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -6,6 +6,7 @@ import android.view.View
|
|
|
6
6
|
import android.widget.FrameLayout
|
|
7
7
|
import androidx.activity.ComponentActivity
|
|
8
8
|
import com.facebook.react.bridge.BridgeReactContext
|
|
9
|
+
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlags
|
|
9
10
|
import com.facebook.react.uimanager.PointerEvents
|
|
10
11
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
11
12
|
import com.facebook.react.uimanager.TouchTargetHelper
|
|
@@ -34,6 +35,13 @@ class NativeOverlayBackTest {
|
|
|
34
35
|
|
|
35
36
|
@Before
|
|
36
37
|
fun setUp() {
|
|
38
|
+
val localAccessor = Class.forName(
|
|
39
|
+
"com.facebook.react.internal.featureflags.ReactNativeFeatureFlagsLocalAccessor"
|
|
40
|
+
).getDeclaredConstructor().newInstance()
|
|
41
|
+
ReactNativeFeatureFlags::class.java.getDeclaredField("accessor").apply {
|
|
42
|
+
isAccessible = true
|
|
43
|
+
set(null, localAccessor)
|
|
44
|
+
}
|
|
37
45
|
activity = Robolectric.buildActivity(ComponentActivity::class.java).setup().visible().get()
|
|
38
46
|
val reactContext = BridgeReactContext(activity)
|
|
39
47
|
reactContext.onHostResume(activity)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayPageHost.d.ts","sourceRoot":"","sources":["../../../src/OverlayPageHost.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"OverlayPageHost.d.ts","sourceRoot":"","sources":["../../../src/OverlayPageHost.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,+BAU/D"}
|
|
@@ -6,6 +6,6 @@ declare const OWNER_ATTRIBUTE = "data-overlay-owner";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function OverlayPageHost({ hostKey }: {
|
|
8
8
|
hostKey: string;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
10
|
export { OWNER_ATTRIBUTE as OVERLAY_OWNER_ATTRIBUTE };
|
|
11
11
|
//# sourceMappingURL=OverlayPageHost.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayPageHost.web.d.ts","sourceRoot":"","sources":["../../../src/OverlayPageHost.web.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,eAAe,uBAAuB,CAAC;AAE7C;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"OverlayPageHost.web.d.ts","sourceRoot":"","sources":["../../../src/OverlayPageHost.web.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,eAAe,uBAAuB,CAAC;AAE7C;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,+BAqD/D;AAED,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,CAAC"}
|
|
@@ -9,9 +9,9 @@ export declare function useOverlayPageScope(): IOverlayPageScope;
|
|
|
9
9
|
/** Provided once per root route, around its navigator and `OverlayPageHost`. */
|
|
10
10
|
export declare function OverlayPageHostScope({ hostKey, children, }: PropsWithChildren<{
|
|
11
11
|
hostKey: string;
|
|
12
|
-
}>): import("react
|
|
12
|
+
}>): import("react").JSX.Element;
|
|
13
13
|
/** Provided by each page; page overlays below it belong to `ownerKey`. */
|
|
14
14
|
export declare function OverlayPageOwnerScope({ ownerKey, children, }: PropsWithChildren<{
|
|
15
15
|
ownerKey: string;
|
|
16
|
-
}>): import("react
|
|
16
|
+
}>): import("react").JSX.Element;
|
|
17
17
|
//# sourceMappingURL=OverlayPageScope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayPageScope.d.ts","sourceRoot":"","sources":["../../../src/OverlayPageScope.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,mBAAmB,IAAI,iBAAiB,CAEvD;AAED,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC
|
|
1
|
+
{"version":3,"file":"OverlayPageScope.d.ts","sourceRoot":"","sources":["../../../src/OverlayPageScope.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,mBAAmB,IAAI,iBAAiB,CAEvD;AAED,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,+BAOxC;AAED,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,GACT,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,+BAQzC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { IOverlayViewProps } from './OverlayViewTypes';
|
|
2
|
-
export declare function OverlayView(props: IOverlayViewProps): import("react
|
|
2
|
+
export declare function OverlayView(props: IOverlayViewProps): import("react").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=OverlayView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayView.d.ts","sourceRoot":"","sources":["../../../src/OverlayView.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAuC5B,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"OverlayView.d.ts","sourceRoot":"","sources":["../../../src/OverlayView.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAuC5B,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,sCA4OnD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-overlay",
|
|
3
|
-
"version": "6.7.0-alpha.
|
|
3
|
+
"version": "6.7.0-alpha.436",
|
|
4
4
|
"description": "Native and Web overlay hosts with ordered levels, page scope and Fabric measurement",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"@eslint/compat": "^1.3.2",
|
|
66
66
|
"@eslint/eslintrc": "^3.3.1",
|
|
67
67
|
"@eslint/js": "^9.35.0",
|
|
68
|
-
"@react-native/babel-preset": "0.
|
|
69
|
-
"@react-native/eslint-config": "0.
|
|
68
|
+
"@react-native/babel-preset": "0.88.0",
|
|
69
|
+
"@react-native/eslint-config": "0.88.0",
|
|
70
70
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
71
71
|
"@types/jest": "^29.5.14",
|
|
72
|
-
"@types/react": "^19.
|
|
73
|
-
"@types/react-dom": "19.
|
|
72
|
+
"@types/react": "^19.3.0",
|
|
73
|
+
"@types/react-dom": "19.3.0",
|
|
74
74
|
"commitlint": "^19.8.1",
|
|
75
75
|
"del-cli": "^6.0.0",
|
|
76
76
|
"eslint": "^9.35.0",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"jest-environment-jsdom": "29.7.0",
|
|
81
81
|
"lefthook": "^2.0.3",
|
|
82
82
|
"prettier": "^2.8.8",
|
|
83
|
-
"react": "19.
|
|
84
|
-
"react-dom": "19.
|
|
85
|
-
"react-native": "0.
|
|
83
|
+
"react": "19.3.0",
|
|
84
|
+
"react-dom": "19.3.0",
|
|
85
|
+
"react-native": "patch:react-native@npm%3A0.88.0#~/.yarn/patches/react-native-npm-0.88.0-60c6201dd2.patch",
|
|
86
86
|
"react-native-builder-bob": "^0.40.13",
|
|
87
87
|
"release-it": "^19.0.4",
|
|
88
88
|
"turbo": "^2.5.6",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"useTabs": false
|
|
121
121
|
},
|
|
122
122
|
"jest": {
|
|
123
|
-
"preset": "react-native",
|
|
123
|
+
"preset": "@react-native/jest-preset",
|
|
124
124
|
"modulePathIgnorePatterns": [
|
|
125
125
|
"<rootDir>/example/node_modules",
|
|
126
126
|
"<rootDir>/lib/"
|