@remotion/studio 4.0.503 → 4.0.505
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/api/install-package.d.ts +2 -1
- package/dist/api/install-package.js +6 -2
- package/dist/components/AssetSelectorItem.js +4 -16
- package/dist/components/AudioWaveform.d.ts +1 -1
- package/dist/components/AudioWaveform.js +36 -3
- package/dist/components/Canvas.js +12 -5
- package/dist/components/CheckboardToggle.js +3 -1
- package/dist/components/CompositionContextButton.d.ts +1 -1
- package/dist/components/CompositionContextButton.js +2 -2
- package/dist/components/CompositionSelector.js +2 -2
- package/dist/components/CompositionSelectorItem.js +6 -7
- package/dist/components/ContextMenu.d.ts +5 -7
- package/dist/components/ContextMenu.js +54 -21
- package/dist/components/ControlButton.d.ts +4 -2
- package/dist/components/ControlButton.js +6 -20
- package/dist/components/EditorContent.js +1 -1
- package/dist/components/EditorGuides/Guide.js +2 -2
- package/dist/components/EffectPickerModal.js +70 -9
- package/dist/components/FullscreenToggle.js +1 -2
- package/dist/components/InitialCompositionLoader.js +1 -14
- package/dist/components/InlineAction.d.ts +3 -4
- package/dist/components/InlineAction.js +16 -13
- package/dist/components/InlineDropdown.d.ts +3 -2
- package/dist/components/InlineDropdown.js +16 -5
- package/dist/components/InspectorPanel/CompositionMetadata.js +7 -6
- package/dist/components/InspectorPanel/ConnectedCompositionsSection.js +2 -2
- package/dist/components/InspectorPanel/KeyframeInspector.js +2 -3
- package/dist/components/InspectorPanel/SequenceSelectionInspector.js +1 -1
- package/dist/components/InspectorPanel/common.js +24 -34
- package/dist/components/InspectorPanel/styles.js +4 -0
- package/dist/components/InspectorSequenceSection.js +1 -1
- package/dist/components/LoopToggle.js +1 -1
- package/dist/components/Menu/MenuItem.js +16 -12
- package/dist/components/MenuBuildIndicator.d.ts +3 -1
- package/dist/components/MenuBuildIndicator.js +14 -59
- package/dist/components/MenuCompositionName.js +3 -63
- package/dist/components/MenuToolbar.js +23 -3
- package/dist/components/MobilePanel.d.ts +1 -2
- package/dist/components/MobilePanel.js +6 -10
- package/dist/components/MuteToggle.js +2 -1
- package/dist/components/NewComposition/ComboBox.d.ts +1 -0
- package/dist/components/NewComposition/ComboBox.js +2 -2
- package/dist/components/NewComposition/InputDragger.d.ts +5 -0
- package/dist/components/NewComposition/InputDragger.js +11 -6
- package/dist/components/NewComposition/MenuContent.d.ts +1 -1
- package/dist/components/NewComposition/menu-typeahead.d.ts +1 -1
- package/dist/components/Notifications/NotificationCenter.js +12 -2
- package/dist/components/OutlineToggle.js +10 -2
- package/dist/components/PlayPause.js +2 -6
- package/dist/components/PlaybackRateSelector.js +4 -9
- package/dist/components/PreviewToolbar.js +12 -8
- package/dist/components/PreviewToolbarOverflowButton.d.ts +0 -1
- package/dist/components/PreviewToolbarOverflowButton.js +2 -75
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -2
- package/dist/components/RenderButton.d.ts +1 -1
- package/dist/components/RenderButton.js +55 -37
- package/dist/components/RenderModal/FrameRangeSetting.js +6 -1
- package/dist/components/RenderModal/MultiRangeSlider.js +8 -8
- package/dist/components/RenderModal/RenderModalEnvironmentVariables.js +1 -9
- package/dist/components/RenderModal/RenderModalOutputName.js +11 -2
- package/dist/components/RenderModal/ServerRenderModal.js +2 -17
- package/dist/components/RenderModal/WebRenderModal.js +3 -17
- package/dist/components/RenderModal/layout.js +7 -5
- package/dist/components/RenderModal/render-modals.js +18 -15
- package/dist/components/RenderQueue/RenderQueueRepeat.js +1 -14
- package/dist/components/SelectedOutlineElement.js +13 -22
- package/dist/components/SelectedOutlineOverlay.js +5 -1
- package/dist/components/SidebarRenderButton.js +1 -15
- package/dist/components/SizeSelector.js +4 -9
- package/dist/components/SnappingToggle.js +1 -2
- package/dist/components/Spinner.d.ts +1 -0
- package/dist/components/Spinner.js +2 -2
- package/dist/components/Splitter/SplitterContainer.d.ts +1 -0
- package/dist/components/Splitter/SplitterContainer.js +4 -1
- package/dist/components/Splitter/SplitterContext.d.ts +4 -3
- package/dist/components/Splitter/SplitterContext.js +3 -2
- package/dist/components/Splitter/SplitterElement.js +6 -1
- package/dist/components/Splitter/SplitterHandle.js +1 -0
- package/dist/components/Tabs/vertical.d.ts +1 -0
- package/dist/components/Tabs/vertical.js +8 -10
- package/dist/components/TimeValue.js +26 -8
- package/dist/components/Timeline/Timeline.js +5 -5
- package/dist/components/Timeline/TimelineClipboardKeybindings.js +3 -6
- package/dist/components/Timeline/TimelineDeleteKeybindings.js +5 -7
- package/dist/components/Timeline/TimelineDragHandler.js +3 -0
- package/dist/components/Timeline/TimelineEffectItem.js +6 -2
- package/dist/components/Timeline/TimelineEffectPropItem.js +6 -3
- package/dist/components/Timeline/TimelineExpandedKeyframeRow.d.ts +6 -6
- package/dist/components/Timeline/TimelineExpandedKeyframeRow.js +34 -2
- package/dist/components/Timeline/TimelineHeightContainer.d.ts +1 -0
- package/dist/components/Timeline/TimelineHeightContainer.js +2 -2
- package/dist/components/Timeline/TimelineInOutDragHandler.js +3 -3
- package/dist/components/Timeline/TimelineKeyframeEasingLine.d.ts +5 -3
- package/dist/components/Timeline/TimelineKeyframeEasingLine.js +32 -30
- package/dist/components/Timeline/TimelineList.d.ts +1 -0
- package/dist/components/Timeline/TimelineList.js +2 -3
- package/dist/components/Timeline/TimelineScaleField.js +1 -1
- package/dist/components/Timeline/TimelineSelection.js +2 -3
- package/dist/components/Timeline/TimelineSequence.js +34 -28
- package/dist/components/Timeline/TimelineSequenceItem.d.ts +3 -3
- package/dist/components/Timeline/TimelineSequenceItem.js +34 -23
- package/dist/components/Timeline/TimelineSequencePropItem.d.ts +10 -2
- package/dist/components/Timeline/TimelineSequencePropItem.js +64 -12
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +2 -2
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +38 -5
- package/dist/components/Timeline/TimelineTimeIndicators.js +36 -3
- package/dist/components/Timeline/TimelineVideoInfo.d.ts +1 -1
- package/dist/components/Timeline/TimelineVideoInfo.js +36 -3
- package/dist/components/Timeline/TimelineZoomControls.d.ts +3 -1
- package/dist/components/Timeline/TimelineZoomControls.js +59 -20
- package/dist/components/Timeline/use-expanded-track-keyframe-rows.js +2 -3
- package/dist/components/Timeline/use-sequence-freeze-frame-menu-item.d.ts +1 -1
- package/dist/components/Timeline/use-sequence-freeze-frame-menu-item.js +7 -18
- package/dist/components/Timeline/use-timeline-asset-drop.js +3 -3
- package/dist/components/Timeline/use-timeline-height.d.ts +2 -1
- package/dist/components/Timeline/use-timeline-height.js +3 -2
- package/dist/components/TimelineCombobox.d.ts +11 -0
- package/dist/components/TimelineCombobox.js +181 -0
- package/dist/components/TimelineInOutToggle.js +3 -3
- package/dist/components/TopPanel.js +8 -8
- package/dist/components/UndoRedoButtons.js +6 -5
- package/dist/components/UpdateCheck.js +18 -5
- package/dist/components/UpdateModal/UpdateModal.js +35 -12
- package/dist/components/composition-menu-items.d.ts +2 -4
- package/dist/components/composition-menu-items.js +31 -54
- package/dist/components/import-assets.d.ts +2 -1
- package/dist/components/import-assets.js +1 -1
- package/dist/components/selected-outline-types.d.ts +1 -1
- package/dist/esm/{chunk-bj1r1hh5.js → chunk-7pgk8h5m.js} +9174 -8486
- package/dist/esm/internals.mjs +9174 -8486
- package/dist/esm/previewEntry.mjs +8991 -8303
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/hoverable.d.ts +11 -0
- package/dist/helpers/hoverable.js +70 -0
- package/dist/helpers/inject-css.js +43 -23
- package/dist/helpers/install-required-package.d.ts +3 -2
- package/dist/helpers/install-required-package.js +20 -15
- package/dist/helpers/use-is-fullscreen.d.ts +1 -0
- package/dist/helpers/use-is-fullscreen.js +25 -0
- package/dist/helpers/use-menu-structure.js +88 -59
- package/dist/icons/audio.d.ts +1 -1
- package/dist/icons/audio.js +1 -1
- package/dist/icons/canvas-zoom.d.ts +10 -0
- package/dist/icons/canvas-zoom.js +21 -0
- package/dist/icons/caret.js +1 -1
- package/dist/icons/certificate.d.ts +1 -1
- package/dist/icons/certificate.js +1 -1
- package/dist/icons/data.d.ts +1 -1
- package/dist/icons/data.js +2 -2
- package/dist/icons/effects.d.ts +5 -0
- package/dist/icons/effects.js +8 -0
- package/dist/icons/ellipsis.js +1 -1
- package/dist/icons/external-link.d.ts +5 -0
- package/dist/icons/external-link.js +10 -0
- package/dist/icons/fullscreen.js +1 -1
- package/dist/icons/gear.d.ts +1 -1
- package/dist/icons/gear.js +1 -1
- package/dist/icons/gif.d.ts +1 -1
- package/dist/icons/gif.js +1 -1
- package/dist/icons/input-props.d.ts +2 -0
- package/dist/icons/input-props.js +9 -0
- package/dist/icons/jump-to-start.js +2 -2
- package/dist/icons/magnet.d.ts +3 -1
- package/dist/icons/magnet.js +2 -2
- package/dist/icons/media-volume.d.ts +6 -2
- package/dist/icons/media-volume.js +8 -6
- package/dist/icons/minus.d.ts +3 -1
- package/dist/icons/minus.js +2 -2
- package/dist/icons/pause.js +1 -1
- package/dist/icons/play.js +1 -1
- package/dist/icons/playback-rate.d.ts +5 -0
- package/dist/icons/playback-rate.js +31 -0
- package/dist/icons/plus.js +1 -1
- package/dist/icons/redo.js +2 -2
- package/dist/icons/search.d.ts +5 -0
- package/dist/icons/search.js +10 -0
- package/dist/icons/step-back.js +2 -2
- package/dist/icons/step-forward.js +2 -2
- package/dist/icons/timelineInOutPointer.js +2 -2
- package/dist/icons/undo.js +2 -2
- package/package.json +12 -12
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -212,7 +212,7 @@ var renderContent = (Root) => {
|
|
|
212
212
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
213
213
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
214
214
|
}));
|
|
215
|
-
import("./chunk-
|
|
215
|
+
import("./chunk-7pgk8h5m.js").then(({ StudioInternals }) => {
|
|
216
216
|
window.remotion_isStudio = true;
|
|
217
217
|
window.remotion_isReadOnlyStudio = true;
|
|
218
218
|
window.remotion_inputProps = "{}";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare const HOVERABLE_CLASS_NAME = "__remotion-hoverable";
|
|
3
|
+
export declare const HOVER_GROUP_CLASS_NAME = "__remotion-hover-group";
|
|
4
|
+
export declare const HOVER_GROUP_REVEAL_CLASS_NAME = "__remotion-hover-group-reveal";
|
|
5
|
+
export declare const hoverableStyle: ({ idleBackground, hoverBackground, idleColor, hoverColor, }: {
|
|
6
|
+
idleBackground: string;
|
|
7
|
+
hoverBackground: string;
|
|
8
|
+
idleColor: string;
|
|
9
|
+
hoverColor: string;
|
|
10
|
+
}) => React.CSSProperties;
|
|
11
|
+
export declare const makeHoverableCSS: () => string;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeHoverableCSS = exports.hoverableStyle = exports.HOVER_GROUP_REVEAL_CLASS_NAME = exports.HOVER_GROUP_CLASS_NAME = exports.HOVERABLE_CLASS_NAME = void 0;
|
|
4
|
+
const colors_1 = require("./colors");
|
|
5
|
+
// Purely visual hover styling must be driven by CSS `:hover` rather than
|
|
6
|
+
// React state: When the Studio runs in an <iframe> (like in Browser Studio),
|
|
7
|
+
// browsers can fail to deliver `pointerleave` when the pointer exits the
|
|
8
|
+
// frame, which would leave a state-driven hover background stuck forever.
|
|
9
|
+
// CSS `:hover` is maintained by the browser and self-corrects.
|
|
10
|
+
// https://github.com/remotion-dev/remotion/issues/9886
|
|
11
|
+
exports.HOVERABLE_CLASS_NAME = '__remotion-hoverable';
|
|
12
|
+
exports.HOVER_GROUP_CLASS_NAME = '__remotion-hover-group';
|
|
13
|
+
exports.HOVER_GROUP_REVEAL_CLASS_NAME = '__remotion-hover-group-reveal';
|
|
14
|
+
const BG_VARIABLE = '--remotion-hoverable-bg';
|
|
15
|
+
const HOVER_BG_VARIABLE = '--remotion-hoverable-hover-bg';
|
|
16
|
+
const COLOR_VARIABLE = '--remotion-hoverable-color';
|
|
17
|
+
const HOVER_COLOR_VARIABLE = '--remotion-hoverable-hover-color';
|
|
18
|
+
// To disable the hover effect (e.g. for a disabled control), pass the idle
|
|
19
|
+
// values as the hover values.
|
|
20
|
+
const hoverableStyle = ({ idleBackground, hoverBackground, idleColor, hoverColor, }) => {
|
|
21
|
+
return {
|
|
22
|
+
[BG_VARIABLE]: idleBackground,
|
|
23
|
+
[HOVER_BG_VARIABLE]: hoverBackground,
|
|
24
|
+
[COLOR_VARIABLE]: idleColor,
|
|
25
|
+
[HOVER_COLOR_VARIABLE]: hoverColor,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
exports.hoverableStyle = hoverableStyle;
|
|
29
|
+
// The doubled class names give these rules a higher specificity than the
|
|
30
|
+
// `.css-reset, .css-reset *` rule which sets `color` and `background` on
|
|
31
|
+
// every descendant - the injection order of the two stylesheets is not
|
|
32
|
+
// deterministic.
|
|
33
|
+
// The `*` selectors re-establish color inheritance inside the hoverable
|
|
34
|
+
// element so that text and `currentColor`-based icons follow the hover state.
|
|
35
|
+
const hoverable = `.${exports.HOVERABLE_CLASS_NAME}.${exports.HOVERABLE_CLASS_NAME}`;
|
|
36
|
+
const hoverGroup = `.${exports.HOVER_GROUP_CLASS_NAME}`;
|
|
37
|
+
const reveal = `.${exports.HOVER_GROUP_REVEAL_CLASS_NAME}.${exports.HOVER_GROUP_REVEAL_CLASS_NAME}`;
|
|
38
|
+
const makeHoverableCSS = () => `
|
|
39
|
+
${hoverable} {
|
|
40
|
+
background-color: var(${BG_VARIABLE}, ${colors_1.TRANSPARENT});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
${hoverable},
|
|
44
|
+
${hoverable} * {
|
|
45
|
+
color: var(${COLOR_VARIABLE}, inherit);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (hover: hover) {
|
|
49
|
+
${hoverable}:hover,
|
|
50
|
+
${hoverGroup}:hover ${hoverable} {
|
|
51
|
+
background-color: var(${HOVER_BG_VARIABLE}, var(${BG_VARIABLE}, ${colors_1.TRANSPARENT}));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
${hoverable}:hover,
|
|
55
|
+
${hoverable}:hover *,
|
|
56
|
+
${hoverGroup}:hover ${hoverable},
|
|
57
|
+
${hoverGroup}:hover ${hoverable} * {
|
|
58
|
+
color: var(${HOVER_COLOR_VARIABLE}, var(${COLOR_VARIABLE}, inherit));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
${hoverGroup} ${reveal} {
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${hoverGroup}:hover ${reveal} {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
exports.makeHoverableCSS = makeHoverableCSS;
|
|
@@ -4,6 +4,7 @@ exports.injectCSS = void 0;
|
|
|
4
4
|
const remotion_1 = require("remotion");
|
|
5
5
|
const scroll_to_default_props_path_1 = require("../components/RenderModal/SchemaEditor/scroll-to-default-props-path");
|
|
6
6
|
const colors_1 = require("./colors");
|
|
7
|
+
const hoverable_1 = require("./hoverable");
|
|
7
8
|
const makeDefaultGlobalCSS = () => {
|
|
8
9
|
const dragAreaFactor = 2;
|
|
9
10
|
const fromMiddle = 50 / dragAreaFactor;
|
|
@@ -85,50 +86,67 @@ const makeDefaultGlobalCSS = () => {
|
|
|
85
86
|
box-shadow: ${colors_1.FOCUS_BOX_SHADOW};
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
.__remotion_thumb,
|
|
90
|
+
.__remotion_thumb::-webkit-slider-thumb {
|
|
90
91
|
-webkit-appearance: none;
|
|
91
92
|
-webkit-tap-highlight-color: ${colors_1.TRANSPARENT};
|
|
92
93
|
}
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
.__remotion_thumb {
|
|
96
|
+
appearance: none;
|
|
97
|
+
background: transparent;
|
|
98
|
+
border: 0;
|
|
99
|
+
height: 100%;
|
|
100
|
+
left: 0;
|
|
101
|
+
margin: 0;
|
|
102
|
+
outline: none;
|
|
103
|
+
padding: 0;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
width: 100%;
|
|
108
|
+
z-index: 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.__remotion_thumb::-moz-range-track {
|
|
112
|
+
background: transparent;
|
|
113
|
+
border: 0;
|
|
114
|
+
height: 6px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.__remotion_thumb::-webkit-slider-runnable-track {
|
|
118
|
+
background: transparent;
|
|
119
|
+
border: 0;
|
|
120
|
+
height: 6px;
|
|
121
|
+
}
|
|
104
122
|
|
|
105
123
|
/* For Firefox browsers */
|
|
106
124
|
.__remotion_thumb::-moz-range-thumb {
|
|
107
|
-
|
|
108
|
-
border
|
|
125
|
+
appearance: none;
|
|
126
|
+
border: 0;
|
|
127
|
+
border-radius: 50%;
|
|
109
128
|
cursor: pointer;
|
|
110
|
-
height:
|
|
111
|
-
width:
|
|
129
|
+
height: 14px;
|
|
130
|
+
width: 14px;
|
|
112
131
|
pointer-events: all;
|
|
113
|
-
border-color: ${colors_1.BLACK};
|
|
114
132
|
background-color: ${colors_1.WHITE};
|
|
115
133
|
position: relative;
|
|
116
134
|
}
|
|
117
135
|
|
|
118
136
|
/* For Chrome browsers */
|
|
119
137
|
.__remotion_thumb::-webkit-slider-thumb {
|
|
120
|
-
border:
|
|
121
|
-
border-radius:
|
|
138
|
+
border: 0;
|
|
139
|
+
border-radius: 50%;
|
|
122
140
|
cursor: pointer;
|
|
123
|
-
height:
|
|
124
|
-
|
|
141
|
+
height: 14px;
|
|
142
|
+
margin-top: -4px;
|
|
143
|
+
width: 14px;
|
|
125
144
|
pointer-events: all;
|
|
126
|
-
border-color: ${colors_1.BLACK};
|
|
127
145
|
background-color: ${colors_1.WHITE};
|
|
128
146
|
position: relative;
|
|
129
147
|
}
|
|
130
148
|
|
|
131
|
-
|
|
149
|
+
.__remotion_input_dragger:hover > span:first-child {
|
|
132
150
|
color: var(--remotion-cli-internals-blue-hovered) !important;
|
|
133
151
|
}
|
|
134
152
|
|
|
@@ -136,6 +154,8 @@ const makeDefaultGlobalCSS = () => {
|
|
|
136
154
|
color: var(--remotion-cli-internals-blue) !important;
|
|
137
155
|
transition: color 0.2s ease-in-out;
|
|
138
156
|
}
|
|
157
|
+
|
|
158
|
+
${(0, hoverable_1.makeHoverableCSS)()}
|
|
139
159
|
`.trim();
|
|
140
160
|
};
|
|
141
161
|
let injected = false;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { ElementDependency } from '@remotion/studio-protocol';
|
|
2
|
+
export declare const getMissingPackages: (dependencies: (string | ElementDependency)[]) => ElementDependency[];
|
|
3
|
+
export declare const installRequiredPackages: (dependencies: (string | ElementDependency)[]) => Promise<void>;
|
|
@@ -4,30 +4,35 @@ exports.installRequiredPackages = exports.getMissingPackages = void 0;
|
|
|
4
4
|
const install_package_1 = require("../api/install-package");
|
|
5
5
|
const NotificationCenter_1 = require("../components/Notifications/NotificationCenter");
|
|
6
6
|
let installQueue = Promise.resolve();
|
|
7
|
-
const
|
|
7
|
+
const uniqueDependencies = (dependencies) => Array.from(new Map(dependencies.map((dependency) => {
|
|
8
|
+
const normalized = typeof dependency === 'string'
|
|
9
|
+
? { name: dependency, version: null }
|
|
10
|
+
: dependency;
|
|
11
|
+
return [normalized.name, normalized];
|
|
12
|
+
})).values());
|
|
13
|
+
const getMissingPackages = (dependencies) => {
|
|
8
14
|
var _a;
|
|
9
|
-
const uniquePackageNames = Array.from(new Set(packageNames));
|
|
10
15
|
const installedPackages = (_a = window.remotion_installedPackages) !== null && _a !== void 0 ? _a : [];
|
|
11
|
-
return
|
|
16
|
+
return uniqueDependencies(dependencies).filter((dependency) => dependency.version !== null ||
|
|
17
|
+
!installedPackages.includes(dependency.name));
|
|
12
18
|
};
|
|
13
19
|
exports.getMissingPackages = getMissingPackages;
|
|
14
|
-
const addInstalledPackages = (
|
|
20
|
+
const addInstalledPackages = (dependencies) => {
|
|
15
21
|
var _a;
|
|
16
22
|
const installedPackages = (_a = window.remotion_installedPackages) !== null && _a !== void 0 ? _a : [];
|
|
17
|
-
window.remotion_installedPackages = Array.from(new Set([
|
|
23
|
+
window.remotion_installedPackages = Array.from(new Set([
|
|
24
|
+
...installedPackages,
|
|
25
|
+
...uniqueDependencies(dependencies).map((dependency) => dependency.name),
|
|
26
|
+
]));
|
|
18
27
|
};
|
|
19
|
-
const formatPackageList = (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return `${packageNames.length} packages`;
|
|
24
|
-
};
|
|
25
|
-
const installRequiredPackages = async (packageNames) => {
|
|
28
|
+
const formatPackageList = (dependencies) => dependencies.length === 1
|
|
29
|
+
? dependencies[0].name
|
|
30
|
+
: `${dependencies.length} packages`;
|
|
31
|
+
const installRequiredPackages = async (dependencies) => {
|
|
26
32
|
const runInstall = async () => {
|
|
27
|
-
const missingPackages = (0, exports.getMissingPackages)(
|
|
28
|
-
if (missingPackages.length === 0)
|
|
33
|
+
const missingPackages = (0, exports.getMissingPackages)(dependencies);
|
|
34
|
+
if (missingPackages.length === 0)
|
|
29
35
|
return;
|
|
30
|
-
}
|
|
31
36
|
(0, NotificationCenter_1.showNotification)(`Installing ${formatPackageList(missingPackages)}...`, 3000);
|
|
32
37
|
await (0, install_package_1.installPackages)(missingPackages);
|
|
33
38
|
addInstalledPackages(missingPackages);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsFullscreen: () => boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useIsFullscreen = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const getIsFullscreen = () => {
|
|
6
|
+
var _a;
|
|
7
|
+
return Boolean((_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document
|
|
8
|
+
.webkitFullscreenElement);
|
|
9
|
+
};
|
|
10
|
+
const useIsFullscreen = () => {
|
|
11
|
+
const [isFullscreen, setIsFullscreen] = (0, react_1.useState)(getIsFullscreen);
|
|
12
|
+
(0, react_1.useEffect)(() => {
|
|
13
|
+
const onFullscreenChange = () => {
|
|
14
|
+
setIsFullscreen(getIsFullscreen());
|
|
15
|
+
};
|
|
16
|
+
document.addEventListener('fullscreenchange', onFullscreenChange);
|
|
17
|
+
document.addEventListener('webkitfullscreenchange', onFullscreenChange);
|
|
18
|
+
return () => {
|
|
19
|
+
document.removeEventListener('fullscreenchange', onFullscreenChange);
|
|
20
|
+
document.removeEventListener('webkitfullscreenchange', onFullscreenChange);
|
|
21
|
+
};
|
|
22
|
+
}, []);
|
|
23
|
+
return isFullscreen;
|
|
24
|
+
};
|
|
25
|
+
exports.useIsFullscreen = useIsFullscreen;
|
|
@@ -39,28 +39,43 @@ const use_keybinding_1 = require("./use-keybinding");
|
|
|
39
39
|
const openExternal = (link) => {
|
|
40
40
|
window.open(link, '_blank');
|
|
41
41
|
};
|
|
42
|
-
const
|
|
43
|
-
transform: `rotate(90deg)`,
|
|
42
|
+
const inheritColor = {
|
|
44
43
|
color: 'inherit',
|
|
45
44
|
};
|
|
46
|
-
const
|
|
47
|
-
color: 'inherit',
|
|
48
|
-
};
|
|
49
|
-
const iconPath = {
|
|
50
|
-
color: 'inherit',
|
|
51
|
-
};
|
|
52
|
-
const ICON_SIZE = 16;
|
|
45
|
+
const ICON_SIZE = 14;
|
|
53
46
|
const getFileMenu = ({ readOnlyStudio, closeMenu, previewServerState, setSelectedModal, }) => {
|
|
54
47
|
const fileManagerName = (0, get_file_manager_name_1.getFileManagerName)(window.remotion_fileSystemPlatform);
|
|
55
48
|
const browserStudioOperations = (0, browser_studio_operations_1.getBrowserStudioOperations)();
|
|
56
49
|
const downloadProject = browserStudioOperations === null || browserStudioOperations === void 0 ? void 0 : browserStudioOperations.downloadProject;
|
|
57
50
|
const items = [
|
|
51
|
+
readOnlyStudio
|
|
52
|
+
? null
|
|
53
|
+
: {
|
|
54
|
+
id: 'new-composition',
|
|
55
|
+
value: 'new-composition',
|
|
56
|
+
label: 'New composition...',
|
|
57
|
+
onClick: () => {
|
|
58
|
+
closeMenu();
|
|
59
|
+
setSelectedModal({
|
|
60
|
+
type: 'new-comp',
|
|
61
|
+
folderName: null,
|
|
62
|
+
parentName: null,
|
|
63
|
+
stack: null,
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
type: 'item',
|
|
67
|
+
keyHint: null,
|
|
68
|
+
leftItem: null,
|
|
69
|
+
subMenu: null,
|
|
70
|
+
quickSwitcherLabel: 'New composition...',
|
|
71
|
+
disabled: previewServerState !== 'connected',
|
|
72
|
+
},
|
|
58
73
|
readOnlyStudio
|
|
59
74
|
? null
|
|
60
75
|
: {
|
|
61
76
|
id: 'new-folder',
|
|
62
77
|
value: 'new-folder',
|
|
63
|
-
label: 'New
|
|
78
|
+
label: 'New folder...',
|
|
64
79
|
onClick: () => {
|
|
65
80
|
closeMenu();
|
|
66
81
|
setSelectedModal({
|
|
@@ -80,7 +95,7 @@ const getFileMenu = ({ readOnlyStudio, closeMenu, previewServerState, setSelecte
|
|
|
80
95
|
? null
|
|
81
96
|
: {
|
|
82
97
|
type: 'divider',
|
|
83
|
-
id: 'new-
|
|
98
|
+
id: 'new-project-item-divider',
|
|
84
99
|
},
|
|
85
100
|
window.remotion_isReadOnlyStudio
|
|
86
101
|
? {
|
|
@@ -100,42 +115,6 @@ const getFileMenu = ({ readOnlyStudio, closeMenu, previewServerState, setSelecte
|
|
|
100
115
|
quickSwitcherLabel: 'Override input props',
|
|
101
116
|
}
|
|
102
117
|
: null,
|
|
103
|
-
readOnlyStudio
|
|
104
|
-
? null
|
|
105
|
-
: {
|
|
106
|
-
id: 'render',
|
|
107
|
-
value: 'render',
|
|
108
|
-
label: 'Render...',
|
|
109
|
-
onClick: () => {
|
|
110
|
-
closeMenu();
|
|
111
|
-
if (previewServerState !== 'connected') {
|
|
112
|
-
(0, NotificationCenter_1.showNotification)('Restart the studio to render', 2000);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const renderButton = document.getElementById('render-modal-button-server');
|
|
116
|
-
renderButton.click();
|
|
117
|
-
},
|
|
118
|
-
type: 'item',
|
|
119
|
-
keyHint: 'R',
|
|
120
|
-
leftItem: null,
|
|
121
|
-
subMenu: null,
|
|
122
|
-
quickSwitcherLabel: 'Render...',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 'render-on-web',
|
|
126
|
-
value: 'render-on-web',
|
|
127
|
-
label: 'Render on web...',
|
|
128
|
-
onClick: () => {
|
|
129
|
-
closeMenu();
|
|
130
|
-
const renderButton = document.getElementById('render-modal-button-client');
|
|
131
|
-
renderButton.click();
|
|
132
|
-
},
|
|
133
|
-
type: 'item',
|
|
134
|
-
keyHint: null,
|
|
135
|
-
leftItem: null,
|
|
136
|
-
subMenu: null,
|
|
137
|
-
quickSwitcherLabel: 'Render on web...',
|
|
138
|
-
},
|
|
139
118
|
downloadProject
|
|
140
119
|
? {
|
|
141
120
|
id: 'download-project',
|
|
@@ -159,7 +138,7 @@ const getFileMenu = ({ readOnlyStudio, closeMenu, previewServerState, setSelecte
|
|
|
159
138
|
quickSwitcherLabel: 'Download project',
|
|
160
139
|
}
|
|
161
140
|
: null,
|
|
162
|
-
!readOnlyStudio
|
|
141
|
+
!readOnlyStudio && downloadProject
|
|
163
142
|
? {
|
|
164
143
|
type: 'divider',
|
|
165
144
|
id: 'open-project-divider',
|
|
@@ -229,6 +208,50 @@ const getFileMenu = ({ readOnlyStudio, closeMenu, previewServerState, setSelecte
|
|
|
229
208
|
quickSwitcherLabel: null,
|
|
230
209
|
};
|
|
231
210
|
};
|
|
211
|
+
const getRenderMenuItems = ({ closeMenu, previewServerState, readOnlyStudio, }) => {
|
|
212
|
+
return [
|
|
213
|
+
readOnlyStudio
|
|
214
|
+
? null
|
|
215
|
+
: {
|
|
216
|
+
id: 'render',
|
|
217
|
+
value: 'render',
|
|
218
|
+
label: 'Render...',
|
|
219
|
+
onClick: () => {
|
|
220
|
+
closeMenu();
|
|
221
|
+
if (previewServerState !== 'connected') {
|
|
222
|
+
(0, NotificationCenter_1.showNotification)('Restart the studio to render', 2000);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const renderButton = document.getElementById('render-modal-button-server');
|
|
226
|
+
renderButton.click();
|
|
227
|
+
},
|
|
228
|
+
type: 'item',
|
|
229
|
+
keyHint: 'R',
|
|
230
|
+
leftItem: null,
|
|
231
|
+
subMenu: null,
|
|
232
|
+
quickSwitcherLabel: 'Render...',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 'render-on-web',
|
|
236
|
+
value: 'render-on-web',
|
|
237
|
+
label: 'Render on web...',
|
|
238
|
+
onClick: () => {
|
|
239
|
+
closeMenu();
|
|
240
|
+
const renderButton = document.getElementById('render-modal-button-client');
|
|
241
|
+
renderButton.click();
|
|
242
|
+
},
|
|
243
|
+
type: 'item',
|
|
244
|
+
keyHint: null,
|
|
245
|
+
leftItem: null,
|
|
246
|
+
subMenu: null,
|
|
247
|
+
quickSwitcherLabel: 'Render on web...',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
type: 'divider',
|
|
251
|
+
id: 'render-divider',
|
|
252
|
+
},
|
|
253
|
+
].filter(no_react_1.NoReactInternals.truthy);
|
|
254
|
+
};
|
|
232
255
|
const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
233
256
|
var _a;
|
|
234
257
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
@@ -272,7 +295,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
272
295
|
let struct = [
|
|
273
296
|
{
|
|
274
297
|
id: 'remotion',
|
|
275
|
-
label: (jsx_runtime_1.jsx(layout_1.Row, { align: "center", justify: "center", style:
|
|
298
|
+
label: (jsx_runtime_1.jsx(layout_1.Row, { align: "center", justify: "center", style: inheritColor, children: jsx_runtime_1.jsx("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 415 426", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: inheritColor, children: jsx_runtime_1.jsx("path", { d: "M93.4691 0.0367432C84.4873 0.520935 77.2494 1.93634 69.9553 4.69266C66.3176 6.05219 60.3548 9.0134 57.0734 11.062C43.3476 19.6103 32.8846 32.4606 27.428 47.4154C26.3405 50.3766 23.3966 59.8188 21.5027 66.3185C8.88329 109.768 1.7204 157.277 0.182822 207.561C-0.0609408 215.569 -0.0609408 234.639 0.182822 242.517C1.21413 275.854 4.42055 305.949 10.2334 336.641C12.596 349.063 16.3837 365.75 18.5776 373.33C23.059 388.732 32.2095 401.843 45.2227 411.453C53.9419 417.896 63.8425 422.217 74.8118 424.34C80.0996 425.365 87.075 425.83 92.2127 425.495C99.3194 425.029 113.42 423.148 124.877 421.118C176.517 411.974 224.22 395.604 267.478 372.175C294.874 357.332 318.294 341.26 340.888 321.761C363.408 302.355 382.609 281.478 399.504 258.049C403.423 252.63 405.392 249.464 407.361 245.478C412.424 235.198 414.805 224.974 414.786 213.539C414.786 202.886 412.761 193.425 408.392 183.741C406.292 179.066 404.286 175.714 399.785 169.345C383.21 145.898 364.815 125.467 342.389 105.614C307.624 74.8481 266.335 49.613 220.226 30.9334C210.232 26.8921 200.387 23.335 188.537 19.4799C163.448 11.3413 132.396 4.28293 106.126 0.763062C102.001 0.204346 96.3942 -0.112244 93.4691 0.0367432Z", fill: colors_1.CURRENT_COLOR, style: inheritColor }) }) })),
|
|
276
299
|
leaveLeftPadding: false,
|
|
277
300
|
items: [
|
|
278
301
|
{
|
|
@@ -730,16 +753,22 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
730
753
|
id: 'composition',
|
|
731
754
|
label: 'Composition',
|
|
732
755
|
leaveLeftPadding: false,
|
|
733
|
-
items:
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
756
|
+
items: [
|
|
757
|
+
...getRenderMenuItems({
|
|
758
|
+
closeMenu,
|
|
759
|
+
previewServerState: type,
|
|
760
|
+
readOnlyStudio,
|
|
761
|
+
}),
|
|
762
|
+
...(0, composition_menu_items_1.getCompositionMenuItems)({
|
|
763
|
+
closeMenu,
|
|
764
|
+
composition: currentComposition,
|
|
765
|
+
connectionStatus: type,
|
|
766
|
+
includeCompositionManagementItems: true,
|
|
767
|
+
resolvedLocation: resolvedCompositionLocation,
|
|
768
|
+
setSelectedModal,
|
|
769
|
+
readOnlyStudio,
|
|
770
|
+
}),
|
|
771
|
+
],
|
|
743
772
|
quickSwitcherLabel: null,
|
|
744
773
|
},
|
|
745
774
|
{
|
package/dist/icons/audio.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const AudioIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const AudioIcon: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare const AudioFileIcon: ({ color, ...props }: SVGProps<SVGSVGElement> & {
|
|
4
4
|
readonly color?: string | undefined;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/audio.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AudioFileIcon = exports.AudioIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const colors_1 = require("../helpers/colors");
|
|
6
|
-
const AudioIcon = (props) => (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR_LOWERCASE, d: "M243 32.32C105.5 39.15 0 157.8 0 295.5v120.4C0 451.3 28.63 480 64 480h32c17.62 0 32-14.38 32-32V288c0-17.62-14.38-32-32-32H64c-10.79 0-20.8 2.9-29.72 7.7 14.2-106.8 100.5-193.9 210.4-199.4 120.5-5.965 221.7 83.92 234 199.9-9.08-5.1-19.48-8.2-30.68-8.2h-32c-17.62 0-32 14.38-32 32v160c0 17.62 14.38 32 32 32h32c35.38 0 64-28.75 64-64.13V287.9c0-145.4-122-262.88-269-255.58zM64 288h32v160H64c-17.62 0-32-14.5-32-32.13v-95.75C32 302.5 46.38 288 64 288zm416 127.9c0 17.6-14.4 32.1-32 32.1h-32V288h32c17.62 0 32 14.5 32 32.13v95.77z" }) }));
|
|
6
|
+
const AudioIcon = ({ color, ...props }) => (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: jsx_runtime_1.jsx("path", { fill: color !== null && color !== void 0 ? color : colors_1.CURRENT_COLOR_LOWERCASE, d: "M243 32.32C105.5 39.15 0 157.8 0 295.5v120.4C0 451.3 28.63 480 64 480h32c17.62 0 32-14.38 32-32V288c0-17.62-14.38-32-32-32H64c-10.79 0-20.8 2.9-29.72 7.7 14.2-106.8 100.5-193.9 210.4-199.4 120.5-5.965 221.7 83.92 234 199.9-9.08-5.1-19.48-8.2-30.68-8.2h-32c-17.62 0-32 14.38-32 32v160c0 17.62 14.38 32 32 32h32c35.38 0 64-28.75 64-64.13V287.9c0-145.4-122-262.88-269-255.58zM64 288h32v160H64c-17.62 0-32-14.5-32-32.13v-95.75C32 302.5 46.38 288 64 288zm416 127.9c0 17.6-14.4 32.1-32 32.1h-32V288h32c17.62 0 32 14.5 32 32.13v95.77z" }) }));
|
|
7
7
|
exports.AudioIcon = AudioIcon;
|
|
8
8
|
const AudioFileIcon = ({ color, ...props }) => (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: jsx_runtime_1.jsx("path", { fill: color !== null && color !== void 0 ? color : colors_1.CURRENT_COLOR_LOWERCASE, d: "M480 16l0-19.9-19.5 4.3-288 64-12.5 2.8 0 273.2c-17-12.7-39.4-20.4-64-20.4-53 0-96 35.8-96 80s43 80 96 80 96-35.8 96-80l0-187.2 256-56.9 0 120.4c-17-12.7-39.4-20.4-64-20.4-53 0-96 35.8-96 80s43 80 96 80 96-35.8 96-80l0-320zM448 336c0 26.5-28.7 48-64 48s-64-21.5-64-48 28.7-48 64-48 64 21.5 64 48zM160 400c0 26.5-28.7 48-64 48s-64-21.5-64-48 28.7-48 64-48 64 21.5 64 48zM448 123.2l-256 56.9 0-87.2 256-56.9 0 87.2z" }) }));
|
|
9
9
|
exports.AudioFileIcon = AudioFileIcon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CanvasZoomIcon: React.FC<{
|
|
3
|
+
readonly color: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const CanvasFitIcon: React.FC<{
|
|
6
|
+
readonly color: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const CanvasZoomOutIcon: React.FC<{
|
|
9
|
+
readonly color: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CanvasZoomOutIcon = exports.CanvasFitIcon = exports.CanvasZoomIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const iconStyle = {
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
flexShrink: 0,
|
|
9
|
+
};
|
|
10
|
+
const CanvasZoomIcon = ({ color }) => {
|
|
11
|
+
return (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", style: iconStyle, children: jsx_runtime_1.jsx("path", { fill: color, d: "M272 96C369.2 96 448 174.8 448 272C448 369.2 369.2 448 272 448C174.8 448 96 369.2 96 272C96 174.8 174.8 96 272 96zM272 480C323.7 480 371 461.2 407.3 430L548.7 571.3C554.9 577.5 565.1 577.5 571.3 571.3C577.5 565.1 577.5 554.9 571.3 548.7L430 407.3C461.2 371 480 323.7 480 272C480 157.1 386.9 64 272 64C157.1 64 64 157.1 64 272C64 386.9 157.1 480 272 480zM256 344C256 352.8 263.2 360 272 360C280.8 360 288 352.8 288 344L288 288L344 288C352.8 288 360 280.8 360 272C360 263.2 352.8 256 344 256L288 256L288 200C288 191.2 280.8 184 272 184C263.2 184 256 191.2 256 200L256 256L200 256C191.2 256 184 263.2 184 272C184 280.8 191.2 288 200 288L256 288L256 344z" }) }));
|
|
12
|
+
};
|
|
13
|
+
exports.CanvasZoomIcon = CanvasZoomIcon;
|
|
14
|
+
const CanvasFitIcon = ({ color }) => {
|
|
15
|
+
return (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", style: iconStyle, children: jsx_runtime_1.jsx("path", { fill: color, d: "M448 272C448 174.8 369.2 96 272 96C174.8 96 96 174.8 96 272C96 369.2 174.8 448 272 448C369.2 448 448 369.2 448 272zM407.3 430C371 461.2 323.7 480 272 480C157.1 480 64 386.9 64 272C64 157.1 157.1 64 272 64C386.9 64 480 157.1 480 272C480 323.7 461.2 371 430 407.3L571.3 548.7C577.5 554.9 577.5 565.1 571.3 571.3C565.1 577.5 554.9 577.5 548.7 571.3L407.3 430z" }) }));
|
|
16
|
+
};
|
|
17
|
+
exports.CanvasFitIcon = CanvasFitIcon;
|
|
18
|
+
const CanvasZoomOutIcon = ({ color }) => {
|
|
19
|
+
return (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", style: iconStyle, children: jsx_runtime_1.jsx("path", { fill: color, d: "M272 96C369.2 96 448 174.8 448 272C448 369.2 369.2 448 272 448C174.8 448 96 369.2 96 272C96 174.8 174.8 96 272 96zM272 480C323.7 480 371 461.2 407.3 430L548.7 571.3C554.9 577.5 565.1 577.5 571.3 571.3C577.5 565.1 577.5 554.9 571.3 548.7L430 407.3C461.2 371 480 323.7 480 272C480 157.1 386.9 64 272 64C157.1 64 64 157.1 64 272C64 386.9 157.1 480 272 480zM192 256C183.2 256 176 263.2 176 272C176 280.8 183.2 288 192 288L352 288C360.8 288 368 280.8 368 272C368 263.2 360.8 256 352 256L192 256z" }) }));
|
|
20
|
+
};
|
|
21
|
+
exports.CanvasZoomOutIcon = CanvasZoomOutIcon;
|
package/dist/icons/caret.js
CHANGED
|
@@ -19,7 +19,7 @@ const angleDown = {
|
|
|
19
19
|
const CaretRight = () => (jsx_runtime_1.jsx("svg", { viewBox: "0 0 192 512", style: caret, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR, d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
20
20
|
exports.CaretRight = CaretRight;
|
|
21
21
|
const CaretDown = ({ color = colors_1.CURRENT_COLOR, small = false }) => {
|
|
22
|
-
return (jsx_runtime_1.jsx("svg", { viewBox: "0 0
|
|
22
|
+
return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 448 512", style: small ? caretDownSmall : caretDown, children: jsx_runtime_1.jsx("path", { fill: color, d: "M235.3 411.3c-6.2 6.2-16.4 6.2-22.6 0l-208-208c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L224 377.4 420.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-208 208z" }) }));
|
|
23
23
|
};
|
|
24
24
|
exports.CaretDown = CaretDown;
|
|
25
25
|
const AngleDown = ({ down }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CertificateIcon: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const CertificateIcon: ({ color, ...props }: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CertificateIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const colors_1 = require("../helpers/colors");
|
|
6
|
-
const CertificateIcon = (props) => (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", ...props, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR_LOWERCASE, d: "M192 32l128 0 0 96c0 35.3 28.7 64 64 64l96 0 0 256c0 17.7-14.3 32-32 32l-192 0 0 32 192 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 80c10.9 0 21.6 1 32 2.9L160 64c0-17.7 14.3-32 32-32zM352 45.3L466.7 160 384 160c-17.7 0-32-14.3-32-32l0-82.7zM32 320a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM176 438.7l0 66.3-40.1-22.9c-4.9-2.8-11-2.8-15.9 0L80 505 80 438.7c14.8 6 31 9.3 48 9.3s33.2-3.3 48-9.3zm32-18.8c29.3-23.5 48-59.5 48-99.9 0-70.7-57.3-128-128-128S0 249.3 0 320c0 40.4 18.7 76.5 48 99.9l0 101.8c0 12.3 10 22.3 22.3 22.3 3.9 0 7.7-1 11.1-2.9l46.6-26.6 46.6 26.6c3.4 1.9 7.2 2.9 11.1 2.9 12.3 0 22.3-10 22.3-22.3l0-101.8zM128 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm0-80a56 56 0 1 0 0 112 56 56 0 1 0 0-112z" }) }));
|
|
6
|
+
const CertificateIcon = ({ color, ...props }) => (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", ...props, children: jsx_runtime_1.jsx("path", { fill: color !== null && color !== void 0 ? color : colors_1.CURRENT_COLOR_LOWERCASE, d: "M192 32l128 0 0 96c0 35.3 28.7 64 64 64l96 0 0 256c0 17.7-14.3 32-32 32l-192 0 0 32 192 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 80c10.9 0 21.6 1 32 2.9L160 64c0-17.7 14.3-32 32-32zM352 45.3L466.7 160 384 160c-17.7 0-32-14.3-32-32l0-82.7zM32 320a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM176 438.7l0 66.3-40.1-22.9c-4.9-2.8-11-2.8-15.9 0L80 505 80 438.7c14.8 6 31 9.3 48 9.3s33.2-3.3 48-9.3zm32-18.8c29.3-23.5 48-59.5 48-99.9 0-70.7-57.3-128-128-128S0 249.3 0 320c0 40.4 18.7 76.5 48 99.9l0 101.8c0 12.3 10 22.3 22.3 22.3 3.9 0 7.7-1 11.1-2.9l46.6-26.6 46.6 26.6c3.4 1.9 7.2 2.9 11.1 2.9 12.3 0 22.3-10 22.3-22.3l0-101.8zM128 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm0-80a56 56 0 1 0 0 112 56 56 0 1 0 0-112z" }) }));
|
|
7
7
|
exports.CertificateIcon = CertificateIcon;
|
package/dist/icons/data.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const DataIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DataIcon: ({ color, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/data.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DataIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const colors_1 = require("../helpers/colors");
|
|
6
|
-
const DataIcon = (props) => {
|
|
7
|
-
return (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR_LOWERCASE, d: "M224 512C100.3 512 0 476.2 0 432V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80V432C448 476.2 347.7 512 224 512zM416 80.45C415.7 79.69 414.4 77.27 409.8 73.31C402.4 67.11 389.9 60.09 371.6 53.57C335.4 40.62 283.2 32 224 32C164.8 32 112.6 40.62 76.37 53.57C58.1 60.09 45.59 67.11 38.25 73.31C33.55 77.27 32.29 79.69 32 80.45V182.1C46.47 192.7 69.9 202.8 100.9 210.4C135.5 218.9 177.1 224 224 224C270 224 312.5 218.9 347.1 210.4C378.1 202.8 401.5 192.7 416 182.1V80.45zM416 219.5C398.8 228.4 377.9 235.8 354.8 241.5C317.3 250.7 272.2 256 224 256C175.8 256 130.7 250.7 93.22 241.5C70.11 235.8 49.18 228.4 32 219.5V310.1C46.47 320.7 69.9 330.8 100.9 338.4C135.5 346.9 177.1 352 224 352C270 352 312.5 346.9 347.1 338.4C378.1 330.8 401.5 320.7 416 310.1V219.5zM38.25 438.7C45.59 444.9 58.1 451.9 76.37 458.4C112.6 471.4 164.8 480 224 480C283.2 480 335.4 471.4 371.6 458.4C389.9 451.9 402.4 444.9 409.8 438.7C414.4 434.7 415.7 432.3 416 431.6V347.5C398.8 356.4 377.9 363.8 354.8 369.5C317.3 378.7 272.2 384 224 384C175.8 384 130.7 378.7 93.22 369.5C70.11 363.8 49.18 356.4 32 347.5V431.6C32.29 432.3 33.55 434.7 38.25 438.7zM416 431.4C416.1 431.3 416.1 431.3 416.1 431.3L416 431.4zM31.96 431.4C31.94 431.3 31.93 431.3 31.92 431.3L31.96 431.4zM31.96 80.56C31.93 80.65 31.92 80.7 31.92 80.7L31.96 80.56zM416.1 80.7C416.1 80.7 416.1 80.65 416 80.56z" }) }));
|
|
6
|
+
const DataIcon = ({ color, ...props }) => {
|
|
7
|
+
return (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: jsx_runtime_1.jsx("path", { fill: color !== null && color !== void 0 ? color : colors_1.CURRENT_COLOR_LOWERCASE, d: "M224 512C100.3 512 0 476.2 0 432V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80V432C448 476.2 347.7 512 224 512zM416 80.45C415.7 79.69 414.4 77.27 409.8 73.31C402.4 67.11 389.9 60.09 371.6 53.57C335.4 40.62 283.2 32 224 32C164.8 32 112.6 40.62 76.37 53.57C58.1 60.09 45.59 67.11 38.25 73.31C33.55 77.27 32.29 79.69 32 80.45V182.1C46.47 192.7 69.9 202.8 100.9 210.4C135.5 218.9 177.1 224 224 224C270 224 312.5 218.9 347.1 210.4C378.1 202.8 401.5 192.7 416 182.1V80.45zM416 219.5C398.8 228.4 377.9 235.8 354.8 241.5C317.3 250.7 272.2 256 224 256C175.8 256 130.7 250.7 93.22 241.5C70.11 235.8 49.18 228.4 32 219.5V310.1C46.47 320.7 69.9 330.8 100.9 338.4C135.5 346.9 177.1 352 224 352C270 352 312.5 346.9 347.1 338.4C378.1 330.8 401.5 320.7 416 310.1V219.5zM38.25 438.7C45.59 444.9 58.1 451.9 76.37 458.4C112.6 471.4 164.8 480 224 480C283.2 480 335.4 471.4 371.6 458.4C389.9 451.9 402.4 444.9 409.8 438.7C414.4 434.7 415.7 432.3 416 431.6V347.5C398.8 356.4 377.9 363.8 354.8 369.5C317.3 378.7 272.2 384 224 384C175.8 384 130.7 378.7 93.22 369.5C70.11 363.8 49.18 356.4 32 347.5V431.6C32.29 432.3 33.55 434.7 38.25 438.7zM416 431.4C416.1 431.3 416.1 431.3 416.1 431.3L416 431.4zM31.96 431.4C31.94 431.3 31.93 431.3 31.92 431.3L31.96 431.4zM31.96 80.56C31.93 80.65 31.92 80.7 31.92 80.7L31.96 80.56zM416.1 80.7C416.1 80.7 416.1 80.65 416 80.56z" }) }));
|
|
8
8
|
};
|
|
9
9
|
exports.DataIcon = DataIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EffectsIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const EffectsIcon = ({ color, ...props }) => {
|
|
6
|
+
return (jsx_runtime_1.jsx("svg", { ...props, viewBox: "0 0 16 16", children: jsx_runtime_1.jsx("path", { fill: color, d: "M4.405 4.48C4.575 3.82 4.865 3.325 5.275 2.995C5.695 2.665 6.25 2.5 6.94 2.5H9.235V4.06H7.045C6.555 4.06 6.235 4.3 6.085 4.78L5.83 5.68H7.975V7.255H5.395L3.805 13H2.02L3.625 7.255H1.96V5.68H4.075L4.405 4.48ZM8.57102 9.085L6.87602 5.68H8.79602L9.86102 7.99L11.991 5.68H14.331L10.686 9.415L12.426 13H10.491L9.35102 10.585L7.02602 13H4.68602L8.57102 9.085Z" }) }));
|
|
7
|
+
};
|
|
8
|
+
exports.EffectsIcon = EffectsIcon;
|
package/dist/icons/ellipsis.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EllipsisIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const EllipsisIcon = (props) => {
|
|
6
|
-
return (jsx_runtime_1.jsx("svg", { ...props.svgProps, viewBox: "0 0 448 512", children: jsx_runtime_1.jsx("path", { fill: props.fill, d: "
|
|
6
|
+
return (jsx_runtime_1.jsx("svg", { ...props.svgProps, viewBox: "0 0 448 512", children: jsx_runtime_1.jsx("path", { fill: props.fill, d: "M448 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0zm-176 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0zM48 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.EllipsisIcon = EllipsisIcon;
|