@helpway/react 0.17.0 → 0.17.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/index.d.ts +9 -1
- package/dist/index.js +646 -567
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/themed/styles.css +52 -0
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,14 @@ declare function useIdentify(): (data: IdentifyData) => Promise<void>;
|
|
|
132
132
|
interface SupportProviderProps {
|
|
133
133
|
apiKey: string;
|
|
134
134
|
apiUrl?: string;
|
|
135
|
+
/**
|
|
136
|
+
* "mobile" when this is running inside @helpway/react-native's WebView.
|
|
137
|
+
* Travels to the server as a header on every call, because the server
|
|
138
|
+
* cannot work it out: the User-Agent in there is the phone's browser, so
|
|
139
|
+
* an app user and a website visitor on the same phone arrive identical.
|
|
140
|
+
* Defaults to web, which is what an embedding site is.
|
|
141
|
+
*/
|
|
142
|
+
surface?: "web" | "mobile";
|
|
135
143
|
locale?: string;
|
|
136
144
|
initialConversationId?: string;
|
|
137
145
|
deepLinkToken?: string;
|
|
@@ -160,7 +168,7 @@ interface SupportProviderProps {
|
|
|
160
168
|
* Visitor identity is managed via server-side cookies (hw_visitor).
|
|
161
169
|
* No localStorage or client-side ID management needed.
|
|
162
170
|
*/
|
|
163
|
-
declare function SupportProvider({ apiKey, apiUrl, locale, initialConversationId, deepLinkToken, onReady, customLauncherSelector, onOpen, onClose, onUnreadChange, theme, children, }: SupportProviderProps): react_jsx_runtime.JSX.Element;
|
|
171
|
+
declare function SupportProvider({ apiKey, apiUrl, surface, locale, initialConversationId, deepLinkToken, onReady, customLauncherSelector, onOpen, onClose, onUnreadChange, theme, children, }: SupportProviderProps): react_jsx_runtime.JSX.Element;
|
|
164
172
|
|
|
165
173
|
/**
|
|
166
174
|
* Core widget state — connection status, visitor identity, website info.
|