@lapis-notes/app-profile 0.3.1 → 0.3.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,5 +1,26 @@
|
|
|
1
1
|
# @lapis-notes/app-profile
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#200](https://github.com/lapismd/lapis-notes/pull/200)
|
|
8
|
+
[`70a658d`](https://github.com/lapismd/lapis-notes/commit/70a658d1ad547c58c415ea4ef6be02af2c520121)
|
|
9
|
+
Thanks [@stevejuma](https://github.com/stevejuma)! - Allow a Tauri mobile host
|
|
10
|
+
to open a vault session with its own direct database provider and present the
|
|
11
|
+
shared workspace for an app-managed vault.
|
|
12
|
+
|
|
13
|
+
- [#204](https://github.com/lapismd/lapis-notes/pull/204)
|
|
14
|
+
[`9d34e7f`](https://github.com/lapismd/lapis-notes/commit/9d34e7f94721ffae62fbcf6f7996c6e9efea69b5)
|
|
15
|
+
Thanks [@stevejuma](https://github.com/stevejuma)! - Allow trusted plugins to
|
|
16
|
+
request a host-backed `plugin:secrets` capability. The workspace profile
|
|
17
|
+
passes the host's credential service into the plugin lifecycle. A plugin uses
|
|
18
|
+
`this.secrets.get`, `set`, and `delete` within its own approved scope.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
[[`70a658d`](https://github.com/lapismd/lapis-notes/commit/70a658d1ad547c58c415ea4ef6be02af2c520121),
|
|
21
|
+
[`9d34e7f`](https://github.com/lapismd/lapis-notes/commit/9d34e7f94721ffae62fbcf6f7996c6e9efea69b5)]:
|
|
22
|
+
- @lapis-notes/api@0.6.16
|
|
23
|
+
|
|
3
24
|
## 0.3.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ export function createNotesApplication(options) {
|
|
|
7
7
|
configPath: appStatePath("app.json"),
|
|
8
8
|
session: options.session,
|
|
9
9
|
syncHost: options.host?.syncHost,
|
|
10
|
+
pluginSecretsHost: options.host?.pluginSecretsHost,
|
|
10
11
|
pluginAssetServer: options.pluginAssetServer,
|
|
11
12
|
pluginDistributionOptions: options.pluginDistributionOptions,
|
|
12
13
|
unavailablePlugins: options.host?.unavailablePlugins ?? {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NotesWorkspaceSessionProps } from "./types";
|
|
1
2
|
import type { App } from "@lapis-notes/api";
|
|
2
3
|
import { type NativeChatHost } from "../native-chat/index";
|
|
3
|
-
export declare function registerSessionNativeChat(app: App, factory: (app: App) => NativeChatHost, runtime: "
|
|
4
|
+
export declare function registerSessionNativeChat(app: App, factory: (app: App) => NativeChatHost, runtime: NotesWorkspaceSessionProps["runtime"]): void;
|
|
@@ -5,6 +5,7 @@ type AppOptions = ConstructorParameters<typeof App>[0];
|
|
|
5
5
|
/** Browser permissions and platform registration remain owned by the host. */
|
|
6
6
|
export interface NotesWorkspaceHost {
|
|
7
7
|
syncHost?: AppOptions["syncHost"];
|
|
8
|
+
pluginSecretsHost?: AppOptions["pluginSecretsHost"];
|
|
8
9
|
unavailablePlugins?: AppOptions["unavailablePlugins"];
|
|
9
10
|
attach?(app: App, syncHost: SyncHostService): () => void;
|
|
10
11
|
configure?(app: App): Promise<(() => void) | void>;
|
|
@@ -14,7 +15,7 @@ export interface NotesWorkspaceHost {
|
|
|
14
15
|
export interface NotesWorkspaceSessionProps {
|
|
15
16
|
profile: VaultProfile;
|
|
16
17
|
session: VaultSession;
|
|
17
|
-
runtime: "web-pwa" | "node-server" | "rust-server";
|
|
18
|
+
runtime: "web-pwa" | "node-server" | "rust-server" | "tauri-mobile";
|
|
18
19
|
onReady(app: App): void | Promise<void>;
|
|
19
20
|
onOpenRecent(profile: VaultProfile): Promise<void>;
|
|
20
21
|
onManageVaults(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapis-notes/app-profile",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@lapis-notes/api": "^0.6.
|
|
44
|
+
"@lapis-notes/api": "^0.6.16",
|
|
45
45
|
"@lapis-notes/file-explorer": "^0.2.8",
|
|
46
46
|
"@lapis-notes/history": "^0.5.1",
|
|
47
47
|
"@lapis-notes/markdown": "^0.3.3",
|