easecut-react 1.1.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/LICENSE +21 -0
- package/README.md +224 -0
- package/dist/.dist-D4zXwUWp.js +81 -0
- package/dist/assets/audio-waveform.worker-DiTI_wJb.js +353 -0
- package/dist/assets/fonts/alibaba-puhuiti-2-regular.woff2 +0 -0
- package/dist/assets/fonts/licenses/source-han-sans-OFL-1.1.txt +96 -0
- package/dist/assets/fonts/licenses/zcool-gaoduanhei-usage-statement.txt +52 -0
- package/dist/assets/fonts/source-han-sans-cn-regular.otf +0 -0
- package/dist/assets/fonts/zcool-canger-yuyang-w03.ttf +0 -0
- package/dist/assets/fonts/zcool-gaoduanhei.ttf +0 -0
- package/dist/assets/fonts/zcool-kuaile.ttf +0 -0
- package/dist/assets/fonts/zcool-kuhei.ttf +0 -0
- package/dist/assets/fonts/zcool-wenyi.ttf +0 -0
- package/dist/assets/fonts/zcool-xiaowei-logo.otf +0 -0
- package/dist/assets/frame-preview.worker-ruBHl77w.js +345 -0
- package/dist/assets/soundtouch-processor-BKTidsbT.js +2062 -0
- package/dist/index.js +10802 -0
- package/dist/styles.css +1 -0
- package/dist/types/editor/EaseCut.d.ts +4 -0
- package/dist/types/editor/EaseCut.d.ts.map +1 -0
- package/dist/types/editor/api/create-easecut-api.d.ts +12 -0
- package/dist/types/editor/api/create-easecut-api.d.ts.map +1 -0
- package/dist/types/editor/api/easecut-api-context.d.ts +12 -0
- package/dist/types/editor/api/easecut-api-context.d.ts.map +1 -0
- package/dist/types/editor/api/errors.d.ts +6 -0
- package/dist/types/editor/api/errors.d.ts.map +1 -0
- package/dist/types/editor/api/index.d.ts +3 -0
- package/dist/types/editor/api/index.d.ts.map +1 -0
- package/dist/types/editor/api/source-input.d.ts +7 -0
- package/dist/types/editor/api/source-input.d.ts.map +1 -0
- package/dist/types/editor/api/source-store.d.ts +16 -0
- package/dist/types/editor/api/source-store.d.ts.map +1 -0
- package/dist/types/editor/api/types.d.ts +78 -0
- package/dist/types/editor/api/types.d.ts.map +1 -0
- package/dist/types/editor/components/AudioFloatingInspector.d.ts +10 -0
- package/dist/types/editor/components/AudioFloatingInspector.d.ts.map +1 -0
- package/dist/types/editor/components/CanvasRatioPanel.d.ts +2 -0
- package/dist/types/editor/components/CanvasRatioPanel.d.ts.map +1 -0
- package/dist/types/editor/components/ExportMenu.d.ts +8 -0
- package/dist/types/editor/components/ExportMenu.d.ts.map +1 -0
- package/dist/types/editor/components/FloatingInspector.d.ts +11 -0
- package/dist/types/editor/components/FloatingInspector.d.ts.map +1 -0
- package/dist/types/editor/components/FloatingInspectorBasicPanel.d.ts +10 -0
- package/dist/types/editor/components/FloatingInspectorBasicPanel.d.ts.map +1 -0
- package/dist/types/editor/components/FloatingInspectorShell.d.ts +15 -0
- package/dist/types/editor/components/FloatingInspectorShell.d.ts.map +1 -0
- package/dist/types/editor/components/FloatingInspectorSpeedPanel.d.ts +7 -0
- package/dist/types/editor/components/FloatingInspectorSpeedPanel.d.ts.map +1 -0
- package/dist/types/editor/components/FormDialog.d.ts +16 -0
- package/dist/types/editor/components/FormDialog.d.ts.map +1 -0
- package/dist/types/editor/components/PreviewPanel.d.ts +9 -0
- package/dist/types/editor/components/PreviewPanel.d.ts.map +1 -0
- package/dist/types/editor/components/TextFloatingInspector.d.ts +12 -0
- package/dist/types/editor/components/TextFloatingInspector.d.ts.map +1 -0
- package/dist/types/editor/components/TimelineToolbar.d.ts +8 -0
- package/dist/types/editor/components/TimelineToolbar.d.ts.map +1 -0
- package/dist/types/editor/components/TitleContentTextarea.d.ts +8 -0
- package/dist/types/editor/components/TitleContentTextarea.d.ts.map +1 -0
- package/dist/types/editor/components/VideoFloatingInspector.d.ts +12 -0
- package/dist/types/editor/components/VideoFloatingInspector.d.ts.map +1 -0
- package/dist/types/editor/components/ui/ColorInput.d.ts +15 -0
- package/dist/types/editor/components/ui/ColorInput.d.ts.map +1 -0
- package/dist/types/editor/components/ui/IconButton.d.ts +15 -0
- package/dist/types/editor/components/ui/IconButton.d.ts.map +1 -0
- package/dist/types/editor/components/ui/InputNumber.d.ts +13 -0
- package/dist/types/editor/components/ui/InputNumber.d.ts.map +1 -0
- package/dist/types/editor/components/ui/Select.d.ts +14 -0
- package/dist/types/editor/components/ui/Select.d.ts.map +1 -0
- package/dist/types/editor/components/ui/TextInput.d.ts +10 -0
- package/dist/types/editor/components/ui/TextInput.d.ts.map +1 -0
- package/dist/types/editor/core/audio-waveform-bars.d.ts +50 -0
- package/dist/types/editor/core/audio-waveform-bars.d.ts.map +1 -0
- package/dist/types/editor/core/canvas-size.d.ts +44 -0
- package/dist/types/editor/core/canvas-size.d.ts.map +1 -0
- package/dist/types/editor/core/clip-speed.d.ts +11 -0
- package/dist/types/editor/core/clip-speed.d.ts.map +1 -0
- package/dist/types/editor/core/collision.d.ts +96 -0
- package/dist/types/editor/core/collision.d.ts.map +1 -0
- package/dist/types/editor/core/composition.d.ts +47 -0
- package/dist/types/editor/core/composition.d.ts.map +1 -0
- package/dist/types/editor/core/export-schema.d.ts +5 -0
- package/dist/types/editor/core/export-schema.d.ts.map +1 -0
- package/dist/types/editor/core/index.d.ts +11 -0
- package/dist/types/editor/core/index.d.ts.map +1 -0
- package/dist/types/editor/core/model.d.ts +187 -0
- package/dist/types/editor/core/model.d.ts.map +1 -0
- package/dist/types/editor/core/preview-snapping.d.ts +27 -0
- package/dist/types/editor/core/preview-snapping.d.ts.map +1 -0
- package/dist/types/editor/core/text-fonts.d.ts +76 -0
- package/dist/types/editor/core/text-fonts.d.ts.map +1 -0
- package/dist/types/editor/core/time.d.ts +15 -0
- package/dist/types/editor/core/time.d.ts.map +1 -0
- package/dist/types/editor/core/timeline-commands.d.ts +143 -0
- package/dist/types/editor/core/timeline-commands.d.ts.map +1 -0
- package/dist/types/editor/core/timeline-layout.d.ts +25 -0
- package/dist/types/editor/core/timeline-layout.d.ts.map +1 -0
- package/dist/types/editor/core/timeline-math.d.ts +22 -0
- package/dist/types/editor/core/timeline-math.d.ts.map +1 -0
- package/dist/types/editor/core/timeline-tracks.d.ts +47 -0
- package/dist/types/editor/core/timeline-tracks.d.ts.map +1 -0
- package/dist/types/editor/media/audio-waveform-peaks.d.ts +17 -0
- package/dist/types/editor/media/audio-waveform-peaks.d.ts.map +1 -0
- package/dist/types/editor/media/audio-waveform.d.ts +8 -0
- package/dist/types/editor/media/audio-waveform.d.ts.map +1 -0
- package/dist/types/editor/media/frame-preview.d.ts +25 -0
- package/dist/types/editor/media/frame-preview.d.ts.map +1 -0
- package/dist/types/editor/media/index.d.ts +6 -0
- package/dist/types/editor/media/index.d.ts.map +1 -0
- package/dist/types/editor/media/media-runtime.d.ts +47 -0
- package/dist/types/editor/media/media-runtime.d.ts.map +1 -0
- package/dist/types/editor/media/mediabunny-audio-waveform.d.ts +8 -0
- package/dist/types/editor/media/mediabunny-audio-waveform.d.ts.map +1 -0
- package/dist/types/editor/media/mediabunny-frame-preview.d.ts +21 -0
- package/dist/types/editor/media/mediabunny-frame-preview.d.ts.map +1 -0
- package/dist/types/editor/media/preview-audio-engine.d.ts +23 -0
- package/dist/types/editor/media/preview-audio-engine.d.ts.map +1 -0
- package/dist/types/editor/media/preview-playback-controller.d.ts +26 -0
- package/dist/types/editor/media/preview-playback-controller.d.ts.map +1 -0
- package/dist/types/editor/media/single-frame-preview.d.ts +30 -0
- package/dist/types/editor/media/single-frame-preview.d.ts.map +1 -0
- package/dist/types/editor/media/text-layout-runtime.d.ts +27 -0
- package/dist/types/editor/media/text-layout-runtime.d.ts.map +1 -0
- package/dist/types/editor/store/index.d.ts +3 -0
- package/dist/types/editor/store/index.d.ts.map +1 -0
- package/dist/types/editor/store/timeline-store-context.d.ts +14 -0
- package/dist/types/editor/store/timeline-store-context.d.ts.map +1 -0
- package/dist/types/editor/store/timeline-store.d.ts +115 -0
- package/dist/types/editor/store/timeline-store.d.ts.map +1 -0
- package/dist/types/editor/timeline/AudioWaveformCanvas.d.ts +13 -0
- package/dist/types/editor/timeline/AudioWaveformCanvas.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelineClip.d.ts +41 -0
- package/dist/types/editor/timeline/TimelineClip.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelineDragGhost.d.ts +9 -0
- package/dist/types/editor/timeline/TimelineDragGhost.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelinePanel.d.ts +11 -0
- package/dist/types/editor/timeline/TimelinePanel.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelineRuler.d.ts +14 -0
- package/dist/types/editor/timeline/TimelineRuler.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelineTrimHandle.d.ts +12 -0
- package/dist/types/editor/timeline/TimelineTrimHandle.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelineViewport.d.ts +8 -0
- package/dist/types/editor/timeline/TimelineViewport.d.ts.map +1 -0
- package/dist/types/editor/timeline/clip-reveal.d.ts +29 -0
- package/dist/types/editor/timeline/clip-reveal.d.ts.map +1 -0
- package/dist/types/editor/timeline/timeline-interaction.d.ts +79 -0
- package/dist/types/editor/timeline/timeline-interaction.d.ts.map +1 -0
- package/dist/types/editor/timeline/useTimelineController.d.ts +22 -0
- package/dist/types/editor/timeline/useTimelineController.d.ts.map +1 -0
- package/dist/types/editor/types.d.ts +52 -0
- package/dist/types/editor/types.d.ts.map +1 -0
- package/dist/types/editor/util/abort-error.d.ts +3 -0
- package/dist/types/editor/util/abort-error.d.ts.map +1 -0
- package/dist/types/editor/util/browser.d.ts +5 -0
- package/dist/types/editor/util/browser.d.ts.map +1 -0
- package/dist/types/editor/util/format-canvas-font.d.ts +7 -0
- package/dist/types/editor/util/format-canvas-font.d.ts.map +1 -0
- package/dist/types/editor/util/format-media-label.d.ts +4 -0
- package/dist/types/editor/util/format-media-label.d.ts.map +1 -0
- package/dist/types/editor/util/format-text-color.d.ts +4 -0
- package/dist/types/editor/util/format-text-color.d.ts.map +1 -0
- package/dist/types/editor/util/format-timeline-time.d.ts +6 -0
- package/dist/types/editor/util/format-timeline-time.d.ts.map +1 -0
- package/dist/types/editor/util/id.d.ts +2 -0
- package/dist/types/editor/util/id.d.ts.map +1 -0
- package/dist/types/editor/util/media-file-format.d.ts +6 -0
- package/dist/types/editor/util/media-file-format.d.ts.map +1 -0
- package/dist/types/editor/util/number.d.ts +6 -0
- package/dist/types/editor/util/number.d.ts.map +1 -0
- package/dist/types/editor/util/text.d.ts +2 -0
- package/dist/types/editor/util/text.d.ts.map +1 -0
- package/dist/types/editor/util/url.d.ts +5 -0
- package/dist/types/editor/util/url.d.ts.map +1 -0
- package/dist/types/editor/util/value.d.ts +3 -0
- package/dist/types/editor/util/value.d.ts.map +1 -0
- package/dist/types/editor/workers/audio-waveform-protocol.d.ts +24 -0
- package/dist/types/editor/workers/audio-waveform-protocol.d.ts.map +1 -0
- package/dist/types/editor/workers/audio-waveform.worker.d.ts +2 -0
- package/dist/types/editor/workers/audio-waveform.worker.d.ts.map +1 -0
- package/dist/types/editor/workers/frame-preview-protocol.d.ts +35 -0
- package/dist/types/editor/workers/frame-preview-protocol.d.ts.map +1 -0
- package/dist/types/editor/workers/frame-preview.worker.d.ts +2 -0
- package/dist/types/editor/workers/frame-preview.worker.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const MAX_AUDIO_WAVEFORM_SAMPLE_COUNT = 16384;
|
|
2
|
+
export declare const normalizeAudioWaveformSampleCount: (value: number) => number;
|
|
3
|
+
export type AudioWaveformWorkerRequest = {
|
|
4
|
+
blob: Blob;
|
|
5
|
+
requestId: number;
|
|
6
|
+
sampleCount: number;
|
|
7
|
+
type: 'extract';
|
|
8
|
+
} | {
|
|
9
|
+
requestId: number;
|
|
10
|
+
type: 'cancel';
|
|
11
|
+
};
|
|
12
|
+
export type AudioWaveformWorkerResponse = {
|
|
13
|
+
requestId: number;
|
|
14
|
+
samples: Float32Array;
|
|
15
|
+
type: 'complete';
|
|
16
|
+
} | {
|
|
17
|
+
code: 'decode' | 'invalid-media' | 'unsupported';
|
|
18
|
+
message: string;
|
|
19
|
+
requestId: number;
|
|
20
|
+
type: 'error';
|
|
21
|
+
};
|
|
22
|
+
export declare const isAudioWaveformWorkerRequest: (value: unknown) => value is AudioWaveformWorkerRequest;
|
|
23
|
+
export declare const isAudioWaveformWorkerResponse: (value: unknown) => value is AudioWaveformWorkerResponse;
|
|
24
|
+
//# sourceMappingURL=audio-waveform-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-waveform-protocol.d.ts","sourceRoot":"","sources":["../../../../src/editor/workers/audio-waveform-protocol.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B,QAAS,CAAC;AAEtD,eAAO,MAAM,iCAAiC,GAAI,OAAO,MAAM,WAMxD,CAAC;AAER,MAAM,MAAM,0BAA0B,GAClC;IACE,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;CACjB,GACD;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,2BAA2B,GACnC;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;CAClB,GACD;IACE,IAAI,EAAE,QAAQ,GAAG,eAAe,GAAG,aAAa,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAYN,eAAO,MAAM,4BAA4B,GACvC,OAAO,OAAO,KACb,KAAK,IAAI,0BAQX,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,OAAO,OAAO,KACb,KAAK,IAAI,2BAYX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-waveform.worker.d.ts","sourceRoot":"","sources":["../../../../src/editor/workers/audio-waveform.worker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type FramePreviewWorkerFrame = {
|
|
2
|
+
index: number;
|
|
3
|
+
timeUs: number;
|
|
4
|
+
};
|
|
5
|
+
export type FramePreviewWorkerRequest = {
|
|
6
|
+
blob: Blob;
|
|
7
|
+
outputHeight: number;
|
|
8
|
+
type: 'open';
|
|
9
|
+
} | {
|
|
10
|
+
frames: FramePreviewWorkerFrame[];
|
|
11
|
+
type: 'extract';
|
|
12
|
+
} | {
|
|
13
|
+
type: 'dispose';
|
|
14
|
+
};
|
|
15
|
+
export type FramePreviewWorkerResponse = {
|
|
16
|
+
frameWidth: number;
|
|
17
|
+
mediaDurationUs: number;
|
|
18
|
+
type: 'ready';
|
|
19
|
+
} | {
|
|
20
|
+
blob: Blob;
|
|
21
|
+
index: number;
|
|
22
|
+
timeUs: number;
|
|
23
|
+
type: 'frame';
|
|
24
|
+
} | {
|
|
25
|
+
type: 'complete';
|
|
26
|
+
} | {
|
|
27
|
+
type: 'disposed';
|
|
28
|
+
} | {
|
|
29
|
+
code: 'decode' | 'invalid-media' | 'unsupported';
|
|
30
|
+
message: string;
|
|
31
|
+
type: 'error';
|
|
32
|
+
};
|
|
33
|
+
export declare const isFramePreviewWorkerRequest: (value: unknown) => value is FramePreviewWorkerRequest;
|
|
34
|
+
export declare const isFramePreviewWorkerResponse: (value: unknown) => value is FramePreviewWorkerResponse;
|
|
35
|
+
//# sourceMappingURL=frame-preview-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-preview-protocol.d.ts","sourceRoot":"","sources":["../../../../src/editor/workers/frame-preview-protocol.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC;IACE,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,IAAI,EAAE,SAAS,CAAC;CACjB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,0BAA0B,GAClC;IACE,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;CACf,GACD;IACE,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACf,GACD;IACE,IAAI,EAAE,UAAU,CAAC;CAClB,GACD;IACE,IAAI,EAAE,UAAU,CAAC;CAClB,GACD;IACE,IAAI,EAAE,QAAQ,GAAG,eAAe,GAAG,aAAa,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAgBN,eAAO,MAAM,2BAA2B,GACtC,OAAO,OAAO,KACb,KAAK,IAAI,yBAWX,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,OAAO,OAAO,KACb,KAAK,IAAI,0BA2BX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-preview.worker.d.ts","sourceRoot":"","sources":["../../../../src/editor/workers/frame-preview.worker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { EaseCut } from './editor/EaseCut';
|
|
2
|
+
export { EaseCutApiError, type EaseCutClipApi, type EaseCutClipInput, type EaseCutClipPatch, type EaseCutApiErrorCode, type EaseCutHandle, type EaseCutMediaClipInput, type EaseCutSourceApi, type EaseCutSourceInput, type EaseCutSourcePatch, type EaseCutTextClipInput, } from './editor/api';
|
|
3
|
+
export { frameIndexToTimeUs, microsecondsToMilliseconds, microsecondsToSeconds, millisecondsToMicroseconds, secondsToMicroseconds, timeUsToFrameIndex, type RationalFrameRate, } from './editor/core/time';
|
|
4
|
+
import type { CompositionExportPayload, VideoTimelineDraft } from './editor/types';
|
|
5
|
+
export declare const createCompositionExportPayload: (draft: VideoTimelineDraft) => CompositionExportPayload;
|
|
6
|
+
export type { CompositionExportCanvas, CompositionExportClip, CompositionExportImageClip, CompositionExportMediaClip, CompositionExportPayload, CompositionExportSpeed, CompositionExportTransform, CompositionExportTrim, CompositionExportTextClip, CompositionExportTimedMediaClip, CompositionExportVolume, TimelineClipPosition, TimelineClipSpeed, TimelineClipType, TimelineImageClip, TimelineMediaClip, TimelineMediaType, TimelineTimedMediaClip, TimelineTimedMediaType, TimelineTextClip, TimelineTextFontPreset, TimelineTextFontType, TimelineTextLayoutSize, TimelineTrackType, TimelineVisualMediaClip, VideoTimelineCanvasSize, VideoTimelineClip, VideoTimelineClipDraft, VideoTimelineClipTransform, VideoTimelineClipSpeed, VideoTimelineDraft, EaseCutProps, EaseCutExportRequest, EaseCutMediaLoader, EaseCutMediaMetadata, VideoTimelineMediaType, VideoTimelineSource, VideoTimelineTrack, VideoTimelineTrackDraft, VideoTimelineClipVolume, } from './editor/types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,8BAA8B,GACzC,OAAO,kBAAkB,KACxB,wBAA2D,CAAC;AAE/D,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,+BAA+B,EAC/B,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "easecut-react",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "独立、可嵌入的 React 视频时间线编辑器",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/types/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles.css": "./dist/styles.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"build": "npm run typecheck && npm run build:lib && npm run build:demo",
|
|
31
|
+
"build:lib": "vite build --mode library && tsc -p tsconfig.lib.json",
|
|
32
|
+
"build:demo": "vite build --mode demo",
|
|
33
|
+
"preview": "vite preview --outDir demo-dist",
|
|
34
|
+
"lint": "eslint .",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"test": "vitest run",
|
|
37
|
+
"test:watch": "vitest"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": ">=19.0.0 <20.0.0",
|
|
41
|
+
"react-dom": ">=19.0.0 <20.0.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@radix-ui/react-context-menu": "^2.3.3",
|
|
45
|
+
"@radix-ui/react-dialog": "^1.1.19",
|
|
46
|
+
"@radix-ui/react-separator": "^1.1.11",
|
|
47
|
+
"@radix-ui/react-toast": "^1.2.19",
|
|
48
|
+
"@soundtouchjs/audio-worklet": "^2.1.0",
|
|
49
|
+
"lucide-react": "^1.14.0",
|
|
50
|
+
"mediabunny": "^1.51.0",
|
|
51
|
+
"zustand": "^5.0.13"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@eslint/js": "^9.39.4",
|
|
55
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
56
|
+
"@testing-library/react": "^16.3.2",
|
|
57
|
+
"@testing-library/user-event": "^14.6.1",
|
|
58
|
+
"@types/node": "^24.12.0",
|
|
59
|
+
"@types/react": "^19.2.14",
|
|
60
|
+
"@types/react-dom": "^19.2.3",
|
|
61
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
62
|
+
"eslint": "^9.39.4",
|
|
63
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
64
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
65
|
+
"globals": "^17.4.0",
|
|
66
|
+
"jsdom": "^27.0.1",
|
|
67
|
+
"react": "^19.2.4",
|
|
68
|
+
"react-dom": "^19.2.4",
|
|
69
|
+
"typescript": "~5.9.3",
|
|
70
|
+
"typescript-eslint": "^8.56.1",
|
|
71
|
+
"vite": "^8.0.0",
|
|
72
|
+
"vitest": "^4.1.5"
|
|
73
|
+
}
|
|
74
|
+
}
|