Skip to content
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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
},
"devDependencies": {
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"oxfmt": "^0.36.0",
"oxlint": "^1.51.0",
"lint-staged": "^16.3.3",
"oxfmt": "^0.40.0",
"oxlint": "^1.55.0",
"oxlint-tsgolint": "^0.16.0",
"playwright": "catalog:",
"typescript": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@faker-js/faker": "catalog:",
"@markput/react": "workspace:*",
"@mui/material": "^7.3.7",
"antd": "^6.3.0",
"antd": "^6.3.2",
"react": "catalog:",
"react-dom": "catalog:",
"rsuite": "^6.1.2"
Expand Down
12 changes: 6 additions & 6 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.6",
"@astrojs/react": "^4.4.2",
"@astrojs/starlight": "^0.37.5",
"@astrojs/starlight-tailwind": "^4.0.2",
"@astrojs/vercel": "^9.0.4",
"@astrojs/check": "^0.9.7",
"@astrojs/react": "^5.0.0",
"@astrojs/starlight": "^0.38.1",
"@astrojs/starlight-tailwind": "^5.0.0",
"@astrojs/vercel": "^10.0.0",
"@markput/react": "workspace:*",
"@tailwindcss/vite": "^4.1.18",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"astro": "^5.17.1",
"astro": "^6.0.4",
"react": "catalog:",
"react-dom": "catalog:",
"sharp": "^0.34.5",
Expand Down
2 changes: 0 additions & 2 deletions packages/website/src/content/docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@ title: "@markput/react"
- [annotate](/api/functions/annotate/)
- [denote](/api/functions/denote/)
- [MarkedInput](/api/functions/markedinput/)
- [reorderBlocks](/api/functions/reorderblocks/)
- [splitTokensIntoBlocks](/api/functions/splittokensintoblocks/)
- [useMark](/api/functions/usemark/)
- [useOverlay](/api/functions/useoverlay/)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: "MarkedInput"
function MarkedInput<TMarkProps, TOverlayProps>(props): Element;
```

Defined in: [react/markput/src/components/MarkedInput.tsx:79](https://github.com/Nowely/marked-input/blob/next/packages/react/markput/src/components/MarkedInput.tsx#L79)
Defined in: [react/markput/src/components/MarkedInput.tsx:80](https://github.com/Nowely/marked-input/blob/next/packages/react/markput/src/components/MarkedInput.tsx#L80)

## Type Parameters

Expand Down
29 changes: 0 additions & 29 deletions packages/website/src/content/docs/api/functions/reorderBlocks.md

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions packages/website/src/content/docs/api/interfaces/Block.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ prev: false
title: "Block"
---

Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:4](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoBlocks.ts#L4)
Defined in: [common/core/src/features/blocks/splitTokensIntoDragRows.ts:4](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoDragRows.ts#L4)

## Properties

Expand All @@ -15,7 +15,7 @@ Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:4](https:/
endPos: number;
```

Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:8](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoBlocks.ts#L8)
Defined in: [common/core/src/features/blocks/splitTokensIntoDragRows.ts:8](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoDragRows.ts#L8)

***

Expand All @@ -25,7 +25,7 @@ Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:8](https:/
id: string;
```

Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:5](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoBlocks.ts#L5)
Defined in: [common/core/src/features/blocks/splitTokensIntoDragRows.ts:5](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoDragRows.ts#L5)

***

Expand All @@ -35,7 +35,7 @@ Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:5](https:/
startPos: number;
```

Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:7](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoBlocks.ts#L7)
Defined in: [common/core/src/features/blocks/splitTokensIntoDragRows.ts:7](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoDragRows.ts#L7)

***

Expand All @@ -45,4 +45,4 @@ Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:7](https:/
tokens: Token[];
```

Defined in: [common/core/src/features/blocks/splitTokensIntoBlocks.ts:6](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoBlocks.ts#L6)
Defined in: [common/core/src/features/blocks/splitTokensIntoDragRows.ts:6](https://github.com/Nowely/marked-input/blob/next/packages/common/core/src/features/blocks/splitTokensIntoDragRows.ts#L6)
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,6 @@ Props for MarkedInput component.

## Properties

### block?

```ts
optional block:
| boolean
| {
alwaysShowHandle: boolean;
};
```

Defined in: [react/markput/src/components/MarkedInput.tsx:76](https://github.com/Nowely/marked-input/blob/next/packages/react/markput/src/components/MarkedInput.tsx#L76)

Enable Notion-like draggable blocks with drag handles for reordering.
Pass an object to configure block behavior, e.g. `{ alwaysShowHandle: true }` for mobile.

***

### className?

```ts
Expand All @@ -71,6 +54,24 @@ Initial value for uncontrolled mode

***

### drag?

```ts
optional drag:
| boolean
| {
alwaysShowHandle: boolean;
};
```

Defined in: [react/markput/src/components/MarkedInput.tsx:77](https://github.com/Nowely/marked-input/blob/next/packages/react/markput/src/components/MarkedInput.tsx#L77)

Enable drag mode: each individual token (mark or text) becomes its own draggable row.
One mark per row, one text fragment per row.
Adjacent marks need no separator; adjacent text rows are separated by `\n\n`.

***

### Mark?

```ts
Expand Down
Loading
Loading