@elementor/editor-editing-panel 3.32.0-75 → 3.32.0-77
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/components/css-classes/css-class-convert-local.tsx +1 -1
- package/src/components/css-classes/css-class-item.tsx +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -382,13 +382,14 @@ declare const controlTypes: {
|
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
384
|
readonly size: {
|
|
385
|
-
readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, }: Omit<({
|
|
385
|
+
readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, }: Omit<({
|
|
386
386
|
placeholder?: string;
|
|
387
387
|
startIcon?: react.ReactNode;
|
|
388
388
|
extendedOptions?: _elementor_editor_controls.ExtendedOption[];
|
|
389
389
|
disableCustom?: boolean;
|
|
390
390
|
anchorRef?: react.RefObject<HTMLDivElement | null>;
|
|
391
391
|
min?: number;
|
|
392
|
+
enablePropTypeUnits?: boolean;
|
|
392
393
|
} & {
|
|
393
394
|
units?: ("em" | "px" | "%" | "rem" | "vw" | "vh")[] | undefined;
|
|
394
395
|
defaultUnit?: "em" | "px" | "%" | "rem" | "vw" | "vh" | undefined;
|
|
@@ -401,6 +402,7 @@ declare const controlTypes: {
|
|
|
401
402
|
disableCustom?: boolean;
|
|
402
403
|
anchorRef?: react.RefObject<HTMLDivElement | null>;
|
|
403
404
|
min?: number;
|
|
405
|
+
enablePropTypeUnits?: boolean;
|
|
404
406
|
} & {
|
|
405
407
|
units?: ("deg" | "rad" | "grad" | "turn")[] | undefined;
|
|
406
408
|
defaultUnit?: "deg" | "rad" | "grad" | "turn" | undefined;
|
|
@@ -413,6 +415,7 @@ declare const controlTypes: {
|
|
|
413
415
|
disableCustom?: boolean;
|
|
414
416
|
anchorRef?: react.RefObject<HTMLDivElement | null>;
|
|
415
417
|
min?: number;
|
|
418
|
+
enablePropTypeUnits?: boolean;
|
|
416
419
|
} & {
|
|
417
420
|
units?: ("s" | "ms")[] | undefined;
|
|
418
421
|
defaultUnit?: "s" | "ms" | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -382,13 +382,14 @@ declare const controlTypes: {
|
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
384
|
readonly size: {
|
|
385
|
-
readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, }: Omit<({
|
|
385
|
+
readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, }: Omit<({
|
|
386
386
|
placeholder?: string;
|
|
387
387
|
startIcon?: react.ReactNode;
|
|
388
388
|
extendedOptions?: _elementor_editor_controls.ExtendedOption[];
|
|
389
389
|
disableCustom?: boolean;
|
|
390
390
|
anchorRef?: react.RefObject<HTMLDivElement | null>;
|
|
391
391
|
min?: number;
|
|
392
|
+
enablePropTypeUnits?: boolean;
|
|
392
393
|
} & {
|
|
393
394
|
units?: ("em" | "px" | "%" | "rem" | "vw" | "vh")[] | undefined;
|
|
394
395
|
defaultUnit?: "em" | "px" | "%" | "rem" | "vw" | "vh" | undefined;
|
|
@@ -401,6 +402,7 @@ declare const controlTypes: {
|
|
|
401
402
|
disableCustom?: boolean;
|
|
402
403
|
anchorRef?: react.RefObject<HTMLDivElement | null>;
|
|
403
404
|
min?: number;
|
|
405
|
+
enablePropTypeUnits?: boolean;
|
|
404
406
|
} & {
|
|
405
407
|
units?: ("deg" | "rad" | "grad" | "turn")[] | undefined;
|
|
406
408
|
defaultUnit?: "deg" | "rad" | "grad" | "turn" | undefined;
|
|
@@ -413,6 +415,7 @@ declare const controlTypes: {
|
|
|
413
415
|
disableCustom?: boolean;
|
|
414
416
|
anchorRef?: react.RefObject<HTMLDivElement | null>;
|
|
415
417
|
min?: number;
|
|
418
|
+
enablePropTypeUnits?: boolean;
|
|
416
419
|
} & {
|
|
417
420
|
units?: ("s" | "ms")[] | undefined;
|
|
418
421
|
defaultUnit?: "s" | "ms" | undefined;
|
package/dist/index.js
CHANGED
|
@@ -155,7 +155,7 @@ var CssClassConvert = (props) => {
|
|
|
155
155
|
const elementId = element.id;
|
|
156
156
|
const currentClassesProp = useClassesProp();
|
|
157
157
|
const { setId: setActiveId } = useStyle();
|
|
158
|
-
const [, saveValue] = (0, import_session.useSessionStorage)(
|
|
158
|
+
const [, saveValue] = (0, import_session.useSessionStorage)("last-converted-class-generated-name", "app");
|
|
159
159
|
const successCallback = (newId) => {
|
|
160
160
|
if (!props.styleDef) {
|
|
161
161
|
throw new Error("Style definition is required for converting local class to global class.");
|
|
@@ -974,7 +974,8 @@ function CssClassItem(props) {
|
|
|
974
974
|
const { onDelete, ...chipGroupProps } = chipProps;
|
|
975
975
|
const { userCan } = (0, import_editor_styles_repository6.useUserStylesCapability)();
|
|
976
976
|
const [convertedFromLocalId, , clearConvertedFromLocalId] = (0, import_session2.useSessionStorage)(
|
|
977
|
-
|
|
977
|
+
"last-converted-class-generated-name",
|
|
978
|
+
"app"
|
|
978
979
|
);
|
|
979
980
|
const {
|
|
980
981
|
ref,
|
|
@@ -997,7 +998,7 @@ function CssClassItem(props) {
|
|
|
997
998
|
clearConvertedFromLocalId();
|
|
998
999
|
openEditMode();
|
|
999
1000
|
}
|
|
1000
|
-
}, [id]);
|
|
1001
|
+
}, [id, convertedFromLocalId]);
|
|
1001
1002
|
return /* @__PURE__ */ React9.createElement(import_ui6.ThemeProvider, { palette: "default" }, /* @__PURE__ */ React9.createElement(
|
|
1002
1003
|
import_ui6.UnstableChipGroup,
|
|
1003
1004
|
{
|