@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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +108 -0
  3. package/dist/ai-agent.cjs +2 -0
  4. package/dist/ai-agent.cjs.map +1 -0
  5. package/dist/ai-agent.d.cts +89 -0
  6. package/dist/ai-agent.d.ts +89 -0
  7. package/dist/ai-agent.mjs +2 -0
  8. package/dist/ai-agent.mjs.map +1 -0
  9. package/dist/call-history.cjs +2 -0
  10. package/dist/call-history.cjs.map +1 -0
  11. package/dist/call-history.d.cts +88 -0
  12. package/dist/call-history.d.ts +88 -0
  13. package/dist/call-history.mjs +2 -0
  14. package/dist/call-history.mjs.map +1 -0
  15. package/dist/call-logs.cjs +2 -0
  16. package/dist/call-logs.cjs.map +1 -0
  17. package/dist/call-logs.d.cts +104 -0
  18. package/dist/call-logs.d.ts +104 -0
  19. package/dist/call-logs.mjs +2 -0
  20. package/dist/call-logs.mjs.map +1 -0
  21. package/dist/dial-plan.cjs +2 -0
  22. package/dist/dial-plan.cjs.map +1 -0
  23. package/dist/dial-plan.d.cts +70 -0
  24. package/dist/dial-plan.d.ts +70 -0
  25. package/dist/dial-plan.mjs +2 -0
  26. package/dist/dial-plan.mjs.map +1 -0
  27. package/dist/index.cjs +2 -0
  28. package/dist/index.cjs.map +1 -0
  29. package/dist/index.d.cts +148 -0
  30. package/dist/index.d.ts +148 -0
  31. package/dist/index.mjs +2 -0
  32. package/dist/index.mjs.map +1 -0
  33. package/dist/onboarding.cjs +2 -0
  34. package/dist/onboarding.cjs.map +1 -0
  35. package/dist/onboarding.d.cts +49 -0
  36. package/dist/onboarding.d.ts +49 -0
  37. package/dist/onboarding.mjs +2 -0
  38. package/dist/onboarding.mjs.map +1 -0
  39. package/dist/phone-number-ordering.cjs +2 -0
  40. package/dist/phone-number-ordering.cjs.map +1 -0
  41. package/dist/phone-number-ordering.d.cts +83 -0
  42. package/dist/phone-number-ordering.d.ts +83 -0
  43. package/dist/phone-number-ordering.mjs +2 -0
  44. package/dist/phone-number-ordering.mjs.map +1 -0
  45. package/dist/phone-numbers.cjs +2 -0
  46. package/dist/phone-numbers.cjs.map +1 -0
  47. package/dist/phone-numbers.d.cts +77 -0
  48. package/dist/phone-numbers.d.ts +77 -0
  49. package/dist/phone-numbers.mjs +2 -0
  50. package/dist/phone-numbers.mjs.map +1 -0
  51. package/dist/softphone.cjs +2 -0
  52. package/dist/softphone.cjs.map +1 -0
  53. package/dist/softphone.d.cts +610 -0
  54. package/dist/softphone.d.ts +610 -0
  55. package/dist/softphone.mjs +2 -0
  56. package/dist/softphone.mjs.map +1 -0
  57. package/dist/voicemails.cjs +2 -0
  58. package/dist/voicemails.cjs.map +1 -0
  59. package/dist/voicemails.d.cts +128 -0
  60. package/dist/voicemails.d.ts +128 -0
  61. package/dist/voicemails.mjs +2 -0
  62. package/dist/voicemails.mjs.map +1 -0
  63. package/package.json +192 -0
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { Locale, FormattingOptions, ComponentIcons, OnboardingCollectionOptions, AccountOnboardingStep } from '@dialstack/sdk-js/pure';
3
+
4
+ /**
5
+ * Top-level OnboardingPortal component.
6
+ *
7
+ * Hydrates the progress store from derived account data (no DB sync — onboarding
8
+ * status is computed live from DIDs, devices, locations, etc.) and composes the
9
+ * portal shell: PortalSidebar + SplashScreen / OverviewScreen / wizard.
10
+ *
11
+ * Splash is gated on a per-browser+account localStorage flag — the flag flips
12
+ * true when the user clicks "Start Onboarding," so subsequent visits in the
13
+ * same browser skip splash regardless of step progress. The confetti screen
14
+ * fires only on the in-session transition into onboarding_complete, so it is
15
+ * never re-shown on reload.
16
+ */
17
+
18
+ interface OnboardingPortalProps {
19
+ locale?: Locale;
20
+ formatting?: FormattingOptions;
21
+ icons?: ComponentIcons;
22
+ collectionOptions?: OnboardingCollectionOptions;
23
+ fullTermsOfServiceUrl?: string;
24
+ recipientTermsOfServiceUrl?: string;
25
+ privacyPolicyUrl?: string;
26
+ onBack?: () => void;
27
+ backLabel?: string;
28
+ logoHtml?: string;
29
+ platformName?: string;
30
+ theme?: 'light' | 'dark';
31
+ appearance?: {
32
+ variables?: {
33
+ colorPrimary?: string;
34
+ colorPrimaryHover?: string;
35
+ };
36
+ };
37
+ documentationUrl?: string;
38
+ onScheduleCall?: () => void;
39
+ onHelpSupport?: () => void;
40
+ onStepChange?: (event: {
41
+ step: AccountOnboardingStep;
42
+ }) => void;
43
+ className?: string;
44
+ style?: React.CSSProperties;
45
+ }
46
+ declare const OnboardingPortal: React.FC<OnboardingPortalProps>;
47
+
48
+ export { OnboardingPortal };
49
+ export type { OnboardingPortalProps };
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { Locale, FormattingOptions, ComponentIcons, OnboardingCollectionOptions, AccountOnboardingStep } from '@dialstack/sdk-js/pure';
3
+
4
+ /**
5
+ * Top-level OnboardingPortal component.
6
+ *
7
+ * Hydrates the progress store from derived account data (no DB sync — onboarding
8
+ * status is computed live from DIDs, devices, locations, etc.) and composes the
9
+ * portal shell: PortalSidebar + SplashScreen / OverviewScreen / wizard.
10
+ *
11
+ * Splash is gated on a per-browser+account localStorage flag — the flag flips
12
+ * true when the user clicks "Start Onboarding," so subsequent visits in the
13
+ * same browser skip splash regardless of step progress. The confetti screen
14
+ * fires only on the in-session transition into onboarding_complete, so it is
15
+ * never re-shown on reload.
16
+ */
17
+
18
+ interface OnboardingPortalProps {
19
+ locale?: Locale;
20
+ formatting?: FormattingOptions;
21
+ icons?: ComponentIcons;
22
+ collectionOptions?: OnboardingCollectionOptions;
23
+ fullTermsOfServiceUrl?: string;
24
+ recipientTermsOfServiceUrl?: string;
25
+ privacyPolicyUrl?: string;
26
+ onBack?: () => void;
27
+ backLabel?: string;
28
+ logoHtml?: string;
29
+ platformName?: string;
30
+ theme?: 'light' | 'dark';
31
+ appearance?: {
32
+ variables?: {
33
+ colorPrimary?: string;
34
+ colorPrimaryHover?: string;
35
+ };
36
+ };
37
+ documentationUrl?: string;
38
+ onScheduleCall?: () => void;
39
+ onHelpSupport?: () => void;
40
+ onStepChange?: (event: {
41
+ step: AccountOnboardingStep;
42
+ }) => void;
43
+ className?: string;
44
+ style?: React.CSSProperties;
45
+ }
46
+ declare const OnboardingPortal: React.FC<OnboardingPortalProps>;
47
+
48
+ export { OnboardingPortal };
49
+ export type { OnboardingPortalProps };