@documenso/embed-solid 0.3.0 → 0.4.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,9 @@
1
1
  export { default as EmbedDirectTemplate } from './direct-template';
2
2
  export { default as EmbedSignDocument } from './sign-document';
3
+ export { default as EmbedCreateDocumentV1 } from './create-document';
4
+ export { default as EmbedCreateTemplateV1 } from './create-template';
5
+ export { default as EmbedUpdateDocumentV1 } from './update-document';
6
+ export { default as EmbedUpdateTemplateV1 } from './update-template';
3
7
  export { default as unstable_EmbedCreateDocument } from './create-document';
4
8
  export { default as unstable_EmbedCreateTemplate } from './create-template';
5
9
  export { default as unstable_EmbedUpdateDocument } from './update-document';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  export { default as EmbedDirectTemplate } from './direct-template';
2
2
  export { default as EmbedSignDocument } from './sign-document';
3
+ export { default as EmbedCreateDocumentV1 } from './create-document';
4
+ export { default as EmbedCreateTemplateV1 } from './create-template';
5
+ export { default as EmbedUpdateDocumentV1 } from './update-document';
6
+ export { default as EmbedUpdateTemplateV1 } from './update-template';
3
7
  export { default as unstable_EmbedCreateDocument } from './create-document';
4
8
  export { default as unstable_EmbedCreateTemplate } from './create-template';
