@dialstack/sdk-react 2.1.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/LICENSE +21 -0
- package/README.md +108 -0
- package/dist/ai-agent.cjs +2 -0
- package/dist/ai-agent.cjs.map +1 -0
- package/dist/ai-agent.d.cts +89 -0
- package/dist/ai-agent.d.ts +89 -0
- package/dist/ai-agent.mjs +2 -0
- package/dist/ai-agent.mjs.map +1 -0
- package/dist/call-history.cjs +2 -0
- package/dist/call-history.cjs.map +1 -0
- package/dist/call-history.d.cts +88 -0
- package/dist/call-history.d.ts +88 -0
- package/dist/call-history.mjs +2 -0
- package/dist/call-history.mjs.map +1 -0
- package/dist/call-logs.cjs +2 -0
- package/dist/call-logs.cjs.map +1 -0
- package/dist/call-logs.d.cts +104 -0
- package/dist/call-logs.d.ts +104 -0
- package/dist/call-logs.mjs +2 -0
- package/dist/call-logs.mjs.map +1 -0
- package/dist/dial-plan.cjs +2 -0
- package/dist/dial-plan.cjs.map +1 -0
- package/dist/dial-plan.d.cts +70 -0
- package/dist/dial-plan.d.ts +70 -0
- package/dist/dial-plan.mjs +2 -0
- package/dist/dial-plan.mjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +148 -0
- package/dist/index.d.ts +148 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/onboarding.cjs +2 -0
- package/dist/onboarding.cjs.map +1 -0
- package/dist/onboarding.d.cts +49 -0
- package/dist/onboarding.d.ts +49 -0
- package/dist/onboarding.mjs +2 -0
- package/dist/onboarding.mjs.map +1 -0
- package/dist/phone-number-ordering.cjs +2 -0
- package/dist/phone-number-ordering.cjs.map +1 -0
- package/dist/phone-number-ordering.d.cts +83 -0
- package/dist/phone-number-ordering.d.ts +83 -0
- package/dist/phone-number-ordering.mjs +2 -0
- package/dist/phone-number-ordering.mjs.map +1 -0
- package/dist/phone-numbers.cjs +2 -0
- package/dist/phone-numbers.cjs.map +1 -0
- package/dist/phone-numbers.d.cts +77 -0
- package/dist/phone-numbers.d.ts +77 -0
- package/dist/phone-numbers.mjs +2 -0
- package/dist/phone-numbers.mjs.map +1 -0
- package/dist/softphone.cjs +2 -0
- package/dist/softphone.cjs.map +1 -0
- package/dist/softphone.d.cts +610 -0
- package/dist/softphone.d.ts +610 -0
- package/dist/softphone.mjs +2 -0
- package/dist/softphone.mjs.map +1 -0
- package/dist/voicemails.cjs +2 -0
- package/dist/voicemails.cjs.map +1 -0
- package/dist/voicemails.d.cts +128 -0
- package/dist/voicemails.d.ts +128 -0
- package/dist/voicemails.mjs +2 -0
- package/dist/voicemails.mjs.map +1 -0
- package/package.json +192 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale, FormattingOptions, ComponentIcons, LayoutVariant, VoicemailsClasses, VoicemailDisplayOptions, VoicemailBehaviorOptions, VoicemailRowRenderer, LoaderStart, LoadError } from '@dialstack/sdk-js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* React wrapper for Voicemails Web Component
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
interface VoicemailsProps {
|
|
9
|
+
/**
|
|
10
|
+
* User ID to fetch voicemails for (required)
|
|
11
|
+
*/
|
|
12
|
+
userId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional CSS class name
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional inline styles
|
|
19
|
+
*/
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
/**
|
|
22
|
+
* Locale for UI strings
|
|
23
|
+
*/
|
|
24
|
+
locale?: Locale;
|
|
25
|
+
/**
|
|
26
|
+
* Formatting options for dates and phone numbers
|
|
27
|
+
*/
|
|
28
|
+
formatting?: FormattingOptions;
|
|
29
|
+
/**
|
|
30
|
+
* Custom icons (partial override of defaults)
|
|
31
|
+
*/
|
|
32
|
+
icons?: ComponentIcons;
|
|
33
|
+
/**
|
|
34
|
+
* Layout variant (compact, comfortable, default)
|
|
35
|
+
*/
|
|
36
|
+
layoutVariant?: LayoutVariant;
|
|
37
|
+
/**
|
|
38
|
+
* Custom CSS classes for styling integration
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Voicemails
|
|
43
|
+
* classes={{
|
|
44
|
+
* base: 'rounded-lg border',
|
|
45
|
+
* loading: 'animate-pulse',
|
|
46
|
+
* item: 'hover:bg-gray-50',
|
|
47
|
+
* itemUnread: 'font-bold'
|
|
48
|
+
* }}
|
|
49
|
+
* />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
classes?: VoicemailsClasses;
|
|
53
|
+
/**
|
|
54
|
+
* Display options for controlling field visibility
|
|
55
|
+
*/
|
|
56
|
+
displayOptions?: VoicemailDisplayOptions;
|
|
57
|
+
/**
|
|
58
|
+
* Behavior options for controlling component behavior
|
|
59
|
+
*/
|
|
60
|
+
behaviorOptions?: VoicemailBehaviorOptions;
|
|
61
|
+
/**
|
|
62
|
+
* Custom row renderer for collapsed voicemail items
|
|
63
|
+
*/
|
|
64
|
+
customRowRenderer?: VoicemailRowRenderer;
|
|
65
|
+
/**
|
|
66
|
+
* Callback when component starts loading
|
|
67
|
+
*/
|
|
68
|
+
onLoaderStart?: (event: LoaderStart) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Callback when there's an error loading voicemails
|
|
71
|
+
*/
|
|
72
|
+
onLoadError?: (event: LoadError) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback when a voicemail is selected
|
|
75
|
+
*/
|
|
76
|
+
onVoicemailSelect?: (event: {
|
|
77
|
+
voicemailId: string;
|
|
78
|
+
}) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Callback when a voicemail starts playing
|
|
81
|
+
*/
|
|
82
|
+
onVoicemailPlay?: (event: {
|
|
83
|
+
voicemailId: string;
|
|
84
|
+
}) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Callback when a voicemail is paused
|
|
87
|
+
*/
|
|
88
|
+
onVoicemailPause?: (event: {
|
|
89
|
+
voicemailId: string;
|
|
90
|
+
}) => void;
|
|
91
|
+
/**
|
|
92
|
+
* Callback when a voicemail is deleted
|
|
93
|
+
*/
|
|
94
|
+
onVoicemailDelete?: (event: {
|
|
95
|
+
voicemailId: string;
|
|
96
|
+
}) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Callback when call back button is clicked
|
|
99
|
+
*/
|
|
100
|
+
onCallBack?: (event: {
|
|
101
|
+
phoneNumber: string;
|
|
102
|
+
}) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Custom delete confirmation handler. Return true to proceed with deletion.
|
|
105
|
+
*/
|
|
106
|
+
onDeleteRequest?: (voicemailId: string) => Promise<boolean>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Voicemails component displays a list of voicemails for a specific user
|
|
110
|
+
*
|
|
111
|
+
* Must be used within a DialstackComponentsProvider.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```tsx
|
|
115
|
+
* <DialstackComponentsProvider dialstack={dialstack}>
|
|
116
|
+
* <Voicemails
|
|
117
|
+
* userId="user-uuid-123"
|
|
118
|
+
* onLoadError={(e) => console.error(e.error)}
|
|
119
|
+
* onVoicemailSelect={(e) => console.log('Selected:', e.voicemailId)}
|
|
120
|
+
* onCallBack={(e) => initiateCall(e.phoneNumber)}
|
|
121
|
+
* />
|
|
122
|
+
* </DialstackComponentsProvider>
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
declare const Voicemails: React.FC<VoicemailsProps>;
|
|
126
|
+
|
|
127
|
+
export { Voicemails };
|
|
128
|
+
export type { VoicemailsProps };
|
|
@@ -0,0 +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",_NPM_PACKAGE_VERSION_)}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
|
+
//# sourceMappingURL=voicemails.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voicemails.mjs","sources":["../src/react/useCreateComponent.tsx","../src/react/useUpdateWithSetter.ts","../src/react/Voicemails.tsx"],"sourcesContent":[null,null,null],"names":["useCreateComponent","dialstack","tagName","componentRef","useRef","componentInstance","setComponentInstance","useState","containerRef","useCallback","container","current","parentNode","removeChild","component","create","element","setInstance","Error","assertUpgraded","err","removeAppearanceTarget","setAttribute","_NPM_PACKAGE_VERSION_","e","console","log","appendChild","useUpdateWithSetter","value","onUpdated","useEffect","undefined","error","Voicemails","userId","className","style","locale","formatting","icons","layoutVariant","classes","displayOptions","behaviorOptions","customRowRenderer","onLoaderStart","onLoadError","onVoicemailSelect","onVoicemailPlay","onVoicemailPause","onVoicemailDelete","onCallBack","onDeleteRequest","useDialstackComponents","comp","val","setUserId","setLocale","setFormatting","setIcons","setLayoutVariant","setClasses","setDisplayOptions","setBehaviorOptions","setCustomRowRenderer","setOnLoaderStart","setOnLoadError","setOnVoicemailSelect","setOnVoicemailPlay","setOnVoicemailPause","setOnVoicemailDelete","setOnCallBack","setOnDeleteRequest","React","createElement","ref"],"mappings":"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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dialstack/sdk-react",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "React components and hooks for the DialStack SDK \u2014 call logs, voicemails, dial plan, softphone and onboarding",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"author": "DialStack",
|
|
8
|
+
"homepage": "https://github.com/dialstack/dialstack-sdk#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/dialstack/dialstack-sdk.git",
|
|
12
|
+
"directory": "react"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/dialstack/dialstack-sdk/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"dialstack",
|
|
19
|
+
"voice",
|
|
20
|
+
"telephony",
|
|
21
|
+
"react",
|
|
22
|
+
"softphone",
|
|
23
|
+
"embedded-components"
|
|
24
|
+
],
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
".": {
|
|
29
|
+
"import": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.mjs"
|
|
32
|
+
},
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./dist/index.d.cts",
|
|
35
|
+
"default": "./dist/index.cjs"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"./softphone": {
|
|
39
|
+
"import": {
|
|
40
|
+
"types": "./dist/softphone.d.ts",
|
|
41
|
+
"default": "./dist/softphone.mjs"
|
|
42
|
+
},
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./dist/softphone.d.cts",
|
|
45
|
+
"default": "./dist/softphone.cjs"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"./dial-plan": {
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/dial-plan.d.ts",
|
|
51
|
+
"default": "./dist/dial-plan.mjs"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/dial-plan.d.cts",
|
|
55
|
+
"default": "./dist/dial-plan.cjs"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"./onboarding": {
|
|
59
|
+
"import": {
|
|
60
|
+
"types": "./dist/onboarding.d.ts",
|
|
61
|
+
"default": "./dist/onboarding.mjs"
|
|
62
|
+
},
|
|
63
|
+
"require": {
|
|
64
|
+
"types": "./dist/onboarding.d.cts",
|
|
65
|
+
"default": "./dist/onboarding.cjs"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"./ai-agent": {
|
|
69
|
+
"import": {
|
|
70
|
+
"types": "./dist/ai-agent.d.ts",
|
|
71
|
+
"default": "./dist/ai-agent.mjs"
|
|
72
|
+
},
|
|
73
|
+
"require": {
|
|
74
|
+
"types": "./dist/ai-agent.d.cts",
|
|
75
|
+
"default": "./dist/ai-agent.cjs"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"./call-logs": {
|
|
79
|
+
"import": {
|
|
80
|
+
"types": "./dist/call-logs.d.ts",
|
|
81
|
+
"default": "./dist/call-logs.mjs"
|
|
82
|
+
},
|
|
83
|
+
"require": {
|
|
84
|
+
"types": "./dist/call-logs.d.cts",
|
|
85
|
+
"default": "./dist/call-logs.cjs"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"./voicemails": {
|
|
89
|
+
"import": {
|
|
90
|
+
"types": "./dist/voicemails.d.ts",
|
|
91
|
+
"default": "./dist/voicemails.mjs"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/voicemails.d.cts",
|
|
95
|
+
"default": "./dist/voicemails.cjs"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"./call-history": {
|
|
99
|
+
"import": {
|
|
100
|
+
"types": "./dist/call-history.d.ts",
|
|
101
|
+
"default": "./dist/call-history.mjs"
|
|
102
|
+
},
|
|
103
|
+
"require": {
|
|
104
|
+
"types": "./dist/call-history.d.cts",
|
|
105
|
+
"default": "./dist/call-history.cjs"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"./phone-numbers": {
|
|
109
|
+
"import": {
|
|
110
|
+
"types": "./dist/phone-numbers.d.ts",
|
|
111
|
+
"default": "./dist/phone-numbers.mjs"
|
|
112
|
+
},
|
|
113
|
+
"require": {
|
|
114
|
+
"types": "./dist/phone-numbers.d.cts",
|
|
115
|
+
"default": "./dist/phone-numbers.cjs"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"./phone-number-ordering": {
|
|
119
|
+
"import": {
|
|
120
|
+
"types": "./dist/phone-number-ordering.d.ts",
|
|
121
|
+
"default": "./dist/phone-number-ordering.mjs"
|
|
122
|
+
},
|
|
123
|
+
"require": {
|
|
124
|
+
"types": "./dist/phone-number-ordering.d.cts",
|
|
125
|
+
"default": "./dist/phone-number-ordering.cjs"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"main": "./dist/index.cjs",
|
|
130
|
+
"module": "./dist/index.mjs",
|
|
131
|
+
"typesVersions": {
|
|
132
|
+
"*": {
|
|
133
|
+
"softphone": [
|
|
134
|
+
"./dist/softphone.d.ts"
|
|
135
|
+
],
|
|
136
|
+
"dial-plan": [
|
|
137
|
+
"./dist/dial-plan.d.ts"
|
|
138
|
+
],
|
|
139
|
+
"onboarding": [
|
|
140
|
+
"./dist/onboarding.d.ts"
|
|
141
|
+
],
|
|
142
|
+
"ai-agent": [
|
|
143
|
+
"./dist/ai-agent.d.ts"
|
|
144
|
+
],
|
|
145
|
+
"call-logs": [
|
|
146
|
+
"./dist/call-logs.d.ts"
|
|
147
|
+
],
|
|
148
|
+
"voicemails": [
|
|
149
|
+
"./dist/voicemails.d.ts"
|
|
150
|
+
],
|
|
151
|
+
"call-history": [
|
|
152
|
+
"./dist/call-history.d.ts"
|
|
153
|
+
],
|
|
154
|
+
"phone-numbers": [
|
|
155
|
+
"./dist/phone-numbers.d.ts"
|
|
156
|
+
],
|
|
157
|
+
"phone-number-ordering": [
|
|
158
|
+
"./dist/phone-number-ordering.d.ts"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"sideEffects": false,
|
|
163
|
+
"files": [
|
|
164
|
+
"dist"
|
|
165
|
+
],
|
|
166
|
+
"scripts": {
|
|
167
|
+
"build": "rollup -c",
|
|
168
|
+
"clean": "rm -rf dist",
|
|
169
|
+
"typecheck": "tsc --noEmit",
|
|
170
|
+
"check:package": "publint && attw --pack .",
|
|
171
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
172
|
+
},
|
|
173
|
+
"dependencies": {
|
|
174
|
+
"@dialstack/sdk-webrtc": "2.1.0",
|
|
175
|
+
"canvas-confetti": "^1.9.4",
|
|
176
|
+
"cmdk": "^1.1.1",
|
|
177
|
+
"dagre": "^0.8.5",
|
|
178
|
+
"libphonenumber-js": "^1.13.9"
|
|
179
|
+
},
|
|
180
|
+
"peerDependencies": {
|
|
181
|
+
"@dialstack/sdk-js": ">=2.1.0 <3",
|
|
182
|
+
"@xyflow/react": "^12.0.0",
|
|
183
|
+
"react": "^18 || ^19",
|
|
184
|
+
"react-dom": "^18 || ^19"
|
|
185
|
+
},
|
|
186
|
+
"engines": {
|
|
187
|
+
"node": ">=20.0.0"
|
|
188
|
+
},
|
|
189
|
+
"devDependencies": {
|
|
190
|
+
"rollup-plugin-dts": "^6.5.1"
|
|
191
|
+
}
|
|
192
|
+
}
|