@stackable-labs/embeddables 1.57.0 → 1.57.1
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/embeddables/src/WidgetApp.d.ts +4 -4
- package/dist/embeddables/src/components/CustomerProfile.d.ts +2 -2
- package/dist/embeddables/src/components/ExtensionSetup.d.ts +3 -3
- package/dist/embeddables/src/components/zendesk/ZendeskMessenger.d.ts +2 -2
- package/dist/embeddables/src/hooks/useCustomer.d.ts +1 -1
- package/dist/react.js +478 -482
- package/dist/stackable-widget.external.js +7 -7
- package/dist/stackable-widget.js +47 -47
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
interface WidgetAppProps {
|
|
2
|
-
|
|
3
|
-
hostBase: string;
|
|
2
|
+
queryApiBase: string;
|
|
4
3
|
apiBase?: string;
|
|
5
4
|
appId: string;
|
|
6
5
|
theme?: string;
|
|
6
|
+
instanceId: string;
|
|
7
7
|
customerId?: string;
|
|
8
8
|
customerEmail?: string;
|
|
9
9
|
customerName?: string;
|
|
10
|
-
|
|
10
|
+
snippetKey: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const WidgetApp: ({
|
|
12
|
+
export declare const WidgetApp: ({ queryApiBase, apiBase, appId, theme, instanceId, customerId, customerEmail, customerName, snippetKey, }: WidgetAppProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
interface CustomerProfileProps {
|
|
2
2
|
customerEmail?: string;
|
|
3
3
|
customerId: string;
|
|
4
|
-
|
|
4
|
+
queryApiBase?: string;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Customer profile component — native host app component.
|
|
9
9
|
* Fetches and displays customer information directly via the ecommerce API route.
|
|
10
10
|
*/
|
|
11
|
-
export declare const CustomerProfile: ({ customerId, customerEmail,
|
|
11
|
+
export declare const CustomerProfile: ({ customerId, customerEmail, queryApiBase, children }: CustomerProfileProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface ExtensionSetupProps {
|
|
2
|
-
|
|
2
|
+
queryApiBase?: string;
|
|
3
3
|
apiBase?: string;
|
|
4
|
-
hostBase?: string;
|
|
5
4
|
appId?: string;
|
|
5
|
+
instanceId?: string;
|
|
6
6
|
customerId?: string;
|
|
7
7
|
customerEmail?: string;
|
|
8
8
|
customerName?: string;
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare const ExtensionSetup: ({ instanceId,
|
|
11
|
+
export declare const ExtensionSetup: ({ instanceId, queryApiBase, apiBase, appId, children, customerId, customerEmail, customerName, }: ExtensionSetupProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface ZendeskMessengerProps {
|
|
2
2
|
buttons?: React.ReactNode;
|
|
3
3
|
header?: React.ReactNode;
|
|
4
|
-
|
|
4
|
+
queryApiBase?: string;
|
|
5
5
|
customerId?: string;
|
|
6
6
|
customerEmail?: string;
|
|
7
7
|
primaryPercent?: number;
|
|
@@ -16,4 +16,4 @@ export interface ZendeskMessengerProps {
|
|
|
16
16
|
* - slot.footer: footer branding
|
|
17
17
|
* - slot.footer-links: additional footer links
|
|
18
18
|
*/
|
|
19
|
-
export declare const ZendeskMessenger: ({ header, buttons,
|
|
19
|
+
export declare const ZendeskMessenger: ({ header, buttons, queryApiBase, customerId, customerEmail, primaryPercent, }: ZendeskMessengerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Customer } from '@stackable-labs/sdk-extension-contracts';
|
|
2
|
-
export declare const useCustomer: (customerId: string | null,
|
|
2
|
+
export declare const useCustomer: (customerId: string | null, queryApiBase?: string) => {
|
|
3
3
|
customer: Customer | null;
|
|
4
4
|
loading: boolean;
|
|
5
5
|
error: Error | null;
|