Skip to content

Commit

Permalink
Merge pull request #165 from BeefreeSDK/chore/add-types
Browse files Browse the repository at this point in the history
chore: added sidebar position and row display condition types
  • Loading branch information
davidesamp authored Oct 30, 2024
2 parents 49004c7 + 2739cc1 commit 6346d3f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions example/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ const beeConfig :IBeeConfig = {
},
},
},
sidebarPosition: 'left',
rowDisplayConditions: [{
isActive: true,
after: '<test>',
before: '</test>',
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),
Expand Down
3 changes: 2 additions & 1 deletion src/types/bee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ export interface IPluginForm {
description: string
}
}

export interface IPluginFilePicker {
url: string
}
Expand Down Expand Up @@ -2274,6 +2273,8 @@ export interface IBeeConfig {
translations?: Translations
textEditor?: TextEditor
customAttributes?: CustomAttributes
sidebarPosition?: 'left' | 'right'
rowDisplayConditions?: Array<IPluginDisplayCondition>
onTemplateLanguageChange?: (lang: { label: string, value: string, isMain: boolean }) => void
onLoad?: (json: IEntityContentJson) => void
onPreview?: (opened: boolean) => void
Expand Down

0 comments on commit 6346d3f

Please sign in to comment.