From a167d329755f4dbdbf9edfdcd28da595e928b1af Mon Sep 17 00:00:00 2001 From: Alex Hoyau Date: Wed, 9 Oct 2024 16:33:36 +0300 Subject: [PATCH] new event data for next version of silex --- src/client/publication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/publication.ts b/src/client/publication.ts index d2c79c8..38a804a 100644 --- a/src/client/publication.ts +++ b/src/client/publication.ts @@ -72,7 +72,7 @@ export default function (config: ClientConfig, options: EleventyPluginOptions) { // Generate 11ty data files // FIXME: should this be in the publication transformers editor.on('silex:publish:page', data => withNotification(() => transformPage(editor, data), editor, null)) - editor.on('silex:publish:data', data => withNotification(() => transformFiles(editor, options, data), editor, null)) + editor.on('silex:publish:data', ({ data/*, preventDefault, publicationManager */ }) => withNotification(() => transformFiles(editor, options, data), editor, null)) editor.on('silex:publish:end', () => cache.clear()) } })