@lapis-notes/api 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 +18 -0
- package/README.md +5 -0
- package/dist/app-database-host.d.ts +1 -0
- package/dist/app-database-host.js +1 -0
- package/dist/browser-sync-security.d.ts +45 -0
- package/dist/browser-sync-security.js +189 -0
- package/dist/build-tools/vite.d.ts +15 -0
- package/dist/build-tools/vite.js +36 -0
- package/dist/cache.svelte.d.ts +1 -1
- package/dist/cache.svelte.js +4 -1
- package/dist/components/editor/editor.css +54 -2
- package/dist/components/editor/extensions/lint/lapis-lint-tooltip.svelte +18 -5
- package/dist/components/editor/extensions/lint/lint-tooltip-actions.d.ts +0 -2
- package/dist/components/editor/extensions/lint/lint-tooltip-actions.js +0 -14
- package/dist/components/editor/language-service/index.js +23 -2
- package/dist/components/icon/icon-list.svelte.d.ts +1 -1
- package/dist/components/select/select.svelte.d.ts +1 -1
- package/dist/context.svelte.d.ts +11 -1
- package/dist/context.svelte.js +38 -1
- package/dist/docs-api.d.ts +2 -0
- package/dist/docs-api.js +1 -0
- package/dist/generated/plugin-host-modules.schema.generated.d.ts +443 -13
- package/dist/generated/plugin-host-modules.schema.generated.js +970 -306
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/language-service/manager.d.ts +5 -0
- package/dist/language-service/manager.js +58 -14
- package/dist/lapis-extension.d.ts +1 -1
- package/dist/lapis-extension.js +12 -0
- package/dist/nostr-signer.d.ts +68 -0
- package/dist/nostr-signer.js +49 -0
- package/dist/plugin-asset-server.d.ts +1 -0
- package/dist/plugin-asset-server.js +3 -0
- package/dist/plugin-capability-facade.d.ts +1 -1
- package/dist/plugin-capability-facade.js +6 -0
- package/dist/plugin-distribution/catalog-media.d.ts +4 -0
- package/dist/plugin-distribution/catalog-media.js +40 -0
- package/dist/plugin-distribution/download-stats.d.ts +4 -0
- package/dist/plugin-distribution/download-stats.js +19 -0
- package/dist/plugin-distribution/index.d.ts +4 -0
- package/dist/plugin-distribution/index.js +4 -0
- package/dist/plugin-distribution/installer.d.ts +3 -0
- package/dist/plugin-distribution/installer.js +9 -2
- package/dist/plugin-distribution/manager.d.ts +71 -5
- package/dist/plugin-distribution/manager.js +376 -37
- package/dist/plugin-distribution/nostr-registry-adapter.d.ts +29 -0
- package/dist/plugin-distribution/nostr-registry-adapter.js +152 -0
- package/dist/plugin-distribution/plugin-bundle-verifier.d.ts +43 -0
- package/dist/plugin-distribution/plugin-bundle-verifier.js +64 -1
- package/dist/plugin-distribution/plugin-bundle.d.ts +14 -0
- package/dist/plugin-distribution/plugin-bundle.js +46 -7
- package/dist/plugin-distribution/plugin-markdown.d.ts +6 -0
- package/dist/plugin-distribution/plugin-markdown.js +94 -0
- package/dist/plugin-distribution/registry-client.d.ts +6 -1
- package/dist/plugin-distribution/registry-client.js +32 -10
- package/dist/plugin-distribution/registry-source-state.d.ts +15 -0
- package/dist/plugin-distribution/registry-source-state.js +42 -0
- package/dist/plugin-distribution/schemas.d.ts +2511 -2824
- package/dist/plugin-distribution/schemas.js +111 -42
- package/dist/plugin-distribution/types.d.ts +116 -5
- package/dist/plugin-distribution-host.d.ts +4 -0
- package/dist/plugin-distribution-host.js +2 -0
- package/dist/plugin-install-progress.js +1 -1
- package/dist/plugin-manager.d.ts +3 -0
- package/dist/plugin-manager.js +21 -13
- package/dist/plugin-settings.d.ts +21 -0
- package/dist/plugin-settings.js +41 -0
- package/dist/plugin.d.ts +13 -0
- package/dist/plugin.js +56 -0
- package/dist/registry-schema/catalog-v1.d.ts +4143 -0
- package/dist/registry-schema/catalog-v1.js +172 -0
- package/dist/registry-schema/catalog-v2.d.ts +5275 -0
- package/dist/registry-schema/catalog-v2.js +137 -0
- package/dist/registry-schema/index.d.ts +1 -0
- package/dist/registry-schema/index.js +1 -0
- package/dist/registry-schema/release-notes.d.ts +5 -0
- package/dist/registry-schema/release-notes.js +21 -0
- package/dist/server-host.d.ts +28 -0
- package/dist/server-host.js +17 -0
- package/dist/storage/app-database.d.ts +37 -2
- package/dist/storage/app-database.js +41 -1
- package/dist/storage/browser-coordinated-app-database.d.ts +3 -1
- package/dist/storage/browser-coordinated-app-database.js +8 -0
- package/dist/storage/browser.d.ts +4 -1
- package/dist/storage/browser.js +84 -0
- package/dist/storage/desktop-native.d.ts +4 -2
- package/dist/storage/desktop-native.js +90 -1
- package/dist/storage/fs.d.ts +17 -0
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.js +1 -0
- package/dist/storage/memory-vault-adapter.d.ts +3 -1
- package/dist/storage/memory-vault-adapter.js +60 -0
- package/dist/storage/remote-app-database.d.ts +19 -0
- package/dist/storage/remote-app-database.js +130 -0
- package/dist/storage/task-projection.d.ts +2 -1
- package/dist/storage/task-projection.js +7 -2
- package/dist/storage/turso-app-database.d.ts +3 -1
- package/dist/storage/turso-app-database.js +45 -0
- package/dist/storage/vault-session.js +11 -0
- package/dist/storage/vault-state.d.ts +1 -1
- package/dist/storage/vault.svelte.d.ts +3 -1
- package/dist/storage/vault.svelte.js +76 -3
- package/dist/sync-host-security.d.ts +285 -0
- package/dist/sync-host-security.js +2237 -0
- package/dist/sync-host.d.ts +179 -0
- package/dist/sync-host.js +769 -0
- package/dist/workspace.svelte.d.ts +1 -1
- package/dist/workspace.svelte.js +1 -1
- package/package.json +48 -10
|
@@ -789,7 +789,7 @@ export declare class Notice {
|
|
|
789
789
|
noticeEl: HTMLElement;
|
|
790
790
|
containerEl: HTMLElement;
|
|
791
791
|
messageEl: HTMLElement;
|
|
792
|
-
constructor(message: string, duration?: number);
|
|
792
|
+
constructor(message: string, duration?: number, application?: App);
|
|
793
793
|
setMessage(message: string): void;
|
|
794
794
|
hide(): void;
|
|
795
795
|
}
|
package/dist/workspace.svelte.js
CHANGED
|
@@ -719,7 +719,7 @@ export class WorkspaceSidebarGroup extends WorkspaceParent {
|
|
|
719
719
|
removeChild(index, softDelete = false) {
|
|
720
720
|
void softDelete;
|
|
721
721
|
if (index instanceof WorkspaceLeaf) {
|
|
722
|
-
return this.removeChild(this.children.findIndex((it) => it === index));
|
|
722
|
+
return this.removeChild(this.children.findIndex((it) => it === index), softDelete);
|
|
723
723
|
}
|
|
724
724
|
const child = this.children[index];
|
|
725
725
|
if (!child) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapis-notes/api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Lapis Notes API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lapismd/ai-host": "^0.1.0",
|
|
21
|
-
"@lapismd/design-core": "^0.
|
|
22
|
-
"@lapismd/mira": "
|
|
21
|
+
"@lapismd/design-core": "^0.3.2",
|
|
22
|
+
"@lapismd/mira": "~0.0.3",
|
|
23
23
|
"@huggingface/transformers": "^4.2.0",
|
|
24
24
|
"@tursodatabase/database-wasm": "0.7.2",
|
|
25
25
|
"@iconify-json/lucide": "^1.2.63",
|
|
@@ -28,11 +28,13 @@
|
|
|
28
28
|
"@lezer/common": "^1.2.3",
|
|
29
29
|
"@lezer/lr": "^1.4.2",
|
|
30
30
|
"@lucide/svelte": "^0.523.0",
|
|
31
|
+
"@noble/ciphers": "^2.1.1",
|
|
32
|
+
"@noble/hashes": "^2.0.1",
|
|
31
33
|
"@replit/codemirror-indentation-markers": "^6.5.3",
|
|
32
34
|
"@tanstack/svelte-virtual": "^3.13.12",
|
|
33
35
|
"@tanstack/virtual-core": "^3.13.12",
|
|
34
36
|
"@types/lodash-es": "^4.17.12",
|
|
35
|
-
"bits-ui": "2.
|
|
37
|
+
"bits-ui": "2.19.5",
|
|
36
38
|
"clsx": "^2.1.1",
|
|
37
39
|
"eventemitter3": "^5.0.1",
|
|
38
40
|
"fflate": "^0.8.3",
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
"lucide-svelte": "^0.487.0",
|
|
42
44
|
"luxon": "^3.7.1",
|
|
43
45
|
"minimatch": "^10.2.5",
|
|
46
|
+
"nostr-tools": "^2.25.0",
|
|
44
47
|
"tailwind-merge": "^2.6.0",
|
|
45
48
|
"tailwind-variants": "^0.3.1",
|
|
46
49
|
"zod": "^3.25.76"
|
|
@@ -65,8 +68,17 @@
|
|
|
65
68
|
"app-database": [
|
|
66
69
|
"dist/app-database-host.d.ts"
|
|
67
70
|
],
|
|
71
|
+
"server-host": [
|
|
72
|
+
"dist/server-host.d.ts"
|
|
73
|
+
],
|
|
68
74
|
"telemetry": [
|
|
69
75
|
"dist/telemetry.d.ts"
|
|
76
|
+
],
|
|
77
|
+
"registry/schema": [
|
|
78
|
+
"dist/registry-schema/index.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"build/vite": [
|
|
81
|
+
"dist/build-tools/vite.d.ts"
|
|
70
82
|
]
|
|
71
83
|
}
|
|
72
84
|
},
|
|
@@ -84,13 +96,13 @@
|
|
|
84
96
|
"@codemirror/search": "^6.5.11",
|
|
85
97
|
"@codemirror/state": "^6.4.1",
|
|
86
98
|
"@codemirror/view": "^6.35.0",
|
|
87
|
-
"@lapis-notes/ui": "^0.1.
|
|
88
|
-
"@lapismd/design-core": "^0.
|
|
89
|
-
"@lapismd/mira": "
|
|
99
|
+
"@lapis-notes/ui": "^0.1.2",
|
|
100
|
+
"@lapismd/design-core": "^0.3.2",
|
|
101
|
+
"@lapismd/mira": "~0.0.3",
|
|
90
102
|
"@lezer/highlight": "^1.2.1",
|
|
91
103
|
"@lezer/markdown": "^1.4.3",
|
|
92
104
|
"i18next": "^25.3.0",
|
|
93
|
-
"svelte": "
|
|
105
|
+
"svelte": "5.56.10",
|
|
94
106
|
"svelte-sonner": "^1.0.5"
|
|
95
107
|
},
|
|
96
108
|
"exports": {
|
|
@@ -147,6 +159,11 @@
|
|
|
147
159
|
"import": "./dist/app-database-host.js",
|
|
148
160
|
"default": "./dist/app-database-host.js"
|
|
149
161
|
},
|
|
162
|
+
"./server-host": {
|
|
163
|
+
"types": "./dist/server-host.d.ts",
|
|
164
|
+
"import": "./dist/server-host.js",
|
|
165
|
+
"default": "./dist/server-host.js"
|
|
166
|
+
},
|
|
150
167
|
"./telemetry": {
|
|
151
168
|
"types": "./dist/telemetry.d.ts",
|
|
152
169
|
"import": "./dist/telemetry.js",
|
|
@@ -178,6 +195,11 @@
|
|
|
178
195
|
"import": "./dist/plugin-assets.js",
|
|
179
196
|
"default": "./dist/plugin-assets.js"
|
|
180
197
|
},
|
|
198
|
+
"./plugin-distribution-host": {
|
|
199
|
+
"types": "./dist/plugin-distribution-host.d.ts",
|
|
200
|
+
"import": "./dist/plugin-distribution-host.js",
|
|
201
|
+
"default": "./dist/plugin-distribution-host.js"
|
|
202
|
+
},
|
|
181
203
|
"./search-embedding-worker": {
|
|
182
204
|
"import": "./dist/storage/search-embedding-worker.js",
|
|
183
205
|
"default": "./dist/storage/search-embedding-worker.js"
|
|
@@ -187,6 +209,21 @@
|
|
|
187
209
|
"svelte": "./dist/components/*/index.js",
|
|
188
210
|
"import": "./dist/components/*/index.js",
|
|
189
211
|
"default": "./dist/components/*/index.js"
|
|
212
|
+
},
|
|
213
|
+
"./plugin-host-modules": {
|
|
214
|
+
"types": "./dist/generated/plugin-host-modules.schema.generated.d.ts",
|
|
215
|
+
"import": "./dist/generated/plugin-host-modules.schema.generated.js",
|
|
216
|
+
"default": "./dist/generated/plugin-host-modules.schema.generated.js"
|
|
217
|
+
},
|
|
218
|
+
"./registry/schema": {
|
|
219
|
+
"types": "./dist/registry-schema/index.d.ts",
|
|
220
|
+
"import": "./dist/registry-schema/index.js",
|
|
221
|
+
"default": "./dist/registry-schema/index.js"
|
|
222
|
+
},
|
|
223
|
+
"./build/vite": {
|
|
224
|
+
"types": "./dist/build-tools/vite.d.ts",
|
|
225
|
+
"import": "./dist/build-tools/vite.js",
|
|
226
|
+
"default": "./dist/build-tools/vite.js"
|
|
190
227
|
}
|
|
191
228
|
},
|
|
192
229
|
"devDependencies": {
|
|
@@ -216,7 +253,7 @@
|
|
|
216
253
|
"i18next": "^25.3.0",
|
|
217
254
|
"jsdom": "^26.1.0",
|
|
218
255
|
"publint": "^0.3.12",
|
|
219
|
-
"svelte": "
|
|
256
|
+
"svelte": "5.56.10",
|
|
220
257
|
"svelte-check": "^4.3.1",
|
|
221
258
|
"svelte-sonner": "^1.0.5",
|
|
222
259
|
"tslib": "^2.8.1",
|
|
@@ -235,6 +272,7 @@
|
|
|
235
272
|
"test:run": "vitest run",
|
|
236
273
|
"generate:search-query-parser": "lezer-generator ./src/lib/search-query/search-query.grammar -o ./src/lib/search-query/parser.js",
|
|
237
274
|
"parity:generate": "node ./scripts/generate-obsidian-parity.mjs",
|
|
238
|
-
"performance:metadata:native": "tsx ./scripts/metadata-performance-native.ts"
|
|
275
|
+
"performance:metadata:native": "tsx ./scripts/metadata-performance-native.ts",
|
|
276
|
+
"generate:plugin-host-modules": "node ../../scripts/generate-plugin-host-modules.mjs"
|
|
239
277
|
}
|
|
240
278
|
}
|