@pdfme/generator 1.0.0-beta.2 → 1.0.0-beta.7
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/generator.js.LICENSE.txt → index.js.LICENSE.txt} +3 -1
- package/dist/index.js.map +1 -0
- package/dist/types/{generator/src/constants.d.ts → constants.d.ts} +0 -0
- package/dist/types/{generator/src/generate.d.ts → generate.d.ts} +1 -1
- package/dist/types/{generator/src/helper.d.ts → helper.d.ts} +0 -1
- package/dist/types/index.d.ts +4 -0
- package/package.json +10 -7
- package/src/generate.ts +2 -9
- package/src/index.ts +5 -39
- package/tsconfig.json +1 -0
- package/webpack.config.js +1 -2
- package/dist/@pdfme/generator.js +0 -3
- package/dist/@pdfme/generator.js.map +0 -1
- package/dist/types/common/src/barcode.d.ts +0 -2
- package/dist/types/common/src/constants.d.ts +0 -6
- package/dist/types/common/src/helper.d.ts +0 -15
- package/dist/types/common/src/index.d.ts +0 -4
- package/dist/types/common/src/schema.d.ts +0 -3613
- package/dist/types/common/src/type.d.ts +0 -64
- package/dist/types/common/src/utils.d.ts +0 -12
- package/dist/types/generator/src/generator.d.ts +0 -67
- package/dist/types/generator/src/index.d.ts +0 -3
File without changes
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import generate from './generate';
|
2
|
+
export { generate };
|
3
|
+
export type { Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, DesignerProps, } from '@pdfme/common';
|
4
|
+
export { BLANK_PDF, isTextSchema, isImageSchema, isBarcodeSchema, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput, } from '@pdfme/common';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pdfme/generator",
|
3
|
-
"version": "1.0.0-beta.
|
3
|
+
"version": "1.0.0-beta.7",
|
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,8 +9,8 @@
|
|
9
9
|
"bugs": {
|
10
10
|
"url": "https://github.com/pdfme/pdfme/issues"
|
11
11
|
},
|
12
|
-
"main": "dist
|
13
|
-
"module": "
|
12
|
+
"main": "dist/index.js",
|
13
|
+
"module": "dist/index.js",
|
14
14
|
"types": "dist/types/index.d.ts",
|
15
15
|
"engines": {
|
16
16
|
"node": ">=14"
|
@@ -26,10 +26,10 @@
|
|
26
26
|
"prune": "ts-prune src"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@pdfme/common": "^1.0.0-beta.1",
|
30
29
|
"@pdf-lib/fontkit": "^1.1.1",
|
31
|
-
"
|
32
|
-
"bwip-js": "^3.0.4"
|
30
|
+
"@pdfme/common": "^1.0.0-beta.7",
|
31
|
+
"bwip-js": "^3.0.4",
|
32
|
+
"pdf-lib": "^1.17.1"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
35
|
"@types/bwip-js": "^3.0.0",
|
@@ -57,5 +57,8 @@
|
|
57
57
|
"testMatch": [
|
58
58
|
"**/*.test.ts"
|
59
59
|
]
|
60
|
+
},
|
61
|
+
"publishConfig": {
|
62
|
+
"access": "public"
|
60
63
|
}
|
61
|
-
}
|
64
|
+
}
|
package/src/generate.ts
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
import { PDFDocument } from 'pdf-lib';
|
2
2
|
import fontkit from '@pdf-lib/fontkit';
|
3
|
-
import {
|
4
|
-
|
5
|
-
Template,
|
6
|
-
Font,
|
7
|
-
getDefaultFont,
|
8
|
-
getFallbackFontName,
|
9
|
-
checkGenerateProps,
|
10
|
-
} from '@pdfme/common';
|
11
|
-
|
3
|
+
import type { GenerateProps, Template, Font } from '@pdfme/common';
|
4
|
+
import { getDefaultFont, getFallbackFontName, checkGenerateProps } from '@pdfme/common';
|
12
5
|
import {
|
13
6
|
getEmbeddedPagesAndEmbedPdfBoxes,
|
14
7
|
drawInputByTemplateSchema,
|
package/src/index.ts
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
import generate from './generate';
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
export { generate };
|
4
|
+
|
5
|
+
export type {
|
4
6
|
Lang,
|
5
7
|
Size,
|
6
8
|
Alignment,
|
7
9
|
SchemaType,
|
8
|
-
schemaTypes,
|
9
10
|
BarCodeType,
|
10
11
|
TextSchema,
|
11
|
-
isTextSchema,
|
12
12
|
ImageSchema,
|
13
|
-
isImageSchema,
|
14
13
|
BarcodeSchema,
|
15
|
-
isBarcodeSchema,
|
16
14
|
Schema,
|
17
15
|
SchemaForUI,
|
18
16
|
Font,
|
@@ -24,50 +22,18 @@ import {
|
|
24
22
|
UIOptions,
|
25
23
|
UIProps,
|
26
24
|
PreviewProps,
|
27
|
-
PreviewReactProps,
|
28
25
|
DesignerProps,
|
29
|
-
DesignerReactProps,
|
30
|
-
checkTemplate,
|
31
|
-
checkUIProps,
|
32
|
-
checkPreviewProps,
|
33
|
-
checkDesignerProps,
|
34
|
-
checkGenerateProps,
|
35
|
-
validateBarcodeInput,
|
36
26
|
} from '@pdfme/common';
|
37
27
|
|
38
28
|
export {
|
39
|
-
generate,
|
40
29
|
BLANK_PDF,
|
41
|
-
Lang,
|
42
|
-
Size,
|
43
|
-
Alignment,
|
44
|
-
SchemaType,
|
45
|
-
schemaTypes,
|
46
|
-
BarCodeType,
|
47
|
-
TextSchema,
|
48
30
|
isTextSchema,
|
49
|
-
ImageSchema,
|
50
31
|
isImageSchema,
|
51
|
-
BarcodeSchema,
|
52
32
|
isBarcodeSchema,
|
53
|
-
Schema,
|
54
|
-
SchemaForUI,
|
55
|
-
Font,
|
56
|
-
BasePdf,
|
57
|
-
Template,
|
58
|
-
CommonProps,
|
59
|
-
GeneratorOptions,
|
60
|
-
GenerateProps,
|
61
|
-
UIOptions,
|
62
|
-
UIProps,
|
63
|
-
PreviewProps,
|
64
|
-
PreviewReactProps,
|
65
|
-
DesignerProps,
|
66
|
-
DesignerReactProps,
|
67
33
|
checkTemplate,
|
68
34
|
checkUIProps,
|
69
35
|
checkPreviewProps,
|
70
36
|
checkDesignerProps,
|
71
37
|
checkGenerateProps,
|
72
38
|
validateBarcodeInput,
|
73
|
-
};
|
39
|
+
} from '@pdfme/common';
|
package/tsconfig.json
CHANGED
package/webpack.config.js
CHANGED