@silexlabs/silex 3.3.0 → 3.3.1-0

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.
@@ -32,11 +32,11 @@ import blocksBasicPlugin from 'grapesjs-blocks-basic'
32
32
  import styleFilterPlugin from 'grapesjs-style-filter'
33
33
  import formPlugin from 'grapesjs-plugin-forms'
34
34
  import codePlugin from 'grapesjs-custom-code'
35
- import uiSuggestClasses from '@silexlabs/grapesjs-ui-suggest-classes'
36
35
  import filterStyles from '@silexlabs/grapesjs-filter-styles'
37
36
  import symbolsPlugin from '@silexlabs/grapesjs-symbols'
38
37
  import loadingPlugin from '@silexlabs/grapesjs-loading'
39
38
  import fontsDialogPlugin from '@silexlabs/grapesjs-fonts'
39
+ import selectorPlugin from '@silexlabs/grapesjs-advanced-selector'
40
40
  import symbolDialogsPlugin, { cmdPromptAddSymbol } from './symbolDialogs'
41
41
  import loginDialogPlugin, { LoginDialogOptions, cmdLogout } from './LoginDialog'
42
42
  import footerPlugin from './footer'
@@ -72,6 +72,7 @@ const plugins = [
72
72
  {name: 'grapesjs-style-bg', value: backgroundPlugin},
73
73
  {name: './settings', value: settingsDialog},
74
74
  {name: '@silexlabs/grapesjs-fonts', value: fontsDialogPlugin},
75
+ {name: '@silexlabs/grapesjs-advanced-selector', value: selectorPlugin},
75
76
  {name: './new-page-dialog', value: newPageDialog},
76
77
  {name: './page-panel', value: pagePanelPlugin},
77
78
  {name: 'grapesjs-blocks-basic', value: blocksBasicPlugin},
@@ -84,7 +85,6 @@ const plugins = [
84
85
  {name: 'grapesjs-custom-code', value: codePlugin},
85
86
  {name: './internal-links', value: internalLinksPlugin},
86
87
  {name: './keymaps', value: keymapsPlugin},
87
- {name: '@silexlabs/grapesjs-ui-suggest-classes', value: uiSuggestClasses},
88
88
  {name: '@silexlabs/grapesjs-filter-styles', value: filterStyles},
89
89
  {name: './symbolDialogs', value: symbolDialogsPlugin},
90
90
  {name: '@silexlabs/grapesjs-symbols', value: symbolsPlugin},
@@ -170,6 +170,10 @@ export function getEditorConfig(config: ClientConfig): EditorConfig {
170
170
  actions: ['bold', 'italic', 'underline', 'strikethrough', 'link', 'wrap', orderedList, unorderedList],
171
171
  },
172
172
 
173
+ selectorManager: {
174
+ custom: true, // This should not be needed, check index.js
175
+ escapeName: (name) => `${name}`,
176
+ },
173
177
 
174
178
  plugins: plugins.map(p => p.value),
175
179
 
@@ -291,10 +295,6 @@ export function getEditorConfig(config: ClientConfig): EditorConfig {
291
295
  cmdOpenSettings,
292
296
  appendTo: '.page-panel-container',
293
297
  },
294
- [uiSuggestClasses.toString()]: {
295
- enableCount: false,
296
- enablePerformance: false,
297
- },
298
298
  [filterStyles.toString()]: {
299
299
  appendBefore: '.gjs-sm-sectors',
300
300
  },
@@ -418,9 +418,6 @@ export async function initEditor(config: EditorConfig) {
418
418
  // Use the style filter plugin
419
419
  editor.StyleManager.addProperty('extra', { extend: 'filter' })
420
420
 
421
- // Add a class to the Style Manager's sticky top section
422
- editor.SelectorManager.selectorTags.el.parentElement.classList.add('top-style-section')
423
-
424
421
  // Add the notifications container
425
422
  document.body.querySelector('.notifications-container')?.appendChild(notificationContainer)
426
423
  // Mark the button as dirty when there are notifications