@kishannareshpal/expo-pdf 0.2.0 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -13,15 +13,36 @@
13
13
  _This version does not introduce any user-facing changes._
14
14
  -->
15
15
 
16
+ ## 0.2.2 - 2026-01-11
17
+
18
+ _This version does not introduce any user-facing changes._
19
+
20
+ ### 💡 Others
21
+
22
+ - Export `PdfViewProps`, the props for the main `PdfView` component ([f9be18c](https://github.com/kishannareshpal/expo-pdf/commit/8d5c963) by [@kishannareshpal](https://github.com/kishannareshpal))
23
+
24
+ ### 🐛 Bug fixes
25
+
26
+ - Fix exported `ErrorCode` literal type to match updated error codes from the native ([f9be18c](https://github.com/kishannareshpal/expo-pdf/commit/3a34f39) by [@kishannareshpal](https://github.com/kishannareshpal))
27
+
28
+
29
+ ## 0.2.1 - 2026-01-09
30
+
31
+ _This version does not introduce any user-facing changes._
32
+
33
+ ### 💡 Others
34
+
35
+ - Reduce package size by removing lock files from the package bundle ([f9be18c](https://github.com/kishannareshpal/expo-pdf/commit/f9be18c) by [@kishannareshpal](https://github.com/kishannareshpal))
36
+
16
37
  ## 0.2.0 - 2026-01-09
17
38
 
18
39
  ### 🎉 New features
19
40
 
20
- - Add support for the `autoScale` prop to control scaling on view resize (https://github.com/kishannareshpal/expo-pdf/pull/5 by @kishannareshpal)
41
+ - Add support for the `autoScale` prop to control scaling on view resize ([#5](https://github.com/kishannareshpal/expo-pdf/pull/5) by [@kishannareshpal](https://github.com/kishannareshpal))
21
42
 
22
43
  ### 💡 Others
23
44
 
24
- - Added a new example for bottom sheet to showcase the use of the new `autoScale` prop (https://github.com/kishannareshpal/expo-pdf/pull/6 by @kishannareshpal)
45
+ - Added a new example for bottom sheet to showcase the use of the new `autoScale` prop ([#6](https://github.com/kishannareshpal/expo-pdf/pull/6) by [@kishannareshpal](https://github.com/kishannareshpal))
25
46
 
26
47
  ## 0.1.0 - 2026-01-06
27
48
 
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # `@kishannareshpal/expo-pdf`
2
2
 
3
- ![NPM Version](https://img.shields.io/npm/v/%40kishannareshpal%2Fexpo-pdf?style=flat&logo=npm&label=%40kishannareshpal%2Fexpo-pdf)
4
- ![GitHub Repo stars](https://img.shields.io/github/stars/kishannareshpal/expo-pdf?style=flat)
3
+ [![NPM Version](https://img.shields.io/npm/v/%40kishannareshpal%2Fexpo-pdf?style=flat&logo=npm&label=%40kishannareshpal%2Fexpo-pdf)](https://www.npmjs.com/package/@kishannareshpal/expo-pdf)
4
+ [![GitHub Repo stars](https://img.shields.io/github/stars/kishannareshpal/expo-pdf?style=flat)](https://github.com/kishannareshpal/expo-pdf/stargazers)
5
5
 
6
6
  A cross-platform, high-performance PDF viewer for React Native and Expo, built on top of native PDF rendering engines.
7
7
 
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { default } from './pdf-module';
2
- export { PdfView } from './pdf-view';
2
+ export { PdfView, PdfViewProps } from './pdf-view';
3
3
  export * from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACnD,cAAc,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,SAAS,CAAC","sourcesContent":["// Reexport the native module\nexport { default } from './pdf-module';\nexport { PdfView } from './pdf-view';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;AACnD,cAAc,SAAS,CAAC","sourcesContent":["// Reexport the native module\nexport { default } from './pdf-module';\nexport { PdfView, PdfViewProps } from './pdf-view';\nexport * from './types';\n"]}
package/build/types.d.ts CHANGED
@@ -5,7 +5,7 @@ export type OnPageChangedEventPayload = {
5
5
  pageIndex: number;
6
6
  pageCount: number;
7
7
  };
8
- export type ErrorCode = 'no_url' | 'invalid_url' | 'invalid_document';
8
+ export type ErrorCode = 'invalid_uri' | 'invalid_document' | 'password_required' | 'password_incorrect';
9
9
  export type OnErrorEventPayload = {
10
10
  code: ErrorCode;
11
11
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,yBAAyB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhF,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,kBAAkB,CAAA;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtE,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,yBAAyB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,oBAAoB,CAAA;AAEvG,MAAM,MAAM,mBAAmB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtE,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type OnLoadCompleteEventPayload = { pageCount: number }\n\nexport type OnPageChangedEventPayload = { pageIndex: number, pageCount: number }\n\nexport type ErrorCode = 'no_url' | 'invalid_url' | 'invalid_document'\n\nexport type OnErrorEventPayload = { code: ErrorCode, message: string }\n\nexport type ContentPadding = {\n top?: number;\n right?: number;\n bottom?: number;\n left?: number;\n}\n\nexport type FitMode = 'width' | 'height' | 'both';\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type OnLoadCompleteEventPayload = { pageCount: number }\n\nexport type OnPageChangedEventPayload = { pageIndex: number, pageCount: number }\n\nexport type ErrorCode = 'invalid_uri' | 'invalid_document' | 'password_required' | 'password_incorrect'\n\nexport type OnErrorEventPayload = { code: ErrorCode, message: string }\n\nexport type ContentPadding = {\n top?: number;\n right?: number;\n bottom?: number;\n left?: number;\n}\n\nexport type FitMode = 'width' | 'height' | 'both';\n"]}
package/bunfig.toml ADDED
@@ -0,0 +1,2 @@
1
+ [install.registry]
2
+ url = "https://registry.npmjs.org"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kishannareshpal/expo-pdf",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "author": "Kishan Jadav <kishan_jadav@hotmail.com> (https://github.com/kishannareshpal)",
5
5
  "repository": "https://github.com/kishannareshpal/expo-pdf",
6
6
  "main": "build/index.js",
@@ -43,17 +43,17 @@
43
43
  ]
44
44
  },
45
45
  "scripts": {
46
- "build": "expo-module build",
47
- "clean": "expo-module clean",
48
- "lint": "expo-module lint",
49
- "test": "expo-module test",
50
- "prepublishOnly": "expo-module prepublishOnly",
51
- "expo-module": "expo-module",
46
+ "build": "bun run em build",
47
+ "clean": "bun run em clean",
48
+ "lint": "bun run em lint",
49
+ "test": "bun run em test",
50
+ "prepublishOnly": "bun run em prepublishOnly",
51
+ "em": "bunx expo-module",
52
52
  "open:ios": "xed example/ios",
53
53
  "open:android": "open -a \"Android Studio\" example/android",
54
- "format": "prettier --write .",
55
- "format:check": "prettier --check .",
56
- "prepare": "husky; expo-module prepare"
54
+ "format": "bunx prettier --write .",
55
+ "format:check": "bunx prettier --check .",
56
+ "prepare": "bunx husky; bun run em prepare"
57
57
  },
58
58
  "types": "build/index.d.ts"
59
59
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  // Reexport the native module
2
2
  export { default } from './pdf-module';
3
- export { PdfView } from './pdf-view';
3
+ export { PdfView, PdfViewProps } from './pdf-view';
4
4
  export * from './types';
package/src/types.ts CHANGED
@@ -2,7 +2,7 @@ export type OnLoadCompleteEventPayload = { pageCount: number }
2
2
 
3
3
  export type OnPageChangedEventPayload = { pageIndex: number, pageCount: number }
4
4
 
5
- export type ErrorCode = 'no_url' | 'invalid_url' | 'invalid_document'
5
+ export type ErrorCode = 'invalid_uri' | 'invalid_document' | 'password_required' | 'password_incorrect'
6
6
 
7
7
  export type OnErrorEventPayload = { code: ErrorCode, message: string }
8
8