@elementor/editor-styles 0.2.0 → 0.3.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,26 @@
1
1
  # @elementor/editor-styles
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f584292: Create editor styles repository
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [081bae8]
12
+ - Updated dependencies [1926fe1]
13
+ - @elementor/editor-responsive@0.12.3
14
+
15
+ ## 0.2.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 7781969: Create basic UI for the class selector
20
+ - 7781969: Update `@elementor/ui` version
21
+ - Updated dependencies [6e240a8]
22
+ - @elementor/editor-props@0.3.0
23
+
3
24
  ## 0.2.0
4
25
 
5
26
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -14,7 +14,7 @@ type StyleDefinitionID = string;
14
14
  type StyleDefinition = {
15
15
  id: StyleDefinitionID;
16
16
  variants: StyleVariant[];
17
- label?: string;
17
+ label: string;
18
18
  type: StyleType;
19
19
  };
20
20
  type StyleDefinitionsMap = Record<StyleDefinition['id'], StyleDefinition>;
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ type StyleDefinitionID = string;
14
14
  type StyleDefinition = {
15
15
  id: StyleDefinitionID;
16
16
  variants: StyleVariant[];
17
- label?: string;
17
+ label: string;
18
18
  type: StyleType;
19
19
  };
20
20
  type StyleDefinitionsMap = Record<StyleDefinition['id'], StyleDefinition>;
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ __export(src_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(src_exports);
26
26
 
27
- // src/generateId.ts
27
+ // src/generate-id.ts
28
28
  function generateId(prefix = "", existingIds = []) {
29
29
  let id;
30
30
  do {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/generateId.ts"],"sourcesContent":["// types\nexport * from './types';\n\n// utils\nexport { generateId } from './generateId';\n","export function generateId( prefix: string = '', existingIds: string[] = [] ) {\n\tlet id: string;\n\n\tdo {\n\t\tid = prefix + Math.random().toString( 16 ).slice( 2, 9 );\n\t} while ( existingIds.includes( id ) );\n\n\treturn id;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,WAAY,SAAiB,IAAI,cAAwB,CAAC,GAAI;AAC7E,MAAI;AAEJ,KAAG;AACF,SAAK,SAAS,KAAK,OAAO,EAAE,SAAU,EAAG,EAAE,MAAO,GAAG,CAAE;AAAA,EACxD,SAAU,YAAY,SAAU,EAAG;AAEnC,SAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/generate-id.ts"],"sourcesContent":["// types\nexport * from './types';\n\n// utils\nexport { generateId } from './generate-id';\n","export function generateId( prefix: string = '', existingIds: string[] = [] ) {\n\tlet id: string;\n\n\tdo {\n\t\tid = prefix + Math.random().toString( 16 ).slice( 2, 9 );\n\t} while ( existingIds.includes( id ) );\n\n\treturn id;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,WAAY,SAAiB,IAAI,cAAwB,CAAC,GAAI;AAC7E,MAAI;AAEJ,KAAG;AACF,SAAK,SAAS,KAAK,OAAO,EAAE,SAAU,EAAG,EAAE,MAAO,GAAG,CAAE;AAAA,EACxD,SAAU,YAAY,SAAU,EAAG;AAEnC,SAAO;AACR;","names":[]}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // src/generateId.ts
1
+ // src/generate-id.ts
2
2
  function generateId(prefix = "", existingIds = []) {
3
3
  let id;
4
4
  do {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/generateId.ts"],"sourcesContent":["export function generateId( prefix: string = '', existingIds: string[] = [] ) {\n\tlet id: string;\n\n\tdo {\n\t\tid = prefix + Math.random().toString( 16 ).slice( 2, 9 );\n\t} while ( existingIds.includes( id ) );\n\n\treturn id;\n}\n"],"mappings":";AAAO,SAAS,WAAY,SAAiB,IAAI,cAAwB,CAAC,GAAI;AAC7E,MAAI;AAEJ,KAAG;AACF,SAAK,SAAS,KAAK,OAAO,EAAE,SAAU,EAAG,EAAE,MAAO,GAAG,CAAE;AAAA,EACxD,SAAU,YAAY,SAAU,EAAG;AAEnC,SAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["../src/generate-id.ts"],"sourcesContent":["export function generateId( prefix: string = '', existingIds: string[] = [] ) {\n\tlet id: string;\n\n\tdo {\n\t\tid = prefix + Math.random().toString( 16 ).slice( 2, 9 );\n\t} while ( existingIds.includes( id ) );\n\n\treturn id;\n}\n"],"mappings":";AAAO,SAAS,WAAY,SAAiB,IAAI,cAAwB,CAAC,GAAI;AAC7E,MAAI;AAEJ,KAAG;AACF,SAAK,SAAS,KAAK,OAAO,EAAE,SAAU,EAAG,EAAE,MAAO,GAAG,CAAE;AAAA,EACxD,SAAU,YAAY,SAAU,EAAG;AAEnC,SAAO;AACR;","names":[]}
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.2.0",
4
+ "version": "0.3.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.2.0",
44
- "@elementor/editor-responsive": "^0.12.2"
43
+ "@elementor/editor-props": "^0.3.0",
44
+ "@elementor/editor-responsive": "^0.12.3"
45
45
  }
46
46
  }
package/src/index.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  export * from './types';
3
3
 
4
4
  // utils
5
- export { generateId } from './generateId';
5
+ export { generateId } from './generate-id';
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Props } from '@elementor/editor-props';
2
- import { BreakpointId } from '@elementor/editor-responsive';
1
+ import { type Props } from '@elementor/editor-props';
2
+ import { type BreakpointId } from '@elementor/editor-responsive';
3
3
 
4
4
  type StyleState =
5
5
  | null
@@ -28,7 +28,7 @@ export type StyleDefinitionID = string;
28
28
  export type StyleDefinition = {
29
29
  id: StyleDefinitionID;
30
30
  variants: StyleVariant[];
31
- label?: string;
31
+ label: string;
32
32
  type: StyleType;
33
33
  };
34
34
 
File without changes