@lapis-notes/source-editor 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Source Editor changelog
2
2
 
3
- ## 0.1.0
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add official author avatars and deterministic split, light, and dark registry media for plugin banners, overviews, and galleries.
8
+
9
+ ## 0.1.1
4
10
 
5
11
  - Initial independent public package extracted from Lapis Notes without changing
6
12
  the runtime plugin ID.
package/LICENSE.md CHANGED
@@ -1,8 +1,4 @@
1
- # License
1
+ Apache-2.0
2
2
 
3
- Copyright (c) LapisMD contributors.
4
-
5
- This software is licensed under the GNU Affero General Public License, version
6
- 3 or (at your option) any later version (`AGPL-3.0-or-later`). The complete
7
- license text is available from the
8
- [GNU Project](https://www.gnu.org/licenses/agpl-3.0.html).
3
+ This project is licensed under the Apache License 2.0.
4
+ See <https://www.apache.org/licenses/LICENSE-2.0>.
package/README.md CHANGED
@@ -13,7 +13,7 @@ Register the exported plugin class in the application's `PluginProfile`. Import
13
13
  registration so the host owns its lifecycle.
14
14
 
15
15
  The runtime plugin ID is `lapis-source-editor`. A matching signed
16
- `lapis-source-editor-0.1.0.lapis-plugin` archive is attached to the
16
+ `lapis-source-editor-0.1.2.lapis-plugin` archive is attached to the
17
17
  package-scoped GitHub release for manual or registry installation.
18
18
 
19
19
  See the [repository README](https://github.com/lapismd/lapis-plugins#readme) for
package/manifest.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "id": "lapis-source-editor",
3
3
  "name": "Source Editor",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "minAppVersion": "0.1.0",
6
6
  "description": "Source editing for text, JSON, and YAML files",
7
7
  "author": "Lapis Notes",
8
8
  "authorUrl": "https://app.lapis.md",
9
+ "authorAvatarUrl": "https://www.gravatar.com/avatar/1df68d9ff087b0dd72fd8626056fca7f?s=128&d=404",
9
10
  "isDesktopOnly": false,
10
11
  "lapis": {
11
12
  "manifestVersion": 1,
@@ -20,7 +21,11 @@
20
21
  "sharedDependencies": [
21
22
  "@lapis-notes/api",
22
23
  "@lapis-notes/api/editor",
23
- "@lapis-notes/api/workspace-host"
24
+ "@lapis-notes/api/workspace-host",
25
+ "@codemirror/language",
26
+ "@lezer/common",
27
+ "@lezer/highlight",
28
+ "@lezer/lr"
24
29
  ],
25
30
  "requiresReloadOnUpdate": false
26
31
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lapis-notes/source-editor",
3
- "version": "0.1.0",
4
- "license": "AGPL-3.0-or-later",
3
+ "version": "0.1.2",
4
+ "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -11,13 +11,20 @@
11
11
  "default": "./dist/index.js"
12
12
  },
13
13
  "./manifest.json": "./manifest.json",
14
- "./styles.css": "./styles.css"
14
+ "./styles.css": "./styles.css",
15
+ "./registry.json": "./registry.json"
15
16
  },
16
17
  "dependencies": {
17
18
  "@codemirror/lang-json": "^6.0.2",
18
19
  "@codemirror/lang-yaml": "^6.1.2",
19
- "@lapis-notes/api": "^0.1.0",
20
- "@lapismd/design-core": "^0.1.0"
20
+ "@lapismd/design-core": "^0.3.2"
21
+ },
22
+ "peerDependencies": {
23
+ "@codemirror/language": "^6.11.3",
24
+ "@lapis-notes/api": "^0.1.2",
25
+ "@lezer/common": "^1.5.2",
26
+ "@lezer/highlight": "^1.2.3",
27
+ "@lezer/lr": "^1.4.2"
21
28
  },
22
29
  "devDependencies": {
23
30
  "@sveltejs/package": "^2.5.0",
@@ -43,6 +50,8 @@
43
50
  "files": [
44
51
  "dist",
45
52
  "manifest.json",
53
+ "registry.json",
54
+ "registry-content",
46
55
  "styles.css",
47
56
  "README.md",
48
57
  "CHANGELOG.md",
@@ -58,7 +67,7 @@
58
67
  "scripts": {
59
68
  "build": "pnpm run prepack",
60
69
  "check": "pnpm check:types",
61
- "check:types": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings --output human",
70
+ "check:types": "tsc -p tsconfig.json --noEmit",
62
71
  "test": "vitest run",
63
72
  "publint": "publint",
64
73
  "pack": "pnpm pack --pack-destination ../../.release/npm"
@@ -0,0 +1,8 @@
1
+ # Source Editor
2
+
3
+ Source Editor provides syntax-aware editing for text, JSON, and YAML files.
4
+ Supported files open through ordinary workspace routing rather than a separate
5
+ utility window.
6
+
7
+ Edits remain synchronized with the Lapis vault lifecycle, so other views and
8
+ services observe the same saved file state.
package/registry.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "$schema": "https://registry.lapis.md/schemas/plugin-source.schema.json",
3
+ "schemaVersion": 2,
4
+ "categories": ["editor", "source"],
5
+ "highlights": [
6
+ "Edit text, JSON, and YAML files with syntax-aware source views.",
7
+ "Open supported files through normal workspace routing.",
8
+ "Keep edits synchronized through the Lapis vault lifecycle."
9
+ ],
10
+ "documentationUrl": "https://github.com/lapismd/lapis-plugins/tree/main/packages/source-editor#readme",
11
+ "appearance": {
12
+ "icon": "file-code-2",
13
+ "accent": "#0EA5E9"
14
+ },
15
+ "media": {
16
+ "banner": {
17
+ "alt": "Lapis Source Editor showing a populated JSON document in the complete shell with both sidebars closed.",
18
+ "images": {
19
+ "preview": {
20
+ "path": "registry-assets/banner.preview.webp"
21
+ },
22
+ "full": {
23
+ "path": "registry-assets/banner.full.webp"
24
+ },
25
+ "light": {
26
+ "path": "registry-assets/banner.light.webp"
27
+ },
28
+ "dark": {
29
+ "path": "registry-assets/banner.dark.webp"
30
+ }
31
+ },
32
+ "capture": {
33
+ "storyId": "plugins-source-editor-registry-screenshots--overview",
34
+ "focus": "full-shell"
35
+ }
36
+ }
37
+ },
38
+ "gallery": [
39
+ {
40
+ "id": "json-editor",
41
+ "alt": "Focused syntax-highlighted project settings JSON editor filling the workspace.",
42
+ "images": {
43
+ "preview": {
44
+ "path": "registry-assets/gallery/json-editor.preview.webp"
45
+ },
46
+ "full": {
47
+ "path": "registry-assets/gallery/json-editor.full.webp"
48
+ },
49
+ "light": {
50
+ "path": "registry-assets/gallery/json-editor.light.webp"
51
+ },
52
+ "dark": {
53
+ "path": "registry-assets/gallery/json-editor.dark.webp"
54
+ }
55
+ },
56
+ "capture": {
57
+ "storyId": "plugins-source-editor-registry-screenshots--json-editor",
58
+ "focus": "full-shell"
59
+ },
60
+ "card": {
61
+ "headline": [
62
+ {
63
+ "text": "Edit JSON and YAML",
64
+ "tone": "neutral"
65
+ },
66
+ {
67
+ "text": "in the same workspace",
68
+ "tone": "cyan"
69
+ }
70
+ ],
71
+ "description": [
72
+ {
73
+ "text": "Open",
74
+ "tone": "neutral"
75
+ },
76
+ {
77
+ "text": "JSON, YAML, and text",
78
+ "tone": "cyan"
79
+ },
80
+ {
81
+ "text": "through normal Lapis routing with syntax-aware editing.",
82
+ "tone": "neutral"
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ ]
88
+ }