@fraku/video 0.1.13 → 0.1.14

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.
@@ -5,8 +5,18 @@ import { Credentials } from '../../types';
5
5
 
6
6
  export type VideoPluginContextType = {
7
7
  breakpoint: Breakpoint;
8
+ votingStarted: boolean;
9
+ initVotingPreSession: () => Promise<void>;
10
+ initVotingSession: () => Promise<void>;
11
+ closeVotingSession: () => Promise<void>;
8
12
  changePluginBreakpoint: (newBreakpoint: Breakpoint) => void;
9
13
  };
14
+ export type VideoPluginContextBridgeProps = {
15
+ children: ReactNode;
16
+ onInitVotingPreSession?: () => Promise<void>;
17
+ onInitVotingSession?: () => Promise<void>;
18
+ onCloseVotingSession?: () => Promise<void>;
19
+ };
10
20
  export type VideoPluginProviderProps = {
11
21
  credentials: Credentials;
12
22
  messages?: ChatMessage[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fraku/video",
3
3
  "private": false,
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1,4 +0,0 @@
1
- import { VotingProviderProps } from './types';
2
-
3
- declare const VotingProvider: ({ onInitVotingPreSession, onInitVotingSession, onCloseVotingSession, children }: VotingProviderProps) => import("react/jsx-runtime").JSX.Element;
4
- export default VotingProvider;
@@ -1,6 +0,0 @@
1
- export type VotingContextType = {
2
- votingStarted: boolean;
3
- initVotingSession?: () => Promise<void>;
4
- };
5
- export declare const VotingContext: import('react').Context<VotingContextType | null>;
6
- export declare const useVotingContext: () => VotingContextType;
@@ -1,2 +0,0 @@
1
- export { default } from './VotingProvider';
2
- export { useVotingContext } from './context';
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export type VotingProviderProps = {
4
- onInitVotingPreSession?: () => Promise<void>;
5
- onInitVotingSession?: () => Promise<void>;
6
- onCloseVotingSession?: () => Promise<void>;
7
- children: ReactNode;
8
- };