@elementor/editor-site-navigation 4.5.0-1216 → 4.5.0-1218

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/dist/index.d.mts +24 -1
  2. package/dist/index.d.ts +24 -1
  3. package/dist/index.js +830 -344
  4. package/dist/index.mjs +782 -288
  5. package/package.json +11 -10
  6. package/src/api/post.ts +21 -5
  7. package/src/components/panel/actions-menu/action-menu-item.tsx +4 -3
  8. package/src/components/panel/actions-menu/actions/force-delete.tsx +99 -0
  9. package/src/components/panel/actions-menu/actions/restore.tsx +33 -0
  10. package/src/components/panel/content-panel-active-filters.tsx +53 -0
  11. package/src/components/panel/content-panel-chrome.ts +19 -0
  12. package/src/components/panel/content-panel-clear-filters-button.tsx +22 -0
  13. package/src/components/panel/content-panel-search.tsx +1 -2
  14. package/src/components/panel/content-panel-status-filter-list.tsx +70 -0
  15. package/src/components/panel/content-panel-status-filter.tsx +75 -0
  16. package/src/components/panel/content-panel-toolbar.tsx +23 -0
  17. package/src/components/panel/posts-list/collapsible-list.tsx +7 -4
  18. package/src/components/panel/posts-list/list-items/list-item-view.tsx +80 -47
  19. package/src/components/panel/posts-list/list-items/site-content-list-item-actions-location.tsx +14 -0
  20. package/src/components/panel/posts-list/posts-collapsible-list.tsx +30 -9
  21. package/src/components/panel/shell.tsx +6 -2
  22. package/src/components/shared/page-title-and-status.tsx +2 -0
  23. package/src/contexts/content-panel-coordinator.tsx +34 -3
  24. package/src/hooks/use-posts-actions.ts +20 -1
  25. package/src/hooks/use-posts-baseline-total.ts +22 -0
  26. package/src/hooks/use-posts.ts +19 -13
  27. package/src/hooks/use-site-content-status-filter-counts.ts +56 -0
  28. package/src/index.ts +5 -0
  29. package/src/site-content-restore.ts +1 -0
  30. package/src/site-content-status-filter.ts +111 -0
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import * as _elementor_locations from '@elementor/locations';
2
3
 
3
4
  type IconsMap = {
4
5
  [key: string]: React.ElementType;
@@ -7,4 +8,26 @@ declare function extendIconsMap(additionalIcons: IconsMap): void;
7
8
 
8
9
  declare function init(): void;
9
10
 
10
- export { extendIconsMap, init };
11
+ type Post = {
12
+ isHome?: boolean;
13
+ id: number;
14
+ link: string;
15
+ status: string;
16
+ type: string;
17
+ title: {
18
+ rendered: string;
19
+ };
20
+ user_can: {
21
+ edit: boolean;
22
+ delete: boolean;
23
+ };
24
+ };
25
+
26
+ type SiteContentListItemActionsProps = {
27
+ post: Post;
28
+ title: string;
29
+ };
30
+ declare const SiteContentListItemActionsSlot: React.ComponentType<SiteContentListItemActionsProps>;
31
+ declare const injectIntoSiteContentListItemActions: (args: _elementor_locations.InjectArgs<SiteContentListItemActionsProps>) => void;
32
+
33
+ export { type SiteContentListItemActionsProps, SiteContentListItemActionsSlot, extendIconsMap, init, injectIntoSiteContentListItemActions };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import * as _elementor_locations from '@elementor/locations';
2
3
 
3
4
  type IconsMap = {
4
5
  [key: string]: React.ElementType;
@@ -7,4 +8,26 @@ declare function extendIconsMap(additionalIcons: IconsMap): void;
7
8
 
8
9
  declare function init(): void;
9
10
 
10
- export { extendIconsMap, init };
11
+ type Post = {
12
+ isHome?: boolean;
13
+ id: number;
14
+ link: string;
15
+ status: string;
16
+ type: string;
17
+ title: {
18
+ rendered: string;
19
+ };
20
+ user_can: {
21
+ edit: boolean;
22
+ delete: boolean;
23
+ };
24
+ };
25
+
26
+ type SiteContentListItemActionsProps = {
27
+ post: Post;
28
+ title: string;
29
+ };
30
+ declare const SiteContentListItemActionsSlot: React.ComponentType<SiteContentListItemActionsProps>;
31
+ declare const injectIntoSiteContentListItemActions: (args: _elementor_locations.InjectArgs<SiteContentListItemActionsProps>) => void;
32
+
33
+ export { type SiteContentListItemActionsProps, SiteContentListItemActionsSlot, extendIconsMap, init, injectIntoSiteContentListItemActions };