Skip to content

Commit 3d79042

Browse files
committed
chore(vuetify0): sync composables and components with repo
Update VUETIFY0_COMPOSABLES and VUETIFY0_COMPONENTS to match current vuetifyjs/0 repository state. Add missing entries (useClickOutside, useHotkey, useMediaQuery, Dialog), remove non-existent ones, and fix naming (useRegistry → createRegistry).
1 parent 673f287 commit 3d79042

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/services/vuetify0.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const VUETIFY0_COMPOSABLES = {
2020
name: 'Registration',
2121
description: 'Manage collections and registries',
2222
composables: {
23-
useRegistry: 'Foundation for registration-based systems with automatic indexing',
23+
createRegistry: 'Foundation for registration-based systems with automatic indexing',
2424
useProxyRegistry: 'Proxy-based registry with automatic reactivity',
2525
useQueue: 'Registry queue management',
2626
useTimeline: 'Bounded undo/redo system with fixed-size history',
@@ -32,13 +32,9 @@ export const VUETIFY0_COMPOSABLES = {
3232
description: 'Manage selection state in collections',
3333
composables: {
3434
createSelection: 'Creates a selection instance for managing multiple selected items (factory function)',
35-
useSelection: 'Returns the current selection context instance',
3635
createGroup: 'Creates a group instance with batch selection operations (extends createSelection)',
37-
useGroup: 'Returns the current group context instance',
3836
createSingle: 'Creates a single-selection instance (enforces only one selected item)',
39-
useSingle: 'Returns the current single-selection context instance',
4037
createStep: 'Creates a step/stepper instance for managing multi-step processes',
41-
useStep: 'Returns the current step context instance',
4238
useFilter: 'Filter arrays based on search queries',
4339
usePagination: 'Lightweight pagination for navigating through pages with next/prev/first/last methods',
4440
},
@@ -55,9 +51,11 @@ export const VUETIFY0_COMPOSABLES = {
5551
name: 'System',
5652
description: 'DOM observers and event handlers with automatic cleanup',
5753
composables: {
54+
useClickOutside: 'Detect clicks outside an element',
5855
useEventListener: 'Event listener management with auto-cleanup',
56+
useHotkey: 'Keyboard hotkey/shortcut handling',
5957
useIntersectionObserver: 'Detect element visibility changes',
60-
useKeydown: 'Keyboard event handling',
58+
useMediaQuery: 'Reactive CSS media query matching',
6159
useMutationObserver: 'Observe DOM mutations',
6260
useOverflow: 'Computes how many items fit in a container based on available width',
6361
useResizeObserver: 'Detect element dimension changes',
@@ -69,9 +67,8 @@ export const VUETIFY0_COMPOSABLES = {
6967
name: 'Plugins',
7068
description: 'Core system utilities',
7169
composables: {
72-
createFeatures: 'Creates a feature flag management instance',
73-
useFeatures: 'Returns the current features context instance',
7470
useBreakpoints: 'Responsive breakpoint detection',
71+
useFeatures: 'Feature flag management',
7572
useHydration: 'SSR hydration utilities',
7673
useLocale: 'Internationalization support',
7774
useLogger: 'Logging system',
@@ -93,6 +90,7 @@ export const VUETIFY0_COMPOSABLES = {
9390
export const VUETIFY0_COMPONENTS = {
9491
Atom: 'Base element wrapper component',
9592
Avatar: 'Image loading with fallback system',
93+
Dialog: 'Modal dialog component',
9694
ExpansionPanel: 'Expandable panel component',
9795
Group: 'Component grouping/container',
9896
Pagination: 'Pagination controls with Root, Item, Ellipsis, First, Last, Next, Prev sub-components',
@@ -162,7 +160,7 @@ export function createVuetify0Service () {
162160
content: [
163161
{
164162
type: 'text',
165-
text: `# @vuetify/v0 Composables\n\nVuetify0 provides 32+ tree-shakeable composables organized into 7 categories:\n\n${categories}\n\n**Note**: Vuetify0 is currently in Pre-Alpha. Features may not function as expected.\n\n**Documentation**: https://0.vuetifyjs.com/composables`,
163+
text: `# @vuetify/v0 Composables\n\nVuetify0 provides 36 tree-shakeable composables organized into 7 categories:\n\n${categories}\n\n**Note**: Vuetify0 is currently in Pre-Alpha. Features may not function as expected.\n\n**Documentation**: https://0.vuetifyjs.com/composables`,
166164
} as const,
167165
],
168166
}
@@ -177,7 +175,7 @@ export function createVuetify0Service () {
177175
content: [
178176
{
179177
type: 'text',
180-
text: `# @vuetify/v0 Components\n\nVuetify0 provides 9 headless components (unstyled, logic-only building blocks):\n\n${components}\n\n**Note**: These are headless components - they provide only logic and state without imposed styling.\n\n**Documentation**: https://0.vuetifyjs.com/components`,
178+
text: `# @vuetify/v0 Components\n\nVuetify0 provides 10 headless components (unstyled, logic-only building blocks):\n\n${components}\n\n**Note**: These are headless components - they provide only logic and state without imposed styling.\n\n**Documentation**: https://0.vuetifyjs.com/components`,
181179
} as const,
182180
],
183181
}

0 commit comments

Comments
 (0)