5
9
  export { default as unstable_EmbedUpdateDocument } from './update-document';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("solid-js");function m(e,o,i){let c;const t=()=>{const a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},n=()=>(c||(c=t())).cloneNode(!0);return n.cloneNode=n,n}function u(e,o,i){b(e)||(i==null?e.removeAttribute(o):e.setAttribute(o,i))}function l(e,o){b(e)||(o==null?e.removeAttribute("class"):e.className=o)}function f(e,o,i){return d.untrack(()=>e(o,i))}function b(e){return!!d.sharedConfig.context&&!d.sharedConfig.done&&(!e||e.isConnected)}var k=m("<iframe>");function g(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({name:e.name,lockName:e.lockName,email:e.email,lockEmail:e.lockEmail,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL(`/embed/direct/${e.token}`,t);return e.externalId&&a.searchParams.set("externalId",e.externalId),`${a}#${n}`});function i(t){if(c?.contentWindow===t.source)switch(t.data.action){case"document-ready":e.onDocumentReady?.();break;case"document-completed":e.onDocumentCompleted?.(t.data.data);break;case"document-error":e.onDocumentError?.(t.data.data);break;case"field-signed":e.onFieldSigned?.();break;case"field-unsigned":e.onFieldUnsigned?.();break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=k(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var h=m("<iframe>");function v(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({name:e.name,lockName:e.lockName,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,allowDocumentRejection:e.allowDocumentRejection,...e.additionalProps})));return`${new URL(`/embed/sign/${e.token}`,t)}#${n}`});function i(t){if(c?.contentWindow===t.source)switch(t.data.action){case"document-ready":e.onDocumentReady?.();break;case"document-completed":e.onDocumentCompleted?.(t.data.data);break;case"document-error":e.onDocumentError?.(t.data.data);break;case"document-rejected":e.onDocumentRejected?.(t.data.data);break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=h(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var D=m("<iframe>");function w(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL("/embed/v1/authoring/document/create",t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(c?.contentWindow===t.source)switch(t.data.type){case"document-created":e.onDocumentCreated?.({documentId:t.data.documentId,externalId:t.data.externalId});break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=D(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var M=m("<iframe>");function I(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL("/embed/v1/authoring/template/create",t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(c?.contentWindow===t.source)switch(t.data.type){case"template-created":e.onTemplateCreated?.({templateId:t.data.templateId,externalId:t.data.externalId});break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=M(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var E=m("<iframe>");function R(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({token:e.presignToken,externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL(`/embed/v1/authoring/document/edit/${e.documentId}`,t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(c?.contentWindow===t.source)switch(t.data.type){case"document-updated":e.onDocumentUpdated?.({documentId:t.data.documentId,externalId:t.data.externalId});break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=E(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var U=m("<iframe>");function y(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL(`/embed/v1/authoring/template/edit/${e.templateId}`,t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(c?.contentWindow===t.source)switch(t.data.type){case"template-updated":e.onTemplateUpdated?.({templateId:t.data.templateId,externalId:t.data.externalId});break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=U(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var _=m("<iframe>");function N(e){const o=d.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({name:e.name,lockName:e.lockName,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,allowDocumentRejection:e.allowDocumentRejection,...e.additionalProps}))),a=new URL("/embed/v1/multisign",t);for(const r of e.tokens)a.searchParams.append("token",r);return`${a}#${n}`});function i(t){if(c?.contentWindow===t.source)switch(t.data.action){case"document-ready":e.onDocumentReady?.();break;case"document-completed":e.onDocumentCompleted?.(t.data.data);break;case"document-error":e.onDocumentError?.(t.data.data);break;case"document-rejected":e.onDocumentRejected?.(t.data.data);break;case"all-documents-completed":e.onAllDocumentsCompleted?.(t.data.data);break}}let c;return d.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=_(),n=c;return typeof n=="function"?f(n,t):c=t,d.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&l(t,a.e=r),s!==a.t&&u(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}exports.EmbedDirectTemplate=g;exports.EmbedSignDocument=v;exports.unstable_EmbedCreateDocument=w;exports.unstable_EmbedCreateTemplate=I;exports.unstable_EmbedMultiSignDocument=N;exports.unstable_EmbedUpdateDocument=R;exports.unstable_EmbedUpdateTemplate=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("solid-js");function m(e,o,i){let d;const t=()=>{const a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},n=()=>(d||(d=t())).cloneNode(!0);return n.cloneNode=n,n}function l(e,o,i){b(e)||(i==null?e.removeAttribute(o):e.setAttribute(o,i))}function u(e,o){b(e)||(o==null?e.removeAttribute("class"):e.className=o)}function f(e,o,i){return c.untrack(()=>e(o,i))}function b(e){return!!c.sharedConfig.context&&!c.sharedConfig.done&&(!e||e.isConnected)}var D=m("<iframe>");function E(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({name:e.name,lockName:e.lockName,email:e.email,lockEmail:e.lockEmail,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL(`/embed/direct/${e.token}`,t);return e.externalId&&a.searchParams.set("externalId",e.externalId),`${a}#${n}`});function i(t){if(d?.contentWindow===t.source)switch(t.data.action){case"document-ready":e.onDocumentReady?.();break;case"document-completed":e.onDocumentCompleted?.(t.data.data);break;case"document-error":e.onDocumentError?.(t.data.data);break;case"field-signed":e.onFieldSigned?.();break;case"field-unsigned":e.onFieldUnsigned?.();break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=D(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var w=m("<iframe>");function M(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({name:e.name,lockName:e.lockName,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,allowDocumentRejection:e.allowDocumentRejection,...e.additionalProps})));return`${new URL(`/embed/sign/${e.token}`,t)}#${n}`});function i(t){if(d?.contentWindow===t.source)switch(t.data.action){case"document-ready":e.onDocumentReady?.();break;case"document-completed":e.onDocumentCompleted?.(t.data.data);break;case"document-error":e.onDocumentError?.(t.data.data);break;case"document-rejected":e.onDocumentRejected?.(t.data.data);break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=w(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var I=m("<iframe>");function k(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL("/embed/v1/authoring/document/create",t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(d?.contentWindow===t.source)switch(t.data.type){case"document-created":e.onDocumentCreated?.({documentId:t.data.documentId,externalId:t.data.externalId});break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=I(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var y=m("<iframe>");function g(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,...e.additionalProps}))),a=new URL("/embed/v1/authoring/template/create",t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(d?.contentWindow===t.source)switch(t.data.type){case"template-created":e.onTemplateCreated?.({templateId:t.data.templateId,externalId:t.data.externalId});break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=y(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var U=m("<iframe>");function h(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({token:e.presignToken,externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,onlyEditFields:e.onlyEditFields,...e.additionalProps}))),a=new URL(`/embed/v1/authoring/document/edit/${e.documentId}`,t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(d?.contentWindow===t.source)switch(t.data.type){case"document-updated":e.onDocumentUpdated?.({documentId:t.data.documentId,externalId:t.data.externalId});break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=U(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var R=m("<iframe>");function v(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({externalId:e.externalId,features:e.features,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,onlyEditFields:e.onlyEditFields,...e.additionalProps}))),a=new URL(`/embed/v1/authoring/template/edit/${e.templateId}`,t);return a.searchParams.set("token",e.presignToken),a.hash=n,a.toString()});function i(t){if(d?.contentWindow===t.source)switch(t.data.type){case"template-updated":e.onTemplateUpdated?.({templateId:t.data.templateId,externalId:t.data.externalId});break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=R(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}var _=m("<iframe>");function C(e){const o=c.createMemo(()=>{const t=e.host||"https://app.documenso.com",n=btoa(encodeURIComponent(JSON.stringify({name:e.name,lockName:e.lockName,css:e.css,cssVars:e.cssVars,darkModeDisabled:e.darkModeDisabled,allowDocumentRejection:e.allowDocumentRejection,...e.additionalProps}))),a=new URL("/embed/v1/multisign",t);for(const r of e.tokens)a.searchParams.append("token",r);return`${a}#${n}`});function i(t){if(d?.contentWindow===t.source)switch(t.data.action){case"document-ready":e.onDocumentReady?.();break;case"document-completed":e.onDocumentCompleted?.(t.data.data);break;case"document-error":e.onDocumentError?.(t.data.data);break;case"document-rejected":e.onDocumentRejected?.(t.data.data);break;case"all-documents-completed":e.onAllDocumentsCompleted?.(t.data.data);break}}let d;return c.onMount(()=>{window.addEventListener("message",i)}),(()=>{var t=_(),n=d;return typeof n=="function"?f(n,t):d=t,c.createRenderEffect(a=>{var r=e.className,s=o();return r!==a.e&&u(t,a.e=r),s!==a.t&&l(t,"src",a.t=s),a},{e:void 0,t:void 0}),t})()}exports.EmbedCreateDocumentV1=k;exports.EmbedCreateTemplateV1=g;exports.EmbedDirectTemplate=E;exports.EmbedSignDocument=M;exports.EmbedUpdateDocumentV1=h;exports.EmbedUpdateTemplateV1=v;exports.unstable_EmbedCreateDocument=k;exports.unstable_EmbedCreateTemplate=g;exports.unstable_EmbedMultiSignDocument=C;exports.unstable_EmbedUpdateDocument=h;exports.unstable_EmbedUpdateTemplate=v;
package/dist/index.mjs CHANGED
@@ -114,7 +114,7 @@ function R(e) {
114
114
  })();
115
115
  }
116
116
  var I = /* @__PURE__ */ u("<iframe>");
117
- function $(e) {
117
+ function C(e) {
118
118
  const c = i(() => {
119
119
  const t = e.host || "https://app.documenso.com", n = btoa(encodeURIComponent(JSON.stringify({
120
120
  externalId: e.externalId,
@@ -151,8 +151,8 @@ function $(e) {
151
151
  }), t;
152
152
  })();
153
153
  }
154
- var U = /* @__PURE__ */ u("<iframe>");
155
- function x(e) {
154
+ var E = /* @__PURE__ */ u("<iframe>");
155
+ function $(e) {
156
156
  const c = i(() => {
157
157
  const t = e.host || "https://app.documenso.com", n = btoa(encodeURIComponent(JSON.stringify({
158
158
  externalId: e.externalId,
@@ -179,7 +179,7 @@ function x(e) {
179
179
  return m(() => {
180
180
  window.addEventListener("message", r);
181
181
  }), (() => {
182
- var t = U(), n = d;
182
+ var t = E(), n = d;
183
183
  return typeof n == "function" ? k(n, t) : d = t, l((a) => {
184
184
  var o = e.className, s = c();
185
185
  return o !== a.e && b(t, a.e = o), s !== a.t && f(t, "src", a.t = s), a;
@@ -189,8 +189,8 @@ function x(e) {
189
189
  }), t;
190
190
  })();
191
191
  }
192
- var E = /* @__PURE__ */ u("<iframe>");
193
- function C(e) {
192
+ var U = /* @__PURE__ */ u("<iframe>");
193
+ function x(e) {
194
194
  const c = i(() => {
195
195
  const t = e.host || "https://app.documenso.com", n = btoa(encodeURIComponent(JSON.stringify({
196
196
  token: e.presignToken,
@@ -199,6 +199,7 @@ function C(e) {
199
199
  css: e.css,
200
200
  cssVars: e.cssVars,
201
201
  darkModeDisabled: e.darkModeDisabled,
202
+ onlyEditFields: e.onlyEditFields,
202
203
  ...e.additionalProps
203
204
  }))), a = new URL(`/embed/v1/authoring/document/edit/${e.documentId}`, t);
204
205
  return a.searchParams.set("token", e.presignToken), a.hash = n, a.toString();
@@ -218,7 +219,7 @@ function C(e) {
218
219
  return m(() => {
219
220
  window.addEventListener("message", r);
220
221
  }), (() => {
221
- var t = E(), n = d;
222
+ var t = U(), n = d;
222
223
  return typeof n == "function" ? k(n, t) : d = t, l((a) => {
223
224
  var o = e.className, s = c();
224
225
  return o !== a.e && b(t, a.e = o), s !== a.t && f(t, "src", a.t = s), a;
@@ -228,8 +229,8 @@ function C(e) {
228
229
  }), t;
229
230
  })();
230
231
  }
231
- var M = /* @__PURE__ */ u("<iframe>");
232
- function S(e) {
232
+ var y = /* @__PURE__ */ u("<iframe>");
233
+ function V(e) {
233
234
  const c = i(() => {
234
235
  const t = e.host || "https://app.documenso.com", n = btoa(encodeURIComponent(JSON.stringify({
235
236
  externalId: e.externalId,
@@ -237,6 +238,7 @@ function S(e) {
237
238
  css: e.css,
238
239
  cssVars: e.cssVars,
239
240
  darkModeDisabled: e.darkModeDisabled,
241
+ onlyEditFields: e.onlyEditFields,
240
242
  ...e.additionalProps
241
243
  }))), a = new URL(`/embed/v1/authoring/template/edit/${e.templateId}`, t);
242
244
  return a.searchParams.set("token", e.presignToken), a.hash = n, a.toString();
@@ -256,7 +258,7 @@ function S(e) {
256
258
  return m(() => {
257
259
  window.addEventListener("message", r);
258
260
  }), (() => {
259
- var t = M(), n = d;
261
+ var t = y(), n = d;
260
262
  return typeof n == "function" ? k(n, t) : d = t, l((a) => {
261
263
  var o = e.className, s = c();
262
264
  return o !== a.e && b(t, a.e = o), s !== a.t && f(t, "src", a.t = s), a;
@@ -266,8 +268,8 @@ function S(e) {
266
268
  }), t;
267
269
  })();
268
270
  }
269
- var _ = /* @__PURE__ */ u("<iframe>");
270
- function L(e) {
271
+ var M = /* @__PURE__ */ u("<iframe>");
272
+ function S(e) {
271
273
  const c = i(() => {
272
274
  const t = e.host || "https://app.documenso.com", n = btoa(encodeURIComponent(JSON.stringify({
273
275
  name: e.name,
@@ -306,7 +308,7 @@ function L(e) {
306
308
  return m(() => {
307
309
  window.addEventListener("message", r);
308
310
  }), (() => {
309
- var t = _(), n = d;
311
+ var t = M(), n = d;
310
312
  return typeof n == "function" ? k(n, t) : d = t, l((a) => {
311
313
  var o = e.className, s = c();
312
314
  return o !== a.e && b(t, a.e = o), s !== a.t && f(t, "src", a.t = s), a;
@@ -317,11 +319,15 @@ function L(e) {
317
319
  })();
318
320
  }
319
321
  export {
322
+ C as EmbedCreateDocumentV1,
323
+ $ as EmbedCreateTemplateV1,
320
324
  N as EmbedDirectTemplate,
321
325
  R as EmbedSignDocument,
322
- $ as unstable_EmbedCreateDocument,
323
- x as unstable_EmbedCreateTemplate,
324
- L as unstable_EmbedMultiSignDocument,
325
- C as unstable_EmbedUpdateDocument,
326
- S as unstable_EmbedUpdateTemplate
326
+ x as EmbedUpdateDocumentV1,
327
+ V as EmbedUpdateTemplateV1,
328
+ C as unstable_EmbedCreateDocument,
329
+ $ as unstable_EmbedCreateTemplate,
330
+ S as unstable_EmbedMultiSignDocument,
331
+ x as unstable_EmbedUpdateDocument,
332
+ V as unstable_EmbedUpdateTemplate
327
333
  };
@@ -16,6 +16,7 @@ export type EmbedUpdateDocumentProps = {
16
16
  allowConfigureRedirectUrl?: boolean;
17
17
  allowConfigureCommunication?: boolean;
18
18
  };
19
+ onlyEditFields?: boolean | undefined;
19
20
  additionalProps?: Record<string, string | number | boolean> | undefined;
20
21
  onDocumentUpdated?: (data: {
21
22
  externalId: string;
@@ -16,6 +16,7 @@ export type EmbedUpdateTemplateProps = {
16
16
  allowConfigureRedirectUrl?: boolean;
17
17
  allowConfigureCommunication?: boolean;
18
18
  };
19
+ onlyEditFields?: boolean | undefined;
19
20
  additionalProps?: Record<string, string | number | boolean> | undefined;
20
21
  onTemplateUpdated?: (data: {
21
22
  externalId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@documenso/embed-solid",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"