@lapis-notes/source-editor 0.1.1 → 0.1.3

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,5 +1,26 @@
1
1
  # Source Editor changelog
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#28](https://github.com/lapismd/lapis-plugins/pull/28) [`d27467e`](https://github.com/lapismd/lapis-plugins/commit/d27467ee80c273011b7eb6ae792fa8e0330a11c1) Thanks [@stevejuma](https://github.com/stevejuma)! - Align shared presentation dependencies with the Design Core 0.6 public boundary used by current Notes hosts.
8
+
9
+ - [#28](https://github.com/lapismd/lapis-plugins/pull/28) [`f4b9136`](https://github.com/lapismd/lapis-plugins/commit/f4b9136e4f47965700e06f52f82e8e2bc884eb11) Thanks [@stevejuma](https://github.com/stevejuma)! - Accept Design Core 0.5.1 alongside the existing 0.4 release line so current local
10
+ Desktop builds can use one compatible framework graph.
11
+
12
+ - [#28](https://github.com/lapismd/lapis-plugins/pull/28) [`56b5d6c`](https://github.com/lapismd/lapis-plugins/commit/56b5d6c1a016ef9bca43703b5fecf57f8234d1af) Thanks [@stevejuma](https://github.com/stevejuma)! - Consume published Design Core 0.4.0 with prepared browser CSS and bundled font assets through normal npm ranges.
13
+
14
+ Restore Bases picker input/list accessibility relationships and name property actions.
15
+
16
+ - [#28](https://github.com/lapismd/lapis-plugins/pull/28) [`c9febb1`](https://github.com/lapismd/lapis-plugins/commit/c9febb1c8b431db30ecdcf7507cfff8f727bc4ed) Thanks [@stevejuma](https://github.com/stevejuma)! - Consume the published Notes next packages, Mira 0.1.2, and Design Core 0.7.0 through the existing semver floors. Markdown dependents accept ^0.2.0. History keeps its public repository entrypoints, and Bases keeps the file-icon contract on API 0.2.0.
17
+
18
+ ## 0.1.2
19
+
20
+ ### Patch Changes
21
+
22
+ - Add official author avatars and deterministic split, light, and dark registry media for plugin banners, overviews, and galleries.
23
+
3
24
  ## 0.1.1
4
25
 
5
26
  - Initial independent public package extracted from Lapis Notes without changing
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.1.lapis-plugin` archive is attached to the
16
+ `lapis-source-editor-0.1.3.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.1",
4
+ "version": "0.1.3",
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://gravatar.com/avatar/f7226d5f9cf07af2a6a60d3ab11413abb9d2e2eb60f2d5cce17356845a166155?size=256&d=initials",
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.1",
4
- "license": "AGPL-3.0-or-later",
3
+ "version": "0.1.3",
4
+ "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -17,18 +17,22 @@
17
17
  "dependencies": {
18
18
  "@codemirror/lang-json": "^6.0.2",
19
19
  "@codemirror/lang-yaml": "^6.1.2",
20
- "@lapismd/design-core": "^0.1.0"
20
+ "@lapismd/design-core": "^0.7.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@lapis-notes/api": "^0.1.0"
23
+ "@codemirror/language": "^6.11.3",
24
+ "@lapis-notes/api": "^0.2.0",
25
+ "@lezer/common": "^1.5.2",
26
+ "@lezer/highlight": "^1.2.3",
27
+ "@lezer/lr": "^1.4.2"
24
28
  },
25
29
  "devDependencies": {
26
30
  "@sveltejs/package": "^2.5.0",
27
31
  "svelte": "^5.38.2",
28
32
  "svelte-check": "^4.3.1",
29
33
  "typescript": "~5.9.3",
30
- "vite": "^6.4.2",
31
- "vitest": "^4.1.8"
34
+ "vite": "^6.4.4",
35
+ "vitest": "^4.1.12"
32
36
  },
33
37
  "description": "Source editing for text, JSON, and YAML files",
34
38
  "repository": {
@@ -47,6 +51,7 @@
47
51
  "dist",
48
52
  "manifest.json",
49
53
  "registry.json",
54
+ "registry-content",
50
55
  "styles.css",
51
56
  "README.md",
52
57
  "CHANGELOG.md",
@@ -62,7 +67,7 @@
62
67
  "scripts": {
63
68
  "build": "pnpm run prepack",
64
69
  "check": "pnpm check:types",
65
- "check:types": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings --output human",
70
+ "check:types": "tsc -p tsconfig.json --noEmit",
66
71
  "test": "vitest run",
67
72
  "publint": "publint",
68
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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://registry.lapis.md/schemas/plugin-source.schema.json",
3
- "schemaVersion": 1,
3
+ "schemaVersion": 2,
4
4
  "categories": ["editor", "source"],
5
5
  "highlights": [
6
6
  "Edit text, JSON, and YAML files with syntax-aware source views.",
@@ -8,5 +8,81 @@
8
8
  "Keep edits synchronized through the Lapis vault lifecycle."
9
9
  ],
10
10
  "documentationUrl": "https://github.com/lapismd/lapis-plugins/tree/main/packages/source-editor#readme",
11
- "content": { "overview": "README.md", "changelog": "CHANGELOG.md" }
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
+ ]
12
88
  }