Alex Ritter
047dc35412
Refactor Traits Collection ( #4983 )
* Refactor Traits Collection
* Fix css prefix
* Fix trait undo and add test for it
---------
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>
3 years ago
Artur Arseniev
763865d903
Add `addStyles` option to `editor.Css.setRule`. Closes #5173
3 years ago
Artur Arseniev
f94b06e24e
Up tests
3 years ago
Artur Arseniev
cf0198348c
Up css_composer tests
3 years ago
Artur Arseniev
ec5f13e180
Move css_composer/index to TS
3 years ago
Artur Arseniev
df45b8f894
Up panels test
3 years ago
Artur Arseniev
48c1f061c4
Refactor Panels TS #5144
3 years ago
Artur Arseniev
1749a58c02
Up panel/index to TS
3 years ago
Artur Arseniev
cfc247089c
Add tests for usePlugin
3 years ago
Artur Arseniev
4663f45b56
Move plugins tests
3 years ago
Artur Arseniev
d29dff1f66
Up grapesjs test file
3 years ago
Artur Arseniev
d3168ff4ba
Up ComponentTextView tests
3 years ago
Artur Arseniev
df346108a1
Up Components test
3 years ago
Artur Arseniev
6363869886
Fix `addStyle(string, string)`. Closes #5105
3 years ago
Alex Ritter
95633b40ba
Module cleanup ( #4985 )
* module cleanup
* Fix ??
---------
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>
3 years ago
Alex Ritter
379bfc2e84
Convert Trait test into TS ( #4899 )
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>
3 years ago
Artur Arseniev
437dcae4ea
Add `@` to `Selector.escapeName`. Closes #4865
3 years ago
Artur Arseniev
de85441d8b
Fix test
3 years ago
Artur Arseniev
bb2b7d258d
Fix tests
3 years ago
Artur Arseniev
a0d6e46f1e
Update style manager tests
3 years ago
Artur Arseniev
7f3d48e0e3
Fix style manager tests
3 years ago
Artur Arseniev
a1d18dd0ae
Update command tests
3 years ago
Artur Arseniev
33a4a3257b
Up Storage tests
3 years ago
Artur Arseniev
979ebcd3c7
Fix storage tests
3 years ago
Artur Arseniev
235fd0162b
Fix custom component related style creation
3 years ago
Artur Arseniev
de1cdc2e3c
Update Css TS
3 years ago
Artur Arseniev
afd03af7ed
Up ts in components module
3 years ago
Artur Arseniev
87b096ca99
Update dom_components test file
3 years ago
Artur Arseniev
0f4f38a432
Fix CSS rule creation with at-rule different from media. Closes #4727
4 years ago
Artur Arseniev
9ff4a17662
Up tests
4 years ago
Artur Arseniev
e417e22824
Update parser tests
4 years ago
Artur Arseniev
a37bb15b66
Fixes for tests
4 years ago
Artur Arseniev
6d884510cc
Update i18n
4 years ago
Artur Arseniev
08ef65e571
Up tests
4 years ago
Artur Arseniev
10ec5890cb
Migrate Asset Manager to TS ( #4604 )
* Update assets config
* Update index TS
* Up TS
* Init TS update for assets index
* Move assets models to TS
* Update AssetView
* Update AssetImageView
* Update AssetsView
* Update FileUploaderView
* Update FileUploader
* Fix asset tests
* Use data-input attribute for events in FileUploader
* Up
* Update JSDoc config link
* Up docs
4 years ago
Artur Arseniev
e57a30ce9c
Remove console from tests
4 years ago
Artur Arseniev
38ab2cfc07
Up tests
4 years ago
Iagor Moraes
0af8ee85c5
Add correct mobile first sort on CSS rules view ( #4521 ). Closes #2774
fix: add correct mobile first sort on css rules view
4 years ago
Collins Lagat
d3abac15ef
Fix: `"TypeError: this.parseStyle is not a function"` when `setStyles` is called internally (bug introduced in GrapesJS v19.5) ( #4520 )
* wrap `ParserHtml().parseStyle` around a class method
currently when the model is extended via the `.extend` method, the `parseStyle`
property is "hoisted" from the parent to the child. ideally, it should
be be located on the parent which is the `prototype` of the child. the
consequence of this is that when you run:
`Object.hasOwnProperty.call(child, 'parseStyle')`, you get `true`.
this is problematic as `parseStyle` is required by `setStyle` of
`Dom_Components::Model::Component` which expects `parseStyle` to exist
on its prototype (`StyleableModel`). But `parseStyle` is "hoisted" to be the property
of any component that extends `Dom_Components::Model::Component`, thus, `this.parseStyle` will always be
`undefined` when its called by any method that exists in objects that
are lower in the prototypal
chain than the topmost object (where `parseStyle` is defined).
If `setStyle` is called further down the prototypal chain, it throws the
following error: `"this.parseStyle is not a function"`
* fix: prevent requesting a new parser on each parse
4 years ago
Artur Arseniev
8f8d859f28
Update headless tests for Map component
4 years ago
Artur Arseniev
f61222ec90
Fix headless mode with image and videos. Closes #4473 #4474
4 years ago
Alex Ritter
0185350259
Convert Modal module into ts ( #4433 )
* Covert Modal module into class
* Convert Modal into ts
* Convert rest of the Modal to ts
* Update ModalView test
4 years ago
Alex Ritter
4b729a8a08
Convert Component into class and use getter for defaults
4 years ago
Alex Ritter
b5a63e19d6
Convert views into ts
4 years ago
Alex Ritter
300c75bdad
Use abstract classes
4 years ago
Alex Ritter
5579dc1edf
Convert Panel model into ts
4 years ago
Alex Ritter
18859fc986
Convert PanelManager into class
4 years ago
Artur Arseniev
ac22ab6a94
Fix tests
4 years ago
Singwai Chan
5274e65528
Handle default svg properly in component image when reloading from storage ( #4373 )
* [FIX] handle default svg properly in ComponentImage
* edded tests
* remove relative src reference in test
* single qoute
4 years ago
Artur Arseniev
b2789a6a5a
Refactor LayerManager ( #4338 )
* Move Layers to TS
* Update root update in LayerManager. Closes #4083
* Update Layer view
* Update ItemsView
* Move layer opened container
* Clean ItemView
* Update import ItemsView
* Update layer manager module
* Add getComponents to Layers
* Add visibility methods to Layers
* Add locked check in Layers
* Add locked property to Component
* Add rename in LayerManager
* Up layer listeners
* Update layer selection
* Update children counter in ItemView
* Update visibility methods in ItemView
* Add open methods to layers
* Update selection
* Update hover in layers
* Fix layer
* Update TS model in LayerManager
* Layer config TS
* Move ItemView to TS
* Move ItemsView to TS
* Update TS LayerManager
* Update Module and Layers init
* Update layer tests
* Up item view
4 years ago