lineadraw 0.8.0 → 0.10.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lineadraw",
3
- "version": "0.8.0",
4
- "description": "Linea for Node: the headless drawing SDK (lineadraw/sdk), block/command script typings, and marketplace tooling",
3
+ "version": "0.10.0",
4
+ "description": "Linea for Node: the headless drawing SDK (lineadraw/sdk), block/command typings, marketplace tooling, and a CLI for the running desktop app",
5
5
  "license": "MIT",
6
6
  "author": "Mikhail Koshelev",
7
7
  "type": "module",
@@ -60,4 +60,4 @@
60
60
  "typescript-eslint": "^8.70.0",
61
61
  "vitest": "^5.0.1"
62
62
  }
63
- }
63
+ }
@@ -12,7 +12,9 @@ catalog (`.lineadraw/marketplace.json`).
12
12
 
13
13
  ## Using it in the editor
14
14
 
15
- Library → Marketplace tab → + → add this repository
16
- as `owner/repo`. For a private repository, create a fine-grained personal
17
- access token with read-only Contents access to just this repository and
18
- paste it in the add dialog — it is stored only on that device.
15
+ App settings → Marketplaces → Add a marketplace (or the gear in Library →
16
+ Marketplace) → enter this repository as `owner/repo`. For a private
17
+ repository, create a fine-grained personal access token with read-only
18
+ Contents access to just this repository and paste it under "Add an access
19
+ token" — it is stored only on that device. Guide:
20
+ https://docs.lineadraw.com/blocks/publish-a-collection
@@ -2,7 +2,7 @@
2
2
  // Replace it with your own; the public collection at
3
3
  // github.com/lineadraw/lineadraw is full of real examples.
4
4
  import { defineBlock } from "lineadraw";
5
- import type { Polyline } from "lineadraw";
5
+ import type { PolylineInput } from "lineadraw";
6
6
 
7
7
  export default defineBlock({
8
8
  // The id is the block's identity everywhere: @<collection>/<slug>,
@@ -20,7 +20,7 @@ export default defineBlock({
20
20
  draw: ({ params }) => {
21
21
  const w = params.width / 2;
22
22
  const h = params.height / 2;
23
- const box: Polyline = {
23
+ const box: PolylineInput = {
24
24
  type: "polyline",
25
25
  closed: true,
26
26
  points: [