lineadraw 0.5.0 → 0.6.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/README.md +218 -13
- package/bin/lineadraw.mjs +277 -108
- package/dist/chunk-L4FNH35X.js +80 -0
- package/dist/chunk-L4FNH35X.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/embedded-F5ZJYFHC.js +10 -0
- package/dist/embedded-F5ZJYFHC.js.map +1 -0
- package/dist/node-OWPSMNLK.js +255 -0
- package/dist/node-OWPSMNLK.js.map +1 -0
- package/dist/pkg/linea_dwg_bg.wasm +0 -0
- package/dist/sdk.d.ts +5816 -0
- package/dist/sdk.js +15756 -0
- package/dist/sdk.js.map +1 -0
- package/lib/init.mjs +3 -3
- package/lib/manifest.mjs +33 -67
- package/lineadraw.d.ts +1352 -177
- package/package.json +34 -6
- package/templates/README.md +18 -18
- package/templates/tsconfig.json +3 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lineadraw",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Linea for Node: the headless drawing SDK (lineadraw/sdk), block/command script typings, and marketplace tooling",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mikhail Koshelev",
|
|
7
7
|
"type": "module",
|
|
@@ -15,21 +15,49 @@
|
|
|
15
15
|
},
|
|
16
16
|
"./helpers": {
|
|
17
17
|
"types": "./lineadraw.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./sdk": {
|
|
20
|
+
"types": "./dist/sdk.d.ts",
|
|
21
|
+
"import": "./dist/sdk.js",
|
|
22
|
+
"default": "./dist/sdk.js"
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
25
|
"files": [
|
|
21
26
|
"lineadraw.d.ts",
|
|
22
27
|
"bin",
|
|
28
|
+
"dist",
|
|
23
29
|
"lib",
|
|
24
30
|
"templates"
|
|
25
31
|
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
26
35
|
"scripts": {
|
|
27
|
-
"
|
|
36
|
+
"build": "npm run build -w @lineadraw/core && tsup && node scripts/copyWasm.mjs",
|
|
37
|
+
"typecheck": "tsc",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"prepack": "npm run build"
|
|
28
41
|
},
|
|
29
42
|
"dependencies": {
|
|
30
|
-
"
|
|
43
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
44
|
+
"@tarikjabiri/dxf": "^2.8.9",
|
|
45
|
+
"dxf-parser": "^1.1.2",
|
|
46
|
+
"jspdf": "^4.2.1",
|
|
47
|
+
"pdfjs-dist": "^6.3.289",
|
|
48
|
+
"sucrase": "^3.35.1",
|
|
49
|
+
"zod": "^4.6.5"
|
|
31
50
|
},
|
|
32
51
|
"devDependencies": {
|
|
33
|
-
"
|
|
52
|
+
"@eslint/js": "^10.0.1",
|
|
53
|
+
"@lineadraw/core": "*",
|
|
54
|
+
"@lineadraw/dwg-wasm": "*",
|
|
55
|
+
"@types/node": "^26.6.1",
|
|
56
|
+
"eslint": "^10.10.0",
|
|
57
|
+
"globals": "^17.12.0",
|
|
58
|
+
"tsup": "^8.5.1",
|
|
59
|
+
"typescript": "6.0.3",
|
|
60
|
+
"typescript-eslint": "^8.70.0",
|
|
61
|
+
"vitest": "^5.0.1"
|
|
34
62
|
}
|
|
35
|
-
}
|
|
63
|
+
}
|
package/templates/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# __NAME__
|
|
2
|
-
|
|
3
|
-
A [Linea](https://github.com/lineadraw/lineadraw) marketplace:
|
|
4
|
-
`blocks/*.block.ts` and `commands/*.cmd.ts` modules plus a generated
|
|
5
|
-
catalog (`.lineadraw/marketplace.json`).
|
|
6
|
-
|
|
7
|
-
## Authoring
|
|
8
|
-
|
|
9
|
-
- Add or edit modules under `blocks/` and `commands/`.
|
|
10
|
-
- Regenerate the catalog: `npm run manifest` — CI fails when it is stale.
|
|
11
|
-
- Validate without writing: `npm run check`.
|
|
12
|
-
|
|
13
|
-
## Using it in the editor
|
|
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.
|
|
1
|
+
# __NAME__
|
|
2
|
+
|
|
3
|
+
A [Linea](https://github.com/lineadraw/lineadraw) marketplace:
|
|
4
|
+
`blocks/*.block.ts` and `commands/*.cmd.ts` modules plus a generated
|
|
5
|
+
catalog (`.lineadraw/marketplace.json`).
|
|
6
|
+
|
|
7
|
+
## Authoring
|
|
8
|
+
|
|
9
|
+
- Add or edit modules under `blocks/` and `commands/`.
|
|
10
|
+
- Regenerate the catalog: `npm run manifest` — CI fails when it is stale.
|
|
11
|
+
- Validate without writing: `npm run check`.
|
|
12
|
+
|
|
13
|
+
## Using it in the editor
|
|
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.
|
package/templates/tsconfig.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "ES2022",
|
|
4
|
-
"lib": [
|
|
5
|
-
"ES2022"
|
|
6
|
-
],
|
|
4
|
+
"lib": ["ES2022"],
|
|
7
5
|
"types": [],
|
|
8
6
|
"module": "ESNext",
|
|
9
7
|
"moduleResolution": "bundler",
|
|
@@ -11,8 +9,5 @@
|
|
|
11
9
|
"noEmit": true,
|
|
12
10
|
"skipLibCheck": true
|
|
13
11
|
},
|
|
14
|
-
"include": [
|
|
15
|
-
|
|
16
|
-
"commands"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
12
|
+
"include": ["blocks", "commands"]
|
|
13
|
+
}
|