@dialstack/sdk-react 3.5.0 → 3.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.
- package/dist/ai-agent.cjs +1 -1
- package/dist/ai-agent.mjs +1 -1
- package/dist/call-history.cjs +1 -1
- package/dist/call-history.mjs +1 -1
- package/dist/call-logs.cjs +1 -1
- package/dist/call-logs.mjs +1 -1
- package/dist/dial-plan.cjs +1 -1
- package/dist/dial-plan.cjs.map +1 -1
- package/dist/dial-plan.d.cts +5 -1
- package/dist/dial-plan.d.ts +5 -1
- package/dist/dial-plan.mjs +1 -1
- package/dist/dial-plan.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/onboarding.cjs +1 -1
- package/dist/onboarding.cjs.map +1 -1
- package/dist/onboarding.mjs +1 -1
- package/dist/onboarding.mjs.map +1 -1
- package/dist/phone-number-ordering.cjs +1 -1
- package/dist/phone-number-ordering.mjs +1 -1
- package/dist/phone-numbers.cjs +1 -1
- package/dist/phone-numbers.mjs +1 -1
- package/dist/voicemails.cjs +1 -1
- package/dist/voicemails.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("@dialstack/sdk-react");function r(t,r){const n=e.useRef(null),[s,a]=e.useState(null);return{containerRef:e.useCallback(e=>{if(n.current&&n.current.parentNode&&(n.current.parentNode.removeChild(n.current),n.current=null,a(null)),!e)return;const s=t.create(r);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(s,r)}catch(e){throw t.removeAppearanceTarget(s),e}try{s.setAttribute("data-dialstack-sdk-version","3.
|
|
1
|
+
"use strict";var e=require("react"),t=require("@dialstack/sdk-react");function r(t,r){const n=e.useRef(null),[s,a]=e.useState(null);return{containerRef:e.useCallback(e=>{if(n.current&&n.current.parentNode&&(n.current.parentNode.removeChild(n.current),n.current=null,a(null)),!e)return;const s=t.create(r);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(s,r)}catch(e){throw t.removeAppearanceTarget(s),e}try{s.setAttribute("data-dialstack-sdk-version","3.6.0")}catch(e){console.log("Error setting SDK version attribute:",e)}e.appendChild(s),n.current=s,a(s)},[t,r]),componentInstance:s}}function n(t,r,n){e.useEffect(()=>{if(t&&void 0!==r)try{n(t,r)}catch(e){console.error("DialStack: Error calling setter:",e)}},[t,r,n])}exports.PhoneNumberOrdering=({className:s,style:a,locale:o,formatting:i,icons:c,layoutVariant:l,classes:d,searchTypes:u,onLoaderStart:p,onLoadError:m,onOrderComplete:f,onOrderError:g})=>{const{dialstack:h}=t.useDialstackComponents(),{containerRef:k,componentInstance:y}=r(h,"phone-number-ordering");return n(y,o,(e,t)=>e.setLocale(t)),n(y,i,(e,t)=>e.setFormatting(t)),n(y,c,(e,t)=>e.setIcons(t)),n(y,l,(e,t)=>e.setLayoutVariant(t)),n(y,d,(e,t)=>e.setClasses(t)),n(y,u,(e,t)=>e.setSearchTypes(t)),n(y,p,(e,t)=>e.setOnLoaderStart(t)),n(y,m,(e,t)=>e.setOnLoadError(t)),n(y,f,(e,t)=>e.setOnOrderComplete(t)),n(y,g,(e,t)=>e.setOnOrderError(t)),e.createElement("div",{ref:k,className:s,style:a})};
|
|
2
2
|
//# sourceMappingURL=phone-number-ordering.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as t,useState as r,useCallback as n,useEffect as o}from"react";import{useDialstackComponents as s}from"@dialstack/sdk-react";function a(e,o){const s=t(null),[a,i]=r(null);return{containerRef:n(t=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,i(null)),!t)return;const r=e.create(o);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(r,o)}catch(t){throw e.removeAppearanceTarget(r),t}try{r.setAttribute("data-dialstack-sdk-version","3.
|
|
1
|
+
import e,{useRef as t,useState as r,useCallback as n,useEffect as o}from"react";import{useDialstackComponents as s}from"@dialstack/sdk-react";function a(e,o){const s=t(null),[a,i]=r(null);return{containerRef:n(t=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,i(null)),!t)return;const r=e.create(o);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(r,o)}catch(t){throw e.removeAppearanceTarget(r),t}try{r.setAttribute("data-dialstack-sdk-version","3.6.0")}catch(e){console.log("Error setting SDK version attribute:",e)}t.appendChild(r),s.current=r,i(r)},[e,o]),componentInstance:a}}function i(e,t,r){o(()=>{if(e&&void 0!==t)try{r(e,t)}catch(e){console.error("DialStack: Error calling setter:",e)}},[e,t,r])}const c=({className:t,style:r,locale:n,formatting:o,icons:c,layoutVariant:l,classes:d,searchTypes:u,onLoaderStart:p,onLoadError:m,onOrderComplete:f,onOrderError:g})=>{const{dialstack:h}=s(),{containerRef:k,componentInstance:y}=a(h,"phone-number-ordering");return i(y,n,(e,t)=>e.setLocale(t)),i(y,o,(e,t)=>e.setFormatting(t)),i(y,c,(e,t)=>e.setIcons(t)),i(y,l,(e,t)=>e.setLayoutVariant(t)),i(y,d,(e,t)=>e.setClasses(t)),i(y,u,(e,t)=>e.setSearchTypes(t)),i(y,p,(e,t)=>e.setOnLoaderStart(t)),i(y,m,(e,t)=>e.setOnLoadError(t)),i(y,f,(e,t)=>e.setOnOrderComplete(t)),i(y,g,(e,t)=>e.setOnOrderError(t)),e.createElement("div",{ref:k,className:t,style:r})};export{c as PhoneNumberOrdering};
|
|
2
2
|
//# sourceMappingURL=phone-number-ordering.mjs.map
|
package/dist/phone-numbers.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("react"),e=require("@dialstack/sdk-react");function r(e,r){const n=t.useRef(null),[s,a]=t.useState(null);return{containerRef:t.useCallback(t=>{if(n.current&&n.current.parentNode&&(n.current.parentNode.removeChild(n.current),n.current=null,a(null)),!t)return;const s=e.create(r);try{!function(t,e){if(!t||"function"!=typeof t.setInstance)throw new Error(`<dialstack-${e}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(s,r)}catch(t){throw e.removeAppearanceTarget(s),t}try{s.setAttribute("data-dialstack-sdk-version","3.
|
|
1
|
+
"use strict";var t=require("react"),e=require("@dialstack/sdk-react");function r(e,r){const n=t.useRef(null),[s,a]=t.useState(null);return{containerRef:t.useCallback(t=>{if(n.current&&n.current.parentNode&&(n.current.parentNode.removeChild(n.current),n.current=null,a(null)),!t)return;const s=e.create(r);try{!function(t,e){if(!t||"function"!=typeof t.setInstance)throw new Error(`<dialstack-${e}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(s,r)}catch(t){throw e.removeAppearanceTarget(s),t}try{s.setAttribute("data-dialstack-sdk-version","3.6.0")}catch(t){console.log("Error setting SDK version attribute:",t)}t.appendChild(s),n.current=s,a(s)},[e,r]),componentInstance:s}}function n(e,r,n){t.useEffect(()=>{if(e&&void 0!==r)try{n(e,r)}catch(t){console.error("DialStack: Error calling setter:",t)}},[e,r,n])}exports.PhoneNumbers=({className:s,style:a,limit:o,locale:i,formatting:c,icons:l,layoutVariant:u,classes:d,onLoaderStart:m,onLoadError:p,onRowClick:f})=>{const{dialstack:k}=e.useDialstackComponents(),{containerRef:g,componentInstance:h}=r(k,"phone-numbers");return n(h,o,(t,e)=>t.setLimit(e)),n(h,i,(t,e)=>t.setLocale(e)),n(h,c,(t,e)=>t.setFormatting(e)),n(h,l,(t,e)=>t.setIcons(e)),n(h,u,(t,e)=>t.setLayoutVariant(e)),n(h,d,(t,e)=>t.setClasses(e)),n(h,m,(t,e)=>t.setOnLoaderStart(e)),n(h,p,(t,e)=>t.setOnLoadError(e)),n(h,f,(t,e)=>t.setOnRowClick(e)),t.createElement("div",{ref:g,className:s,style:a})};
|
|
2
2
|
//# sourceMappingURL=phone-numbers.cjs.map
|
package/dist/phone-numbers.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t,{useRef as e,useState as r,useCallback as n,useEffect as o}from"react";import{useDialstackComponents as s}from"@dialstack/sdk-react";function a(t,o){const s=e(null),[a,i]=r(null);return{containerRef:n(e=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,i(null)),!e)return;const r=t.create(o);try{!function(t,e){if(!t||"function"!=typeof t.setInstance)throw new Error(`<dialstack-${e}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(r,o)}catch(e){throw t.removeAppearanceTarget(r),e}try{r.setAttribute("data-dialstack-sdk-version","3.
|
|
1
|
+
import t,{useRef as e,useState as r,useCallback as n,useEffect as o}from"react";import{useDialstackComponents as s}from"@dialstack/sdk-react";function a(t,o){const s=e(null),[a,i]=r(null);return{containerRef:n(e=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,i(null)),!e)return;const r=t.create(o);try{!function(t,e){if(!t||"function"!=typeof t.setInstance)throw new Error(`<dialstack-${e}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(r,o)}catch(e){throw t.removeAppearanceTarget(r),e}try{r.setAttribute("data-dialstack-sdk-version","3.6.0")}catch(t){console.log("Error setting SDK version attribute:",t)}e.appendChild(r),s.current=r,i(r)},[t,o]),componentInstance:a}}function i(t,e,r){o(()=>{if(t&&void 0!==e)try{r(t,e)}catch(t){console.error("DialStack: Error calling setter:",t)}},[t,e,r])}const c=({className:e,style:r,limit:n,locale:o,formatting:c,icons:l,layoutVariant:d,classes:u,onLoaderStart:m,onLoadError:p,onRowClick:f})=>{const{dialstack:g}=s(),{containerRef:k,componentInstance:h}=a(g,"phone-numbers");return i(h,n,(t,e)=>t.setLimit(e)),i(h,o,(t,e)=>t.setLocale(e)),i(h,c,(t,e)=>t.setFormatting(e)),i(h,l,(t,e)=>t.setIcons(e)),i(h,d,(t,e)=>t.setLayoutVariant(e)),i(h,u,(t,e)=>t.setClasses(e)),i(h,m,(t,e)=>t.setOnLoaderStart(e)),i(h,p,(t,e)=>t.setOnLoadError(e)),i(h,f,(t,e)=>t.setOnRowClick(e)),t.createElement("div",{ref:k,className:e,style:r})};export{c as PhoneNumbers};
|
|
2
2
|
//# sourceMappingURL=phone-numbers.mjs.map
|
package/dist/voicemails.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("@dialstack/sdk-react");function r(t,r){const s=e.useRef(null),[n,a]=e.useState(null);return{containerRef:e.useCallback(e=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,a(null)),!e)return;const n=t.create(r);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(n,r)}catch(e){throw t.removeAppearanceTarget(n),e}try{n.setAttribute("data-dialstack-sdk-version","3.
|
|
1
|
+
"use strict";var e=require("react"),t=require("@dialstack/sdk-react");function r(t,r){const s=e.useRef(null),[n,a]=e.useState(null);return{containerRef:e.useCallback(e=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,a(null)),!e)return;const n=t.create(r);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(n,r)}catch(e){throw t.removeAppearanceTarget(n),e}try{n.setAttribute("data-dialstack-sdk-version","3.6.0")}catch(e){console.log("Error setting SDK version attribute:",e)}e.appendChild(n),s.current=n,a(n)},[t,r]),componentInstance:n}}function s(t,r,s){e.useEffect(()=>{if(t&&void 0!==r)try{s(t,r)}catch(e){console.error("DialStack: Error calling setter:",e)}},[t,r,s])}exports.Voicemails=({userId:n,className:a,style:o,locale:i,formatting:c,icons:l,layoutVariant:u,classes:d,displayOptions:m,behaviorOptions:p,customRowRenderer:f,onLoaderStart:k,onLoadError:g,onVoicemailSelect:h,onVoicemailPlay:y,onVoicemailPause:O,onVoicemailDelete:V,onCallBack:v,onDeleteRequest:w})=>{const{dialstack:C}=t.useDialstackComponents(),{containerRef:R,componentInstance:D}=r(C,"voicemails");return s(D,n,(e,t)=>e.setUserId(t)),s(D,i,(e,t)=>e.setLocale(t)),s(D,c,(e,t)=>e.setFormatting(t)),s(D,l,(e,t)=>e.setIcons(t)),s(D,u,(e,t)=>e.setLayoutVariant(t)),s(D,d,(e,t)=>e.setClasses(t)),s(D,m,(e,t)=>e.setDisplayOptions(t)),s(D,p,(e,t)=>e.setBehaviorOptions(t)),s(D,f,(e,t)=>e.setCustomRowRenderer(t)),s(D,k,(e,t)=>e.setOnLoaderStart(t)),s(D,g,(e,t)=>e.setOnLoadError(t)),s(D,h,(e,t)=>e.setOnVoicemailSelect(t)),s(D,y,(e,t)=>e.setOnVoicemailPlay(t)),s(D,O,(e,t)=>e.setOnVoicemailPause(t)),s(D,V,(e,t)=>e.setOnVoicemailDelete(t)),s(D,v,(e,t)=>e.setOnCallBack(t)),s(D,w,(e,t)=>e.setOnDeleteRequest(t)),e.createElement("div",{ref:R,className:a,style:o})};
|
|
2
2
|
//# sourceMappingURL=voicemails.cjs.map
|
package/dist/voicemails.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as t,useState as n,useCallback as r,useEffect as o}from"react";import{useDialstackComponents as s}from"@dialstack/sdk-react";function a(e,o){const s=t(null),[a,i]=n(null);return{containerRef:r(t=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,i(null)),!t)return;const n=e.create(o);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(n,o)}catch(t){throw e.removeAppearanceTarget(n),t}try{n.setAttribute("data-dialstack-sdk-version","3.
|
|
1
|
+
import e,{useRef as t,useState as n,useCallback as r,useEffect as o}from"react";import{useDialstackComponents as s}from"@dialstack/sdk-react";function a(e,o){const s=t(null),[a,i]=n(null);return{containerRef:r(t=>{if(s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null,i(null)),!t)return;const n=e.create(o);try{!function(e,t){if(!e||"function"!=typeof e.setInstance)throw new Error(`<dialstack-${t}> was created but is not a registered custom element, so it would render nothing. Install @dialstack/sdk-js alongside @dialstack/sdk-react and import it once at your entry point — importing it is what registers the elements. On @dialstack/sdk-js/pure nothing registers on import: await registerComponents() before rendering. If it is installed, check that your bundler is not dropping its side effects.`)}(n,o)}catch(t){throw e.removeAppearanceTarget(n),t}try{n.setAttribute("data-dialstack-sdk-version","3.6.0")}catch(e){console.log("Error setting SDK version attribute:",e)}t.appendChild(n),s.current=n,i(n)},[e,o]),componentInstance:a}}function i(e,t,n){o(()=>{if(e&&void 0!==t)try{n(e,t)}catch(e){console.error("DialStack: Error calling setter:",e)}},[e,t,n])}const c=({userId:t,className:n,style:r,locale:o,formatting:c,icons:l,layoutVariant:d,classes:u,displayOptions:m,behaviorOptions:p,customRowRenderer:f,onLoaderStart:g,onLoadError:k,onVoicemailSelect:h,onVoicemailPlay:y,onVoicemailPause:O,onVoicemailDelete:V,onCallBack:v,onDeleteRequest:w})=>{const{dialstack:I}=s(),{containerRef:R,componentInstance:C}=a(I,"voicemails");return i(C,t,(e,t)=>e.setUserId(t)),i(C,o,(e,t)=>e.setLocale(t)),i(C,c,(e,t)=>e.setFormatting(t)),i(C,l,(e,t)=>e.setIcons(t)),i(C,d,(e,t)=>e.setLayoutVariant(t)),i(C,u,(e,t)=>e.setClasses(t)),i(C,m,(e,t)=>e.setDisplayOptions(t)),i(C,p,(e,t)=>e.setBehaviorOptions(t)),i(C,f,(e,t)=>e.setCustomRowRenderer(t)),i(C,g,(e,t)=>e.setOnLoaderStart(t)),i(C,k,(e,t)=>e.setOnLoadError(t)),i(C,h,(e,t)=>e.setOnVoicemailSelect(t)),i(C,y,(e,t)=>e.setOnVoicemailPlay(t)),i(C,O,(e,t)=>e.setOnVoicemailPause(t)),i(C,V,(e,t)=>e.setOnVoicemailDelete(t)),i(C,v,(e,t)=>e.setOnCallBack(t)),i(C,w,(e,t)=>e.setOnDeleteRequest(t)),e.createElement("div",{ref:R,className:n,style:r})};export{c as Voicemails};
|
|
2
2
|
//# sourceMappingURL=voicemails.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialstack/sdk-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "React components and hooks for the DialStack SDK — call logs, voicemails, dial plan, softphone and onboarding",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -171,14 +171,14 @@
|
|
|
171
171
|
"prepublishOnly": "npm run clean && npm run build"
|
|
172
172
|
},
|
|
173
173
|
"dependencies": {
|
|
174
|
-
"@dialstack/sdk-webrtc": "3.
|
|
174
|
+
"@dialstack/sdk-webrtc": "3.6.0",
|
|
175
175
|
"canvas-confetti": "^1.9.4",
|
|
176
176
|
"cmdk": "^1.1.1",
|
|
177
177
|
"dagre": "^0.8.5",
|
|
178
178
|
"libphonenumber-js": "^1.13.14"
|
|
179
179
|
},
|
|
180
180
|
"peerDependencies": {
|
|
181
|
-
"@dialstack/sdk-js": ">=3.
|
|
181
|
+
"@dialstack/sdk-js": ">=3.6.0 <4",
|
|
182
182
|
"@xyflow/react": "^12.0.0",
|
|
183
183
|
"react": "^18 || ^19",
|
|
184
184
|
"react-dom": "^18 || ^19"
|