@chaindoc_io/embed-sdk 0.1.0-alpha.7 → 0.1.0-alpha.8

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/README.md CHANGED
@@ -122,8 +122,8 @@ MIT License - see [LICENSE](LICENSE) file for details
122
122
 
123
123
  ## Support
124
124
 
125
- - GitHub Issues: [Report a bug](https://github.com/idealogic-io/chaindoc-websdk-core/issues)
126
- - Documentation: https://docs.chaindoc.io
125
+ - GitHub Issues: [Report a bug](https://github.com/ChaindocIO/embed-sdk/issues)
126
+ - Documentation: https://chaindoc.io/docs
127
127
 
128
128
  ---
129
129
 
package/dist/index.cjs CHANGED
@@ -34,5 +34,5 @@
34
34
  `.trim()}function v(){return`
35
35
  position: relative;
36
36
  width: 100%;
37
- `.trim()}var o=class{constructor(e,t,n){this.overlay=null;this.container=null;this.previousOverflow="";this.internalEventHandlers=new Map;this.config=e,this.logger=n,this.options=t,this.state={sessionId:this.options.sessionId,mode:this.options.mode||"modal",theme:this.options.theme||"light",isReady:!1,isClosed:!1};let s=d(this.config.environment,this.config.baseUrl);this.allowedOrigin=c(this.config.environment,this.config.baseUrl);let b=g(s,this.options.sessionId,this.options.email,this.options.theme);this.iframe=this.createIframe(b),this.messageListener=this.handleMessage.bind(this),window.addEventListener("message",this.messageListener),this.state.mode==="modal"?this.renderModal():this.renderInline(),this.logger.log("Instance created",{sessionId:this.state.sessionId,mode:this.state.mode})}createIframe(e){let t=document.createElement("iframe");return t.src=e,t.setAttribute("style",f(this.state.mode)),t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups"),t.setAttribute("allow","clipboard-write; camera; microphone; geolocation"),t}renderModal(){this.overlay=document.createElement("div"),this.overlay.setAttribute("style",m(this.options.zIndex??999999)),this.overlay.setAttribute("data-chaindoc-overlay","true");let e=document.createElement("div");if(e.setAttribute("style",u(this.options.modalWidth,this.options.modalHeight)),e.appendChild(this.iframe),this.overlay.appendChild(e),this.options.closeOnClickOutside!==!1&&this.overlay.addEventListener("click",t=>{t.target===this.overlay&&(this.logger.log("Clicked outside modal - closing"),this.options.onCancel?.(),this.close())}),this.options.closeOnEscape!==!1){let t=n=>{n.key==="Escape"&&(this.logger.log("ESC key pressed - closing"),this.options.onCancel?.(),this.close())};document.addEventListener("keydown",t),this._internalOn("close",()=>{document.removeEventListener("keydown",t)})}this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",document.body.appendChild(this.overlay)}renderInline(){if(!this.options.container)throw new Error("Container is required for inline mode");this.container=h(this.options.container);let e=document.createElement("div");e.setAttribute("style",v()),e.setAttribute("data-chaindoc-inline","true"),e.appendChild(this.iframe),this.container.appendChild(e)}handleMessage(e){if(e.origin!==this.allowedOrigin||e.source!==this.iframe.contentWindow||!p(e.data))return;let t=e.data;switch(this.logger.log("Received message:",t.type,t),t.type){case"READY":this.state.isReady=!0,this.options.onReady?.();break;case"RESIZE":"data"in t&&(this.iframe.style.height=`${t.data.height}px`);break;case"SUCCESS":"data"in t&&this.options.onSuccess?.(t.data);break;case"ERROR":"data"in t&&this.options.onError?.(t.data);break;case"CANCEL":this.options.onCancel?.();break;case"CLOSED":this.cleanup();break;case"RESEND_OTP":"data"in t&&this.options.onResendOtp?.(t.data);break;default:this.logger.warn("Unknown message type:",t)}}sendMessage(e){if(!this.iframe.contentWindow){this.logger.error("Cannot send message: iframe contentWindow not available");return}this.iframe.contentWindow.postMessage(e,this.allowedOrigin),this.logger.log("Sent message to iframe:",e.type)}close(){if(this.state.isClosed){this.logger.warn("Instance already closed");return}this.logger.log("Closing instance"),this.sendMessage({source:"chaindoc-embed",type:"CLOSE"}),setTimeout(()=>{this.state.isClosed||(this.logger.warn("Iframe did not respond to CLOSE, forcing cleanup"),this.cleanup())},3e3)}changeTheme(e){this.logger.log("Changing theme to:",e),this.state.theme=e,this.sendMessage({source:"chaindoc-embed",type:"THEME_CHANGE",data:{theme:e}})}isReady(){return this.state.isReady}getSessionId(){return this.state.sessionId}_internalOn(e,t){this.internalEventHandlers.has(e)||this.internalEventHandlers.set(e,new Set),this.internalEventHandlers.get(e).add(t)}emit(e){let t=this.internalEventHandlers.get(e);t&&t.forEach(n=>n())}cleanup(){this.state.isClosed||(this.logger.log("Cleaning up instance"),this.state.isClosed=!0,window.removeEventListener("message",this.messageListener),this.overlay&&(this.overlay.remove(),document.body.style.overflow=this.previousOverflow),this.container&&this.container.querySelector("[data-chaindoc-inline]")?.remove(),this.options.onClose?.(),this.emit("close"),this.internalEventHandlers.clear())}};var a=class{constructor(e){this.instances=new Set;if(!e.publicKey)throw new Error("ChaindocEmbed: publicKey is required");if(!e.publicKey.startsWith("pk_"))throw new Error('ChaindocEmbed: publicKey must start with "pk_"');let t={publicKey:e.publicKey,environment:e.environment||"production",debug:e.debug||!1};e.baseUrl&&(t.baseUrl=e.baseUrl),this.config=t,this.logger=new r(this.config.debug),this.logger.log("SDK initialized",this.config)}openSignatureFlow(e){if(!e.sessionId)throw new Error("openSignatureFlow: sessionId is required");if(!e.sessionId.startsWith("ses_"))throw new Error('openSignatureFlow: sessionId must start with "ses_"');if((e.mode||"modal")==="inline"&&!e.container)throw new Error("openSignatureFlow: container is required for inline mode");this.logger.log("Opening signature flow",e);let n=new o(this.config,e,this.logger);return this.instances.add(n),n._internalOn("close",()=>{this.instances.delete(n)}),n}destroy(){this.logger.log("Destroying SDK and all instances");for(let e of this.instances)e.close();this.instances.clear()}static get version(){return"0.1.0-alpha.7"}};0&&(module.exports={ChaindocEmbed,EmbedInstance});
37
+ `.trim()}var o=class{constructor(e,t,n){this.overlay=null;this.container=null;this.previousOverflow="";this.internalEventHandlers=new Map;this.config=e,this.logger=n,this.options=t,this.state={sessionId:this.options.sessionId,mode:this.options.mode||"modal",theme:this.options.theme||"light",isReady:!1,isClosed:!1};let s=d(this.config.environment,this.config.baseUrl);this.allowedOrigin=c(this.config.environment,this.config.baseUrl);let b=g(s,this.options.sessionId,this.options.email,this.options.theme);this.iframe=this.createIframe(b),this.messageListener=this.handleMessage.bind(this),window.addEventListener("message",this.messageListener),this.state.mode==="modal"?this.renderModal():this.renderInline(),this.logger.log("Instance created",{sessionId:this.state.sessionId,mode:this.state.mode})}createIframe(e){let t=document.createElement("iframe");return t.src=e,t.setAttribute("style",f(this.state.mode)),t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups"),t.setAttribute("allow","clipboard-write; camera; microphone; geolocation"),t}renderModal(){this.overlay=document.createElement("div"),this.overlay.setAttribute("style",m(this.options.zIndex??999999)),this.overlay.setAttribute("data-chaindoc-overlay","true");let e=document.createElement("div");if(e.setAttribute("style",u(this.options.modalWidth,this.options.modalHeight)),e.appendChild(this.iframe),this.overlay.appendChild(e),this.options.closeOnClickOutside!==!1&&this.overlay.addEventListener("click",t=>{t.target===this.overlay&&(this.logger.log("Clicked outside modal - closing"),this.options.onCancel?.(),this.close())}),this.options.closeOnEscape!==!1){let t=n=>{n.key==="Escape"&&(this.logger.log("ESC key pressed - closing"),this.options.onCancel?.(),this.close())};document.addEventListener("keydown",t),this._internalOn("close",()=>{document.removeEventListener("keydown",t)})}this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",document.body.appendChild(this.overlay)}renderInline(){if(!this.options.container)throw new Error("Container is required for inline mode");this.container=h(this.options.container);let e=document.createElement("div");e.setAttribute("style",v()),e.setAttribute("data-chaindoc-inline","true"),e.appendChild(this.iframe),this.container.appendChild(e)}handleMessage(e){if(e.origin!==this.allowedOrigin||e.source!==this.iframe.contentWindow||!p(e.data))return;let t=e.data;switch(this.logger.log("Received message:",t.type,t),t.type){case"READY":this.state.isReady=!0,this.options.onReady?.();break;case"RESIZE":"data"in t&&(this.iframe.style.height=`${t.data.height}px`);break;case"SUCCESS":"data"in t&&this.options.onSuccess?.(t.data);break;case"ERROR":"data"in t&&this.options.onError?.(t.data);break;case"CANCEL":this.options.onCancel?.();break;case"CLOSED":this.cleanup();break;case"RESEND_OTP":"data"in t&&this.options.onResendOtp?.(t.data);break;default:this.logger.warn("Unknown message type:",t)}}sendMessage(e){if(!this.iframe.contentWindow){this.logger.error("Cannot send message: iframe contentWindow not available");return}this.iframe.contentWindow.postMessage(e,this.allowedOrigin),this.logger.log("Sent message to iframe:",e.type)}close(){if(this.state.isClosed){this.logger.warn("Instance already closed");return}this.logger.log("Closing instance"),this.sendMessage({source:"chaindoc-embed",type:"CLOSE"}),setTimeout(()=>{this.state.isClosed||(this.logger.warn("Iframe did not respond to CLOSE, forcing cleanup"),this.cleanup())},3e3)}changeTheme(e){this.logger.log("Changing theme to:",e),this.state.theme=e,this.sendMessage({source:"chaindoc-embed",type:"THEME_CHANGE",data:{theme:e}})}isReady(){return this.state.isReady}getSessionId(){return this.state.sessionId}_internalOn(e,t){this.internalEventHandlers.has(e)||this.internalEventHandlers.set(e,new Set),this.internalEventHandlers.get(e).add(t)}emit(e){let t=this.internalEventHandlers.get(e);t&&t.forEach(n=>n())}cleanup(){this.state.isClosed||(this.logger.log("Cleaning up instance"),this.state.isClosed=!0,window.removeEventListener("message",this.messageListener),this.overlay&&(this.overlay.remove(),document.body.style.overflow=this.previousOverflow),this.container&&this.container.querySelector("[data-chaindoc-inline]")?.remove(),this.options.onClose?.(),this.emit("close"),this.internalEventHandlers.clear())}};var a=class{constructor(e){this.instances=new Set;if(!e.publicKey)throw new Error("ChaindocEmbed: publicKey is required");if(!e.publicKey.startsWith("pk_"))throw new Error('ChaindocEmbed: publicKey must start with "pk_"');let t={publicKey:e.publicKey,environment:e.environment||"production",debug:e.debug||!1};e.baseUrl&&(t.baseUrl=e.baseUrl),this.config=t,this.logger=new r(this.config.debug),this.logger.log("SDK initialized",this.config)}openSignatureFlow(e){if(!e.sessionId)throw new Error("openSignatureFlow: sessionId is required");if(!e.sessionId.startsWith("ses_"))throw new Error('openSignatureFlow: sessionId must start with "ses_"');if((e.mode||"modal")==="inline"&&!e.container)throw new Error("openSignatureFlow: container is required for inline mode");this.logger.log("Opening signature flow",e);let n=new o(this.config,e,this.logger);return this.instances.add(n),n._internalOn("close",()=>{this.instances.delete(n)}),n}destroy(){this.logger.log("Destroying SDK and all instances");for(let e of this.instances)e.close();this.instances.clear()}static get version(){return"0.1.0-alpha.8"}};0&&(module.exports={ChaindocEmbed,EmbedInstance});
38
38
  //# sourceMappingURL=index.cjs.map
package/dist/index.mjs CHANGED
@@ -34,5 +34,5 @@ function a(i,e){if(e)return e;switch(i){case"production":return"https://chaindoc
34
34
  `.trim()}function f(){return`
35
35
  position: relative;
36
36
  width: 100%;
37
- `.trim()}var o=class{constructor(e,t,n){this.overlay=null;this.container=null;this.previousOverflow="";this.internalEventHandlers=new Map;this.config=e,this.logger=n,this.options=t,this.state={sessionId:this.options.sessionId,mode:this.options.mode||"modal",theme:this.options.theme||"light",isReady:!1,isClosed:!1};let s=a(this.config.environment,this.config.baseUrl);this.allowedOrigin=d(this.config.environment,this.config.baseUrl);let v=c(s,this.options.sessionId,this.options.email,this.options.theme);this.iframe=this.createIframe(v),this.messageListener=this.handleMessage.bind(this),window.addEventListener("message",this.messageListener),this.state.mode==="modal"?this.renderModal():this.renderInline(),this.logger.log("Instance created",{sessionId:this.state.sessionId,mode:this.state.mode})}createIframe(e){let t=document.createElement("iframe");return t.src=e,t.setAttribute("style",u(this.state.mode)),t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups"),t.setAttribute("allow","clipboard-write; camera; microphone; geolocation"),t}renderModal(){this.overlay=document.createElement("div"),this.overlay.setAttribute("style",p(this.options.zIndex??999999)),this.overlay.setAttribute("data-chaindoc-overlay","true");let e=document.createElement("div");if(e.setAttribute("style",m(this.options.modalWidth,this.options.modalHeight)),e.appendChild(this.iframe),this.overlay.appendChild(e),this.options.closeOnClickOutside!==!1&&this.overlay.addEventListener("click",t=>{t.target===this.overlay&&(this.logger.log("Clicked outside modal - closing"),this.options.onCancel?.(),this.close())}),this.options.closeOnEscape!==!1){let t=n=>{n.key==="Escape"&&(this.logger.log("ESC key pressed - closing"),this.options.onCancel?.(),this.close())};document.addEventListener("keydown",t),this._internalOn("close",()=>{document.removeEventListener("keydown",t)})}this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",document.body.appendChild(this.overlay)}renderInline(){if(!this.options.container)throw new Error("Container is required for inline mode");this.container=g(this.options.container);let e=document.createElement("div");e.setAttribute("style",f()),e.setAttribute("data-chaindoc-inline","true"),e.appendChild(this.iframe),this.container.appendChild(e)}handleMessage(e){if(e.origin!==this.allowedOrigin||e.source!==this.iframe.contentWindow||!h(e.data))return;let t=e.data;switch(this.logger.log("Received message:",t.type,t),t.type){case"READY":this.state.isReady=!0,this.options.onReady?.();break;case"RESIZE":"data"in t&&(this.iframe.style.height=`${t.data.height}px`);break;case"SUCCESS":"data"in t&&this.options.onSuccess?.(t.data);break;case"ERROR":"data"in t&&this.options.onError?.(t.data);break;case"CANCEL":this.options.onCancel?.();break;case"CLOSED":this.cleanup();break;case"RESEND_OTP":"data"in t&&this.options.onResendOtp?.(t.data);break;default:this.logger.warn("Unknown message type:",t)}}sendMessage(e){if(!this.iframe.contentWindow){this.logger.error("Cannot send message: iframe contentWindow not available");return}this.iframe.contentWindow.postMessage(e,this.allowedOrigin),this.logger.log("Sent message to iframe:",e.type)}close(){if(this.state.isClosed){this.logger.warn("Instance already closed");return}this.logger.log("Closing instance"),this.sendMessage({source:"chaindoc-embed",type:"CLOSE"}),setTimeout(()=>{this.state.isClosed||(this.logger.warn("Iframe did not respond to CLOSE, forcing cleanup"),this.cleanup())},3e3)}changeTheme(e){this.logger.log("Changing theme to:",e),this.state.theme=e,this.sendMessage({source:"chaindoc-embed",type:"THEME_CHANGE",data:{theme:e}})}isReady(){return this.state.isReady}getSessionId(){return this.state.sessionId}_internalOn(e,t){this.internalEventHandlers.has(e)||this.internalEventHandlers.set(e,new Set),this.internalEventHandlers.get(e).add(t)}emit(e){let t=this.internalEventHandlers.get(e);t&&t.forEach(n=>n())}cleanup(){this.state.isClosed||(this.logger.log("Cleaning up instance"),this.state.isClosed=!0,window.removeEventListener("message",this.messageListener),this.overlay&&(this.overlay.remove(),document.body.style.overflow=this.previousOverflow),this.container&&this.container.querySelector("[data-chaindoc-inline]")?.remove(),this.options.onClose?.(),this.emit("close"),this.internalEventHandlers.clear())}};var l=class{constructor(e){this.instances=new Set;if(!e.publicKey)throw new Error("ChaindocEmbed: publicKey is required");if(!e.publicKey.startsWith("pk_"))throw new Error('ChaindocEmbed: publicKey must start with "pk_"');let t={publicKey:e.publicKey,environment:e.environment||"production",debug:e.debug||!1};e.baseUrl&&(t.baseUrl=e.baseUrl),this.config=t,this.logger=new r(this.config.debug),this.logger.log("SDK initialized",this.config)}openSignatureFlow(e){if(!e.sessionId)throw new Error("openSignatureFlow: sessionId is required");if(!e.sessionId.startsWith("ses_"))throw new Error('openSignatureFlow: sessionId must start with "ses_"');if((e.mode||"modal")==="inline"&&!e.container)throw new Error("openSignatureFlow: container is required for inline mode");this.logger.log("Opening signature flow",e);let n=new o(this.config,e,this.logger);return this.instances.add(n),n._internalOn("close",()=>{this.instances.delete(n)}),n}destroy(){this.logger.log("Destroying SDK and all instances");for(let e of this.instances)e.close();this.instances.clear()}static get version(){return"0.1.0-alpha.7"}};export{l as ChaindocEmbed,o as EmbedInstance};
37
+ `.trim()}var o=class{constructor(e,t,n){this.overlay=null;this.container=null;this.previousOverflow="";this.internalEventHandlers=new Map;this.config=e,this.logger=n,this.options=t,this.state={sessionId:this.options.sessionId,mode:this.options.mode||"modal",theme:this.options.theme||"light",isReady:!1,isClosed:!1};let s=a(this.config.environment,this.config.baseUrl);this.allowedOrigin=d(this.config.environment,this.config.baseUrl);let v=c(s,this.options.sessionId,this.options.email,this.options.theme);this.iframe=this.createIframe(v),this.messageListener=this.handleMessage.bind(this),window.addEventListener("message",this.messageListener),this.state.mode==="modal"?this.renderModal():this.renderInline(),this.logger.log("Instance created",{sessionId:this.state.sessionId,mode:this.state.mode})}createIframe(e){let t=document.createElement("iframe");return t.src=e,t.setAttribute("style",u(this.state.mode)),t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups"),t.setAttribute("allow","clipboard-write; camera; microphone; geolocation"),t}renderModal(){this.overlay=document.createElement("div"),this.overlay.setAttribute("style",p(this.options.zIndex??999999)),this.overlay.setAttribute("data-chaindoc-overlay","true");let e=document.createElement("div");if(e.setAttribute("style",m(this.options.modalWidth,this.options.modalHeight)),e.appendChild(this.iframe),this.overlay.appendChild(e),this.options.closeOnClickOutside!==!1&&this.overlay.addEventListener("click",t=>{t.target===this.overlay&&(this.logger.log("Clicked outside modal - closing"),this.options.onCancel?.(),this.close())}),this.options.closeOnEscape!==!1){let t=n=>{n.key==="Escape"&&(this.logger.log("ESC key pressed - closing"),this.options.onCancel?.(),this.close())};document.addEventListener("keydown",t),this._internalOn("close",()=>{document.removeEventListener("keydown",t)})}this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",document.body.appendChild(this.overlay)}renderInline(){if(!this.options.container)throw new Error("Container is required for inline mode");this.container=g(this.options.container);let e=document.createElement("div");e.setAttribute("style",f()),e.setAttribute("data-chaindoc-inline","true"),e.appendChild(this.iframe),this.container.appendChild(e)}handleMessage(e){if(e.origin!==this.allowedOrigin||e.source!==this.iframe.contentWindow||!h(e.data))return;let t=e.data;switch(this.logger.log("Received message:",t.type,t),t.type){case"READY":this.state.isReady=!0,this.options.onReady?.();break;case"RESIZE":"data"in t&&(this.iframe.style.height=`${t.data.height}px`);break;case"SUCCESS":"data"in t&&this.options.onSuccess?.(t.data);break;case"ERROR":"data"in t&&this.options.onError?.(t.data);break;case"CANCEL":this.options.onCancel?.();break;case"CLOSED":this.cleanup();break;case"RESEND_OTP":"data"in t&&this.options.onResendOtp?.(t.data);break;default:this.logger.warn("Unknown message type:",t)}}sendMessage(e){if(!this.iframe.contentWindow){this.logger.error("Cannot send message: iframe contentWindow not available");return}this.iframe.contentWindow.postMessage(e,this.allowedOrigin),this.logger.log("Sent message to iframe:",e.type)}close(){if(this.state.isClosed){this.logger.warn("Instance already closed");return}this.logger.log("Closing instance"),this.sendMessage({source:"chaindoc-embed",type:"CLOSE"}),setTimeout(()=>{this.state.isClosed||(this.logger.warn("Iframe did not respond to CLOSE, forcing cleanup"),this.cleanup())},3e3)}changeTheme(e){this.logger.log("Changing theme to:",e),this.state.theme=e,this.sendMessage({source:"chaindoc-embed",type:"THEME_CHANGE",data:{theme:e}})}isReady(){return this.state.isReady}getSessionId(){return this.state.sessionId}_internalOn(e,t){this.internalEventHandlers.has(e)||this.internalEventHandlers.set(e,new Set),this.internalEventHandlers.get(e).add(t)}emit(e){let t=this.internalEventHandlers.get(e);t&&t.forEach(n=>n())}cleanup(){this.state.isClosed||(this.logger.log("Cleaning up instance"),this.state.isClosed=!0,window.removeEventListener("message",this.messageListener),this.overlay&&(this.overlay.remove(),document.body.style.overflow=this.previousOverflow),this.container&&this.container.querySelector("[data-chaindoc-inline]")?.remove(),this.options.onClose?.(),this.emit("close"),this.internalEventHandlers.clear())}};var l=class{constructor(e){this.instances=new Set;if(!e.publicKey)throw new Error("ChaindocEmbed: publicKey is required");if(!e.publicKey.startsWith("pk_"))throw new Error('ChaindocEmbed: publicKey must start with "pk_"');let t={publicKey:e.publicKey,environment:e.environment||"production",debug:e.debug||!1};e.baseUrl&&(t.baseUrl=e.baseUrl),this.config=t,this.logger=new r(this.config.debug),this.logger.log("SDK initialized",this.config)}openSignatureFlow(e){if(!e.sessionId)throw new Error("openSignatureFlow: sessionId is required");if(!e.sessionId.startsWith("ses_"))throw new Error('openSignatureFlow: sessionId must start with "ses_"');if((e.mode||"modal")==="inline"&&!e.container)throw new Error("openSignatureFlow: container is required for inline mode");this.logger.log("Opening signature flow",e);let n=new o(this.config,e,this.logger);return this.instances.add(n),n._internalOn("close",()=>{this.instances.delete(n)}),n}destroy(){this.logger.log("Destroying SDK and all instances");for(let e of this.instances)e.close();this.instances.clear()}static get version(){return"0.1.0-alpha.8"}};export{l as ChaindocEmbed,o as EmbedInstance};
38
38
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaindoc_io/embed-sdk",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.8",
4
4
  "description": "JavaScript/TypeScript SDK for embedding Chaindoc document signing flow via iframe",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -38,12 +38,12 @@
38
38
  "license": "MIT",
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "git+https://github.com/idealogic-io/chaindoc-websdk-core.git"
41
+ "url": "git+https://github.com/ChaindocIO/embed-sdk.git"
42
42
  },
43
43
  "bugs": {
44
- "url": "https://github.com/idealogic-io/chaindoc-websdk-core/issues"
44
+ "url": "https://github.com/ChaindocIO/embed-sdk/issues"
45
45
  },
46
- "homepage": "https://github.com/idealogic-io/chaindoc-websdk-core#readme",
46
+ "homepage": "https://chaindoc.io/docs",
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },