@scalar/sidebar 0.8.10 → 0.8.12

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.
@@ -1,5 +1,5 @@
1
- import type { DraggingItem, HoveredItem, UseDraggableOptions } from '@/hooks/use-draggable';
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';
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/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/sidebar"
12
12
  },
13
- "version": "0.8.10",
13
+ "version": "0.8.12",
14
14
  "engines": {
15
15
  "node": ">=22"
16
16
  },
@@ -32,11 +32,11 @@
32
32
  "dependencies": {
33
33
  "vue": "^3.5.26",
34
34
  "@scalar/helpers": "0.4.2",
35
- "@scalar/components": "0.20.10",
35
+ "@scalar/icons": "0.6.3",
36
36
  "@scalar/themes": "0.15.1",
37
- "@scalar/icons": "0.6.1",
38
- "@scalar/use-hooks": "0.4.1",
39
- "@scalar/workspace-store": "0.40.3"
37
+ "@scalar/components": "0.20.12",
38
+ "@scalar/workspace-store": "0.40.4",
39
+ "@scalar/use-hooks": "0.4.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@tailwindcss/vite": "^4.2.0",
@@ -50,7 +50,7 @@
50
50
  "vitest": "4.1.0"
51
51
  },
52
52
  "scripts": {
53
- "build": "vite build && vue-tsc -p tsconfig.build.json",
53
+ "build": "vite build && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
54
54
  "dev": "vite ./playground -c ./vite.config.ts",
55
55
  "test": "vitest",
56
56
  "types:check": "vue-tsc --noEmit"