Skip to main content

Studio SDK 1.3.0

  • Added createHeadlessEditor through the dedicated @grapesjs/studio-sdk/headless entry point for importing, editing, and exporting web and MJML email projects in Node.js without a browser DOM. It includes plugins, supports custom plugin configuration, and preserves self-closing MJML components and HTML entities.
  • Extended stack traits with dynamic itemFields, custom field components, value transformations, and configurable item labels and popover content. Stack fields now refresh after undo and redo.
  • Added layout.components.contextMenu and layout.components.dialog renderers for replacing component context menus and SDK dialogs with custom React content or Studio layouts.
  • Added left and right canvas spot slots, with top, center, and bottom alignment, for placing custom controls beside selected components.
  • Enabled React-based UMD plugins to share the standalone SDK's bundled React runtime, avoiding a second React instance when loading plugins through script tags.
  • Added StudioWithState and the withState layout component for sharing local state between custom controls.
  • Added a tabs variant to StudioDevices, with device icons and tooltips. StudioTabs now supports icons, tooltips, and horizontal scrolling when tabs exceed the available width.
  • Added StudioCommands.getGlobalStylesConfig and setGlobalStylesConfig for reading and updating Global Styles at runtime.
  • Fixed StudioButton so its active state follows changes to the active prop, and added support for ARIA attributes.
  • Expanded custom-theme styling for interactive controls, fixed active-tab theme styles, and ensured dialog className values are applied to the dialog root.