From 2739cc1573833e290bd37defd951d3249e695c1c Mon Sep 17 00:00:00 2001 From: Davide Gaggero Date: Wed, 30 Oct 2024 13:55:18 +0100 Subject: [PATCH] chore: added sidebar position and row display condition types --- example/integration.ts | 10 ++++++++++ src/types/bee.ts | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/example/integration.ts b/example/integration.ts index 21ac135..a7252ff 100644 --- a/example/integration.ts +++ b/example/integration.ts @@ -247,6 +247,16 @@ const beeConfig :IBeeConfig = { }, }, }, + sidebarPosition: 'left', + rowDisplayConditions: [{ + isActive: true, + after: '', + before: '', + className: 'myClassName', + description: 'lorem ipsum', + label: 'lorem ipsum', + name: 'Lorem ipsum' + }], onSave: (_, htmlFile) => save('newsletter-template.html', htmlFile), onLoad: () => console.warn('*** [integration] loading a new template... '), onSaveAsTemplate: (json) => void save('newsletter-template.json', json), diff --git a/src/types/bee.ts b/src/types/bee.ts index a761c13..bb81245 100644 --- a/src/types/bee.ts +++ b/src/types/bee.ts @@ -903,7 +903,6 @@ export interface IPluginForm { description: string } } - export interface IPluginFilePicker { url: string } @@ -2274,6 +2273,8 @@ export interface IBeeConfig { translations?: Translations textEditor?: TextEditor customAttributes?: CustomAttributes + sidebarPosition?: 'left' | 'right' + rowDisplayConditions?: Array onTemplateLanguageChange?: (lang: { label: string, value: string, isMain: boolean }) => void onLoad?: (json: IEntityContentJson) => void onPreview?: (opened: boolean) => void