@pdfme/common 1.0.18 → 1.1.0
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/cjs/__tests__/helper.test.js +411 -0
- package/dist/cjs/__tests__/helper.test.js.map +1 -0
- package/dist/cjs/src/constants.js +11 -0
- package/dist/cjs/src/constants.js.map +1 -0
- package/dist/cjs/src/helper.js +206 -0
- package/dist/cjs/src/helper.js.map +1 -0
- package/dist/cjs/src/index.js +30 -0
- package/dist/cjs/src/index.js.map +1 -0
- package/dist/cjs/src/schema.js +91 -0
- package/dist/cjs/src/schema.js.map +1 -0
- package/dist/cjs/src/type.js +12 -0
- package/dist/cjs/src/type.js.map +1 -0
- package/dist/esm/__tests__/helper.test.js +386 -0
- package/dist/esm/__tests__/helper.test.js.map +1 -0
- package/dist/esm/src/constants.js +8 -0
- package/dist/esm/src/constants.js.map +1 -0
- package/dist/esm/src/helper.js +190 -0
- package/dist/esm/src/helper.js.map +1 -0
- package/dist/esm/src/index.js +5 -0
- package/dist/esm/src/index.js.map +1 -0
- package/dist/esm/src/schema.js +88 -0
- package/dist/esm/src/schema.js.map +1 -0
- package/dist/esm/src/type.js +6 -0
- package/dist/esm/src/type.js.map +1 -0
- package/dist/types/__tests__/helper.test.d.ts +1 -0
- package/dist/types/src/constants.d.ts +7 -0
- package/dist/types/{helper.d.ts → src/helper.d.ts} +1 -1
- package/dist/types/{index.d.ts → src/index.d.ts} +4 -4
- package/dist/types/{schema.d.ts → src/schema.d.ts} +721 -721
- package/dist/types/{type.d.ts → src/type.d.ts} +11 -11
- package/package.json +17 -10
- package/src/constants.ts +3 -0
- package/src/helper.ts +4 -4
- package/src/index.ts +4 -4
- package/src/type.ts +1 -1
- package/tsconfig.cjs.json +9 -0
- package/tsconfig.esm.json +9 -0
- package/declaration.d.ts +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.LICENSE.txt +0 -6
- package/dist/index.js.map +0 -1
- package/dist/types/constants.d.ts +0 -6
- package/src/assets/Helvetica.ttf +0 -0
- package/tsconfig.json +0 -21
- package/webpack.config.js +0 -54
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Template, BasePdf, Font, BarCodeType } from './type';
|
1
|
+
import { Template, BasePdf, Font, BarCodeType } from './type.js';
|
2
2
|
export declare const getB64BasePdf: (basePdf: BasePdf) => string | Promise<string>;
|
3
3
|
export declare const b64toUint8Array: (base64: string) => Uint8Array;
|
4
4
|
export declare const getFallbackFontName: (font: Font) => string;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, BLANK_PDF } from './constants';
|
2
|
-
import { schemaTypes, isImageSchema, isBarcodeSchema, isTextSchema } from './type';
|
3
|
-
import type { Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, PreviewReactProps, DesignerProps, DesignerReactProps } from './type';
|
4
|
-
import { getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, checkFont, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput } from './helper';
|
1
|
+
import { DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, BLANK_PDF } from './constants.js';
|
2
|
+
import { schemaTypes, isImageSchema, isBarcodeSchema, isTextSchema } from './type.js';
|
3
|
+
import type { Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, PreviewReactProps, DesignerProps, DesignerReactProps } from './type.js';
|
4
|
+
import { getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, checkFont, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput } from './helper.js';
|
5
5
|
export { DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, BLANK_PDF, schemaTypes, isTextSchema, isImageSchema, isBarcodeSchema, getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, checkFont, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput, };
|
6
6
|
export type { Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, PreviewReactProps, DesignerProps, DesignerReactProps, };
|