@editframe/react 0.21.0-beta.0 → 0.23.6-beta.0
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/TimeDisplay.js +7 -5
- package/dist/elements/Audio.d.ts +1 -1
- package/dist/elements/Audio.js +7 -5
- package/dist/elements/Captions.d.ts +5 -5
- package/dist/elements/Captions.js +24 -18
- package/dist/elements/Image.d.ts +1 -1
- package/dist/elements/Image.js +7 -5
- package/dist/elements/Surface.d.ts +1 -1
- package/dist/elements/Surface.js +9 -7
- package/dist/elements/ThumbnailStrip.d.ts +1 -1
- package/dist/elements/ThumbnailStrip.js +9 -7
- package/dist/elements/Timegroup.d.ts +1 -1
- package/dist/elements/Timegroup.js +7 -5
- package/dist/elements/Video.d.ts +1 -1
- package/dist/elements/Video.js +7 -5
- package/dist/elements/Waveform.d.ts +1 -1
- package/dist/elements/Waveform.js +7 -5
- package/dist/gui/Configuration.d.ts +1 -1
- package/dist/gui/Configuration.js +7 -5
- package/dist/gui/Controls.d.ts +1 -1
- package/dist/gui/Controls.js +7 -5
- package/dist/gui/EFDial.d.ts +4 -0
- package/dist/gui/EFDial.js +14 -0
- package/dist/gui/EFResizableBox.d.ts +4 -0
- package/dist/gui/EFResizableBox.js +14 -0
- package/dist/gui/Filmstrip.d.ts +1 -1
- package/dist/gui/Filmstrip.js +7 -5
- package/dist/gui/FitScale.d.ts +1 -1
- package/dist/gui/FitScale.js +7 -5
- package/dist/gui/FocusOverlay.d.ts +1 -1
- package/dist/gui/FocusOverlay.js +7 -5
- package/dist/gui/Pause.d.ts +2 -0
- package/dist/gui/Pause.js +11 -0
- package/dist/gui/Play.d.ts +2 -0
- package/dist/gui/Play.js +11 -0
- package/dist/gui/Preview.d.ts +1 -1
- package/dist/gui/Preview.js +7 -5
- package/dist/gui/Scrubber.d.ts +1 -1
- package/dist/gui/Scrubber.js +7 -5
- package/dist/gui/ToggleLoop.d.ts +1 -1
- package/dist/gui/ToggleLoop.js +7 -5
- package/dist/gui/TogglePlay.d.ts +1 -1
- package/dist/gui/TogglePlay.js +7 -5
- package/dist/gui/Workbench.d.ts +1 -1
- package/dist/gui/Workbench.js +7 -5
- package/dist/hooks/create-element.d.ts +21 -0
- package/dist/hooks/create-element.js +103 -0
- package/dist/hooks/useTimingInfo.js +33 -32
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -1
- package/package.json +6 -5
- package/src/components/TimeDisplay.tsx +1 -1
- package/src/elements/Audio.ts +1 -1
- package/src/elements/Captions.ts +1 -1
- package/src/elements/Image.ts +1 -1
- package/src/elements/Surface.ts +1 -1
- package/src/elements/ThumbnailStrip.ts +1 -1
- package/src/elements/Timegroup.ts +1 -1
- package/src/elements/Video.ts +1 -1
- package/src/elements/Waveform.ts +1 -1
- package/src/gui/Configuration.ts +1 -1
- package/src/gui/Controls.browsertest.tsx +112 -0
- package/src/gui/Controls.ts +1 -1
- package/src/gui/EFDial.ts +12 -0
- package/src/gui/EFResizableBox.ts +12 -0
- package/src/gui/Filmstrip.ts +1 -1
- package/src/gui/FitScale.ts +1 -1
- package/src/gui/FocusOverlay.ts +1 -1
- package/src/gui/Pause.ts +9 -0
- package/src/gui/Play.ts +9 -0
- package/src/gui/Preview.ts +1 -1
- package/src/gui/Scrubber.ts +1 -1
- package/src/gui/ToggleLoop.ts +1 -1
- package/src/gui/TogglePlay.ts +1 -1
- package/src/gui/Workbench.ts +1 -1
- package/src/hooks/create-element.ts +167 -0
- package/types.json +1 -1
- package/dist/create-component.d.ts +0 -88
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFTimeDisplay } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const TimeDisplay = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-time-display",
|
|
6
|
+
elementClass: EFTimeDisplay,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
TimeDisplay
|
|
11
|
+
};
|
package/dist/elements/Audio.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFAudio as EFAudioElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Audio: import('
|
|
2
|
+
export declare const Audio: import('../hooks/create-element').ReactWebComponent<EFAudioElement, {}>;
|
package/dist/elements/Audio.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFAudio } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Audio = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-audio",
|
|
6
|
+
elementClass: EFAudio,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Audio
|
|
11
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EFCaptionsActiveWord as EFCaptionsActiveWordElement, EFCaptionsAfterActiveWord as EFCaptionsAfterActiveWordElement, EFCaptionsBeforeActiveWord as EFCaptionsBeforeActiveWordElement, EFCaptions as EFCaptionsElement, EFCaptionsSegment as EFCaptionsSegmentElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Captions: import('
|
|
3
|
-
export declare const CaptionsActiveWord: import('
|
|
4
|
-
export declare const CaptionsSegment: import('
|
|
5
|
-
export declare const CaptionsBeforeActiveWord: import('
|
|
6
|
-
export declare const CaptionsAfterActiveWord: import('
|
|
2
|
+
export declare const Captions: import('../hooks/create-element').ReactWebComponent<EFCaptionsElement, {}>;
|
|
3
|
+
export declare const CaptionsActiveWord: import('../hooks/create-element').ReactWebComponent<EFCaptionsActiveWordElement, {}>;
|
|
4
|
+
export declare const CaptionsSegment: import('../hooks/create-element').ReactWebComponent<EFCaptionsSegmentElement, {}>;
|
|
5
|
+
export declare const CaptionsBeforeActiveWord: import('../hooks/create-element').ReactWebComponent<EFCaptionsBeforeActiveWordElement, {}>;
|
|
6
|
+
export declare const CaptionsAfterActiveWord: import('../hooks/create-element').ReactWebComponent<EFCaptionsAfterActiveWordElement, {}>;
|
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { EFCaptions, EFCaptionsActiveWord,
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
1
|
+
import { EFCaptions, EFCaptionsActiveWord, EFCaptionsSegment, EFCaptionsBeforeActiveWord, EFCaptionsAfterActiveWord } from "@editframe/elements";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Captions = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-captions",
|
|
6
|
+
elementClass: EFCaptions,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
9
|
const CaptionsActiveWord = createComponent({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
tagName: "ef-captions-active-word",
|
|
11
|
+
elementClass: EFCaptionsActiveWord,
|
|
12
|
+
react: React
|
|
13
13
|
});
|
|
14
14
|
const CaptionsSegment = createComponent({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
tagName: "ef-captions-segment",
|
|
16
|
+
elementClass: EFCaptionsSegment,
|
|
17
|
+
react: React
|
|
18
18
|
});
|
|
19
19
|
const CaptionsBeforeActiveWord = createComponent({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
tagName: "ef-captions-before-active-word",
|
|
21
|
+
elementClass: EFCaptionsBeforeActiveWord,
|
|
22
|
+
react: React
|
|
23
23
|
});
|
|
24
24
|
const CaptionsAfterActiveWord = createComponent({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
tagName: "ef-captions-after-active-word",
|
|
26
|
+
elementClass: EFCaptionsAfterActiveWord,
|
|
27
|
+
react: React
|
|
28
28
|
});
|
|
29
|
-
export {
|
|
29
|
+
export {
|
|
30
|
+
Captions,
|
|
31
|
+
CaptionsActiveWord,
|
|
32
|
+
CaptionsAfterActiveWord,
|
|
33
|
+
CaptionsBeforeActiveWord,
|
|
34
|
+
CaptionsSegment
|
|
35
|
+
};
|
package/dist/elements/Image.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFImage as EFImageElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Image: import('
|
|
2
|
+
export declare const Image: import('../hooks/create-element').ReactWebComponent<EFImageElement, {}>;
|
package/dist/elements/Image.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFImage } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Image = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-image",
|
|
6
|
+
elementClass: EFImage,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Image
|
|
11
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFSurface as EFSurfaceElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Surface: import('
|
|
2
|
+
export declare const Surface: import('../hooks/create-element').ReactWebComponent<EFSurfaceElement, {}>;
|
package/dist/elements/Surface.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { EFSurface } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Surface = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
tagName: "ef-surface",
|
|
6
|
+
elementClass: EFSurface,
|
|
7
|
+
react: React,
|
|
8
|
+
displayName: "Surface",
|
|
9
|
+
events: {}
|
|
10
10
|
});
|
|
11
|
-
export {
|
|
11
|
+
export {
|
|
12
|
+
Surface
|
|
13
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFThumbnailStrip as EFThumbnailStripElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const ThumbnailStrip: import('
|
|
2
|
+
export declare const ThumbnailStrip: import('../hooks/create-element').ReactWebComponent<EFThumbnailStripElement, {}>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { EFThumbnailStrip } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const ThumbnailStrip = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
tagName: "ef-thumbnail-strip",
|
|
6
|
+
elementClass: EFThumbnailStrip,
|
|
7
|
+
react: React,
|
|
8
|
+
displayName: "ThumbnailStrip",
|
|
9
|
+
events: {}
|
|
10
10
|
});
|
|
11
|
-
export {
|
|
11
|
+
export {
|
|
12
|
+
ThumbnailStrip
|
|
13
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFTimegroup as EFTimegroupElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Timegroup: import('
|
|
2
|
+
export declare const Timegroup: import('../hooks/create-element').ReactWebComponent<EFTimegroupElement, {}>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFTimegroup } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Timegroup = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-timegroup",
|
|
6
|
+
elementClass: EFTimegroup,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Timegroup
|
|
11
|
+
};
|
package/dist/elements/Video.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFVideo as EFVideoElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Video: import('
|
|
2
|
+
export declare const Video: import('../hooks/create-element').ReactWebComponent<EFVideoElement, {}>;
|
package/dist/elements/Video.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFVideo } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Video = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-video",
|
|
6
|
+
elementClass: EFVideo,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Video
|
|
11
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFWaveform as EFWaveformElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Waveform: import('
|
|
2
|
+
export declare const Waveform: import('../hooks/create-element').ReactWebComponent<EFWaveformElement, {}>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFWaveform } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Waveform = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-waveform",
|
|
6
|
+
elementClass: EFWaveform,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Waveform
|
|
11
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFConfiguration } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Configuration: import('
|
|
2
|
+
export declare const Configuration: import('../hooks/create-element').ReactWebComponent<EFConfiguration, {}>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFConfiguration } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Configuration = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-configuration",
|
|
6
|
+
elementClass: EFConfiguration,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Configuration
|
|
11
|
+
};
|
package/dist/gui/Controls.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFControls as EFControlsElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Controls: import('
|
|
2
|
+
export declare const Controls: import('../hooks/create-element').ReactWebComponent<EFControlsElement, {}>;
|
package/dist/gui/Controls.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFControls } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Controls = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-controls",
|
|
6
|
+
elementClass: EFControls,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Controls
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EFDial } from "@editframe/elements";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
|
+
const Dial = createComponent({
|
|
5
|
+
tagName: "ef-dial",
|
|
6
|
+
elementClass: EFDial,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: "change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
Dial
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EFResizableBox } from "@editframe/elements";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
|
+
const ResizableBox = createComponent({
|
|
5
|
+
tagName: "ef-resizable-box",
|
|
6
|
+
elementClass: EFResizableBox,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onBoundsChange: "bounds-change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
ResizableBox
|
|
14
|
+
};
|
package/dist/gui/Filmstrip.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFFilmstrip as EFFilmstripElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Filmstrip: import('
|
|
2
|
+
export declare const Filmstrip: import('../hooks/create-element').ReactWebComponent<EFFilmstripElement, {}>;
|
package/dist/gui/Filmstrip.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFFilmstrip } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Filmstrip = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-filmstrip",
|
|
6
|
+
elementClass: EFFilmstrip,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Filmstrip
|
|
11
|
+
};
|
package/dist/gui/FitScale.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFFitScale as EFFitScaleElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const FitScale: import('
|
|
2
|
+
export declare const FitScale: import('../hooks/create-element').ReactWebComponent<EFFitScaleElement, {}>;
|
package/dist/gui/FitScale.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFFitScale } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const FitScale = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-fit-scale",
|
|
6
|
+
elementClass: EFFitScale,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
FitScale
|
|
11
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFFocusOverlay as EFFocusOverlayElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const FocusOverlay: import('
|
|
2
|
+
export declare const FocusOverlay: import('../hooks/create-element').ReactWebComponent<EFFocusOverlayElement, {}>;
|
package/dist/gui/FocusOverlay.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFFocusOverlay } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const FocusOverlay = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-focus-overlay",
|
|
6
|
+
elementClass: EFFocusOverlay,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
FocusOverlay
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EFPause } from "@editframe/elements";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
|
+
const Pause = createComponent({
|
|
5
|
+
tagName: "ef-pause",
|
|
6
|
+
elementClass: EFPause,
|
|
7
|
+
react: React
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
Pause
|
|
11
|
+
};
|
package/dist/gui/Play.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EFPlay } from "@editframe/elements";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
|
+
const Play = createComponent({
|
|
5
|
+
tagName: "ef-play",
|
|
6
|
+
elementClass: EFPlay,
|
|
7
|
+
react: React
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
Play
|
|
11
|
+
};
|
package/dist/gui/Preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFPreview as EFPreviewElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Preview: import('
|
|
2
|
+
export declare const Preview: import('../hooks/create-element').ReactWebComponent<EFPreviewElement, {}>;
|
package/dist/gui/Preview.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFPreview } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Preview = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-preview",
|
|
6
|
+
elementClass: EFPreview,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Preview
|
|
11
|
+
};
|
package/dist/gui/Scrubber.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFScrubber as EFScrubberElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Scrubber: import('
|
|
2
|
+
export declare const Scrubber: import('../hooks/create-element').ReactWebComponent<EFScrubberElement, {}>;
|
package/dist/gui/Scrubber.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFScrubber } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Scrubber = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-scrubber",
|
|
6
|
+
elementClass: EFScrubber,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Scrubber
|
|
11
|
+
};
|
package/dist/gui/ToggleLoop.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFToggleLoop as EFToggleLoopElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const ToggleLoop: import('
|
|
2
|
+
export declare const ToggleLoop: import('../hooks/create-element').ReactWebComponent<EFToggleLoopElement, {}>;
|
package/dist/gui/ToggleLoop.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFToggleLoop } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const ToggleLoop = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-toggle-loop",
|
|
6
|
+
elementClass: EFToggleLoop,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
ToggleLoop
|
|
11
|
+
};
|
package/dist/gui/TogglePlay.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFTogglePlay as EFTogglePlayElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const TogglePlay: import('
|
|
2
|
+
export declare const TogglePlay: import('../hooks/create-element').ReactWebComponent<EFTogglePlayElement, {}>;
|
package/dist/gui/TogglePlay.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFTogglePlay } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const TogglePlay = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-toggle-play",
|
|
6
|
+
elementClass: EFTogglePlay,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
TogglePlay
|
|
11
|
+
};
|
package/dist/gui/Workbench.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EFWorkbench as EFWorkbenchElement } from '../../../elements/src/index.ts';
|
|
2
|
-
export declare const Workbench: import('
|
|
2
|
+
export declare const Workbench: import('../hooks/create-element').ReactWebComponent<EFWorkbenchElement, {}>;
|
package/dist/gui/Workbench.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EFWorkbench } from "@editframe/elements";
|
|
2
|
-
import { createComponent } from "@lit/react";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { createComponent } from "../hooks/create-element.js";
|
|
4
4
|
const Workbench = createComponent({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tagName: "ef-workbench",
|
|
6
|
+
elementClass: EFWorkbench,
|
|
7
|
+
react: React
|
|
8
8
|
});
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Workbench
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function setIsomorphicEffect(effect: typeof React.useLayoutEffect | typeof React.useEffect): void;
|
|
3
|
+
type Constructor<T> = {
|
|
4
|
+
new (): T;
|
|
5
|
+
};
|
|
6
|
+
type EventNames = Record<string, string>;
|
|
7
|
+
type EventListeners<E extends EventNames> = {
|
|
8
|
+
[K in keyof E]?: (e: Event) => void;
|
|
9
|
+
};
|
|
10
|
+
type ElementProps<I> = Partial<Omit<I, keyof HTMLElement>>;
|
|
11
|
+
type ComponentProps<I, E extends EventNames = {}> = Omit<React.HTMLAttributes<I>, keyof E | keyof ElementProps<I>> & EventListeners<E> & ElementProps<I>;
|
|
12
|
+
export type ReactWebComponent<I extends HTMLElement, E extends EventNames = {}> = React.ForwardRefExoticComponent<ComponentProps<I, E> & React.RefAttributes<I>>;
|
|
13
|
+
export interface Options<I extends HTMLElement, E extends EventNames = {}> {
|
|
14
|
+
react: typeof React;
|
|
15
|
+
tagName: string;
|
|
16
|
+
elementClass: Constructor<I>;
|
|
17
|
+
events?: E;
|
|
18
|
+
displayName?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function createComponent<I extends HTMLElement, E extends EventNames = {}>({ react: React, tagName, elementClass, events, displayName, }: Options<I, E>): ReactWebComponent<I, E>;
|
|
21
|
+
export {};
|