@pdfme/common 3.0.0-beta.2 → 3.0.0-dev.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.
@@ -233,7 +233,7 @@ describe('checkPlugins test', () => {
233
233
  pdf: () => __awaiter(void 0, void 0, void 0, function* () { }),
234
234
  ui: () => __awaiter(void 0, void 0, void 0, function* () { }),
235
235
  propPanel: {
236
- propPanelSchema: {},
236
+ schema: {},
237
237
  defaultValue: '',
238
238
  defaultSchema: { type: 'myText', position: { x: 0, y: 0 }, width: 100, height: 100 },
239
239
  },
@@ -242,7 +242,7 @@ describe('checkPlugins test', () => {
242
242
  pdf: () => __awaiter(void 0, void 0, void 0, function* () { }),
243
243
  ui: () => __awaiter(void 0, void 0, void 0, function* () { }),
244
244
  propPanel: {
245
- propPanelSchema: {},
245
+ schema: {},
246
246
  defaultValue: '',
247
247
  defaultSchema: { type: 'myImage', position: { x: 0, y: 0 }, width: 100, height: 100 },
248
248
  },
@@ -1 +1 @@
1
- {"version":3,"file":"helper.test.js","sourceRoot":"","sources":["../../../__tests__/helper.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkC;AAClC,2CAA6B;AAC7B,0CAA6E;AAC7E,gCAA4E;AAE5E,MAAM,QAAQ,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC,CAAC;AACxF,MAAM,SAAS,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC,CAAC;AAE1F,MAAM,aAAa,GAAG,GAAS,EAAE,CAAC,CAAC;IACjC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,WAAW,GAA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AAE,CAAC,CAAC;YACpC,IAAI,EAAE,CAAC;SACR;QAAC,OAAO,CAAM,EAAE;YACf,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CACvB,yEAAyE,CAC1E,CAAC;SACH;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -101,11 +101,9 @@ exports.checkFont = checkFont;
101
101
  const checkPlugins = (arg) => {
102
102
  const { plugins, template: { schemas }, } = arg;
103
103
  const allSchemaTypes = uniq(schemas.map((s) => Object.values(s).map((v) => v.type)).flat());
104
- // text and image are builtin schema types so they are not included in plugins.
105
- const exceptBuiltinSchemaTypes = allSchemaTypes.filter((t) => t !== 'text' && t !== 'image');
106
- const pluginsSchemaTypes = Object.keys(plugins);
107
- if (exceptBuiltinSchemaTypes.some((s) => !pluginsSchemaTypes.includes(s))) {
108
- throw Error(`[@pdfme/common] ${exceptBuiltinSchemaTypes
104
+ const pluginsSchemaTypes = Object.values(plugins).map((p) => p === null || p === void 0 ? void 0 : p.propPanel.defaultSchema.type);
105
+ if (allSchemaTypes.some((s) => !pluginsSchemaTypes.includes(s))) {
106
+ throw Error(`[@pdfme/common] ${allSchemaTypes
109
107
  .filter((s) => !pluginsSchemaTypes.includes(s))
110
108
  .join()} of template.schemas is not found in plugins.`);
111
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/helper.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAgC;AAEhC,qCAQkB;AAClB,2CAMqB;AAErB,MAAM,IAAI,GAAG,CAAI,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAEzD,MAAM,mBAAmB,GAAG,CAAC,IAAU,EAAE,EAAE;IAChD,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAA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AA2D;AAClF,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,sBAAmB,CAAC,CAAC;AAA9E,QAAA,kBAAkB,sBAA4D;AACpF,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,sBAAmB,CAAC,CAAC;AAA9E,QAAA,kBAAkB,sBAA4D"}
@@ -208,7 +208,7 @@ describe('checkPlugins test', () => {
208
208
  pdf: () => __awaiter(void 0, void 0, void 0, function* () { }),
209
209
  ui: () => __awaiter(void 0, void 0, void 0, function* () { }),
210
210
  propPanel: {
211
- propPanelSchema: {},
211
+ schema: {},
212
212
  defaultValue: '',
213
213
  defaultSchema: { type: 'myText', position: { x: 0, y: 0 }, width: 100, height: 100 },
214
214
  },
@@ -217,7 +217,7 @@ describe('checkPlugins test', () => {
217
217
  pdf: () => __awaiter(void 0, void 0, void 0, function* () { }),
218
218
  ui: () => __awaiter(void 0, void 0, void 0, function* () { }),
219
219
  propPanel: {
220
- propPanelSchema: {},
220
+ schema: {},
221
221
  defaultValue: '',
222
222
  defaultSchema: { type: 'myImage', position: { x: 0, y: 0 }, width: 100, height: 100 },
223
223
  },
@@ -1 +1 @@
1
- {"version":3,"file":"helper.test.js","sourceRoot":"","sources":["../../../__tests__/helper.test.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,SAAS,EAA2B,MAAM,QAAQ,CAAC;AAE5E,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC,CAAC;AACxF,MAAM,SA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AO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC;YACrC,YAAY,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;YACpC,IAAI,EAAE,CAAC;SACR;QAAC,OAAO,CAAM,EAAE;YACf,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CACvB,yEAAyE,CAC1E,CAAC;SACH;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -90,11 +90,9 @@ Check this document: https://pdfme.com/docs/custom-fonts`);
90
90
  export const checkPlugins = (arg) => {
91
91
  const { plugins, template: { schemas }, } = arg;
92
92
  const allSchemaTypes = uniq(schemas.map((s) => Object.values(s).map((v) => v.type)).flat());
93
- // text and image are builtin schema types so they are not included in plugins.
94
- const exceptBuiltinSchemaTypes = allSchemaTypes.filter((t) => t !== 'text' && t !== 'image');
95
- const pluginsSchemaTypes = Object.keys(plugins);
96
- if (exceptBuiltinSchemaTypes.some((s) => !pluginsSchemaTypes.includes(s))) {
97
- throw Error(`[@pdfme/common] ${exceptBuiltinSchemaTypes
93
+ const pluginsSchemaTypes = Object.values(plugins).map((p) => p === null || p === void 0 ? void 0 : p.propPanel.defaultSchema.type);
94
+ if (allSchemaTypes.some((s) => !pluginsSchemaTypes.includes(s))) {
95
+ throw Error(`[@pdfme/common] ${allSchemaTypes
98
96
  .filter((s) => !pluginsSchemaTypes.includes(s))
99
97
  .join()} of template.schemas is not found in plugins.`);
100
98
  }
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,MAAM,IAAI,YAAY,EACtB,SAAS,IAAI,eAAe,EAC5B,QAAQ,IAAI,cAAc,EAC1B,YAAY,IAAI,kBAAkB,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AC,MAAM,aAAa,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AACjF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;AACzF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC"}
@@ -66,13 +66,13 @@ export type PropPanelWidgetProps = _PropPanelWidgetProps & PropPanelProps;
66
66
  /**
67
67
  * Used for customizing the property panel.
68
68
  * @template T - Type of the extended Schema object.
69
- * @property {Record<string, PropPanelSchema> | ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>)} propPanelSchema - A function returning a form-render schema object or the schema object itself. When a function, it takes properties passed from the designer as arguments.
69
+ * @property {Record<string, PropPanelSchema> | ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>)} schema - A function returning a form-render schema object or the schema object itself. When a function, it takes properties passed from the designer as arguments.
70
70
  * @property {Record<string, (props: PropPanelWidgetProps) => void>} [widgets] - An object of functions returning form-render widgets. The functions take, as arguments, both form-render's WidgetProps and properties passed from the designer.
71
71
  * @property {string} defaultValue - The default input value set when adding the schema.
72
72
  * @property {T} defaultSchema - The default schema set when adding the schema.
73
73
  */
74
74
  export interface PropPanel<T extends Schema> {
75
- propPanelSchema: ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>) | Record<string, PropPanelSchema>;
75
+ schema: ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>) | Record<string, PropPanelSchema>;
76
76
  widgets?: Record<string, (props: PropPanelWidgetProps) => void>;
77
77
  defaultValue: string;
78
78
  defaultSchema: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/common",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-dev.2",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/helper.ts CHANGED
@@ -142,14 +142,11 @@ export const checkPlugins = (arg: { plugins: Plugins; template: Template }) => {
142
142
  } = arg;
143
143
  const allSchemaTypes = uniq(schemas.map((s) => Object.values(s).map((v) => v.type)).flat());
144
144
 
145
- // text and image are builtin schema types so they are not included in plugins.
146
- const exceptBuiltinSchemaTypes = allSchemaTypes.filter((t) => t !== 'text' && t !== 'image');
145
+ const pluginsSchemaTypes = Object.values(plugins).map((p) => p?.propPanel.defaultSchema.type);
147
146
 
148
- const pluginsSchemaTypes = Object.keys(plugins);
149
-
150
- if (exceptBuiltinSchemaTypes.some((s) => !pluginsSchemaTypes.includes(s))) {
147
+ if (allSchemaTypes.some((s) => !pluginsSchemaTypes.includes(s))) {
151
148
  throw Error(
152
- `[@pdfme/common] ${exceptBuiltinSchemaTypes
149
+ `[@pdfme/common] ${allSchemaTypes
153
150
  .filter((s) => !pluginsSchemaTypes.includes(s))
154
151
  .join()} of template.schemas is not found in plugins.`
155
152
  );
package/src/types.ts CHANGED
@@ -69,13 +69,13 @@ export type PropPanelWidgetProps = _PropPanelWidgetProps & PropPanelProps;
69
69
  /**
70
70
  * Used for customizing the property panel.
71
71
  * @template T - Type of the extended Schema object.
72
- * @property {Record<string, PropPanelSchema> | ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>)} propPanelSchema - A function returning a form-render schema object or the schema object itself. When a function, it takes properties passed from the designer as arguments.
72
+ * @property {Record<string, PropPanelSchema> | ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>)} schema - A function returning a form-render schema object or the schema object itself. When a function, it takes properties passed from the designer as arguments.
73
73
  * @property {Record<string, (props: PropPanelWidgetProps) => void>} [widgets] - An object of functions returning form-render widgets. The functions take, as arguments, both form-render's WidgetProps and properties passed from the designer.
74
74
  * @property {string} defaultValue - The default input value set when adding the schema.
75
75
  * @property {T} defaultSchema - The default schema set when adding the schema.
76
76
  */
77
77
  export interface PropPanel<T extends Schema> {
78
- propPanelSchema:
78
+ schema:
79
79
  | ((propPanelProps: Omit<PropPanelProps, 'rootElement'>) => Record<string, PropPanelSchema>)
80
80
  | Record<string, PropPanelSchema>;
81
81