Releases: GrapesJS/grapesjs
v0.21.8
Added
- Allow
/
in class names by @mahmudz #5433 - Added CSS variables #5437 by @quentin-bettoum
- Support
nomodule
attribute forcanvas.scripts
options - Added a new built-in
delegate
property to Component. Example of usage #5507
Changed
- Updates default layers layout to flex style #5422 by @mapsmarketing
- Update
Component.replaceWith
(now returns always an array of components)
Fixed
- Fixed resizing when zoomed by @UnderKoen #5436
- Trigger
component:styleUpdate
oncomponent.addStyle/setStyle
#5424 - Update rules id with remapped duplicate components in Pages #5425
- Ensure components with script return
id
in HTML export #5441 - Preserve custom styles on text component change #5442
- Prevent crash if block category id is an object builtin method name #5478
- Fix style bg image property with URLs containing parentheses #5497
- Fix default Resizer on style update #5501
- Fix TS type for replaceWith method by @MaxwellTheSecond #5504
- Allow paste when nothing is selected by @lexoyo #5524
- Fix UndoManager start/stop #5530
- Fix built-in RTE with custom rendered components #5536
- Fix autoplay for Youtube videos #5542
- Fix Portuguese translations by @brenoassp #5546
- Avoid triggering
rte:disable
on component move #5545 - Fix performance issues with components having a lot of classes #5525
- Allow ComponentScriptView with custom type attribute #5563
- Spelling fix in docs - Components.md by @bryanjamesmiller #5488
New Contributors
- @mahmudz made their first contribution in #5433
- @UnderKoen made their first contribution in #5436
- @quentin-bettoum made their first contribution in #5437
- @mapsmarketing made their first contribution in #5422
- @bryanjamesmiller made their first contribution in #5488
- @MaxwellTheSecond made their first contribution in #5504
- @brenoassp made their first contribution in #5546
Full Changelog: v0.21.7...v0.21.8
v0.21.7
v0.21.6
Added
- Added unminified module file to the package (
dist/grapes.mjs
) - Support for
@container
CSS at-rule #5372
Fixed
- Fixed script function to string #5352
- Fixed move in Layers #5355
- Wait for the counter update during the load #5385
- Fixed RTE icon TS definition by @peters-ben-0007 in #5358
Full Changelog: v0.21.5...v0.21.6
v0.21.5
Added
- Introduction to Canvas Spots
- Added
editor.Components.canMove
API
Fixed
- Fixed undo/redo when using
component.setClass
#5319 - Prevent default event with undo/redo shortcuts #5325
- Hide badge if
component.badgable
isfalse
#5340 - Fixed canvas scroll on component select from layers #5342
Full Changelog: v0.21.4...v0.21.5
v0.21.4
Added
- Added
config.canvas.allowExternalDrop
option #5242 - Support multiple style values for the same property #4434
Fixed
- Prevent exporting textnodes with
null
#5229 - Ignore current
state
anddevice
for component related styles #5213 - Fix video component import #2357
- Up panels config TS #5269
- Clean inline styles from comments #1577
- Fixes bug with broken autoplay from video component (issue #5268); by @SLain123 in #5270
Full Changelog: v0.21.3...v0.21.4
v0.21.3
Docs
- Update Broken Links for (Component Types, and Commands) by @AbdelrhmanSaid in #5196
- Update rich_text_editor.md by @gxanshu in #5201
Added
- Added
addStyles
option toeditor.Css.setRule
#5173
Changed
- Improve typings by @Julia-Alberici in #5192
- Refactor Traits Collection by @xQwexx in #4983
Fixed
- Fixed
usePlugin is not a function
#5167 - Fixed
PropertyStack
in bundled dts file #5154 - Handle properly Component model
defaults
as functions #5199 - Fixed broken link in README.md by @pfaffmann in #5188
Full Changelog: v0.21.2...v0.21.3
v0.21.2
Docs
- Added Pages module doc
- Updated Plugins doc
- Updated Replace Rich Text Editor doc
Added
- Added experimental
disableTextInnerChilds
option to Components module configuration.
With this option, you're able to decide which inner component inside text should be disabled (eg. no select, no hover, no layer visibility) once edited.grapesjs.init({ // ... domComponents: { // disable all inner childs disableTextInnerChilds: true, // disable all except link components disableTextInnerChilds: (child) => !child.is('link'), } })
- Added
usePlugin
for a better TS support with plugins - Added
Component.forEachChild
method. - Added more TS exports and fixed Editor#setZoom type by @PaulRill00 in #5106
Changed
- Improve TS for
Components.addType
- Updated German locale by @c9a2334 in #5114
- Trigger
component:styleUpdate
on component style changes #4897
Fixed
- Fixed
addStyle(string, string)
#5105 - Take into account scroll data on drop in absolute mode
- Fixed element jumping when resizing on zoomed frame #5103
- Fixed TS autocomplete for editor events
- Fix StyleManager.addProperty TS #5135
Removed
- Removed unused
fonts
folder
New Contributors
Full Changelog: v0.21.1...v0.21.2
v0.21.1
What's Changed
The biggest change we introduce with this release is the complete rewrite of modules to Typescript. This deprecates the old ./index.d.ts
(manually updated) in favor of ./dist/index.d.ts
(generated from the source).
So there are no real changes to the core API itself if not the new TS declaration file which includes type/interfaces changes in order to bring more naming consistency with the code.
This is how you might have used the import of types in the previous version:
import type grapesjs from 'grapesjs';
// plugin
const plugin: grapesjs.Plugin = function (editor: grapesjs.Editor, opt: ...) {...};
Now you can get types directly without specifying the grapesjs namespace (which is the most common way to import types):
import type { Editor, Plugin } from 'grapesjs';
// plugin
const plugin: Plugin = function (editor: Editor, opt: ...) {...};
Added
- Added new
noCustom
option toComponent.getName()
in order to skip custom name assigned to the component. - Added
rename
method to SelectorManager - Added
fetchOptions
to AssetManager configs - Added options to ExportTemplate command
Fixed
- Clear deferred stuff on editor destroy #4940
- Fixed slider in StyleManager #4965
- Fixed checkbox trait values on undo/redo #4972
- Fixed sorter placeholder with grid elements #4991
- Fixed
showOffsetsSelected
#4998 - Fixed bug with top/left being sticky when resizing from l/t side by @PaulRill00 in #5017
- Fixed for when no implicit type by @wilsonsergio2500 in #4903
- Fixed broken links in the docs by @lexoyo in #4914
- Fixed typing of trigger to include
args
by @Zaxcoding in #4910 - Fixed broken links in the docs by @himansh-gjr in #4963
Other
- TS Types: Extends the type of property that scripts/styles can takes by @estebgonza in #4924
- Convert Trait test into TS by @xQwexx in #4899
- Update Components.md by @jacobisknight in #4952
- docs: Fix a few typos by @timgates42 in #4957
- Module cleanup by @xQwexx in #4985
- improve typing by @Singwai in #5010
New Contributors
- @wilsonsergio2500 made their first contribution in #4903
- @Zaxcoding made their first contribution in #4910
- @estebgonza made their first contribution in #4924
- @jacobisknight made their first contribution in #4952
- @himansh-gjr made their first contribution in #4963
- @PaulRill00 made their first contribution in #5017
Full Changelog: v0.20.4...v0.21.1
v0.20.4
What's Changed
- Add new locale for Hebrew language by @Oren-Hahiashvili in #4831
- Add missing colorPicker option properties in index.d.ts by @KaoDeo in #4849
- small grammar fix by @Julia-Alberici in #4870
- small grmmar fix by @Julia-Alberici in #4871
- Adds more @silexlabs plugins (fonts and symbols) by @lexoyo in #4877
- small clarification by @javipons22 in #4884
- types fix by @Julia-Alberici in #4886
- Pass storage response to
storage:load
/storage:store
events #4826 - Add
@
toSelector.escapeName
#4865
New Contributors
- @Oren-Hahiashvili made their first contribution in #4831
- @KaoDeo made their first contribution in #4849
- @Julia-Alberici made their first contribution in #4870
- @javipons22 made their first contribution in #4884
Full Changelog: v0.20.3...v0.20.4