@elementor/editor-styles 0.6.14 → 3.32.0-21

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,14 +1,5 @@
1
1
  # @elementor/editor-styles
2
2
 
3
- ## 0.6.14
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [64b3e09]
8
- - Updated dependencies [3904505]
9
- - Updated dependencies [cdbd491]
10
- - @elementor/editor-props@0.18.0
11
-
12
3
  ## 0.6.13
13
4
 
14
5
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3,12 +3,16 @@ import { Props } from '@elementor/editor-props';
3
3
  import { BreakpointId } from '@elementor/editor-responsive';
4
4
 
5
5
  type StyleDefinitionState = null | 'hover' | 'focus' | 'active' | 'visited' | 'disabled' | 'checked' | 'selected' | 'hidden' | 'visible';
6
+ type CustomCss = {
7
+ raw: string;
8
+ };
6
9
  type StyleDefinitionVariant = {
7
10
  meta: {
8
11
  breakpoint: null | BreakpointId;
9
12
  state: StyleDefinitionState;
10
13
  };
11
14
  props: Props;
15
+ custom_css: CustomCss | null;
12
16
  };
13
17
  type StyleDefinitionType = 'class';
14
18
  type StyleDefinitionID = string;
@@ -26,4 +30,4 @@ declare const getStylesSchema: () => Record<string, _elementor_editor_props.Prop
26
30
 
27
31
  declare function getVariantByMeta(style: StyleDefinition, meta: StyleDefinitionVariant['meta']): StyleDefinitionVariant | undefined;
28
32
 
29
- export { type StyleDefinition, type StyleDefinitionID, type StyleDefinitionState, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, generateId, getStylesSchema, getVariantByMeta };
33
+ export { type CustomCss, type StyleDefinition, type StyleDefinitionID, type StyleDefinitionState, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, generateId, getStylesSchema, getVariantByMeta };
package/dist/index.d.ts CHANGED
@@ -3,12 +3,16 @@ import { Props } from '@elementor/editor-props';
3
3
  import { BreakpointId } from '@elementor/editor-responsive';
4
4
 
5
5
  type StyleDefinitionState = null | 'hover' | 'focus' | 'active' | 'visited' | 'disabled' | 'checked' | 'selected' | 'hidden' | 'visible';
6
+ type CustomCss = {
7
+ raw: string;
8
+ };
6
9
  type StyleDefinitionVariant = {
7
10
  meta: {
8
11
  breakpoint: null | BreakpointId;
9
12
  state: StyleDefinitionState;
10
13
  };
11
14
  props: Props;
15
+ custom_css: CustomCss | null;
12
16
  };
13
17
  type StyleDefinitionType = 'class';
14
18
  type StyleDefinitionID = string;
@@ -26,4 +30,4 @@ declare const getStylesSchema: () => Record<string, _elementor_editor_props.Prop
26
30
 
27
31
  declare function getVariantByMeta(style: StyleDefinition, meta: StyleDefinitionVariant['meta']): StyleDefinitionVariant | undefined;
28
32
 
29
- export { type StyleDefinition, type StyleDefinitionID, type StyleDefinitionState, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, generateId, getStylesSchema, getVariantByMeta };
33
+ export { type CustomCss, type StyleDefinition, type StyleDefinitionID, type StyleDefinitionState, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, generateId, getStylesSchema, getVariantByMeta };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-styles",
3
3
  "description": "This package contains the styles model for the Elementor editor",
4
- "version": "0.6.14",
4
+ "version": "3.32.0-21",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/elementor/elementor-packages.git",
22
+ "url": "git+https://github.com/elementor/elementor.git",
23
23
  "directory": "packages/libs/editor-styles"
24
24
  },
25
25
  "bugs": {
26
- "url": "https://github.com/elementor/elementor-packages/issues"
26
+ "url": "https://github.com/elementor/elementor/issues"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -40,8 +40,8 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-props": "0.18.0",
44
- "@elementor/editor-responsive": "0.13.6"
43
+ "@elementor/editor-props": "3.32.0-21",
44
+ "@elementor/editor-responsive": "3.32.0-21"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tsup": "^8.3.5"
package/src/types.ts CHANGED
@@ -13,12 +13,17 @@ export type StyleDefinitionState =
13
13
  | 'hidden'
14
14
  | 'visible';
15
15
 
16
+ export type CustomCss = {
17
+ raw: string;
18
+ };
19
+
16
20
  export type StyleDefinitionVariant = {
17
21
  meta: {
18
22
  breakpoint: null | BreakpointId;
19
23
  state: StyleDefinitionState;
20
24
  };
21
25
  props: Props;
26
+ custom_css: CustomCss | null;
22
27
  };
23
28
 
24
29
  export type StyleDefinitionType = 'class';