Skip to content

Commit b1f241c

Browse files
authored
chore: split @dfinity/vetkeys/tools entry point into @dfinity/vetkeys/{key_manager,encrypted_maps} (#98)
1 parent 5852eeb commit b1f241c

File tree

30 files changed

+92
-75
lines changed

30 files changed

+92
-75
lines changed

examples/basic_ibe/frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig({
2323
resolve: {
2424
alias: {
2525
'ic_vetkeys': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src'),
26-
'ic_vetkeys/tools': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src/tools'),
26+
'ic_vetkeys/encrypted_maps': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src/encrypted_maps'),
2727
}
2828
},
2929
root: "./",

examples/basic_timelock_ibe/frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig({
2323
resolve: {
2424
alias: {
2525
'ic_vetkeys': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src'),
26-
'ic_vetkeys/tools': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src/tools'),
26+
'ic_vetkeys/encrypted_maps': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src/encrypted_maps'),
2727
}
2828
},
2929
root: "./",

examples/password_manager/frontend/src/components/EditPassword.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import Spinner from "./Spinner.svelte";
1717
import { onDestroy } from "svelte";
1818
import { Principal } from "@dfinity/principal";
19-
import type { AccessRights } from "@dfinity/vetkeys/tools";
19+
import type { AccessRights } from "@dfinity/vetkeys/encrypted_maps";
2020
2121
export let currentRoute = "";
2222
const unsubscribe = location.subscribe((value) => {

examples/password_manager/frontend/src/components/SharingEditor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
} from "../store/vaults";
1010
import { addNotification, showError } from "../store/notifications";
1111
import { Principal } from "@dfinity/principal";
12-
import type { AccessRights } from "@dfinity/vetkeys/tools";
12+
import type { AccessRights } from "@dfinity/vetkeys/encrypted_maps";
1313
1414
export let editedVault: VaultModel;
1515
export let canManage = false;

examples/password_manager/frontend/src/components/Vault.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import GiOpenTreasureChest from "svelte-icons/gi/GiOpenTreasureChest.svelte";
1111
import { auth } from "../store/auth";
1212
import SharingEditor from "./SharingEditor.svelte";
13-
import type { AccessRights } from "@dfinity/vetkeys/tools";
13+
import type { AccessRights } from "@dfinity/vetkeys/encrypted_maps";
1414
1515
export let vault: VaultModel = {
1616
name: "",

examples/password_manager/frontend/src/lib/encrypted_maps.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import "./init.ts";
22
import { HttpAgent, type HttpAgentOptions } from "@dfinity/agent";
3-
import { DefaultEncryptedMapsClient } from "@dfinity/vetkeys/tools";
4-
import { EncryptedMaps } from "@dfinity/vetkeys/tools";
3+
import {
4+
DefaultEncryptedMapsClient,
5+
EncryptedMaps,
6+
} from "@dfinity/vetkeys/encrypted_maps";
57

68
export async function createEncryptedMaps(
79
agentOptions?: HttpAgentOptions,

examples/password_manager/frontend/src/lib/vault.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Principal } from "@dfinity/principal";
22
import type { PasswordModel } from "./password";
3-
import type { AccessRights } from "@dfinity/vetkeys/tools";
3+
import type { AccessRights } from "@dfinity/vetkeys/encrypted_maps";
44

55
export interface VaultModel {
66
owner: Principal;

examples/password_manager/frontend/src/store/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { AuthClient } from "@dfinity/auth-client";
44
import type { JsonnableDelegationChain } from "@dfinity/identity/lib/cjs/identity/delegation";
55
import { replace } from "svelte-spa-router";
66
import { createEncryptedMaps } from "../lib/encrypted_maps.js";
7-
import { EncryptedMaps } from "@dfinity/vetkeys/tools";
7+
import { EncryptedMaps } from "@dfinity/vetkeys/encrypted_maps";
88

99
export type AuthState =
1010
| {

examples/password_manager/frontend/src/store/vaults.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { passwordFromContent, type PasswordModel } from "../lib/password";
33
import { vaultFromContent, type VaultModel } from "../lib/vault";
44
import { auth } from "./auth";
55
import { showError } from "./notifications";
6-
import { type AccessRights, EncryptedMaps } from "@dfinity/vetkeys/tools";
6+
import {
7+
type AccessRights,
8+
EncryptedMaps,
9+
} from "@dfinity/vetkeys/encrypted_maps";
710
import type { Principal } from "@dfinity/principal";
811

912
export const vaultsStore = writable<

examples/password_manager/frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default defineConfig({
3434
resolve: {
3535
alias: {
3636
'ic_vetkeys': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src'),
37-
'ic_vetkeys/tools': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src/tools'),
37+
'ic_vetkeys/encrypted_maps': path.resolve(__dirname, '../../../frontend/ic_vetkeys/src/encrypted_maps'),
3838
}
3939
},
4040
root: "./",

0 commit comments

Comments
 (0)