@elementor/editor-site-navigation 0.19.8 → 0.19.10

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 (37) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/index.js +288 -167
  3. package/dist/index.mjs +278 -158
  4. package/package.json +3 -3
  5. package/src/api/recent-posts.ts +15 -0
  6. package/src/components/panel/actions-menu/action-menu-item.tsx +10 -13
  7. package/src/components/panel/actions-menu/actions/__tests__/delete.test.tsx +2 -2
  8. package/src/components/panel/actions-menu/actions/__tests__/set-home.test.tsx +4 -4
  9. package/src/components/panel/actions-menu/actions/__tests__/view.test.tsx +1 -1
  10. package/src/components/panel/actions-menu/actions/delete.tsx +8 -2
  11. package/src/components/panel/actions-menu/actions/duplicate.tsx +1 -1
  12. package/src/components/panel/actions-menu/actions/rename.tsx +1 -1
  13. package/src/components/panel/actions-menu/actions/set-home.tsx +12 -4
  14. package/src/components/panel/actions-menu/actions/view.tsx +1 -1
  15. package/src/components/panel/add-new-button.tsx +3 -1
  16. package/src/components/panel/error-snackbar.tsx +33 -0
  17. package/src/components/panel/posts-list/__tests__/post-list-item.test.tsx +2 -2
  18. package/src/components/panel/posts-list/__tests__/posts-collapsible-list.test.tsx +3 -3
  19. package/src/components/panel/posts-list/collapsible-list.tsx +22 -10
  20. package/src/components/panel/posts-list/error-state.tsx +37 -0
  21. package/src/components/panel/posts-list/list-items/edit-mode-template.tsx +49 -32
  22. package/src/components/panel/posts-list/list-items/list-item-create.tsx +13 -10
  23. package/src/components/panel/posts-list/list-items/list-item-duplicate.tsx +13 -10
  24. package/src/components/panel/posts-list/list-items/list-item-rename.tsx +12 -9
  25. package/src/components/panel/posts-list/list-items/list-item-view.tsx +5 -12
  26. package/src/components/panel/posts-list/posts-collapsible-list.tsx +31 -3
  27. package/src/components/panel/shell.tsx +5 -1
  28. package/src/components/shared/page-title-and-status.tsx +2 -0
  29. package/src/components/top-bar/__tests__/add-new-page.test.tsx +6 -5
  30. package/src/components/top-bar/__tests__/recently-edited.test.tsx +22 -10
  31. package/src/components/top-bar/post-list-item.tsx +2 -2
  32. package/src/components/top-bar/recently-edited.tsx +21 -2
  33. package/src/contexts/post-list-context.tsx +5 -0
  34. package/src/hooks/__tests__/use-recent-posts.test.ts +8 -9
  35. package/src/hooks/use-posts-actions.ts +2 -1
  36. package/src/hooks/use-recent-posts.ts +8 -47
  37. package/src/types.ts +12 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.19.10](https://github.com/elementor/elementor-packages/compare/@elementor/editor-site-navigation@0.19.9...@elementor/editor-site-navigation@0.19.10) (2024-01-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **editor-site-navigation:** add error state and fix UI [ED-13182] ([#150](https://github.com/elementor/elementor-packages/issues/150)) ([177c709](https://github.com/elementor/elementor-packages/commit/177c7090c8198c29077d77b9c4f10b80ee1ca9b9))
12
+ * **editor-site-navigation:** invalidate recent posts after update in pages panel [ED-12823] ([#147](https://github.com/elementor/elementor-packages/issues/147)) ([79b0f16](https://github.com/elementor/elementor-packages/commit/79b0f16c12301df24431c117e122b9d0ecbc7785))
13
+
14
+
15
+
16
+
17
+
18
+ ## [0.19.9](https://github.com/elementor/elementor-packages/compare/@elementor/editor-site-navigation@0.19.8...@elementor/editor-site-navigation@0.19.9) (2023-11-19)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **editor-site-navigation:** wrong state handling in edit mode [ED-12814] ([#146](https://github.com/elementor/elementor-packages/issues/146)) ([5bee3ee](https://github.com/elementor/elementor-packages/commit/5bee3eed17d8f6589c5cddd87ace012dcc9549ce))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [0.19.8](https://github.com/elementor/elementor-packages/compare/@elementor/editor-site-navigation@0.19.7...@elementor/editor-site-navigation@0.19.8) (2023-11-07)
7
30
 
8
31
  **Note:** Version bump only for package @elementor/editor-site-navigation