@elementor/editor-styles 4.1.0 → 4.2.0-839

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
@@ -185,7 +185,7 @@
185
185
 
186
186
  ### Minor Changes
187
187
 
188
- - b18d1a6: Added Pseudo classess to css class selectors
188
+ - b18d1a6: Added Pseudo classes to css class selectors
189
189
 
190
190
  ### Patch Changes
191
191
 
package/dist/index.d.mts CHANGED
@@ -32,6 +32,16 @@ type StyleDefinition = {
32
32
  sync_to_v3?: boolean;
33
33
  };
34
34
  type StyleDefinitionsMap = Record<StyleDefinition['id'], StyleDefinition>;
35
+ type Variable = {
36
+ key?: string;
37
+ label: string;
38
+ value: string;
39
+ type: string;
40
+ deleted?: boolean;
41
+ deleted_at?: string;
42
+ sync_to_v3?: boolean;
43
+ };
44
+ type StyleVariables = Record<string, Variable>;
35
45
 
36
46
  declare function generateId(prefix?: string, existingIds?: string[]): string;
37
47
 
@@ -58,4 +68,4 @@ type ExtendedWindow = Window & {
58
68
  };
59
69
  };
60
70
 
61
- export { type ClassState, type CustomCss, type ExtendedWindow, type StyleDefinition, type StyleDefinitionAdditionalPseudoState, type StyleDefinitionClassState, type StyleDefinitionID, type StyleDefinitionPseudoState, type StyleDefinitionState, type StyleDefinitionStateType, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, generateId, getSelectorWithState, getStylesSchema, getVariantByMeta, isClassState, isExistingStyleProperty, isPseudoState };
71
+ export { type ClassState, type CustomCss, type ExtendedWindow, type StyleDefinition, type StyleDefinitionAdditionalPseudoState, type StyleDefinitionClassState, type StyleDefinitionID, type StyleDefinitionPseudoState, type StyleDefinitionState, type StyleDefinitionStateType, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, type StyleVariables, type Variable, generateId, getSelectorWithState, getStylesSchema, getVariantByMeta, isClassState, isExistingStyleProperty, isPseudoState };
package/dist/index.d.ts CHANGED
@@ -32,6 +32,16 @@ type StyleDefinition = {
32
32
  sync_to_v3?: boolean;
33
33
  };
34
34
  type StyleDefinitionsMap = Record<StyleDefinition['id'], StyleDefinition>;
35
+ type Variable = {
36
+ key?: string;
37
+ label: string;
38
+ value: string;
39
+ type: string;
40
+ deleted?: boolean;
41
+ deleted_at?: string;
42
+ sync_to_v3?: boolean;
43
+ };
44
+ type StyleVariables = Record<string, Variable>;
35
45
 
36
46
  declare function generateId(prefix?: string, existingIds?: string[]): string;
37
47
 
@@ -58,4 +68,4 @@ type ExtendedWindow = Window & {
58
68
  };
59
69
  };
60
70
 
61
- export { type ClassState, type CustomCss, type ExtendedWindow, type StyleDefinition, type StyleDefinitionAdditionalPseudoState, type StyleDefinitionClassState, type StyleDefinitionID, type StyleDefinitionPseudoState, type StyleDefinitionState, type StyleDefinitionStateType, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, generateId, getSelectorWithState, getStylesSchema, getVariantByMeta, isClassState, isExistingStyleProperty, isPseudoState };
71
+ export { type ClassState, type CustomCss, type ExtendedWindow, type StyleDefinition, type StyleDefinitionAdditionalPseudoState, type StyleDefinitionClassState, type StyleDefinitionID, type StyleDefinitionPseudoState, type StyleDefinitionState, type StyleDefinitionStateType, type StyleDefinitionType, type StyleDefinitionVariant, type StyleDefinitionsMap, type StyleVariables, type Variable, generateId, getSelectorWithState, getStylesSchema, getVariantByMeta, isClassState, isExistingStyleProperty, isPseudoState };
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": "4.1.0",
4
+ "version": "4.2.0-839",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,8 +40,8 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-props": "4.1.0",
44
- "@elementor/editor-responsive": "4.1.0"
43
+ "@elementor/editor-props": "4.2.0-839",
44
+ "@elementor/editor-responsive": "4.2.0-839"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tsup": "^8.3.5"
package/src/types.ts CHANGED
@@ -47,3 +47,15 @@ export type StyleDefinition = {
47
47
  };
48
48
 
49
49
  export type StyleDefinitionsMap = Record< StyleDefinition[ 'id' ], StyleDefinition >;
50
+
51
+ export type Variable = {
52
+ key?: string;
53
+ label: string;
54
+ value: string;
55
+ type: string;
56
+ deleted?: boolean;
57
+ deleted_at?: string;
58
+ sync_to_v3?: boolean;
59
+ };
60
+
61
+ export type StyleVariables = Record< string, Variable >;