@elementor/editor-editing-panel 4.3.0-1053 → 4.3.0-1055

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-editing-panel",
3
- "version": "4.3.0-1053",
3
+ "version": "4.3.0-1055",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,31 +39,31 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor": "4.3.0-1053",
43
- "@elementor/editor-canvas": "4.3.0-1053",
44
- "@elementor/editor-controls": "4.3.0-1053",
45
- "@elementor/editor-documents": "4.3.0-1053",
46
- "@elementor/editor-elements": "4.3.0-1053",
47
- "@elementor/editor-interactions": "4.3.0-1053",
48
- "@elementor/editor-notifications": "4.3.0-1053",
49
- "@elementor/editor-panels": "4.3.0-1053",
50
- "@elementor/editor-props": "4.3.0-1053",
51
- "@elementor/editor-responsive": "4.3.0-1053",
52
- "@elementor/editor-styles": "4.3.0-1053",
53
- "@elementor/editor-styles-repository": "4.3.0-1053",
54
- "@elementor/editor-ui": "4.3.0-1053",
55
- "@elementor/editor-v1-adapters": "4.3.0-1053",
56
- "@elementor/http-client": "4.3.0-1053",
42
+ "@elementor/editor": "4.3.0-1055",
43
+ "@elementor/editor-canvas": "4.3.0-1055",
44
+ "@elementor/editor-controls": "4.3.0-1055",
45
+ "@elementor/editor-documents": "4.3.0-1055",
46
+ "@elementor/editor-elements": "4.3.0-1055",
47
+ "@elementor/editor-interactions": "4.3.0-1055",
48
+ "@elementor/editor-notifications": "4.3.0-1055",
49
+ "@elementor/editor-panels": "4.3.0-1055",
50
+ "@elementor/editor-props": "4.3.0-1055",
51
+ "@elementor/editor-responsive": "4.3.0-1055",
52
+ "@elementor/editor-styles": "4.3.0-1055",
53
+ "@elementor/editor-styles-repository": "4.3.0-1055",
54
+ "@elementor/editor-ui": "4.3.0-1055",
55
+ "@elementor/editor-v1-adapters": "4.3.0-1055",
56
+ "@elementor/http-client": "4.3.0-1055",
57
57
  "@elementor/icons": "~1.75.1",
58
- "@elementor/editor-variables": "4.3.0-1053",
59
- "@elementor/locations": "4.3.0-1053",
60
- "@elementor/menus": "4.3.0-1053",
61
- "@elementor/query": "4.3.0-1053",
62
- "@elementor/schema": "4.3.0-1053",
63
- "@elementor/session": "4.3.0-1053",
58
+ "@elementor/editor-variables": "4.3.0-1055",
59
+ "@elementor/locations": "4.3.0-1055",
60
+ "@elementor/menus": "4.3.0-1055",
61
+ "@elementor/query": "4.3.0-1055",
62
+ "@elementor/schema": "4.3.0-1055",
63
+ "@elementor/session": "4.3.0-1055",
64
64
  "@elementor/ui": "1.37.5",
65
- "@elementor/utils": "4.3.0-1053",
66
- "@elementor/wp-media": "4.3.0-1053",
65
+ "@elementor/utils": "4.3.0-1055",
66
+ "@elementor/wp-media": "4.3.0-1055",
67
67
  "@wordpress/i18n": "^5.13.0"
68
68
  },
69
69
  "peerDependencies": {
@@ -83,6 +83,7 @@ const useAppliedStyles = () => {
83
83
  const currentClassesProp = useClassesProp();
84
84
  const baseStyles = useBaseStyles();
85
85
  const defaultTagStyleId = useDefaultTagStyleId();
86
+ const { id: activeStyleId } = useStyle();
86
87
 
87
88
  useStylesRerender();
88
89
 
@@ -90,7 +91,12 @@ const useAppliedStyles = () => {
90
91
 
91
92
  const appliedStyles = classesPropTypeUtil.extract( classesProp ) ?? [];
92
93
 
93
- const applicableIds = [ ...baseStyles, ...appliedStyles, ...( defaultTagStyleId ? [ defaultTagStyleId ] : [] ) ];
94
+ const applicableIds = [
95
+ ...baseStyles,
96
+ ...appliedStyles,
97
+ ...( defaultTagStyleId ? [ defaultTagStyleId ] : [] ),
98
+ ...( activeStyleId ? [ activeStyleId ] : [] ),
99
+ ];
94
100
 
95
101
  return stylesRepository.all().filter( ( style ) => applicableIds.includes( style.id ) );
96
102
  };
package/src/index.ts CHANGED
@@ -16,7 +16,7 @@ export { SectionsList } from './components/sections-list';
16
16
  export { SettingsControl } from './components/settings-control';
17
17
  export { SettingsField } from './controls-registry/settings-field';
18
18
  export { StyleIndicator } from './components/style-indicator';
19
- export { injectIntoStyleTab } from './components/style-tab';
19
+ export { injectIntoStyleTab, StyleTabSlot } from './components/style-tab';
20
20
  export { StyleSections } from './components/style-sections';
21
21
  export {
22
22
  STYLE_SECTION_NAMES,