@amityco/ulta-ui-kit 1.0.0-alpha.19 → 1.0.0-alpha.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/ExclamationIcon-W7MUZYSP.svg +10 -0
- package/dist/esm/ExclamationIcon-W7MUZYSP.svg +10 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +1800 -1748
- package/dist/index.css +1 -1
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +1876 -1824
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +2 -3
- package/readme.md +56 -10
- package/dist/Welcome-WSYGNAL7.svg +0 -14
- package/dist/WelcomeDesktop-CP7A4QPB.svg +0 -14
- package/dist/esm/Welcome-WSYGNAL7.svg +0 -14
- package/dist/esm/WelcomeDesktop-CP7A4QPB.svg +0 -14
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface UiKitProviderProps {
|
|
|
37
37
|
mqtt?: string;
|
|
38
38
|
};
|
|
39
39
|
userId: string;
|
|
40
|
-
displayName
|
|
40
|
+
displayName?: string;
|
|
41
41
|
customComponents?: CustomComponentType;
|
|
42
42
|
postRendererConfig?: PostRendererConfigType;
|
|
43
43
|
theme?: Record<string, unknown>;
|
|
@@ -301,7 +301,15 @@ declare class AmityUIKitManager {
|
|
|
301
301
|
* @param onConnected - The callback function to be called when connected.
|
|
302
302
|
* @param onDisconnected - The callback function to be called when disconnected.
|
|
303
303
|
*/
|
|
304
|
-
static registerDevice(userId
|
|
304
|
+
static registerDevice({ userId, displayName, sessionHandler, authToken, onConnectionStatusChange, onConnected, onDisconnected, }: {
|
|
305
|
+
userId: string;
|
|
306
|
+
displayName?: string;
|
|
307
|
+
sessionHandler: SessionHandler;
|
|
308
|
+
authToken?: string;
|
|
309
|
+
onConnectionStatusChange?: (state: Amity.SessionStates) => void;
|
|
310
|
+
onConnected?: () => void;
|
|
311
|
+
onDisconnected?: () => void;
|
|
312
|
+
}): Promise<void>;
|
|
305
313
|
/**
|
|
306
314
|
* Sets the AmityClient instance to be used by the AmityUIKitManager.
|
|
307
315
|
* This method is useful when sharing the AmityClient instance between different parts of the application.
|