joplin-plugin-codeblock-autocomplete 1.7.0 → 1.7.2

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 bwat47
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bwat47
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -69,11 +69,22 @@ Other Markdown apps usually ignore the extra words and use the first one as the
69
69
 
70
70
  ## Settings
71
71
 
72
- | Setting | Controls |
73
- | -------------------------------------------------------------- | ----------------------------------------------------------- |
74
- | Enable language auto-complete | Language dropdown for code fences. |
75
- | Show Markdown editor code block header (title and copy button) | Header in the Markdown editor. |
76
- | Show line numbers in Markdown editor code blocks | Editor line numbers. |
77
- | Show Markdown viewer code block header (title and copy button) | Header in the Markdown viewer and Rich Text editors. |
78
- | Show line numbers in Markdown viewer code blocks | Line numbers in the Markdown viewer and Rich Text editors. |
79
- | Autocomplete languages | Comma-separated language identifiers shown in the dropdown. |
72
+ | Setting | Controls |
73
+ | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
74
+ | Enable language auto-complete | Language dropdown for code fences. |
75
+ | Show Markdown editor code block header (title and copy button) | Header in the Markdown editor. |
76
+ | Show line numbers in Markdown editor code blocks | Editor line numbers. |
77
+ | Show Markdown viewer code block header (title and copy button) | Header in the Markdown viewer and Rich Text editors. |
78
+ | Show line numbers in Markdown viewer code blocks | Line numbers in the Markdown viewer and Rich Text editors. |
79
+ | Autocomplete languages | Comma-separated language identifiers shown in the dropdown. Clear the list to restore the defaults. |
80
+
81
+ ## Building from source
82
+
83
+ Requires Node 22 or later.
84
+
85
+ ```sh
86
+ npm ci
87
+ npm run dist
88
+ ```
89
+
90
+ The build creates the installable plugin at `publish/com.bwat47.codeblock-autocomplete.jpl`.
package/package.json CHANGED
@@ -1,19 +1,25 @@
1
1
  {
2
2
  "name": "joplin-plugin-codeblock-autocomplete",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "scripts": {
5
- "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
5
+ "dist": "npm run typecheck && joplin-plugin-scripts build",
6
6
  "prepare": "npm run dist",
7
- "updateVersion": "webpack --env joplin-plugin-config=updateVersion",
8
- "update": "npm install -g generator-joplin && yo joplin --node-package-manager npm --update --force",
9
- "lint": "eslint src/",
10
- "lint:fix": "eslint src/ --fix",
11
- "format": "prettier --write \"src/**/*.{ts,js,css}\"",
7
+ "updateVersion": "joplin-plugin-scripts update-version",
8
+ "updateApi": "joplin-plugin-scripts update-api",
9
+ "lint": "oxlint src/ && npm run lint:dead-code && npm run lint:complexity",
10
+ "lint:dead-code": "fallow dead-code",
11
+ "lint:complexity": "fallow health --complexity",
12
+ "lint:fix": "oxlint src/ --fix",
13
+ "format": "oxfmt --write",
14
+ "format:check": "oxfmt --check",
12
15
  "test": "vitest run --passWithNoTests",
13
16
  "test:watch": "vitest --passWithNoTests",
14
- "knip": "knip"
17
+ "typecheck": "tsc --noEmit"
15
18
  },
16
19
  "license": "MIT",
20
+ "engines": {
21
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
22
+ },
17
23
  "keywords": [
18
24
  "joplin-plugin"
19
25
  ],
@@ -21,41 +27,21 @@
21
27
  "publish"
22
28
  ],
23
29
  "devDependencies": {
24
- "@codemirror/autocomplete": "^6.20.0",
25
- "@codemirror/lang-markdown": "^6.5.0",
26
- "@codemirror/language": "^6.12.4",
27
- "@codemirror/state": "^6.5.4",
28
- "@codemirror/view": "^6.35.0",
29
- "@eslint/js": "^10.0.1",
30
- "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
31
- "@lezer/common": "^1.5.2",
32
- "@types/node": "^24.13.2",
33
- "@vitest/eslint-plugin": "^1.6.27",
34
- "chalk": "^4.1.0",
35
- "copy-webpack-plugin": "^14.0.0",
36
- "eslint": "^10.8.1",
37
- "eslint-config-prettier": "^10.1.8",
38
- "eslint-import-resolver-typescript": "^4.4.5",
39
- "eslint-plugin-import-x": "^4.16.2",
40
- "eslint-plugin-sonarjs": "^4.2.0",
41
- "eslint-plugin-tsdoc": "^0.5.4",
42
- "fs-extra": "^10.1.0",
43
- "glob": "^8.0.3",
44
- "globals": "^17.7.0",
45
- "jsdom": "^29.1.1",
46
- "knip": "^6.24.0",
47
- "prettier": "^3.6.2",
48
- "tar": "^7.5.12",
49
- "ts-loader": "^9.3.1",
50
- "typescript": "^6.0.3",
51
- "typescript-eslint": "^8.72.1",
52
- "vitest": "^4.1.10",
53
- "webpack": "^5.105.4",
54
- "webpack-cli": "^6.0.1"
55
- },
56
- "overrides": {
57
- "eslint-plugin-tsdoc": {
58
- "@typescript-eslint/utils": "8.72.1"
59
- }
30
+ "@bwat47/joplin-plugin-scripts": "^1.6.3",
31
+ "@codemirror/autocomplete": "6.20.1",
32
+ "@codemirror/lang-markdown": "6.5.0",
33
+ "@codemirror/language": "6.12.3",
34
+ "@codemirror/state": "6.7.1",
35
+ "@codemirror/view": "6.43.14",
36
+ "@lezer/common": "1.5.0",
37
+ "@types/node": "^24.19.2",
38
+ "eslint-plugin-regexp": "^3.3.3",
39
+ "fallow": "^3.43.2",
40
+ "jsdom": "^31.0.1",
41
+ "oxfmt": "^0.79.0",
42
+ "oxlint": "^1.94.0",
43
+ "oxlint-tsgolint": "^7.0.2007",
44
+ "typescript": "^7.0.2",
45
+ "vitest": "^5.1.0"
60
46
  }
