Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 1.9.1 docs #462

Merged
merged 1 commit into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/docs/blog/2024-01-20-dockview-1.9.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
slug: dockview-1.9.1-release
title: Dockview 1.9.1
tags: [release]
---

# Release Notes

Please reference to docs @ [dockview.dev](https://dockview.dev).

## 🚀 Features

- Drop target overlay classnames [#452](https://github.com/mathuo/dockview/issues/452)

- Expose root drop target configuration options [#431](https://github.com/mathuo/dockview/issues/431)

## 🛠 Miscs

- Bug: Floating groups position reset when display:none applied to component [#458](https://github.com/mathuo/dockview/issues/458)

## 🔥 Breaking changes
12 changes: 12 additions & 0 deletions packages/docs/docs/components/dockview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,18 @@ which will be rendered when there are no panels or groups.

## Drag And Drop

You can override the conditions of the far edge overlays through the `rootOverlayModel` prop.

```tsx
<DockviewReact
{...props}
rootOverlayModel={{
size: { value: 100, type: 'pixels' },
activationSize: { value: 5, type: 'percentage' },
}}
/>
```

### Built-in behaviours

Dockview supports a wide variety of built-in Drag and Drop possibilities.
Expand Down
4 changes: 4 additions & 0 deletions packages/docs/sandboxes/dnd-dockview/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ const DndDockview = (props: { renderVisibleOnly: boolean; theme?: string }) => {
className={`${props.theme || 'dockview-theme-abyss'}`}
onDidDrop={onDidDrop}
showDndOverlay={showDndOverlay}
rootOverlayModel={{
size: { value: 100, type: 'pixels' },
activationSize: { value: 5, type: 'percentage' },
}}
/>
</div>
);
Expand Down
9 changes: 0 additions & 9 deletions packages/docs/sandboxes/popoutgroup-dockview/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
DockviewApi,
DockviewGroupPanel,
DockviewReact,
DockviewReadyEvent,
IDockviewHeaderActionsProps,
Expand All @@ -26,14 +25,6 @@ const components = {
},
};

const counter = (() => {
let i = 0;

return {
next: () => ++i,
};
})();

function loadDefaultLayout(api: DockviewApi) {
api.addPanel({
id: 'panel_1',
Expand Down
Loading