@kishannareshpal/expo-pdf 0.2.1 → 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 +16 -3
- package/README.md +2 -2
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/build/types.d.ts +1 -1
- package/build/types.d.ts.map +1 -1
- package/build/types.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/types.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,23 +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
|
+
|
|
16
29
|
## 0.2.1 - 2026-01-09
|
|
17
30
|
|
|
18
31
|
_This version does not introduce any user-facing changes._
|
|
19
32
|
|
|
20
33
|
### 💡 Others
|
|
21
34
|
|
|
22
|
-
- Reduce package size by removing lock files from the package bundle (https://github.com/kishannareshpal/expo-pdf/commit/f9be18c by @kishannareshpal)
|
|
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))
|
|
23
36
|
|
|
24
37
|
## 0.2.0 - 2026-01-09
|
|
25
38
|
|
|
26
39
|
### 🎉 New features
|
|
27
40
|
|
|
28
|
-
- 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))
|
|
29
42
|
|
|
30
43
|
### 💡 Others
|
|
31
44
|
|
|
32
|
-
- 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))
|
|
33
46
|
|
|
34
47
|
## 0.1.0 - 2026-01-06
|
|
35
48
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# `@kishannareshpal/expo-pdf`
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-

|
|
3
|
+
[](https://www.npmjs.com/package/@kishannareshpal/expo-pdf)
|
|
4
|
+
[](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
package/build/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/build/index.js.map
CHANGED
|
@@ -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,
|
|
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 = '
|
|
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;
|
package/build/types.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/build/types.js.map
CHANGED
|
@@ -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 = '
|
|
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/package.json
CHANGED
package/src/index.ts
CHANGED
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 = '
|
|
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
|
|