@fraku/video 0.1.10 → 0.1.12
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/components/ConfigDialog/ConfigContent.d.ts +2 -0
- package/dist/components/ConfigDialog/ConfigDialog.stories.d.ts +5 -13
- package/dist/components/ConfigDialog/ConfigMenu.d.ts +2 -0
- package/dist/components/ConfigDialog/MenuButton.d.ts +9 -0
- package/dist/components/ConfigDialog/Tabs/AudioSettings.d.ts +2 -0
- package/dist/components/ConfigDialog/Tabs/BackgroundSettings.d.ts +2 -0
- package/dist/components/ConfigDialog/Tabs/DropdownItemTemplate.d.ts +8 -0
- package/dist/components/ConfigDialog/Tabs/DropdownValueTemplate.d.ts +8 -0
- package/dist/components/ConfigDialog/Tabs/VideoSettings.d.ts +2 -0
- package/dist/components/ConfigDialog/context.d.ts +13 -0
- package/dist/components/DockButton/DockButton.d.ts +32 -0
- package/dist/components/DockButton/MenuItemTemplate.d.ts +9 -0
- package/dist/components/DockButton/index.d.ts +0 -0
- package/dist/components/Overlay/Overlay.d.ts +4 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Overlay/types.d.ts +8 -0
- package/dist/index.cjs +638 -347
- package/dist/index.css +1 -1
- package/dist/index.js +21976 -20259
- package/dist/providers/DialogsProvider/types.d.ts +8 -2
- package/dist/providers/VideoPluginProvider/types.d.ts +5 -1
- package/dist/providers/VideoProvider/context.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { default as ConfigDialog } from './ConfigDialog';
|
|
2
3
|
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
decorators: ((Story: StoryFn) => import("react/jsx-runtime").JSX.Element)[];
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const Default: {
|
|
12
|
-
(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
storyName: string;
|
|
14
|
-
};
|
|
4
|
+
declare const meta: Meta<typeof ConfigDialog>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const Default: StoryObj<typeof ConfigDialog>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type MenuButtonProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const MenuButton: ({ className, icon, onClick, title, id }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default MenuButton;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactSetter } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare enum SettingsTab {
|
|
4
|
+
Audio = "Audio",
|
|
5
|
+
Video = "Video",
|
|
6
|
+
Background = "Background"
|
|
7
|
+
}
|
|
8
|
+
export type SettingsOverlayContextProps = {
|
|
9
|
+
selectedSettingsTab: SettingsTab;
|
|
10
|
+
setSelectedSettingsTab: ReactSetter<SettingsTab>;
|
|
11
|
+
};
|
|
12
|
+
export declare const SettingsOverlayContext: import('react').Context<SettingsOverlayContextProps>;
|
|
13
|
+
export declare const useSettingsOverlayContext: () => SettingsOverlayContextProps;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
type DockButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
mainIcon: string;
|
|
7
|
+
mainLabel?: string;
|
|
8
|
+
mainTitle?: string;
|
|
9
|
+
onMainClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
showSecondary?: boolean;
|
|
11
|
+
secondaryIcon?: string;
|
|
12
|
+
secondaryTitle?: string;
|
|
13
|
+
onSecondaryClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Renders a customizable dock button component with optional main and secondary actions.
|
|
17
|
+
*
|
|
18
|
+
* @param className - Additional CSS class names to apply to the container.
|
|
19
|
+
* @param disabled - Flag to disable the main button.
|
|
20
|
+
* @param mainIcon - The CSS class for the main icon to display.
|
|
21
|
+
* @param mainLabel - Optional label text for the main button.
|
|
22
|
+
* @param mainTitle - The title attribute for the main button (for accessibility/tooltips).
|
|
23
|
+
* @param onMainClick - Click handler for the main button action.
|
|
24
|
+
* @param showSecondary - Flag to indicate if the secondary button should be displayed.
|
|
25
|
+
* @param secondaryIcon - Optional CSS class for the secondary icon to display.
|
|
26
|
+
* @param secondaryTitle - The title attribute for the secondary button (for accessibility/tooltips).
|
|
27
|
+
* @param onSecondaryClick - Optional click handler for the secondary button action.
|
|
28
|
+
*
|
|
29
|
+
* @returns A dock button component with main and optional secondary actions.
|
|
30
|
+
*/
|
|
31
|
+
declare const DockButton: ({ className, disabled, mainIcon, mainLabel, mainTitle, onMainClick, secondaryIcon, secondaryTitle, onSecondaryClick, showSecondary }: DockButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export default DockButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuItem, MenuItemOptions } from 'primereact/menuitem';
|
|
2
|
+
|
|
3
|
+
type MenuItemTemplateProps = {
|
|
4
|
+
item: MenuItem;
|
|
5
|
+
options: MenuItemOptions;
|
|
6
|
+
activeItem: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
declare const MenuItemTemplate: ({ item, options, activeItem }: MenuItemTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default MenuItemTemplate;
|
|
File without changes
|