@editframe/react 0.11.0-beta.9 → 0.12.0-beta.2

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.
@@ -0,0 +1,11 @@
1
+ import { EFTimeDisplay } from "@editframe/elements";
2
+ import { createComponent } from "@lit/react";
3
+ import React from "react";
4
+ const TimeDisplay = createComponent({
5
+ tagName: "ef-time-display",
6
+ elementClass: EFTimeDisplay,
7
+ react: React
8
+ });
9
+ export {
10
+ TimeDisplay
11
+ };
@@ -1,3 +1,6 @@
1
- import { EFCaptions as EFCaptionsElement, EFCaptionsActiveWord as EFCaptionsActiveWordElement } from '../../../elements/src/index.ts';
1
+ import { EFCaptionsActiveWord as EFCaptionsActiveWordElement, EFCaptionsAfterActiveWord as EFCaptionsAfterActiveWordElement, EFCaptionsBeforeActiveWord as EFCaptionsBeforeActiveWordElement, EFCaptions as EFCaptionsElement, EFCaptionsSegment as EFCaptionsSegmentElement } from '../../../elements/src/index.ts';
2
2
  export declare const Captions: import('@lit/react').ReactWebComponent<EFCaptionsElement, {}>;
3
3
  export declare const CaptionsActiveWord: import('@lit/react').ReactWebComponent<EFCaptionsActiveWordElement, {}>;
4
+ export declare const CaptionsSegment: import('@lit/react').ReactWebComponent<EFCaptionsSegmentElement, {}>;
5
+ export declare const CaptionsBeforeActiveWord: import('@lit/react').ReactWebComponent<EFCaptionsBeforeActiveWordElement, {}>;
6
+ export declare const CaptionsAfterActiveWord: import('@lit/react').ReactWebComponent<EFCaptionsAfterActiveWordElement, {}>;
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ import { EFCaptions, EFCaptionsActiveWord, EFCaptionsSegment, EFCaptionsBeforeActiveWord, EFCaptionsAfterActiveWord } from "@editframe/elements";
2
2
  import { createComponent } from "@lit/react";