61
47
  }
@@ -1,62 +1,62 @@
1
1
  {
2
- "manifest_version": 1,
3
- "id": "com.bwat47.codeblock-autocomplete",
4
- "app_min_version": "3.3",
5
- "version": "1.7.0",
6
- "platforms": [
7
- "desktop",
8
- "mobile"
9
- ],
10
- "name": "Codeblock Utils",
11
- "description": "Code block utilities for the Markdown editor and viewer: language autocomplete, copy buttons, line numbers, and a command to insert or toggle code blocks",
12
- "author": "bwat47",
13
- "homepage_url": "https://github.com/bwat47/joplin-codeblock-autocomplete",
14
- "repository_url": "https://github.com/bwat47/joplin-codeblock-autocomplete",
15
- "keywords": [
16
- "autocomplete",
17
- "code",
18
- "code block",
19
- "fenced code block",
20
- "code fence",
21
- "fence",
22
- "code fence autocomplete",
23
- "copy"
24
- ],
25
- "categories": [
26
- "productivity",
27
- "developer tools",
28
- "editor",
29
- "viewer"
30
- ],
31
- "screenshots": [
32
- {
33
- "src": "images/screenshot1.png",
34
- "label": "Code autocomplete example"
35
- },
36
- {
37
- "src": "images/screenshot2.png",
38
- "label": "Markdown editor copy widget example"
39
- },
40
- {
41
- "src": "images/screenshot3.png",
42
- "label": "Markdown viewer copy widget example"
43
- },
44
- {
45
- "src": "images/line_numbers_both.png",
46
- "label": "Split view line numbers example"
47
- }
48
- ],
49
- "icons": {
50
- "16": "images/16.png",
51
- "32": "images/32.png",
52
- "48": "images/48.png",
53
- "64": "images/64.png",
54
- "128": "images/128.png"
55
- },
56
- "promo_tile": {
57
- "src": "images/promo.png",
58
- "label": "Codeblock Utils Promo Tile"
59
- },
60
- "_publish_hash": "sha256:aefd5bc24f355055d1a47e0227848084e759dbc7a6ff24909e54a5505f7f35c5",
61
- "_publish_commit": "main:294e06158da97c2713e7f5eea1b3777f143da00b"
62
- }
2
+ "manifest_version": 1,
3
+ "id": "com.bwat47.codeblock-autocomplete",
4
+ "app_min_version": "3.3",
5
+ "version": "1.7.2",
6
+ "platforms": [
7
+ "desktop",
8
+ "mobile"
9
+ ],
10
+ "name": "Codeblock Utils",
11
+ "description": "Code block utilities for the Markdown editor and viewer: language autocomplete, copy buttons, line numbers, and a command to insert or toggle code blocks",
12
+ "author": "bwat47",
13
+ "homepage_url": "https://github.com/bwat47/joplin-codeblock-utils",
14
+ "repository_url": "https://github.com/bwat47/joplin-codeblock-utils",
15
+ "keywords": [
16
+ "autocomplete",
17
+ "code",
18
+ "code block",
19
+ "fenced code block",
20
+ "code fence",
21
+ "fence",
22
+ "code fence autocomplete",
23
+ "copy"
24
+ ],
25
+ "categories": [
26
+ "productivity",
27
+ "developer tools",
28
+ "editor",
29
+ "viewer"
30
+ ],
31
+ "screenshots": [
32
+ {
33
+ "src": "images/screenshot1.png",
34
+ "label": "Code autocomplete example"
35
+ },
36
+ {
37
+ "src": "images/screenshot2.png",
38
+ "label": "Markdown editor copy widget example"
39
+ },
40
+ {
41
+ "src": "images/screenshot3.png",
42
+ "label": "Markdown viewer copy widget example"
43
+ },
44
+ {
45
+ "src": "images/line_numbers_both.png",
46
+ "label": "Split view line numbers example"
47
+ }
48
+ ],
49
+ "icons": {
50
+ "16": "images/16.png",
51
+ "32": "images/32.png",
52
+ "48": "images/48.png",
53
+ "64": "images/64.png",
54
+ "128": "images/128.png"
55
+ },
56
+ "promo_tile": {
57
+ "src": "images/promo.png",
58
+ "label": "Codeblock Utils Promo Tile"
59
+ },
60
+ "_publish_hash": "sha256:a57d38ac8cd64e394d06361bcd1616f7f9b48867a784fc44802979d9209836d1",
61
+ "_publish_commit": "main:d0da570b38f4517530c1af966788f6df608d116c"
62
+ }