@docs.plus/extension-hyperlink 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/README.md +60 -661
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -83
- package/dist/index.d.ts +61 -83
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +8 -49
- package/package.json +16 -14
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,55 @@ The extension's major version tracks the docs.plus product line. `1.x` correspon
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [2.1.0] — 2026-10-13
|
|
14
|
+
|
|
15
|
+
### Highlights
|
|
16
|
+
|
|
17
|
+
- **Typing at a link edge stays plain.** Text typed immediately before or after a link no longer joins it, as in Google Docs.
|
|
18
|
+
- **Content can no longer style a link.** The mark ignores a `class` attribute in pasted or loaded HTML. Only `HTMLAttributes.class` from the extension options renders ([#399](https://github.com/docs-plus/docs.plus/issues/399)).
|
|
19
|
+
- **The reference moved to `docs/`.** The README is a short start page with an **Open in StackBlitz** example. The full reference is seven pages under `docs/`.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- The `hyperlink` mark is no longer inclusive. The mark spec sets `inclusive: false`, and `autolink` no longer sets it. No option restores the old behavior.
|
|
24
|
+
A character typed at the right end of a link now stays plain.
|
|
25
|
+
To make a link longer, select the new text and apply the link again.
|
|
26
|
+
- The `exitable` option stays. Because the mark is not inclusive, it now only drops a stored link mark, such as one `setHyperlink` leaves on a collapsed caret.
|
|
27
|
+
- The `@tiptap/core` and `@tiptap/pm` peer ranges are now `^3.31.3`. They were `^3.22.3`.
|
|
28
|
+
- The `@floating-ui/dom` dependency is now `^1.8.0`. It was `^1.7.6`.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Typing before a link that starts its block no longer changes the link.
|
|
33
|
+
A letter used to remove the whole link, and a space used to join it ([#374](https://github.com/docs-plus/docs.plus/issues/374)).
|
|
34
|
+
|
|
35
|
+
### Security
|
|
36
|
+
|
|
37
|
+
- The `class` attribute is no longer read from pasted or loaded HTML. Only `HTMLAttributes.class` from the extension options renders ([#399](https://github.com/docs-plus/docs.plus/issues/399)).
|
|
38
|
+
A `class` set on a single link mark no longer renders either. Use `HTMLAttributes.class` instead.
|
|
39
|
+
|
|
40
|
+
### Documentation
|
|
41
|
+
|
|
42
|
+
- The README is a short start page. It covers why to use it, install,
|
|
43
|
+
a Quickstart that shows a result, the caveats that fail with no error,
|
|
44
|
+
and common tasks. The full reference moved to `docs/` on GitHub (`api.md`, `popovers.md`, `styling.md`, `url-handling.md`, `security.md`, `advanced.md`, `migration.md`).
|
|
45
|
+
- The install line leads with `npm install`. `pnpm`, `yarn` and `bun`
|
|
46
|
+
follow on the next line.
|
|
47
|
+
- An **Open in StackBlitz** button runs the Quickstart in the browser.
|
|
48
|
+
The app lives in `examples/vanilla`, and preflight fails when it drifts
|
|
49
|
+
from the README.
|
|
50
|
+
- A "For AI coding agents" row points agents at this README as plain
|
|
51
|
+
Markdown on jsDelivr.
|
|
52
|
+
- The README opens with a GIF: autolink, the preview popover, and `Mod-k`.
|
|
53
|
+
- `docs/api.md` Caveats now list the `popovers.previewHyperlink` click trap.
|
|
54
|
+
|
|
55
|
+
### Internal
|
|
56
|
+
|
|
57
|
+
- `bun run docs:gif` re-records the README GIFs.
|
|
58
|
+
- Source comments point at the `docs/` pages instead of README sections. Comments that only restated the code are gone.
|
|
59
|
+
- `styles.css` has one reduced-motion guard for `.floating-popover`. The second copy is gone. The rendered styles do not change.
|
|
60
|
+
- The npm keyword `tiptap extension` is now `tiptap-extension`, and `link-preview` is a new keyword.
|
|
61
|
+
|
|
13
62
|
## [2.0.0] — 2026-08-11
|
|
14
63
|
|
|
15
64
|
**First major release since `1.5.2`.** This entry rolls up every user-facing change made while docs.plus was iterating toward alpha v2. Treat the upgrade as effectively a rewrite of the public surface. The option names, popover contract, CSS selectors, validation rules, URL canonicalization, and type exports are all new. The bones (Tiptap extension that marks hyperlinks, autolinks on whitespace, opens a popover on click) are the same.
|