@livechat/platform-workflows 0.0.18 → 0.0.20
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/index.d.mts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +350 -650
- package/dist/index.mjs +298 -618
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigBase, Config } from '@livechat/developer-studio-ui-react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IntegrationNames, GithubClientAuthorization, NetlifyClientAuthorization, VercelClientAuthorization,
|
|
2
|
+
import React$1 from 'react';
|
|
3
|
+
import { IntegrationNames, GithubClientAuthorization, NetlifyClientAuthorization, VercelClientAuthorization, MailchimpClientAuthorization, ShopifyClientAuthorization, HubspotClientAuthorization, BigCommerceClientAuthorization, TextClientAuthorization } from '@livechat/developer-studio-api';
|
|
4
4
|
|
|
5
5
|
interface WorkflowsConfigBase extends Omit<ConfigBase, "accountsClientId"> {
|
|
6
6
|
publicUrl: string;
|
|
@@ -13,7 +13,6 @@ type WorkflowsConfig = WorkflowsConfigBase & Config & {
|
|
|
13
13
|
githubOauthClientId: string;
|
|
14
14
|
hubpotClientId: string;
|
|
15
15
|
mailchimpClientId: string;
|
|
16
|
-
neonClientId: string;
|
|
17
16
|
netlifyClientId: string;
|
|
18
17
|
shopifyClientId: string;
|
|
19
18
|
vercelClientId: string;
|
|
@@ -26,9 +25,9 @@ type WorkflowsConfig = WorkflowsConfigBase & Config & {
|
|
|
26
25
|
};
|
|
27
26
|
declare function setWorkflowsConfig(newConfig: Partial<WorkflowsConfigBase>): void;
|
|
28
27
|
declare function getWorkflowsConfig(): WorkflowsConfig;
|
|
29
|
-
declare const getWorkflowEnv: <T extends "accountsClientId" | "env" | "publicUrl" | "isHeadless" | "bigcommerceClientId" | "githubAppClientId" | "githubOauthClientId" | "hubpotClientId" | "mailchimpClientId" | "
|
|
28
|
+
declare const getWorkflowEnv: <T extends "accountsClientId" | "env" | "publicUrl" | "isHeadless" | "bigcommerceClientId" | "githubAppClientId" | "githubOauthClientId" | "hubpotClientId" | "mailchimpClientId" | "netlifyClientId" | "shopifyClientId" | "vercelClientId" | "textClientId" | "workflowsAppId" | "workflowsWebhooksAppId" | "aiAgentId" | "pusherKey" | "amplitudeKey" | "accountsUrl" | "platformUrl" | "adapterUrl" | "workflowsApiUr" | "dpsApiUrl" | "billingApiUrl" | "adapterApiUrl" | "livechatApiUrl" | "textApiUrl">(key: T) => WorkflowsConfig[T];
|
|
30
29
|
|
|
31
|
-
type AuthSource = IntegrationNames.Accounts | IntegrationNames.GitHub | IntegrationNames.Vercel | IntegrationNames.Netlify | IntegrationNames.
|
|
30
|
+
type AuthSource = IntegrationNames.Accounts | IntegrationNames.GitHub | IntegrationNames.Vercel | IntegrationNames.Netlify | IntegrationNames.Mailchimp | IntegrationNames.Shopify | IntegrationNames.HubSpot | IntegrationNames.BigCommerce | IntegrationNames.Text;
|
|
32
31
|
interface AuthState {
|
|
33
32
|
github: {
|
|
34
33
|
raw: GithubClientAuthorization;
|
|
@@ -48,12 +47,6 @@ interface AuthState {
|
|
|
48
47
|
isAuthorized?: boolean;
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
|
-
neon: {
|
|
52
|
-
raw: NeonClientAuthorization;
|
|
53
|
-
data: {
|
|
54
|
-
isAuthorized?: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
50
|
mailchimp: {
|
|
58
51
|
raw: MailchimpClientAuthorization;
|
|
59
52
|
data: {
|
|
@@ -99,16 +92,23 @@ interface IAuthContext {
|
|
|
99
92
|
login: ({ source, data }: AuthStateActionParams) => void;
|
|
100
93
|
logout: (source: keyof Omit<AuthState, "context">) => void;
|
|
101
94
|
}
|
|
102
|
-
declare const AuthContext: React.Context<IAuthContext>;
|
|
95
|
+
declare const AuthContext: React$1.Context<IAuthContext>;
|
|
103
96
|
declare function AuthProvider({ children }: {
|
|
104
|
-
children: React.ReactNode;
|
|
97
|
+
children: React$1.ReactNode;
|
|
105
98
|
}): JSX.Element;
|
|
106
99
|
|
|
107
|
-
|
|
100
|
+
interface FlowsProps {
|
|
101
|
+
waitlistImage: React$1.ReactNode;
|
|
102
|
+
}
|
|
103
|
+
declare function Flows({ waitlistImage }: FlowsProps): JSX.Element;
|
|
108
104
|
|
|
109
105
|
declare function SettingsSubNav(): JSX.Element;
|
|
110
106
|
declare function Settings(): JSX.Element;
|
|
111
107
|
|
|
112
|
-
|
|
108
|
+
interface LoginErrorPageProps {
|
|
109
|
+
errorImage: React.ReactNode;
|
|
110
|
+
welcomeImage: React.ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare function LoginErrorPage({ errorImage, welcomeImage, }: LoginErrorPageProps): JSX.Element;
|
|
113
113
|
|
|
114
114
|
export { AuthContext, AuthProvider, type AuthSource, type AuthState, Flows, type IAuthContext, LoginErrorPage as LoginError, Settings, SettingsSubNav, type WorkflowsConfig, type WorkflowsConfigBase, getWorkflowEnv, getWorkflowsConfig, setWorkflowsConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigBase, Config } from '@livechat/developer-studio-ui-react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IntegrationNames, GithubClientAuthorization, NetlifyClientAuthorization, VercelClientAuthorization,
|
|
2
|
+
import React$1 from 'react';
|
|
3
|
+
import { IntegrationNames, GithubClientAuthorization, NetlifyClientAuthorization, VercelClientAuthorization, MailchimpClientAuthorization, ShopifyClientAuthorization, HubspotClientAuthorization, BigCommerceClientAuthorization, TextClientAuthorization } from '@livechat/developer-studio-api';
|
|
4
4
|
|
|
5
5
|
interface WorkflowsConfigBase extends Omit<ConfigBase, "accountsClientId"> {
|
|
6
6
|
publicUrl: string;
|
|
@@ -13,7 +13,6 @@ type WorkflowsConfig = WorkflowsConfigBase & Config & {
|
|
|
13
13
|
githubOauthClientId: string;
|
|
14
14
|
hubpotClientId: string;
|
|
15
15
|
mailchimpClientId: string;
|
|
16
|
-
neonClientId: string;
|
|
17
16
|
netlifyClientId: string;
|
|
18
17
|
shopifyClientId: string;
|
|
19
18
|
vercelClientId: string;
|
|
@@ -26,9 +25,9 @@ type WorkflowsConfig = WorkflowsConfigBase & Config & {
|
|
|
26
25
|
};
|
|
27
26
|
declare function setWorkflowsConfig(newConfig: Partial<WorkflowsConfigBase>): void;
|
|
28
27
|
declare function getWorkflowsConfig(): WorkflowsConfig;
|
|
29
|
-
declare const getWorkflowEnv: <T extends "accountsClientId" | "env" | "publicUrl" | "isHeadless" | "bigcommerceClientId" | "githubAppClientId" | "githubOauthClientId" | "hubpotClientId" | "mailchimpClientId" | "
|
|
28
|
+
declare const getWorkflowEnv: <T extends "accountsClientId" | "env" | "publicUrl" | "isHeadless" | "bigcommerceClientId" | "githubAppClientId" | "githubOauthClientId" | "hubpotClientId" | "mailchimpClientId" | "netlifyClientId" | "shopifyClientId" | "vercelClientId" | "textClientId" | "workflowsAppId" | "workflowsWebhooksAppId" | "aiAgentId" | "pusherKey" | "amplitudeKey" | "accountsUrl" | "platformUrl" | "adapterUrl" | "workflowsApiUr" | "dpsApiUrl" | "billingApiUrl" | "adapterApiUrl" | "livechatApiUrl" | "textApiUrl">(key: T) => WorkflowsConfig[T];
|
|
30
29
|
|
|
31
|
-
type AuthSource = IntegrationNames.Accounts | IntegrationNames.GitHub | IntegrationNames.Vercel | IntegrationNames.Netlify | IntegrationNames.
|
|
30
|
+
type AuthSource = IntegrationNames.Accounts | IntegrationNames.GitHub | IntegrationNames.Vercel | IntegrationNames.Netlify | IntegrationNames.Mailchimp | IntegrationNames.Shopify | IntegrationNames.HubSpot | IntegrationNames.BigCommerce | IntegrationNames.Text;
|
|
32
31
|
interface AuthState {
|
|
33
32
|
github: {
|
|
34
33
|
raw: GithubClientAuthorization;
|
|
@@ -48,12 +47,6 @@ interface AuthState {
|
|
|
48
47
|
isAuthorized?: boolean;
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
|
-
neon: {
|
|
52
|
-
raw: NeonClientAuthorization;
|
|
53
|
-
data: {
|
|
54
|
-
isAuthorized?: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
50
|
mailchimp: {
|
|
58
51
|
raw: MailchimpClientAuthorization;
|
|
59
52
|
data: {
|
|
@@ -99,16 +92,23 @@ interface IAuthContext {
|
|
|
99
92
|
login: ({ source, data }: AuthStateActionParams) => void;
|
|
100
93
|
logout: (source: keyof Omit<AuthState, "context">) => void;
|
|
101
94
|
}
|
|
102
|
-
declare const AuthContext: React.Context<IAuthContext>;
|
|
95
|
+
declare const AuthContext: React$1.Context<IAuthContext>;
|
|
103
96
|
declare function AuthProvider({ children }: {
|
|
104
|
-
children: React.ReactNode;
|
|
97
|
+
children: React$1.ReactNode;
|
|
105
98
|
}): JSX.Element;
|
|
106
99
|
|
|
107
|
-
|
|
100
|
+
interface FlowsProps {
|
|
101
|
+
waitlistImage: React$1.ReactNode;
|
|
102
|
+
}
|
|
103
|
+
declare function Flows({ waitlistImage }: FlowsProps): JSX.Element;
|
|
108
104
|
|
|
109
105
|
declare function SettingsSubNav(): JSX.Element;
|
|
110
106
|
declare function Settings(): JSX.Element;
|
|
111
107
|
|
|
112
|
-
|
|
108
|
+
interface LoginErrorPageProps {
|
|
109
|
+
errorImage: React.ReactNode;
|
|
110
|
+
welcomeImage: React.ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare function LoginErrorPage({ errorImage, welcomeImage, }: LoginErrorPageProps): JSX.Element;
|
|
113
113
|
|
|
114
114
|
export { AuthContext, AuthProvider, type AuthSource, type AuthState, Flows, type IAuthContext, LoginErrorPage as LoginError, Settings, SettingsSubNav, type WorkflowsConfig, type WorkflowsConfigBase, getWorkflowEnv, getWorkflowsConfig, setWorkflowsConfig };
|