@pdfme/ui 6.1.13-dev.26 → 6.1.13-dev.31
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/class.d.ts +2 -2
- package/dist/contexts.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/class.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare abstract class BaseUIClass {
|
|
|
14
14
|
constructor(props: UIProps);
|
|
15
15
|
protected getLang(): "ar" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pl" | "th" | "tr" | "zh" | "zh-TW";
|
|
16
16
|
protected getFont(): Record<string, {
|
|
17
|
-
data: string | ArrayBuffer |
|
|
17
|
+
data: string | ArrayBuffer | import("@pdfme/common").PdfBytes;
|
|
18
18
|
fallback?: boolean | undefined;
|
|
19
19
|
subset?: boolean | undefined;
|
|
20
20
|
}>;
|
|
@@ -44,7 +44,7 @@ export declare abstract class BaseUIClass {
|
|
|
44
44
|
} | undefined;
|
|
45
45
|
__isSplit?: boolean | undefined;
|
|
46
46
|
}[][];
|
|
47
|
-
basePdf: string | ArrayBuffer |
|
|
47
|
+
basePdf: string | ArrayBuffer | import("@pdfme/common").PdfBytes | {
|
|
48
48
|
width: number;
|
|
49
49
|
height: number;
|
|
50
50
|
padding: [number, number, number, number];
|
package/dist/contexts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { i18n } from './i18n.js';
|
|
|
2
2
|
import { PluginRegistry, UIOptions } from '@pdfme/common';
|
|
3
3
|
export declare const I18nContext: import("react").Context<typeof i18n>;
|
|
4
4
|
export declare const FontContext: import("react").Context<Record<string, {
|
|
5
|
-
data: string | ArrayBuffer |
|
|
5
|
+
data: string | ArrayBuffer | import("@pdfme/common").PdfBytes;
|
|
6
6
|
fallback?: boolean | undefined;
|
|
7
7
|
subset?: boolean | undefined;
|
|
8
8
|
}>>;
|
package/dist/index.js
CHANGED
|
@@ -87983,7 +87983,7 @@ var BaseUIClass = class {
|
|
|
87983
87983
|
const { domContainer, template, options = {}, plugins = {} } = props;
|
|
87984
87984
|
this.domContainer = domContainer;
|
|
87985
87985
|
this.template = cloneDeep$1(template);
|
|
87986
|
-
this.options = options;
|
|
87986
|
+
this.options = Object.assign({}, options);
|
|
87987
87987
|
const container = this.domContainer;
|
|
87988
87988
|
this.size = measureUiContainerSize(container, {
|
|
87989
87989
|
height: window.innerHeight,
|
|
@@ -88022,7 +88022,7 @@ var BaseUIClass = class {
|
|
|
88022
88022
|
const { lang, font } = options || {};
|
|
88023
88023
|
if (lang) this.lang = lang;
|
|
88024
88024
|
if (font) this.font = font;
|
|
88025
|
-
this.options = Object.assign(this.options, options);
|
|
88025
|
+
this.options = Object.assign({}, this.options, options);
|
|
88026
88026
|
this.render();
|
|
88027
88027
|
}
|
|
88028
88028
|
destroy() {
|