@elementor/editor-editing-panel 4.4.0-1123 → 4.4.0-1124
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/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -25
- package/src/components/settings-control.tsx +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -274,8 +274,9 @@ declare const controlTypes: {
|
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
readonly 'svg-media': {
|
|
277
|
-
readonly component: ControlComponent<({ showIconLibrary }: {
|
|
277
|
+
readonly component: ControlComponent<({ showIconLibrary, label }: {
|
|
278
278
|
showIconLibrary?: boolean;
|
|
279
|
+
label?: string;
|
|
279
280
|
}) => react.JSX.Element>;
|
|
280
281
|
readonly layout: "full";
|
|
281
282
|
readonly propTypeUtil: {
|
|
@@ -1653,7 +1654,9 @@ declare const controlTypes: {
|
|
|
1653
1654
|
};
|
|
1654
1655
|
};
|
|
1655
1656
|
readonly video: {
|
|
1656
|
-
readonly component: ControlComponent<(
|
|
1657
|
+
readonly component: ControlComponent<({ label }: {
|
|
1658
|
+
label?: string;
|
|
1659
|
+
}) => react.JSX.Element>;
|
|
1657
1660
|
readonly layout: "full";
|
|
1658
1661
|
readonly propTypeUtil: {
|
|
1659
1662
|
extract: (prop: unknown) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -274,8 +274,9 @@ declare const controlTypes: {
|
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
readonly 'svg-media': {
|
|
277
|
-
readonly component: ControlComponent<({ showIconLibrary }: {
|
|
277
|
+
readonly component: ControlComponent<({ showIconLibrary, label }: {
|
|
278
278
|
showIconLibrary?: boolean;
|
|
279
|
+
label?: string;
|
|
279
280
|
}) => react.JSX.Element>;
|
|
280
281
|
readonly layout: "full";
|
|
281
282
|
readonly propTypeUtil: {
|
|
@@ -1653,7 +1654,9 @@ declare const controlTypes: {
|
|
|
1653
1654
|
};
|
|
1654
1655
|
};
|
|
1655
1656
|
readonly video: {
|
|
1656
|
-
readonly component: ControlComponent<(
|
|
1657
|
+
readonly component: ControlComponent<({ label }: {
|
|
1658
|
+
label?: string;
|
|
1659
|
+
}) => react.JSX.Element>;
|
|
1657
1660
|
readonly layout: "full";
|
|
1658
1661
|
readonly propTypeUtil: {
|
|
1659
1662
|
extract: (prop: unknown) => {
|
package/dist/index.js
CHANGED
|
@@ -2729,7 +2729,7 @@ var SettingsControl = ({ control: { value, type } }) => {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
const layout = value.meta?.layout || controlsRegistry.getLayout(value.type);
|
|
2731
2731
|
const controlProps = populateChildControlProps(value.props);
|
|
2732
|
-
if (layout === "custom") {
|
|
2732
|
+
if (layout === "custom" || value.type === "video" || value.type === "svg-media") {
|
|
2733
2733
|
controlProps.label = value.label;
|
|
2734
2734
|
}
|
|
2735
2735
|
if (type === "element-control") {
|