Repository navigation
Version Packages - #88
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
akash-aman
approved these changes
Oct 5, 2026
This branch was successfully deployed
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@dynamix-layout/core@2.0.0
Major Changes
#87
a31dc4cThanks @akash-aman! - v2: an instance-based, pure layout engine. See the migration guide for every rename.createLayout(options)replacesnew DynamixLayoutCore(). Each instance is independent: there is no module-level state, no static caches, no timers, and nothing touches the DOM. Two layouts on a page, or one per server request, no longer interfere.getSnapshot()/subscribe()) share unchanged parts by reference:tabsets,tabs,splitters,rectsanddrag.moveTab,moveTabset,selectTab,addTab,removeTab,setTabs,resizeSplitter,moveSplitterBy,maximize/restore,fold/unfold, plus one drag model for tabs and splitters (startDrag,updateDrag,endDrag,cancelDrag) and hit testing (getDropTarget,listDropTargets).onLayoutChange(layout, reason)reports committed changes.LayoutJSON(version: 2): readable names, explicit directions, and tab ids as the stable identity.migrateLayoutFromV1. They render pixel-identically, as checked against layouts recorded from v1.crypto.randomUUID(), which threw outside secure contexts.window.__DYNAMIX_LAYOUT__are gone. Useversioninstead.require()(it was ESM under a.cjs.jsname), exports maps give each condition its own types, and the package installs on Node 18 and later (it required Node 22).Breaking:
DynamixLayoutCore,Node,Bond,Node.cache,Queue,createReactiveState, the comparators, the drop-preview and DOM helpers, and theLayoutTree/NodeOptionstypes are removed.updateTree(src, des, area)becomesmoveTab/moveTabset(id, target), with'contain'renamed to'center'.updateDimensionbecomessetContainerRect, and the debounce arguments are gone; throttle in the adapter instead.@dynamix-layout/react@2.0.0
Major Changes
#87
a31dc4cThanks @akash-aman! - v2: a small component API, headless hooks, accessibility and SSR. See the migration guide for every rename.<DynamixLayout>:tabsis a list of objects ({ id, title, content, closable, target });defaultLayout(uncontrolled) orlayout(controlled) takes v1 or v2 JSON, andonLayoutChange(layout, { reason })reports changes;components,classNamesandstylesreplace the wrapper and styling props;refgives an imperative handle.The engine is created once and never rebuilt by prop changes. An inline
tabsarray with unchanged ids does no engine work and remounts nothing, and moving a tab never remounts its content.Headless API:
useDynamixLayout+DynamixLayoutProvider,useTabset,useTab,useSplitter,useLayoutState(re-renders only for the selected value),useLayoutActionsanduseDragState. Prop getters merge your refs, classes, styles and handlers.Pointer-event dragging for tabs, tabsets and splitters: touch long-press, Escape cancels, and it works over iframes. Drags and resizes never re-render React.
ResizeObserver follows the container, so sidebars and flex parents resize the layout.
Accessibility: WAI-ARIA tabs and window splitter patterns, keyboard resizing, keyboard move mode (Mod+Shift+M), and a live region.
SSR-safe and deterministic, with a
'use client'entry for the Next.js App Router. Works with React 18 and 19; the bundle no longer inlines React 19's JSX runtime.Fixed: callback refs are honoured,
layoutTreechanges are no longer ignored, and duplicate DOM ids are gone.Installs on Node 18 and later (1.x required Node 22).
Breaking:
WrapTab*,SliderElement,HoverElement,RootSplitterHoverEl);getTabOutput;useDynamixLayoutreturn shape.updateJSONbecomesonLayoutChange, which receives v2 JSON and is not called on mount.refreturns aDynamixLayoutHandle(handle.elementis the root)..dx-*, and data attributes aredata-dx-*.@dynamix-layout/react/styles.css(style.cssstill works).Patch Changes
a31dc4c]:@dynamix-layout/solid@2.0.0
Major Changes
#87
a31dc4cThanks @akash-aman! - Runs on the v2 core.<DynamixLayout>keeps its props, default components and drag-and-drop, but each component now has its own engine instance. Two Solid layouts on a page no longer share state, and a layout away from the viewport's top-left is placed correctly.New:
tabsis reactive: add an entry to open a tab, remove it to close one. Existing tabs keep their content mounted.{ title, closable }and anonTabCloseprop.onReady(layout)gives the engine for actions from code (maximize,fold,selectTab,moveTab,reset,toJSON, …).updateJSON(layout, reason)also says why it was called:'move','resize','select','fold','maximize','tabs','reset', or'mount'for the first call (typeLayoutUpdateReason).Breaking:
layoutTreeaccepts v2 JSON (v1 trees are migrated automatically), andupdateJSONreceives v2LayoutJSON.getTabOutputand theTabEntry/TabInput/TabOutputtypes are removed, and tab ids are the tab labels.useDynamixLayoutreturns a new shape.solid-jsis a peer dependency.Patch Changes
a31dc4c]:@repo/react-example@0.0.7
Patch Changes
a31dc4c,a31dc4c]:@repo/solidstart-example@0.0.7
Patch Changes
a31dc4c,a31dc4c]: