@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.
Files changed (78) hide show
  1. package/dist/components/TimeDisplay.js +7 -5
  2. package/dist/elements/Audio.d.ts +1 -1
  3. package/dist/elements/Audio.js +7 -5
  4. package/dist/elements/Captions.d.ts +5 -5
  5. package/dist/elements/Captions.js +24 -18
  6. package/dist/elements/Image.d.ts +1 -1
  7. package/dist/elements/Image.js +7 -5
  8. package/dist/elements/Surface.d.ts +1 -1
  9. package/dist/elements/Surface.js +9 -7
  10. package/dist/elements/ThumbnailStrip.d.ts +1 -1
  11. package/dist/elements/ThumbnailStrip.js +9 -7
  12. package/dist/elements/Timegroup.d.ts +1 -1
  13. package/dist/elements/Timegroup.js +7 -5
  14. package/dist/elements/Video.d.ts +1 -1
  15. package/dist/elements/Video.js +7 -5
  16. package/dist/elements/Waveform.d.ts +1 -1
  17. package/dist/elements/Waveform.js +7 -5
  18. package/dist/gui/Configuration.d.ts +1 -1
  19. package/dist/gui/Configuration.js +7 -5
  20. package/dist/gui/Controls.d.ts +1 -1
  21. package/dist/gui/Controls.js +7 -5
  22. package/dist/gui/EFDial.d.ts +4 -0
  23. package/dist/gui/EFDial.js +14 -0
  24. package/dist/gui/EFResizableBox.d.ts +4 -0
  25. package/dist/gui/EFResizableBox.js +14 -0
  26. package/dist/gui/Filmstrip.d.ts +1 -1
  27. package/dist/gui/Filmstrip.js +7 -5
  28. package/dist/gui/FitScale.d.ts +1 -1
  29. package/dist/gui/FitScale.js +7 -5
  30. package/dist/gui/FocusOverlay.d.ts +1 -1
  31. package/dist/gui/FocusOverlay.js +7 -5
  32. package/dist/gui/Pause.d.ts +2 -0
  33. package/dist/gui/Pause.js +11 -0
  34. package/dist/gui/Play.d.ts +2 -0
  35. package/dist/gui/Play.js +11 -0
  36. package/dist/gui/Preview.d.ts +1 -1
  37. package/dist/gui/Preview.js +7 -5
  38. package/dist/gui/Scrubber.d.ts +1 -1
  39. package/dist/gui/Scrubber.js +7 -5
  40. package/dist/gui/ToggleLoop.d.ts +1 -1
  41. package/dist/gui/ToggleLoop.js +7 -5
  42. package/dist/gui/TogglePlay.d.ts +1 -1
  43. package/dist/gui/TogglePlay.js +7 -5
  44. package/dist/gui/Workbench.d.ts +1 -1
  45. package/dist/gui/Workbench.js +7 -5
  46. package/dist/hooks/create-element.d.ts +21 -0
  47. package/dist/hooks/create-element.js +103 -0
  48. package/dist/hooks/useTimingInfo.js +33 -32
  49. package/dist/index.d.ts +4 -0
  50. package/dist/index.js +34 -1
  51. package/package.json +6 -5
  52. package/src/components/TimeDisplay.tsx +1 -1
  53. package/src/elements/Audio.ts +1 -1
  54. package/src/elements/Captions.ts +1 -1
  55. package/src/elements/Image.ts +1 -1
  56. package/src/elements/Surface.ts +1 -1
  57. package/src/elements/ThumbnailStrip.ts +1 -1
  58. package/src/elements/Timegroup.ts +1 -1
  59. package/src/elements/Video.ts +1 -1
  60. package/src/elements/Waveform.ts +1 -1
  61. package/src/gui/Configuration.ts +1 -1
  62. package/src/gui/Controls.browsertest.tsx +112 -0
  63. package/src/gui/Controls.ts +1 -1
  64. package/src/gui/EFDial.ts +12 -0
  65. package/src/gui/EFResizableBox.ts +12 -0
  66. package/src/gui/Filmstrip.ts +1 -1
  67. package/src/gui/FitScale.ts +1 -1
  68. package/src/gui/FocusOverlay.ts +1 -1
  69. package/src/gui/Pause.ts +9 -0
  70. package/src/gui/Play.ts +9 -0
  71. package/src/gui/Preview.ts +1 -1
  72. package/src/gui/Scrubber.ts +1 -1
  73. package/src/gui/ToggleLoop.ts +1 -1
  74. package/src/gui/TogglePlay.ts +1 -1
  75. package/src/gui/Workbench.ts +1 -1
  76. package/src/hooks/create-element.ts +167 -0
  77. package/types.json +1 -1
  78. 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
- tagName: "ef-time-display",
6
- elementClass: EFTimeDisplay,
7
- react: React
5
+ tagName: "ef-time-display",
6
+ elementClass: EFTimeDisplay,
7
+ react: React
8
8
  });
9
- export { TimeDisplay };
9
+ export {
10
+ TimeDisplay
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFAudio as EFAudioElement } from '../../../elements/src/index.ts';
2
- export declare const Audio: import('@lit/react').ReactWebComponent<EFAudioElement, {}>;
2
+ export declare const Audio: import('../hooks/create-element').ReactWebComponent<EFAudioElement, {}>;
@@ -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
- tagName: "ef-audio",
6
- elementClass: EFAudio,
7
- react: React
5
+ tagName: "ef-audio",
6
+ elementClass: EFAudio,
7
+ react: React
8
8
  });
9
- export { Audio };
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('@lit/react').ReactWebComponent<EFCaptionsElement, {}>;
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, {}>;
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, EFCaptionsAfterActiveWord, EFCaptionsBeforeActiveWord, EFCaptionsSegment } from "@editframe/elements";
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
- tagName: "ef-captions",
6
- elementClass: EFCaptions,
7
- react: React
5
+ tagName: "ef-captions",
6
+ elementClass: EFCaptions,
7
+ react: React
8
8
  });
9
9
  const CaptionsActiveWord = createComponent({
10
- tagName: "ef-captions-active-word",
11
- elementClass: EFCaptionsActiveWord,
12
- react: React
10
+ tagName: "ef-captions-active-word",
11
+ elementClass: EFCaptionsActiveWord,
12
+ react: React
13
13
  });
14
14
  const CaptionsSegment = createComponent({
15
- tagName: "ef-captions-segment",
16
- elementClass: EFCaptionsSegment,
17
- react: React
15
+ tagName: "ef-captions-segment",
16
+ elementClass: EFCaptionsSegment,
17
+ react: React
18
18
  });
19
19
  const CaptionsBeforeActiveWord = createComponent({
20
- tagName: "ef-captions-before-active-word",
21
- elementClass: EFCaptionsBeforeActiveWord,
22
- react: React
20
+ tagName: "ef-captions-before-active-word",
21
+ elementClass: EFCaptionsBeforeActiveWord,
22
+ react: React
23
23
  });
24
24
  const CaptionsAfterActiveWord = createComponent({
25
- tagName: "ef-captions-after-active-word",
26
- elementClass: EFCaptionsAfterActiveWord,
27
- react: React
25
+ tagName: "ef-captions-after-active-word",
26
+ elementClass: EFCaptionsAfterActiveWord,
27
+ react: React
28
28
  });
29
- export { Captions, CaptionsActiveWord, CaptionsAfterActiveWord, CaptionsBeforeActiveWord, CaptionsSegment };
29
+ export {
30
+ Captions,
31
+ CaptionsActiveWord,
32
+ CaptionsAfterActiveWord,
33
+ CaptionsBeforeActiveWord,
34
+ CaptionsSegment
35
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFImage as EFImageElement } from '../../../elements/src/index.ts';
2
- export declare const Image: import('@lit/react').ReactWebComponent<EFImageElement, {}>;
2
+ export declare const Image: import('../hooks/create-element').ReactWebComponent<EFImageElement, {}>;
@@ -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
- tagName: "ef-image",
6
- elementClass: EFImage,
7
- react: React
5
+ tagName: "ef-image",
6
+ elementClass: EFImage,
7
+ react: React
8
8
  });
9
- export { Image };
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('@lit/react').ReactWebComponent<EFSurfaceElement, {}>;
2
+ export declare const Surface: import('../hooks/create-element').ReactWebComponent<EFSurfaceElement, {}>;
@@ -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
- tagName: "ef-surface",
6
- elementClass: EFSurface,
7
- react: React,
8
- displayName: "Surface",
9
- events: {}
5
+ tagName: "ef-surface",
6
+ elementClass: EFSurface,
7
+ react: React,
8
+ displayName: "Surface",
9
+ events: {}
10
10
  });
11
- export { Surface };
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('@lit/react').ReactWebComponent<EFThumbnailStripElement, {}>;
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
- tagName: "ef-thumbnail-strip",
6
- elementClass: EFThumbnailStrip,
7
- react: React,
8
- displayName: "ThumbnailStrip",
9
- events: {}
5
+ tagName: "ef-thumbnail-strip",
6
+ elementClass: EFThumbnailStrip,
7
+ react: React,
8
+ displayName: "ThumbnailStrip",
9
+ events: {}
10
10
  });
11
- export { ThumbnailStrip };
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('@lit/react').ReactWebComponent<EFTimegroupElement, {}>;
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
- tagName: "ef-timegroup",
6
- elementClass: EFTimegroup,
7
- react: React
5
+ tagName: "ef-timegroup",
6
+ elementClass: EFTimegroup,
7
+ react: React
8
8
  });
9
- export { Timegroup };
9
+ export {
10
+ Timegroup
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFVideo as EFVideoElement } from '../../../elements/src/index.ts';
2
- export declare const Video: import('@lit/react').ReactWebComponent<EFVideoElement, {}>;
2
+ export declare const Video: import('../hooks/create-element').ReactWebComponent<EFVideoElement, {}>;
@@ -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
- tagName: "ef-video",
6
- elementClass: EFVideo,
7
- react: React
5
+ tagName: "ef-video",
6
+ elementClass: EFVideo,
7
+ react: React
8
8
  });
9
- export { Video };
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('@lit/react').ReactWebComponent<EFWaveformElement, {}>;
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
- tagName: "ef-waveform",
6
- elementClass: EFWaveform,
7
- react: React
5
+ tagName: "ef-waveform",
6
+ elementClass: EFWaveform,
7
+ react: React
8
8
  });
9
- export { Waveform };
9
+ export {
10
+ Waveform
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFConfiguration } from '../../../elements/src/index.ts';
2
- export declare const Configuration: import('@lit/react').ReactWebComponent<EFConfiguration, {}>;
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
- tagName: "ef-configuration",
6
- elementClass: EFConfiguration,
7
- react: React
5
+ tagName: "ef-configuration",
6
+ elementClass: EFConfiguration,
7
+ react: React
8
8
  });
9
- export { Configuration };
9
+ export {
10
+ Configuration
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFControls as EFControlsElement } from '../../../elements/src/index.ts';
2
- export declare const Controls: import('@lit/react').ReactWebComponent<EFControlsElement, {}>;
2
+ export declare const Controls: import('../hooks/create-element').ReactWebComponent<EFControlsElement, {}>;
@@ -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
- tagName: "ef-controls",
6
- elementClass: EFControls,
7
- react: React
5
+ tagName: "ef-controls",
6
+ elementClass: EFControls,
7
+ react: React
8
8
  });
9
- export { Controls };
9
+ export {
10
+ Controls
11
+ };
@@ -0,0 +1,4 @@
1
+ import { EFDial as EFDialElement } from '../../../elements/src/index.ts';
2
+ export declare const Dial: import('../hooks/create-element').ReactWebComponent<EFDialElement, {
3
+ onChange: string;
4
+ }>;
@@ -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,4 @@
1
+ import { EFResizableBox as EFResizableBoxElement } from '../../../elements/src/index.ts';
2
+ export declare const ResizableBox: import('../hooks/create-element').ReactWebComponent<EFResizableBoxElement, {
3
+ onBoundsChange: string;
4
+ }>;
@@ -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
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFFilmstrip as EFFilmstripElement } from '../../../elements/src/index.ts';
2
- export declare const Filmstrip: import('@lit/react').ReactWebComponent<EFFilmstripElement, {}>;
2
+ export declare const Filmstrip: import('../hooks/create-element').ReactWebComponent<EFFilmstripElement, {}>;
@@ -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
- tagName: "ef-filmstrip",
6
- elementClass: EFFilmstrip,
7
- react: React
5
+ tagName: "ef-filmstrip",
6
+ elementClass: EFFilmstrip,
7
+ react: React
8
8
  });
9
- export { Filmstrip };
9
+ export {
10
+ Filmstrip
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFFitScale as EFFitScaleElement } from '../../../elements/src/index.ts';
2
- export declare const FitScale: import('@lit/react').ReactWebComponent<EFFitScaleElement, {}>;
2
+ export declare const FitScale: import('../hooks/create-element').ReactWebComponent<EFFitScaleElement, {}>;
@@ -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
- tagName: "ef-fit-scale",
6
- elementClass: EFFitScale,
7
- react: React
5
+ tagName: "ef-fit-scale",
6
+ elementClass: EFFitScale,
7
+ react: React
8
8
  });
9
- export { FitScale };
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('@lit/react').ReactWebComponent<EFFocusOverlayElement, {}>;
2
+ export declare const FocusOverlay: import('../hooks/create-element').ReactWebComponent<EFFocusOverlayElement, {}>;
@@ -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
- tagName: "ef-focus-overlay",
6
- elementClass: EFFocusOverlay,
7
- react: React
5
+ tagName: "ef-focus-overlay",
6
+ elementClass: EFFocusOverlay,
7
+ react: React
8
8
  });
9
- export { FocusOverlay };
9
+ export {
10
+ FocusOverlay
11
+ };
@@ -0,0 +1,2 @@
1
+ import { EFPause as EFPauseElement } from '../../../elements/src/index.ts';
2
+ export declare const Pause: import('../hooks/create-element').ReactWebComponent<EFPauseElement, {}>;
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ import { EFPlay as EFPlayElement } from '../../../elements/src/index.ts';
2
+ export declare const Play: import('../hooks/create-element').ReactWebComponent<EFPlayElement, {}>;
@@ -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
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFPreview as EFPreviewElement } from '../../../elements/src/index.ts';
2
- export declare const Preview: import('@lit/react').ReactWebComponent<EFPreviewElement, {}>;
2
+ export declare const Preview: import('../hooks/create-element').ReactWebComponent<EFPreviewElement, {}>;
@@ -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
- tagName: "ef-preview",
6
- elementClass: EFPreview,
7
- react: React
5
+ tagName: "ef-preview",
6
+ elementClass: EFPreview,
7
+ react: React
8
8
  });
9
- export { Preview };
9
+ export {
10
+ Preview
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFScrubber as EFScrubberElement } from '../../../elements/src/index.ts';
2
- export declare const Scrubber: import('@lit/react').ReactWebComponent<EFScrubberElement, {}>;
2
+ export declare const Scrubber: import('../hooks/create-element').ReactWebComponent<EFScrubberElement, {}>;
@@ -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
- tagName: "ef-scrubber",
6
- elementClass: EFScrubber,
7
- react: React
5
+ tagName: "ef-scrubber",
6
+ elementClass: EFScrubber,
7
+ react: React
8
8
  });
9
- export { Scrubber };
9
+ export {
10
+ Scrubber
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFToggleLoop as EFToggleLoopElement } from '../../../elements/src/index.ts';
2
- export declare const ToggleLoop: import('@lit/react').ReactWebComponent<EFToggleLoopElement, {}>;
2
+ export declare const ToggleLoop: import('../hooks/create-element').ReactWebComponent<EFToggleLoopElement, {}>;
@@ -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
- tagName: "ef-toggle-loop",
6
- elementClass: EFToggleLoop,
7
- react: React
5
+ tagName: "ef-toggle-loop",
6
+ elementClass: EFToggleLoop,
7
+ react: React
8
8
  });
9
- export { ToggleLoop };
9
+ export {
10
+ ToggleLoop
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFTogglePlay as EFTogglePlayElement } from '../../../elements/src/index.ts';
2
- export declare const TogglePlay: import('@lit/react').ReactWebComponent<EFTogglePlayElement, {}>;
2
+ export declare const TogglePlay: import('../hooks/create-element').ReactWebComponent<EFTogglePlayElement, {}>;
@@ -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
- tagName: "ef-toggle-play",
6
- elementClass: EFTogglePlay,
7
- react: React
5
+ tagName: "ef-toggle-play",
6
+ elementClass: EFTogglePlay,
7
+ react: React
8
8
  });
9
- export { TogglePlay };
9
+ export {
10
+ TogglePlay
11
+ };
@@ -1,2 +1,2 @@
1
1
  import { EFWorkbench as EFWorkbenchElement } from '../../../elements/src/index.ts';
2
- export declare const Workbench: import('@lit/react').ReactWebComponent<EFWorkbenchElement, {}>;
2
+ export declare const Workbench: import('../hooks/create-element').ReactWebComponent<EFWorkbenchElement, {}>;
@@ -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
- tagName: "ef-workbench",
6
- elementClass: EFWorkbench,
7
- react: React
5
+ tagName: "ef-workbench",
6
+ elementClass: EFWorkbench,
7
+ react: React
8
8
  });
9
- export { Workbench };
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 {};