- Replaced all instances of importing from 'koota' with '@diffusionstudio/koota' across various components and contexts.
- Updated package-lock.json to reflect the addition of '@diffusionstudio/koota' and removal of the previous 'koota' package.
- Ensured consistency in type imports and dependencies throughout the codebase, enhancing maintainability and clarity.
- Introduced a new ticker system to manage playback timing and state updates within the document.
- Refactored the mount function to integrate the ticker, ensuring it advances with each frame.
- Removed the deprecated live mounts utility, streamlining the codebase and enhancing performance.
- Updated the playback system to utilize the new ticker for consistent frame updates across entities.
- 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.
- 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.
- 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 support for asset manifests with read and write capabilities, allowing for better organization of project assets.
- Introduced new project channels for manifest reading and writing, enhancing communication between main and renderer processes.
- Improved file system interactions with new methods for listing, statting, and removing project files, streamlining asset management.
- Updated package dependencies to include `yaml` for manifest handling and linked `@diffusionstudio/assets` for asset management.
- Refactored existing code to integrate new asset handling features and improve overall project structure.
- Introduced `SourceMove` interface to facilitate element movement within the JSX structure, allowing elements to be repositioned without altering their content.
- Updated `DocumentEditor` to support reparenting of entities, enabling dynamic changes in the entity hierarchy while maintaining accurate reporting of moves.
- Refactored `EditWriter` to handle move edits alongside insertions, ensuring proper management of element positions during project writes.
- Improved cursor update logic in `CameraController` to reflect the current interaction state, enhancing user experience during editing operations.
- Streamlined event handling in the engine to support new pointer event types, improving responsiveness to user interactions.
- Removed obsolete `use-running` hook to simplify the codebase and improve clarity in engine state management.
- Replaced `switchActiveScene` with a new `activate` method in `DocumentEditor` to manage the active entity more effectively.
- Updated `DrawOverlay` and `SceneInitOverlay` components to utilize the new `activate` method, streamlining scene selection.
- Introduced `Active` trait to represent the active entity directly, enhancing clarity in entity management.
- Refactored related hooks and actions to align with the new active entity handling, improving overall code consistency and maintainability.
- Replaced references to `DocumentRoot` with `Stage` across the codebase, aligning with the new stage model.
- Updated entity management and hierarchy functions to reflect the transition from document-based to stage-based parenting.
- Adjusted comments and documentation to clarify the role of the stage in the entity structure.
- Enhanced queries and actions to utilize the new stage terminology, ensuring consistency throughout the runtime environment.
- Updated various components and systems to replace direct world access with the Root entity for managing traits like Camera and Background.
- Enhanced BackgroundSettings and useCamera hooks to reflect the new approach in trait retrieval.
- Simplified entity management in the RuntimeDocument and other systems by ensuring consistent access to the Root entity.
- Removed deprecated getDocument function and adjusted related logic for improved clarity and performance.
- Updated various components to replace direct world access with getDocument for managing Camera and Background traits.
- Enhanced BackgroundSettings and useCamera hooks to reflect changes in trait retrieval.
- Adjusted encoder and rendering systems to ensure consistent access to document-level state.
- Improved documentation comments to clarify the new approach to managing document traits.
Added a new encoder package (`@diffusionstudio/encoder`) for handling media encoding, separating it from the main runtime. Updated the migration documentation to reflect the new encoder structure and its integration with the runtime. Enhanced the render system to support hit regions and callback-less interactions, improving the rendering process. Updated various system modules to ensure proper integration and functionality within the runtime package.
Added new asset actions for managing in-memory metadata, including allocation, appending, and removing assets. Introduced clipboard functionality for copying and pasting entity subtrees. Enhanced folder management with unique naming and moving capabilities. Updated package dependencies to include 'sqids' for unique ID generation, improving asset handling and organization within the runtime package.
Introduced a comprehensive motion system for keyframe interpolation and animation, leveraging the animejs library. Added new utilities for text animations, including functions for revealing words and characters, and scrambling text. Updated the runtime's world and queries to integrate the new document root trait, improving the structure and functionality of the animation system.
Expanded the runtime package by adding new exports for world creation and singleton traits, including Project, Mode, ActiveScene, Camera, and more. Introduced font utilities and updated the utils index to include live-mounts, improving the structure and functionality of the codebase.
Introduced a new package, @diffusionstudio/runtime, with version 0.1.0, including its dependencies and devDependencies. Updated package-lock.json to reflect this addition.