@remotion/studio 4.0.527 → 4.0.529
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/Studio.js +2 -0
- package/dist/components/AgentPrompt.js +3 -4
- package/dist/components/AppLaunchButton.d.ts +0 -1
- package/dist/components/AppLaunchButton.js +2 -5
- package/dist/components/AssetAudioVolume.js +2 -2
- package/dist/components/AssetSelectorItem.js +5 -5
- package/dist/components/AudioWaveform.d.ts +1 -0
- package/dist/components/AudioWaveform.js +10 -14
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/CaptionInspector.js +1 -1
- package/dist/components/CaptionTextEditor.js +1 -1
- package/dist/components/CheckboardToggle.js +1 -1
- package/dist/components/CodeFrame.js +1 -1
- package/dist/components/CodingAgentButton.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +2 -2
- package/dist/components/ColorPicker/ColorPickerPopup.js +1 -1
- package/dist/components/ColorPicker/checker.d.ts +1 -1
- package/dist/components/CompactExplanation.js +3 -3
- package/dist/components/CompositionSelectorItem.js +2 -2
- package/dist/components/ConfigSelect.js +1 -1
- package/dist/components/ConfigureDefaultEditorModal.js +2 -2
- package/dist/components/ControlButton.d.ts +0 -1
- package/dist/components/ControlButton.js +2 -2
- package/dist/components/CurrentAsset.js +4 -3
- package/dist/components/EditorRuler/Ruler.js +6 -3
- package/dist/components/EffectPickerModal.js +69 -43
- package/dist/components/ElementInstallConfirmation.js +3 -3
- package/dist/components/ElementLibrariesSettings.d.ts +2 -0
- package/dist/components/ElementLibrariesSettings.js +200 -0
- package/dist/components/ElementLibraryModal.js +1 -1
- package/dist/components/FramePersistor.js +3 -3
- package/dist/components/FullscreenToggle.js +1 -1
- package/dist/components/InitialCompositionLoader.js +5 -3
- package/dist/components/InlineAction.d.ts +2 -2
- package/dist/components/InlineAction.js +2 -3
- package/dist/components/InlineEditableTitle.d.ts +1 -1
- package/dist/components/InlineEditableTitle.js +3 -3
- package/dist/components/InspectorLocationCopy.js +1 -1
- package/dist/components/InspectorOpenInEditor.js +14 -3
- package/dist/components/InspectorPanel/AlignmentControls.js +31 -12
- package/dist/components/InspectorPanel/CollapsibleInspectorSectionHeader.js +1 -1
- package/dist/components/InspectorPanel/CompositionInspector.js +1 -5
- package/dist/components/InspectorPanel/CompositionMetadata.js +4 -4
- package/dist/components/InspectorPanel/EasingInspector.js +7 -3
- package/dist/components/InspectorPanel/ElementLibraryButton.js +3 -14
- package/dist/components/InspectorPanel/KeyframeEasingNavigator.js +6 -8
- package/dist/components/InspectorPanel/KeyframeInspector.js +29 -25
- package/dist/components/InspectorPanel/KeyframeSettings.js +16 -11
- package/dist/components/InspectorPanel/MultiSequenceField.js +1 -1
- package/dist/components/InspectorPanel/MultiSequenceInspector.js +2 -7
- package/dist/components/InspectorPanel/MultiSequenceNumberField.js +2 -2
- package/dist/components/InspectorPanel/SequenceInspectorHeader.d.ts +3 -1
- package/dist/components/InspectorPanel/SequenceInspectorHeader.js +1 -1
- package/dist/components/InspectorPanel/SequenceSelectionInspector.js +33 -14
- package/dist/components/InspectorPanel/SequenceWrapAction.d.ts +8 -0
- package/dist/components/InspectorPanel/SequenceWrapAction.js +143 -0
- package/dist/components/InspectorPanel/common.d.ts +6 -2
- package/dist/components/InspectorPanel/common.js +25 -9
- package/dist/components/InspectorPanel/easing-inspector-selection.d.ts +2 -1
- package/dist/components/InspectorPanel/easing-inspector-selection.js +4 -3
- package/dist/components/InspectorPanel/keyframe-inspector-frame.d.ts +2 -1
- package/dist/components/InspectorPanel/keyframe-inspector-frame.js +2 -2
- package/dist/components/InspectorSequenceSection.d.ts +1 -0
- package/dist/components/InspectorSequenceSection.js +12 -10
- package/dist/components/InspectorSourceLocation.js +2 -2
- package/dist/components/KeyboardShortcutsSettings.js +2 -2
- package/dist/components/LicenseKeyValidation.js +2 -2
- package/dist/components/LoopToggle.js +1 -1
- package/dist/components/Menu/MenuSubItem.js +4 -2
- package/dist/components/Menu/styles.d.ts +2 -2
- package/dist/components/MenuBuildIndicator.js +1 -1
- package/dist/components/MenuCompositionName.js +1 -1
- package/dist/components/Modals.js +7 -6
- package/dist/components/ModelManager.js +10 -9
- package/dist/components/MuteToggle.js +1 -1
- package/dist/components/NewComposition/CancelButton.js +10 -4
- package/dist/components/NewComposition/ComboBox.d.ts +1 -1
- package/dist/components/NewComposition/ComboBox.js +2 -2
- package/dist/components/NewComposition/DuplicateComposition.js +1 -1
- package/dist/components/NewComposition/InputDragger.d.ts +4 -2
- package/dist/components/NewComposition/InputDragger.js +29 -10
- package/dist/components/NewComposition/NewComposition.js +8 -7
- package/dist/components/NewComposition/RemInput.d.ts +1 -1
- package/dist/components/NewComposition/menu-typeahead.js +1 -1
- package/dist/components/OpenIssueButton.js +1 -1
- package/dist/components/OutlineToggle.js +1 -1
- package/dist/components/PlayPause.js +1 -1
- package/dist/components/PlaybackRateSelector.js +1 -1
- package/dist/components/PreviewToolbarOverflowButton.js +1 -1
- package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.js +1 -1
- package/dist/components/RenderButton.js +2 -4
- package/dist/components/RenderModal/InfoBubble.d.ts +1 -1
- package/dist/components/RenderModal/InfoBubble.js +2 -2
- package/dist/components/RenderModal/NumberSetting.js +1 -1
- package/dist/components/RenderModal/OptionExplainerBubble.js +2 -2
- package/dist/components/RenderModal/RenderModalAdvanced.js +2 -2
- package/dist/components/RenderModal/RenderModalAudio.js +2 -2
- package/dist/components/RenderModal/RenderModalBasic.js +3 -3
- package/dist/components/RenderModal/RenderModalEncoding.js +4 -4
- package/dist/components/RenderModal/RenderModalOutputName.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaLabel.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodEnumEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodFieldValidation.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/create-zod-values.js +1 -2
- package/dist/components/RenderModal/WebRenderModalAdvanced.js +2 -2
- package/dist/components/RenderModal/WebRenderModalAudio.js +2 -2
- package/dist/components/RenderModal/WebRenderModalBasic.js +3 -3
- package/dist/components/RenderModal/WebRenderModalPicture.js +2 -3
- package/dist/components/RenderQueue/CaptionQueueItem.js +14 -5
- package/dist/components/RenderQueue/CaptionQueueProcessor.js +30 -7
- package/dist/components/RenderQueue/QueueJobError.d.ts +8 -0
- package/dist/components/RenderQueue/QueueJobError.js +24 -0
- package/dist/components/RenderQueue/QueueJobErrorModal.d.ts +8 -0
- package/dist/components/RenderQueue/QueueJobErrorModal.js +63 -0
- package/dist/components/RenderQueue/RenderQueueError.js +1 -1
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.d.ts +3 -1
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +11 -4
- package/dist/components/RenderQueue/RenderQueueOutputName.js +1 -1
- package/dist/components/RenderQueue/RenderQueueProgressMessage.js +1 -1
- package/dist/components/RenderQueue/RenderQueueRepeat.d.ts +3 -1
- package/dist/components/RenderQueue/RenderQueueRepeat.js +20 -3
- package/dist/components/RenderQueue/VideoMattingQueueItem.js +24 -27
- package/dist/components/RenderQueue/VideoMattingQueueProcessor.js +68 -28
- package/dist/components/RenderQueue/caption-job-types.d.ts +3 -1
- package/dist/components/RenderQueue/context.d.ts +4 -0
- package/dist/components/RenderQueue/context.js +58 -8
- package/dist/components/RenderQueue/index.js +2 -3
- package/dist/components/RenderQueue/load-model-for-job.d.ts +2 -1
- package/dist/components/RenderQueue/load-model-for-job.js +5 -1
- package/dist/components/RenderQueue/video-matting-job-types.d.ts +13 -6
- package/dist/components/RenderingSettings.js +6 -6
- package/dist/components/RulersAndGuidesToggle.js +1 -1
- package/dist/components/SegmentedButton.d.ts +0 -2
- package/dist/components/SegmentedButton.js +6 -6
- package/dist/components/SelectedOutlineCropControls.js +2 -1
- package/dist/components/SelectedOutlineEditingHandles.js +9 -2
- package/dist/components/SelectedOutlineElement.js +9 -3
- package/dist/components/SelectedOutlineKeyboardControls.d.ts +2 -4
- package/dist/components/SelectedOutlineKeyboardControls.js +4 -22
- package/dist/components/SelectedOutlineOverlay.js +165 -106
- package/dist/components/SelectedOutlinePathPoints.d.ts +8 -0
- package/dist/components/SelectedOutlinePathPoints.js +457 -0
- package/dist/components/SelectedOutlinePolygon.js +21 -46
- package/dist/components/SelectedOutlineRenderer.d.ts +3 -5
- package/dist/components/SelectedOutlineRenderer.js +32 -136
- package/dist/components/SelectedOutlineTransformOriginHandle.js +3 -2
- package/dist/components/SelectedOutlineUvControls.js +12 -7
- package/dist/components/SettingsButton.js +1 -1
- package/dist/components/SettingsModal.js +30 -3
- package/dist/components/SettingsModalFooter.d.ts +1 -0
- package/dist/components/SettingsModalFooter.js +7 -3
- package/dist/components/ShowOutlinesProvider.js +1 -1
- package/dist/components/SizeSelector.js +1 -1
- package/dist/components/SkillsSettings.d.ts +0 -1
- package/dist/components/SkillsSettings.js +14 -15
- package/dist/components/SnappingToggle.js +1 -1
- package/dist/components/Splitter/SplitterElement.js +1 -2
- package/dist/components/StudioSettings.js +2 -2
- package/dist/components/TimeValue.js +2 -4
- package/dist/components/Timeline/EasingEditorModal.js +3 -3
- package/dist/components/Timeline/LoopedTimelineIndicators.d.ts +1 -0
- package/dist/components/Timeline/LoopedTimelineIndicators.js +7 -6
- package/dist/components/Timeline/TimelineArrayField.js +3 -3
- package/dist/components/Timeline/TimelineAssetField.js +3 -3
- package/dist/components/Timeline/TimelineClipboardKeybindings.js +0 -1
- package/dist/components/Timeline/TimelineColorField.js +3 -3
- package/dist/components/Timeline/TimelineDragHandler.js +3 -3
- package/dist/components/Timeline/TimelineDuplicateCount.js +1 -1
- package/dist/components/Timeline/TimelineEffectItem.js +1 -1
- package/dist/components/Timeline/TimelineEffectPropItem.d.ts +1 -0
- package/dist/components/Timeline/TimelineEffectPropItem.js +12 -5
- package/dist/components/Timeline/TimelineEnumField.js +1 -1
- package/dist/components/Timeline/TimelineExpandedRow.d.ts +1 -0
- package/dist/components/Timeline/TimelineExpandedRow.js +5 -4
- package/dist/components/Timeline/TimelineExpandedSection.d.ts +1 -0
- package/dist/components/Timeline/TimelineExpandedSection.js +2 -2
- package/dist/components/Timeline/TimelineExpandedTrackKeyframes.d.ts +1 -0
- package/dist/components/Timeline/TimelineExpandedTrackKeyframes.js +3 -1
- package/dist/components/Timeline/TimelineFieldLabel.js +1 -1
- package/dist/components/Timeline/TimelineFontFamilyField.js +14 -14
- package/dist/components/Timeline/TimelineFontWeightField.js +1 -1
- package/dist/components/Timeline/TimelineKeyframeControls.d.ts +1 -0
- package/dist/components/Timeline/TimelineKeyframeControls.js +42 -31
- package/dist/components/Timeline/TimelineKeyframeDiamond.js +1 -1
- package/dist/components/Timeline/TimelineKeyframeEasingLine.js +1 -1
- package/dist/components/Timeline/TimelineLayerChildren.js +2 -2
- package/dist/components/Timeline/TimelineList.js +16 -8
- package/dist/components/Timeline/TimelineMediaInfo.js +1 -1
- package/dist/components/Timeline/TimelineNumberField.js +2 -4
- package/dist/components/Timeline/TimelinePrimitiveFieldValue.js +1 -1
- package/dist/components/Timeline/TimelineScaleField.js +1 -1
- package/dist/components/Timeline/TimelineSchemaField.js +2 -2
- package/dist/components/Timeline/TimelineSelection.d.ts +9 -9
- package/dist/components/Timeline/TimelineSelection.js +16 -9
- package/dist/components/Timeline/TimelineSequence.d.ts +3 -1
- package/dist/components/Timeline/TimelineSequence.js +40 -22
- package/dist/components/Timeline/TimelineSequenceItem.d.ts +1 -0
- package/dist/components/Timeline/TimelineSequenceItem.js +52 -24
- package/dist/components/Timeline/TimelineSequenceName.d.ts +1 -0
- package/dist/components/Timeline/TimelineSequenceName.js +38 -6
- package/dist/components/Timeline/TimelineSequencePropItem.d.ts +3 -0
- package/dist/components/Timeline/TimelineSequencePropItem.js +266 -27
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +11 -13
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +98 -77
- package/dist/components/Timeline/TimelineTextContentField.js +27 -4
- package/dist/components/Timeline/TimelineTimeIndicators.js +10 -5
- package/dist/components/Timeline/TimelineTrack.js +1 -1
- package/dist/components/Timeline/TimelineTrimTooltip.d.ts +11 -0
- package/dist/components/Timeline/TimelineTrimTooltip.js +41 -0
- package/dist/components/Timeline/TimelineVideoInfo.d.ts +1 -0
- package/dist/components/Timeline/TimelineVideoInfo.js +13 -10
- package/dist/components/Timeline/TimelineZoomControls.js +2 -2
- package/dist/components/Timeline/delete-selected-keyframe.js +22 -8
- package/dist/components/Timeline/delete-selected-timeline-item.d.ts +1 -5
- package/dist/components/Timeline/delete-selected-timeline-item.js +7 -93
- package/dist/components/Timeline/get-animation-item-selection-for-frame.d.ts +2 -1
- package/dist/components/Timeline/get-animation-item-selection-for-frame.js +7 -5
- package/dist/components/Timeline/get-keyframed-sequence-drag-targets.d.ts +23 -0
- package/dist/components/Timeline/get-keyframed-sequence-drag-targets.js +57 -0
- package/dist/components/Timeline/get-node-keyframes.d.ts +2 -1
- package/dist/components/Timeline/get-node-keyframes.js +6 -4
- package/dist/components/Timeline/get-playback-rate-keyframe-changes.d.ts +21 -0
- package/dist/components/Timeline/get-playback-rate-keyframe-changes.js +142 -0
- package/dist/components/Timeline/get-sequence-split-menu-item.js +2 -2
- package/dist/components/Timeline/get-timeline-keyframes.d.ts +15 -2
- package/dist/components/Timeline/get-timeline-keyframes.js +44 -6
- package/dist/components/Timeline/keyframe-clipboard.js +17 -3
- package/dist/components/Timeline/split-selected-timeline-item.js +4 -1
- package/dist/components/Timeline/timeline-field-display-utils.js +1 -0
- package/dist/components/Timeline/timeline-field-row-layout.js +1 -0
- package/dist/components/Timeline/use-delete-timeline-items.js +17 -11
- package/dist/components/Timeline/use-expanded-track-keyframe-rows.d.ts +2 -1
- package/dist/components/Timeline/use-expanded-track-keyframe-rows.js +3 -1
- package/dist/components/Timeline/use-sequence-freeze-frame-menu-item.js +7 -3
- package/dist/components/Timeline/use-timeline-expanded-tree.d.ts +1 -1
- package/dist/components/Timeline/use-timeline-expanded-tree.js +3 -0
- package/dist/components/Timeline/use-timeline-keyframe-drag.js +28 -19
- package/dist/components/TimelineCombobox.d.ts +1 -1
- package/dist/components/TimelineCombobox.js +5 -6
- package/dist/components/TimelineInOutToggle.js +1 -1
- package/dist/components/Transcription/Models.js +1 -1
- package/dist/components/Transcription/TranscriptionModal.js +9 -7
- package/dist/components/Transcription/resample-media-to-16-khz.d.ts +2 -1
- package/dist/components/Transcription/resample-media-to-16-khz.js +20 -2
- package/dist/components/UndoRedoButtons.js +1 -1
- package/dist/components/UpdatesSettings.js +4 -2
- package/dist/components/VideoMatting/Models.js +1 -1
- package/dist/components/VideoMatting/VideoMattingModal.js +34 -51
- package/dist/components/VideoMatting/VideoMattingModalWithOptionalPackage.js +1 -1
- package/dist/components/WebMcp.js +22 -40
- package/dist/components/composition-drop-preview.js +1 -0
- package/dist/components/effect-drag-and-drop.d.ts +13 -5
- package/dist/components/effect-drag-and-drop.js +19 -4
- package/dist/components/get-open-in-menu-items.d.ts +2 -1
- package/dist/components/get-open-in-menu-items.js +17 -1
- package/dist/components/selected-outline-drag.d.ts +1 -6
- package/dist/components/selected-outline-drag.js +22 -6
- package/dist/components/selected-outline-geometry.d.ts +2 -18
- package/dist/components/selected-outline-measurement.d.ts +23 -41
- package/dist/components/selected-outline-measurement.js +14 -252
- package/dist/components/selected-outline-order.d.ts +4 -11
- package/dist/components/selected-outline-order.js +2 -254
- package/dist/components/selected-outline-snap.d.ts +1 -1
- package/dist/components/selected-outline-snap.js +2 -1
- package/dist/components/selected-outline-types.d.ts +20 -28
- package/dist/components/selected-outline-uv.d.ts +4 -4
- package/dist/components/selected-outline-uv.js +6 -111
- package/dist/components/sequence-props-api.js +0 -10
- package/dist/components/use-selected-outline-control-target.js +12 -21
- package/dist/components/wrap-jsx-node-api.d.ts +2 -0
- package/dist/components/wrap-jsx-node-api.js +13 -0
- package/dist/error-overlay/remotion-overlay/CompositionIdListItem.js +1 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +46 -3
- package/dist/error-overlay/remotion-overlay/StackFrame.js +32 -3
- package/dist/esm/{CaptionQueueProcessor-npa6szn1.mjs → CaptionQueueProcessor-qj37c6r2.mjs} +63 -17
- package/dist/esm/LazyModels-rjsrgap5.mjs +12 -0
- package/dist/esm/LazyModels-rnbjx98t.mjs +12 -0
- package/dist/esm/{TranscriptionModal-79m5wgcj.mjs → TranscriptionModal-y7zeqj2d.mjs} +21 -21
- package/dist/esm/{VideoMattingModal-31pew0xj.mjs → VideoMattingModal-jzrkhah1.mjs} +51 -69
- package/dist/esm/{VideoMattingQueueProcessor-t1hgm2rm.mjs → VideoMattingQueueProcessor-4tkj0f4k.mjs} +69 -26
- package/dist/esm/{index-v4tr1bft.mjs → index-09txs1bj.mjs} +5 -0
- package/dist/esm/{index-e855w59j.mjs → index-19d05w9e.mjs} +3 -5
- package/dist/esm/index-24wge6y5.mjs +102 -0
- package/dist/esm/index-3qb54r5j.mjs +157 -0
- package/dist/esm/{index-n5gmcvhz.mjs → index-5ycb9e9q.mjs} +2 -4
- package/dist/esm/{index-s7qa3xbw.mjs → index-cakcjjy2.mjs} +7 -7
- package/dist/esm/{index-r1gr3j3a.mjs → index-dfy1t576.mjs} +50 -1
- package/dist/esm/{index-614tdz2q.mjs → index-f9hxt5yh.mjs} +3 -3
- package/dist/esm/{index-9x6e1dq0.mjs → index-hqxc6tzp.mjs} +40 -6
- package/dist/esm/{index-ac5550e7.mjs → index-jc22b2wb.mjs} +3 -3
- package/dist/esm/{index-5t2dwxsk.mjs → index-m01zjph7.mjs} +261 -25
- package/dist/esm/{index-ppspzgn9.mjs → index-m2a95v3p.mjs} +4904 -4951
- package/dist/esm/{index-9xxg6218.mjs → index-qve7mdfp.mjs} +19 -1
- package/dist/esm/{index-vxwg66ar.mjs → index-r9bj4tta.mjs} +47 -60
- package/dist/esm/{index-r0ejh5sy.mjs → index-vnc2wdfd.mjs} +44 -27
- package/dist/esm/{index-21hxsfaa.mjs → index-vtr5qzam.mjs} +6 -25
- package/dist/esm/{index-4zen9prq.mjs → index-x7kg7jqv.mjs} +6809 -5640
- package/dist/esm/index.mjs +4 -5
- package/dist/esm/internals.mjs +13 -13
- package/dist/esm/previewEntry.mjs +18 -15
- package/dist/esm/renderEntry.mjs +5 -1
- package/dist/helpers/calculate-timeline.d.ts +5 -1
- package/dist/helpers/calculate-timeline.js +1 -1
- package/dist/helpers/checkerboard-background.d.ts +2 -2
- package/dist/helpers/checkerboard-background.js +1 -1
- package/dist/helpers/colors.d.ts +131 -112
- package/dist/helpers/colors.js +121 -100
- package/dist/helpers/create-folder-tree.js +2 -1
- package/dist/helpers/editor-guide-selection.d.ts +1 -1
- package/dist/helpers/editor-ruler.js +23 -12
- package/dist/helpers/get-connected-compositions.d.ts +6 -1
- package/dist/helpers/get-connected-compositions.js +1 -1
- package/dist/helpers/get-sequence-double-click-action.js +1 -1
- package/dist/helpers/get-sequence-visible-range.d.ts +1 -1
- package/dist/helpers/get-sequence-visible-range.js +2 -5
- package/dist/helpers/get-timeline-nestedness.d.ts +1 -1
- package/dist/helpers/get-timeline-nestedness.js +1 -1
- package/dist/helpers/get-timeline-sequence-sort-key.d.ts +1 -1
- package/dist/helpers/get-timeline-sequence-sort-key.js +1 -1
- package/dist/helpers/hoverable.js +4 -4
- package/dist/helpers/inject-css.js +5 -7
- package/dist/helpers/prism-vsc-dark-plus.d.ts +1 -1
- package/dist/helpers/prism-vsc-dark-plus.js +52 -51
- package/dist/helpers/resolve-studio-color.d.ts +1 -0
- package/dist/helpers/resolve-studio-color.js +11 -0
- package/dist/helpers/studio-css-variables.d.ts +1 -0
- package/dist/helpers/studio-css-variables.js +104 -0
- package/dist/helpers/studio-pixel-ratio.d.ts +1 -0
- package/dist/helpers/studio-pixel-ratio.js +7 -0
- package/dist/helpers/timeline-node-path-key.d.ts +1 -1
- package/dist/helpers/timeline-node-path-key.js +2 -2
- package/dist/helpers/use-runtime-values.js +2 -28
- package/dist/hot-middleware-client/client.js +5 -3
- package/dist/icons/align-center-horizontal.js +2 -1
- package/dist/icons/align-left.js +2 -1
- package/dist/icons/align-right.js +2 -1
- package/dist/icons/{separation.d.ts → background-removal.d.ts} +1 -1
- package/dist/icons/background-removal.js +9 -0
- package/dist/icons/snowflake.js +1 -3
- package/dist/icons/{scissors.d.ts → split.d.ts} +1 -1
- package/dist/icons/split.js +8 -0
- package/dist/icons/trash.js +2 -2
- package/dist/icons/wrap.d.ts +4 -0
- package/dist/icons/wrap.js +10 -0
- package/dist/previewEntry.js +2 -0
- package/dist/renderEntry.js +2 -0
- package/dist/state/modals.d.ts +15 -1
- package/dist/state/timeline-sequence-hover.d.ts +6 -16
- package/dist/state/timeline-sequence-hover.js +6 -67
- package/package.json +20 -19
- package/dist/components/Timeline/get-easing-selection-after-keyframe-delete.d.ts +0 -15
- package/dist/components/Timeline/get-easing-selection-after-keyframe-delete.js +0 -31
- package/dist/esm/LazyModels-nh3c8h9p.mjs +0 -12
- package/dist/esm/LazyModels-rr5v8h5y.mjs +0 -12
- package/dist/esm/index-cw0pnpg5.mjs +0 -50
- package/dist/esm/index-k426ye99.mjs +0 -139
- package/dist/helpers/get-box-quads-polyfill-internals.d.ts +0 -82
- package/dist/helpers/get-box-quads-polyfill-internals.js +0 -2403
- package/dist/helpers/get-box-quads-ponyfill.d.ts +0 -10
- package/dist/helpers/get-box-quads-ponyfill.js +0 -23
- package/dist/icons/scissors.js +0 -8
- package/dist/icons/separation.js +0 -7
- /package/dist/esm/{resolve-composition-component-location-qrp05g62.mjs → resolve-composition-component-location-2hgf6g0a.mjs} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wrapJsxNode = void 0;
|
|
4
|
+
const browser_studio_operations_1 = require("../helpers/browser-studio-operations");
|
|
5
|
+
const call_api_1 = require("./call-api");
|
|
6
|
+
const wrapJsxNode = (request) => {
|
|
7
|
+
const browserStudioOperations = (0, browser_studio_operations_1.getBrowserStudioOperations)();
|
|
8
|
+
if (browserStudioOperations) {
|
|
9
|
+
return browserStudioOperations.wrapJsxNode(request);
|
|
10
|
+
}
|
|
11
|
+
return (0, call_api_1.callApi)('/api/wrap-jsx-node', request);
|
|
12
|
+
};
|
|
13
|
+
exports.wrapJsxNode = wrapJsxNode;
|
|
@@ -28,6 +28,6 @@ const CompositionIdListItem = ({ id, isActive, onSelect }) => {
|
|
|
28
28
|
...exports.listItemStyle,
|
|
29
29
|
...(hover ? exports.listItemHoverStyle : {}),
|
|
30
30
|
...(isActive ? exports.listItemActiveStyle : {}),
|
|
31
|
-
},
|
|
31
|
+
}, "aria-label": id, children: id }));
|
|
32
32
|
};
|
|
33
33
|
exports.CompositionIdListItem = CompositionIdListItem;
|
|
@@ -7,9 +7,13 @@ const AppLaunchButton_1 = require("../../components/AppLaunchButton");
|
|
|
7
7
|
const NotificationCenter_1 = require("../../components/Notifications/NotificationCenter");
|
|
8
8
|
const SettingsContext_1 = require("../../components/SettingsContext");
|
|
9
9
|
const use_configure_default_apps_1 = require("../../components/use-configure-default-apps");
|
|
10
|
+
const colors_1 = require("../../helpers/colors");
|
|
11
|
+
const copy_text_1 = require("../../helpers/copy-text");
|
|
10
12
|
const open_in_editor_1 = require("../../helpers/open-in-editor");
|
|
11
13
|
const use_keybinding_1 = require("../../helpers/use-keybinding");
|
|
14
|
+
const clipboard_1 = require("../../icons/clipboard");
|
|
12
15
|
const editor_1 = require("../../icons/editor");
|
|
16
|
+
const format_location_1 = require("./format-location");
|
|
13
17
|
const ShortcutHint_1 = require("./ShortcutHint");
|
|
14
18
|
const menuLabel = {
|
|
15
19
|
color: 'inherit',
|
|
@@ -17,10 +21,14 @@ const menuLabel = {
|
|
|
17
21
|
fontSize: 13,
|
|
18
22
|
lineHeight: '16px',
|
|
19
23
|
};
|
|
24
|
+
const copyIcon = { height: 16, width: 16 };
|
|
20
25
|
const OpenInEditor = ({ stack, canHaveKeyboardShortcuts, editorId, editorName, size }) => {
|
|
21
26
|
const { editorInfo } = (0, SettingsContext_1.useSettings)();
|
|
22
27
|
const configureDefaultApps = (0, use_configure_default_apps_1.useConfigureDefaultApps)();
|
|
23
28
|
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
29
|
+
const sourcePath = stack.originalFileName
|
|
30
|
+
? (0, format_location_1.formatLocation)(stack.originalFileName)
|
|
31
|
+
: null;
|
|
24
32
|
const openWithEditor = (0, react_1.useCallback)(async (selectedEditorId, selectedEditorName) => {
|
|
25
33
|
try {
|
|
26
34
|
const response = await (0, open_in_editor_1.openInEditor)(stack, selectedEditorId);
|
|
@@ -35,6 +43,16 @@ const OpenInEditor = ({ stack, canHaveKeyboardShortcuts, editorId, editorName, s
|
|
|
35
43
|
const openPreferredEditor = (0, react_1.useCallback)(() => {
|
|
36
44
|
openWithEditor(editorId, editorName).catch(() => undefined);
|
|
37
45
|
}, [editorId, editorName, openWithEditor]);
|
|
46
|
+
const copyPath = (0, react_1.useCallback)(() => {
|
|
47
|
+
if (sourcePath === null) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
(0, copy_text_1.copyText)(sourcePath)
|
|
51
|
+
.then(() => (0, NotificationCenter_1.showNotification)('Copied path', 1500))
|
|
52
|
+
.catch((err) => {
|
|
53
|
+
(0, NotificationCenter_1.showNotification)(`Could not copy path: ${err.message}`, 2000);
|
|
54
|
+
});
|
|
55
|
+
}, [sourcePath]);
|
|
38
56
|
(0, react_1.useEffect)(() => {
|
|
39
57
|
if (!canHaveKeyboardShortcuts) {
|
|
40
58
|
return;
|
|
@@ -66,9 +84,34 @@ const OpenInEditor = ({ stack, canHaveKeyboardShortcuts, editorId, editorName, s
|
|
|
66
84
|
type: 'item',
|
|
67
85
|
value: editor.id,
|
|
68
86
|
}));
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
87
|
+
if (sourcePath === null) {
|
|
88
|
+
return editorItems;
|
|
89
|
+
}
|
|
90
|
+
return [
|
|
91
|
+
...editorItems,
|
|
92
|
+
...(editorItems.length > 0
|
|
93
|
+
? [{ type: 'divider', id: 'copy-path-divider' }]
|
|
94
|
+
: []),
|
|
95
|
+
{
|
|
96
|
+
id: 'copy-path',
|
|
97
|
+
keyHint: null,
|
|
98
|
+
label: jsx_runtime_1.jsx("span", { style: menuLabel, children: "Copy path" }),
|
|
99
|
+
leftItem: jsx_runtime_1.jsx(clipboard_1.ClipboardIcon, { color: colors_1.LIGHT_TEXT, style: copyIcon }),
|
|
100
|
+
onClick: copyPath,
|
|
101
|
+
quickSwitcherLabel: null,
|
|
102
|
+
subMenu: null,
|
|
103
|
+
type: 'item',
|
|
104
|
+
value: 'copy-path',
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
}, [
|
|
108
|
+
copyPath,
|
|
109
|
+
editorId,
|
|
110
|
+
editorInfo === null || editorInfo === void 0 ? void 0 : editorInfo.installedEditors,
|
|
111
|
+
openWithEditor,
|
|
112
|
+
sourcePath,
|
|
113
|
+
]);
|
|
114
|
+
return (jsx_runtime_1.jsxs(AppLaunchButton_1.AppLaunchButton, { actionButtonId: "error-overlay-open-in-editor", ariaLabel: `Open in ${editorName}`, disabled: false, menuAriaLabel: "Open in another app", menuButtonId: "error-overlay-open-in-another-app", menuItems: menuItems, onConfigureApps: configureDefaultApps, onClick: openPreferredEditor, size: size, style: null, children: [
|
|
72
115
|
jsx_runtime_1.jsx(editor_1.EditorIcon, { editorId: editorId, size: size === 'default' ? 14 : 18 }),
|
|
73
116
|
"Open in ", editorName, canHaveKeyboardShortcuts ? (jsx_runtime_1.jsx(ShortcutHint_1.ShortcutHint, { keyToPress: "o", cmdOrCtrl: true })) : null] }));
|
|
74
117
|
};
|
|
@@ -13,7 +13,15 @@ const format_location_1 = require("./format-location");
|
|
|
13
13
|
const location = {
|
|
14
14
|
color: colors_1.LIGHT_TEXT,
|
|
15
15
|
fontFamily: 'monospace',
|
|
16
|
-
|
|
16
|
+
textAlign: 'left',
|
|
17
|
+
whiteSpace: 'nowrap',
|
|
18
|
+
};
|
|
19
|
+
const locationMask = 'linear-gradient(to right, black calc(100% - 20px), transparent)';
|
|
20
|
+
const locationContainer = {
|
|
21
|
+
...location,
|
|
22
|
+
maskImage: locationMask,
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
WebkitMaskImage: locationMask,
|
|
17
25
|
};
|
|
18
26
|
const header = {
|
|
19
27
|
paddingTop: 10,
|
|
@@ -39,6 +47,27 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName, editor
|
|
|
39
47
|
!((_b = s.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'))) ||
|
|
40
48
|
isFirst;
|
|
41
49
|
});
|
|
50
|
+
const locationRef = (0, react_1.useRef)(null);
|
|
51
|
+
const [locationOverflows, setLocationOverflows] = (0, react_1.useState)(false);
|
|
52
|
+
const fileLocation = s.originalFileName
|
|
53
|
+
? `${(0, format_location_1.formatLocation)(s.originalFileName)}:${s.originalLineNumber}`
|
|
54
|
+
: null;
|
|
55
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
56
|
+
const element = locationRef.current;
|
|
57
|
+
if (!element) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const update = () => {
|
|
61
|
+
setLocationOverflows(element.scrollWidth > element.clientWidth);
|
|
62
|
+
};
|
|
63
|
+
update();
|
|
64
|
+
const observer = new ResizeObserver(update);
|
|
65
|
+
observer.observe(element);
|
|
66
|
+
if (element.firstElementChild) {
|
|
67
|
+
observer.observe(element.firstElementChild);
|
|
68
|
+
}
|
|
69
|
+
return () => observer.disconnect();
|
|
70
|
+
}, [fileLocation, fontSize]);
|
|
42
71
|
const canOpenFileLocation = Boolean(editorId && s.originalFileName);
|
|
43
72
|
const onOpenFileLocation = (0, react_1.useCallback)(() => {
|
|
44
73
|
if (!canOpenFileLocation) {
|
|
@@ -64,7 +93,7 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName, editor
|
|
|
64
93
|
paddingLeft: horizontalSpacing,
|
|
65
94
|
paddingRight: horizontalSpacing,
|
|
66
95
|
}, children: [
|
|
67
|
-
jsx_runtime_1.jsxs("div", { style: left, children: [functionName === null ? null : (jsx_runtime_1.jsx("div", { style: { ...fnName, fontSize }, children: functionName })),
|
|
96
|
+
jsx_runtime_1.jsxs("div", { style: left, children: [functionName === null ? null : (jsx_runtime_1.jsx("div", { style: { ...fnName, fontSize }, children: functionName })), fileLocation ? (jsx_runtime_1.jsx("div", { ref: locationRef, role: "group", style: { ...locationContainer, fontSize }, "aria-label": locationOverflows ? fileLocation : undefined, children: canOpenFileLocation ? (jsx_runtime_1.jsx("button", { type: "button", className: `${hoverable_1.HOVERABLE_CLASS_NAME} ${hoverable_1.FOCUS_VISIBLE_ONLY_CLASS_NAME}`, onClick: onOpenFileLocation, style: {
|
|
68
97
|
...location,
|
|
69
98
|
...(0, hoverable_1.hoverableStyle)({
|
|
70
99
|
idleBackground: colors_1.TRANSPARENT,
|
|
@@ -78,7 +107,7 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName, editor
|
|
|
78
107
|
cursor: 'default',
|
|
79
108
|
fontSize,
|
|
80
109
|
padding: 0,
|
|
81
|
-
}, children:
|
|
110
|
+
}, children: fileLocation })) : (fileLocation) })) : null] }), headerAction, collapsible &&
|
|
82
111
|
s.originalScriptCode &&
|
|
83
112
|
s.originalScriptCode.length > 0 ? (jsx_runtime_1.jsx(Button_1.Button, { onClick: toggleCodeFrame, children: jsx_runtime_1.jsx("div", { style: {
|
|
84
113
|
display: 'flex',
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadModelForJob
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-09txs1bj.mjs";
|
|
4
4
|
import {
|
|
5
5
|
installRequiredPackages
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-vtr5qzam.mjs";
|
|
7
7
|
import {
|
|
8
8
|
RenderQueueContext
|
|
9
|
-
} from "./index-
|
|
10
|
-
import {
|
|
11
|
-
callApi
|
|
12
|
-
} from "./index-r1gr3j3a.mjs";
|
|
9
|
+
} from "./index-hqxc6tzp.mjs";
|
|
13
10
|
import {
|
|
11
|
+
callApi,
|
|
14
12
|
getBrowserStudioOperations,
|
|
15
13
|
writeStaticFile
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
14
|
+
} from "./index-dfy1t576.mjs";
|
|
15
|
+
import"./index-qve7mdfp.mjs";
|
|
18
16
|
import"./index-5zrb1ft4.mjs";
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-3qb54r5j.mjs";
|
|
20
18
|
import"./index-rcv7qkt5.mjs";
|
|
21
19
|
|
|
22
20
|
// src/components/RenderQueue/CaptionQueueProcessor.tsx
|
|
@@ -24,6 +22,7 @@ import {
|
|
|
24
22
|
canUseWhisperWebGpu,
|
|
25
23
|
clearStaleModels,
|
|
26
24
|
disposeWhisperModel,
|
|
25
|
+
downloadWhisperModel,
|
|
27
26
|
isWhisperModelCached,
|
|
28
27
|
loadWhisperModel,
|
|
29
28
|
toCaptions,
|
|
@@ -46,13 +45,24 @@ var resampleMediaTo16Khz = async ({
|
|
|
46
45
|
src,
|
|
47
46
|
audioStreamIndex,
|
|
48
47
|
requestInit,
|
|
49
|
-
onProgress
|
|
48
|
+
onProgress,
|
|
49
|
+
signal
|
|
50
50
|
}) => {
|
|
51
|
+
signal.throwIfAborted();
|
|
51
52
|
const input = new Input({
|
|
52
53
|
formats: ALL_FORMATS,
|
|
53
54
|
source: new UrlSource(src, requestInit === null ? {} : { requestInit })
|
|
54
55
|
});
|
|
55
56
|
const waveformChunks = [];
|
|
57
|
+
let conversion = null;
|
|
58
|
+
let cancellation = null;
|
|
59
|
+
const onAbort = () => {
|
|
60
|
+
cancellation = conversion?.cancel().catch(() => {
|
|
61
|
+
return;
|
|
62
|
+
}) ?? null;
|
|
63
|
+
input.dispose();
|
|
64
|
+
};
|
|
65
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
56
66
|
try {
|
|
57
67
|
onProgress(0);
|
|
58
68
|
const audioTracks = await input.getAudioTracks();
|
|
@@ -68,7 +78,8 @@ var resampleMediaTo16Khz = async ({
|
|
|
68
78
|
format: new WavOutputFormat,
|
|
69
79
|
target: new NullTarget
|
|
70
80
|
});
|
|
71
|
-
|
|
81
|
+
signal.throwIfAborted();
|
|
82
|
+
conversion = await Conversion.init({
|
|
72
83
|
input,
|
|
73
84
|
output,
|
|
74
85
|
tracks: "all",
|
|
@@ -82,6 +93,7 @@ var resampleMediaTo16Khz = async ({
|
|
|
82
93
|
forceTranscode: true,
|
|
83
94
|
numberOfChannels: 1,
|
|
84
95
|
process: (sample) => {
|
|
96
|
+
signal.throwIfAborted();
|
|
85
97
|
const floats = new Float32Array(sample.allocationSize({ format: "f32", planeIndex: 0 }) / Float32Array.BYTES_PER_ELEMENT);
|
|
86
98
|
sample.copyTo(floats, { format: "f32", planeIndex: 0 });
|
|
87
99
|
waveformChunks.push({
|
|
@@ -95,13 +107,22 @@ var resampleMediaTo16Khz = async ({
|
|
|
95
107
|
};
|
|
96
108
|
}
|
|
97
109
|
});
|
|
110
|
+
signal.throwIfAborted();
|
|
98
111
|
if (!conversion.isValid) {
|
|
99
112
|
throw new Error("The audio track cannot be decoded in this browser. Try converting the media to WAV first.");
|
|
100
113
|
}
|
|
101
114
|
conversion.onProgress = (progress) => onProgress(progress);
|
|
102
115
|
await conversion.execute();
|
|
116
|
+
signal.throwIfAborted();
|
|
103
117
|
onProgress(1);
|
|
104
118
|
} finally {
|
|
119
|
+
signal.removeEventListener("abort", onAbort);
|
|
120
|
+
await cancellation;
|
|
121
|
+
if (signal.aborted && conversion && cancellation === null) {
|
|
122
|
+
await conversion.cancel().catch(() => {
|
|
123
|
+
return;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
105
126
|
input.dispose();
|
|
106
127
|
}
|
|
107
128
|
const waveformLength = waveformChunks.reduce((maximum, chunk) => Math.max(maximum, chunk.startFrame + chunk.waveform.length), 0);
|
|
@@ -123,17 +144,23 @@ var CaptionQueueProcessor = () => {
|
|
|
123
144
|
updateCaptionJobProgress,
|
|
124
145
|
markCaptionJobDone,
|
|
125
146
|
markCaptionJobFailed,
|
|
147
|
+
markCaptionJobCancelled,
|
|
148
|
+
markCaptionJobSaving,
|
|
149
|
+
getAbortController,
|
|
126
150
|
setProcessCaptionJobCallback
|
|
127
151
|
} = useContext(RenderQueueContext);
|
|
128
152
|
const processJob = useCallback(async (job) => {
|
|
153
|
+
const { signal } = getAbortController(job.id);
|
|
129
154
|
let captionCount = null;
|
|
130
155
|
let processingError = null;
|
|
131
156
|
try {
|
|
157
|
+
signal.throwIfAborted();
|
|
132
158
|
updateCaptionJobProgress(job.id, {
|
|
133
159
|
message: "Checking WebGPU support...",
|
|
134
160
|
value: 0
|
|
135
161
|
});
|
|
136
162
|
const support = await canUseWhisperWebGpu();
|
|
163
|
+
signal.throwIfAborted();
|
|
137
164
|
if (!support.supported) {
|
|
138
165
|
throw new Error(support.detailedReason);
|
|
139
166
|
}
|
|
@@ -142,15 +169,21 @@ var CaptionQueueProcessor = () => {
|
|
|
142
169
|
value: 0.02
|
|
143
170
|
});
|
|
144
171
|
await clearStaleModels();
|
|
172
|
+
signal.throwIfAborted();
|
|
145
173
|
await loadModelForJob({
|
|
174
|
+
signal,
|
|
146
175
|
model: job.model,
|
|
147
176
|
progressStart: 0.03,
|
|
148
177
|
progressSpan: 0.27,
|
|
149
178
|
isModelCached: (model) => isWhisperModelCached({ model }),
|
|
150
|
-
loadModel: (model, onProgress) =>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
179
|
+
loadModel: async (model, onProgress) => {
|
|
180
|
+
await downloadWhisperModel({
|
|
181
|
+
signal,
|
|
182
|
+
model,
|
|
183
|
+
onProgress: (progress) => onProgress(progress.progress)
|
|
184
|
+
});
|
|
185
|
+
await loadWhisperModel({ model, signal });
|
|
186
|
+
},
|
|
154
187
|
updateProgress: (progress) => updateCaptionJobProgress(job.id, progress)
|
|
155
188
|
});
|
|
156
189
|
updateCaptionJobProgress(job.id, {
|
|
@@ -158,6 +191,7 @@ var CaptionQueueProcessor = () => {
|
|
|
158
191
|
value: 0.3
|
|
159
192
|
});
|
|
160
193
|
const channelWaveform = await resampleMediaTo16Khz({
|
|
194
|
+
signal,
|
|
161
195
|
src: job.src,
|
|
162
196
|
audioStreamIndex: job.audioStreamIndex,
|
|
163
197
|
requestInit: job.requestInit,
|
|
@@ -173,6 +207,7 @@ var CaptionQueueProcessor = () => {
|
|
|
173
207
|
value: 0.5
|
|
174
208
|
});
|
|
175
209
|
const transcription = await transcribe({
|
|
210
|
+
signal,
|
|
176
211
|
channelWaveform,
|
|
177
212
|
model: job.model,
|
|
178
213
|
task: job.task,
|
|
@@ -189,6 +224,8 @@ var CaptionQueueProcessor = () => {
|
|
|
189
224
|
const { captions } = toCaptions({
|
|
190
225
|
whisperWebGpuOutput: transcription
|
|
191
226
|
});
|
|
227
|
+
signal.throwIfAborted();
|
|
228
|
+
markCaptionJobSaving(job.id);
|
|
192
229
|
if (job.target === null) {
|
|
193
230
|
updateCaptionJobProgress(job.id, {
|
|
194
231
|
message: `Saving ${job.outName}...`,
|
|
@@ -225,12 +262,21 @@ var CaptionQueueProcessor = () => {
|
|
|
225
262
|
try {
|
|
226
263
|
await disposeWhisperModel({ model: job.model });
|
|
227
264
|
} catch {}
|
|
228
|
-
if (
|
|
265
|
+
if (signal.aborted) {
|
|
266
|
+
markCaptionJobCancelled(job.id);
|
|
267
|
+
} else if (processingError) {
|
|
229
268
|
markCaptionJobFailed(job.id, processingError);
|
|
230
269
|
} else {
|
|
231
270
|
markCaptionJobDone(job.id, captionCount ?? 0);
|
|
232
271
|
}
|
|
233
|
-
}, [
|
|
272
|
+
}, [
|
|
273
|
+
getAbortController,
|
|
274
|
+
markCaptionJobCancelled,
|
|
275
|
+
markCaptionJobDone,
|
|
276
|
+
markCaptionJobFailed,
|
|
277
|
+
markCaptionJobSaving,
|
|
278
|
+
updateCaptionJobProgress
|
|
279
|
+
]);
|
|
234
280
|
useEffect(() => {
|
|
235
281
|
setProcessCaptionJobCallback(processJob);
|
|
236
282
|
return () => setProcessCaptionJobCallback(null);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Models
|
|
3
|
+
} from "./index-f9hxt5yh.mjs";
|
|
4
|
+
import"./index-vnc2wdfd.mjs";
|
|
5
|
+
import"./index-m01zjph7.mjs";
|
|
6
|
+
import"./index-qve7mdfp.mjs";
|
|
7
|
+
import"./index-5zrb1ft4.mjs";
|
|
8
|
+
import"./index-3qb54r5j.mjs";
|
|
9
|
+
import"./index-rcv7qkt5.mjs";
|
|
10
|
+
export {
|
|
11
|
+
Models as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Models
|
|
3
|
+
} from "./index-jc22b2wb.mjs";
|
|
4
|
+
import"./index-vnc2wdfd.mjs";
|
|
5
|
+
import"./index-m01zjph7.mjs";
|
|
6
|
+
import"./index-qve7mdfp.mjs";
|
|
7
|
+
import"./index-5zrb1ft4.mjs";
|
|
8
|
+
import"./index-3qb54r5j.mjs";
|
|
9
|
+
import"./index-rcv7qkt5.mjs";
|
|
10
|
+
export {
|
|
11
|
+
Models as default
|
|
12
|
+
};
|
|
@@ -2,11 +2,10 @@ import {
|
|
|
2
2
|
useModelCacheStatus
|
|
3
3
|
} from "./index-7tt71e8n.mjs";
|
|
4
4
|
import {
|
|
5
|
-
GearIcon,
|
|
6
5
|
NumberSetting,
|
|
7
6
|
getDefaultCaptionOutputName,
|
|
8
7
|
validateCaptionOutputName
|
|
9
|
-
} from "./index-
|
|
8
|
+
} from "./index-r9bj4tta.mjs";
|
|
10
9
|
import {
|
|
11
10
|
Button,
|
|
12
11
|
Checkbox,
|
|
@@ -14,9 +13,9 @@ import {
|
|
|
14
13
|
Combobox,
|
|
15
14
|
DismissableModal,
|
|
16
15
|
ExpandedFolderIconSolid,
|
|
16
|
+
GearIcon,
|
|
17
17
|
InfoBubble,
|
|
18
18
|
ModalHeader,
|
|
19
|
-
ModelsIcon,
|
|
20
19
|
RemotionInput,
|
|
21
20
|
RenderModalHr,
|
|
22
21
|
SetSelectedModalContext,
|
|
@@ -31,26 +30,27 @@ import {
|
|
|
31
30
|
persistSelectedOptionsSidebarPanel,
|
|
32
31
|
rightRow,
|
|
33
32
|
useStaticFiles
|
|
34
|
-
} from "./index-
|
|
33
|
+
} from "./index-m2a95v3p.mjs";
|
|
35
34
|
import {
|
|
36
35
|
showNotification
|
|
37
|
-
} from "./index-
|
|
36
|
+
} from "./index-vtr5qzam.mjs";
|
|
38
37
|
import {
|
|
39
38
|
RenderQueueContext
|
|
40
|
-
} from "./index-
|
|
39
|
+
} from "./index-hqxc6tzp.mjs";
|
|
41
40
|
import {
|
|
42
41
|
openInFileExplorer
|
|
43
|
-
} from "./index-
|
|
44
|
-
import"./index-r1gr3j3a.mjs";
|
|
42
|
+
} from "./index-19d05w9e.mjs";
|
|
45
43
|
import {
|
|
46
44
|
getBrowserStudioOperations
|
|
47
|
-
} from "./index-
|
|
45
|
+
} from "./index-dfy1t576.mjs";
|
|
46
|
+
import"./index-24wge6y5.mjs";
|
|
48
47
|
import {
|
|
49
48
|
Models
|
|
50
|
-
} from "./index-
|
|
51
|
-
import"./index-
|
|
49
|
+
} from "./index-f9hxt5yh.mjs";
|
|
50
|
+
import"./index-vnc2wdfd.mjs";
|
|
52
51
|
import {
|
|
53
52
|
InlineAction,
|
|
53
|
+
ModelsIcon,
|
|
54
54
|
Spacing,
|
|
55
55
|
VERTICAL_SCROLLBAR_CLASSNAME,
|
|
56
56
|
ValidationMessage,
|
|
@@ -64,14 +64,14 @@ import {
|
|
|
64
64
|
leftSidebar,
|
|
65
65
|
optionsPanel,
|
|
66
66
|
outerModalStyle
|
|
67
|
-
} from "./index-
|
|
68
|
-
import"./index-
|
|
67
|
+
} from "./index-m01zjph7.mjs";
|
|
68
|
+
import"./index-qve7mdfp.mjs";
|
|
69
69
|
import"./index-5zrb1ft4.mjs";
|
|
70
70
|
import {
|
|
71
71
|
BLUE_DISABLED,
|
|
72
72
|
LIGHT_TEXT,
|
|
73
73
|
WHITE
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-3qb54r5j.mjs";
|
|
75
75
|
import"./index-rcv7qkt5.mjs";
|
|
76
76
|
|
|
77
77
|
// src/components/Transcription/TranscriptionModal.tsx
|
|
@@ -299,7 +299,7 @@ var TranscriptionSettingLabel = ({ children, inputId, name }) => {
|
|
|
299
299
|
x: 0.5
|
|
300
300
|
}),
|
|
301
301
|
/* @__PURE__ */ jsx(InfoBubble, {
|
|
302
|
-
|
|
302
|
+
"aria-label": `Learn more about ${name}`,
|
|
303
303
|
children: /* @__PURE__ */ jsx("div", {
|
|
304
304
|
style: tooltipContent,
|
|
305
305
|
children
|
|
@@ -424,7 +424,7 @@ var ModelSettings = ({
|
|
|
424
424
|
children: /* @__PURE__ */ jsx(Combobox, {
|
|
425
425
|
values: modelOptions,
|
|
426
426
|
selectedId: selectedModel,
|
|
427
|
-
|
|
427
|
+
"aria-label": "Whisper model",
|
|
428
428
|
style: controlStyle
|
|
429
429
|
})
|
|
430
430
|
})
|
|
@@ -442,7 +442,7 @@ var ModelSettings = ({
|
|
|
442
442
|
children: /* @__PURE__ */ jsx(Combobox, {
|
|
443
443
|
values: languageOptions,
|
|
444
444
|
selectedId: selectedLanguage,
|
|
445
|
-
|
|
445
|
+
"aria-label": "Spoken language",
|
|
446
446
|
style: controlStyle
|
|
447
447
|
})
|
|
448
448
|
})
|
|
@@ -460,7 +460,7 @@ var ModelSettings = ({
|
|
|
460
460
|
children: /* @__PURE__ */ jsx(Combobox, {
|
|
461
461
|
values: taskOptions,
|
|
462
462
|
selectedId: effectiveTask,
|
|
463
|
-
|
|
463
|
+
"aria-label": "Task",
|
|
464
464
|
style: controlStyle
|
|
465
465
|
})
|
|
466
466
|
})
|
|
@@ -560,7 +560,7 @@ var OutputSettings = ({ exists, onOutNameChange, outName, validationMessage }) =
|
|
|
560
560
|
isBrowserStudio ? null : /* @__PURE__ */ jsx(InlineAction, {
|
|
561
561
|
onClick: openExistingOutput,
|
|
562
562
|
renderAction: renderOpenIcon,
|
|
563
|
-
|
|
563
|
+
"aria-label": `Open in ${fileManagerName}`,
|
|
564
564
|
variant: null
|
|
565
565
|
}),
|
|
566
566
|
"Exists, will be overwritten"
|
|
@@ -816,7 +816,7 @@ var TranscriptionModal = ({
|
|
|
816
816
|
};
|
|
817
817
|
}, []);
|
|
818
818
|
const normalizedOutName = outName.normalize("NFC").toLowerCase();
|
|
819
|
-
const queuedOutputExists = captionJobs.some((job) => job.target === null && (job.status === "idle" || job.status === "running") && job.outName.normalize("NFC").toLowerCase() === normalizedOutName);
|
|
819
|
+
const queuedOutputExists = captionJobs.some((job) => job.target === null && (job.status === "idle" || job.status === "running" || job.status === "saving") && job.outName.normalize("NFC").toLowerCase() === normalizedOutName);
|
|
820
820
|
const outputValidationMessage = target === null ? validateCaptionOutputName(outName) ?? (queuedOutputExists ? "Another caption job is already using this output file" : null) : null;
|
|
821
821
|
const exists = staticFiles.some((file) => file.name.normalize("NFC").toLowerCase() === normalizedOutName);
|
|
822
822
|
const chunkValidationMessage = strideLengthInSeconds * 2 >= chunkLengthInSeconds ? "Stride length must be less than half of chunk length" : null;
|
|
@@ -898,7 +898,7 @@ var TranscriptionModal = ({
|
|
|
898
898
|
/* @__PURE__ */ jsx(Button, {
|
|
899
899
|
onClick: onAddToQueue,
|
|
900
900
|
disabled: !canTranscribe,
|
|
901
|
-
|
|
901
|
+
"aria-label": transcribeDisabledReason,
|
|
902
902
|
style: {
|
|
903
903
|
...buttonStyle,
|
|
904
904
|
backgroundColor: canTranscribe ? buttonStyle.backgroundColor : BLUE_DISABLED
|