@elementor/editor-controls 0.24.0 → 0.26.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0ab4b84: Alignment for the controls (right-side) settings & styles tabs
8
+
9
+ ## 0.25.0
10
+
11
+ ### Minor Changes
12
+
13
+ - bba6b02: Ignore restricted characters in number inputs
14
+ - a27cc75: Style tab layout section show correct display value
15
+ - 6a882a0: autofocus on font family popup search input
16
+ - fd5251c: Add prop validation to required fields.
17
+
18
+ ### Patch Changes
19
+
20
+ - 03dad77: Rename "defaultValue" to "placeholder" on bound prop context
21
+ - Updated dependencies [5fa575c]
22
+ - Updated dependencies [044815b]
23
+ - Updated dependencies [fe0ab45]
24
+ - Updated dependencies [fd5251c]
25
+ - @elementor/editor-elements@0.8.1
26
+ - @elementor/editor-ui@0.7.1
27
+ - @elementor/editor-props@0.12.0
28
+
3
29
  ## 0.24.0
4
30
 
5
31
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -184,16 +184,18 @@ type PropContext<T extends PropValue, P extends PropType> = {
184
184
  setValue: SetValue<T>;
185
185
  value: T | null;
186
186
  propType: P;
187
+ placeholder?: T;
187
188
  };
188
189
  declare const PropContext: React.Context<PropContext<PropValue, PropType> | null>;
189
190
  type PropProviderProps<T extends PropValue, P extends PropType> = React.PropsWithChildren<PropContext<T, P>>;
190
- declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, }: PropProviderProps<T, P>) => React.JSX.Element;
191
+ declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, placeholder, }: PropProviderProps<T, P>) => React.JSX.Element;
191
192
 
192
193
  type PropKeyContextValue<T, P> = {
193
194
  bind: PropKey;
194
195
  setValue: SetValue<T>;
195
196
  value: T;
196
197
  propType: P;
198
+ placeholder?: T;
197
199
  path: PropKey[];
198
200
  };
199
201
  type PropKeyProviderProps = React.PropsWithChildren<{
@@ -206,7 +208,9 @@ type UseBoundProp<TValue extends PropValue> = {
206
208
  setValue: SetValue<TValue | null>;
207
209
  value: TValue;
208
210
  propType: PropType;
211
+ placeholder?: TValue;
209
212
  path: PropKey[];
213
+ restoreValue: () => void;
210
214
  };
211
215
  declare function useBoundProp<T extends PropValue = PropValue>(): PropKeyContextValue<T, PropType>;
212
216
  declare function useBoundProp<TKey extends string, TValue extends PropValue>(propTypeUtil: PropTypeUtil<TKey, TValue>): UseBoundProp<TValue>;
package/dist/index.d.ts CHANGED
@@ -184,16 +184,18 @@ type PropContext<T extends PropValue, P extends PropType> = {
184
184
  setValue: SetValue<T>;
185
185
  value: T | null;
186
186
  propType: P;
187
+ placeholder?: T;
187
188
  };
188
189
  declare const PropContext: React.Context<PropContext<PropValue, PropType> | null>;
189
190
  type PropProviderProps<T extends PropValue, P extends PropType> = React.PropsWithChildren<PropContext<T, P>>;
190
- declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, }: PropProviderProps<T, P>) => React.JSX.Element;
191
+ declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, placeholder, }: PropProviderProps<T, P>) => React.JSX.Element;
191
192
 
192
193
  type PropKeyContextValue<T, P> = {
193
194
  bind: PropKey;
194
195
  setValue: SetValue<T>;
195
196
  value: T;
196
197
  propType: P;
198
+ placeholder?: T;
197
199
  path: PropKey[];
198
200
  };
199
201
  type PropKeyProviderProps = React.PropsWithChildren<{
@@ -206,7 +208,9 @@ type UseBoundProp<TValue extends PropValue> = {
206
208
  setValue: SetValue<TValue | null>;
207
209
  value: TValue;
208
210
  propType: PropType;
211
+ placeholder?: TValue;
209
212
  path: PropKey[];
213
+ restoreValue: () => void;
210
214
  };
211
215
  declare function useBoundProp<T extends PropValue = PropValue>(): PropKeyContextValue<T, PropType>;
212
216
  declare function useBoundProp<TKey extends string, TValue extends PropValue>(propTypeUtil: PropTypeUtil<TKey, TValue>): UseBoundProp<TValue>;