@elementor/editor-editing-panel 4.2.0-941 → 4.2.0-943
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/style-sections/layout-section/layout-section.tsx +4 -0
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -74,6 +74,8 @@ declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUISty
|
|
|
74
74
|
|
|
75
75
|
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
76
76
|
|
|
77
|
+
declare const injectIntoGridFields: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
78
|
+
|
|
77
79
|
type SectionType = {
|
|
78
80
|
component?: () => react.JSX.Element;
|
|
79
81
|
name: string;
|
|
@@ -2319,4 +2321,4 @@ declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema,
|
|
|
2319
2321
|
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
2320
2322
|
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
2321
2323
|
|
|
2322
|
-
export { Control as BaseControl, ControlLabel, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|
|
2324
|
+
export { Control as BaseControl, ControlLabel, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUISty
|
|
|
74
74
|
|
|
75
75
|
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
76
76
|
|
|
77
|
+
declare const injectIntoGridFields: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
78
|
+
|
|
77
79
|
type SectionType = {
|
|
78
80
|
component?: () => react.JSX.Element;
|
|
79
81
|
name: string;
|
|
@@ -2319,4 +2321,4 @@ declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema,
|
|
|
2319
2321
|
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
2320
2322
|
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
2321
2323
|
|
|
2322
|
-
export { Control as BaseControl, ControlLabel, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|
|
2324
|
+
export { Control as BaseControl, ControlLabel, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,7 @@ __export(index_exports, {
|
|
|
59
59
|
init: () => init4,
|
|
60
60
|
injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
|
|
61
61
|
injectIntoCssClassConvert: () => injectIntoCssClassConvert,
|
|
62
|
+
injectIntoGridFields: () => injectIntoGridFields,
|
|
62
63
|
injectIntoPanelHeaderTop: () => injectIntoPanelHeaderTop,
|
|
63
64
|
injectIntoStyleTab: () => injectIntoStyleTab,
|
|
64
65
|
isDynamicPropValue: () => isDynamicPropValue,
|
|
@@ -1939,7 +1940,7 @@ var import_editor_elements13 = require("@elementor/editor-elements");
|
|
|
1939
1940
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1940
1941
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
1941
1942
|
var import_icons27 = require("@elementor/icons");
|
|
1942
|
-
var
|
|
1943
|
+
var import_locations5 = require("@elementor/locations");
|
|
1943
1944
|
var import_menus = require("@elementor/menus");
|
|
1944
1945
|
var import_session9 = require("@elementor/session");
|
|
1945
1946
|
var import_ui44 = require("@elementor/ui");
|
|
@@ -2700,7 +2701,7 @@ var React89 = __toESM(require("react"));
|
|
|
2700
2701
|
var import_react36 = require("react");
|
|
2701
2702
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
2702
2703
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2703
|
-
var
|
|
2704
|
+
var import_locations4 = require("@elementor/locations");
|
|
2704
2705
|
var import_session8 = require("@elementor/session");
|
|
2705
2706
|
var import_ui42 = require("@elementor/ui");
|
|
2706
2707
|
var import_i18n62 = require("@wordpress/i18n");
|
|
@@ -3503,6 +3504,7 @@ var EffectsSection = () => {
|
|
|
3503
3504
|
var React61 = __toESM(require("react"));
|
|
3504
3505
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
3505
3506
|
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3507
|
+
var import_locations3 = require("@elementor/locations");
|
|
3506
3508
|
var import_i18n37 = require("@wordpress/i18n");
|
|
3507
3509
|
|
|
3508
3510
|
// src/hooks/use-computed-style.ts
|
|
@@ -4637,6 +4639,7 @@ var WrapField = () => {
|
|
|
4637
4639
|
var DISPLAY_LABEL2 = (0, import_i18n37.__)("Display", "elementor");
|
|
4638
4640
|
var FLEX_WRAP_LABEL2 = (0, import_i18n37.__)("Flex wrap", "elementor");
|
|
4639
4641
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4642
|
+
var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations3.createLocation)();
|
|
4640
4643
|
var LayoutSection = () => {
|
|
4641
4644
|
const { value: display } = useStylesField("display", {
|
|
4642
4645
|
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
@@ -4664,7 +4667,7 @@ var FlexFields = () => {
|
|
|
4664
4667
|
});
|
|
4665
4668
|
return /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(FlexDirectionField, null), /* @__PURE__ */ React61.createElement(JustifyContentField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React61.createElement(AlignContentField, null));
|
|
4666
4669
|
};
|
|
4667
|
-
var GridFields = () => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(GridOutlineField, null), /* @__PURE__ */ React61.createElement(GridSizeFields, null), /* @__PURE__ */ React61.createElement(GridAutoFlowField, null), /* @__PURE__ */ React61.createElement(StyleTabCollapsibleContent, { fields: ["grid-auto-rows", "grid-auto-columns"] }, /* @__PURE__ */ React61.createElement(GridAutoTrackFields, null)), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null));
|
|
4670
|
+
var GridFields = () => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(GridOutlineField, null), /* @__PURE__ */ React61.createElement(GridSizeFields, null), /* @__PURE__ */ React61.createElement(GridAutoFlowField, null), /* @__PURE__ */ React61.createElement(GridFieldsSlot, null), /* @__PURE__ */ React61.createElement(StyleTabCollapsibleContent, { fields: ["grid-auto-rows", "grid-auto-columns"] }, /* @__PURE__ */ React61.createElement(GridAutoTrackFields, null)), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null));
|
|
4668
4671
|
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls32.ControlFormLabel, null, (0, import_i18n37.__)("Flex child", "elementor")), /* @__PURE__ */ React61.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null), /* @__PURE__ */ React61.createElement(FlexSizeField, null));
|
|
4669
4672
|
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls32.ControlFormLabel, null, (0, import_i18n37.__)("Grid child", "elementor")), /* @__PURE__ */ React61.createElement(GridSpanFields, null), /* @__PURE__ */ React61.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null));
|
|
4670
4673
|
var shouldDisplayFlexFields = (display, local) => {
|
|
@@ -5368,7 +5371,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5368
5371
|
|
|
5369
5372
|
// src/components/style-tab.tsx
|
|
5370
5373
|
var TABS_HEADER_HEIGHT = "37px";
|
|
5371
|
-
var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0,
|
|
5374
|
+
var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0, import_locations4.createLocation)();
|
|
5372
5375
|
var stickyHeaderStyles = {
|
|
5373
5376
|
position: "sticky",
|
|
5374
5377
|
zIndex: 1100,
|
|
@@ -5578,7 +5581,7 @@ var PanelTabContent = () => {
|
|
|
5578
5581
|
};
|
|
5579
5582
|
|
|
5580
5583
|
// src/components/editing-panel.tsx
|
|
5581
|
-
var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0,
|
|
5584
|
+
var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_locations5.createLocation)();
|
|
5582
5585
|
var { useMenuItems } = import_menus.controlActionsMenu;
|
|
5583
5586
|
var EditingPanel = () => {
|
|
5584
5587
|
const { element, elementType, settings } = (0, import_editor_elements13.useSelectedElementSettings)();
|
|
@@ -7501,6 +7504,7 @@ var blockV1Panel = () => {
|
|
|
7501
7504
|
init,
|
|
7502
7505
|
injectIntoClassSelectorActions,
|
|
7503
7506
|
injectIntoCssClassConvert,
|
|
7507
|
+
injectIntoGridFields,
|
|
7504
7508
|
injectIntoPanelHeaderTop,
|
|
7505
7509
|
injectIntoStyleTab,
|
|
7506
7510
|
isDynamicPropValue,
|