Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
smosco committed Nov 17, 2024
2 parents cc3f597 + 37effab commit 67e5ac7
Show file tree
Hide file tree
Showing 22 changed files with 763 additions and 600 deletions.
864 changes: 432 additions & 432 deletions .pnp.cjs

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion core/dist/components/BlockView.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { LanguageCode, Script, TimeStyle, TextStyle } from 'interfaces/Scripts';
interface BlockViewProps<T extends string = LanguageCode> {
scripts: Script<T>[];
Expand All @@ -8,7 +9,11 @@ interface BlockViewProps<T extends string = LanguageCode> {
onSelectWord: (word: string, script: Script<T>, index: number) => void;
timeStyle?: TimeStyle;
textStyle?: TextStyle;
FocusButton?: ({ isFocus, setIsFocus, }: {
isFocus: boolean;
setIsFocus: React.Dispatch<React.SetStateAction<boolean>>;
}) => JSX.Element;
}
export declare function BlockView<T extends string = LanguageCode>({ scripts, currentScriptIndex, selectedLanguages, seekTo, onClickScript, onSelectWord, timeStyle, textStyle, }: BlockViewProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function BlockView<T extends string = LanguageCode>({ scripts, currentScriptIndex, selectedLanguages, seekTo, onClickScript, onSelectWord, timeStyle, textStyle, FocusButton, }: BlockViewProps<T>): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=BlockView.d.ts.map
2 changes: 1 addition & 1 deletion core/dist/components/BlockView.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/dist/components/LineView.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion core/dist/components/ReactScriptPlayer.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { LanguageCode, Script, ContainerStyle, TextStyle, TimeStyle } from '../interfaces/Scripts';
import { Dispatch, SetStateAction } from 'react';
export interface ReactScriptPlayerProps<T extends string = LanguageCode> {
mode: 'line' | 'block';
scripts: Script<T>[];
Expand All @@ -16,6 +17,10 @@ export interface ReactScriptPlayerProps<T extends string = LanguageCode> {
NextButton?: ({ onClick }: {
onClick: () => void;
}) => JSX.Element;
FocusButton?: ({ isFocus, setIsFocus, }: {
isFocus: boolean;
setIsFocus: Dispatch<SetStateAction<boolean>>;
}) => JSX.Element;
}
export declare function ReactScriptPlayer<T extends string = LanguageCode>({ mode, scripts, selectedLanguages, seekTo, currentTime, onClickScript, onSelectWord, containerStyle, textStyle, timeStyle, PrevButton, NextButton, }: ReactScriptPlayerProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function ReactScriptPlayer<T extends string = LanguageCode>({ mode, scripts, selectedLanguages, seekTo, currentTime, onClickScript, onSelectWord, containerStyle, textStyle, timeStyle, PrevButton, NextButton, FocusButton, }: ReactScriptPlayerProps<T>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=ReactScriptPlayer.d.ts.map
2 changes: 1 addition & 1 deletion core/dist/components/ReactScriptPlayer.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions core/dist/hooks/useThrottling.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface ThrottlingProps {
buttonClicked: () => void;
interface ThrottlingProps<T> {
buttonClicked: (arg: T) => void;
delay?: number;
}
export default function useThrottling({ buttonClicked, delay, }: ThrottlingProps): () => void;
export default function useThrottling<T>({ buttonClicked, delay, }: ThrottlingProps<T>): (arg: T) => void;
export {};
//# sourceMappingURL=useThrottling.d.ts.map
2 changes: 1 addition & 1 deletion core/dist/hooks/useThrottling.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

177 changes: 107 additions & 70 deletions core/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 67e5ac7

Please sign in to comment.