@pdfme/common 5.4.1 → 5.4.2

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PDFME_VERSION = void 0;
4
- exports.PDFME_VERSION = '5.4.1';
4
+ exports.PDFME_VERSION = '5.4.2';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const PDFME_VERSION = '5.4.1';
1
+ export const PDFME_VERSION = '5.4.2';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PDFME_VERSION = void 0;
4
- exports.PDFME_VERSION = '5.4.1';
4
+ exports.PDFME_VERSION = '5.4.2';
5
5
  //# sourceMappingURL=version.js.map
@@ -48,6 +48,7 @@ export interface PDFRenderProps<T extends Schema> {
48
48
  * @property {UIOptions} options - Options object passed from the Viewer, Form, or Designer.
49
49
  * @property {ThemeConfig} theme - An object that merges the 'theme' passed as an options with the default theme.
50
50
  * @property {(key: keyof Dict | string) => string} i18n - An object merged based on the options 'lang' and 'labels'.
51
+ * @property {number} scale - The scale of the UI.
51
52
  * @property {Map<string | number, unknown>} _cache - Cache shared only during the execution of the render function (useful for caching images, etc. if needed).
52
53
  */
53
54
  export type UIRenderProps<T extends Schema> = {
@@ -69,6 +70,7 @@ export type UIRenderProps<T extends Schema> = {
69
70
  options: UIOptions;
70
71
  theme: GlobalToken;
71
72
  i18n: (key: string) => string;
73
+ scale: number;
72
74
  _cache: Map<string | number, unknown>;
73
75
  };
74
76
  /**
@@ -1 +1 @@
1
- export declare const PDFME_VERSION = "5.4.1";
1
+ export declare const PDFME_VERSION = "5.4.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/common",
3
- "version": "5.4.1",
3
+ "version": "5.4.2",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/types.ts CHANGED
@@ -74,6 +74,7 @@ export interface PDFRenderProps<T extends Schema> {
74
74
  * @property {UIOptions} options - Options object passed from the Viewer, Form, or Designer.
75
75
  * @property {ThemeConfig} theme - An object that merges the 'theme' passed as an options with the default theme.
76
76
  * @property {(key: keyof Dict | string) => string} i18n - An object merged based on the options 'lang' and 'labels'.
77
+ * @property {number} scale - The scale of the UI.
77
78
  * @property {Map<string | number, unknown>} _cache - Cache shared only during the execution of the render function (useful for caching images, etc. if needed).
78
79
  */
79
80
  export type UIRenderProps<T extends Schema> = {
@@ -89,6 +90,7 @@ export type UIRenderProps<T extends Schema> = {
89
90
  options: UIOptions;
90
91
  theme: GlobalToken;
91
92
  i18n: (key: string) => string;
93
+ scale: number;
92
94
  _cache: Map<string | number, unknown>;
93
95
  };
94
96
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const PDFME_VERSION = '5.4.1';
1
+ export const PDFME_VERSION = '5.4.2';