@elementor/editor-styles-repository 3.33.0-98 → 3.34.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/dist/index.d.mts CHANGED
@@ -40,6 +40,10 @@ type StylesProvider = {
40
40
  update?: (data: UpdateActionPayload) => void;
41
41
  updateProps?: (args: UpdatePropsActionPayload, meta?: Meta) => void;
42
42
  updateCustomCss?: (args: UpdateCustomCssActionPayload, meta?: Meta) => void;
43
+ tracking?: (data: {
44
+ event: string;
45
+ [key: string]: unknown;
46
+ }) => void;
43
47
  };
44
48
  capabilities?: UserCapabilities;
45
49
  };
@@ -93,6 +97,7 @@ type CreateStylesProviderOptions = {
93
97
  update?: StylesProvider['actions']['update'];
94
98
  updateProps?: StylesProvider['actions']['updateProps'];
95
99
  updateCustomCss?: StylesProvider['actions']['updateCustomCss'];
100
+ tracking?: StylesProvider['actions']['tracking'];
96
101
  };
97
102
  capabilities?: UserCapabilities;
98
103
  };
package/dist/index.d.ts CHANGED
@@ -40,6 +40,10 @@ type StylesProvider = {
40
40
  update?: (data: UpdateActionPayload) => void;
41
41
  updateProps?: (args: UpdatePropsActionPayload, meta?: Meta) => void;
42
42
  updateCustomCss?: (args: UpdateCustomCssActionPayload, meta?: Meta) => void;
43
+ tracking?: (data: {
44
+ event: string;
45
+ [key: string]: unknown;
46
+ }) => void;
43
47
  };
44
48
  capabilities?: UserCapabilities;
45
49
  };
@@ -93,6 +97,7 @@ type CreateStylesProviderOptions = {
93
97
  update?: StylesProvider['actions']['update'];
94
98
  updateProps?: StylesProvider['actions']['updateProps'];
95
99
  updateCustomCss?: StylesProvider['actions']['updateCustomCss'];
100
+ tracking?: StylesProvider['actions']['tracking'];
96
101
  };
97
102
  capabilities?: UserCapabilities;
98
103
  };
package/dist/index.js CHANGED
@@ -175,7 +175,8 @@ function createStylesProvider({
175
175
  delete: actions.delete,
176
176
  update: actions.update,
177
177
  updateProps: actions.updateProps,
178
- updateCustomCss: actions.updateCustomCss
178
+ updateCustomCss: actions.updateCustomCss,
179
+ tracking: actions.tracking
179
180
  }
180
181
  };
181
182
  }
package/dist/index.mjs CHANGED
@@ -145,7 +145,8 @@ function createStylesProvider({
145
145
  delete: actions.delete,
146
146
  update: actions.update,
147
147
  updateProps: actions.updateProps,
148
- updateCustomCss: actions.updateCustomCss
148
+ updateCustomCss: actions.updateCustomCss,
149
+ tracking: actions.tracking
149
150
  }
150
151
  };
151
152
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-styles-repository",
3
3
  "description": "Elementor Editor Styles Repository",
4
- "version": "3.33.0-98",
4
+ "version": "3.34.2",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -33,13 +33,13 @@
33
33
  "dev": "tsup --config=../../tsup.dev.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@elementor/editor-current-user": "3.33.0-98",
37
- "@elementor/editor-elements": "3.33.0-98",
38
- "@elementor/editor-props": "3.33.0-98",
39
- "@elementor/editor-styles": "3.33.0-98",
40
- "@elementor/editor-v1-adapters": "3.33.0-98",
41
- "@elementor/schema": "3.33.0-98",
42
- "@elementor/utils": "3.33.0-98",
36
+ "@elementor/editor-current-user": "3.34.2",
37
+ "@elementor/editor-elements": "3.34.2",
38
+ "@elementor/editor-props": "3.34.2",
39
+ "@elementor/editor-styles": "3.34.2",
40
+ "@elementor/editor-v1-adapters": "3.34.2",
41
+ "@elementor/schema": "3.34.2",
42
+ "@elementor/utils": "3.34.2",
43
43
  "@wordpress/i18n": "^5.13.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -28,7 +28,6 @@ export function useGetStylesRepositoryCreateAction() {
28
28
  return null;
29
29
  }
30
30
  throw new Error( 'Multiple providers with create action found in styles repository.' );
31
- // eslint-disable-next-line react-compiler/react-compiler
32
31
  // eslint-disable-next-line react-hooks/exhaustive-deps
33
32
  }, [] );
34
33
  }
package/src/index.ts CHANGED
@@ -13,5 +13,4 @@ export {
13
13
  ELEMENTS_STYLES_PROVIDER_KEY_PREFIX,
14
14
  ELEMENTS_STYLES_RESERVED_LABEL,
15
15
  } from './providers/document-elements-styles-provider';
16
-
17
16
  export { init } from './init';
package/src/types.ts CHANGED
@@ -46,6 +46,7 @@ export type StylesProvider = {
46
46
  update?: ( data: UpdateActionPayload ) => void;
47
47
  updateProps?: ( args: UpdatePropsActionPayload, meta?: Meta ) => void;
48
48
  updateCustomCss?: ( args: UpdateCustomCssActionPayload, meta?: Meta ) => void;
49
+ tracking?: ( data: { event: string; [ key: string ]: unknown } ) => void;
49
50
  };
50
51
  capabilities?: UserCapabilities;
51
52
  };
@@ -18,6 +18,7 @@ export type CreateStylesProviderOptions = {
18
18
  update?: StylesProvider[ 'actions' ][ 'update' ];
19
19
  updateProps?: StylesProvider[ 'actions' ][ 'updateProps' ];
20
20
  updateCustomCss?: StylesProvider[ 'actions' ][ 'updateCustomCss' ];
21
+ tracking?: StylesProvider[ 'actions' ][ 'tracking' ];
21
22
  };
22
23
  capabilities?: UserCapabilities;
23
24
  };
@@ -53,6 +54,7 @@ export function createStylesProvider( {
53
54
  update: actions.update,
54
55
  updateProps: actions.updateProps,
55
56
  updateCustomCss: actions.updateCustomCss,
57
+ tracking: actions.tracking,
56
58
  },
57
59
  };
58
60
  }