Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Features 🔥
Vue Package (
@compotes/vue)Official Vue 3 support is here! The new
@compotes/vuepackage provides ready-to-use components and composables for all Compote components.Components:
CCollapse/CCollapseTrigger- Collapsible content with toggle triggerCDrag- Click-and-drag scrollable containerCDrilldown/CDrilldownMenu/CDrilldownNext/CDrilldownBack- Hierarchical navigationCDropdown/CDropdownMenu/CDropdownTrigger- Dropdown with context injectionCMarquee- Scrolling marqueeAll components support the
asprop to customize the rendered element, expose methods and reactive state via template refs, and emit typed events.Composables:
useCollapse- Reactive collapse state (isExpanded,isCollapsing) and methodsuseDrag- Reactive drag state (isDragging,isDraggable)useDrilldown- Reactive drilldown state (level,currentMenuId) and navigation methodsuseDropdown- Reactive dropdown state (isOpen,type) and control methodsuseMarquee- Reactive marquee state (isPaused) and playback methodsCore Improvements
onoption instead of manualaddEventListeneronStateChangeoptionEventsenum for type-safe event handlingStateinterface (CollapseState,DragState, etc.)ResizeObserverandMutationObservercallbacks are now debounced to prevent page freezinginit()Bug Fixes 🔨
setPointerCapturefor reliable drag behaviorupdateItems(), mutation observer no longer triggers on clone operationsfocusChar()is now case-insensitiveBreaking Changes 💥
Core API Changes
init(el, options)destroyEvents()removed: Event cleanup is now handled automatically viaAbortControllerRemoved Options
initAccessibility- Accessibility is now always enabledinitEvents- Events are now always initializedNew Options
on- Declarative event listeners objectonStateChange- State change callback for Vue integrationCSS Changes
.c-marquee--direction-top→.c-marquee--direction-up,.c-marquee--direction-bottom→.c-marquee--direction-downto respect<marquee>usage.Build Output
compotes.umd.cjs→compotes.umd.jsInfrastructure 🧰
doc-syncCI check to validate documentation stays in sync with implementation