@silexlabs/silex 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silexlabs/silex",
3
3
  "description": "Free and easy website builder for everyone.",
4
- "version": "3.0.5",
4
+ "version": "3.0.6",
5
5
  "version:backwardcompat": "3.0.0",
6
6
  "author": {
7
7
  "name": "Alex Hoyau",
@@ -77,9 +77,6 @@ export const settingsDialog = (editor, opts) => {
77
77
  const model = editor.getModel()
78
78
  model.set('settings', data.settings || {})
79
79
  model.set('name', data.name)
80
- editor.once('canvas:frame:load', () => {
81
- updateDom(editor)
82
- })
83
80
  })
84
81
  // Normal way to apply the head content to the DOM
85
82
  // fix #1559 Custom <head> code must be reapplied
@@ -207,6 +207,13 @@ async function progressiveLoadPages(editor: PublishableEditor, data: ProjectData
207
207
  if (data.styles) editor.setStyle(data.styles)
208
208
  if (data.assets) editor.AssetManager.add(data.assets)
209
209
 
210
+ await nextFrame()
211
+ setTimeout(() => {
212
+ // FIXME: Why is this setTimeout needed?
213
+ editor.trigger('storage:end:load', data)
214
+ editor.trigger('canvas:frame:load', editor)
215
+ })
216
+
210
217
  // Sélectionner la première page
211
218
  const firstPage = editor.Pages.getAll()[0]
212
219
  if (firstPage) editor.Pages.select(firstPage)