react-pdf-levelup 3.1.16 → 3.1.17
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/index.cjs +4 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -192,8 +192,12 @@ var LayoutPDF = ({
|
|
|
192
192
|
const transformOrientation = (orientation2) => {
|
|
193
193
|
switch (orientation2) {
|
|
194
194
|
case "vertical":
|
|
195
|
+
case "portrait":
|
|
196
|
+
case "v":
|
|
195
197
|
return "portrait";
|
|
196
198
|
case "horizontal":
|
|
199
|
+
case "landscape":
|
|
200
|
+
case "h":
|
|
197
201
|
return "landscape";
|
|
198
202
|
default:
|
|
199
203
|
console.warn(`Unrecognized orientation: ${orientation2}. Using portrait as default.`);
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { Font, StyleSheet, Text, View } from '@react-pdf/renderer';
|
|
|
4
4
|
interface LayoutPDFProps {
|
|
5
5
|
children: React$1.ReactNode;
|
|
6
6
|
size?: string;
|
|
7
|
-
orientation?: "vertical" | "horizontal";
|
|
7
|
+
orientation?: "vertical" | "horizontal" | "h" | "v" | "portrait" | "landscape";
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
padding?: number;
|
|
10
10
|
margen?: "apa" | "normal" | "estrecho" | "ancho";
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { Font, StyleSheet, Text, View } from '@react-pdf/renderer';
|
|
|
4
4
|
interface LayoutPDFProps {
|
|
5
5
|
children: React$1.ReactNode;
|
|
6
6
|
size?: string;
|
|
7
|
-
orientation?: "vertical" | "horizontal";
|
|
7
|
+
orientation?: "vertical" | "horizontal" | "h" | "v" | "portrait" | "landscape";
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
padding?: number;
|
|
10
10
|
margen?: "apa" | "normal" | "estrecho" | "ancho";
|
package/dist/index.js
CHANGED
|
@@ -105,8 +105,12 @@ var LayoutPDF = ({
|
|
|
105
105
|
const transformOrientation = (orientation2) => {
|
|
106
106
|
switch (orientation2) {
|
|
107
107
|
case "vertical":
|
|
108
|
+
case "portrait":
|
|
109
|
+
case "v":
|
|
108
110
|
return "portrait";
|
|
109
111
|
case "horizontal":
|
|
112
|
+
case "landscape":
|
|
113
|
+
case "h":
|
|
110
114
|
return "landscape";
|
|
111
115
|
default:
|
|
112
116
|
console.warn(`Unrecognized orientation: ${orientation2}. Using portrait as default.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-pdf-levelup",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.17",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@react-pdf/renderer": "^4.3.0",
|
|
24
24
|
"qrcode": "^1.5.4",
|
|
25
|
-
"react": "^
|
|
26
|
-
"react-dom": "^
|
|
25
|
+
"react": "^19",
|
|
26
|
+
"react-dom": "^19"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/standalone": "^7.23.10",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@react-pdf/types": "^2.9.0",
|
|
44
44
|
"@types/jsdom": "^21.1.7",
|
|
45
45
|
"@types/qrcode": "^1.5.5",
|
|
46
|
-
"@types/react": "^
|
|
47
|
-
"@types/react-dom": "^
|
|
46
|
+
"@types/react": "^19",
|
|
47
|
+
"@types/react-dom": "^19",
|
|
48
48
|
"@vitejs/plugin-react": "^4.3.4",
|
|
49
49
|
"eslint": "^9.21.0",
|
|
50
50
|
"eslint-plugin-react-hooks": "^5.1.0",
|