@lowdefy/actions-pdf-make 4.5.1 → 4.6.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import pdfMake from 'pdfmake';
16
- import vfs from '../fonts/vfs_fonts.js';
16
+ import vfs from '../../fonts/vfs_fonts.js';
17
17
  async function PdfMake({ params }) {
18
18
  const { docDefinition, tableLayouts, filename, fonts } = params;
19
19
  await pdfMake.createPdf(docDefinition, tableLayouts, fonts, vfs).download(filename);
@@ -0,0 +1,29 @@
1
+ export default {
2
+ type: 'object',
3
+ params: {
4
+ type: 'object',
5
+ required: [
6
+ 'docDefinition',
7
+ 'filename'
8
+ ],
9
+ properties: {
10
+ docDefinition: {
11
+ type: 'object',
12
+ description: 'The pdfMake document definition object.'
13
+ },
14
+ tableLayouts: {
15
+ type: 'object',
16
+ description: 'Custom table layout definitions.'
17
+ },
18
+ filename: {
19
+ type: 'string',
20
+ description: 'The filename for the downloaded PDF.'
21
+ },
22
+ fonts: {
23
+ type: 'object',
24
+ description: 'Custom font definitions.'
25
+ }
26
+ },
27
+ additionalProperties: false
28
+ }
29
+ };
package/dist/actions.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -12,4 +12,4 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ export { default as PdfMake } from './actions/PdfMake.js';
15
+ */ export { default as PdfMake } from './actions/PdfMake/PdfMake.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,15 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export { default as PdfMake } from './actions/PdfMake/schema.js';
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/actions-pdf-make",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -27,6 +27,7 @@
27
27
  "type": "module",
28
28
  "exports": {
29
29
  "./actions": "./dist/actions.js",
30
+ "./schemas": "./dist/schemas.js",
30
31
  "./types": "./dist/types.js"
31
32
  },
32
33
  "files": [