@tomorrowevening/theatre-studio 1.0.4 → 1.0.5
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/IDBStorage.d.ts +16 -0
- package/dist/IDBStorage.d.ts.map +1 -0
- package/dist/IDBStorage.js +19 -0
- package/dist/PaneManager.d.ts +16 -0
- package/dist/PaneManager.d.ts.map +1 -0
- package/dist/PaneManager.js +112 -0
- package/dist/Scrub.d.ts +83 -0
- package/dist/Scrub.d.ts.map +1 -0
- package/dist/Scrub.js +134 -0
- package/dist/Studio.d.ts +79 -0
- package/dist/Studio.d.ts.map +1 -0
- package/dist/Studio.js +405 -0
- package/dist/StudioBundle.d.ts +10 -0
- package/dist/StudioBundle.d.ts.map +1 -0
- package/dist/StudioBundle.js +21 -0
- package/dist/StudioStore/StudioStore.d.ts +46 -0
- package/dist/StudioStore/StudioStore.d.ts.map +1 -0
- package/dist/StudioStore/StudioStore.js +163 -0
- package/dist/StudioStore/createTransactionPrivateApi.d.ts +3 -0
- package/dist/StudioStore/createTransactionPrivateApi.d.ts.map +1 -0
- package/dist/StudioStore/createTransactionPrivateApi.js +204 -0
- package/dist/StudioStore/generateDiskStateRevision.d.ts +2 -0
- package/dist/StudioStore/generateDiskStateRevision.d.ts.map +1 -0
- package/dist/StudioStore/generateDiskStateRevision.js +4 -0
- package/dist/StudioStore/persistStateOfStudio.d.ts +5 -0
- package/dist/StudioStore/persistStateOfStudio.d.ts.map +1 -0
- package/dist/StudioStore/persistStateOfStudio.js +61 -0
- package/dist/TheatreStudio.d.ts +426 -0
- package/dist/TheatreStudio.d.ts.map +1 -0
- package/dist/TheatreStudio.js +154 -0
- package/dist/UI/UI.d.ts +14 -0
- package/dist/UI/UI.d.ts.map +1 -0
- package/dist/UI/UI.js +65 -0
- package/dist/UI/UINonSSRBits.d.ts +10 -0
- package/dist/UI/UINonSSRBits.d.ts.map +1 -0
- package/dist/UI/UINonSSRBits.js +60 -0
- package/dist/UIRoot/PanelsRoot.d.ts +4 -0
- package/dist/UIRoot/PanelsRoot.d.ts.map +1 -0
- package/dist/UIRoot/PanelsRoot.js +19 -0
- package/dist/UIRoot/PointerCapturing.d.ts +46 -0
- package/dist/UIRoot/PointerCapturing.d.ts.map +1 -0
- package/dist/UIRoot/PointerCapturing.js +96 -0
- package/dist/UIRoot/ProvideTheme.d.ts +6 -0
- package/dist/UIRoot/ProvideTheme.d.ts.map +1 -0
- package/dist/UIRoot/ProvideTheme.js +9 -0
- package/dist/UIRoot/UIRoot.d.ts +5 -0
- package/dist/UIRoot/UIRoot.d.ts.map +1 -0
- package/dist/UIRoot/UIRoot.js +79 -0
- package/dist/UIRoot/useKeyboardShortcuts.d.ts +7 -0
- package/dist/UIRoot/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/UIRoot/useKeyboardShortcuts.js +158 -0
- package/dist/checkForUpdates.d.ts +2 -0
- package/dist/checkForUpdates.d.ts.map +1 -0
- package/dist/checkForUpdates.js +86 -0
- package/dist/css.d.ts +39 -0
- package/dist/css.d.ts.map +1 -0
- package/dist/css.js +116 -0
- package/dist/getStudio.d.ts +7 -0
- package/dist/getStudio.d.ts.map +1 -0
- package/dist/getStudio.js +10 -0
- package/dist/index.d.ts +6 -9
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +56 -105
- package/dist/notify.d.ts +12 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +328 -0
- package/dist/panels/BasePanel/BasePanel.d.ts +35 -0
- package/dist/panels/BasePanel/BasePanel.d.ts.map +1 -0
- package/dist/panels/BasePanel/BasePanel.js +74 -0
- package/dist/panels/BasePanel/ExtensionPaneWrapper.d.ts +8 -0
- package/dist/panels/BasePanel/ExtensionPaneWrapper.d.ts.map +1 -0
- package/dist/panels/BasePanel/ExtensionPaneWrapper.js +138 -0
- package/dist/panels/BasePanel/PanelDragZone.d.ts +4 -0
- package/dist/panels/BasePanel/PanelDragZone.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelDragZone.js +88 -0
- package/dist/panels/BasePanel/PanelResizeHandle.d.ts +7 -0
- package/dist/panels/BasePanel/PanelResizeHandle.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelResizeHandle.js +184 -0
- package/dist/panels/BasePanel/PanelResizers.d.ts +4 -0
- package/dist/panels/BasePanel/PanelResizers.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelResizers.js +14 -0
- package/dist/panels/BasePanel/PanelWrapper.d.ts +4 -0
- package/dist/panels/BasePanel/PanelWrapper.d.ts.map +1 -0
- package/dist/panels/BasePanel/PanelWrapper.js +34 -0
- package/dist/panels/BasePanel/common.d.ts +15 -0
- package/dist/panels/BasePanel/common.d.ts.map +1 -0
- package/dist/panels/BasePanel/common.js +52 -0
- package/dist/panels/DetailPanel/DetailPanel.d.ts +6 -0
- package/dist/panels/DetailPanel/DetailPanel.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DetailPanel.js +146 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.d.ts +14 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.js +169 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailSimplePropEditor.d.ts +20 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailSimplePropEditor.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/DetailSimplePropEditor.js +22 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/SingleRowPropEditor.d.ts +14 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/SingleRowPropEditor.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/SingleRowPropEditor.js +89 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/getDetailRowHighlightBackground.d.ts +5 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/getDetailRowHighlightBackground.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/getDetailRowHighlightBackground.js +7 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/rowIndentationFormulaCSS.d.ts +2 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/rowIndentationFormulaCSS.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail/rowIndentationFormulaCSS.js +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail.d.ts +26 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail.d.ts.map +1 -0
- package/dist/panels/DetailPanel/DeterminePropEditorForDetail.js +28 -0
- package/dist/panels/DetailPanel/EmptyState.d.ts +4 -0
- package/dist/panels/DetailPanel/EmptyState.d.ts.map +1 -0
- package/dist/panels/DetailPanel/EmptyState.js +36 -0
- package/dist/panels/DetailPanel/ObjectDetails.d.ts +8 -0
- package/dist/panels/DetailPanel/ObjectDetails.d.ts.map +1 -0
- package/dist/panels/DetailPanel/ObjectDetails.js +52 -0
- package/dist/panels/DetailPanel/ProjectDetails/StateConflictRow.d.ts +7 -0
- package/dist/panels/DetailPanel/ProjectDetails/StateConflictRow.d.ts.map +1 -0
- package/dist/panels/DetailPanel/ProjectDetails/StateConflictRow.js +86 -0
- package/dist/panels/DetailPanel/ProjectDetails.d.ts +7 -0
- package/dist/panels/DetailPanel/ProjectDetails.d.ts.map +1 -0
- package/dist/panels/DetailPanel/ProjectDetails.js +98 -0
- package/dist/panels/OutlinePanel/BaseItem.d.ts +18 -0
- package/dist/panels/OutlinePanel/BaseItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/BaseItem.js +136 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectItem.d.ts +8 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectItem.js +14 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectsList.d.ts +11 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectsList.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ObjectsList/ObjectsList.js +85 -0
- package/dist/panels/OutlinePanel/OutlinePanel.d.ts +5 -0
- package/dist/panels/OutlinePanel/OutlinePanel.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/OutlinePanel.js +73 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectListItem.d.ts +8 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectListItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectListItem.js +38 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectsList.d.ts +4 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectsList.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/ProjectsList/ProjectsList.js +22 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetInstanceItem.d.ts +7 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetInstanceItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetInstanceItem.js +36 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetItem.d.ts +8 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetItem.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetItem.js +23 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetsList.d.ts +8 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetsList.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/SheetsList/SheetsList.js +15 -0
- package/dist/panels/OutlinePanel/outlinePanelUtils.d.ts +11 -0
- package/dist/panels/OutlinePanel/outlinePanelUtils.d.ts.map +1 -0
- package/dist/panels/OutlinePanel/outlinePanelUtils.js +23 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/DopeSheet.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/DopeSheet.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/DopeSheet.js +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.js +74 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/Left.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/Left.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/Left.js +25 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.js +97 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PropWithChildrenRow.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PropWithChildrenRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/PropWithChildrenRow.js +15 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetObjectRow.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetObjectRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetObjectRow.js +19 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetRow.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/SheetRow.js +20 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.d.ts +4 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Left/usePropHighlightMouseEnter.js +33 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeConnector.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeConnector.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeConnector.js +187 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeDot.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeDot.js +158 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeEditor.d.ts +44 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeEditor.js +32 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.js +61 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/iif.d.ts +2 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/iif.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/iif.js +3 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/useAggregateKeyframeEditorUtils.d.ts +23 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/useAggregateKeyframeEditorUtils.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/useAggregateKeyframeEditorUtils.js +73 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregatedKeyframeTrack.d.ts +19 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregatedKeyframeTrack.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregatedKeyframeTrack.js +407 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/BasicKeyframedTrack.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/BasicKeyframedTrack.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/BasicKeyframedTrack.js +108 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/BasicKeyframeConnector.d.ts +6 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/BasicKeyframeConnector.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/BasicKeyframeConnector.js +185 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.js +397 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveSegmentEditor.d.ts +12 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveSegmentEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveSegmentEditor.js +136 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.d.ts +15 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/EasingOption.js +52 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.d.ts +9 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/SVGCurveSegment.js +43 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.d.ts +4 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/colors.js +3 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.d.ts +43 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/shared.js +84 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useFreezableMemo.js +16 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.d.ts +32 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/useUIOptionGrid.js +82 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.d.ts +17 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/DeterminePropEditorForSingleKeyframe.js +93 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.js +254 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeEditor.d.ts +19 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeEditor.js +22 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useSingleKeyframeInlineEditorPopover.d.ts +29 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useSingleKeyframeInlineEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useSingleKeyframeInlineEditorPopover.js +11 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useTempTransactionEditingTools.d.ts +18 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useTempTransactionEditingTools.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/useTempTransactionEditingTools.js +43 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetBackground.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetBackground.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetBackground.js +24 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.js +272 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/FocusRangeCurtains.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/FocusRangeCurtains.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/FocusRangeCurtains.js +88 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/HorizontallyScrollableArea.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/HorizontallyScrollableArea.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/HorizontallyScrollableArea.js +215 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget.d.ts +36 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget.js +55 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.d.ts +12 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.js +69 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthIndicator.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthIndicator.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthIndicator.js +217 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PrimitivePropRow.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PrimitivePropRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PrimitivePropRow.js +25 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PropWithChildrenRow.d.ts +11 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PropWithChildrenRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/PropWithChildrenRow.js +18 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Right.d.ts +9 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Right.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Right.js +30 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Row.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Row.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/Row.js +50 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetObjectRow.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetObjectRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetObjectRow.js +14 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetRow.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetRow.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/SheetRow.js +14 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/collectAggregateKeyframes.d.ts +58 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/collectAggregateKeyframes.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/collectAggregateKeyframes.js +92 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/keyframeRowUI/ConnectorLine.d.ts +20 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/keyframeRowUI/ConnectorLine.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/Right/keyframeRowUI/ConnectorLine.js +62 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/selections.d.ts +82 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/selections.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/selections.js +149 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/setCollapsedSheetObjectOrCompoundProp.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/setCollapsedSheetObjectOrCompoundProp.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/DopeSheet/setCollapsedSheetObjectOrCompoundProp.js +10 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/FrameGrid.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/FrameGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/FrameGrid.js +92 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/StampsGrid.d.ts +15 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/StampsGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/StampsGrid.js +99 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/createGrid.d.ts +23 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/createGrid.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameGrid/createGrid.js +49 -0
- package/dist/panels/SequenceEditorPanel/FrameStampPositionProvider.d.ts +52 -0
- package/dist/panels/SequenceEditorPanel/FrameStampPositionProvider.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/FrameStampPositionProvider.js +189 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.d.ts +25 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/BasicKeyframedTrack.js +91 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.d.ts +14 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Curve.js +87 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/CurveHandle.js +186 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotNonScalar.d.ts +9 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotNonScalar.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotNonScalar.js +162 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotScalar.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotScalar.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorDotScalar.js +209 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorNonScalarDash.d.ts +7 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorNonScalarDash.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/GraphEditorNonScalarDash.js +23 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/KeyframeEditor.d.ts +27 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/KeyframeEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/KeyframeEditor.js +30 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/GraphEditor.d.ts +28 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/GraphEditor.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/GraphEditor.js +73 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/PrimitivePropGraph.d.ts +16 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/PrimitivePropGraph.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditor/PrimitivePropGraph.js +20 -0
- package/dist/panels/SequenceEditorPanel/GraphEditorToggle.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/GraphEditorToggle.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/GraphEditorToggle.js +59 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnap.d.ts +21 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnap.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnap.js +36 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnapHitZoneUI.d.ts +18 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnapHitZoneUI.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/DopeSnapHitZoneUI.js +57 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeStrip.d.ts +32 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeStrip.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeStrip.js +233 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeThumb.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeThumb.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeThumb.js +217 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeZone.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeZone.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FocusRangeZone/FocusRangeZone.js +181 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FrameStamp.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FrameStamp.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/FrameStamp.js +65 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/HorizontalScrollbar.d.ts +11 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/HorizontalScrollbar.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/HorizontalScrollbar.js +235 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerDot.d.ts +11 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerDot.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerDot.js +184 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerEditorPopover.d.ts +14 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerEditorPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/MarkerEditorPopover.js +65 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/Markers.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/Markers.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Markers/Markers.js +13 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Playhead.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Playhead.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/Playhead.js +265 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.d.ts +12 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/PlayheadPositionPopover.js +64 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/RightOverlay.d.ts +8 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/RightOverlay.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/RightOverlay.js +35 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/TopStrip.d.ts +13 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/TopStrip.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/RightOverlay/TopStrip.js +31 -0
- package/dist/panels/SequenceEditorPanel/SequenceEditorPanel.d.ts +15 -0
- package/dist/panels/SequenceEditorPanel/SequenceEditorPanel.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/SequenceEditorPanel.js +179 -0
- package/dist/panels/SequenceEditorPanel/VerticalScrollContainer.d.ts +19 -0
- package/dist/panels/SequenceEditorPanel/VerticalScrollContainer.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/VerticalScrollContainer.js +42 -0
- package/dist/panels/SequenceEditorPanel/layout/layout.d.ts +146 -0
- package/dist/panels/SequenceEditorPanel/layout/layout.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/layout/layout.js +166 -0
- package/dist/panels/SequenceEditorPanel/layout/tree.d.ts +71 -0
- package/dist/panels/SequenceEditorPanel/layout/tree.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/layout/tree.js +139 -0
- package/dist/panels/SequenceEditorPanel/whatPropIsHighlighted.d.ts +10 -0
- package/dist/panels/SequenceEditorPanel/whatPropIsHighlighted.d.ts.map +1 -0
- package/dist/panels/SequenceEditorPanel/whatPropIsHighlighted.js +58 -0
- package/dist/propEditors/DefaultValueIndicator.d.ts +12 -0
- package/dist/propEditors/DefaultValueIndicator.d.ts.map +1 -0
- package/dist/propEditors/DefaultValueIndicator.js +64 -0
- package/dist/propEditors/NextPrevKeyframeCursors.d.ts +29 -0
- package/dist/propEditors/NextPrevKeyframeCursors.d.ts.map +1 -0
- package/dist/propEditors/NextPrevKeyframeCursors.js +135 -0
- package/dist/propEditors/getNearbyKeyframesOfTrack.d.ts +9 -0
- package/dist/propEditors/getNearbyKeyframesOfTrack.d.ts.map +1 -0
- package/dist/propEditors/getNearbyKeyframesOfTrack.js +46 -0
- package/dist/propEditors/simpleEditors/BooleanPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/BooleanPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/BooleanPropEditor.js +17 -0
- package/dist/propEditors/simpleEditors/FilePropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/FilePropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/FilePropEditor.js +118 -0
- package/dist/propEditors/simpleEditors/ISimplePropEditorReactProps.d.ts +10 -0
- package/dist/propEditors/simpleEditors/ISimplePropEditorReactProps.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/ISimplePropEditorReactProps.js +1 -0
- package/dist/propEditors/simpleEditors/ImagePropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/ImagePropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/ImagePropEditor.js +126 -0
- package/dist/propEditors/simpleEditors/NumberPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/NumberPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/NumberPropEditor.js +9 -0
- package/dist/propEditors/simpleEditors/RgbaPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/RgbaPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/RgbaPropEditor.js +73 -0
- package/dist/propEditors/simpleEditors/StringLiteralPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/StringLiteralPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/StringLiteralPropEditor.js +10 -0
- package/dist/propEditors/simpleEditors/StringPropEditor.d.ts +6 -0
- package/dist/propEditors/simpleEditors/StringPropEditor.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/StringPropEditor.js +6 -0
- package/dist/propEditors/simpleEditors/simplePropEditorByPropType.d.ts +10 -0
- package/dist/propEditors/simpleEditors/simplePropEditorByPropType.d.ts.map +1 -0
- package/dist/propEditors/simpleEditors/simplePropEditorByPropType.js +16 -0
- package/dist/propEditors/useEditingToolsForCompoundProp.d.ts +27 -0
- package/dist/propEditors/useEditingToolsForCompoundProp.d.ts.map +1 -0
- package/dist/propEditors/useEditingToolsForCompoundProp.js +228 -0
- package/dist/propEditors/useEditingToolsForSimpleProp.d.ts +47 -0
- package/dist/propEditors/useEditingToolsForSimpleProp.d.ts.map +1 -0
- package/dist/propEditors/useEditingToolsForSimpleProp.js +229 -0
- package/dist/propEditors/utils/IEditingTools.d.ts +9 -0
- package/dist/propEditors/utils/IEditingTools.d.ts.map +1 -0
- package/dist/propEditors/utils/IEditingTools.js +1 -0
- package/dist/propEditors/utils/PropConfigForType.d.ts +5 -0
- package/dist/propEditors/utils/PropConfigForType.d.ts.map +1 -0
- package/dist/propEditors/utils/PropConfigForType.js +1 -0
- package/dist/propEditors/utils/getPropTypeByPointer.d.ts +19 -0
- package/dist/propEditors/utils/getPropTypeByPointer.d.ts.map +1 -0
- package/dist/propEditors/utils/getPropTypeByPointer.js +48 -0
- package/dist/propEditors/utils/propNameTextCSS.d.ts +5 -0
- package/dist/propEditors/utils/propNameTextCSS.d.ts.map +1 -0
- package/dist/propEditors/utils/propNameTextCSS.js +7 -0
- package/dist/selectors.d.ts +13 -0
- package/dist/selectors.d.ts.map +1 -0
- package/dist/selectors.js +63 -0
- package/dist/store/index.d.ts +210 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +184 -0
- package/dist/store/stateEditors.d.ts +300 -0
- package/dist/store/stateEditors.d.ts.map +1 -0
- package/dist/store/stateEditors.js +774 -0
- package/dist/store/types/ahistoric.d.ts +79 -0
- package/dist/store/types/ahistoric.d.ts.map +1 -0
- package/dist/store/types/ahistoric.js +1 -0
- package/dist/store/types/ephemeral.d.ts +53 -0
- package/dist/store/types/ephemeral.d.ts.map +1 -0
- package/dist/store/types/ephemeral.js +1 -0
- package/dist/store/types/historic.d.ts +104 -0
- package/dist/store/types/historic.d.ts.map +1 -0
- package/dist/store/types/historic.js +1 -0
- package/dist/store/types/index.d.ts +25 -0
- package/dist/store/types/index.d.ts.map +1 -0
- package/dist/store/types/index.js +3 -0
- package/dist/toolbars/ExtensionToolbar/ExtensionToolbar.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/ExtensionToolbar.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/ExtensionToolbar.js +51 -0
- package/dist/toolbars/ExtensionToolbar/Toolset.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/Toolset.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/Toolset.js +27 -0
- package/dist/toolbars/ExtensionToolbar/tools/ExtensionFlyoutMenu.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/tools/ExtensionFlyoutMenu.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/tools/ExtensionFlyoutMenu.js +51 -0
- package/dist/toolbars/ExtensionToolbar/tools/IconButton.d.ts +8 -0
- package/dist/toolbars/ExtensionToolbar/tools/IconButton.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/tools/IconButton.js +16 -0
- package/dist/toolbars/ExtensionToolbar/tools/Switch.d.ts +7 -0
- package/dist/toolbars/ExtensionToolbar/tools/Switch.d.ts.map +1 -0
- package/dist/toolbars/ExtensionToolbar/tools/Switch.js +20 -0
- package/dist/toolbars/GlobalToolbar.d.ts +4 -0
- package/dist/toolbars/GlobalToolbar.d.ts.map +1 -0
- package/dist/toolbars/GlobalToolbar.js +142 -0
- package/dist/toolbars/MoreMenu/MoreMenu.d.ts +4 -0
- package/dist/toolbars/MoreMenu/MoreMenu.d.ts.map +1 -0
- package/dist/toolbars/MoreMenu/MoreMenu.js +133 -0
- package/dist/toolbars/PinButton.d.ts +12 -0
- package/dist/toolbars/PinButton.d.ts.map +1 -0
- package/dist/toolbars/PinButton.js +26 -0
- package/dist/uiComponents/DetailPanelButton.d.ts +5 -0
- package/dist/uiComponents/DetailPanelButton.d.ts.map +1 -0
- package/dist/uiComponents/DetailPanelButton.js +21 -0
- package/dist/uiComponents/PointerEventsHandler.d.ts +31 -0
- package/dist/uiComponents/PointerEventsHandler.d.ts.map +1 -0
- package/dist/uiComponents/PointerEventsHandler.js +80 -0
- package/dist/uiComponents/Popover/ArrowContext.d.ts +4 -0
- package/dist/uiComponents/Popover/ArrowContext.d.ts.map +1 -0
- package/dist/uiComponents/Popover/ArrowContext.js +3 -0
- package/dist/uiComponents/Popover/BasicPopover.d.ts +9 -0
- package/dist/uiComponents/Popover/BasicPopover.d.ts.map +1 -0
- package/dist/uiComponents/Popover/BasicPopover.js +35 -0
- package/dist/uiComponents/Popover/BasicTooltip.d.ts +8 -0
- package/dist/uiComponents/Popover/BasicTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/BasicTooltip.js +10 -0
- package/dist/uiComponents/Popover/ErrorTooltip.d.ts +8 -0
- package/dist/uiComponents/Popover/ErrorTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/ErrorTooltip.js +9 -0
- package/dist/uiComponents/Popover/MinimalTooltip.d.ts +8 -0
- package/dist/uiComponents/Popover/MinimalTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/MinimalTooltip.js +6 -0
- package/dist/uiComponents/Popover/PopoverArrow.d.ts +8 -0
- package/dist/uiComponents/Popover/PopoverArrow.d.ts.map +1 -0
- package/dist/uiComponents/Popover/PopoverArrow.js +38 -0
- package/dist/uiComponents/Popover/TooltipContext.d.ts +7 -0
- package/dist/uiComponents/Popover/TooltipContext.d.ts.map +1 -0
- package/dist/uiComponents/Popover/TooltipContext.js +46 -0
- package/dist/uiComponents/Popover/TooltipWrapper.d.ts +21 -0
- package/dist/uiComponents/Popover/TooltipWrapper.d.ts.map +1 -0
- package/dist/uiComponents/Popover/TooltipWrapper.js +103 -0
- package/dist/uiComponents/Popover/usePopover.d.ts +29 -0
- package/dist/uiComponents/Popover/usePopover.d.ts.map +1 -0
- package/dist/uiComponents/Popover/usePopover.js +132 -0
- package/dist/uiComponents/Popover/useTooltip.d.ts +14 -0
- package/dist/uiComponents/Popover/useTooltip.d.ts.map +1 -0
- package/dist/uiComponents/Popover/useTooltip.js +33 -0
- package/dist/uiComponents/RoomToClick.d.ts +6 -0
- package/dist/uiComponents/RoomToClick.d.ts.map +1 -0
- package/dist/uiComponents/RoomToClick.js +10 -0
- package/dist/uiComponents/SVGIcon.d.ts +8 -0
- package/dist/uiComponents/SVGIcon.d.ts.map +1 -0
- package/dist/uiComponents/SVGIcon.js +19 -0
- package/dist/uiComponents/ShowMousePosition.d.ts +4 -0
- package/dist/uiComponents/ShowMousePosition.d.ts.map +1 -0
- package/dist/uiComponents/ShowMousePosition.js +30 -0
- package/dist/uiComponents/colorPicker/components/EditingProvider.d.ts +15 -0
- package/dist/uiComponents/colorPicker/components/EditingProvider.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/EditingProvider.js +15 -0
- package/dist/uiComponents/colorPicker/components/RgbaColorPicker.d.ts +3 -0
- package/dist/uiComponents/colorPicker/components/RgbaColorPicker.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/RgbaColorPicker.js +31 -0
- package/dist/uiComponents/colorPicker/components/common/Alpha.d.ts +11 -0
- package/dist/uiComponents/colorPicker/components/common/Alpha.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Alpha.js +54 -0
- package/dist/uiComponents/colorPicker/components/common/AlphaColorPicker.d.ts +7 -0
- package/dist/uiComponents/colorPicker/components/common/AlphaColorPicker.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/AlphaColorPicker.js +28 -0
- package/dist/uiComponents/colorPicker/components/common/Hue.d.ts +11 -0
- package/dist/uiComponents/colorPicker/components/common/Hue.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Hue.js +41 -0
- package/dist/uiComponents/colorPicker/components/common/Interactive.d.ts +13 -0
- package/dist/uiComponents/colorPicker/components/common/Interactive.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Interactive.js +142 -0
- package/dist/uiComponents/colorPicker/components/common/Pointer.d.ts +10 -0
- package/dist/uiComponents/colorPicker/components/common/Pointer.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Pointer.js +39 -0
- package/dist/uiComponents/colorPicker/components/common/Saturation.d.ts +12 -0
- package/dist/uiComponents/colorPicker/components/common/Saturation.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/components/common/Saturation.js +44 -0
- package/dist/uiComponents/colorPicker/hooks/useColorManipulation.d.ts +3 -0
- package/dist/uiComponents/colorPicker/hooks/useColorManipulation.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/hooks/useColorManipulation.js +77 -0
- package/dist/uiComponents/colorPicker/hooks/useEventCallback.d.ts +2 -0
- package/dist/uiComponents/colorPicker/hooks/useEventCallback.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/hooks/useEventCallback.js +10 -0
- package/dist/uiComponents/colorPicker/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/uiComponents/colorPicker/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/uiComponents/colorPicker/index.d.ts +3 -0
- package/dist/uiComponents/colorPicker/index.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/index.js +1 -0
- package/dist/uiComponents/colorPicker/types.d.ts +47 -0
- package/dist/uiComponents/colorPicker/types.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/types.js +1 -0
- package/dist/uiComponents/colorPicker/utils/clamp.d.ts +2 -0
- package/dist/uiComponents/colorPicker/utils/clamp.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/clamp.js +6 -0
- package/dist/uiComponents/colorPicker/utils/compare.d.ts +5 -0
- package/dist/uiComponents/colorPicker/utils/compare.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/compare.js +25 -0
- package/dist/uiComponents/colorPicker/utils/convert.d.ts +27 -0
- package/dist/uiComponents/colorPicker/utils/convert.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/convert.js +165 -0
- package/dist/uiComponents/colorPicker/utils/round.d.ts +2 -0
- package/dist/uiComponents/colorPicker/utils/round.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/round.js +3 -0
- package/dist/uiComponents/colorPicker/utils/validate.d.ts +2 -0
- package/dist/uiComponents/colorPicker/utils/validate.d.ts.map +1 -0
- package/dist/uiComponents/colorPicker/utils/validate.js +10 -0
- package/dist/uiComponents/createCursorLock.d.ts +2 -0
- package/dist/uiComponents/createCursorLock.d.ts.map +1 -0
- package/dist/uiComponents/createCursorLock.js +2 -0
- package/dist/uiComponents/form/BasicCheckbox.d.ts +5 -0
- package/dist/uiComponents/form/BasicCheckbox.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicCheckbox.js +5 -0
- package/dist/uiComponents/form/BasicNumberInput.d.ts +26 -0
- package/dist/uiComponents/form/BasicNumberInput.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicNumberInput.js +261 -0
- package/dist/uiComponents/form/BasicSelect.d.ts +10 -0
- package/dist/uiComponents/form/BasicSelect.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicSelect.js +58 -0
- package/dist/uiComponents/form/BasicStringInput.d.ts +19 -0
- package/dist/uiComponents/form/BasicStringInput.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicStringInput.js +151 -0
- package/dist/uiComponents/form/BasicSwitch.d.ts +9 -0
- package/dist/uiComponents/form/BasicSwitch.d.ts.map +1 -0
- package/dist/uiComponents/form/BasicSwitch.js +60 -0
- package/dist/uiComponents/icons/AddImage.d.ts +4 -0
- package/dist/uiComponents/icons/AddImage.d.ts.map +1 -0
- package/dist/uiComponents/icons/AddImage.js +6 -0
- package/dist/uiComponents/icons/ArrowClockwise.d.ts +4 -0
- package/dist/uiComponents/icons/ArrowClockwise.d.ts.map +1 -0
- package/dist/uiComponents/icons/ArrowClockwise.js +6 -0
- package/dist/uiComponents/icons/ArrowsOutCardinal.d.ts +4 -0
- package/dist/uiComponents/icons/ArrowsOutCardinal.d.ts.map +1 -0
- package/dist/uiComponents/icons/ArrowsOutCardinal.js +6 -0
- package/dist/uiComponents/icons/Bell.d.ts +4 -0
- package/dist/uiComponents/icons/Bell.d.ts.map +1 -0
- package/dist/uiComponents/icons/Bell.js +6 -0
- package/dist/uiComponents/icons/Camera.d.ts +4 -0
- package/dist/uiComponents/icons/Camera.d.ts.map +1 -0
- package/dist/uiComponents/icons/Camera.js +7 -0
- package/dist/uiComponents/icons/ChevronDown.d.ts +4 -0
- package/dist/uiComponents/icons/ChevronDown.d.ts.map +1 -0
- package/dist/uiComponents/icons/ChevronDown.js +6 -0
- package/dist/uiComponents/icons/ChevronLeft.d.ts +4 -0
- package/dist/uiComponents/icons/ChevronLeft.d.ts.map +1 -0
- package/dist/uiComponents/icons/ChevronLeft.js +6 -0
- package/dist/uiComponents/icons/ChevronRight.d.ts +4 -0
- package/dist/uiComponents/icons/ChevronRight.d.ts.map +1 -0
- package/dist/uiComponents/icons/ChevronRight.js +6 -0
- package/dist/uiComponents/icons/Cube.d.ts +4 -0
- package/dist/uiComponents/icons/Cube.d.ts.map +1 -0
- package/dist/uiComponents/icons/Cube.js +6 -0
- package/dist/uiComponents/icons/CubeFull.d.ts +4 -0
- package/dist/uiComponents/icons/CubeFull.d.ts.map +1 -0
- package/dist/uiComponents/icons/CubeFull.js +6 -0
- package/dist/uiComponents/icons/CubeHalf.d.ts +4 -0
- package/dist/uiComponents/icons/CubeHalf.d.ts.map +1 -0
- package/dist/uiComponents/icons/CubeHalf.js +6 -0
- package/dist/uiComponents/icons/CubeRendered.d.ts +4 -0
- package/dist/uiComponents/icons/CubeRendered.d.ts.map +1 -0
- package/dist/uiComponents/icons/CubeRendered.js +7 -0
- package/dist/uiComponents/icons/Details.d.ts +4 -0
- package/dist/uiComponents/icons/Details.d.ts.map +1 -0
- package/dist/uiComponents/icons/Details.js +6 -0
- package/dist/uiComponents/icons/DoubleChevronLeft.d.ts +4 -0
- package/dist/uiComponents/icons/DoubleChevronLeft.d.ts.map +1 -0
- package/dist/uiComponents/icons/DoubleChevronLeft.js +6 -0
- package/dist/uiComponents/icons/DoubleChevronRight.d.ts +4 -0
- package/dist/uiComponents/icons/DoubleChevronRight.d.ts.map +1 -0
- package/dist/uiComponents/icons/DoubleChevronRight.js +6 -0
- package/dist/uiComponents/icons/Ellipsis.d.ts +4 -0
- package/dist/uiComponents/icons/Ellipsis.d.ts.map +1 -0
- package/dist/uiComponents/icons/Ellipsis.js +6 -0
- package/dist/uiComponents/icons/EllipsisFill.d.ts +4 -0
- package/dist/uiComponents/icons/EllipsisFill.d.ts.map +1 -0
- package/dist/uiComponents/icons/EllipsisFill.js +6 -0
- package/dist/uiComponents/icons/GlobeSimple.d.ts +4 -0
- package/dist/uiComponents/icons/GlobeSimple.d.ts.map +1 -0
- package/dist/uiComponents/icons/GlobeSimple.js +6 -0
- package/dist/uiComponents/icons/Outline.d.ts +4 -0
- package/dist/uiComponents/icons/Outline.d.ts.map +1 -0
- package/dist/uiComponents/icons/Outline.js +6 -0
- package/dist/uiComponents/icons/Package.d.ts +4 -0
- package/dist/uiComponents/icons/Package.d.ts.map +1 -0
- package/dist/uiComponents/icons/Package.js +6 -0
- package/dist/uiComponents/icons/Resize.d.ts +4 -0
- package/dist/uiComponents/icons/Resize.d.ts.map +1 -0
- package/dist/uiComponents/icons/Resize.js +7 -0
- package/dist/uiComponents/icons/Trash.d.ts +4 -0
- package/dist/uiComponents/icons/Trash.d.ts.map +1 -0
- package/dist/uiComponents/icons/Trash.js +6 -0
- package/dist/uiComponents/icons/index.d.ts +21 -0
- package/dist/uiComponents/icons/index.d.ts.map +1 -0
- package/dist/uiComponents/icons/index.js +20 -0
- package/dist/uiComponents/isSafari.d.ts +2 -0
- package/dist/uiComponents/isSafari.d.ts.map +1 -0
- package/dist/uiComponents/isSafari.js +2 -0
- package/dist/uiComponents/onPointerOutside.d.ts +6 -0
- package/dist/uiComponents/onPointerOutside.d.ts.map +1 -0
- package/dist/uiComponents/onPointerOutside.js +19 -0
- package/dist/uiComponents/selects/BasicSelect.d.ts +15 -0
- package/dist/uiComponents/selects/BasicSelect.d.ts.map +1 -0
- package/dist/uiComponents/selects/BasicSelect.js +24 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/BaseMenu.d.ts +16 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/BaseMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/BaseMenu.js +40 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/ContextMenu.d.ts +27 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/ContextMenu.js +87 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/Item.d.ts +10 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/Item.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/ContextMenu/Item.js +37 -0
- package/dist/uiComponents/simpleContextMenu/useContextMenu.d.ts +11 -0
- package/dist/uiComponents/simpleContextMenu/useContextMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/useContextMenu.js +20 -0
- package/dist/uiComponents/simpleContextMenu/useRequestContextMenu.d.ts +13 -0
- package/dist/uiComponents/simpleContextMenu/useRequestContextMenu.d.ts.map +1 -0
- package/dist/uiComponents/simpleContextMenu/useRequestContextMenu.js +22 -0
- package/dist/uiComponents/toolbar/ToolbarDropdownSelect.d.ts +16 -0
- package/dist/uiComponents/toolbar/ToolbarDropdownSelect.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarDropdownSelect.js +7 -0
- package/dist/uiComponents/toolbar/ToolbarIconButton.d.ts +4 -0
- package/dist/uiComponents/toolbar/ToolbarIconButton.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarIconButton.js +74 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelect.d.ts +15 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelect.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelect.js +12 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelectContainer.d.ts +3 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelectContainer.d.ts.map +1 -0
- package/dist/uiComponents/toolbar/ToolbarSwitchSelectContainer.js +9 -0
- package/dist/uiComponents/useBoundingClientRect.d.ts +2 -0
- package/dist/uiComponents/useBoundingClientRect.d.ts.map +1 -0
- package/dist/uiComponents/useBoundingClientRect.js +13 -0
- package/dist/uiComponents/useDebugRefreshEvery.d.ts +9 -0
- package/dist/uiComponents/useDebugRefreshEvery.d.ts.map +1 -0
- package/dist/uiComponents/useDebugRefreshEvery.js +19 -0
- package/dist/uiComponents/useDrag.d.ts +76 -0
- package/dist/uiComponents/useDrag.d.ts.map +1 -0
- package/dist/uiComponents/useDrag.js +199 -0
- package/dist/uiComponents/useHotspot.d.ts +2 -0
- package/dist/uiComponents/useHotspot.d.ts.map +1 -0
- package/dist/uiComponents/useHotspot.js +30 -0
- package/dist/uiComponents/useHover.d.ts +2 -0
- package/dist/uiComponents/useHover.d.ts.map +1 -0
- package/dist/uiComponents/useHover.js +23 -0
- package/dist/uiComponents/useHoverWithoutDescendants.d.ts +5 -0
- package/dist/uiComponents/useHoverWithoutDescendants.d.ts.map +1 -0
- package/dist/uiComponents/useHoverWithoutDescendants.js +33 -0
- package/dist/uiComponents/useKeyDown.d.ts +3 -0
- package/dist/uiComponents/useKeyDown.d.ts.map +1 -0
- package/dist/uiComponents/useKeyDown.js +9 -0
- package/dist/uiComponents/useKeyDownCallback.d.ts +7 -0
- package/dist/uiComponents/useKeyDownCallback.d.ts.map +1 -0
- package/dist/uiComponents/useKeyDownCallback.js +28 -0
- package/dist/uiComponents/useLockSet.d.ts +5 -0
- package/dist/uiComponents/useLockSet.d.ts.map +1 -0
- package/dist/uiComponents/useLockSet.js +17 -0
- package/dist/uiComponents/useLogger.d.ts +7 -0
- package/dist/uiComponents/useLogger.d.ts.map +1 -0
- package/dist/uiComponents/useLogger.js +16 -0
- package/dist/uiComponents/useOnClickOutside.d.ts +2 -0
- package/dist/uiComponents/useOnClickOutside.d.ts.map +1 -0
- package/dist/uiComponents/useOnClickOutside.js +25 -0
- package/dist/uiComponents/useOnKeyDown.d.ts +2 -0
- package/dist/uiComponents/useOnKeyDown.d.ts.map +1 -0
- package/dist/uiComponents/useOnKeyDown.js +12 -0
- package/dist/uiComponents/usePresence.d.ts +30 -0
- package/dist/uiComponents/usePresence.d.ts.map +1 -0
- package/dist/uiComponents/usePresence.js +156 -0
- package/dist/uiComponents/useValToAtom.d.ts +3 -0
- package/dist/uiComponents/useValToAtom.d.ts.map +1 -0
- package/dist/uiComponents/useValToAtom.js +11 -0
- package/dist/utils/absoluteDims.d.ts +3 -0
- package/dist/utils/absoluteDims.d.ts.map +1 -0
- package/dist/utils/absoluteDims.js +7 -0
- package/dist/utils/contextualWebComponents.d.ts +5 -0
- package/dist/utils/contextualWebComponents.d.ts.map +1 -0
- package/dist/utils/contextualWebComponents.js +44 -0
- package/dist/utils/copyToClipboard.d.ts +2 -0
- package/dist/utils/copyToClipboard.d.ts.map +1 -0
- package/dist/utils/copyToClipboard.js +28 -0
- package/dist/utils/derive-utils.d.ts +21 -0
- package/dist/utils/derive-utils.d.ts.map +1 -0
- package/dist/utils/derive-utils.js +61 -0
- package/dist/utils/devStringify.d.ts +7 -0
- package/dist/utils/devStringify.d.ts.map +1 -0
- package/dist/utils/devStringify.js +20 -0
- package/dist/utils/invariant.d.ts +35 -0
- package/dist/utils/invariant.d.ts.map +1 -0
- package/dist/utils/invariant.js +79 -0
- package/dist/utils/isMac.d.ts +2 -0
- package/dist/utils/isMac.d.ts.map +1 -0
- package/dist/utils/isMac.js +2 -0
- package/dist/utils/keyboardUtils.d.ts +9 -0
- package/dist/utils/keyboardUtils.d.ts.map +1 -0
- package/dist/utils/keyboardUtils.js +23 -0
- package/dist/utils/mousePositionD.d.ts +6 -0
- package/dist/utils/mousePositionD.d.ts.map +1 -0
- package/dist/utils/mousePositionD.js +18 -0
- package/dist/utils/redux/actionCreator.d.ts +49 -0
- package/dist/utils/redux/actionCreator.d.ts.map +1 -0
- package/dist/utils/redux/actionCreator.js +15 -0
- package/dist/utils/redux/actionCreator.test.d.ts +2 -0
- package/dist/utils/redux/actionCreator.test.d.ts.map +1 -0
- package/dist/utils/redux/actionCreator.test.js +35 -0
- package/dist/utils/redux/actionReducersBundle.d.ts +18 -0
- package/dist/utils/redux/actionReducersBundle.d.ts.map +1 -0
- package/dist/utils/redux/actionReducersBundle.js +18 -0
- package/dist/utils/redux/atomFromReduxStore.d.ts +4 -0
- package/dist/utils/redux/atomFromReduxStore.d.ts.map +1 -0
- package/dist/utils/redux/atomFromReduxStore.js +11 -0
- package/dist/utils/redux/configureStore.d.ts +9 -0
- package/dist/utils/redux/configureStore.d.ts.map +1 -0
- package/dist/utils/redux/configureStore.js +18 -0
- package/dist/utils/redux/pointerFriendlySelector.d.ts +10 -0
- package/dist/utils/redux/pointerFriendlySelector.d.ts.map +1 -0
- package/dist/utils/redux/pointerFriendlySelector.js +8 -0
- package/dist/utils/redux/withHistory/withBatchActions.d.ts +19 -0
- package/dist/utils/redux/withHistory/withBatchActions.d.ts.map +1 -0
- package/dist/utils/redux/withHistory/withBatchActions.js +13 -0
- package/dist/utils/redux/withHistory/withHistory.d.ts +127 -0
- package/dist/utils/redux/withHistory/withHistory.d.ts.map +1 -0
- package/dist/utils/redux/withHistory/withHistory.js +157 -0
- package/dist/utils/renderInPortalInContext.d.ts +7 -0
- package/dist/utils/renderInPortalInContext.d.ts.map +1 -0
- package/dist/utils/renderInPortalInContext.js +38 -0
- package/dist/utils/selectClosestHTMLAncestor.d.ts +5 -0
- package/dist/utils/selectClosestHTMLAncestor.d.ts.map +1 -0
- package/dist/utils/selectClosestHTMLAncestor.js +13 -0
- package/dist/utils/tightJsonStringify.d.ts +23 -0
- package/dist/utils/tightJsonStringify.d.ts.map +1 -0
- package/dist/utils/tightJsonStringify.js +27 -0
- package/dist/utils/tightJsonStringify.test.d.ts +2 -0
- package/dist/utils/tightJsonStringify.test.d.ts.map +1 -0
- package/dist/utils/tightJsonStringify.test.js +25 -0
- package/dist/utils/useRefAndState.d.ts +18 -0
- package/dist/utils/useRefAndState.d.ts.map +1 -0
- package/dist/utils/useRefAndState.js +32 -0
- package/package.json +1 -1
- package/dist/index.mjs +0 -105
- package/dist/index.mjs.map +0 -7
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import type { IProject, IRafDriver, ISheet, ISheetObject } from '@tomorrowevening/theatre-core';
|
|
2
|
+
import type { Pointer } from '@tomorrowevening/theatre-dataverse';
|
|
3
|
+
import type { VoidFn } from '@tomorrowevening/theatre-shared/utils/types';
|
|
4
|
+
import type { IScrub } from '@tomorrowevening/theatre-studio/Scrub';
|
|
5
|
+
import type { PaneInstanceId } from '@tomorrowevening/theatre-shared/utils/ids';
|
|
6
|
+
import type TheatreSheetObject from '@tomorrowevening/theatre-core/sheetObjects/TheatreSheetObject';
|
|
7
|
+
import type TheatreSheet from '@tomorrowevening/theatre-core/sheets/TheatreSheet';
|
|
8
|
+
import type { __UNSTABLE_Project_OnDiskState } from '@tomorrowevening/theatre-core';
|
|
9
|
+
export interface ITransactionAPI {
|
|
10
|
+
/**
|
|
11
|
+
* Set the value of a prop by its pointer. If the prop is sequenced, the value
|
|
12
|
+
* will be a keyframe at the current sequence position.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```ts
|
|
17
|
+
* const obj = sheet.object("box", {x: 0, y: 0})
|
|
18
|
+
* studio.transaction(({set}) => {
|
|
19
|
+
* // set a specific prop's value
|
|
20
|
+
* set(obj.props.x, 10) // New value is {x: 10, y: 0}
|
|
21
|
+
* // values are set partially
|
|
22
|
+
* set(obj.props, {y: 11}) // New value is {x: 10, y: 11}
|
|
23
|
+
*
|
|
24
|
+
* // this will error, as there is no such prop as 'z'
|
|
25
|
+
* set(obj.props.z, 10)
|
|
26
|
+
* })
|
|
27
|
+
* ```
|
|
28
|
+
* @param pointer - A Pointer, like object.props
|
|
29
|
+
* @param value - The value to override the existing value. This is treated as a deep partial value.
|
|
30
|
+
*/
|
|
31
|
+
set<V>(pointer: Pointer<V>, value: V): void;
|
|
32
|
+
/**
|
|
33
|
+
* Unsets the value of a prop by its pointer.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* Usage:
|
|
37
|
+
* ```ts
|
|
38
|
+
* const obj = sheet.object("box", {x: 0, y: 0})
|
|
39
|
+
* studio.transaction(({set}) => {
|
|
40
|
+
* // set props.x to its default value
|
|
41
|
+
* unset(obj.props.x)
|
|
42
|
+
* // set all props to their default value
|
|
43
|
+
* set(obj.props)
|
|
44
|
+
* })
|
|
45
|
+
* ```
|
|
46
|
+
* @param pointer - A pointer, like object.props
|
|
47
|
+
*/
|
|
48
|
+
unset<V>(pointer: Pointer<V>): void;
|
|
49
|
+
/**
|
|
50
|
+
* EXPERIMENTAL API - this api may be removed without notice.
|
|
51
|
+
*
|
|
52
|
+
* Makes Theatre forget about this object. This means all the prop overrides and sequenced props
|
|
53
|
+
* will be reset, and the object won't show up in the exported state.
|
|
54
|
+
*/
|
|
55
|
+
__experimental_forgetObject(object: TheatreSheetObject): void;
|
|
56
|
+
/**
|
|
57
|
+
* EXPERIMENTAL API - this api may be removed without notice.
|
|
58
|
+
*
|
|
59
|
+
* Makes Theatre forget about this sheet.
|
|
60
|
+
*/
|
|
61
|
+
__experimental_forgetSheet(sheet: TheatreSheet): void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export interface PaneClassDefinition {
|
|
67
|
+
/**
|
|
68
|
+
* Each pane has a `class`, which is a string.
|
|
69
|
+
*/
|
|
70
|
+
class: string;
|
|
71
|
+
mount: (opts: {
|
|
72
|
+
paneId: string;
|
|
73
|
+
node: HTMLElement;
|
|
74
|
+
}) => () => void;
|
|
75
|
+
}
|
|
76
|
+
export type ToolConfigIcon = {
|
|
77
|
+
type: 'Icon';
|
|
78
|
+
svgSource: string;
|
|
79
|
+
title: string;
|
|
80
|
+
onClick: () => void;
|
|
81
|
+
};
|
|
82
|
+
export type ToolConfigOption = {
|
|
83
|
+
value: string;
|
|
84
|
+
label: string;
|
|
85
|
+
svgSource: string;
|
|
86
|
+
};
|
|
87
|
+
export type ToolConfigSwitch = {
|
|
88
|
+
type: 'Switch';
|
|
89
|
+
value: string;
|
|
90
|
+
onChange: (value: string) => void;
|
|
91
|
+
options: ToolConfigOption[];
|
|
92
|
+
};
|
|
93
|
+
export type ToolconfigFlyoutMenuItem = {
|
|
94
|
+
label: string;
|
|
95
|
+
onClick?: () => void;
|
|
96
|
+
};
|
|
97
|
+
export type ToolConfigFlyoutMenu = {
|
|
98
|
+
/**
|
|
99
|
+
* A flyout menu
|
|
100
|
+
*/
|
|
101
|
+
type: 'Flyout';
|
|
102
|
+
/**
|
|
103
|
+
* The label of the trigger button
|
|
104
|
+
*/
|
|
105
|
+
label: string;
|
|
106
|
+
items: ToolconfigFlyoutMenuItem[];
|
|
107
|
+
};
|
|
108
|
+
export type ToolConfig = ToolConfigIcon | ToolConfigSwitch | ToolConfigFlyoutMenu;
|
|
109
|
+
export type ToolsetConfig = Array<ToolConfig>;
|
|
110
|
+
/**
|
|
111
|
+
* A Theatre.js Studio extension. You can define one either
|
|
112
|
+
* in a separate package, or within your project.
|
|
113
|
+
*/
|
|
114
|
+
export interface IExtension {
|
|
115
|
+
/**
|
|
116
|
+
* Pick a unique ID for your extension. Ideally the name would be unique if
|
|
117
|
+
* the extension was to be published to the npm repository.
|
|
118
|
+
*/
|
|
119
|
+
id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Set this if you'd like to add a component to the global toolbar (on the top)
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* TODO
|
|
125
|
+
*/
|
|
126
|
+
toolbars?: {
|
|
127
|
+
[key in 'global' | string]: (set: (config: ToolsetConfig) => void, studio: IStudio) => () => void;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Introduces new pane types.
|
|
131
|
+
* @example
|
|
132
|
+
* TODO
|
|
133
|
+
*/
|
|
134
|
+
panes?: Array<PaneClassDefinition>;
|
|
135
|
+
}
|
|
136
|
+
export type PaneInstance<ClassName extends string> = {
|
|
137
|
+
extensionId: string;
|
|
138
|
+
instanceId: PaneInstanceId;
|
|
139
|
+
definition: PaneClassDefinition;
|
|
140
|
+
};
|
|
141
|
+
export interface IStudioUI {
|
|
142
|
+
/**
|
|
143
|
+
* Temporarily hides the studio
|
|
144
|
+
*/
|
|
145
|
+
hide(): void;
|
|
146
|
+
/**
|
|
147
|
+
* Whether the studio is currently visible or hidden
|
|
148
|
+
*/
|
|
149
|
+
readonly isHidden: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Makes the studio visible again.
|
|
152
|
+
*/
|
|
153
|
+
restore(): void;
|
|
154
|
+
renderToolset(toolsetId: string, htmlNode: HTMLElement): () => void;
|
|
155
|
+
}
|
|
156
|
+
export interface _StudioInitializeOpts {
|
|
157
|
+
/**
|
|
158
|
+
* The local storage key to use to persist the state.
|
|
159
|
+
*
|
|
160
|
+
* Default: "theatrejs:0.4"
|
|
161
|
+
*/
|
|
162
|
+
persistenceKey?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Whether to persist the changes in the browser's temporary storage.
|
|
165
|
+
* It is useful to set this to false in the test environment or when debugging things.
|
|
166
|
+
*
|
|
167
|
+
* Default: true
|
|
168
|
+
*/
|
|
169
|
+
usePersistentStorage?: boolean;
|
|
170
|
+
__experimental_rafDriver?: IRafDriver | undefined;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* This is the public api of Theatre's studio. It is exposed through:
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* Basic usage:
|
|
177
|
+
* ```ts
|
|
178
|
+
* import studio from '@tomorrowevening/theatre-studio'
|
|
179
|
+
*
|
|
180
|
+
* studio.initialize()
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* Usage with **tree-shaking**:
|
|
185
|
+
* ```ts
|
|
186
|
+
* import studio from '@tomorrowevening/theatre-studio'
|
|
187
|
+
*
|
|
188
|
+
* if (process.env.NODE_ENV !== 'production') {
|
|
189
|
+
* studio.initialize()
|
|
190
|
+
* }
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
export interface IStudio {
|
|
194
|
+
readonly ui: IStudioUI;
|
|
195
|
+
/**
|
|
196
|
+
* Initializes the studio. Call it once in your index.js/index.ts module.
|
|
197
|
+
* It silently ignores subsequent calls.
|
|
198
|
+
*/
|
|
199
|
+
initialize(opts?: _StudioInitializeOpts): void;
|
|
200
|
+
/**
|
|
201
|
+
* Runs an undo-able transaction. Creates a single undo level for all
|
|
202
|
+
* the operations inside the transaction.
|
|
203
|
+
*
|
|
204
|
+
* Will roll back if an error is thrown.
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* Usage:
|
|
208
|
+
* ```ts
|
|
209
|
+
* studio.transaction(({set, unset}) => {
|
|
210
|
+
* set(obj.props.x, 10) // set the value of obj.props.x to 10
|
|
211
|
+
* unset(obj.props.y) // unset the override at obj.props.y
|
|
212
|
+
* })
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
transaction(fn: (api: ITransactionAPI) => void): void;
|
|
216
|
+
/**
|
|
217
|
+
* Creates a scrub, which is just like a transaction, except you
|
|
218
|
+
* can run it multiple times without creating extra undo levels.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* Usage:
|
|
222
|
+
* ```ts
|
|
223
|
+
* const scrub = studio.scrub()
|
|
224
|
+
* scrub.capture(({set}) => {
|
|
225
|
+
* set(obj.props.x, 10) // set the value of obj.props.x to 10
|
|
226
|
+
* })
|
|
227
|
+
*
|
|
228
|
+
* // half a second later...
|
|
229
|
+
* scrub.capture(({set}) => {
|
|
230
|
+
* set(obj.props.y, 11) // set the value of obj.props.y to 11
|
|
231
|
+
* // note that since we're not setting obj.props.x, its value reverts back to its old value (ie. not 10)
|
|
232
|
+
* })
|
|
233
|
+
*
|
|
234
|
+
* // then either:
|
|
235
|
+
* scrub.commit() // commits the scrub and creates a single undo level
|
|
236
|
+
* // or:
|
|
237
|
+
* scrub.reset() // clear all the ops in the scrub so we can run scrub.capture() again
|
|
238
|
+
* // or:
|
|
239
|
+
* scrub.discard() // clears the ops and destroys it (ie. can't call scrub.capture() anymore)
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
scrub(): IScrub;
|
|
243
|
+
/**
|
|
244
|
+
* Creates a debounced scrub, which is just like a normal scrub, but
|
|
245
|
+
* automatically runs scrub.commit() after `threshhold` milliseconds have
|
|
246
|
+
* passed after the last `scrub.capture`.
|
|
247
|
+
*
|
|
248
|
+
* @param threshhold - How long to wait before committing the scrub
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* Usage:
|
|
252
|
+
* ```ts
|
|
253
|
+
* // Will create a new undo-level after 2 seconds have passed
|
|
254
|
+
* // since the last scrub.capture()
|
|
255
|
+
* const scrub = studio.debouncedScrub(2000)
|
|
256
|
+
*
|
|
257
|
+
* // capture some ops
|
|
258
|
+
* scrub.capture(...)
|
|
259
|
+
* // wait one second
|
|
260
|
+
* await delay(1000)
|
|
261
|
+
* // capture more ops but no new undo level is made,
|
|
262
|
+
* // because the last scrub.capture() was called less than 2 seconds ago
|
|
263
|
+
* scrub.capture(...)
|
|
264
|
+
*
|
|
265
|
+
* // wait another seonc and half
|
|
266
|
+
* await delay(1500)
|
|
267
|
+
* // still no new undo level, because less than 2 seconds have passed
|
|
268
|
+
* // since the last capture
|
|
269
|
+
* scrub.capture(...)
|
|
270
|
+
*
|
|
271
|
+
* // wait 3 seconds
|
|
272
|
+
* await delay(3000) // at this point, one undo level is created.
|
|
273
|
+
*
|
|
274
|
+
* // this call to capture will start a new undo level
|
|
275
|
+
* scrub.capture(...)
|
|
276
|
+
* ```
|
|
277
|
+
*/
|
|
278
|
+
debouncedScrub(threshhold: number): Pick<IScrub, 'capture'>;
|
|
279
|
+
/**
|
|
280
|
+
* Sets the current selection.
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* Usage:
|
|
284
|
+
* ```ts
|
|
285
|
+
* const sheet1: ISheet = ...
|
|
286
|
+
* const obj1: ISheetObject<any> = ...
|
|
287
|
+
*
|
|
288
|
+
* studio.setSelection([sheet1, obj1])
|
|
289
|
+
* ```
|
|
290
|
+
*
|
|
291
|
+
* You can read the current selection from studio.selection
|
|
292
|
+
*/
|
|
293
|
+
setSelection(selection: Array<ISheetObject<any> | ISheet>): void;
|
|
294
|
+
/**
|
|
295
|
+
* Calls fn every time the current selection changes.
|
|
296
|
+
*/
|
|
297
|
+
onSelectionChange(fn: (s: Array<ISheetObject<{}> | ISheet>) => void): VoidFunction;
|
|
298
|
+
/**
|
|
299
|
+
* The current selection, consisting of Sheets and Sheet Objects
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* Usage:
|
|
303
|
+
* ```ts
|
|
304
|
+
* console.log(studio.selection) // => [ISheetObject, ISheet]
|
|
305
|
+
* ```
|
|
306
|
+
*/
|
|
307
|
+
readonly selection: Array<ISheetObject<{}> | ISheet>;
|
|
308
|
+
/**
|
|
309
|
+
* Registers an extension
|
|
310
|
+
*/
|
|
311
|
+
extend(
|
|
312
|
+
/**
|
|
313
|
+
* The extension's definition
|
|
314
|
+
*/
|
|
315
|
+
extension: IExtension, opts?: {
|
|
316
|
+
/**
|
|
317
|
+
* Whether to reconfigure the extension. This is useful if you're
|
|
318
|
+
* hot-reloading the extension.
|
|
319
|
+
*
|
|
320
|
+
* Mind you, that if the old version of the extension defines a pane,
|
|
321
|
+
* and the new version doesn't, all instances of that pane will disappear, as expected.
|
|
322
|
+
* _However_, if you again reconfigure the extension with the old version, the instances
|
|
323
|
+
* of the pane that pane will re-appear.
|
|
324
|
+
*
|
|
325
|
+
* We're not sure about whether this behavior makes sense or not. If not, let us know
|
|
326
|
+
* in the discord server or open an issue on github.
|
|
327
|
+
*/
|
|
328
|
+
__experimental_reconfigure?: boolean;
|
|
329
|
+
}): void;
|
|
330
|
+
/**
|
|
331
|
+
* Creates a new pane
|
|
332
|
+
*
|
|
333
|
+
* @param paneClass - The class name of the pane (provided by an extension)
|
|
334
|
+
*/
|
|
335
|
+
createPane<PaneClass extends string>(paneClass: PaneClass): PaneInstance<PaneClass>;
|
|
336
|
+
/**
|
|
337
|
+
* Returns the Theatre.js project that contains the studio's sheets and objects.
|
|
338
|
+
*
|
|
339
|
+
* It is useful if you'd like to have sheets/objects that are present only when
|
|
340
|
+
* studio is present.
|
|
341
|
+
*/
|
|
342
|
+
getStudioProject(): IProject;
|
|
343
|
+
/**
|
|
344
|
+
* Creates a JSON object that contains the state of the project. You can use this
|
|
345
|
+
* to programmatically save the state of your projects to the storage system of your
|
|
346
|
+
* choice, rather than manually clicking on the "Export" button in the UI.
|
|
347
|
+
*
|
|
348
|
+
* @param projectId - same projectId as in `core.getProject(projectId)`
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* Usage:
|
|
352
|
+
* ```ts
|
|
353
|
+
* const projectId = "project"
|
|
354
|
+
* const json = studio.createContentOfSaveFile(projectId)
|
|
355
|
+
* const string = JSON.stringify(json)
|
|
356
|
+
* fetch(`/projects/${projectId}/state`, {method: 'POST', body: string}).then(() => {
|
|
357
|
+
* console.log("Saved")
|
|
358
|
+
* })
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
createContentOfSaveFile(projectId: string): Record<string, unknown>;
|
|
362
|
+
__experimental: {
|
|
363
|
+
/**
|
|
364
|
+
* Warning: This is an experimental API and will change in the future.
|
|
365
|
+
*
|
|
366
|
+
* Disables the play/pause keyboard shortcut (spacebar)
|
|
367
|
+
* Also see `__experimental_enablePlayPauseKeyboardShortcut()` to re-enable it.
|
|
368
|
+
*/
|
|
369
|
+
__experimental_disblePlayPauseKeyboardShortcut(): void;
|
|
370
|
+
/**
|
|
371
|
+
* Warning: This is an experimental API and will change in the future.
|
|
372
|
+
*
|
|
373
|
+
* Disables the play/pause keyboard shortcut (spacebar)
|
|
374
|
+
*/
|
|
375
|
+
__experimental_enablePlayPauseKeyboardShortcut(): void;
|
|
376
|
+
/**
|
|
377
|
+
* Clears persistent storage and ensures that the current state will not be
|
|
378
|
+
* saved on window unload. Further changes to state will continue writing to
|
|
379
|
+
* persistent storage, if enabled during initialization.
|
|
380
|
+
*
|
|
381
|
+
* @param persistenceKey - same persistencyKey as in `studio.initialize(opts)`, if any
|
|
382
|
+
*/
|
|
383
|
+
__experimental_clearPersistentStorage(persistenceKey?: string): void;
|
|
384
|
+
/**
|
|
385
|
+
* Warning: This is an experimental API and will change in the future.
|
|
386
|
+
*
|
|
387
|
+
* This is functionally the same as `studio.createContentOfSaveFile()`, but
|
|
388
|
+
* returns a typed object instead of a JSON object.
|
|
389
|
+
*
|
|
390
|
+
* See {@link __UNSTABLE_Project_OnDiskState} for more information.
|
|
391
|
+
*/
|
|
392
|
+
__experimental_createContentOfSaveFileTyped(projectId: string): __UNSTABLE_Project_OnDiskState;
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
export default class TheatreStudio implements IStudio {
|
|
396
|
+
readonly ui: {
|
|
397
|
+
hide(): void;
|
|
398
|
+
readonly isHidden: boolean;
|
|
399
|
+
restore(): void;
|
|
400
|
+
renderToolset(toolsetId: string, htmlNode: HTMLElement): () => void;
|
|
401
|
+
};
|
|
402
|
+
private readonly _cache;
|
|
403
|
+
__experimental: {
|
|
404
|
+
__experimental_disblePlayPauseKeyboardShortcut(): void;
|
|
405
|
+
__experimental_enablePlayPauseKeyboardShortcut(): void;
|
|
406
|
+
__experimental_clearPersistentStorage(persistenceKey?: string): void;
|
|
407
|
+
__experimental_createContentOfSaveFileTyped(projectId: string): __UNSTABLE_Project_OnDiskState;
|
|
408
|
+
};
|
|
409
|
+
initialize(opts?: Parameters<IStudio['initialize']>[0]): Promise<void>;
|
|
410
|
+
extend(extension: IExtension, opts?: {
|
|
411
|
+
__experimental_reconfigure?: boolean;
|
|
412
|
+
}): void;
|
|
413
|
+
transaction(fn: (api: ITransactionAPI) => void): void;
|
|
414
|
+
private _getSelectionPrism;
|
|
415
|
+
private _getSelection;
|
|
416
|
+
setSelection(selection: Array<ISheetObject | ISheet>): void;
|
|
417
|
+
onSelectionChange(fn: (s: (ISheetObject | ISheet)[]) => void): VoidFn;
|
|
418
|
+
get selection(): Array<ISheetObject | ISheet>;
|
|
419
|
+
scrub(): IScrub;
|
|
420
|
+
getStudioProject(): IProject;
|
|
421
|
+
debouncedScrub(threshold?: number): Pick<IScrub, 'capture'>;
|
|
422
|
+
createPane<PaneClass extends string>(paneClass: PaneClass): PaneInstance<PaneClass>;
|
|
423
|
+
destroyPane(paneId: string): void;
|
|
424
|
+
createContentOfSaveFile(projectId: string): Record<string, unknown>;
|
|
425
|
+
}
|
|
426
|
+
//# sourceMappingURL=TheatreStudio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TheatreStudio.d.ts","sourceRoot":"","sources":["../../../../studio/src/TheatreStudio.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { prism } from '@tomorrowevening/theatre-dataverse';
|
|
2
|
+
import SimpleCache from '@tomorrowevening/theatre-shared/utils/SimpleCache';
|
|
3
|
+
import { isSheetObjectPublicAPI, isSheetPublicAPI, } from '@tomorrowevening/theatre-shared/instanceTypes';
|
|
4
|
+
import { getOutlineSelection } from './selectors';
|
|
5
|
+
import getStudio from './getStudio';
|
|
6
|
+
import { debounce } from 'lodash-es';
|
|
7
|
+
import { __experimental_disblePlayPauseKeyboardShortcut, __experimental_enablePlayPauseKeyboardShortcut, } from './UIRoot/useKeyboardShortcuts';
|
|
8
|
+
export default class TheatreStudio {
|
|
9
|
+
ui = {
|
|
10
|
+
hide() {
|
|
11
|
+
getStudio().ui.hide();
|
|
12
|
+
},
|
|
13
|
+
get isHidden() {
|
|
14
|
+
return getStudio().ui.isHidden;
|
|
15
|
+
},
|
|
16
|
+
restore() {
|
|
17
|
+
getStudio().ui.restore();
|
|
18
|
+
},
|
|
19
|
+
renderToolset(toolsetId, htmlNode) {
|
|
20
|
+
return getStudio().ui.renderToolset(toolsetId, htmlNode);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
_cache = new SimpleCache();
|
|
24
|
+
__experimental = {
|
|
25
|
+
__experimental_disblePlayPauseKeyboardShortcut() {
|
|
26
|
+
// This is an experimental API to respond to this issue: https://discord.com/channels/870988717190426644/870988717190426647/1067906775602430062
|
|
27
|
+
// Ideally we need a coherent way for the user to control keyboard inputs, so we will remove this method in the future.
|
|
28
|
+
// Here is the procedure for removing it:
|
|
29
|
+
// 1. Replace this code with a `throw new Error("This is experimental method is now deprecated, and here is how to migrate: ...")`
|
|
30
|
+
// 2. Then keep it for a few months, and then remove it.
|
|
31
|
+
__experimental_disblePlayPauseKeyboardShortcut();
|
|
32
|
+
},
|
|
33
|
+
__experimental_enablePlayPauseKeyboardShortcut() {
|
|
34
|
+
// see __experimental_disblePlayPauseKeyboardShortcut()
|
|
35
|
+
__experimental_enablePlayPauseKeyboardShortcut();
|
|
36
|
+
},
|
|
37
|
+
__experimental_clearPersistentStorage(persistenceKey) {
|
|
38
|
+
return getStudio().clearPersistentStorage(persistenceKey);
|
|
39
|
+
},
|
|
40
|
+
__experimental_createContentOfSaveFileTyped(projectId) {
|
|
41
|
+
return getStudio().createContentOfSaveFile(projectId);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
constructor(internals) { }
|
|
48
|
+
initialize(opts) {
|
|
49
|
+
const studio = getStudio();
|
|
50
|
+
return studio.initialize(opts);
|
|
51
|
+
}
|
|
52
|
+
extend(extension, opts) {
|
|
53
|
+
getStudio().extend(extension, opts);
|
|
54
|
+
}
|
|
55
|
+
transaction(fn) {
|
|
56
|
+
return getStudio().transaction(({ set, unset, stateEditors }) => {
|
|
57
|
+
const __experimental_forgetObject = (object) => {
|
|
58
|
+
if (!isSheetObjectPublicAPI(object)) {
|
|
59
|
+
throw new Error(`object in transactionApi.__experimental_forgetObject(object) must be the return type of sheet.object(...)`);
|
|
60
|
+
}
|
|
61
|
+
stateEditors.coreByProject.historic.sheetsById.forgetObject(object.address);
|
|
62
|
+
};
|
|
63
|
+
const __experimental_forgetSheet = (sheet) => {
|
|
64
|
+
if (!isSheetPublicAPI(sheet)) {
|
|
65
|
+
throw new Error(`sheet in transactionApi.__experimental_forgetSheet(sheet) must be the return type of project.sheet()`);
|
|
66
|
+
}
|
|
67
|
+
stateEditors.coreByProject.historic.sheetsById.forgetSheet(sheet.address);
|
|
68
|
+
};
|
|
69
|
+
return fn({
|
|
70
|
+
set,
|
|
71
|
+
unset,
|
|
72
|
+
__experimental_forgetObject,
|
|
73
|
+
__experimental_forgetSheet,
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
_getSelectionPrism() {
|
|
78
|
+
return this._cache.get('_getSelectionPrism()', () => prism(() => {
|
|
79
|
+
return getOutlineSelection()
|
|
80
|
+
.filter((s) => s.type === 'Theatre_SheetObject' || s.type === 'Theatre_Sheet')
|
|
81
|
+
.map((s) => s.publicApi);
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
_getSelection() {
|
|
85
|
+
return this._getSelectionPrism().getValue();
|
|
86
|
+
}
|
|
87
|
+
setSelection(selection) {
|
|
88
|
+
const sanitizedSelection = [...selection]
|
|
89
|
+
.filter((s) => isSheetObjectPublicAPI(s) || isSheetPublicAPI(s))
|
|
90
|
+
.map((s) => getStudio().corePrivateAPI(s));
|
|
91
|
+
getStudio().transaction(({ stateEditors }) => {
|
|
92
|
+
stateEditors.studio.historic.panels.outline.selection.set(sanitizedSelection);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
onSelectionChange(fn) {
|
|
96
|
+
const studio = getStudio();
|
|
97
|
+
return this._getSelectionPrism().onChange(studio.ticker, fn, true);
|
|
98
|
+
}
|
|
99
|
+
get selection() {
|
|
100
|
+
return this._getSelection();
|
|
101
|
+
}
|
|
102
|
+
scrub() {
|
|
103
|
+
return getStudio().scrub();
|
|
104
|
+
}
|
|
105
|
+
getStudioProject() {
|
|
106
|
+
const core = getStudio().core;
|
|
107
|
+
if (!core) {
|
|
108
|
+
throw new Error(`You're calling studio.getStudioProject() before \`@tomorrowevening/theatre-core\` is loaded. To fix this:
|
|
109
|
+
1. Check if \`@tomorrowevening/theatre-core\` is import/required in your bundle.
|
|
110
|
+
2. Check the stack trace of this error and make sure the funciton that calls getStudioProject() is run after \`@tomorrowevening/theatre-core\` is loaded.`);
|
|
111
|
+
}
|
|
112
|
+
return getStudio().getStudioProject(core);
|
|
113
|
+
}
|
|
114
|
+
debouncedScrub(threshold = 1000) {
|
|
115
|
+
let currentScrub;
|
|
116
|
+
const scheduleCommit = debounce(() => {
|
|
117
|
+
const s = currentScrub;
|
|
118
|
+
if (!s)
|
|
119
|
+
return;
|
|
120
|
+
currentScrub = undefined;
|
|
121
|
+
s.commit();
|
|
122
|
+
}, threshold);
|
|
123
|
+
const capture = (arg) => {
|
|
124
|
+
if (!currentScrub) {
|
|
125
|
+
currentScrub = this.scrub();
|
|
126
|
+
}
|
|
127
|
+
let errored = true;
|
|
128
|
+
try {
|
|
129
|
+
currentScrub.capture(arg);
|
|
130
|
+
errored = false;
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
if (errored) {
|
|
134
|
+
const s = currentScrub;
|
|
135
|
+
currentScrub = undefined;
|
|
136
|
+
s.discard();
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
scheduleCommit();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
return { capture };
|
|
144
|
+
}
|
|
145
|
+
createPane(paneClass) {
|
|
146
|
+
return getStudio().paneManager.createPane(paneClass);
|
|
147
|
+
}
|
|
148
|
+
destroyPane(paneId) {
|
|
149
|
+
return getStudio().paneManager.destroyPane(paneId);
|
|
150
|
+
}
|
|
151
|
+
createContentOfSaveFile(projectId) {
|
|
152
|
+
return getStudio().createContentOfSaveFile(projectId);
|
|
153
|
+
}
|
|
154
|
+
}
|
package/dist/UI/UI.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Studio } from '@tomorrowevening/theatre-studio/Studio';
|
|
2
|
+
export default class UI {
|
|
3
|
+
readonly studio: Studio;
|
|
4
|
+
private _rendered;
|
|
5
|
+
private _nonSSRBits;
|
|
6
|
+
readonly ready: Promise<void>;
|
|
7
|
+
constructor(studio: Studio);
|
|
8
|
+
render(): void;
|
|
9
|
+
hide(): void;
|
|
10
|
+
restore(): void;
|
|
11
|
+
get isHidden(): boolean;
|
|
12
|
+
renderToolset(toolsetId: string, htmlNode: HTMLElement): () => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=UI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UI.d.ts","sourceRoot":"","sources":["../../../../../studio/src/UI/UI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,wCAAwC,CAAA;AAQlE,MAAM,CAAC,OAAO,OAAO,EAAE;IAUT,QAAQ,CAAC,MAAM,EAAE,MAAM;IATnC,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,WAAW,CAEC;IACpB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAG5B;gBAEoB,MAAM,EAAE,MAAM;IAEnC,MAAM;IAgBN,IAAI;IAMJ,OAAO;IAOP,IAAI,QAAQ,YAIX;IAED,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW;CAuBvD"}
|
package/dist/UI/UI.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { val } from '@tomorrowevening/theatre-dataverse';
|
|
2
|
+
const NonSSRBitsClass = typeof window !== 'undefined'
|
|
3
|
+
? import('./UINonSSRBits').then((M) => M.default)
|
|
4
|
+
: null;
|
|
5
|
+
export default class UI {
|
|
6
|
+
studio;
|
|
7
|
+
_rendered = false;
|
|
8
|
+
_nonSSRBits = NonSSRBitsClass
|
|
9
|
+
? NonSSRBitsClass.then((NonSSRBitsClass) => new NonSSRBitsClass())
|
|
10
|
+
: Promise.reject();
|
|
11
|
+
ready = this._nonSSRBits.then(() => undefined, () => undefined);
|
|
12
|
+
constructor(studio) {
|
|
13
|
+
this.studio = studio;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
if (this._rendered) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this._rendered = true;
|
|
20
|
+
this._nonSSRBits
|
|
21
|
+
.then((b) => {
|
|
22
|
+
b.render();
|
|
23
|
+
})
|
|
24
|
+
.catch((err) => {
|
|
25
|
+
console.error(err);
|
|
26
|
+
throw err;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
hide() {
|
|
30
|
+
this.studio.transaction(({ drafts }) => {
|
|
31
|
+
drafts.ahistoric.visibilityState = 'everythingIsHidden';
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
restore() {
|
|
35
|
+
this.render();
|
|
36
|
+
this.studio.transaction(({ drafts }) => {
|
|
37
|
+
drafts.ahistoric.visibilityState = 'everythingIsVisible';
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
get isHidden() {
|
|
41
|
+
return (val(this.studio.atomP.ahistoric.visibilityState) === 'everythingIsHidden');
|
|
42
|
+
}
|
|
43
|
+
renderToolset(toolsetId, htmlNode) {
|
|
44
|
+
let shouldUnmount = false;
|
|
45
|
+
let unmount = null;
|
|
46
|
+
this._nonSSRBits
|
|
47
|
+
.then((nonSSRBits) => {
|
|
48
|
+
if (shouldUnmount)
|
|
49
|
+
return; // unmount requested before the toolset is mounted, so, abort
|
|
50
|
+
unmount = nonSSRBits.renderToolset(toolsetId, htmlNode);
|
|
51
|
+
})
|
|
52
|
+
.catch((err) => {
|
|
53
|
+
console.error(err);
|
|
54
|
+
});
|
|
55
|
+
return () => {
|
|
56
|
+
if (unmount) {
|
|
57
|
+
unmount();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (shouldUnmount)
|
|
61
|
+
return;
|
|
62
|
+
shouldUnmount = true;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default class UINonSSRBits {
|
|
2
|
+
readonly containerEl: HTMLDivElement;
|
|
3
|
+
private _renderTimeout;
|
|
4
|
+
private _documentBodyUIIsRenderedIn;
|
|
5
|
+
readonly containerShadow: ShadowRoot & HTMLElement;
|
|
6
|
+
constructor();
|
|
7
|
+
render(): void;
|
|
8
|
+
renderToolset(toolsetId: string, htmlNode: HTMLElement): () => void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=UINonSSRBits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UINonSSRBits.d.ts","sourceRoot":"","sources":["../../../../../studio/src/UI/UINonSSRBits.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,QAAQ,CAAC,WAAW,iBAAgC;IACpD,OAAO,CAAC,cAAc,CAAsC;IAC5D,OAAO,CAAC,2BAA2B,CAAqC;IACxE,QAAQ,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAA;;IAmClD,MAAM;IAgBN,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW;CAWvD"}
|