@elementor/editor-editing-panel 1.30.0 → 1.32.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/index.d.mts +10 -1
  3. package/dist/index.d.ts +10 -1
  4. package/dist/index.js +966 -630
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +870 -527
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +10 -10
  9. package/src/components/creatable-autocomplete/autocomplete-option-internal-properties.ts +21 -0
  10. package/src/components/creatable-autocomplete/creatable-autocomplete.tsx +175 -0
  11. package/src/components/creatable-autocomplete/index.ts +3 -0
  12. package/src/components/creatable-autocomplete/types.ts +38 -0
  13. package/src/components/creatable-autocomplete/use-autocomplete-change.ts +75 -0
  14. package/src/components/creatable-autocomplete/use-autocomplete-states.ts +42 -0
  15. package/src/components/creatable-autocomplete/use-create-option.ts +45 -0
  16. package/src/components/creatable-autocomplete/use-filter-options.ts +50 -0
  17. package/src/components/css-classes/css-class-item.tsx +2 -2
  18. package/src/components/css-classes/css-class-selector.tsx +44 -27
  19. package/src/components/editing-panel-tabs.tsx +19 -14
  20. package/src/components/style-sections/position-section/offset-field.tsx +22 -0
  21. package/src/components/style-sections/position-section/position-section.tsx +4 -0
  22. package/src/components/style-tab.tsx +26 -3
  23. package/src/contexts/scroll-context.tsx +60 -0
  24. package/src/hooks/use-normalized-inheritance-chain-items.tsx +68 -0
  25. package/src/index.ts +1 -0
  26. package/src/styles-inheritance/styles-inheritance-indicator.tsx +65 -19
  27. package/src/styles-inheritance/styles-inheritance-infotip.tsx +50 -0
  28. package/src/sync/get-experiments-config.ts +7 -0
  29. package/src/sync/types.ts +7 -0
  30. package/src/components/multi-combobox.tsx +0 -165
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6984b75: Create Style Indication Infotip.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [7daaa99]
12
+ - Updated dependencies [6984b75]
13
+ - @elementor/editor-current-user@0.3.1
14
+ - @elementor/editor-controls@0.28.1
15
+ - @elementor/editor-canvas@0.20.0
16
+
17
+ ## 1.31.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 233825c: Add scroll offset control to styles tab
22
+ - 18741b8: Add sticky header to Panel
23
+
24
+ ### Patch Changes
25
+
26
+ - ca016cc: Elementor ui update to version 1.34.2, elementor icons update to 1.40.1
27
+ - ca5d620: CSS class selector: Display validation error message
28
+ - Updated dependencies [f4deb05]
29
+ - Updated dependencies [9e7a3ee]
30
+ - Updated dependencies [ca016cc]
31
+ - Updated dependencies [baf662e]
32
+ - Updated dependencies [ca5d620]
33
+ - @elementor/editor-controls@0.28.0
34
+ - @elementor/editor-canvas@0.19.1
35
+ - @elementor/editor-panels@0.15.1
36
+ - @elementor/editor-ui@0.8.1
37
+ - @elementor/editor@0.19.1
38
+ - @elementor/editor-styles-repository@0.8.5
39
+
3
40
  ## 1.30.0
4
41
 
5
42
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -33,10 +33,19 @@ declare const usePanelStatus: () => {
33
33
  isBlocked: boolean;
34
34
  };
35
35
 
36
+ type ValidationResult = {
37
+ isValid: true;
38
+ errorMessage: null;
39
+ } | {
40
+ isValid: false;
41
+ errorMessage: string;
42
+ };
43
+ type ValidationEvent = 'inputChange' | 'create';
44
+
36
45
  declare const controlActionsMenu: _elementor_menus.Menu<{
37
46
  PopoverAction: typeof PopoverAction;
38
47
  }, "default">;
39
48
 
40
49
  declare function init(): void;
41
50
 
42
- export { type PopoverActionProps, controlActionsMenu, init, injectIntoClassSelectorActions, registerControlReplacement, usePanelActions, usePanelStatus };
51
+ export { type PopoverActionProps, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, registerControlReplacement, usePanelActions, usePanelStatus };
package/dist/index.d.ts CHANGED
@@ -33,10 +33,19 @@ declare const usePanelStatus: () => {
33
33
  isBlocked: boolean;
34
34
  };
35
35
 
36
+ type ValidationResult = {
37
+ isValid: true;
38
+ errorMessage: null;
39
+ } | {
40
+ isValid: false;
41
+ errorMessage: string;
42
+ };
43
+ type ValidationEvent = 'inputChange' | 'create';
44
+
36
45
  declare const controlActionsMenu: _elementor_menus.Menu<{
37
46
  PopoverAction: typeof PopoverAction;
38
47
  }, "default">;
39
48
 
40
49
  declare function init(): void;
41
50
 
42
- export { type PopoverActionProps, controlActionsMenu, init, injectIntoClassSelectorActions, registerControlReplacement, usePanelActions, usePanelStatus };
51
+ export { type PopoverActionProps, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, registerControlReplacement, usePanelActions, usePanelStatus };