- Changed the import type from `HostNode` to `SceneNode` in `editor.ts` to align with the updated project structure.
- Modified the `recording` method's return type to `ProjectDocument<SceneNode>`, ensuring consistency in type usage across the document editor.
- Introduced a new `SourceSettings` component to manage media source properties in the inspector, enhancing the user interface for asset management.
- Updated the `Inspector` component to include the `SourceSettings` when the target is a shape, improving the overall functionality.
- Refactored `fill-picker` to export `FIT_OPTIONS` and `FIT_NAMES`, making them accessible for use in other components.
- Enhanced documentation within the `FitMenu` function to clarify its purpose and usage.
- Changed the `id` type in `CaptureRequest` from number to string to accommodate JSX element IDs.
- Refactored the `resolveNode` function to handle string IDs, improving error handling for ambiguous and non-existent nodes.
- Updated the `README.md` and `capture.md` to clarify the expected format for node IDs, including the use of `file:id` for disambiguation.
- Enhanced the `dapi capture` command documentation to reflect changes in ID handling and provide clearer usage instructions.
- Integrated the `timelineSystem` function into the resize handler of the timeline controller, ensuring that timeline updates are processed during window resizing events.
- This enhancement improves the responsiveness of the timeline component, maintaining accurate visual representation as the viewport changes.
- Updated the `renderScene` function to accept a `dir` parameter, allowing for project-specific directory handling during scene rendering.
- Modified the `handleCapture` function to utilize the project context, ensuring captures are created with the correct project directory.
- Refactored the `createCapture` function to compile project bundles based on the provided directory, improving rendering accuracy and efficiency.
- Enhanced type definitions in `RenderSceneOptions` and `CaptureOptions` to include the new `dir` parameter, ensuring clarity in function signatures.
- Implemented the `addLayer` function to allow users to add a new layer to the timeline, ensuring it is linked to an existing scene.
- Integrated a toast notification to inform users when attempting to add a layer without an open scene.
- Updated the dropdown menu to include an option for adding layers, enhancing the user interface for timeline management.
- Added the `dapi open` command to launch the app and open or create a project folder, with updates to the `README.md` and `projects.ts` for clarity.
- Implemented `initProject` function to initialize project folders, ensuring they can be opened from any location on disk.
- Updated the `main-channels.ts` and `main.ts` to handle new project initialization requests.
- Enhanced the database schema to support project root types, allowing for better project organization and retrieval.
- Improved the IPC layer to manage multiple routers for different command contexts, ensuring efficient command handling.
- Revised the `dapi context` command description in `README.md`, `index.ts`, and `projects.ts` to clarify its purpose in reporting the current project and playhead position.
- Enhanced the `handleContextGet` function to return detailed project information, including project ID, name, directory, and frame rate.
- Updated the API response structure in `context.ts` to reflect the new project context format, ensuring accurate data representation for users.
- Improved documentation in `context.md` and `README.md` to provide clearer guidance on the command's functionality and expected output.
- Removed the `bitecs` package from `package-lock.json` and `package.json` as it is no longer needed.
- Deleted unused engine components and API files, including `constants.ts`, `index.ts`, `selection.ts`, `thumbnail.ts`, `assets.ts`, `base.ts`, `clipboard.ts`, `components.ts`, `engine.ts`, `entities.ts`, `events.ts`, `folders.ts`, and `frame.ts`, to streamline the codebase.
- Updated the `Canvas` component to remove references to the deprecated `bitecs` canvas.
- Refactored import paths in `projects-view.tsx` to align with the new structure.
- Revised the documentation in `projects.ts` to clarify that npm packages are treated as standard packages, allowing for direct installation and bundling from `node_modules`.
- Updated `module.md` to reflect changes in userland package resolution, emphasizing the need for browser compatibility and the removal of CDN fallback.
- Enhanced clarity on local imports and the handling of type declarations for userland packages, ensuring accurate guidance for developers.
- Introduced `ProjectBundle` interface to manage project bundles in the database, allowing for efficient storage and retrieval of project data.
- Updated the `GlobalDBSchema` to include a new `bundles` object store, enhancing the database structure for better project management.
- Integrated `forgetProjectBundle` and `rememberProjectBundle` functions to handle project bundle lifecycle during project deletion and loading.
- Refactored the `createCapture` function to utilize the loaded project bundle, improving scene rendering efficiency.
- Enhanced the `EditorPage` to load cached project bundles, ensuring a smoother user experience during project editing.
- Updated the export system to utilize the new `createCapture` function, allowing for more efficient scene rendering in a dedicated capture world.
- Refactored the `exportScene` method to accept an `Entity` instead of a scene ID, improving type safety and clarity.
- Enhanced the `FileExportMenu` and `FileExportSpecificSceneMenu` components to leverage the updated export logic, ensuring proper scene selection and export configuration.
- Improved error handling and user feedback during the export process, including checks for active scenes and clearer toast notifications.
- Streamlined the integration of the encoder and capture systems, ensuring consistent behavior across different export scenarios.
- Introduced `canonicalizeTagsPlugin` to rewrite composition tags to PascalCase, preventing naming collisions with native DOM elements.
- Updated `sourcePlugin` to integrate SVG collision detection and ensure proper handling of composition tags within SVG contexts.
- Refactored `DocumentEditor` to improve scene node management and ensure correct DOM node handling during element creation.
- Removed deprecated `SurfaceHost` and `HtmlHost` implementations, streamlining media handling and improving performance.
- Enhanced type definitions and documentation for better clarity on scene node properties and DOM interactions.
- Updated KeyframeLayer to utilize the new trackProperty function for better property path management, enhancing clarity in property representation.
- Refactored formatProperty function to improve naming consistency for properties displayed in the UI.
- Added a visual element in SubItemLayer for improved layout consistency.
- Enhanced type definitions for better maintainability and understanding of property paths.
- Eliminated the observer for the AudioBus entity, which was responsible for rebuilding the timeline index during playback. This change simplifies the observation logic and improves performance by reducing unnecessary updates to the timeline index.
- Updated the Soundboard component to utilize the new `@diffusionstudio/koota-solid` engine, enhancing audio layer querying and management.
- Replaced deprecated hooks with new ones for better integration with the audio system, including the use of `useWorld`, `useEditor`, and `useTimelineIndex`.
- Improved the handling of audio layers and meters, ensuring that only audio-bearing layers are metered and simplifying the selection logic for left and right meters.
- Enhanced volume control functionality by introducing a unified `editVolume` method, streamlining volume adjustments across different entities.
- Added volume property documentation to the SceneProps type for better clarity on audio mixing behavior.
- Updated the peaks management system to streamline audio peak handling, including the removal of the `peaks-worker` and integration of waveform derivation directly in the asset cache.
- Enhanced the `derivePeaks` function to utilize the new `deriveWaveform` method, improving efficiency in generating audio peaks from media files.
- Refactored the `requestPeaks` and `getClipSamples` functions to accommodate changes in data structure, ensuring better performance and clarity in waveform rendering.
- Improved type definitions and documentation for better maintainability and understanding of the audio processing workflow.
- Updated media handling in the timeline to utilize new functions for managing asset visuals, including `forgetAssetMedia` and `forgetAssetPeaks`, improving clarity in asset state management.
- Introduced `cloneFramesForSplit` and `clonePeaksForSplit` functions to streamline the duplication of clip visuals during splits, enhancing performance and usability.
- Added new `peaks.ts` module to manage audio peaks for timeline clips, improving organization and maintainability of audio-related functionality.
- Refactored rendering functions to accommodate changes in thumbnail and waveform rendering, ensuring consistent visual representation across different asset types.
- Updated the `editProperty`, `insertNode`, and `removeNode` methods in `DocumentEditor` to utilize the new `node` method from `RuntimeDocument`, improving consistency in node handling.
- Enhanced the `SceneNode` interface in `document.ts` to include `tag`, `props`, `parent`, and `children`, streamlining the structure of document nodes.
- Refactored various functions to operate on `SceneNode` instead of `Entity`, improving clarity and maintainability in document manipulation.
- Removed references to `SEQUENCE` from various components, including `fill-picker`, `fill-row`, and `sub-item`, streamlining media type management.
- Updated `PaintItemIcon` and `TimeSettings` to handle only `VIDEO` and `IMAGE` types, enhancing clarity in media selection.
- Introduced `SourceFrameRate` trait to manage frame rates for frames directories, ensuring accurate playback duration.
- Refactored asset actions and timing utilities to accommodate the removal of sequence handling, improving overall code maintainability.
- Updated EditMenu, FileMenu, ViewMenu, and InspectorHeader components to use the new `@diffusionstudio/koota-solid` engine, enhancing performance and maintainability.
- Replaced deprecated functions with new selection and zoom utilities, streamlining user interactions.
- Improved keyboard shortcuts for selection management and zooming, ensuring a more intuitive user experience.
- Enhanced the handling of disabled states for menu items based on selection availability, improving usability.
- Removed deprecated keyboard shortcuts related to asset import and folder creation in the keyboard system, streamlining input handling.
- Introduced a new shortcut handling mechanism in the Assets component to manage library-specific commands, enhancing user interaction.
- Updated the ExportProvider to handle keyboard shortcuts for exporting scenes and frames, improving accessibility and consistency across components.
- Improved input target checks to prevent conflicts with active input fields, ensuring smoother user experience during keyboard interactions.
- Added keyboard shortcuts for zooming in, out, and resetting zoom in the inspector header, improving user accessibility.
- Refactored the focus function to frame all content on the stage, enhancing the zoom menu's usability.
- Updated input shortcuts to reflect the new focus functionality, streamlining user interactions with the scene.
- Refactored input handling to include new functions for managing selection visibility, focusing on active scenes, and adjusting camera zoom.
- Introduced new shortcuts for cutting selections, seeking by frames or seconds, and restacking selected entities.
- Improved selection management by adding functions to select parents and children of the current selection, enhancing user interaction with the scene.
- Updated type definitions and imports for better clarity and maintainability.
- Updated the CameraController to enhance pointer handling and tool-based cursor updates, ensuring a more intuitive user experience.
- Introduced a new cursor management system that dynamically adjusts based on the active tool, improving visual feedback during interactions.
- Refactored input handling to streamline cursor updates, reducing reliance on hardcoded cursor states and enhancing maintainability.
- Added functionality to manage tool selection and cursor states when the space key is held, allowing for smoother transitions between tools.
- Updated the asset drop handling to ensure that assets are placed correctly on the canvas, even when no scene is present.
- Introduced a fallback mechanism to use the world root as the parent for dropped assets, improving usability and consistency in asset placement.
- Enhanced documentation to clarify the behavior of asset drops when no active scene is detected.
- Added `clearTimeline` function to reset the canvas and surface state when there is no active scene, preventing leftover visual artifacts.
- Updated `timelineSystem` to call `clearTimeline` if the scene is null, enhancing the user experience by ensuring a clean slate for new scenes.
- Improved type definitions by importing `TimelinePointer` and `TimelineSurfaceState` for better clarity and maintainability.
- Refactored SceneInitOverlay to support scene creation from dropped assets, ensuring proper placement and camera focus.
- Introduced new functions for handling asset drops and scene initialization, improving user experience when adding assets.
- Updated Timeline component to manage asset drops more effectively, creating new scenes when necessary and providing feedback for missing scenes.
- Added new utility functions in new-scene.tsx for creating scenes and inserting assets, streamlining asset management across components.
- Introduced `useMediaSelection` to streamline the management of selected image and video nodes.
- Updated `ActionBar` to utilize the new media selection logic, simplifying the determination of media types.
- Refactored `PromptInputActions` to leverage `useMediaSelection`, enhancing clarity and reducing complexity in handling selected nodes.
- Removed obsolete functions related to media type determination, improving code maintainability.
- Added new constants for voice model and aspect ratio dimensions in `config.ts`, enhancing configurability for media generation.
- Added `sourceErrorSystem` to manage source error states within the engine, improving error handling during asset generation.
- Updated HUD rendering logic to display error messages for entities with source errors, enhancing user awareness of issues.
- Introduced new color constants for failed states in the timeline, providing visual differentiation for failed generations.
- Enhanced clip rendering to account for source errors, ensuring clarity in the UI when an asset fails to generate.
- Refactored `EditorGenAi` to report generation failures with descriptive messages, improving user feedback on errors.
- Updated relevant types to include error handling, ensuring consistency across the codebase for managing generation failures.
- Introduced a new utility `getGeneratingColor` to manage the color pulsing effect for entities marked as generating.
- Updated `renderClip` to conditionally render the clip background based on the generating state, improving visual feedback during generation.
- Refactored `renderGenerating` to utilize the new color utility, streamlining the rendering process for generating entities.
- Enhanced label rendering logic to account for the generating state, ensuring clarity in the UI during the generation phase.
- Added a new file `generating.ts` to encapsulate generating-related utilities, promoting better code organization.
- Added new imports for `Computed`, `FrameRate`, and `framesToSeconds` to support dynamic caption timing.
- Implemented `sceneSpan` function to calculate the duration of scenes for accurate caption end timing.
- Updated the `insertFresh` function to utilize the calculated scene length when inserting captions, improving caption accuracy.
- Introduced `SerializedAssetRef` and `EditValue` types to support new asset reference handling in JSX.
- Updated `setProp` and related functions to accommodate `SerializedAssetRef`, allowing for more complex prop values.
- Refactored `SourceSet`, `SourceInsert`, and `SourceIteration` interfaces to utilize `EditValue`, improving type safety and flexibility.
- Implemented `ensureGenerateImport` function to manage `generate` imports dynamically, enhancing code organization.
- Removed obsolete `use-auto-captions.ts` and integrated its functionality into `use-auto-captions.tsx`, streamlining the codebase.
- Added new `use-generate-image.tsx` to replace the previous image generation logic, improving asset management and integration with the editor.
- Enhanced the `PromptInput` component to support new asset handling and improve user experience in image generation workflows.
- Added `@diffusionstudio/encoder` dependency to support audio encoding features.
- Implemented transcription capabilities in the `EditorGenAi` class, allowing for scene audio transcription and caching.
- Enhanced asset management by introducing `TranscriptionRequest` trait for handling transcription requests in the asset system.
- Updated `assetSystem` to process transcription requests, improving audio handling within scenes.
- Refactored related components to accommodate new transcription logic, ensuring seamless integration with existing workflows.
- Added `@diffusionstudio/jsx` dependency to support JSX generation features.
- Integrated `assetSystem` into various components to streamline asset handling.
- Refactored `create-engine.ts`, `image-encoder.ts`, and `encoder.ts` to utilize the new asset management structure.
- Removed the obsolete `jsx-generation.ts` file, consolidating asset generation logic.
- Updated `library.ts` to improve asset resolution and management processes.
- Enhanced the `EditorPage` to incorporate AI generation capabilities, improving project workflows.
- Added `onPointerEnter` and `onPointerLeave` methods to track pointer presence on the canvas, improving gesture detection.
- Refactored key state management by replacing `justPressed` and `justLifted` with `pressed` and `lifted` sets for better tracking of key events.
- Updated shortcut handling to accommodate new key state structure, ensuring accurate shortcut execution based on current key states.
- Improved documentation for clarity on pointer and key interaction mechanics.
- Introduced `hasRoot` function to check for a valid project root, improving user experience.
- Updated button rendering logic to conditionally display the "Reveal in finder" button only when a project root is available.
- Modified the folder selection button text to reflect the presence of a project root, enhancing clarity for users.
- Introduced `captureProjectCover` function to handle capturing and storing project cover images upon project closure, enhancing visual representation.
- Added `projectCoverKey` and `readProjectCover` functions for managing and retrieving project cover images, improving project organization.
- Updated `DashboardProjectsView` and `EditorPage` components to utilize the new cover management features, ensuring seamless integration with existing workflows.
- Created a new `cover.ts` module to encapsulate cover-related logic, promoting better code organization and maintainability.
- Refactored `create-engine.ts` to include a `snapshot` method for capturing canvas images, supporting the new cover functionality.
- Introduced `ensureProjectsRoot` function to streamline the process of ensuring a valid project root is selected, improving user experience.
- Updated components to utilize the new root management logic, ensuring consistency across project-related functionalities.
- Enhanced the `DashboardProjectsFolderBar` to display a loading state while waiting for the root to be determined, improving clarity for users.
- Refactored database interactions for project roots, transitioning to a more robust structure that supports multiple roots and their management.
- Improved error handling and messaging for project root selection, ensuring users are informed of any issues during the process.
- Added `nanoid` dependency for generating unique project IDs, ensuring stable identification across renames.
- Introduced `PROJECTS_RESOLVE` channel to resolve project references by ID or folder name, improving project retrieval.
- Updated project-related functions to utilize the new ID system, enhancing consistency in project management.
- Refactored project handling in various components to accommodate the new project structure, ensuring seamless integration with existing functionality.
- Adjusted routing to reflect project IDs in URLs, maintaining user experience during project renaming.
- Adjusted media query breakpoints in `index.css` to reflect new minimum screen size of 720×480.
- Updated the message in `screen-too-small.tsx` to inform users of the new screen size requirements for optimal functionality.
- Added an `AlertDialog` for confirming project deletions, improving user experience by preventing accidental deletions.
- Refactored project selection logic to utilize `selectedProject` state, enhancing clarity and maintainability.
- Introduced new signals for managing project creation and deletion states, ensuring smoother interactions.
- Updated `DashboardCardButton` to handle double-click and escape actions, improving accessibility and usability.
- Enhanced the `DashboardViewSection` to allow background clicks for deselecting projects, streamlining user interactions.
- Introduced a new channel `APP_SHOW_IN_FOLDER` to allow the application to reveal files or folders in the OS file manager.
- Implemented the corresponding handler in `main.ts` to utilize the new channel for revealing paths.
- Added a `DashboardProjectsFolderBar` component to the dashboard, enabling users to change and reveal the projects folder.
- Updated the dashboard layout to incorporate the new folder bar, enhancing user interaction with project management.
- Refactored related components for improved organization and readability, setting the stage for future enhancements.
- Removed the dragState management from LayerContext and NodeLayer, streamlining the context provider.
- Eliminated unused drag-related logic and imports, enhancing code clarity and maintainability.
- Updated NodeLayer to focus on resizing functionality, improving overall user interaction with layer elements.
- Improved code organization and readability, setting the stage for future enhancements.
- Removed unused imports and streamlined the code structure for better readability.
- Updated the stroke management logic to utilize a dedicated `StrokeInspector`, enhancing the user experience when editing stroke properties.
- Simplified the rendering of stroke rows by replacing `StrokeControls` with `StrokeRow`, focusing on essential stroke attributes.
- Improved the handling of stroke selection and removal, ensuring the inspector closes appropriately when strokes are modified.
- Enhanced overall code organization, setting the stage for future enhancements.
- Added a new `addSettings` function in the `ExportPanel` to streamline the application of default export templates and open the inspector.
- Updated the `handleAppendFill`, `handleAppendShadow`, and `handleAppendStroke` functions to capture the inserted elements and set them as picked, improving user interaction and state management.
- Refactored the `GradientFillPicker` to spawn a color picker upon stop insertion, enhancing the user experience when managing gradient stops.
- Improved overall code organization and readability across affected components, setting the stage for future enhancements.
- Introduced a new `editTransform` function to streamline the editing of transform properties (x, y, width, height, rotation) for entities, ensuring keyframes are synchronized correctly during user interactions.
- Refactored existing interaction functions to utilize `editTransform`, enhancing the consistency and readability of the code.
- Updated the `nudgeSelection` function to apply transformations using the new method, improving the handling of animated nodes during nudging.
- Improved overall code organization and readability across affected components, setting the stage for future enhancements.