@100mslive/roomkit-react 0.3.16-alpha.0 → 0.3.16-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/{HLSView-P7GF2RAU.js → HLSView-ERPYXVOY.js} +2 -2
  2. package/dist/{HLSView-KOCGTP23.css → HLSView-T2PXKR6I.css} +3 -3
  3. package/dist/{HLSView-KOCGTP23.css.map → HLSView-T2PXKR6I.css.map} +1 -1
  4. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +887 -0
  5. package/dist/Prebuilt/components/Chat/ChatFooter.d.ts +1 -1
  6. package/dist/Prebuilt/components/Chat/utils.d.ts +2 -0
  7. package/dist/Prebuilt/components/PIP/PIPChat.d.ts +2 -0
  8. package/dist/Prebuilt/components/PIP/PIPChatOption.d.ts +5 -0
  9. package/dist/Prebuilt/components/PIP/PIPProvider.d.ts +6 -0
  10. package/dist/Prebuilt/components/PIP/PIPWindow.d.ts +7 -0
  11. package/dist/Prebuilt/components/PIP/context.d.ts +8 -0
  12. package/dist/Prebuilt/components/PIP/usePIPChat.d.ts +5 -0
  13. package/dist/Prebuilt/components/PIP/usePIPWindow.d.ts +2 -0
  14. package/dist/{chunk-DDB4BLHX.js → chunk-NKC36NL4.js} +8303 -7932
  15. package/dist/chunk-NKC36NL4.js.map +7 -0
  16. package/dist/index.cjs.css +2 -2
  17. package/dist/index.cjs.css.map +1 -1
  18. package/dist/index.cjs.js +3906 -3478
  19. package/dist/index.cjs.js.map +4 -4
  20. package/dist/index.css +2 -2
  21. package/dist/index.css.map +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/meta.cjs.json +1786 -1434
  24. package/dist/meta.esbuild.json +2262 -1910
  25. package/package.json +8 -7
  26. package/src/Prebuilt/components/AudioVideoToggle.tsx +14 -7
  27. package/src/Prebuilt/components/Chat/ChatBody.tsx +4 -12
  28. package/src/Prebuilt/components/Chat/ChatFooter.tsx +2 -3
  29. package/src/Prebuilt/components/Chat/utils.ts +11 -0
  30. package/src/Prebuilt/components/MoreSettings/MoreSettings.tsx +4 -1
  31. package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +13 -5
  32. package/src/Prebuilt/components/PIP/PIPChat.tsx +225 -0
  33. package/src/Prebuilt/components/PIP/PIPChatOption.tsx +18 -0
  34. package/src/Prebuilt/components/PIP/PIPProvider.tsx +56 -0
  35. package/src/Prebuilt/components/PIP/PIPWindow.tsx +13 -0
  36. package/src/Prebuilt/components/PIP/context.ts +10 -0
  37. package/src/Prebuilt/components/PIP/usePIPChat.tsx +103 -0
  38. package/src/Prebuilt/components/PIP/usePIPWindow.tsx +12 -0
  39. package/dist/chunk-DDB4BLHX.js.map +0 -7
  40. /package/dist/{HLSView-P7GF2RAU.js.map → HLSView-ERPYXVOY.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  export declare const ChatFooter: ({ onSend, children }: {
3
3
  onSend: (count: number) => void;
4
- children: ReactNode;
4
+ children?: ReactNode;
5
5
  }) => React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export declare const formatTime: (date: Date) => string;
2
+ export declare const CHAT_MESSAGE_LIMIT = 2000;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PIPChat: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const PIPChatOption: ({ openChat, showPIPChat }: {
3
+ openChat: () => void;
4
+ showPIPChat: boolean;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare type PIPProviderProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PIPProvider: ({ children }: PIPProviderProps) => React.JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare type PIPWindowProps = {
3
+ pipWindow: Window;
4
+ children: React.ReactNode;
5
+ };
6
+ export declare const PIPWindow: ({ pipWindow, children }: PIPWindowProps) => React.ReactPortal;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare type PIPContextType = {
3
+ isSupported: boolean;
4
+ pipWindow: Window | null;
5
+ requestPipWindow: (width: number, height: number) => Promise<void>;
6
+ closePipWindow: () => void;
7
+ };
8
+ export declare const PIPContext: import("react").Context<PIPContextType | undefined>;
@@ -0,0 +1,5 @@
1
+ export declare const usePIPChat: () => {
2
+ isSupported: boolean;
3
+ requestPipWindow: (width: number, height: number) => Promise<void>;
4
+ pipWindow: Window | null;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { PIPContextType } from './context';
2
+ export declare const usePIPWindow: () => PIPContextType;