@remotion/cli 3.0.0 → 3.0.3
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/.prettierrc.js +14 -0
- package/dist/compositions.js +2 -2
- package/dist/compositions.js.map +1 -1
- package/dist/editor/components/AudioWaveform.d.ts.map +1 -1
- package/dist/editor/components/AudioWaveform.js +19 -1
- package/dist/editor/components/AudioWaveform.js.map +1 -1
- package/dist/editor/components/CompositionSelector.d.ts +1 -0
- package/dist/editor/components/CompositionSelector.d.ts.map +1 -1
- package/dist/editor/components/CompositionSelector.js +45 -4
- package/dist/editor/components/CompositionSelector.js.map +1 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts +15 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts.map +1 -1
- package/dist/editor/components/CompositionSelectorItem.js +30 -9
- package/dist/editor/components/CompositionSelectorItem.js.map +1 -1
- package/dist/editor/components/MenuToolbar.js.map +1 -1
- package/dist/editor/components/MuteToggle.js +1 -1
- package/dist/editor/components/MuteToggle.js.map +1 -1
- package/dist/editor/components/NewComposition/MenuContent.d.ts.map +1 -1
- package/dist/editor/components/NewComposition/MenuContent.js.map +1 -1
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +1 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js.map +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +2 -3
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +1 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +1 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +1 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +1 -1
- package/dist/editor/components/TimelineInOutToggle.d.ts.map +1 -1
- package/dist/editor/components/TimelineInOutToggle.js +2 -2
- package/dist/editor/components/TimelineInOutToggle.js.map +1 -1
- package/dist/editor/helpers/create-folder-tree.d.ts +9 -0
- package/dist/editor/helpers/create-folder-tree.d.ts.map +1 -0
- package/dist/editor/helpers/create-folder-tree.js +102 -0
- package/dist/editor/helpers/create-folder-tree.js.map +1 -0
- package/dist/editor/helpers/persist-open-folders.d.ts +5 -0
- package/dist/editor/helpers/persist-open-folders.d.ts.map +1 -0
- package/dist/editor/helpers/persist-open-folders.js +21 -0
- package/dist/editor/helpers/persist-open-folders.js.map +1 -0
- package/dist/editor/helpers/use-keybinding.js +1 -4
- package/dist/editor/helpers/use-keybinding.js.map +1 -1
- package/dist/editor/icons/folder.d.ts +4 -0
- package/dist/editor/icons/folder.d.ts.map +1 -0
- package/dist/editor/icons/folder.js +13 -0
- package/dist/editor/icons/folder.js.map +1 -0
- package/dist/get-cli-options.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/load-config.js +1 -1
- package/dist/previewEntry.d.ts.map +1 -1
- package/dist/previewEntry.js.map +1 -1
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +1 -1
- package/dist/render.js.map +1 -1
- package/dist/resolve-from.js +1 -1
- package/dist/resolve-from.js.map +1 -1
- package/package.json +9 -9
- package/remotion-cli.js +1 -2
- package/.turbo/turbo-build.log +0 -5
- package/.turbo/turbo-lint.log +0 -15
- package/.turbo/turbo-test.log +0 -15
- package/dist/cycle-browser-tabs.d.ts +0 -7
- package/dist/cycle-browser-tabs.d.ts.map +0 -1
- package/dist/cycle-browser-tabs.js +0 -24
- package/dist/cycle-browser-tabs.js.map +0 -1
- package/dist/delete-directory.d.ts +0 -2
- package/dist/delete-directory.d.ts.map +0 -1
- package/dist/delete-directory.js +0 -15
- package/dist/delete-directory.js.map +0 -1
- package/dist/editor/components/ErrorOverlay.d.ts +0 -9
- package/dist/editor/components/ErrorOverlay.d.ts.map +0 -1
- package/dist/editor/components/ErrorOverlay.js +0 -22
- package/dist/editor/components/ErrorOverlay.js.map +0 -1
- package/dist/editor/components/Errors/ErrorDisplay.d.ts +0 -12
- package/dist/editor/components/Errors/ErrorDisplay.d.ts.map +0 -1
- package/dist/editor/components/Errors/ErrorDisplay.js +0 -43
- package/dist/editor/components/Errors/ErrorDisplay.js.map +0 -1
- package/dist/editor/components/Errors/ErrorOverlay.d.ts +0 -9
- package/dist/editor/components/Errors/ErrorOverlay.d.ts.map +0 -1
- package/dist/editor/components/Errors/ErrorOverlay.js +0 -22
- package/dist/editor/components/Errors/ErrorOverlay.js.map +0 -1
- package/dist/editor/components/Errors/stack-frame.d.ts +0 -46
- package/dist/editor/components/Errors/stack-frame.d.ts.map +0 -1
- package/dist/editor/components/Errors/stack-frame.js +0 -82
- package/dist/editor/components/Errors/stack-frame.js.map +0 -1
- package/dist/editor/components/FramePersister.d.ts +0 -4
- package/dist/editor/components/FramePersister.d.ts.map +0 -1
- package/dist/editor/components/FramePersister.js +0 -28
- package/dist/editor/components/FramePersister.js.map +0 -1
- package/dist/editor/components/MediaVolumeSlider.d.ts +0 -3
- package/dist/editor/components/MediaVolumeSlider.d.ts.map +0 -1
- package/dist/editor/components/MediaVolumeSlider.js +0 -113
- package/dist/editor/components/MediaVolumeSlider.js.map +0 -1
- package/dist/editor/components/Menu/Checkmark.d.ts +0 -2
- package/dist/editor/components/Menu/Checkmark.d.ts.map +0 -1
- package/dist/editor/components/Menu/Checkmark.js +0 -11
- package/dist/editor/components/Menu/Checkmark.js.map +0 -1
- package/dist/editor/components/Menu/is-menu-click.d.ts +0 -1
- package/dist/editor/components/Menu/is-menu-click.d.ts.map +0 -1
- package/dist/editor/components/Menu/is-menu-click.js +0 -2
- package/dist/editor/components/Menu/is-menu-click.js.map +0 -1
- package/dist/editor/components/NewComposition/CompositionType.d.ts +0 -7
- package/dist/editor/components/NewComposition/CompositionType.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CompositionType.js +0 -57
- package/dist/editor/components/NewComposition/CompositionType.js.map +0 -1
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.d.ts +0 -6
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.js +0 -32
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompHeader.d.ts +0 -3
- package/dist/editor/components/NewComposition/NewCompHeader.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompHeader.js +0 -29
- package/dist/editor/components/NewComposition/NewCompHeader.js.map +0 -1
- package/dist/editor/components/NewComposition.d.ts +0 -3
- package/dist/editor/components/NewComposition.d.ts.map +0 -1
- package/dist/editor/components/NewComposition.js +0 -47
- package/dist/editor/components/NewComposition.js.map +0 -1
- package/dist/editor/components/NewSequence.d.ts +0 -3
- package/dist/editor/components/NewSequence.d.ts.map +0 -1
- package/dist/editor/components/NewSequence.js +0 -47
- package/dist/editor/components/NewSequence.js.map +0 -1
- package/dist/editor/components/Spacing.d.ts +0 -7
- package/dist/editor/components/Spacing.d.ts.map +0 -1
- package/dist/editor/components/Spacing.js +0 -18
- package/dist/editor/components/Spacing.js.map +0 -1
- package/dist/editor/components/Timeline/LoopIndicator.d.ts +0 -5
- package/dist/editor/components/Timeline/LoopIndicator.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopIndicator.js +0 -37
- package/dist/editor/components/Timeline/LoopIndicator.js.map +0 -1
- package/dist/editor/helpers/font.d.ts +0 -2
- package/dist/editor/helpers/font.d.ts.map +0 -1
- package/dist/editor/helpers/font.js +0 -5
- package/dist/editor/helpers/font.js.map +0 -1
- package/dist/editor/helpers/isCompositionStill.d.ts +0 -1
- package/dist/editor/helpers/isCompositionStill.d.ts.map +0 -1
- package/dist/editor/helpers/isCompositionStill.js +0 -2
- package/dist/editor/helpers/isCompositionStill.js.map +0 -1
- package/dist/editor/helpers/validate-composition-name.d.ts +0 -3
- package/dist/editor/helpers/validate-composition-name.d.ts.map +0 -1
- package/dist/editor/helpers/validate-composition-name.js +0 -15
- package/dist/editor/helpers/validate-composition-name.js.map +0 -1
- package/dist/editor/hooks/get-el-size.d.ts +0 -8
- package/dist/editor/hooks/get-el-size.d.ts.map +0 -1
- package/dist/editor/hooks/get-el-size.js +0 -43
- package/dist/editor/hooks/get-el-size.js.map +0 -1
- package/dist/editor/icons/fast-back.d.ts +0 -3
- package/dist/editor/icons/fast-back.d.ts.map +0 -1
- package/dist/editor/icons/fast-back.js +0 -9
- package/dist/editor/icons/fast-back.js.map +0 -1
- package/dist/editor/icons/fast-forward.d.ts +0 -3
- package/dist/editor/icons/fast-forward.d.ts.map +0 -1
- package/dist/editor/icons/fast-forward.js +0 -9
- package/dist/editor/icons/fast-forward.js.map +0 -1
- package/dist/editor/state/global-menu-id.d.ts +0 -4
- package/dist/editor/state/global-menu-id.d.ts.map +0 -1
- package/dist/editor/state/global-menu-id.js +0 -11
- package/dist/editor/state/global-menu-id.js.map +0 -1
- package/dist/editor/state/menu-selection.d.ts +0 -8
- package/dist/editor/state/menu-selection.d.ts.map +0 -1
- package/dist/editor/state/menu-selection.js +0 -14
- package/dist/editor/state/menu-selection.js.map +0 -1
- package/dist/listCompositions.d.ts +0 -2
- package/dist/listCompositions.d.ts.map +0 -1
- package/dist/listCompositions.js +0 -46
- package/dist/listCompositions.js.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorDisplay = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const container = {
|
|
6
|
-
width: '100%',
|
|
7
|
-
maxWidth: 1000,
|
|
8
|
-
marginLeft: 'auto',
|
|
9
|
-
marginRight: 'auto',
|
|
10
|
-
fontFamily: 'sans-serif',
|
|
11
|
-
paddingTop: '5vh',
|
|
12
|
-
};
|
|
13
|
-
const title = {
|
|
14
|
-
fontSize: '1.5em',
|
|
15
|
-
fontWeight: 'bold',
|
|
16
|
-
};
|
|
17
|
-
const stack = {
|
|
18
|
-
backgroundColor: 'black',
|
|
19
|
-
marginTop: 17,
|
|
20
|
-
};
|
|
21
|
-
const stackLine = {
|
|
22
|
-
paddingTop: 8,
|
|
23
|
-
paddingBottom: 8,
|
|
24
|
-
paddingLeft: 14,
|
|
25
|
-
paddingRight: 14,
|
|
26
|
-
};
|
|
27
|
-
const ErrorDisplay = ({ display }) => {
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: container }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: title }, { children: [display.error.name, ": ", display.error.message] }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ style: stack }, { children: display.stackFrames.map((s, i) => {
|
|
29
|
-
var _a;
|
|
30
|
-
return (
|
|
31
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
32
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: stackLine }, { children: [(0, jsx_runtime_1.jsx)("div", { children: s.functionName }, void 0), (0, jsx_runtime_1.jsxs)("div", { children: [s._originalFileName, ":", s.columnNumber] }, void 0), (0, jsx_runtime_1.jsx)("div", { children: (_a = s._originalScriptCode) === null || _a === void 0 ? void 0 : _a.map((s, j) => {
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: {
|
|
34
|
-
fontFamily: 'monospace',
|
|
35
|
-
whiteSpace: 'pre',
|
|
36
|
-
tabSize: 2,
|
|
37
|
-
color: s.highlight ? 'red' : 'inherit',
|
|
38
|
-
} }, { children: s.content }), j));
|
|
39
|
-
}) }, void 0)] }), i));
|
|
40
|
-
}) }), void 0)] }), void 0));
|
|
41
|
-
};
|
|
42
|
-
exports.ErrorDisplay = ErrorDisplay;
|
|
43
|
-
//# sourceMappingURL=ErrorDisplay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDisplay.js","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorDisplay.tsx"],"names":[],"mappings":";;;;AAWA,MAAM,SAAS,GAAwB;IACtC,K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,gBAEA,CAAC,CAAC,OAAO,KARL,CAAC,CASD,CACN,CAAC;gCACH,CAAC,CAAC,WACG,MAtBG,CAAC,CAuBL,CACN,CAAC;gBACH,CAAC,CAAC,YACG,aACD,CACN,CAAC;AACH,CAAC,CAAC;AAzCW,QAAA,YAAY,gBAyCvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ErrorRecord } from './ErrorDisplay';
|
|
3
|
-
declare type SetErrors = {
|
|
4
|
-
setErrors: (errs: ErrorRecord[]) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const setErrorsRef: React.RefObject<SetErrors>;
|
|
7
|
-
export declare const Overlay: React.FC;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ErrorOverlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorOverlay.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAe,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEzD,aAAK,SAAS,GAAG;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,4BAAyB,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAwB3B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Overlay = exports.setErrorsRef = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const remotion_1 = require("remotion");
|
|
7
|
-
const ErrorDisplay_1 = require("./ErrorDisplay");
|
|
8
|
-
exports.setErrorsRef = (0, react_1.createRef)();
|
|
9
|
-
const Overlay = () => {
|
|
10
|
-
const [errors, setErrors] = (0, react_1.useState)([]);
|
|
11
|
-
(0, react_1.useImperativeHandle)(exports.setErrorsRef, () => {
|
|
12
|
-
return { setErrors };
|
|
13
|
-
}, []);
|
|
14
|
-
if (errors.length === 0) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, Object.assign({ style: { backgroundColor: '#1f2428', overflow: 'auto', color: 'white' } }, { children: errors.map((err) => {
|
|
18
|
-
return (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: err }, err.error.stack);
|
|
19
|
-
}) }), void 0));
|
|
20
|
-
};
|
|
21
|
-
exports.Overlay = Overlay;
|
|
22
|
-
//# sourceMappingURL=ErrorOverlay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorOverlay.js","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorOverlay.tsx"],"names":[],"mappings":";;;;AAAA,iCAAsE;AACtE,uCAAsC;AACtC,iDAAyD;AAM5C,QAAA,YAAY,GAAG,IAAA,iBAAS,GAAa,CAAC;AAE5C,MAAM,OAAO,GAAa,GAAG,EAAE;IACrC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAgB,EAAE,CAAC,CAAC;IAExD,IAAA,2BAAmB,EAClB,oBAAY,EACZ,GAAG,EAAE;QACJ,OAAO,EAAC,SAAS,EAAC,CAAC;IACpB,CAAC,EACD,EAAE,CACF,CAAC;IAEF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,CACN,uBAAC,uBAAY,kBACZ,KAAK,EAAE,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAC,gBAEpE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,OAAO,uBAAC,2BAAY,IAAuB,OAAO,EAAE,GAAG,IAA7B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAkB,CAAC;QAC7D,CAAC,CAAC,YACY,CACf,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,OAAO,WAwBlB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
/** A container holding a script line. */
|
|
8
|
-
export declare class ScriptLine {
|
|
9
|
-
/** The line number of this line of source. */
|
|
10
|
-
lineNumber: number;
|
|
11
|
-
/** The content (or value) of this line of source. */
|
|
12
|
-
content: string;
|
|
13
|
-
/** Whether or not this line should be highlighted. Particularly useful for error reporting with context. */
|
|
14
|
-
highlight: boolean;
|
|
15
|
-
constructor(lineNumber: number, content: string, highlight?: boolean);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A representation of a stack frame.
|
|
19
|
-
*/
|
|
20
|
-
export declare class StackFrame {
|
|
21
|
-
functionName: string | null;
|
|
22
|
-
fileName: string | null;
|
|
23
|
-
lineNumber: number | null;
|
|
24
|
-
columnNumber: number | null;
|
|
25
|
-
_originalFunctionName: string | null;
|
|
26
|
-
_originalFileName: string | null;
|
|
27
|
-
_originalLineNumber: number | null;
|
|
28
|
-
_originalColumnNumber: number | null;
|
|
29
|
-
_scriptCode: ScriptLine[] | null;
|
|
30
|
-
_originalScriptCode: ScriptLine[] | null;
|
|
31
|
-
constructor(functionName?: string | null, fileName?: string | null, lineNumber?: number | null, columnNumber?: number | null, scriptCode?: ScriptLine[] | null, sourceFunctionName?: string | null, sourceFileName?: string | null, sourceLineNumber?: number | null, sourceColumnNumber?: number | null, sourceScriptCode?: ScriptLine[] | null);
|
|
32
|
-
/**
|
|
33
|
-
* Returns the name of this function.
|
|
34
|
-
*/
|
|
35
|
-
getFunctionName(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the source of the frame.
|
|
38
|
-
* This contains the file name, line number, and column number when available.
|
|
39
|
-
*/
|
|
40
|
-
getSource(): string;
|
|
41
|
-
/**
|
|
42
|
-
* Returns a pretty version of this stack frame.
|
|
43
|
-
*/
|
|
44
|
-
toString(): string;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=stack-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-frame.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/stack-frame.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yCAAyC;AACzC,qBAAa,UAAU;IACtB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,4GAA4G;IAC5G,SAAS,EAAE,OAAO,CAAC;gBAEP,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,UAAQ;CAKlE;AAED;;GAEG;AACH,qBAAa,UAAU;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;gBAIxC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,QAAQ,GAAE,MAAM,GAAG,IAAW,EAC9B,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,UAAU,GAAE,UAAU,EAAE,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,cAAc,GAAE,MAAM,GAAG,IAAW,EACpC,gBAAgB,GAAE,MAAM,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,gBAAgB,GAAE,UAAU,EAAE,GAAG,IAAW;IAiC7C;;OAEG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAiBnB;;OAEG;IACH,QAAQ,IAAI,MAAM;CAKlB"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.StackFrame = exports.ScriptLine = void 0;
|
|
10
|
-
/** A container holding a script line. */
|
|
11
|
-
class ScriptLine {
|
|
12
|
-
constructor(lineNumber, content, highlight = false) {
|
|
13
|
-
this.lineNumber = lineNumber;
|
|
14
|
-
this.content = content;
|
|
15
|
-
this.highlight = highlight;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ScriptLine = ScriptLine;
|
|
19
|
-
/**
|
|
20
|
-
* A representation of a stack frame.
|
|
21
|
-
*/
|
|
22
|
-
class StackFrame {
|
|
23
|
-
// eslint-disable-next-line max-params
|
|
24
|
-
constructor(functionName = null, fileName = null, lineNumber = null, columnNumber = null, scriptCode = null, sourceFunctionName = null, sourceFileName = null, sourceLineNumber = null, sourceColumnNumber = null, sourceScriptCode = null) {
|
|
25
|
-
if (functionName && functionName.indexOf('Object.') === 0) {
|
|
26
|
-
functionName = functionName.slice('Object.'.length);
|
|
27
|
-
}
|
|
28
|
-
if (
|
|
29
|
-
// Chrome has a bug with inferring function.name:
|
|
30
|
-
// https://github.com/facebook/create-react-app/issues/2097
|
|
31
|
-
// Let's ignore a meaningless name we get for top-level modules.
|
|
32
|
-
functionName === 'friendlySyntaxErrorLabel' ||
|
|
33
|
-
functionName === 'exports.__esModule' ||
|
|
34
|
-
functionName === '<anonymous>' ||
|
|
35
|
-
!functionName) {
|
|
36
|
-
functionName = null;
|
|
37
|
-
}
|
|
38
|
-
this.functionName = functionName;
|
|
39
|
-
this.fileName = fileName;
|
|
40
|
-
this.lineNumber = lineNumber;
|
|
41
|
-
this.columnNumber = columnNumber;
|
|
42
|
-
this._originalFunctionName = sourceFunctionName;
|
|
43
|
-
this._originalFileName = sourceFileName;
|
|
44
|
-
this._originalLineNumber = sourceLineNumber;
|
|
45
|
-
this._originalColumnNumber = sourceColumnNumber;
|
|
46
|
-
this._scriptCode = scriptCode;
|
|
47
|
-
this._originalScriptCode = sourceScriptCode;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns the name of this function.
|
|
51
|
-
*/
|
|
52
|
-
getFunctionName() {
|
|
53
|
-
return this.functionName || '(anonymous function)';
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns the source of the frame.
|
|
57
|
-
* This contains the file name, line number, and column number when available.
|
|
58
|
-
*/
|
|
59
|
-
getSource() {
|
|
60
|
-
let str = '';
|
|
61
|
-
if (this.fileName !== null) {
|
|
62
|
-
str += this.fileName + ':';
|
|
63
|
-
}
|
|
64
|
-
if (this.lineNumber !== null) {
|
|
65
|
-
str += this.lineNumber + ':';
|
|
66
|
-
}
|
|
67
|
-
if (this.columnNumber !== null) {
|
|
68
|
-
str += this.columnNumber + ':';
|
|
69
|
-
}
|
|
70
|
-
return str.slice(0, -1);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns a pretty version of this stack frame.
|
|
74
|
-
*/
|
|
75
|
-
toString() {
|
|
76
|
-
const functionName = this.getFunctionName();
|
|
77
|
-
const source = this.getSource();
|
|
78
|
-
return `${functionName}${source ? ` (${source})` : ``}`;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.StackFrame = StackFrame;
|
|
82
|
-
//# sourceMappingURL=stack-frame.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-frame.js","sourceRoot":"","sources":["../../../../src/editor/components/Errors/stack-frame.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yCAAyC;AACzC,MAAa,UAAU;IAQtB,YAAY,UAAkB,EAAE,OAAe,EAAE,SAAS,GAAG,KAAK;QACjE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;CACD;AAbD,gCAaC;AAED;;GAEG;AACH,MAAa,UAAU;IActB,sCAAsC;IACtC,YACC,eAA8B,IAAI,EAClC,WAA0B,IAAI,EAC9B,aAA4B,IAAI,EAChC,eAA8B,IAAI,EAClC,aAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,iBAAgC,IAAI,EACpC,mBAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,mBAAwC,IAAI;QAE5C,IAAI,YAAY,IAAI,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAC1D,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACpD;QAED;QACC,iDAAiD;QACjD,2DAA2D;QAC3D,gEAAgE;QAChE,YAAY,KAAK,0BAA0B;YAC3C,YAAY,KAAK,oBAAoB;YACrC,YAAY,KAAK,aAAa;YAC9B,CAAC,YAAY,EACZ;YACD,YAAY,GAAG,IAAI,CAAC;SACpB;QAED,IAAI,CAAC,YAAY,G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CAAC;IACzD,CAAC;CACD;AA9FD,gCA8FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FramePersister.d.ts","sourceRoot":"","sources":["../../../src/editor/components/FramePersister.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,eAAO,MAAM,4BAA4B,cAExC,CAAC;AAcF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAWlC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FramePersistor = exports.getCurrentCompositionFromUrl = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const remotion_1 = require("remotion");
|
|
6
|
-
const getCurrentCompositionFromUrl = () => {
|
|
7
|
-
return window.location.pathname.substr(1);
|
|
8
|
-
};
|
|
9
|
-
exports.getCurrentCompositionFromUrl = getCurrentCompositionFromUrl;
|
|
10
|
-
const persistCurrentFrame = (frame) => {
|
|
11
|
-
const currentComposition = exports.getCurrentCompositionFromUrl();
|
|
12
|
-
if (!currentComposition) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
localStorage.setItem(`remotion.time.${exports.getCurrentCompositionFromUrl()}`, String(frame));
|
|
16
|
-
};
|
|
17
|
-
const FramePersistor = () => {
|
|
18
|
-
const [playing] = remotion_1.Internals.Timeline.usePlayingState();
|
|
19
|
-
const frame = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
20
|
-
react_1.useEffect(() => {
|
|
21
|
-
if (!playing) {
|
|
22
|
-
persistCurrentFrame(frame);
|
|
23
|
-
}
|
|
24
|
-
}, [frame, playing]);
|
|
25
|
-
return null;
|
|
26
|
-
};
|
|
27
|
-
exports.FramePersistor = FramePersistor;
|
|
28
|
-
//# sourceMappingURL=FramePersister.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FramePersister.js","sourceRoot":"","sources":["../../../src/editor/components/FramePersister.tsx"],"names":[],"mappings":";;;AAAA,iCAAuC;AACvC,uCAAmC;AAE5B,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAChD,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC3C,CAAC,CAAC;AAFW,QAAA,4BAA4B,gCAEvC;AAEF,MAAM,mBAAmB,GAAG,CAAC,KAAa,EAAE,EAAE;IAC7C,MAAM,kBAAkB,GAAG,oCAA4B,EAAE,CAAC;IAC1D,IAAI,CAAC,kBAAkB,EAAE;QACxB,OAAO;KACP;IAED,YAAY,CAAC,OAAO,CACnB,iBAAiB,oCAA4B,EAAE,EAAE,EACjD,MAAM,CAAC,KAAK,CAAC,CACb,CAAC;AACH,CAAC,CAAC;AAEK,MAAM,cAAc,GAAa,GAAG,EAAE;IAC5C,MAAM,CAAC,OAAO,CAAC,GAAG,oBAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC;IACvD,MAAM,KAAK,GAAG,oBAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;IAEvD,iBAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,OAAO,EAAE;YACb,mBAAmB,CAAC,KAAK,CAAC,CAAC;SAC3B;IACF,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAErB,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAXW,QAAA,cAAc,kBAWzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaVolumeSlider.d.ts","sourceRoot":"","sources":["../../../src/editor/components/MediaVolumeSlider.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAsC/E,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAkHrC,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaVolumeSlider = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const player_1 = require("@remotion/player");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const remotion_1 = require("remotion");
|
|
8
|
-
const media_volume_1 = require("../icons/media-volume");
|
|
9
|
-
const ControlButton_1 = require("./ControlButton");
|
|
10
|
-
const BAR_HEIGHT = 5;
|
|
11
|
-
const KNOB_SIZE = 12;
|
|
12
|
-
const VERTICAL_PADDING = 4;
|
|
13
|
-
const containerStyle = {
|
|
14
|
-
userSelect: 'none',
|
|
15
|
-
paddingTop: VERTICAL_PADDING,
|
|
16
|
-
paddingBottom: VERTICAL_PADDING,
|
|
17
|
-
boxSizing: 'border-box',
|
|
18
|
-
cursor: 'pointer',
|
|
19
|
-
position: 'relative',
|
|
20
|
-
};
|
|
21
|
-
const barBackground = {
|
|
22
|
-
height: BAR_HEIGHT,
|
|
23
|
-
backgroundColor: 'rgba(255, 255, 255, 0.5)',
|
|
24
|
-
width: 100,
|
|
25
|
-
borderRadius: BAR_HEIGHT / 2,
|
|
26
|
-
};
|
|
27
|
-
const getVolumeFromX = (clientX, width) => {
|
|
28
|
-
const pos = clientX;
|
|
29
|
-
const volume = remotion_1.interpolate(pos, [0, width], [0, 1], {
|
|
30
|
-
extrapolateLeft: 'clamp',
|
|
31
|
-
extrapolateRight: 'clamp',
|
|
32
|
-
});
|
|
33
|
-
return volume;
|
|
34
|
-
};
|
|
35
|
-
const xSpacer = {
|
|
36
|
-
width: 5,
|
|
37
|
-
};
|
|
38
|
-
const MediaVolumeSlider = () => {
|
|
39
|
-
const [mediaMuted, setMediaMuted] = remotion_1.Internals.useMediaMutedState();
|
|
40
|
-
const [mediaVolume, setMediaVolume] = remotion_1.Internals.useMediaVolumeState();
|
|
41
|
-
const [dragging, setDragging] = react_1.useState(false);
|
|
42
|
-
const currentRef = react_1.useRef(null);
|
|
43
|
-
const iconDivRef = react_1.useRef(null);
|
|
44
|
-
const parentDivRef = react_1.useRef(null);
|
|
45
|
-
const size = player_1.PlayerInternals.useElementSize(currentRef);
|
|
46
|
-
const hover = player_1.PlayerInternals.useHoverState(parentDivRef);
|
|
47
|
-
const onClick = react_1.useCallback(() => {
|
|
48
|
-
setMediaMuted((muted) => !muted);
|
|
49
|
-
setMediaVolume(Number(mediaMuted));
|
|
50
|
-
}, [setMediaMuted, mediaMuted, setMediaVolume]);
|
|
51
|
-
const onPointerDown = react_1.useCallback((e) => {
|
|
52
|
-
if (!size) {
|
|
53
|
-
throw new Error('Player has no size');
|
|
54
|
-
}
|
|
55
|
-
const _volume = getVolumeFromX(e.clientX - size.left, size.width);
|
|
56
|
-
setMediaVolume(_volume);
|
|
57
|
-
setMediaMuted(_volume <= 0);
|
|
58
|
-
setDragging(true);
|
|
59
|
-
}, [setMediaMuted, setMediaVolume, size]);
|
|
60
|
-
const onPointerMove = react_1.useCallback((e) => {
|
|
61
|
-
if (!size) {
|
|
62
|
-
throw new Error('Player has no size');
|
|
63
|
-
}
|
|
64
|
-
if (!dragging)
|
|
65
|
-
return;
|
|
66
|
-
const _volume = getVolumeFromX(e.clientX - size.left, size.width);
|
|
67
|
-
setMediaVolume(_volume);
|
|
68
|
-
setMediaMuted(_volume <= 0);
|
|
69
|
-
}, [dragging, setMediaMuted, setMediaVolume, size]);
|
|
70
|
-
const onPointerUp = react_1.useCallback(() => {
|
|
71
|
-
console.log('stop dragging');
|
|
72
|
-
setDragging(false);
|
|
73
|
-
}, []);
|
|
74
|
-
react_1.useEffect(() => {
|
|
75
|
-
if (!dragging) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
window.addEventListener('pointermove', onPointerMove);
|
|
79
|
-
window.addEventListener('pointerup', onPointerUp);
|
|
80
|
-
return () => {
|
|
81
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
82
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
83
|
-
};
|
|
84
|
-
}, [dragging, onPointerMove, onPointerUp]);
|
|
85
|
-
const knobStyle = react_1.useMemo(() => {
|
|
86
|
-
var _a;
|
|
87
|
-
return {
|
|
88
|
-
height: KNOB_SIZE,
|
|
89
|
-
width: KNOB_SIZE,
|
|
90
|
-
borderRadius: KNOB_SIZE / 2,
|
|
91
|
-
position: 'absolute',
|
|
92
|
-
top: VERTICAL_PADDING - KNOB_SIZE / 2 + 5 / 2,
|
|
93
|
-
backgroundColor: 'white',
|
|
94
|
-
left: Math.max(-KNOB_SIZE / 2, mediaVolume * ((_a = size === null || size === void 0 ? void 0 : size.width) !== null && _a !== void 0 ? _a : 0) - KNOB_SIZE / 2),
|
|
95
|
-
boxShadow: '0 0 2px black',
|
|
96
|
-
opacity: Number(hover),
|
|
97
|
-
};
|
|
98
|
-
}, [hover, mediaVolume, size === null || size === void 0 ? void 0 : size.width]);
|
|
99
|
-
const fillStyle = react_1.useMemo(() => {
|
|
100
|
-
return {
|
|
101
|
-
height: BAR_HEIGHT,
|
|
102
|
-
backgroundColor: 'rgba(255, 255, 255, 1)',
|
|
103
|
-
width: (mediaVolume / 1) * 100 + '%',
|
|
104
|
-
borderRadius: BAR_HEIGHT / 2,
|
|
105
|
-
};
|
|
106
|
-
}, [mediaVolume]);
|
|
107
|
-
return (jsx_runtime_1.jsxs(ControlButton_1.ControlDiv, Object.assign({ ref: parentDivRef }, { children: [jsx_runtime_1.jsx("div", Object.assign({ ref: iconDivRef, onClick: onClick }, { children: mediaMuted ? jsx_runtime_1.jsx(media_volume_1.VolumeOffIcon, {}, void 0) : jsx_runtime_1.jsx(media_volume_1.VolumeOnIcon, {}, void 0) }), void 0),
|
|
108
|
-
jsx_runtime_1.jsx("div", { style: xSpacer }, void 0),
|
|
109
|
-
jsx_runtime_1.jsx("div", Object.assign({ ref: currentRef, onPointerDown: onPointerDown, style: containerStyle }, { children: hover ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx("div", Object.assign({ style: barBackground }, { children: jsx_runtime_1.jsx("div", { style: fillStyle }, void 0) }), void 0),
|
|
110
|
-
jsx_runtime_1.jsx("div", { style: knobStyle }, void 0)] }, void 0)) : (jsx_runtime_1.jsx("div", { style: { width: 100 } }, void 0)) }), void 0)] }), void 0));
|
|
111
|
-
};
|
|
112
|
-
exports.MediaVolumeSlider = MediaVolumeSlider;
|
|
113
|
-
//# sourceMappingURL=MediaVolumeSlider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaVolumeSlider.js","sourceRoot":"","sources":["../../../src/editor/components/MediaVolumeSlider.tsx"],"names":[],"mappings":";;;;AAAA,6CAAiD;AACjD,iCAA+E;AAC/E,uCAAgD;AAChD,wDAAkE;AAClE,mDAA2C;AAE3C,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,MAAM,cAAc,GAAwB;IAC3C,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,gBAAgB;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,aAAa,GAAwB;IAC1C,MAAM,EAAE,UAAU;IAClB,eAAe,EAAE,0BAA0B;IAC3C,KAAK,EAAE,GAAG;IACV,YAAY,EAAE,UAAU,GAAG,CAAC;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,EAAE;IACzD,MAAM,GAAG,GAAG,OAAO,CAAC;IACpB,MAAM,MAAM,GAAG,sBAAW,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QACnD,eAAe,EAAE,OAAO;QACxB,gBAAgB,EAAE,OAAO;KACzB,CAAC,CAAC;IACH,OAAO,MAAM,CA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cAAc,gBAEpB,KAAK,CAAC,CAAC,CAAC,CACR,wDACC,yCAAK,KAAK,EAAE,aAAa,gBACxB,2BAAK,KAAK,EAAE,SAAS,WAAI,YACpB;wBACN,2BAAK,KAAK,EAAE,SAAS,WAAI,YACvB,CACH,CAAC,CAAC,CAAC,CACH,2BAAK,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAC,WAAI,CAC5B,YACI,aACM,CACb,CAAC;AACH,CAAC,CAAC;AAlHW,QAAA,iBAAiB,qBAkH5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkmark.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Menu/Checkmark.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,mBAiBrB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkmark = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const style = {
|
|
6
|
-
width: 14,
|
|
7
|
-
height: 14,
|
|
8
|
-
};
|
|
9
|
-
const Checkmark = () => ((0, jsx_runtime_1.jsx)("svg", Object.assign({ "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check", className: "svg-inline--fa fa-check fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", style: style }, { children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z" }, void 0) }), void 0));
|
|
10
|
-
exports.Checkmark = Checkmark;
|
|
11
|
-
//# sourceMappingURL=Checkmark.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkmark.js","sourceRoot":"","sources":["../../../../src/editor/components/Menu/Checkmark.tsx"],"names":[],"mappings":";;;;AAEA,MAAM,KAAK,GAAwB;IAClC,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;CACV,CAAC;AAEK,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CAC9B,6DACa,MAAM,EAClB,SAAS,EAAC,OAAO,iBACL,KAAK,eACP,OAAO,EACjB,SAAS,EAAC,iCAAiC,EAC3C,IAAI,EAAC,KAAK,EACV,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,KAAK,gBAEZ,iCACC,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,0RAA0R,WAC3R,YACG,CACN,CAAC;AAjBW,QAAA,SAAS,aAiBpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=is-menu-click.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-menu-click.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Menu/is-menu-click.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-menu-click.js","sourceRoot":"","sources":["../../../../src/editor/components/Menu/is-menu-click.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionType.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/NewComposition/CompositionType.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAkB/E,oBAAY,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;AAgE/C,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACrC,CAWA,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompositionType = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const colors_1 = require("../../helpers/colors");
|
|
7
|
-
const film_1 = require("../../icons/film");
|
|
8
|
-
const still_1 = require("../../icons/still");
|
|
9
|
-
const z_index_1 = require("../../state/z-index");
|
|
10
|
-
const layout_1 = require("../layout");
|
|
11
|
-
const panel = {
|
|
12
|
-
flex: 1,
|
|
13
|
-
borderRadius: 8,
|
|
14
|
-
padding: 16,
|
|
15
|
-
cursor: 'pointer',
|
|
16
|
-
fontSize: 14,
|
|
17
|
-
flexDirection: 'row',
|
|
18
|
-
display: 'flex',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
};
|
|
21
|
-
const Panel = ({ selected, type, onSelected }) => {
|
|
22
|
-
const ref = (0, react_1.useRef)(null);
|
|
23
|
-
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
24
|
-
const [hovered, setHovered] = (0, react_1.useState)(false);
|
|
25
|
-
(0, react_1.useEffect)(() => {
|
|
26
|
-
const { current } = ref;
|
|
27
|
-
if (!current) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const onMouseEnter = () => setHovered(true);
|
|
31
|
-
const onMouseLeave = () => setHovered(false);
|
|
32
|
-
current.addEventListener('mouseenter', onMouseEnter);
|
|
33
|
-
current.addEventListener('mouseleave', onMouseLeave);
|
|
34
|
-
}, []);
|
|
35
|
-
const style = (0, react_1.useMemo)(() => {
|
|
36
|
-
return {
|
|
37
|
-
...panel,
|
|
38
|
-
backgroundColor: (0, colors_1.getBackgroundFromHoverState)({
|
|
39
|
-
hovered,
|
|
40
|
-
selected,
|
|
41
|
-
}),
|
|
42
|
-
color: 'white',
|
|
43
|
-
appearance: 'none',
|
|
44
|
-
border: 'none',
|
|
45
|
-
textAlign: 'left',
|
|
46
|
-
};
|
|
47
|
-
}, [hovered, selected]);
|
|
48
|
-
const onClick = (0, react_1.useCallback)(() => {
|
|
49
|
-
onSelected(type);
|
|
50
|
-
}, [onSelected, type]);
|
|
51
|
-
return ((0, jsx_runtime_1.jsxs)("button", Object.assign({ ref: ref, tabIndex: tabIndex, type: "button", style: style, onClick: onClick }, { children: [type === 'composition' ? ((0, jsx_runtime_1.jsx)(film_1.FilmIcon, { style: { height: 18, width: 18 } }, void 0)) : ((0, jsx_runtime_1.jsx)(still_1.StillIcon, { style: { height: 18, width: 18 } }, void 0)), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }, void 0), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("strong", { children: type === 'composition' ? '<Composition>' : '<Still>' }, void 0), (0, jsx_runtime_1.jsx)("div", { children: type === 'composition' ? 'For videos' : 'For still images' }, void 0)] }, void 0)] }), void 0));
|
|
52
|
-
};
|
|
53
|
-
const CompositionType = ({ onSelected, type }) => {
|
|
54
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Row, { children: [(0, jsx_runtime_1.jsx)(Panel, { onSelected: onSelected, type: "composition", selected: type === 'composition' }, void 0), (0, jsx_runtime_1.jsx)(Panel, { onSelected: onSelected, type: "still", selected: type === 'still' }, void 0)] }, void 0));
|
|
55
|
-
};
|
|
56
|
-
exports.CompositionType = CompositionType;
|
|
57
|
-
//# sourceMappingURL=CompositionType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionType.js","sourceRoot":"","sources":["../../../../src/editor/components/NewComposition/CompositionType.tsx"],"names":[],"mappings":";;;;AAAA,iCAA+E;AAC/E,iDAAiE;AACjE,2CAA0C;AAC1C,6CAA4C;AAC5C,iDAA8C;AAC9C,sCAAuC;AAEvC,MAAM,KAAK,GAAwB;IAClC,IAAI,EAAE,CAAC;IACP,YAAY,EAAE,CAAC;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
|
-
{"version":3,"file":"LazyLoadNewComposition.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/NewComposition/LazyLoadNewComposition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC7C,eAAe,EAAE,QAAQ,CAAC;CAC1B,CASA,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.LazyLoadNewComposition = void 0;
|
|
23
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
24
|
-
const react_1 = __importStar(require("react"));
|
|
25
|
-
const LazyLoadNewComposition = (props) => {
|
|
26
|
-
const OtherComponent = (0, react_1.useMemo)(() => {
|
|
27
|
-
return react_1.default.lazy(() => Promise.resolve().then(() => __importStar(require('./NewComposition'))));
|
|
28
|
-
}, []);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(react_1.Suspense, Object.assign({ fallback: (0, jsx_runtime_1.jsx)("div", { children: "loading..." }, void 0) }, { children: (0, jsx_runtime_1.jsx)(OtherComponent, { initialCompType: props.initialCompType }, void 0) }), void 0));
|
|
30
|
-
};
|
|
31
|
-
exports.LazyLoadNewComposition = LazyLoadNewComposition;
|
|
32
|
-
//# sourceMappingURL=LazyLoadNewComposition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LazyLoadNewComposition.js","sourceRoot":"","sources":["../../../../src/editor/components/NewComposition/LazyLoadNewComposition.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAGxC,MAAM,sBAAsB,GAE9B,CAAC,KAAK,EAAE,EAAE;IACd,MAAM,cAAc,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACnC,OAAO,eAAK,CAAC,IAAI,CAAC,GAAG,EAAE,mDAAQ,kBAAkB,GAAC,CAAC,CAAC;IACrD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACN,uBAAC,gBAAQ,kBAAC,QAAQ,EAAE,iEAAqB,gBACxC,uBAAC,cAAc,IAAC,eAAe,EAAE,KAAK,CAAC,eAAe,WAAI,YAChD,CACX,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,sBAAsB,0BAWjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewCompHeader.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/NewComposition/NewCompHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAmBrD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAYjC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewCompHeader = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const modals_1 = require("../../state/modals");
|
|
7
|
-
const layout_1 = require("../layout");
|
|
8
|
-
const CancelButton_1 = require("./CancelButton");
|
|
9
|
-
const container = {
|
|
10
|
-
display: 'flex',
|
|
11
|
-
flexDirection: 'row',
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
padding: 12,
|
|
14
|
-
width: '100%',
|
|
15
|
-
borderBottom: '1px solid black',
|
|
16
|
-
};
|
|
17
|
-
const icon = {
|
|
18
|
-
height: 20,
|
|
19
|
-
width: 20,
|
|
20
|
-
};
|
|
21
|
-
const NewCompHeader = () => {
|
|
22
|
-
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
23
|
-
const onPress = (0, react_1.useCallback)(() => {
|
|
24
|
-
setSelectedModal(null);
|
|
25
|
-
}, [setSelectedModal]);
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: container }, { children: [(0, jsx_runtime_1.jsx)("div", { children: "New composition" }, void 0), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}, void 0), (0, jsx_runtime_1.jsx)(CancelButton_1.CancelButton, { style: icon, onPress: onPress }, void 0)] }), void 0));
|
|
27
|
-
};
|
|
28
|
-
exports.NewCompHeader = NewCompHeader;
|
|
29
|
-
//# sourceMappingURL=NewCompHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewCompHeader.js","sourceRoot":"","sources":["../../../../src/editor/components/NewComposition/NewCompHeader.tsx"],"names":[],"mappings":";;;;AAAA,iCAAqD;AACrD,+CAAiD;AACjD,sCAA+B;AAC/B,iDAA4C;AAE5C,MAAM,SAAS,GAAwB;IACtC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,KAAK;IACpB,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,MAAM;IACb,YAAY,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,IAAI,GAAwB;IACjC,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACT,CAAC;AAEK,MAAM,aAAa,GAAa,GAAG,EAAE;IAC3C,MAAM,EAAC,gBAAgB,EAAC,GAAG,IAAA,kBAAU,EAAC,sBAAa,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAChC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACvB,OAAO,CACN,+CAAK,KAAK,EAAE,SAAS,iBACpB,sEAA0B,EAC1B,uBAAC,aAAI,aAAG,EACR,uBAAC,2BAAY,IAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,WAAI,aAC1C,CACN,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,aAAa,iBAYxB"}
|