@papyrus-sdk/ui-react-native 0.1.4 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +33 -0
  2. package/package.json +24 -4
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Papyrus UI React Native
2
+
3
+ React Native UI components for Papyrus viewers.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @papyrus-sdk/ui-react-native @papyrus-sdk/engine-native
9
+ ```
10
+
11
+ For EPUB/TXT previews on mobile:
12
+
13
+ ```bash
14
+ npm install react-native-webview
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```tsx
20
+ import { Viewer, CoverPreview } from '@papyrus-sdk/ui-react-native';
21
+ import { MobileDocumentEngine } from '@papyrus-sdk/engine-native';
22
+
23
+ const engine = new MobileDocumentEngine();
24
+ await engine.load({ type: 'pdf', source: { uri: 'https://example.com/book.pdf' } });
25
+
26
+ <Viewer engine={engine} />
27
+
28
+ <CoverPreview
29
+ source={{ uri: 'https://example.com/book.epub' }}
30
+ type="epub"
31
+ style={{ width: 120, height: 180 }}
32
+ />
33
+ ```
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "@papyrus-sdk/ui-react-native",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
+ "license": "MIT",
5
+ "keywords": [
6
+ "papyrus",
7
+ "react-native",
8
+ "viewer",
9
+ "document",
10
+ "sdk",
11
+ "pdf",
12
+ "epub",
13
+ "text",
14
+ "mobile"
15
+ ],
4
16
  "main": "dist/index.js",
5
17
  "module": "dist/index.mjs",
6
18
  "types": "dist/index.d.ts",
@@ -18,10 +30,18 @@
18
30
  "publishConfig": {
19
31
  "access": "public"
20
32
  },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/solrachix/Papyrus.git"
36
+ },
37
+ "homepage": "https://solrachix.github.io/Papyrus/",
38
+ "bugs": {
39
+ "url": "https://github.com/solrachix/Papyrus/issues"
40
+ },
21
41
  "dependencies": {
22
- "@papyrus-sdk/core": "0.1.2",
23
- "@papyrus-sdk/types": "0.1.2",
24
- "@papyrus-sdk/engine-native": "0.1.3",
42
+ "@papyrus-sdk/core": "0.1.3",
43
+ "@papyrus-sdk/types": "0.1.3",
44
+ "@papyrus-sdk/engine-native": "0.1.4",
25
45
  "react-native-svg": "^15.5.0"
26
46
  },
27
47
  "peerDependencies": {