@formio/js 5.0.0-rc.17 → 5.0.0-rc.18

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.
@@ -5,7 +5,7 @@
5
5
  MIT License: http://getify.mit-license.org
6
6
  */
7
7
 
8
- /*! formiojs v5.0.0-rc.17 | https://unpkg.com/formiojs@5.0.0-rc.17/LICENSE.txt */
8
+ /*! formiojs v5.0.0-rc.18 | https://unpkg.com/formiojs@5.0.0-rc.18/LICENSE.txt */
9
9
 
10
10
  /**
11
11
  * @license
@@ -17,7 +17,7 @@
17
17
  MIT License: http://getify.mit-license.org
18
18
  */
19
19
 
20
- /*! formiojs v5.0.0-rc.17 | https://unpkg.com/formiojs@5.0.0-rc.17/LICENSE.txt */
20
+ /*! formiojs v5.0.0-rc.18 | https://unpkg.com/formiojs@5.0.0-rc.18/LICENSE.txt */
21
21
 
22
22
  /**
23
23
  * @license
@@ -230,7 +230,7 @@ class PDFBuilder extends WebformBuilder_1.default {
230
230
  }
231
231
  lodash_1.default.set(this.webform.form, 'settings.pdf', {
232
232
  id: result.data.file,
233
- src: `${result.data.filesServer}${result.data.path}`,
233
+ src: result.data.filesServer ? `${result.data.filesServer}${result.data.path}` : `${new URL(this.projectUrl).origin}/pdf-proxy${result.data.path}`,
234
234
  nonFillableConversionUsed: autoConversionComponentsAssigned && result.data.formfields.nonFillableConversionUsed
235
235
  });
236
236
  this.emit('pdfUploaded', result.data);
@@ -29,7 +29,7 @@ class SignatureComponent extends Input_1.default {
29
29
  group: 'advanced',
30
30
  icon: 'pencil',
31
31
  weight: 120,
32
- documentation: '/userguide/form-building/form-components#signature',
32
+ documentation: '/developers/integrations/esign/esign-integrations#signature-component',
33
33
  schema: SignatureComponent.schema()
34
34
  };
35
35
  }
@@ -224,7 +224,7 @@ export default class PDFBuilder extends WebformBuilder {
224
224
  }
225
225
  _.set(this.webform.form, 'settings.pdf', {
226
226
  id: result.data.file,
227
- src: `${result.data.filesServer}${result.data.path}`,
227
+ src: result.data.filesServer ? `${result.data.filesServer}${result.data.path}` : `${new URL(this.projectUrl).origin}/pdf-proxy${result.data.path}`,
228
228
  nonFillableConversionUsed: autoConversionComponentsAssigned && result.data.formfields.nonFillableConversionUsed
229
229
  });
230
230
  this.emit('pdfUploaded', result.data);
@@ -24,7 +24,7 @@ export default class SignatureComponent extends Input {
24
24
  group: 'advanced',
25
25
  icon: 'pencil',
26
26
  weight: 120,
27
- documentation: '/userguide/form-building/form-components#signature',
27
+ documentation: '/developers/integrations/esign/esign-integrations#signature-component',
28
28
  schema: SignatureComponent.schema()
29
29
  };
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.17",
3
+ "version": "5.0.0-rc.18",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",