@elementor/editor-controls 0.10.0 → 0.11.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,18 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 35092ea: Fixed strings to sentence case
8
+ - 2da724c: Fix input width changing, according to selection
9
+ - cf83fe4: Updated link control to save null instead of empty string, to allow it to pass validation, and re-add support of dynamic tags
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [728ffb5]
14
+ - @elementor/editor-props@0.9.2
15
+
3
16
  ## 0.10.0
4
17
 
5
18
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,30 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { ReactNode, ComponentType, PropsWithChildren } from 'react';
3
- import { PropTypeUtil, StringPropValue, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
3
+ import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
4
4
  import { UnstableColorFieldProps, ToggleButtonProps, StackProps } from '@elementor/ui';
5
5
 
6
- type FlatOption = {
7
- id: string;
8
- label: string;
9
- groupLabel?: never;
10
- };
11
- type CategorizedOption = {
12
- id: string;
13
- label: string;
14
- groupLabel: string;
15
- };
16
- type Props$6<TOptionKey extends string, TCustomKey extends string = ''> = {
17
- options: FlatOption[] | CategorizedOption[];
18
- optionRestrictedPropTypeUtil: PropTypeUtil<TOptionKey, number | null>;
19
- onOptionChangeCallback?: (newValue: number | null) => void;
20
- onTextChangeCallback?: (newValue: string | null) => void;
21
- allowCustomValues?: boolean;
22
- placeholder?: string;
23
- minInputLength?: number;
24
- customValue?: TCustomKey;
25
- };
26
- declare const AutocompleteControl: ControlComponent<(<TOptionKey extends string, TCustomKey extends string>(props: Props$6<TOptionKey, TCustomKey>) => React.JSX.Element)>;
27
-
28
6
  type ImageControlProps = {
29
7
  sizes: {
30
8
  label: string;
@@ -139,7 +117,7 @@ declare const UrlControl: ControlComponent<({ placeholder }: {
139
117
 
140
118
  type Props = {
141
119
  queryOptions: {
142
- requestParams: object;
120
+ requestParams: Record<string, unknown>;
143
121
  endpoint: string;
144
122
  };
145
123
  allowCustomValues?: boolean;
@@ -233,4 +211,4 @@ type UseInternalStateOptions<TValue> = {
233
211
  };
234
212
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
235
213
 
236
- export { AutocompleteControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };
214
+ export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };
package/dist/index.d.ts CHANGED
@@ -1,30 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { ReactNode, ComponentType, PropsWithChildren } from 'react';
3
- import { PropTypeUtil, StringPropValue, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
3
+ import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
4
4
  import { UnstableColorFieldProps, ToggleButtonProps, StackProps } from '@elementor/ui';
5
5
 
6
- type FlatOption = {
7
- id: string;
8
- label: string;
9
- groupLabel?: never;
10
- };
11
- type CategorizedOption = {
12
- id: string;
13
- label: string;
14
- groupLabel: string;
15
- };
16
- type Props$6<TOptionKey extends string, TCustomKey extends string = ''> = {
17
- options: FlatOption[] | CategorizedOption[];
18
- optionRestrictedPropTypeUtil: PropTypeUtil<TOptionKey, number | null>;
19
- onOptionChangeCallback?: (newValue: number | null) => void;
20
- onTextChangeCallback?: (newValue: string | null) => void;
21
- allowCustomValues?: boolean;
22
- placeholder?: string;
23
- minInputLength?: number;
24
- customValue?: TCustomKey;
25
- };
26
- declare const AutocompleteControl: ControlComponent<(<TOptionKey extends string, TCustomKey extends string>(props: Props$6<TOptionKey, TCustomKey>) => React.JSX.Element)>;
27
-
28
6
  type ImageControlProps = {
29
7
  sizes: {
30
8
  label: string;
@@ -139,7 +117,7 @@ declare const UrlControl: ControlComponent<({ placeholder }: {
139
117
 
140
118
  type Props = {
141
119
  queryOptions: {
142
- requestParams: object;
120
+ requestParams: Record<string, unknown>;
143
121
  endpoint: string;
144
122
  };
145
123
  allowCustomValues?: boolean;
@@ -233,4 +211,4 @@ type UseInternalStateOptions<TValue> = {
233
211
  };
234
212
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
235
213
 
236
- export { AutocompleteControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };
214
+ export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };