Skip to content

Commit

Permalink
ncu grapesjs-data-source
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Aug 1, 2024
1 parent 2b6594c commit aee6788
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@humanwhocodes/retry": "^0.3.0",
"@silexlabs/grapesjs-data-source": "^0.0.109",
"@silexlabs/grapesjs-data-source": "^0.0.110",
"dedent": "^1.5.3",
"deepmerge": "^4.3.1"
},
Expand Down
6 changes: 3 additions & 3 deletions src/client/filters.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Field, Filter, Options, State, getContext, getPersistantId, getStateVariableName } from '@silexlabs/grapesjs-data-source'
import { EleventyPluginOptions } from '../client'
import { html } from 'lit-html'
import { Component } from 'grapesjs'

export default function(config, opts: EleventyPluginOptions): void {
config.on('silex:startup:end', () => {
Expand Down Expand Up @@ -53,8 +54,7 @@ export default function(config, opts: EleventyPluginOptions): void {
sizes: '',
widths: '',
},
optionsForm: (input: Field | null, options: Options) => {
const selected = config.getEditor().getSelected()
optionsForm: (selected: Component, input: Field | null, options: Options) => {
const states = getContext(selected, config.getEditor().DataSourceManager.getDataTree()) as State[]
return html`
<details>
Expand Down Expand Up @@ -107,7 +107,7 @@ export default function(config, opts: EleventyPluginOptions): void {
locale: '',
},
quotedOptions: ['locale'],
optionsForm: (input: Field | null, options: Options) => html`
optionsForm: (selected: Component, input: Field | null, options: Options) => html`
<label>Locale
<input type="text" name="locale" value="${options.locale}" />
</label>
Expand Down

0 comments on commit aee6788

Please sign in to comment.