@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,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 };
|