@scalar/sidebar 0.8.8 → 0.8.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 (31) hide show
  1. package/dist/components/ScalarSidebar.vue.d.ts +2 -2
  2. package/dist/components/SidebarItem.vue.d.ts +2 -2
  3. package/dist/components/SidebarItemLabel.vue.d.ts +1 -1
  4. package/dist/helpers/filter-items.d.ts +1 -1
  5. package/dist/helpers/has-children.d.ts +1 -1
  6. package/dist/helpers/is-sidebar-folder.d.ts +1 -1
  7. package/dist/index.d.ts +9 -9
  8. package/dist/index.js +832 -20
  9. package/dist/index.js.map +1 -0
  10. package/dist/style.css +4535 -1
  11. package/package.json +12 -18
  12. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  13. package/dist/components/HttpMethod.vue.js +0 -30
  14. package/dist/components/HttpMethod.vue2.js +0 -4
  15. package/dist/components/ScalarSidebar.vue.js +0 -82
  16. package/dist/components/ScalarSidebar.vue2.js +0 -4
  17. package/dist/components/SidebarHttpBadge.vue.js +0 -7
  18. package/dist/components/SidebarHttpBadge.vue2.js +0 -41
  19. package/dist/components/SidebarItem.vue.js +0 -264
  20. package/dist/components/SidebarItem.vue2.js +0 -4
  21. package/dist/components/SidebarItemDecorator.vue.js +0 -12
  22. package/dist/components/SidebarItemLabel.vue.js +0 -22
  23. package/dist/components/SidebarItemLabel.vue2.js +0 -4
  24. package/dist/helpers/create-sidebar-state.js +0 -38
  25. package/dist/helpers/filter-items.js +0 -4
  26. package/dist/helpers/generate-reverse-index.js +0 -14
  27. package/dist/helpers/get-child-entry.js +0 -14
  28. package/dist/helpers/has-children.js +0 -4
  29. package/dist/helpers/is-sidebar-folder.js +0 -5
  30. package/dist/helpers/scroll-sidebar-to-top.js +0 -27
  31. package/dist/hooks/use-draggable.js +0 -82
@@ -1,5 +1,5 @@
1
- import type { DraggingItem, HoveredItem, UseDraggableOptions } from '../hooks/use-draggable.js';
2
- import type { Item, Layout } from '../types';
1
+ import type { DraggingItem, HoveredItem, UseDraggableOptions } from '@/hooks/use-draggable';
2
+ import type { Item, Layout } from '@/types';
3
3
  type __VLS_Props = {
4
4
  /**
5
5
  * Layout type for the sidebar.
@@ -1,5 +1,5 @@
1
- import { type DraggingItem, type HoveredItem, type UseDraggableOptions } from '../hooks/use-draggable.js';
2
- import type { Item, Layout } from '../types';
1
+ import { type DraggingItem, type HoveredItem, type UseDraggableOptions } from '@/hooks/use-draggable';
2
+ import type { Item, Layout } from '@/types';
3
3
  type __VLS_Props = {
4
4
  /**
5
5
  * The sidebar item to render.
@@ -1,4 +1,4 @@
1
- import type { Item } from '../types';
1
+ import type { Item } from '@/types';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * The sidebar item to render.
@@ -1,3 +1,3 @@
1
- import type { Item, Layout } from '../types';
1
+ import type { Item, Layout } from '@/types';
2
2
  export declare const filterItems: (layout: Layout, items: Item[]) => import("@scalar/workspace-store/schemas/navigation").TraversedEntry[];
3
3
  //# sourceMappingURL=filter-items.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Item } from '../types';
1
+ import type { Item } from '@/types';
2
2
  /**
3
3
  * Type guard to check if the given Item has a non-empty array of children.
4
4
  * Returns true if `currentItem` has a `children` property that is an array with at least one element.
@@ -1,4 +1,4 @@
1
- import type { Item, Layout } from '../types';
1
+ import type { Item, Layout } from '@/types';
2
2
  /**
3
3
  * Determines if a sidebar item should be treated as a "folder",
4
4
  * i.e. a collapsible group, depending on the layout, its type,
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import './style.css';
2
- export { default as HttpMethod } from './components/HttpMethod.vue.js';
3
- export { default as ScalarSidebar } from './components/ScalarSidebar.vue.js';
4
- export { default as SidebarHttpBadge } from './components/SidebarHttpBadge.vue.js';
5
- export { default as SidebarItem } from './components/SidebarItem.vue.js';
6
- export { type SidebarState, createSidebarState, } from './helpers/create-sidebar-state.js';
7
- export { generateReverseIndex } from './helpers/generate-reverse-index.js';
8
- export { getChildEntry } from './helpers/get-child-entry.js';
9
- export { scrollSidebarToTop } from './helpers/scroll-sidebar-to-top.js';
10
- export { type DragOffset, type DraggingItem, type HoveredItem, useDraggable, } from './hooks/use-draggable.js';
2
+ export { default as HttpMethod } from './components/HttpMethod.vue';
3
+ export { default as ScalarSidebar } from './components/ScalarSidebar.vue';
4
+ export { default as SidebarHttpBadge } from './components/SidebarHttpBadge.vue';
5
+ export { default as SidebarItem } from './components/SidebarItem.vue';
6
+ export { type SidebarState, createSidebarState, } from './helpers/create-sidebar-state';
7
+ export { generateReverseIndex } from './helpers/generate-reverse-index';
8
+ export { getChildEntry } from './helpers/get-child-entry';
9
+ export { scrollSidebarToTop } from './helpers/scroll-sidebar-to-top';
10
+ export { type DragOffset, type DraggingItem, type HoveredItem, useDraggable, } from './hooks/use-draggable';
11
11
  export type { Item } from './types.ts';
12
12
  //# sourceMappingURL=index.d.ts.map