grid-layout-plus@2.0.0-beta.0
Pre-releaseMajor Changes
-
79aa5faThanks @qmhc! - Make the parentLayoutthe canonical source ofGridItemgeometry, constraints, interaction
flags, and stacking order. The correspondingGridItemmirror props are deprecated, and internal
component-ref fields have been replaced by the typedGridLayoutExposecommand API. -
bb74b26Thanks @qmhc! - Require external drop item factories, commit created items before emittingdrop, and support controlled same-group cross-grid moves with rollback. -
#64
3966b6aThanks @qmhc! - Adopt a controlled, immutable layout model.GridLayoutnow emits readonly update proposals and
commits them only after the parent writeslayoutback. Usev-model:layoutto persist changes
from interactions and public commands. -
865f5daThanks @qmhc! - Stop injecting component styles from JavaScript bundles and publish them through the explicitgrid-layout-plus/style.cssentry for consumer-side CSS processing. -
79aa5faThanks @qmhc! - Replace legacy layout configuration with the v2 contracts. Renamemargintogap, note that
containerPaddingnow defaults to[0, 0], and replaceverticalCompact,useCssTransforms, and
transformScalewithcompactorandpositionStrategy. Grouped grid, drag, resize, and drop
configuration now merges beneath flat props. -
79aa5faThanks @qmhc! - Enforce strict layout contracts for safe-integer geometry, unique item ids, valid constraints, and
cloneable plain custom data. Layout algorithms no longer mutate their inputs, and invalid layouts
now produce structuredGridLayoutValidationErroror rejected operation results.
Minor Changes
-
79aa5faThanks @qmhc! - AdduseGridLayout,useResponsiveLayout, anduseContainerWidthfor headless layout state,
interaction lifecycles, responsive breakpoint resolution, and container measurement. Responsive
layouts can also be persisted through synchronized controlled models. -
79aa5faThanks @qmhc! - AddGridBackgroundfor rendering grid lines from inherited or explicit geometry, with configurable
row count, color, and stroke width. -
79aa5faThanks @qmhc! - Expand interaction workflows with typed drag and resize lifecycles, transactional layout commands,
native and external drop handling, drag thresholds, bounded movement, overlap layering commands,
and structured operation events. -
79aa5faThanks @qmhc! - Add the Vue-freegrid-layout-plus/coreentry point with immutable layout helpers, normalization,
compactors, positioning strategies, geometry conversion, structured errors, and public types. -
79aa5faThanks @qmhc! - Add configurable compaction, collision, and positioning strategies, including horizontal, disabled,
and indexed compactors; push, prevent, and overlap collision modes; and absolute or scaled
positioning. -
853f149Thanks @qmhc! - Add opt-in content-driven item heights with shared observation, controlled layout proposals,
per-item overrides, collision handling, and width-only pointer resizing. -
cf42ee2Thanks @qmhc! - Support configurable resize handles on every edge and corner, with per-item overrides and scoped
slots for custom handle visuals. Keep the active item anchored under the pointer while the
placeholder and surrounding items preview the terminal compacted layout.