@overlap.ai/react-video-subtitles 1.0.11 → 1.0.13

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.
Files changed (33) hide show
  1. package/package.json +1 -1
  2. package/dist/components/SubtitleText.d.ts +0 -2
  3. package/dist/components/Subtitles.d.ts +0 -2
  4. package/dist/hooks/fontLoader.d.ts +0 -1
  5. package/dist/hooks/useAdjustedPhrases.d.ts +0 -10
  6. package/dist/hooks/useAdjustedPosition.d.ts +0 -4
  7. package/dist/hooks/useProcessWords.d.ts +0 -3
  8. package/dist/hooks/useStyleConfig.d.ts +0 -2
  9. package/dist/hooks/useTextStyle.d.ts +0 -41
  10. package/dist/index.d.ts +0 -10
  11. package/dist/index.esm.js +0 -16590
  12. package/dist/index.js +0 -16598
  13. package/dist/test/TestComponent.d.ts +0 -1
  14. package/dist/test/components/FullScreenPreset.d.ts +0 -1
  15. package/dist/test/components/GridView.d.ts +0 -1
  16. package/dist/test/components/NewPreset.d.ts +0 -1
  17. package/dist/test/components/PresetTest.d.ts +0 -1
  18. package/dist/test/components/SmallTest.d.ts +0 -1
  19. package/dist/test/components/SwitchableTest.d.ts +0 -1
  20. package/dist/test/components/controls/ColorPicker.d.ts +0 -7
  21. package/dist/test/components/controls/Select.d.ts +0 -8
  22. package/dist/test/components/controls/Slider.d.ts +0 -10
  23. package/dist/test/components/controls/Switch.d.ts +0 -7
  24. package/dist/test/constants/testWords.d.ts +0 -5
  25. package/dist/test/hooks/useAnimationFrame.d.ts +0 -4
  26. package/dist/test/main.d.ts +0 -1
  27. package/dist/test/styles/common.d.ts +0 -7
  28. package/dist/test/utils/loadSubtitlePresets.d.ts +0 -1
  29. package/dist/types/components.d.ts +0 -19
  30. package/dist/types/index.d.ts +0 -2
  31. package/dist/types/subtitles.d.ts +0 -88
  32. package/dist/utils/findPhrasesInRange.d.ts +0 -2
  33. package/dist/utils/loadSubtitlePreset.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overlap.ai/react-video-subtitles",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "A React component for rendering animated subtitles in videos",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,2 +0,0 @@
1
- export const SubtitleText: React.NamedExoticComponent<object>;
2
- import React from "react";
@@ -1,2 +0,0 @@
1
- import { SubtitlesProps } from '../types/subtitles.js';
2
- export declare const Subtitles: (props: SubtitlesProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export function loadDocumentFonts(fontFamily: any): Promise<void>;
@@ -1,10 +0,0 @@
1
- export function useAdjustedPhrases(subtitlesData: any, maxCharsPerLine: any, fps: any, segmentData?: any[]): {
2
- startFrame: number;
3
- endFrame: number;
4
- durationInFrames: number;
5
- text: string;
6
- words: any[];
7
- start: any;
8
- end: any;
9
- segmentIndex: number;
10
- }[];
@@ -1,4 +0,0 @@
1
- export function useAdjustedPosition(y: any, faceData: any): {
2
- currentFaceEvent: any;
3
- adjustedY: any;
4
- };
@@ -1,3 +0,0 @@
1
- import { SegmentWord, Phrase } from '../types/subtitles';
2
- export declare const processWords: (words: SegmentWord[], fps: number, maxCharsPerLine?: number) => Phrase[];
3
- export declare const useProcessWords: (words: SegmentWord[], fps: number, maxCharsPerLine?: number) => Phrase[];
@@ -1,2 +0,0 @@
1
- import { StyleConfig } from '../types/subtitles';
2
- export declare const useStyleConfig: (subtitleStyle: string, baseStyle: StyleConfig, textStyle: StyleConfig) => StyleConfig;
@@ -1,41 +0,0 @@
1
- export function useTextStyle(preset: any, x: any, adjustedY: any, videoWidth: any): {
2
- position: string;
3
- left: string;
4
- top: string;
5
- transform: string;
6
- fontFamily: any;
7
- fontSize: string;
8
- fontWeight: any;
9
- color: any;
10
- amplifiedColor: any;
11
- amplifiedColors: any;
12
- amplifySpokenWords: any;
13
- textCase: any;
14
- fontStyle: string;
15
- textAlign: string;
16
- letterSpacing: string;
17
- backgroundColor: any;
18
- backgroundPadding: string;
19
- backgroundBorderRadius: any;
20
- verticalStretch: any;
21
- transformOrigin: string;
22
- width: string;
23
- maxWidth: string;
24
- whiteSpace: string;
25
- overflow: string;
26
- outlineColor: any;
27
- outlineWidth: any;
28
- filter: string;
29
- display: string;
30
- textHighlightPersists: any;
31
- amplifiedOpacity: any;
32
- unAmplifiedOpacity: any;
33
- currentWordBlock: any;
34
- currentWordBlockBackgroundColor: any;
35
- currentWordBlockOpacity: any;
36
- currentWordBlockPadding: any;
37
- currentWordBlockBorderRadius: any;
38
- amplifyOpacityTransitionDuration: any;
39
- textShadow: string;
40
- shadowIntensity: any;
41
- };
package/dist/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { Subtitles } from './components/Subtitles';
2
- import { SubtitleText } from './components/SubtitleText';
3
- import { useStyleConfig } from './hooks/useStyleConfig';
4
- import { useAdjustedPosition } from './hooks/useAdjustedPosition';
5
- import { useAdjustedPhrases } from './hooks/useAdjustedPhrases';
6
- import { useTextStyle } from './hooks/useTextStyle';
7
- import { loadSubtitlePreset } from './utils/loadSubtitlePreset';
8
- import type { StyleConfig, SubtitlesProps, Phrase, SubtitleComponent, SubtitleTextProps } from './types';
9
- export { Subtitles, SubtitleText, useStyleConfig, useAdjustedPosition, useAdjustedPhrases, useTextStyle, loadSubtitlePreset, };
10
- export type { StyleConfig, SubtitlesProps, Phrase, SubtitleComponent, SubtitleTextProps, };