@elementor/editor-editing-panel 4.0.0-521 → 4.0.0-522
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +41 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/components/promotions/custom-css.tsx +1 -4
- package/src/components/promotions/init.tsx +5 -0
- package/src/components/promotions/types.ts +3 -9
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-editing-panel",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-522",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,28 +39,28 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "4.0.0-
|
|
43
|
-
"@elementor/editor-canvas": "4.0.0-
|
|
44
|
-
"@elementor/editor-controls": "4.0.0-
|
|
45
|
-
"@elementor/editor-documents": "4.0.0-
|
|
46
|
-
"@elementor/editor-elements": "4.0.0-
|
|
47
|
-
"@elementor/editor-interactions": "4.0.0-
|
|
48
|
-
"@elementor/editor-panels": "4.0.0-
|
|
49
|
-
"@elementor/editor-props": "4.0.0-
|
|
50
|
-
"@elementor/editor-responsive": "4.0.0-
|
|
51
|
-
"@elementor/editor-styles": "4.0.0-
|
|
52
|
-
"@elementor/editor-styles-repository": "4.0.0-
|
|
53
|
-
"@elementor/editor-ui": "4.0.0-
|
|
54
|
-
"@elementor/editor-v1-adapters": "4.0.0-
|
|
42
|
+
"@elementor/editor": "4.0.0-522",
|
|
43
|
+
"@elementor/editor-canvas": "4.0.0-522",
|
|
44
|
+
"@elementor/editor-controls": "4.0.0-522",
|
|
45
|
+
"@elementor/editor-documents": "4.0.0-522",
|
|
46
|
+
"@elementor/editor-elements": "4.0.0-522",
|
|
47
|
+
"@elementor/editor-interactions": "4.0.0-522",
|
|
48
|
+
"@elementor/editor-panels": "4.0.0-522",
|
|
49
|
+
"@elementor/editor-props": "4.0.0-522",
|
|
50
|
+
"@elementor/editor-responsive": "4.0.0-522",
|
|
51
|
+
"@elementor/editor-styles": "4.0.0-522",
|
|
52
|
+
"@elementor/editor-styles-repository": "4.0.0-522",
|
|
53
|
+
"@elementor/editor-ui": "4.0.0-522",
|
|
54
|
+
"@elementor/editor-v1-adapters": "4.0.0-522",
|
|
55
55
|
"@elementor/icons": "^1.63.0",
|
|
56
|
-
"@elementor/editor-variables": "4.0.0-
|
|
57
|
-
"@elementor/locations": "4.0.0-
|
|
58
|
-
"@elementor/menus": "4.0.0-
|
|
59
|
-
"@elementor/schema": "4.0.0-
|
|
60
|
-
"@elementor/session": "4.0.0-
|
|
56
|
+
"@elementor/editor-variables": "4.0.0-522",
|
|
57
|
+
"@elementor/locations": "4.0.0-522",
|
|
58
|
+
"@elementor/menus": "4.0.0-522",
|
|
59
|
+
"@elementor/schema": "4.0.0-522",
|
|
60
|
+
"@elementor/session": "4.0.0-522",
|
|
61
61
|
"@elementor/ui": "1.36.17",
|
|
62
|
-
"@elementor/utils": "4.0.0-
|
|
63
|
-
"@elementor/wp-media": "4.0.0-
|
|
62
|
+
"@elementor/utils": "4.0.0-522",
|
|
63
|
+
"@elementor/wp-media": "4.0.0-522",
|
|
64
64
|
"@wordpress/i18n": "^5.13.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -4,12 +4,9 @@ import { PromotionChip, PromotionInfotip } from '@elementor/editor-ui';
|
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
5
|
|
|
6
6
|
import { StyleTabSection } from '../style-tab-section';
|
|
7
|
-
import { type CanvasExtendedWindow } from './types';
|
|
8
7
|
|
|
9
8
|
function getCustomCssPromotion() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return extendedWindow.elementor?.config?.v4Promotions?.customCss;
|
|
9
|
+
return window.elementor?.config?.v4Promotions?.customCss;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
export const CustomCssSection = () => {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DisplayConditionsControl } from '@elementor/editor-controls';
|
|
2
|
+
|
|
3
|
+
import { controlsRegistry } from '../../controls-registry/controls-registry';
|
|
1
4
|
import { injectIntoStyleTab } from '../style-tab';
|
|
2
5
|
import { CustomCssSection } from './custom-css';
|
|
3
6
|
|
|
@@ -9,5 +12,7 @@ export const init = () => {
|
|
|
9
12
|
component: CustomCssSection,
|
|
10
13
|
options: { overwrite: true },
|
|
11
14
|
} );
|
|
15
|
+
|
|
16
|
+
controlsRegistry.register( 'display-conditions', DisplayConditionsControl, 'two-columns' );
|
|
12
17
|
}
|
|
13
18
|
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
type V4PromotionData = {
|
|
1
|
+
export type V4PromotionData = {
|
|
2
2
|
title: string;
|
|
3
3
|
content: string;
|
|
4
|
-
ctaUrl: string;
|
|
5
4
|
image: string;
|
|
5
|
+
ctaUrl: string;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export type
|
|
9
|
-
elementor?: {
|
|
10
|
-
config?: {
|
|
11
|
-
v4Promotions?: Record< string, V4PromotionData >;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
8
|
+
export type V4PromotionKeys = 'displayConditions' | 'customCss';
|
package/src/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { usePanelActions, usePanelStatus } from './panel';
|
|
|
25
25
|
export { registerStyleProviderToColors } from './provider-colors-registry';
|
|
26
26
|
export { getFieldIndicators, registerFieldIndicator, FIELD_TYPE } from './field-indicators-registry';
|
|
27
27
|
export { registerEditingPanelReplacement } from './editing-panel-replacement-registry';
|
|
28
|
+
export { type V4PromotionData } from './components/promotions/types';
|
|
28
29
|
|
|
29
30
|
export { doApplyClasses, doGetAppliedClasses, doUnapplyClass } from './apply-unapply-actions';
|
|
30
31
|
export { setLicenseConfig } from './hooks/use-license-config';
|