@pdfme/common 5.2.16-dev.2 → 5.3.0-beta.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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_FONT_VALUE = exports.DEFAULT_FONT_NAME = exports.BLANK_PDF = exports.ZOOM = exports.MM_TO_PT_RATIO = exports.PT_TO_MM_RATIO = exports.PT_TO_PX_RATIO = exports.PDFME_VERSION = void 0;
4
4
  // This value is auto-replaced with the latest Git tag during the build, including npm releases, so no manual updates are needed.
5
- exports.PDFME_VERSION = '5.2.16';
5
+ exports.PDFME_VERSION = '5.3.0-beta.0';
6
6
  exports.PT_TO_PX_RATIO = 1.333;
7
7
  exports.PT_TO_MM_RATIO = 0.3528;
8
8
  exports.MM_TO_PT_RATIO = 2.8346; // https://www.ddc.co.jp/words/archives/20090701114500.html
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":";;;AAAA,iIAAiI;AACpH,QAAA,aAAa,GAAG,QAAQ,CAAC;AACzB,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AACpF,QAAA,IAAI,GAAG,YAAY,CAAC;AAEjC,6BAA6B;AAC7B,uCAAuC;AACvC,gBAAgB;AAChB,iBAAiB;AACjB,+BAA+B;AAC/B,KAAK;AAEQ,QAAA,SAAS,GACpB,8kCAA8kC,CAAC;AACpkC,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":";;;AAAA,iIAAiI;AACpH,QAAA,aAAa,GAAG,cAAc,CAAC;AAC/B,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AACpF,QAAA,IAAI,GAAG,YAAY,CAAC;AAEjC,6BAA6B;AAC7B,uCAAuC;AACvC,gBAAgB;AAChB,iBAAiB;AACjB,+BAA+B;AAC/B,KAAK;AAEQ,QAAA,SAAS,GACpB,8kCAA8kC,CAAC;AACpkC,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // This value is auto-replaced with the latest Git tag during the build, including npm releases, so no manual updates are needed.
2
- export const PDFME_VERSION = '5.2.16';
2
+ export const PDFME_VERSION = '5.3.0-beta.0';
3
3
  export const PT_TO_PX_RATIO = 1.333;
4
4
  export const PT_TO_MM_RATIO = 0.3528;
5
5
  export const MM_TO_PT_RATIO = 2.8346; // https://www.ddc.co.jp/words/archives/20090701114500.html
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AACpC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AACjG,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC;AAEjC,6BAA6B;AAC7B,uCAAuC;AACvC,gBAAgB;AAChB,iBAAiB;AACjB,+BAA+B;AAC/B,KAAK;AAEL,MAAM,CAAC,MAAM,SAAS,GACpB,8kCAA8kC,CAAC;AACjlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AACpC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AACjG,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAC;AAEjC,6BAA6B;AAC7B,uCAAuC;AACvC,gBAAgB;AAChB,iBAAiB;AACjB,+BAA+B;AAC/B,KAAK;AAEL,MAAM,CAAC,MAAM,SAAS,GACpB,8kCAA8kC,CAAC;AACjlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const PDFME_VERSION = "5.2.16";
1
+ export declare const PDFME_VERSION = "5.3.0-beta.0";
2
2
  export declare const PT_TO_PX_RATIO = 1.333;
3
3
  export declare const PT_TO_MM_RATIO = 0.3528;
4
4
  export declare const MM_TO_PT_RATIO = 2.8346;
@@ -44,14 +44,12 @@ export interface PDFRenderProps<T extends Schema> {
44
44
  * @property {number} [tabIndex] - Tab index for Form.
45
45
  * @property {string} [placeholder] - Placeholder text for Form.
46
46
  * @property {() => void} [stopEditing] - Stops editing mode, can be used when the mode is 'designer'.
47
- * @property {string} key - The key of the schema object.
48
47
  * @property {string} value - The string used for UI rendering.
49
48
  * @property {(arg: { key: string; value: any } | { key: string; value: any }[]) => void} [onChange] - Used to change the value and schema properties. Only applicable when the mode is 'form' or 'designer'.
50
49
  * @property {HTMLDivElement} rootElement - The root HTMLDivElement for the UI.
51
50
  * @property {UIOptions} options - Options object passed from the Viewer, Form, or Designer.
52
51
  * @property {ThemeConfig} theme - An object that merges the 'theme' passed as an options with the default theme.
53
52
  * @property {(key: keyof Dict | string) => string} i18n - An object merged based on the options 'lang' and 'labels'.
54
- * @property {Size} pageSize - The size of the page being edited.
55
53
  * @property {Map<any, any>} _cache - Cache shared only during the execution of the render function (useful for caching images, etc. if needed).
56
54
  */
57
55
  export type UIRenderProps<T extends Schema> = {
@@ -73,7 +71,6 @@ export type UIRenderProps<T extends Schema> = {
73
71
  options: UIOptions;
74
72
  theme: GlobalToken;
75
73
  i18n: (key: keyof Dict | string) => string;
76
- pdfJs: typeof import('pdfjs-dist');
77
74
  _cache: Map<any, any>;
78
75
  };
79
76
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/common",
3
- "version": "5.2.16-dev.2",
3
+ "version": "5.3.0-beta.0",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/constants.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // This value is auto-replaced with the latest Git tag during the build, including npm releases, so no manual updates are needed.
2
- export const PDFME_VERSION = '5.2.16';
2
+ export const PDFME_VERSION = '5.3.0-beta.0';
3
3
  export const PT_TO_PX_RATIO = 1.333;
4
4
  export const PT_TO_MM_RATIO = 0.3528;
5
5
  export const MM_TO_PT_RATIO = 2.8346; // https://www.ddc.co.jp/words/archives/20090701114500.html
package/src/types.ts CHANGED
@@ -69,14 +69,12 @@ export interface PDFRenderProps<T extends Schema> {
69
69
  * @property {number} [tabIndex] - Tab index for Form.
70
70
  * @property {string} [placeholder] - Placeholder text for Form.
71
71
  * @property {() => void} [stopEditing] - Stops editing mode, can be used when the mode is 'designer'.
72
- * @property {string} key - The key of the schema object.
73
72
  * @property {string} value - The string used for UI rendering.
74
73
  * @property {(arg: { key: string; value: any } | { key: string; value: any }[]) => void} [onChange] - Used to change the value and schema properties. Only applicable when the mode is 'form' or 'designer'.
75
74
  * @property {HTMLDivElement} rootElement - The root HTMLDivElement for the UI.
76
75
  * @property {UIOptions} options - Options object passed from the Viewer, Form, or Designer.
77
76
  * @property {ThemeConfig} theme - An object that merges the 'theme' passed as an options with the default theme.
78
77
  * @property {(key: keyof Dict | string) => string} i18n - An object merged based on the options 'lang' and 'labels'.
79
- * @property {Size} pageSize - The size of the page being edited.
80
78
  * @property {Map<any, any>} _cache - Cache shared only during the execution of the render function (useful for caching images, etc. if needed).
81
79
  */
82
80
  export type UIRenderProps<T extends Schema> = {
@@ -92,7 +90,6 @@ export type UIRenderProps<T extends Schema> = {
92
90
  options: UIOptions;
93
91
  theme: GlobalToken;
94
92
  i18n: (key: keyof Dict | string) => string;
95
- pdfJs: typeof import('pdfjs-dist');
96
93
  _cache: Map<any, any>;
97
94
  };
98
95