- Replaced direct entity spawning with a new `createEntity` function for improved clarity and consistency.
- Updated the handling of `<scene>` and `<rect>` elements to utilize the new entity creation approach, ensuring proper component addition and resizing.
- Streamlined child entity management by refining the append and remove logic, enhancing overall document interaction.
- Removed the `<rect>` element's promotion to a scene, simplifying the element structure.
- Introduced `<scene>` as a new top-level element under `<stage>`, allowing for clipped, playable frames in compositions.
- Updated `RuntimeDocument` to handle `<scene>` creation and management, ensuring proper entity spawning and timeline ownership.
- Enhanced type definitions in the JSX package to include `SceneProps`, improving integration with the new scene functionality.
- Refactored entity management methods to support the new scene structure and ensure correct parent-child relationships in the document.
- Updated camera control functions to utilize the new useDocument hook for reporting camera edits.
- Enhanced CameraController to report camera matrix changes directly to the document, ensuring real-time updates.
- Refactored InspectorHeader and BackgroundSettings to improve clarity and consistency in camera and background management.
- Introduced CameraMatrix type for better type handling in camera-related operations, enhancing overall code quality.
- Added support for writing project edits back to JSX, allowing real-time updates from the editor to the source files.
- Introduced new `writeProject` function to handle edits, ensuring changes are reflected in the project's JSX without triggering a full compile.
- Updated `main-channels` to include a new `PROJECTS_WRITE` channel for handling write requests.
- Enhanced `RuntimeDocument` to manage edits and maintain a connection between the editor and the JSX source.
- Improved type definitions in the JSX package to support new source properties, ensuring better integration with the editing workflow.
- Updated BackgroundSettings to utilize the new useDocument hook for managing background properties.
- Enhanced RuntimeDocument to streamline background color parsing and setting, ensuring consistent handling of background traits.
- Refactored mount function to create RuntimeDocument instances through a dedicated factory method, improving clarity and encapsulation.
- Adjusted color parsing logic to handle both string and number inputs, enhancing flexibility in background color management.
- Revised the description in package.json for @diffusionstudio/jsx to clarify its role in authoring Diffusion Studio compositions.
- Enhanced README.md to better explain the package's purpose and clarify that it carries no renderer.
- Deleted obsolete document.ts, elements.ts, and renderer.ts files to streamline the codebase and remove unused components.
- Updated index.ts to reflect changes in exports and improve clarity on the authoring surface and hooks provided by the package.
- Introduced CameraController to manage camera input and gestures, enhancing user interaction with the canvas.
- Updated Canvas component to include CameraController alongside EngineCanvas for improved functionality.
- Refactored InspectorHeader to utilize new camera scaling and zooming methods, streamlining the zoom management process.
- Enhanced camera-related hooks and actions for better integration with the new camera system.
- Updated documentation and comments to clarify the new camera management approach and its implications for component interactions.
- 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 systems and actions to eliminate checks for the Deleted trait in entity queries, simplifying the logic and improving performance.
- Adjusted the handling of entity collections to ensure proper management of active entities without relying on soft deletion.
- Enhanced documentation to clarify the changes in entity lifecycle management and the implications for system behavior.
- 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.
- Updated the `RuntimeDocument` class to manage entities directly, removing the `SceneNode` interface for a more straightforward approach.
- Simplified the `createElement` and `insertNode` methods to work with `Entity` types, enhancing clarity and reducing complexity.
- Improved background handling by directly setting the `Background` trait in the world.
- Refactored methods for node management, ensuring better integration with the entity system and removing deprecated code.
- Enhanced the `getParentNode` and child retrieval methods for improved hierarchy management.
- Updated the `setFill` method in `RuntimeDocument` to directly manage the entity's `Color` trait, simplifying fill handling.
- Introduced `renderIntrinsicFill` function to ensure the geometry's solid fill is rendered correctly beneath paint sub-entities.
- Enhanced text rendering to support intrinsic fills, allowing for better visual consistency in text elements.
- Updated comments and documentation for clarity on the role of the `Color` trait in rendering.
- Introduced new JSX_VERSION and SOLID_VERSION constants for better version management in package.json.
- Updated package.json to use @diffusionstudio/jsx for JSX support, ensuring compatibility with the latest features.
- Added jsxImportSource to tsconfig for improved JSX handling.
- Removed outdated TYPES definition and integrated StageProps into the JSX namespace for better type management.
- Commented out the SceneInitOverlay in Canvas component to streamline rendering.
- Integrated useProject hook in EditorPage for improved project context handling.
- Removed ProjectLoader from ProjectPage to simplify project management.
- Updated project exports to include use-project instead of loader.
- Deleted the unused ProjectLoader component to clean up the codebase.
- Renamed the default export function in the starter template from Scene to Project for clarity.
- Updated StageProps interface to include a background property for customizable canvas color.
- Removed redundant project-related UI elements from the dashboard view to streamline the user experience.
- Simplified the ProjectLoader component by eliminating unused camera fitting logic and related comments.
- Enhanced the RuntimeDocument class to better manage the stage and rect entities, including background handling.
- Replaced HomePage with DashboardPage as the main entry point in app.tsx.
- Introduced ProjectPage for project-specific routes.
- Updated routing logic to utilize useParams for project identification.
- Removed deprecated dashboard component files and adjusted related imports.
- Enhanced project management features in the dashboard, including navigation and project handling.
- Updated context imports to use dapi instead of editor-api for consistency.
- Bumped version numbers for all packages to 0.132.1 in package-lock.json.
- Introduced new project management channels in main-channels.ts for creating, listing, and compiling projects.
- Enhanced main.ts to handle new project-related requests.
- Updated dashboard projects view to support project creation, deletion, and duplication with improved UI interactions.
- Integrated project management functionality into the file menu for easier access.
- Added a new reconciler package to manage project content on disk.
- Improved project ID handling in use-project-id.ts to ensure valid folder names.
Updated the BackgroundSettings component to replace the deprecated engine context with the new Koota trait system for background management. Adjusted color assignment logic to use the new trait API, enhancing maintainability and performance. Additionally, modified the use-trait and use-trait-effect hooks to improve type inference and support for relation pairs, ensuring better integration with the entity and world systems.
Eliminated the `compile-project.ts` and `open-folder.ts` files from the CLI, streamlining the codebase. Updated the README to reflect changes in CLI commands, including the removal of outdated examples. Adjusted the API to enhance clarity and maintainability by consolidating asset handling functions and removing unused types. This refactor improves the overall architecture and reduces complexity in the CLI interactions.
Added exports for the new `contact-sheet` module in the encoder package and included `audio-sync` in the runtime media index. Updated migration documentation to reflect these changes, ensuring better organization and functionality for media handling within the application.
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 a comprehensive playback system that advances root playheads, manages local time and visibility for entities, and synchronizes audio and video decoders. The system supports looping and handles audio playback state transitions. Updated the index files to export the new playback module and integrated it into the existing systems structure, enhancing media handling capabilities within the runtime package.
Added new media-related exports and traits, including audio, video, and caption handling. Introduced the 'colord' dependency for color manipulation and '@webgpu/types' for WebGPU support. Enhanced text rendering capabilities with improved text style management and layout functions. Updated the observer pattern to manage media resources effectively during entity lifecycle events, ensuring proper disposal and resource management.
Introduced a new `observers.ts` module to handle runtime invariants through koota event subscriptions, including cache upkeep, authored-to-computed mirrors, and time-range reactions. Updated `createRuntimeWorld` to register observers, ensuring proper entity management during lifecycle events. Refactored actions to leverage observer-driven behavior, enhancing performance and maintainability. Adjusted cache rebuilding logic to exclude entities during updates, improving efficiency in hierarchy changes.
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.
Added new exports for math primitives and deterministic systems in the runtime package. Introduced the transform system with functions for computing local and world transforms, as well as world bounds. Updated the createRuntimeWorld function to initialize necessary traits, improving the overall functionality and organization of the codebase.
Added new exports for query predicates, hierarchy, and timeline indexing in the runtime package. Removed the deprecated overlap query file and updated the utils index to include sorting utilities. This refactor improves the organization and functionality of query handling within the application.
Introduced a new module for world serialization in the runtime package, including the `serializeEntity` function and the `EntityRecord` interface. Updated the index file to export the new serialization module, enhancing the capabilities for entity management and persistence in the application.
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.
Added 'mediabunny' as a dependency in both package-lock.json and package.json. Expanded trait exports in the runtime package to include new modules for capture, traits, and timing, improving the overall functionality and organization 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.
Added `publishConfig` for public access in package.json and enhanced build scripts with prepublish and packing hooks. Removed outdated example code and streamlined the README.md to focus on essential package functionality and tooling, improving clarity for users.
Deleted the `09-html-scene.tsx` example file, which demonstrated an HTML scene as a mount root. Updated the README and related documentation to remove references to this example and clarified that only `<rect>` can be promoted to a scene. Adjusted descriptions in the JSX documentation to reflect this change.
Implemented a new `whenReady` method in the HtmlHost class to ensure all images in its subtree are decoded before rendering updates. Updated the playback system to utilize this method for improved rendering reliability. Enhanced the WorldDocument class to manage image sources more effectively, including support for various input types and object URL management. Updated documentation to reflect changes in image handling and source resolution.
Updated the audio generation functionality to include an optional `duration` parameter in the `GenerateAudioOptions` type. This change allows users to specify the duration for audio prompts, improving flexibility in audio generation. Additionally, validation was added to ensure the duration is a positive number. Updated related documentation to reflect this new option.
Updated the `sceneAudioFingerprint` and `transcribeScene` functions to accept an optional `seed` parameter, allowing for more flexible transcript caching. Adjusted related logic in the `WorldDocument` class to utilize the seed for generating unique transcription keys. Additionally, updated documentation to reflect the new `seed` prop in the captions API, clarifying its role in bypassing cached transcripts.
Updated multiple files to transition from using `<scene>` elements to `<rect>` elements with the `scene` property, promoting rectangle geometries to mount roots. This change enhances the JSX API by clarifying the role of scenes and ensuring consistency across examples and documentation. Additionally, modified related documentation to reflect the new usage and constraints of the `scene` property.
Revised the README to replace "media compositor" with "multimedia editor" and improved the description of the `dapi` CLI. Enhanced the `WorldDocument` class in the JSX utility by updating the `setComponent` logic to conditionally handle trim properties based on the presence of timing attributes, improving the functionality of scene transcriptions. Updated the `CaptionsProps` type to include new timing properties for better integration.
Added entries for the koota package and the @diffusionstudio/koota-solid package, specifying their versions, licenses, and peer dependencies. This update ensures that the project has the necessary dependencies for enhanced functionality and compatibility.
Introduced a new `<shaderPaint>` element that applies a WGSL fragment shader to the media paint directly below it in the paint stack. Implemented support for shader uniforms and updated the rendering logic to handle shader paints in the engine. Enhanced the API to include shader-related methods and types, ensuring seamless integration with existing media elements. Updated documentation and examples to demonstrate the new shader capabilities, improving user guidance and showcasing practical implementations.
Updated all JSX elements in the documentation and codebase to use lowercase tags (e.g., `<Scene>` to `<scene>`, `<Video>` to `<video>`, etc.) for uniformity and adherence to the new standards. This change enhances clarity and consistency across the JSX API, ensuring that users have a cohesive experience when working with the elements. Updated related documentation to reflect these changes.
Added a `verticalAlign` property to the `<Captions />` component, allowing for customizable vertical positioning of caption blocks. Updated the relevant API, decoders, and serialization logic to support this new feature. Enhanced documentation to reflect the changes and clarify usage, improving the overall flexibility and usability of the captioning system.
Introduced `offsetX` and `offsetY` as new animatable properties for visual elements, allowing for render-time translations without altering layout boxes. Updated the documentation to reflect these changes, ensuring clarity on their usage. Enhanced the type definitions and functionality in the editor API to support these new properties, improving the overall flexibility of animations in the application.
Modified the JSX runtime and related documentation to clarify that `<audio>` and `<video>` tags are not supported within paint hosts. Users are now directed to use the `<Audio>` and `<Video>` composition elements for media playback, ensuring better adherence to the paint host's functionality and improving overall documentation clarity.
Refactored JSX elements from lowercase to PascalCase, including `<scene>` to `<Scene>`, `<text>` to `<Text>`, and others, to improve consistency and clarity in the codebase. Updated related documentation to reflect these changes, ensuring that the usage of JSX elements aligns with the new naming conventions. This update enhances the overall readability and usability of the JSX API.
Updated the `dapi mount` command to ensure the reactive graph remains live after execution, enhancing the persistence and re-execution of modules across contexts. Simplified the `dapi node insert` command to accept only inline JSX tags, removing the `export default` requirement and clarifying its non-persistent nature. Adjusted related documentation to reflect these changes, ensuring consistency and clarity in usage. This refactor improves the overall usability and understanding of the mounting and insertion processes in the application.
Replaced all instances of `<canvas>` and `<canvasPaint>` with `<surface>` and `<surfacePaint>` across the codebase. Updated related documentation to reflect this change, ensuring consistency in naming and usage. Adjusted rendering logic and component imports to support the new surface functionality, enhancing the drawing capabilities for various context types (2D, WebGL, WebGPU). This refactor improves the overall clarity and usability of the rendering system.