@ai-matrx/vault 0.1.8 → 0.1.10
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 +37 -0
- package/dist/index.cjs +246 -267
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +231 -252
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
+
import { Look } from '@ai-matrx/design-system';
|
|
2
3
|
import { KnobClient } from '@ai-matrx/data/knobs';
|
|
3
4
|
import * as account from '@ai-matrx/api/account';
|
|
4
5
|
import { Api } from '@ai-matrx/api';
|
|
@@ -227,8 +228,13 @@ interface IdentityAccount {
|
|
|
227
228
|
}
|
|
228
229
|
interface VaultIdentity {
|
|
229
230
|
account(): Promise<IdentityAccount>;
|
|
230
|
-
/**
|
|
231
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Confirms with that provider. On the web it leaves the page and comes back to the same address
|
|
233
|
+
* (resolves with nothing: the page is going away). A host that confirms IN PLACE (the desktop's
|
|
234
|
+
* Touch ID, a browser sign-in it waits for) resolves `"confirmed"`, and the gate closes and runs
|
|
235
|
+
* the refused call again — one confirmation, never a second click.
|
|
236
|
+
*/
|
|
237
|
+
withProvider(provider: string): Promise<void | "confirmed">;
|
|
232
238
|
withPassword(password: string): Promise<void>;
|
|
233
239
|
sendEmailCode(): Promise<void>;
|
|
234
240
|
withEmailCode(code: string): Promise<void>;
|
|
@@ -1192,6 +1198,12 @@ interface VaultAppProps {
|
|
|
1192
1198
|
onLocationChange?: (next: VaultLocation, how: "push" | "replace") => void;
|
|
1193
1199
|
/** The host's own toasts; without it the vault shows its own short notices. */
|
|
1194
1200
|
notify?: Notify;
|
|
1201
|
+
/**
|
|
1202
|
+
* The skin, never the screens: `"web"` (default) is the website's and the extension's look;
|
|
1203
|
+
* `"desktop"` draws the same workspace in the desktop standard (Matrx Desktop: the system font,
|
|
1204
|
+
* Apple's text styles, AppKit controls and grouped boxes, sheets for panels, light and dark).
|
|
1205
|
+
*/
|
|
1206
|
+
look?: Look;
|
|
1195
1207
|
}
|
|
1196
1208
|
/** THE VAULT WORKSPACE: one component for the web app, the extension side panel and the desktop app. */
|
|
1197
1209
|
declare function VaultApp(props: VaultAppProps): react.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
+
import { Look } from '@ai-matrx/design-system';
|
|
2
3
|
import { KnobClient } from '@ai-matrx/data/knobs';
|
|
3
4
|
import * as account from '@ai-matrx/api/account';
|
|
4
5
|
import { Api } from '@ai-matrx/api';
|
|
@@ -227,8 +228,13 @@ interface IdentityAccount {
|
|
|
227
228
|
}
|
|
228
229
|
interface VaultIdentity {
|
|
229
230
|
account(): Promise<IdentityAccount>;
|
|
230
|
-
/**
|
|
231
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Confirms with that provider. On the web it leaves the page and comes back to the same address
|
|
233
|
+
* (resolves with nothing: the page is going away). A host that confirms IN PLACE (the desktop's
|
|
234
|
+
* Touch ID, a browser sign-in it waits for) resolves `"confirmed"`, and the gate closes and runs
|
|
235
|
+
* the refused call again — one confirmation, never a second click.
|
|
236
|
+
*/
|
|
237
|
+
withProvider(provider: string): Promise<void | "confirmed">;
|
|
232
238
|
withPassword(password: string): Promise<void>;
|
|
233
239
|
sendEmailCode(): Promise<void>;
|
|
234
240
|
withEmailCode(code: string): Promise<void>;
|
|
@@ -1192,6 +1198,12 @@ interface VaultAppProps {
|
|
|
1192
1198
|
onLocationChange?: (next: VaultLocation, how: "push" | "replace") => void;
|
|
1193
1199
|
/** The host's own toasts; without it the vault shows its own short notices. */
|
|
1194
1200
|
notify?: Notify;
|
|
1201
|
+
/**
|
|
1202
|
+
* The skin, never the screens: `"web"` (default) is the website's and the extension's look;
|
|
1203
|
+
* `"desktop"` draws the same workspace in the desktop standard (Matrx Desktop: the system font,
|
|
1204
|
+
* Apple's text styles, AppKit controls and grouped boxes, sheets for panels, light and dark).
|
|
1205
|
+
*/
|
|
1206
|
+
look?: Look;
|
|
1195
1207
|
}
|
|
1196
1208
|
/** THE VAULT WORKSPACE: one component for the web app, the extension side panel and the desktop app. */
|
|
1197
1209
|
declare function VaultApp(props: VaultAppProps): react.JSX.Element;
|