@elementor/editor-controls 3.33.0-287 → 3.33.0-289

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": "3.33.0-287",
4
+ "version": "3.33.0-289",
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": "3.33.0-287",
44
- "@elementor/editor-elements": "3.33.0-287",
45
- "@elementor/editor-props": "3.33.0-287",
46
- "@elementor/editor-responsive": "3.33.0-287",
47
- "@elementor/editor-ui": "3.33.0-287",
48
- "@elementor/editor-v1-adapters": "3.33.0-287",
49
- "@elementor/env": "3.33.0-287",
50
- "@elementor/http-client": "3.33.0-287",
43
+ "@elementor/editor-current-user": "3.33.0-289",
44
+ "@elementor/editor-elements": "3.33.0-289",
45
+ "@elementor/editor-props": "3.33.0-289",
46
+ "@elementor/editor-responsive": "3.33.0-289",
47
+ "@elementor/editor-ui": "3.33.0-289",
48
+ "@elementor/editor-v1-adapters": "3.33.0-289",
49
+ "@elementor/env": "3.33.0-289",
50
+ "@elementor/http-client": "3.33.0-289",
51
51
  "@elementor/icons": "^1.61.0",
52
- "@elementor/locations": "3.33.0-287",
53
- "@elementor/mixpanel": "3.33.0-287",
54
- "@elementor/query": "3.33.0-287",
55
- "@elementor/session": "3.33.0-287",
52
+ "@elementor/locations": "3.33.0-289",
53
+ "@elementor/mixpanel": "3.33.0-289",
54
+ "@elementor/query": "3.33.0-289",
55
+ "@elementor/session": "3.33.0-289",
56
56
  "@elementor/ui": "1.36.17",
57
- "@elementor/utils": "3.33.0-287",
58
- "@elementor/wp-media": "3.33.0-287",
57
+ "@elementor/utils": "3.33.0-289",
58
+ "@elementor/wp-media": "3.33.0-289",
59
59
  "@wordpress/i18n": "^5.13.0",
60
60
  "@monaco-editor/react": "^4.7.0",
61
61
  "dayjs": "^1.11.18",
@@ -2,13 +2,14 @@ import * as React from 'react';
2
2
  import { type ComponentType, createContext, type PropsWithChildren, useContext } from 'react';
3
3
  import { type PropType } from '@elementor/editor-props';
4
4
 
5
- type ControlAdornmentsItems = Array< {
5
+ export type AdornmentComponent = ComponentType< { customContext?: { path: string[]; propType: PropType } } >;
6
+ type ControlAdornmentsItem = {
6
7
  id: string;
7
- Adornment: ComponentType< { customContext?: { path: string[]; propType: PropType } } >;
8
- } >;
8
+ Adornment: AdornmentComponent;
9
+ };
9
10
 
10
11
  type ControlAdornmentsContext = {
11
- items?: ControlAdornmentsItems;
12
+ items?: ControlAdornmentsItem[];
12
13
  };
13
14
 
14
15
  const Context = createContext< ControlAdornmentsContext | null >( null );
package/src/index.ts CHANGED
@@ -56,6 +56,7 @@ export type { ControlComponent } from './create-control';
56
56
  export type { ToggleButtonGroupItem } from './components/control-toggle-button-group';
57
57
  export type { EqualUnequalItems } from './controls/equal-unequal-sizes-control';
58
58
  export type { ControlActionsItems } from './control-actions/control-actions-context';
59
+ export type { AdornmentComponent } from './control-adornments/control-adornments-context';
59
60
  export type { PropProviderProps } from './bound-prop-context';
60
61
  export type { SetValue, SetValueMeta } from './bound-prop-context/prop-context';
61
62
  export type { ExtendedOption, Unit, LengthUnit, AngleUnit, TimeUnit } from './utils/size-control';