@prose-reader/react-native 2.0.2 → 3.0.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/dist/shared/index.d.ts +2 -11
- package/package.json +6 -6
- package/dist/index.test.d.ts +0 -1
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { ContextState, createReader, EnhancerPaginationInto, Manifest } from '@prose-reader/core';
|
|
2
2
|
import { Bridge, BridgeStore } from '@webview-bridge/react-native';
|
|
3
3
|
type ReaderOptions = Parameters<typeof createReader>[0];
|
|
4
|
-
/**
|
|
5
|
-
* `navigationId` is a symbol, which does not survive the bridge.
|
|
6
|
-
*
|
|
7
|
-
* The omit distributes over the union so the settled and provisional variants
|
|
8
|
-
* stay distinguishable: a plain `Omit` would collapse them into one object
|
|
9
|
-
* with `isSettled: boolean`, and consumers could no longer narrow to reach a
|
|
10
|
-
* position.
|
|
11
|
-
*/
|
|
12
|
-
type RnPaginationState = EnhancerPaginationInto extends unknown ? Omit<EnhancerPaginationInto, "navigationId"> : never;
|
|
13
4
|
type RnContextState = Omit<ContextState, "rootElement">;
|
|
14
5
|
export interface BridgeState extends Bridge {
|
|
15
|
-
pagination:
|
|
16
|
-
setPagination: (pagination:
|
|
6
|
+
pagination: EnhancerPaginationInto | undefined;
|
|
7
|
+
setPagination: (pagination: EnhancerPaginationInto) => Promise<void>;
|
|
17
8
|
context: RnContextState | undefined;
|
|
18
9
|
setContext: (context: RnContextState) => Promise<void>;
|
|
19
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prose-reader/react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/native/index.cjs",
|
|
6
6
|
"module": "./dist/native/index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"test": "vitest run --coverage"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@prose-reader/archive-reader": "^
|
|
38
|
-
"@prose-reader/core": "^
|
|
39
|
-
"@prose-reader/shared": "^
|
|
40
|
-
"@prose-reader/streamer": "^
|
|
37
|
+
"@prose-reader/archive-reader": "^3.0.0",
|
|
38
|
+
"@prose-reader/core": "^3.0.0",
|
|
39
|
+
"@prose-reader/shared": "^3.0.0",
|
|
40
|
+
"@prose-reader/streamer": "^3.0.0",
|
|
41
41
|
"@webview-bridge/react-native": "^1.7.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react": "19.x",
|
|
52
52
|
"rxjs": "*"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "66fa4db3b57ea318c291041b5f60209d730383b9"
|
|
55
55
|
}
|
package/dist/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|