Continuous Releases from main
feat: add plugin data management functionality and new table definition (#666)
* feat: add plugin data management functionality and new table definition
* refactor: remove unused import from tables.ts
* refactor: rename rawData to data in StudioCMSPluginData and update related functions
* refactor: clarify documentation for plugin ID existence check in SDKCore_PLUGINS
* refactor: enhance validation options for plugin data parsing and update related functions
* refactor: improve validator check in parseData function for better clarity
* refactor: enhance documentation and structure of usePluginData methods for clarity and consistency
* refactor: remove unnecessary type assertions in parseData function for cleaner code
* refactor: streamline ID generation and enhance data selection logic in SDKCore_PLUGINS
* refactor: enhance parseData function signature for improved clarity and maintainability
* refactor: enhance PluginDataEntry interface and improve data handling in SDKCore_PLUGINS
* refactor: enhance usePluginData function to support flexible entry management and improve data retrieval logic
* refactor: update ID formatting in SDKCore_PLUGINS for consistent entry management
* refactor: improve ID handling in usePluginData function for better clarity and consistency
* update jsdocs
* refactor: simplify return structure in SDKCore_PLUGINS for improved clarity
* refactor: introduce SelectPluginDataRespondOrFail enum and enhance validation logic in SDKCore_PLUGINS
* refactor: enhance type definitions and add documentation for JSON and effect schema validators in SDKCore_PLUGINS
* refactor: reorganize and enhance SelectPluginDataRespondOrFail enum and parsedDataResponse function with improved validation logic
* refactor: export isJsonValid and getValidatorFn functions for improved accessibility
* refactor: consolidate and enhance plugin data handling with improved validation and type definitions
* refactor: update function paths in getValidatorFn and parseData for improved module organization
* refactor: enhance plugin data handling with caching support and improved type definitions
* refactor: add initPluginDataCache function to initialize and populate plugin data cache
* refactor: update initPluginDataCache to load plugin data in batches with improved caching logic
* refactor: allow optional batch size parameter in initPluginDataCache function
* refactor: add clearPluginDataCache function to manage plugin data cache clearing
* refactor: add effect names to plugin data handling functions for improved clarity
* refactor: improve formatting and readability of function definitions in SDKCore_PLUGINS
* refactor: enhance plugin data retrieval logic with improved cache handling and validation
* refactor: streamline plugin data handling by consolidating database query functions and improving cache management
* refactor: simplify cache data retrieval logic by removing unnecessary conditional block
* refactor: improve readability and maintainability by standardizing import quotes and adding noUndefinedEntries utility for filtering
* refactor: enhance plugin data handling by restructuring database query functions and improving type definitions
* refactor: add documentation for database operations in SDKCore_PLUGINS class
* refactor: update getEntriesPluginData method documentation and remove redundant definition
* refactor: adjust default batch size for plugin data cache initialization
* refactor: enhance generatedId documentation to specify ID format
* chore: update dependencies for @astrojs/db, @astrojs/node, and astro to latest versions; refactor to align with available types from @astrojs/db
* chore: update package dependencies and add missing peer dependencies for @libsql/client and drizzle-orm
* chore: update package keywords in multiple packages
* chore: update undici package from 7.11.0 to 7.12.0 and remove deprecated version
* chore: update @effect dependencies to latest versions
- Updated @effect/experimental from ^0.54.0 to ^0.54.3
- Updated @effect/platform-node from ^0.94.0 to ^0.94.1
- Updated @effect/rpc from ^0.68.0 to ^0.68.2
- Updated effect from ^3.17.3 to ^3.17.6
* chore: update skip2 logo URL in README.md
* chore: refactor watch config utility to builder pattern for consistency with config resolver
* chore: update @studiocms/web-vitals package version to 4.3.0
* feat: add StudioCMSPluginData table and SDK utilities for dynamic table typing
* apply code suggestions
* chore: add noErrorTruncation option to TypeScript configuration
* feat: enhance plugin data handling with improved type validation and add StudioCMS project data interface
* chore: add comment for future testing plans in db.ts
* feat: refactor UseSDK to improve plugin data retrieval with separate functions for category and single entry
* feat: restructure StudioCMSProjectData schema for improved type validation and organization
* feat: rename StudioCMSProjectData to StudioCMSProjectDataSchema for clarity and update related types
* refactor: rename plugin data accessor functions for clarity and consistency
* feat: update ValidatorOptions type to allow default Schema.Fields for improved flexibility
* feat: refactor plugin data types and validation options for improved type safety and consistency
* refactor: remove redundant validator export for cleaner code
* refactor: remove unused simplifyEffectSchemaReturn function for cleaner code
* feat: add InferType class for simplified type inference in plugin data operations
* feat: enhance InferType class to include usePluginData for improved type handling
* refactor: simplify getAll method by directly using getEntries
* refactor: restructure InferType class to improve schema handling and maintain type integrity
* refactor: update InferType class documentation for clarity and accuracy in type inference
* refactor: reorganize schema definitions for StudioCMS project data and enhance plugin data access methods
* refactor: enhance UseSDK documentation for clarity and usage examples
* refactor: enhance plugin data access methods by introducing getEntry and improving data retrieval logic
* refactor: simplify ID generation in buildReturn function for plugin data entries
* refactor: rename ID variable for clarity in plugin data entry methods
* refactor: enhance getEntries method to support filtering of plugin data entries
* refactor: add optional filter parameter to _getEntries method for enhanced data retrieval
* refactor: improve formatting and readability of getEntries method in SDKCore_PLUGINS
* refactor: simplify load and store methods in UseSDK for improved readability
* refactor: streamline InferType class for improved type inference in plugin data handling
* refactor: improve error handling in InferType constructor for invalid schema
* refactor: add updateOrInsert function for streamlined plugin data entry management in UseSDK
* refactor: define type for plugin data entry using inferred schema in UseSDK
* refactor: simplify store method in UseSDK for improved readability and performance
* refactor: update return value in updatePluginDataEntry to use parsed data for consistency1 hour ago0b1574b
refactor: optimize user-quick-tools widget (#668)
* refactor: optimize user-quick-tools widget with improved permission checks and styling
* refactor: enhance user-quick-tools initialization and rendering for improved performance and UX
* refactor: enhance user-quick-tools initialization with user interaction and configurable strategies
* refactor: update user-quick-tools initialization comment for production clarity
* refactor: enhance user-quick-tools with click protection and visual feedback
* refactor: improve user-quick-tools registration and enhance click protection with configurable delays
* refactor: update user-quick-tools registration and initialization for improved consistency
* refactor: update user-quick-tools interaction events for improved user engagement tracking
* refactor: change click protection settings to protected for configurability
* refactor: improve user interaction handling and enhance SVG safety in UserQuickTools1 hour agodf69c22
Upgrade buildkit (#669)
* feat: implement Node.js testing system for StudioCMS packages
* fix: update CLI help output to include test options
* fix: update CLI test output to reflect argument shorthand options
* refactor: enhance documentation with detailed JSDoc comments for functions and parameters
* fix: correct test glob pattern index in test function
* fix: handle errors in CLI entry point by logging and exiting4 hours agod757989
refactor: convert robots.txt configuration to Zod schema and clean up related code (#670)
* refactor: convert robots.txt configuration to Zod schema and clean up related code
* refactor: update StudioCMS robots configuration function with detailed documentation
* refactor: enhance StudioCMSDefaultRobotsConfig with error handling and detailed comments4 hours ago3a6f0cf
WYSIWYG Plugin migration (#662)
* migrate wysiwyg plugin to main repo, and drop paid StudioSDK support
* feat: migrate wysiwyg plugin to primary StudioCMS repo and remove GrapesJs-StudioSDK support
* fix: add 'wysiwyg' package to atStudioCMSPackages array
* fix: update version of @studiocms/wysiwyg to 0.1.0-beta.23 and add it to fixed dependencies
* fix: update component paths and add wysiwyg plugin to configuration
* feat: implement new WYSIWYG editor component and update styles
* feat: enhance WYSIWYG editor with component registry and improved settings
* feat: enhance NewEditor and partial routes to support slot rendering and improved inline storage
* remove old editor component and rename newEditor to Editor
* fix: update styles path to absolute and change prerender setting to false
* chore: remove GrapesJS StudioSDK usage instructions from README
* refactor: move style manager settings to common directory and update import paths
* feat: refactor editor settings and integrate base configuration for improved component management
* refactor: remove unused main.css file to streamline styles
* refactor: simplify component registration by removing prefix from DomComponents and BlockManager
* Refactor code structure for improved readability and maintainability
* feat: add fullscreen command to editor toolbar for enhanced user experience
* fix: adjust editor height to 100% and correct min-height in styles for better layout
* feat: add import and export template commands to editor toolbar
* fix: enhance validation for componentKey to ensure it is not empty or whitespace
* feat: implement component registration and rendering in the Astro environment
* feat: enhance test component with Debug props display and clean up layout
* feat: refactor block properties handling and improve common properties structure
* feat: refactor WYSIWYG editor components and enhance API integration
* feat: enhance getEditorElmData function documentation for clarity and detail
* feat: reorganize WYSIWYG types and update imports for improved structure
* feat: enhance component registration and improve option validation in WYSIWYG plugin
* feat: simplify route registration by removing redundant prerender property
* feat: add export for component-registry/types
* feat: rename tempLit to baz in Props interface for clarity
* Refactor WYSIWYG editor components and utilities
- Removed the `component-preview.ts` file and integrated its functionality directly into the component registry.
- Consolidated the `PARTIAL_PATH` and `GRAPES_CSS_PATH` constants into a new `consts.ts` file.
- Updated the `editor-utils.ts` to include a common block properties object and refactored the `buildBlockProps` function.
- Enhanced error handling in the `preRenderer` function to provide more informative messages.
- Reintroduced utility functions `firstUpperCase` and `parse` into a new `utils.ts` file.
- Adjusted imports across various files to reflect the new structure and ensure consistency.
- Cleaned up unused imports and improved type definitions for better clarity and maintainability.
* start of more code cleanup and organization
* refactor: remove typed plugin components and traits, consolidate into new structure
- Deleted the existing typed components, index, traits, and utils files to streamline the codebase.
- Introduced a new typed component implementation in a single file for better maintainability.
- Updated the rich text editor to include a color picker and enhanced formatting options.
- Refactored CSS styles for improved consistency and readability.
- Added a new license file for the RTE components.
* feat: integrate TUI Image Editor and update rich text editor options
* Refactor WYSIWYG editor blocks and remove deprecated files
- Added new column blocks (1, 2, 3, 3-7) and other basic blocks (text, link, image, video, map) to the GrapesJS editor.
- Updated the GrapesBlocksOptions interface to include new properties for flexGrid, stylePrefix, addBasicStyle, and labels for new blocks.
- Removed the old blocks plugin and its associated files to streamline the codebase.
- Adjusted the Editor.astro component to integrate the new blocks without relying on the removed blocks plugin.
- Cleaned up imports and ensured that the new blocks are properly registered and styled within the editor.
* feat: add countdown block and component, remove deprecated countdown plugin
* refactor: consolidate default options into defaultGrapesBlocksOptions
* feat: introduce SDKCore_MIDDLEWARES for cache initialization and management
* Remove forms plugin and related components from WYSIWYG editor; add countdown and custom code components.
* Refactor WYSIWYG Editor: Clean up imports, add basic and extra blocks, implement form components, and enhance command functionalities
- Removed unused imports in Editor.astro and streamlined editorPlugins.
- Introduced basic blocks (link, quote, text section, columns) in grapesBlocks.
- Added extra blocks (tooltip, typed, countdown, custom code) with respective functionalities.
- Implemented form components (input, textarea, select, button, checkbox, radio) in grapesBlocks.
- Created commands for clearing the canvas and managing custom code.
- Added device commands for responsive design handling.
- Defined tooltip selectors and form traits for enhanced user interaction.
- Established typed traits for managing string inputs in the editor.
* Refactor: Remove Tabs Plugin and Related Components
- Deleted the tabs plugin and all associated components, including Tab, TabContainer, TabContent, TabContents, and Tabs.
- Removed related files such as index.ts, options.ts, and types.ts from the tabs directory.
- Introduced a new implementation for tabs in the grapesBlocks directory, consolidating functionality and improving organization.
- Updated block definitions and component loading logic to accommodate the new structure.
* refactor: enhance component rendering with custom code block and optimized fetch handling
* refactor: improve component HTML fetching logic and error handling in astroComponents
* refactor: enhance WYSIWYG editor components and improve error handling in fetching logic
* refactor: simplify child HTML generation and update component registry parsing
* refactor: consolidate block and command addition logic across components
* refactor: add deepmerge-ts dependency and update related configurations
* refactor: update deepmerge-ts specifier to use catalog reference2 days ago48c47b9
👷 [ci]: Version Packages (beta) (#659)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>last week58c0b22