@pdfme/ui 1.0.0-beta.2 → 1.0.0-beta.3
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.js +3 -0
- package/dist/{@pdfme/ui.js.LICENSE.txt → index.js.LICENSE.txt} +1 -1
- package/dist/index.js.map +1 -0
- package/dist/types/common/src/schema.d.ts +370 -370
- package/dist/types/common/src/type.d.ts +6 -6
- package/dist/types/ui/src/components/Designer/Sidebar/index.d.ts +0 -1
- package/dist/types/ui/src/components/Preview/Pager/Page.d.ts +0 -1
- package/dist/types/ui/src/components/Preview/Pager/Unit.d.ts +0 -1
- package/package.json +3 -3
- package/src/helper.ts +1 -1
- package/webpack.config.js +1 -2
- package/dist/@pdfme/ui.js +0 -3
- package/dist/@pdfme/ui.js.map +0 -1
- package/dist/types/common/src/barcode.d.ts +0 -2
- package/dist/types/common/src/utils.d.ts +0 -12
- package/dist/types/ui/src/libs/class.d.ts +0 -84
- package/dist/types/ui/src/libs/contexts.d.ts +0 -7
- package/dist/types/ui/src/libs/helper.d.ts +0 -64
- package/dist/types/ui/src/libs/hooks.d.ts +0 -26
- package/dist/types/ui/src/libs/i18n.d.ts +0 -30
- package/dist/types/ui/src/libs/ui.d.ts +0 -64
@@ -18,34 +18,34 @@ export declare const isTextSchema: (arg: CommonSchema) => arg is {
|
|
18
18
|
characterSpacing?: number | undefined;
|
19
19
|
lineHeight?: number | undefined;
|
20
20
|
type: "text";
|
21
|
-
height: number;
|
22
|
-
width: number;
|
23
21
|
position: {
|
24
22
|
x: number;
|
25
23
|
y: number;
|
26
24
|
};
|
25
|
+
width: number;
|
26
|
+
height: number;
|
27
27
|
};
|
28
28
|
export declare type ImageSchema = z.infer<typeof ImageSchema>;
|
29
29
|
export declare const isImageSchema: (arg: CommonSchema) => arg is {
|
30
30
|
rotate?: number | undefined;
|
31
31
|
type: "image";
|
32
|
-
height: number;
|
33
|
-
width: number;
|
34
32
|
position: {
|
35
33
|
x: number;
|
36
34
|
y: number;
|
37
35
|
};
|
36
|
+
width: number;
|
37
|
+
height: number;
|
38
38
|
};
|
39
39
|
export declare type BarcodeSchema = z.infer<typeof BarcodeSchema>;
|
40
40
|
export declare const isBarcodeSchema: (arg: CommonSchema) => arg is {
|
41
41
|
rotate?: number | undefined;
|
42
42
|
type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
|
43
|
-
height: number;
|
44
|
-
width: number;
|
45
43
|
position: {
|
46
44
|
x: number;
|
47
45
|
y: number;
|
48
46
|
};
|
47
|
+
width: number;
|
48
|
+
height: number;
|
49
49
|
};
|
50
50
|
export declare type Schema = z.infer<typeof Schema>;
|
51
51
|
export declare type SchemaForUI = z.infer<typeof SchemaForUI>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pdfme/ui",
|
3
|
-
"version": "1.0.0-beta.
|
3
|
+
"version": "1.0.0-beta.3",
|
4
4
|
"author": "hand-dot",
|
5
5
|
"license": "MIT",
|
6
6
|
"description": "TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"bugs": {
|
10
10
|
"url": "https://github.com/pdfme/pdfme/issues"
|
11
11
|
},
|
12
|
-
"main": "dist
|
12
|
+
"main": "dist/index.js",
|
13
13
|
"module": "src/index.ts",
|
14
14
|
"types": "dist/types/index.d.ts",
|
15
15
|
"engines": {
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"prune": "ts-prune src"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@pdfme/common": "^1.0.0-beta
|
29
|
+
"@pdfme/common": "^1.0.0-beta",
|
30
30
|
"@scena/react-guides": "^0.16.0",
|
31
31
|
"hotkeys-js": "^3.8.7",
|
32
32
|
"pdfjs-dist": "^2.12.313",
|
package/src/helper.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// @ts-ignore
|
2
2
|
import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.entry';
|
3
|
-
import { getDocument, GlobalWorkerOptions } from 'pdfjs-dist';
|
3
|
+
import { getDocument, GlobalWorkerOptions } from 'pdfjs-dist/legacy/build/pdf.js';
|
4
4
|
GlobalWorkerOptions.workerSrc = PDFJSWorker;
|
5
5
|
import hotkeys from 'hotkeys-js';
|
6
6
|
import {
|
package/webpack.config.js
CHANGED