@elementor/editor-styles 0.3.1 → 0.4.0

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,24 @@
1
1
  # @elementor/editor-styles
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b18d1a6: Added pseudo selectors to css class selectors
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6a3622a]
12
+ - @elementor/editor-props@0.5.1
13
+
14
+ ## 0.3.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [8943189]
19
+ - Updated dependencies [ff35b95]
20
+ - @elementor/editor-props@0.5.0
21
+
3
22
  ## 0.3.1
4
23
 
5
24
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -21,4 +21,4 @@ type StyleDefinitionsMap = Record<StyleDefinition['id'], StyleDefinition>;
21
21
 
22
22
  declare function generateId(prefix?: string, existingIds?: string[]): string;
23
23
 
24
- export { type StyleDefinition, type StyleDefinitionID, type StyleDefinitionsMap, type StyleVariant, generateId };
24
+ export { type StyleDefinition, type StyleDefinitionID, type StyleDefinitionsMap, type StyleState, type StyleVariant, generateId };
package/dist/index.d.ts CHANGED
@@ -21,4 +21,4 @@ type StyleDefinitionsMap = Record<StyleDefinition['id'], StyleDefinition>;
21
21
 
22
22
  declare function generateId(prefix?: string, existingIds?: string[]): string;
23
23
 
24
- export { type StyleDefinition, type StyleDefinitionID, type StyleDefinitionsMap, type StyleVariant, generateId };
24
+ export { type StyleDefinition, type StyleDefinitionID, type StyleDefinitionsMap, type StyleState, type StyleVariant, generateId };
package/dist/index.js CHANGED
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  generateId: () => generateId
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
 
27
27
  // src/generate-id.ts
28
28
  function generateId(prefix = "", existingIds = []) {
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.3.1",
4
+ "version": "0.4.0",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,7 +40,7 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-props": "0.4.0",
43
+ "@elementor/editor-props": "0.5.1",
44
44
  "@elementor/editor-responsive": "0.12.4"
45
45
  }
46
46
  }
package/src/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type Props } from '@elementor/editor-props';
2
2
  import { type BreakpointId } from '@elementor/editor-responsive';
3
3
 
4
- type StyleState =
4
+ export type StyleState =
5
5
  | null
6
6
  | 'hover'
7
7
  | 'focus'