@powerhousedao/reactor-browser 6.0.0-dev.102 → 6.0.0-dev.104
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/dist/src/index.js +0 -21
- package/dist/src/reactor.d.ts +1 -3
- package/dist/src/reactor.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
package/dist/src/index.js
CHANGED
|
@@ -20276,26 +20276,6 @@ function createDebouncedRefreshReactorDataClient(debounceDelayMs = DEFAULT_DEBOU
|
|
|
20276
20276
|
}
|
|
20277
20277
|
var refreshReactorData = createDebouncedRefreshReactorData();
|
|
20278
20278
|
var refreshReactorDataClient = createDebouncedRefreshReactorDataClient();
|
|
20279
|
-
async function initLegacyReactor(legacyReactor, renown) {
|
|
20280
|
-
await initJwtHandler(legacyReactor, renown);
|
|
20281
|
-
const errors = await legacyReactor.initialize();
|
|
20282
|
-
const error = errors?.at(0);
|
|
20283
|
-
if (error) {
|
|
20284
|
-
throw error;
|
|
20285
|
-
}
|
|
20286
|
-
}
|
|
20287
|
-
async function initJwtHandler(legacyReactor, renown) {
|
|
20288
|
-
const user = renown?.user;
|
|
20289
|
-
if (!renown || !user) {
|
|
20290
|
-
return;
|
|
20291
|
-
}
|
|
20292
|
-
legacyReactor.setGenerateJwtHandler(async (driveUrl) => {
|
|
20293
|
-
return renown.getBearerToken({
|
|
20294
|
-
expiresIn: 10,
|
|
20295
|
-
aud: driveUrl
|
|
20296
|
-
});
|
|
20297
|
-
});
|
|
20298
|
-
}
|
|
20299
20279
|
async function initConnectCrypto() {
|
|
20300
20280
|
return initRenownCrypto();
|
|
20301
20281
|
}
|
|
@@ -32342,7 +32322,6 @@ export {
|
|
|
32342
32322
|
isFileNodeKind,
|
|
32343
32323
|
isDocumentTypeSupported,
|
|
32344
32324
|
initRenownCrypto,
|
|
32345
|
-
initLegacyReactor,
|
|
32346
32325
|
initConnectCrypto,
|
|
32347
32326
|
hideRevisionHistory,
|
|
32348
32327
|
getUserPermissions,
|
package/dist/src/reactor.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IReactorClient } from "@powerhousedao/reactor";
|
|
2
|
-
import type
|
|
3
|
-
import { type DocumentDriveServerOptions, type IDocumentDriveServer } from "document-drive";
|
|
2
|
+
import { type DocumentDriveServerOptions } from "document-drive";
|
|
4
3
|
export type ReactorDefaultDrivesConfig = {
|
|
5
4
|
defaultDrivesUrl?: string[];
|
|
6
5
|
};
|
|
@@ -11,7 +10,6 @@ export type RefreshReactorDataConfig = {
|
|
|
11
10
|
};
|
|
12
11
|
export declare const refreshReactorData: (reactor: IReactorClient, immediate?: boolean) => Promise<void>;
|
|
13
12
|
export declare const refreshReactorDataClient: (reactor: IReactorClient | undefined, immediate?: boolean) => Promise<void>;
|
|
14
|
-
export declare function initLegacyReactor(legacyReactor: IDocumentDriveServer, renown: IRenown | undefined): Promise<void>;
|
|
15
13
|
/**
|
|
16
14
|
* @deprecated Use {@link initRenownCrypto} instead
|
|
17
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../src/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../src/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,gBAAgB,CAAC;AAIxB,MAAM,MAAM,0BAA0B,GAAG;IACvC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,SAAQ,0BAA+B,KACtC,IAAI,CAAC,0BAA0B,EAAE,eAAe,CA6ClD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAkFF,eAAO,MAAM,kBAAkB,YAzDZ,cAAc,uCAyDoC,CAAC;AACtE,eAAO,MAAM,wBAAwB,YA1BlB,cAAc,GAAG,SAAS,uCA2BF,CAAC;AAE5C;;;;;GAKG;AACH,wBAAsB,iBAAiB,gDAEtC;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,gDAGrC"}
|