@elementor/editor-elements 0.8.1 → 0.8.2

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,11 @@
1
1
  # @elementor/editor-elements
2
2
 
3
+ ## 0.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a1d7b3b: Added configurable layout and top divider for controls in settings
8
+
3
9
  ## 0.8.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -29,9 +29,14 @@ type Control = {
29
29
  description?: string;
30
30
  type: string;
31
31
  props: Record<string, unknown>;
32
+ meta?: {
33
+ layout?: ControlLayout;
34
+ topDivider?: boolean;
35
+ };
32
36
  };
33
37
  };
34
38
  type ControlItem = ControlsSection | Control;
39
+ type ControlLayout = 'full' | 'two-columns';
35
40
 
36
41
  type V1Element = {
37
42
  id: string;
@@ -147,4 +152,4 @@ declare function getAnchoredDescendantId(elementId: string): string | null;
147
152
  declare function getAnchoredAncestorId(elementId: string): string | null;
148
153
  declare function isElementAnchored(elementId: string): boolean;
149
154
 
150
- export { type Control, type ControlItem, type ControlsSection, type CreateElementStyleArgs, ELEMENT_STYLE_CHANGE_EVENT, type Element, type ElementID, type ElementType, type LinkInLinkRestriction, type UpdateElementSettingsArgs, type UpdateElementStyleArgs, type V1Element, type V1ElementConfig, type V1ElementModelProps, type V1ElementSettingsProps, createElementStyle, deleteElementStyle, getAnchoredAncestorId, getAnchoredDescendantId, getContainer, getCurrentDocumentId, getElementLabel, getElementSetting, getElementStyles, getElements, getLinkInLinkRestriction, getSelectedElements, getWidgetsCache, isElementAnchored, selectElement, styleRerenderEvents, updateElementSettings, updateElementStyle, useElementSetting, useElementType, useParentElement, useSelectedElement };
155
+ export { type Control, type ControlItem, type ControlLayout, type ControlsSection, type CreateElementStyleArgs, ELEMENT_STYLE_CHANGE_EVENT, type Element, type ElementID, type ElementType, type LinkInLinkRestriction, type UpdateElementSettingsArgs, type UpdateElementStyleArgs, type V1Element, type V1ElementConfig, type V1ElementModelProps, type V1ElementSettingsProps, createElementStyle, deleteElementStyle, getAnchoredAncestorId, getAnchoredDescendantId, getContainer, getCurrentDocumentId, getElementLabel, getElementSetting, getElementStyles, getElements, getLinkInLinkRestriction, getSelectedElements, getWidgetsCache, isElementAnchored, selectElement, styleRerenderEvents, updateElementSettings, updateElementStyle, useElementSetting, useElementType, useParentElement, useSelectedElement };
package/dist/index.d.ts CHANGED
@@ -29,9 +29,14 @@ type Control = {
29
29
  description?: string;
30
30
  type: string;
31
31
  props: Record<string, unknown>;
32
+ meta?: {
33
+ layout?: ControlLayout;
34
+ topDivider?: boolean;
35
+ };
32
36
  };
33
37
  };
34
38
  type ControlItem = ControlsSection | Control;
39
+ type ControlLayout = 'full' | 'two-columns';
35
40
 
36
41
  type V1Element = {
37
42
  id: string;
@@ -147,4 +152,4 @@ declare function getAnchoredDescendantId(elementId: string): string | null;
147
152
  declare function getAnchoredAncestorId(elementId: string): string | null;
148
153
  declare function isElementAnchored(elementId: string): boolean;
149
154
 
150
- export { type Control, type ControlItem, type ControlsSection, type CreateElementStyleArgs, ELEMENT_STYLE_CHANGE_EVENT, type Element, type ElementID, type ElementType, type LinkInLinkRestriction, type UpdateElementSettingsArgs, type UpdateElementStyleArgs, type V1Element, type V1ElementConfig, type V1ElementModelProps, type V1ElementSettingsProps, createElementStyle, deleteElementStyle, getAnchoredAncestorId, getAnchoredDescendantId, getContainer, getCurrentDocumentId, getElementLabel, getElementSetting, getElementStyles, getElements, getLinkInLinkRestriction, getSelectedElements, getWidgetsCache, isElementAnchored, selectElement, styleRerenderEvents, updateElementSettings, updateElementStyle, useElementSetting, useElementType, useParentElement, useSelectedElement };
155
+ export { type Control, type ControlItem, type ControlLayout, type ControlsSection, type CreateElementStyleArgs, ELEMENT_STYLE_CHANGE_EVENT, type Element, type ElementID, type ElementType, type LinkInLinkRestriction, type UpdateElementSettingsArgs, type UpdateElementStyleArgs, type V1Element, type V1ElementConfig, type V1ElementModelProps, type V1ElementSettingsProps, createElementStyle, deleteElementStyle, getAnchoredAncestorId, getAnchoredDescendantId, getContainer, getCurrentDocumentId, getElementLabel, getElementSetting, getElementStyles, getElements, getLinkInLinkRestriction, getSelectedElements, getWidgetsCache, isElementAnchored, selectElement, styleRerenderEvents, updateElementSettings, updateElementStyle, useElementSetting, useElementType, useParentElement, useSelectedElement };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-elements",
3
3
  "description": "This package contains the elements model for the Elementor editor",
4
- "version": "0.8.1",
4
+ "version": "0.8.2",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
package/src/types.ts CHANGED
@@ -31,7 +31,13 @@ export type Control = {
31
31
  description?: string;
32
32
  type: string;
33
33
  props: Record< string, unknown >;
34
+ meta?: {
35
+ layout?: ControlLayout;
36
+ topDivider?: boolean;
37
+ };
34
38
  };
35
39
  };
36
40
 
37
41
  export type ControlItem = ControlsSection | Control;
42
+
43
+ export type ControlLayout = 'full' | 'two-columns';