@elementor/editor-controls 4.2.0-863 → 4.2.0-865

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-controls",
3
3
  "description": "This package contains the controls model and utils for the Elementor editor",
4
- "version": "4.2.0-863",
4
+ "version": "4.2.0-865",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,22 +40,22 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-current-user": "4.2.0-863",
44
- "@elementor/editor-elements": "4.2.0-863",
45
- "@elementor/editor-props": "4.2.0-863",
46
- "@elementor/editor-responsive": "4.2.0-863",
47
- "@elementor/editor-ui": "4.2.0-863",
48
- "@elementor/editor-v1-adapters": "4.2.0-863",
49
- "@elementor/env": "4.2.0-863",
50
- "@elementor/events": "4.2.0-863",
51
- "@elementor/http-client": "4.2.0-863",
43
+ "@elementor/editor-current-user": "4.2.0-865",
44
+ "@elementor/editor-elements": "4.2.0-865",
45
+ "@elementor/editor-props": "4.2.0-865",
46
+ "@elementor/editor-responsive": "4.2.0-865",
47
+ "@elementor/editor-ui": "4.2.0-865",
48
+ "@elementor/editor-v1-adapters": "4.2.0-865",
49
+ "@elementor/env": "4.2.0-865",
50
+ "@elementor/events": "4.2.0-865",
51
+ "@elementor/http-client": "4.2.0-865",
52
52
  "@elementor/icons": "~1.75.1",
53
- "@elementor/locations": "4.2.0-863",
54
- "@elementor/query": "4.2.0-863",
55
- "@elementor/session": "4.2.0-863",
53
+ "@elementor/locations": "4.2.0-865",
54
+ "@elementor/query": "4.2.0-865",
55
+ "@elementor/session": "4.2.0-865",
56
56
  "@elementor/ui": "1.37.5",
57
- "@elementor/utils": "4.2.0-863",
58
- "@elementor/wp-media": "4.2.0-863",
57
+ "@elementor/utils": "4.2.0-865",
58
+ "@elementor/wp-media": "4.2.0-865",
59
59
  "@monaco-editor/react": "^4.7.0",
60
60
  "@tiptap/extension-bold": "^3.11.1",
61
61
  "@tiptap/extension-document": "^3.11.1",
@@ -303,17 +303,19 @@ const SplitButtonGroup = < TValue, >( {
303
303
  mt: 0.5,
304
304
  } }
305
305
  >
306
- { items.map( ( { label, value: buttonValue } ) => (
307
- <MenuItem
308
- key={ buttonValue }
309
- selected={ buttonValue === value }
310
- onClick={ () => onMenuItemClick( buttonValue ) }
311
- >
312
- <ListItemText>
313
- <Typography sx={ { fontSize: '14px' } }>{ label }</Typography>
314
- </ListItemText>
315
- </MenuItem>
316
- ) ) }
306
+ { items
307
+ .filter( ( item ) => item.value !== previewButton.value )
308
+ .map( ( { label, value: buttonValue } ) => (
309
+ <MenuItem
310
+ key={ buttonValue }
311
+ selected={ buttonValue === value }
312
+ onClick={ () => onMenuItemClick( buttonValue ) }
313
+ >
314
+ <ListItemText>
315
+ <Typography sx={ { fontSize: '14px' } }>{ label }</Typography>
316
+ </ListItemText>
317
+ </MenuItem>
318
+ ) ) }
317
319
  </Menu>
318
320
  </>
319
321
  );
@@ -27,7 +27,7 @@ export const GridSpanControl = createControl(
27
27
  const { value, setValue, disabled, placeholder: boundPlaceholder } = useBoundProp( spanPropTypeUtil );
28
28
  const handleChange = ( event: React.ChangeEvent< HTMLInputElement > ) => setValue( event.target.value );
29
29
 
30
- const placeholder = propPlaceholder ?? boundPlaceholder ?? undefined;
30
+ const placeholder = propPlaceholder ?? boundPlaceholder ?? `e.g: 'span 2' or '1 / 3'`;
31
31
 
32
32
  return (
33
33
  <ControlActions>