@elementor/editor-controls 0.14.0 → 0.15.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 +18 -0
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +297 -165
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -178
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -6
- package/src/api.ts +16 -0
- package/src/components/repeater.tsx +20 -23
- package/src/controls/equal-unequal-sizes-control.tsx +15 -10
- package/src/controls/font-family-control/enqueue-font.tsx +15 -0
- package/src/controls/font-family-control/font-family-control.tsx +286 -0
- package/src/controls/gap-control.tsx +19 -11
- package/src/controls/image-control.tsx +6 -1
- package/src/controls/image-media-control.tsx +4 -6
- package/src/controls/linked-dimensions-control.tsx +57 -25
- package/src/controls/svg-media-control.tsx +15 -5
- package/src/hooks/use-filtered-font-families.ts +13 -26
- package/src/hooks/use-unfiltered-files-upload.ts +40 -0
- package/src/index.ts +1 -1
- package/src/controls/font-family-control.tsx +0 -157
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @elementor/editor-controls
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a654cb2: Update `@elementor/icons` version
|
|
8
|
+
- f99d23c: Add missing tooltips for style controls
|
|
9
|
+
- f6a4d4f: add API client and hooks for enabling unfiltered files upload
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 23458d1: Make atomic controls use Logical Properties
|
|
14
|
+
- cab4ddf: Improve Font Family control performance
|
|
15
|
+
- Updated dependencies [23458d1]
|
|
16
|
+
- Updated dependencies [f6a4d4f]
|
|
17
|
+
- @elementor/editor-props@0.9.4
|
|
18
|
+
- @elementor/wp-media@0.5.0
|
|
19
|
+
- @elementor/http@0.1.4
|
|
20
|
+
|
|
3
21
|
## 0.14.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -102,17 +102,22 @@ type EqualUnequalItems = [Item, Item, Item, Item];
|
|
|
102
102
|
type Props$1<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
103
103
|
label: string;
|
|
104
104
|
icon: ReactNode;
|
|
105
|
+
tooltipLabel: string;
|
|
105
106
|
items: EqualUnequalItems;
|
|
106
107
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
107
108
|
};
|
|
108
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, items, multiSizePropTypeUtil, }: Props$1<TMultiPropType, TPropValue>): React.JSX.Element;
|
|
109
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$1<TMultiPropType, TPropValue>): React.JSX.Element;
|
|
109
110
|
|
|
110
|
-
declare const LinkedDimensionsControl: ControlComponent<({ label, extendedValues }: {
|
|
111
|
+
declare const LinkedDimensionsControl: ControlComponent<({ label, isSiteRtl, extendedValues, }: {
|
|
111
112
|
label: string;
|
|
113
|
+
isSiteRtl?: boolean;
|
|
112
114
|
extendedValues?: ExtendedValue[];
|
|
113
115
|
}) => React.JSX.Element>;
|
|
114
116
|
|
|
115
|
-
|
|
117
|
+
type FontFamilyControlProps = {
|
|
118
|
+
fontFamilies: Record<string, string[]>;
|
|
119
|
+
};
|
|
120
|
+
declare const FontFamilyControl: ControlComponent<({ fontFamilies }: FontFamilyControlProps) => React.JSX.Element>;
|
|
116
121
|
|
|
117
122
|
declare const UrlControl: ControlComponent<({ placeholder }: {
|
|
118
123
|
placeholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,17 +102,22 @@ type EqualUnequalItems = [Item, Item, Item, Item];
|
|
|
102
102
|
type Props$1<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
103
103
|
label: string;
|
|
104
104
|
icon: ReactNode;
|
|
105
|
+
tooltipLabel: string;
|
|
105
106
|
items: EqualUnequalItems;
|
|
106
107
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
107
108
|
};
|
|
108
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, items, multiSizePropTypeUtil, }: Props$1<TMultiPropType, TPropValue>): React.JSX.Element;
|
|
109
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$1<TMultiPropType, TPropValue>): React.JSX.Element;
|
|
109
110
|
|
|
110
|
-
declare const LinkedDimensionsControl: ControlComponent<({ label, extendedValues }: {
|
|
111
|
+
declare const LinkedDimensionsControl: ControlComponent<({ label, isSiteRtl, extendedValues, }: {
|
|
111
112
|
label: string;
|
|
113
|
+
isSiteRtl?: boolean;
|
|
112
114
|
extendedValues?: ExtendedValue[];
|
|
113
115
|
}) => React.JSX.Element>;
|
|
114
116
|
|
|
115
|
-
|
|
117
|
+
type FontFamilyControlProps = {
|
|
118
|
+
fontFamilies: Record<string, string[]>;
|
|
119
|
+
};
|
|
120
|
+
declare const FontFamilyControl: ControlComponent<({ fontFamilies }: FontFamilyControlProps) => React.JSX.Element>;
|
|
116
121
|
|
|
117
122
|
declare const UrlControl: ControlComponent<({ placeholder }: {
|
|
118
123
|
placeholder?: string;
|