@zumer/snapdom-plugins 4.0.0 → 4.0.1
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 +10 -2
- package/README.md +2 -2
- package/package.json +7 -2
- package/pdf/README.md +1 -1
- package/vector/CONTRACT.md +1 -1
- package/vector/README.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Plugin changes
|
|
2
2
|
|
|
3
|
-
## 4.0.
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
- Add GitHub Sponsors funding metadata.
|
|
6
|
+
- Raise the SnapDOM peer dependency to ^3.3.0 and document the minimum supported core version.
|
|
7
|
+
- Explicitly include the PDF README in the package and update packaging checks.
|
|
8
|
+
|
|
9
|
+
Requires SnapDOM 3.3.0 or newer within 3.x.
|
|
10
|
+
|
|
11
|
+
## 4.0.0
|
|
4
12
|
|
|
5
13
|
- Replace pdf-image with the full PDF exporter previously distributed as PDF Pro. Import pdf from @zumer/snapdom-plugins/pdf; toPdf returns a Blob, with optional download, selectable text, links and pagination.
|
|
6
14
|
- Add the MIT-licensed Vector plugin with internal SVD, editable SVG and Figma clipboard exports.
|
|
@@ -10,4 +18,4 @@
|
|
|
10
18
|
- Handle Unicode code points in ASCII ramps and reject empty ramps.
|
|
11
19
|
- Reject invalid semantic budgets, map widths and tint opacity with explicit errors.
|
|
12
20
|
|
|
13
|
-
Requires SnapDOM 3.x. This version is
|
|
21
|
+
Requires SnapDOM 3.x. This version is published on npm.
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Install the plugins next to a core supported by their peer dependency:
|
|
|
15
15
|
npm install @zumer/snapdom@latest @zumer/snapdom-plugins@latest
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
Plugins 4.x in this checkout require
|
|
18
|
+
Plugins 4.x in this checkout require SnapDOM 3.3.0 or newer within 3.x. The 4.x release replaces pdf-image with the full PDF exporter and adds Vector. Both are MIT-licensed and available on npm in `@zumer/snapdom-plugins` 4.x. The `@latest` command above installs the published release. See the [migration guide](https://github.com/zumerlab/snapdom#migrating-from-v2) when upgrading from v2.
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
@@ -409,7 +409,7 @@ The document retains source markup, including event-handler attributes; it is no
|
|
|
409
409
|
|
|
410
410
|
Adds `toVector()` for standalone SVG with editable text and supported shapes, and
|
|
411
411
|
`toFigma()` for Figma clipboard export. Its source and internal SVD format live in
|
|
412
|
-
`vector/` under the MIT license.
|
|
412
|
+
`vector/` under the MIT license. Both exporters are available on npm in `@zumer/snapdom-plugins` 4.x.
|
|
413
413
|
|
|
414
414
|
```js
|
|
415
415
|
import { vector } from '@zumer/snapdom-plugins/vector';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumer/snapdom-plugins",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Official plugins for SnapDOM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"README.md",
|
|
26
26
|
"LICENSE",
|
|
27
27
|
"pdf/src/",
|
|
28
|
+
"pdf/README.md",
|
|
28
29
|
"pdf/REFERENCE.md",
|
|
29
30
|
"pdf/LICENSE",
|
|
30
31
|
"CHANGELOG.md",
|
|
@@ -52,8 +53,12 @@
|
|
|
52
53
|
"url": "https://github.com/zumerlab/snapdom/issues"
|
|
53
54
|
},
|
|
54
55
|
"homepage": "https://snapdom.dev/",
|
|
56
|
+
"funding": {
|
|
57
|
+
"type": "github",
|
|
58
|
+
"url": "https://github.com/sponsors/tinchox5"
|
|
59
|
+
},
|
|
55
60
|
"peerDependencies": {
|
|
56
|
-
"@zumer/snapdom": "^3.
|
|
61
|
+
"@zumer/snapdom": "^3.3.0"
|
|
57
62
|
},
|
|
58
63
|
"devDependencies": {
|
|
59
64
|
"@zumer/snapdom": "file:../.."
|
package/pdf/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# PDF plugin
|
|
2
2
|
|
|
3
|
-
MIT-licensed PDF export for SnapDOM, replacing the former PDF Pro and `pdf-image` implementations. This source is part of `@zumer/snapdom-plugins` 4.x and requires core 3.x. The 4.x release
|
|
3
|
+
MIT-licensed PDF export for SnapDOM, replacing the former PDF Pro and `pdf-image` implementations. This source is part of `@zumer/snapdom-plugins` 4.x and requires core 3.x. The 4.x release is available on npm.
|
|
4
4
|
|
|
5
5
|
```js
|
|
6
6
|
import { snapdom } from '@zumer/snapdom';
|
package/vector/CONTRACT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This document describes the internal migrated engine, SVD format and optional Figma consumer in `src/`, `svd/` and `figma-plugin/`. Historical examples below use the engine's internal API; they are not the public npm API.
|
|
4
4
|
|
|
5
|
-
The public MIT-licensed plugin is `@zumer/snapdom-plugins/vector`: `vector({ exclude })` adds `toVector()` (SVG string) and `toFigma()` (clipboard write, returning `Promise<void>`). Only `exclude` is a public Vector option. See [usage](README.md), [public types](../vector.d.ts) and [the public adapter](src/public.js). Plugins 4.x
|
|
5
|
+
The public MIT-licensed plugin is `@zumer/snapdom-plugins/vector`: `vector({ exclude })` adds `toVector()` (SVG string) and `toFigma()` (clipboard write, returning `Promise<void>`). Only `exclude` is a public Vector option. See [usage](README.md), [public types](../vector.d.ts) and [the public adapter](src/public.js). Plugins 4.x are available on npm and require core 3.x.
|
|
6
6
|
|
|
7
7
|
**And the reverse duty, which is what this paragraph is for: a contract that
|
|
8
8
|
lies is worse than no contract.** When this file described a shape the code no
|
package/vector/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Register per capture to avoid applying
|
|
|
20
20
|
the render hook to unrelated captures. SVG preserves editable text and supported
|
|
21
21
|
shapes; unsupported paint is diagnosed by the engine.
|
|
22
22
|
|
|
23
|
-
The
|
|
23
|
+
The plugin is available on npm in `@zumer/snapdom-plugins` 4.x.
|
|
24
24
|
Run `npm run test:vector` from the monorepo root. The migrated baselines are
|
|
25
25
|
unchanged. Inline SVG export omits inactive mask longhands from unmasked nodes,
|
|
26
26
|
while retaining active masks and embedded stylesheet behavior.
|