3
- import { EFCaptions, EFCaptionsActiveWord } from "@editframe/elements";
3
+ import React from "react";
4
4
  const Captions = createComponent({
5
5
  tagName: "ef-captions",
6
6
  elementClass: EFCaptions,
@@ -11,7 +11,25 @@ const CaptionsActiveWord = createComponent({
11
11
  elementClass: EFCaptionsActiveWord,
12
12
  react: React
13
13
  });
14
+ const CaptionsSegment = createComponent({
15
+ tagName: "ef-captions-segment",
16
+ elementClass: EFCaptionsSegment,
17
+ react: React
18
+ });
19
+ const CaptionsBeforeActiveWord = createComponent({
20
+ tagName: "ef-captions-before-active-word",
21
+ elementClass: EFCaptionsBeforeActiveWord,
22
+ react: React
23
+ });
24
+ const CaptionsAfterActiveWord = createComponent({
25
+ tagName: "ef-captions-after-active-word",
26
+ elementClass: EFCaptionsAfterActiveWord,
27
+ react: React
28
+ });
14
29
  export {
15
30
  Captions,
16
- CaptionsActiveWord
31
+ CaptionsActiveWord,
32
+ CaptionsAfterActiveWord,
33
+ CaptionsBeforeActiveWord,
34
+ CaptionsSegment
17
35
  };
@@ -0,0 +1,2 @@
1
+ import { EFScrubber as EFScrubberElement } from '../../../elements/src/index.ts';
2
+ export declare const Scrubber: import('@lit/react').ReactWebComponent<EFScrubberElement, {}>;
@@ -0,0 +1,11 @@
1
+ import { EFScrubber } from "@editframe/elements";
2
+ import { createComponent } from "@lit/react";
3
+ import React from "react";
4
+ const Scrubber = createComponent({
5
+ tagName: "ef-scrubber",
6
+ elementClass: EFScrubber,
7
+ react: React
8
+ });
9
+ export {
10
+ Scrubber
11
+ };
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export {
5
5
  /** @deprecated Use `Captions` instead of `EFCaptions`. Exports starting `EF*` wil be removed in a future release. */
6
6
  Captions as EFCaptions, Captions,
7
7
  /** @deprecated Use `CaptionsActiveWord` instead of `EFCaptionsActiveWord`. Exports starting `EF*` wil be removed in a future release. */
8
- CaptionsActiveWord as EFCaptionsActiveWord, CaptionsActiveWord, } from './elements/Captions.ts';
8
+ CaptionsActiveWord as EFCaptionsActiveWord, CaptionsActiveWord, CaptionsSegment, CaptionsBeforeActiveWord, CaptionsAfterActiveWord, } from './elements/Captions.ts';
9
9
  export { Image as EFImage, Image, } from './elements/Image.ts';
10
10
  export {
11
11
  /** @deprecated Use `Timegroup` instead of `EFTimegroup`. Exports starting `EF*` wil be removed in a future release. */
@@ -27,4 +27,6 @@ export {
27
27
  EFPreview, EFPreview as Preview, } from './gui/Preview.ts';
28
28
  export { TogglePlay } from './gui/TogglePlay.ts';
29
29
  export { ToggleLoop } from './gui/ToggleLoop.ts';
30
+ export { Scrubber } from './gui/Scrubber.ts';
30
31
  export { useTimingInfo } from './hooks/useTimingInfo.ts';
32
+ export { TimeDisplay } from './components/TimeDisplay.tsx';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Audio, Audio as Audio2 } from "./elements/Audio.js";
2
- import { Captions, CaptionsActiveWord, Captions as Captions2, CaptionsActiveWord as CaptionsActiveWord2 } from "./elements/Captions.js";
2
+ import { Captions, CaptionsActiveWord, CaptionsAfterActiveWord, CaptionsBeforeActiveWord, CaptionsSegment, Captions as Captions2, CaptionsActiveWord as CaptionsActiveWord2 } from "./elements/Captions.js";
3
3
  import { Image, Image as Image2 } from "./elements/Image.js";
4
4
  import { Timegroup, Timegroup as Timegroup2 } from "./elements/Timegroup.js";
5
5
  import { Video, Video as Video2 } from "./elements/Video.js";
@@ -9,11 +9,16 @@ import { Filmstrip, Filmstrip as Filmstrip2 } from "./gui/Filmstrip.js";
9
9
  import { EFPreview, EFPreview as EFPreview2 } from "./gui/Preview.js";
10
10
  import { TogglePlay } from "./gui/TogglePlay.js";
11
11
  import { ToggleLoop } from "./gui/ToggleLoop.js";
12
+ import { Scrubber } from "./gui/Scrubber.js";
12
13
  import { useTimingInfo } from "./hooks/useTimingInfo.js";
14
+ import { TimeDisplay } from "./components/TimeDisplay.js";
13
15
  export {
14
16
  Audio,
15
17
  Captions,
16
18
  CaptionsActiveWord,
19
+ CaptionsAfterActiveWord,
20
+ CaptionsBeforeActiveWord,
21
+ CaptionsSegment,
17
22
  Audio2 as EFAudio,
18
23
  Captions2 as EFCaptions,
19
24
  CaptionsActiveWord2 as EFCaptionsActiveWord,
@@ -27,6 +32,8 @@ export {
27
32
  Filmstrip2 as Filmstrip,
28
33
  Image2 as Image,
29
34
  EFPreview2 as Preview,
35
+ Scrubber,
36
+ TimeDisplay,
30
37
  Timegroup2 as Timegroup,
31
38
  ToggleLoop,
32
39
  TogglePlay,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/react",
3
- "version": "0.11.0-beta.9",
3
+ "version": "0.12.0-beta.2",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -19,7 +19,7 @@
19
19
  "author": "",
20
20
  "license": "UNLICENSED",
21
21
  "dependencies": {
22
- "@editframe/elements": "0.11.0-beta.9",
22
+ "@editframe/elements": "0.12.0-beta.2",
23
23
  "@lit/react": "^1.0.5",
24
24
  "debug": "^4.3.5",
25
25
  "react": "^18.3.0",
@@ -0,0 +1,13 @@
1
+ import { EFTimeDisplay } from "@editframe/elements";
2
+ import { createComponent } from "@lit/react";
3
+ import React from "react";
4
+
5
+ export const TimeDisplay = createComponent({
6
+ tagName: "ef-time-display",
7
+ elementClass: EFTimeDisplay,
8
+ react: React,
9
+ });
10
+
11
+ export type TimeDisplayProps = {
12
+ className?: string;
13
+ };
@@ -1,9 +1,12 @@
1
- import React from "react";
2
- import { createComponent } from "@lit/react";
3
1
  import {
4
- EFCaptions as EFCaptionsElement,
5
2
  EFCaptionsActiveWord as EFCaptionsActiveWordElement,
3
+ EFCaptionsAfterActiveWord as EFCaptionsAfterActiveWordElement,
4
+ EFCaptionsBeforeActiveWord as EFCaptionsBeforeActiveWordElement,
5
+ EFCaptions as EFCaptionsElement,
6
+ EFCaptionsSegment as EFCaptionsSegmentElement,
6
7
  } from "@editframe/elements";
8
+ import { createComponent } from "@lit/react";
9
+ import React from "react";
7
10
 
8
11
  export const Captions = createComponent({
9
12
  tagName: "ef-captions",
@@ -16,3 +19,21 @@ export const CaptionsActiveWord = createComponent({
16
19
  elementClass: EFCaptionsActiveWordElement,
17
20
  react: React,
18
21
  });
22
+
23
+ export const CaptionsSegment = createComponent({
24
+ tagName: "ef-captions-segment",
25
+ elementClass: EFCaptionsSegmentElement,
26
+ react: React,
27
+ });
28
+
29
+ export const CaptionsBeforeActiveWord = createComponent({
30
+ tagName: "ef-captions-before-active-word",
31
+ elementClass: EFCaptionsBeforeActiveWordElement,
32
+ react: React,
33
+ });
34
+
35
+ export const CaptionsAfterActiveWord = createComponent({
36
+ tagName: "ef-captions-after-active-word",
37
+ elementClass: EFCaptionsAfterActiveWordElement,
38
+ react: React,
39
+ });
@@ -0,0 +1,9 @@
1
+ import { EFScrubber as EFScrubberElement } from "@editframe/elements";
2
+ import { createComponent } from "@lit/react";
3
+ import React from "react";
4
+
5
+ export const Scrubber = createComponent({
6
+ tagName: "ef-scrubber",
7
+ elementClass: EFScrubberElement,
8
+ react: React,
9
+ });