@powerhousedao/reactor-browser 1.1.0

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.
Files changed (55) hide show
  1. package/dist/cjs/index.js +84145 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/internal/__vite-browser-external-DES75WN9.js +5 -0
  4. package/dist/cjs/internal/__vite-browser-external-DES75WN9.js.map +1 -0
  5. package/dist/cjs/package.json +1 -0
  6. package/dist/es/index.js +84145 -0
  7. package/dist/es/index.js.map +1 -0
  8. package/dist/es/internal/__vite-browser-external-2Ng8QIWW.js +5 -0
  9. package/dist/es/internal/__vite-browser-external-2Ng8QIWW.js.map +1 -0
  10. package/dist/es/package.json +1 -0
  11. package/dist/types/src/context/index.d.ts +2 -0
  12. package/dist/types/src/context/index.d.ts.map +1 -0
  13. package/dist/types/src/context/read-mode.d.ts +14 -0
  14. package/dist/types/src/context/read-mode.d.ts.map +1 -0
  15. package/dist/types/src/crypto/browser.d.ts +8 -0
  16. package/dist/types/src/crypto/browser.d.ts.map +1 -0
  17. package/dist/types/src/crypto/index.d.ts +28 -0
  18. package/dist/types/src/crypto/index.d.ts.map +1 -0
  19. package/dist/types/src/document-model.d.ts +4 -0
  20. package/dist/types/src/document-model.d.ts.map +1 -0
  21. package/dist/types/src/hooks/index.d.ts +5 -0
  22. package/dist/types/src/hooks/index.d.ts.map +1 -0
  23. package/dist/types/src/hooks/useAddDebouncedOperations.d.ts +8 -0
  24. package/dist/types/src/hooks/useAddDebouncedOperations.d.ts.map +1 -0
  25. package/dist/types/src/hooks/useConnectCrypto.d.ts +4 -0
  26. package/dist/types/src/hooks/useConnectCrypto.d.ts.map +1 -0
  27. package/dist/types/src/hooks/useDocument.d.ts +9 -0
  28. package/dist/types/src/hooks/useDocument.d.ts.map +1 -0
  29. package/dist/types/src/hooks/useDocumentDispatch.d.ts +14 -0
  30. package/dist/types/src/hooks/useDocumentDispatch.d.ts.map +1 -0
  31. package/dist/types/src/hooks/useDocumentDrives.d.ts +12 -0
  32. package/dist/types/src/hooks/useDocumentDrives.d.ts.map +1 -0
  33. package/dist/types/src/hooks/useDocumentEditor.d.ts +21 -0
  34. package/dist/types/src/hooks/useDocumentEditor.d.ts.map +1 -0
  35. package/dist/types/src/hooks/useUserPermissions.d.ts +6 -0
  36. package/dist/types/src/hooks/useUserPermissions.d.ts.map +1 -0
  37. package/dist/types/src/index.d.ts +7 -0
  38. package/dist/types/src/index.d.ts.map +1 -0
  39. package/dist/types/src/reactor.d.ts +8 -0
  40. package/dist/types/src/reactor.d.ts.map +1 -0
  41. package/dist/types/src/renown/constants.d.ts +130 -0
  42. package/dist/types/src/renown/constants.d.ts.map +1 -0
  43. package/dist/types/src/renown/types.d.ts +76 -0
  44. package/dist/types/src/renown/types.d.ts.map +1 -0
  45. package/dist/types/src/storage/index.d.ts +2 -0
  46. package/dist/types/src/storage/index.d.ts.map +1 -0
  47. package/dist/types/src/storage/types.d.ts +6 -0
  48. package/dist/types/src/storage/types.d.ts.map +1 -0
  49. package/dist/types/src/utils/index.d.ts +5 -0
  50. package/dist/types/src/utils/index.d.ts.map +1 -0
  51. package/dist/types/src/utils/signature.d.ts +5 -0
  52. package/dist/types/src/utils/signature.d.ts.map +1 -0
  53. package/dist/types/vite.config.d.ts +3 -0
  54. package/dist/types/vite.config.d.ts.map +1 -0
  55. package/package.json +48 -0
@@ -0,0 +1,5 @@
1
+ const __viteBrowserExternal = {};
2
+ export {
3
+ __viteBrowserExternal as default
4
+ };
5
+ //# sourceMappingURL=__vite-browser-external-2Ng8QIWW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__vite-browser-external-2Ng8QIWW.js","sources":["../../../__vite-browser-external"],"sourcesContent":["export default {}"],"names":[],"mappings":"AAAA,MAAe,wBAAA,CAAA;"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,2 @@
1
+ export * from './read-mode';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { BaseDocumentDriveServer, IReadModeDriveServer, ReadDrive } from 'document-drive';
2
+ import { FC, ReactNode } from 'react';
3
+ export interface IReadModeContext extends IReadModeDriveServer {
4
+ readDrives: ReadDrive[];
5
+ setDocumentDrive(documentDrive: IReadModeDriveServer): void;
6
+ }
7
+ export declare const ReadModeContext: import('react').Context<IReadModeContext>;
8
+ export interface ReadModeContextProviderProps {
9
+ children: ReactNode;
10
+ reactorPromise: Promise<BaseDocumentDriveServer & IReadModeDriveServer>;
11
+ }
12
+ export declare const ReadModeContextProvider: FC<ReadModeContextProviderProps>;
13
+ export declare const useReadModeContext: () => IReadModeContext;
14
+ //# sourceMappingURL=read-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-mode.d.ts","sourceRoot":"","sources":["../../../../src/context/read-mode.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,uBAAuB,EAKvB,oBAAoB,EAEpB,SAAS,EAOV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAEL,EAAE,EACF,SAAS,EAKV,MAAM,OAAO,CAAC;AAkBf,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,gBAAgB,CAAC,aAAa,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC7D;AAuID,eAAO,MAAM,eAAe,2CAG1B,CAAC;AAEH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,SAAS,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC,uBAAuB,GAAG,oBAAoB,CAAC,CAAC;CACzE;AAcD,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAkFpE,CAAC;AACF,eAAO,MAAM,kBAAkB,wBAAoC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { JsonWebKeyPairStorage, JwkKeyPair } from './';
2
+ export declare class BrowserKeyStorage implements JsonWebKeyPairStorage {
3
+ #private;
4
+ constructor();
5
+ saveKeyPair(keyPair: JwkKeyPair): Promise<void>;
6
+ loadKeyPair(): Promise<JwkKeyPair | undefined>;
7
+ }
8
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../../src/crypto/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEvD,qBAAa,iBAAkB,YAAW,qBAAqB;;;IA2BvD,WAAW,CAAC,OAAO,EAAE,UAAU;IAa/B,WAAW,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;CAgBrD"}
@@ -0,0 +1,28 @@
1
+ export type JwkKeyPair = {
2
+ publicKey: JsonWebKey;
3
+ privateKey: JsonWebKey;
4
+ };
5
+ export interface JsonWebKeyPairStorage {
6
+ loadKeyPair(): Promise<JwkKeyPair | undefined>;
7
+ saveKeyPair(keyPair: JwkKeyPair): Promise<void>;
8
+ }
9
+ export interface IConnectCrypto {
10
+ did: () => Promise<DID>;
11
+ regenerateDid(): Promise<void>;
12
+ sign: (data: Uint8Array) => Promise<Uint8Array>;
13
+ }
14
+ export type DID = `did:key:${string}`;
15
+ export declare class ConnectCrypto implements IConnectCrypto {
16
+ #private;
17
+ static algorithm: EcKeyAlgorithm;
18
+ static signAlgorithm: {
19
+ name: string;
20
+ namedCurve: string;
21
+ hash: string;
22
+ };
23
+ constructor(keyPairStorage: JsonWebKeyPairStorage);
24
+ did(): Promise<`did:key:${string}`>;
25
+ regenerateDid(): Promise<void>;
26
+ sign(data: Uint8Array): Promise<Uint8Array>;
27
+ }
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/crypto/index.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,UAAU,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,WAAW,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAC/C,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD;AAQD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IACxB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CACjD;AAED,MAAM,MAAM,GAAG,GAAG,WAAW,MAAM,EAAE,CAAC;AAEtC,qBAAa,aAAc,YAAW,cAAc;;IAOlD,MAAM,CAAC,SAAS,EAAE,cAAc,CAG9B;IAEF,MAAM,CAAC,aAAa;;;;MAIlB;gBAEU,cAAc,EAAE,qBAAqB;IA2CjD,GAAG;IAIG,aAAa;IA+Eb,IAAI,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;CAelD"}
@@ -0,0 +1,4 @@
1
+ import { DocumentModel } from 'document-model/document';
2
+ export declare const baseDocumentModelsMap: Record<string, DocumentModel>;
3
+ export declare const baseDocumentModels: DocumentModel[];
4
+ //# sourceMappingURL=document-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../src/document-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAG/D,CAAC;AAEF,eAAO,MAAM,kBAAkB,iBAAuC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './useUserPermissions';
2
+ export * from './useDocumentEditor';
3
+ export * from './useDocumentDrives';
4
+ export * from './useDocument';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Document, Operation } from 'document-model/document';
2
+ import { IDocumentDriveServer } from 'document-drive';
3
+ export type UseAddDebouncedOperationsProps = {
4
+ driveId: string;
5
+ documentId: string;
6
+ };
7
+ export declare function useAddDebouncedOperations(reactor: IDocumentDriveServer | undefined, props: UseAddDebouncedOperationsProps): (operation: Operation) => Promise<Document | undefined>;
8
+ //# sourceMappingURL=useAddDebouncedOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAddDebouncedOperations.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAddDebouncedOperations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAyCtD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,KAAK,EAAE,8BAA8B,eAxClB,SAAS,mCAoF7B"}
@@ -0,0 +1,4 @@
1
+ import { DID, IConnectCrypto } from '../crypto';
2
+ export declare function useConnectCrypto(): IConnectCrypto;
3
+ export declare function useConnectDid(): DID | undefined;
4
+ //# sourceMappingURL=useConnectCrypto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConnectCrypto.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConnectCrypto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,cAAc,EAAiB,MAAM,WAAW,CAAC;AAS/D,wBAAgB,gBAAgB,IAAI,cAAc,CAkBjD;AAID,wBAAgB,aAAa,IAAI,GAAG,GAAG,SAAS,CAc/C"}
@@ -0,0 +1,9 @@
1
+ import { Document } from 'document-model/document';
2
+ import { IDocumentDriveServer } from 'document-drive/server';
3
+ export type DocumentMeta = {
4
+ driveId?: string;
5
+ documentId?: string;
6
+ documentType?: string;
7
+ };
8
+ export declare function useDocument(reactor: IDocumentDriveServer | undefined, documentMeta?: DocumentMeta): Document | undefined;
9
+ //# sourceMappingURL=useDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocument.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDocument.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAgB,MAAM,uBAAuB,CAAC;AAE3E,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,WAAW,CACzB,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,YAAY,GAAE,YAAiB,wBA2ChC"}
@@ -0,0 +1,14 @@
1
+ import { Action, ActionErrorCallback, BaseAction, Document, Operation, Reducer } from 'document-model/document';
2
+ export type DocumentDispatchCallback<State, A extends Action, LocalState> = (operation: Operation, state: {
3
+ prevState: Document<State, A, LocalState>;
4
+ newState: Document<State, A, LocalState>;
5
+ }) => void;
6
+ export type DocumentDispatch<State, A extends Action, LocalState> = (action: A | BaseAction, callback?: DocumentDispatchCallback<State, A, LocalState>, onErrorCallback?: ActionErrorCallback) => void;
7
+ type OnErrorHandler = (error: unknown) => void;
8
+ export declare function useDocumentDispatch<State, A extends Action, LocalState>(documentReducer: Reducer<State, A, LocalState> | undefined, initialState: Document<State, A, LocalState> | undefined, onError?: OnErrorHandler): readonly [
9
+ Document<State, A, LocalState> | undefined,
10
+ DocumentDispatch<State, A, LocalState>,
11
+ unknown
12
+ ];
13
+ export {};
14
+ //# sourceMappingURL=useDocumentDispatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentDispatch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDocumentDispatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACR,MAAM,yBAAyB,CAAC;AAGjC,MAAM,MAAM,wBAAwB,CAAC,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,UAAU,IAAI,CAC1E,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;IACL,SAAS,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;IAC1C,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;CAC1C,KACE,IAAI,CAAC;AAEV,MAAM,MAAM,gBAAgB,CAAC,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,UAAU,IAAI,CAClE,MAAM,EAAE,CAAC,GAAG,UAAU,EACtB,QAAQ,CAAC,EAAE,wBAAwB,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EACzD,eAAe,CAAC,EAAE,mBAAmB,KAClC,IAAI,CAAC;AAEV,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;AAE/C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,UAAU,EACrE,eAAe,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,GAAG,SAAS,EAC1D,YAAY,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,GAAG,SAAS,EACxD,OAAO,GAAE,cAA8B,GACtC,SAAS;IACV,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,GAAG,SAAS;IAC1C,gBAAgB,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC;IACtC,OAAO;CACR,CAkDA"}
@@ -0,0 +1,12 @@
1
+ import { IDocumentDriveServer } from 'document-drive/server';
2
+ import { DocumentDriveDocument, Trigger } from 'document-model-libs/document-drive';
3
+ export declare function drivesToHash(drives: DocumentDriveDocument[]): string;
4
+ export type IDrivesState = "INITIAL" | "LOADING" | "LOADED" | "ERROR";
5
+ export declare const documentDrivesInitializedMapAtomFamily: import('jotai/vanilla/utils/atomFamily').AtomFamily<unknown, import('jotai').PrimitiveAtom<IDrivesState> & {
6
+ init: IDrivesState;
7
+ }>;
8
+ export type ClientErrorHandler = {
9
+ strandsErrorHandler: (driveId: string, trigger: Trigger, status: number, errorMessage: string) => Promise<void>;
10
+ };
11
+ export declare function useDocumentDrives(reactor?: IDocumentDriveServer): readonly [DocumentDriveDocument[], () => Promise<void>, (clientErrorhandler: ClientErrorHandler) => (() => void) | undefined, IDrivesState];
12
+ //# sourceMappingURL=useDocumentDrives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentDrives.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDocumentDrives.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3E,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAQ7D,wBAAgB,YAAY,CAAC,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAEpE;AAuBD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AACtE,eAAO,MAAM,sCAAsC;;EAElD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mBAAmB,EAAE,CACnB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,KACjB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,oBAAoB,gFAwCvC,kBAAkB,6CA2C1C"}
@@ -0,0 +1,21 @@
1
+ import { Action, Document, Operation, BaseAction, DocumentModel, ActionErrorCallback } from 'document-model/document';
2
+ import { IDocumentDriveServer } from 'document-drive';
3
+ export type DocumentDispatchCallback<State, A extends Action, LocalState> = (operation: Operation, state: {
4
+ prevState: Document<State, A, LocalState>;
5
+ newState: Document<State, A, LocalState>;
6
+ }) => void;
7
+ export type UseDocumentEditorProps<T = unknown, A extends Action = Action, LocalState = unknown> = {
8
+ driveId: string;
9
+ nodeId: string;
10
+ document: Document<T, A, LocalState> | undefined;
11
+ documentModel: DocumentModel<unknown, Action>;
12
+ onExport?: () => void;
13
+ onOpenSwitchboardLink?: () => Promise<void>;
14
+ onChange?: (document: Document<T, A, LocalState>) => void;
15
+ };
16
+ export declare function useDocumentEditor(reactor: IDocumentDriveServer | undefined, props: UseDocumentEditorProps): {
17
+ dispatch: (action: BaseAction | Action, onErrorCallback?: ActionErrorCallback) => void;
18
+ document: Document<unknown, Action, unknown> | undefined;
19
+ error: unknown;
20
+ };
21
+ //# sourceMappingURL=useDocumentEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDocumentEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDocumentEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,wBAAwB,CAAC,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,UAAU,IAAI,CAC1E,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;IACL,SAAS,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;IAC1C,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;CAC1C,KACE,IAAI,CAAC;AAEV,MAAM,MAAM,sBAAsB,CAChC,CAAC,GAAG,OAAO,EACX,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,UAAU,GAAG,OAAO,IAClB;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,GAAG,SAAS,CAAC;IACjD,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,KAAK,EAAE,sBAAsB;uBAqBnB,UAAU,GAAG,MAAM,oBACT,mBAAmB;;;EAkCxC"}
@@ -0,0 +1,6 @@
1
+ export type UserPermissions = {
2
+ isAllowedToCreateDocuments: boolean;
3
+ isAllowedToEditDocuments: boolean;
4
+ };
5
+ export declare function useUserPermissions(): UserPermissions | undefined;
6
+ //# sourceMappingURL=useUserPermissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUserPermissions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUserPermissions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,0BAA0B,EAAE,OAAO,CAAC;IACpC,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,eAAe,GAAG,SAAS,CAKhE"}
@@ -0,0 +1,7 @@
1
+ import { IDocumentDriveServer } from 'document-drive';
2
+ export * from './document-model';
3
+ export * from './context';
4
+ export * from './reactor';
5
+ export * from './hooks';
6
+ export type DocumentDriveServerInterface = IDocumentDriveServer;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { DocumentDriveServerOptions } from 'document-drive/server';
2
+ import { DocumentModel } from 'document-model/document';
3
+ export type ReactorDefaultDrivesConfig = {
4
+ defaultDrivesUrl?: string[];
5
+ };
6
+ export declare const getReactorDefaultDrivesConfig: (config?: ReactorDefaultDrivesConfig) => Pick<DocumentDriveServerOptions, "defaultDrives">;
7
+ export declare function createBrowserDocumentDriveServer(documentModels: DocumentModel[], routerBasename: string, documentDriveServerOptions?: DocumentDriveServerOptions): import('document-drive').BaseDocumentDriveServer & import('document-drive').IReadModeDriveServer;
8
+ //# sourceMappingURL=reactor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/reactor.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,0BAA0B,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,MAAM,0BAA0B,GAAG;IACvC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,6BAA6B,YAChC,0BAA0B,KACjC,IAAI,CAAC,0BAA0B,EAAE,eAAe,CA8ClD,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,cAAc,EAAE,aAAa,EAAE,EAC/B,cAAc,EAAE,MAAM,EACtB,0BAA0B,CAAC,EAAE,0BAA0B,oGASxD"}
@@ -0,0 +1,130 @@
1
+ export declare const RENOWN_URL = "https://www.renown.id";
2
+ export declare const RENOWN_NETWORK_ID = "eip155";
3
+ export declare const RENOWN_CHAIN_ID = "1";
4
+ export declare const DOMAIN_TYPE: readonly [{
5
+ readonly name: "name";
6
+ readonly type: "string";
7
+ }, {
8
+ readonly name: "version";
9
+ readonly type: "string";
10
+ }, {
11
+ readonly name: "chainId";
12
+ readonly type: "uint256";
13
+ }, {
14
+ readonly name: "verifyingContract";
15
+ readonly type: "address";
16
+ }];
17
+ export declare const VERIFIABLE_CREDENTIAL_EIP712_TYPE: readonly [{
18
+ readonly name: "@context";
19
+ readonly type: "string[]";
20
+ }, {
21
+ readonly name: "type";
22
+ readonly type: "string[]";
23
+ }, {
24
+ readonly name: "id";
25
+ readonly type: "string";
26
+ }, {
27
+ readonly name: "issuer";
28
+ readonly type: "Issuer";
29
+ }, {
30
+ readonly name: "credentialSubject";
31
+ readonly type: "CredentialSubject";
32
+ }, {
33
+ readonly name: "credentialSchema";
34
+ readonly type: "CredentialSchema";
35
+ }, {
36
+ readonly name: "issuanceDate";
37
+ readonly type: "string";
38
+ }, {
39
+ readonly name: "expirationDate";
40
+ readonly type: "string";
41
+ }];
42
+ export declare const CREDENTIAL_SCHEMA_EIP712_TYPE: readonly [{
43
+ readonly name: "id";
44
+ readonly type: "string";
45
+ }, {
46
+ readonly name: "type";
47
+ readonly type: "string";
48
+ }];
49
+ export declare const CREDENTIAL_SUBJECT_TYPE: readonly [{
50
+ readonly name: "app";
51
+ readonly type: "string";
52
+ }, {
53
+ readonly name: "id";
54
+ readonly type: "string";
55
+ }, {
56
+ readonly name: "name";
57
+ readonly type: "string";
58
+ }];
59
+ export declare const ISSUER_TYPE: readonly [{
60
+ readonly name: "id";
61
+ readonly type: "string";
62
+ }, {
63
+ readonly name: "ethereumAddress";
64
+ readonly type: "string";
65
+ }];
66
+ export declare const CREDENTIAL_TYPES: {
67
+ readonly EIP712Domain: readonly [{
68
+ readonly name: "name";
69
+ readonly type: "string";
70
+ }, {
71
+ readonly name: "version";
72
+ readonly type: "string";
73
+ }, {
74
+ readonly name: "chainId";
75
+ readonly type: "uint256";
76
+ }, {
77
+ readonly name: "verifyingContract";
78
+ readonly type: "address";
79
+ }];
80
+ readonly VerifiableCredential: readonly [{
81
+ readonly name: "@context";
82
+ readonly type: "string[]";
83
+ }, {
84
+ readonly name: "type";
85
+ readonly type: "string[]";
86
+ }, {
87
+ readonly name: "id";
88
+ readonly type: "string";
89
+ }, {
90
+ readonly name: "issuer";
91
+ readonly type: "Issuer";
92
+ }, {
93
+ readonly name: "credentialSubject";
94
+ readonly type: "CredentialSubject";
95
+ }, {
96
+ readonly name: "credentialSchema";
97
+ readonly type: "CredentialSchema";
98
+ }, {
99
+ readonly name: "issuanceDate";
100
+ readonly type: "string";
101
+ }, {
102
+ readonly name: "expirationDate";
103
+ readonly type: "string";
104
+ }];
105
+ readonly CredentialSchema: readonly [{
106
+ readonly name: "id";
107
+ readonly type: "string";
108
+ }, {
109
+ readonly name: "type";
110
+ readonly type: "string";
111
+ }];
112
+ readonly CredentialSubject: readonly [{
113
+ readonly name: "app";
114
+ readonly type: "string";
115
+ }, {
116
+ readonly name: "id";
117
+ readonly type: "string";
118
+ }, {
119
+ readonly name: "name";
120
+ readonly type: "string";
121
+ }];
122
+ readonly Issuer: readonly [{
123
+ readonly name: "id";
124
+ readonly type: "string";
125
+ }, {
126
+ readonly name: "ethereumAddress";
127
+ readonly type: "string";
128
+ }];
129
+ };
130
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/renown/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAClD,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,eAAO,MAAM,WAAW;;;;;;;;;;;;EAKd,CAAC;AAEX,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;EASpC,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;EAGhC,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;EAI1B,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;EAGd,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnB,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { User as EditorUser } from 'document-model/document';
2
+ import { IStorage } from '../storage';
3
+ import { CREDENTIAL_TYPES } from './constants';
4
+ export type User = EditorUser & {
5
+ did: string;
6
+ credential: PowerhouseVerifiableCredential | undefined;
7
+ };
8
+ export type Unsubscribe = () => void;
9
+ export interface IRenown {
10
+ user: () => Promise<User | undefined>;
11
+ login: (did: string) => Promise<User | undefined>;
12
+ logout: () => Promise<void>;
13
+ on: {
14
+ user: (cb: (user: User) => void) => Unsubscribe;
15
+ };
16
+ }
17
+ export type RenownStorage = IStorage<{
18
+ user: User | undefined;
19
+ }>;
20
+ type IssuerType<T> = {
21
+ id: string;
22
+ } & T;
23
+ type CredentialSubjecType<T> = {
24
+ id?: string;
25
+ } & T;
26
+ interface CredentialStatus {
27
+ id: string;
28
+ type: string;
29
+ }
30
+ interface CredentialSchema {
31
+ id: string;
32
+ type: string;
33
+ }
34
+ interface IVerifiableCredentialPayload<Subject, Issuer> {
35
+ "@context": string[];
36
+ id: string;
37
+ type: string[];
38
+ issuer: IssuerType<Issuer>;
39
+ issuanceDate: string;
40
+ expirationDate?: string;
41
+ credentialSubject: CredentialSubjecType<Subject>;
42
+ credentialStatus?: CredentialStatus;
43
+ credentialSchema: CredentialSchema;
44
+ }
45
+ interface IProof {
46
+ verificationMethod: string;
47
+ ethereumAddress: `0x${string}`;
48
+ created: string;
49
+ proofPurpose: string;
50
+ type: string;
51
+ proofValue: string;
52
+ eip712: {
53
+ domain: {
54
+ name: string;
55
+ version: string;
56
+ chainId: number;
57
+ verifyingContract: string;
58
+ };
59
+ types: typeof CREDENTIAL_TYPES;
60
+ primaryType: "VerifiableCredential";
61
+ };
62
+ }
63
+ export interface IVerifiableCredential<Subject, Issuer> extends IVerifiableCredentialPayload<Subject, Issuer> {
64
+ proof: IProof;
65
+ }
66
+ export interface IPowerhouseCredentialSubject {
67
+ id: string;
68
+ app: string;
69
+ name?: string;
70
+ }
71
+ export interface IPowerhouseIssuerType {
72
+ ethereumAddress: `0x${string}`;
73
+ }
74
+ export type PowerhouseVerifiableCredential = IVerifiableCredential<IPowerhouseCredentialSubject, IPowerhouseIssuerType>;
75
+ export {};
76
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/renown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,8BAA8B,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC;AAErC,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;IACtC,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;IAClD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,EAAE,EAAE;QACF,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,KAAK,WAAW,CAAC;KACjD,CAAC;CACH;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IAAE,IAAI,EAAE,IAAI,GAAG,SAAS,CAAA;CAAE,CAAC,CAAC;AAEjE,KAAK,UAAU,CAAC,CAAC,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,CAAC,CAAC;AAEN,KAAK,oBAAoB,CAAC,CAAC,IAAI;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GAAG,CAAC,CAAC;AAEN,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,4BAA4B,CAAC,OAAO,EAAE,MAAM;IACpD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,UAAU,MAAM;IACd,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,KAAK,MAAM,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QACN,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC;YAChB,iBAAiB,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,KAAK,EAAE,OAAO,gBAAgB,CAAC;QAC/B,WAAW,EAAE,sBAAsB,CAAC;KACrC,CAAC;CACH;AAED,MAAM,WAAW,qBAAqB,CAAC,OAAO,EAAE,MAAM,CACpD,SAAQ,4BAA4B,CAAC,OAAO,EAAE,MAAM,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,KAAK,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAChE,4BAA4B,EAC5B,qBAAqB,CACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface IStorage<T extends Record<string, unknown> = Record<string, unknown>> {
2
+ get<Key extends keyof T>(key: Key): T[Key];
3
+ set<Key extends keyof T>(key: Key, value?: T[Key]): void;
4
+ delete<Key extends keyof T>(key: Key): void;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/storage/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ,CACvB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE3D,GAAG,CAAC,GAAG,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC3C,GAAG,CAAC,GAAG,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACzD,MAAM,CAAC,GAAG,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;CAC7C"}
@@ -0,0 +1,5 @@
1
+ import { Document } from 'document-model/document';
2
+ import { DocumentDriveDocument } from 'document-model-libs/document-drive';
3
+ export declare function documentToHash(drive: Document): string;
4
+ export declare function drivesToHash(drives: DocumentDriveDocument[]): string;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAOtD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAEpE"}
@@ -0,0 +1,5 @@
1
+ import { Action, Document, Operation, Reducer, User } from 'document-model/document';
2
+ import { User as RenownUser } from '../renown/types';
3
+ export declare function signOperation<State = unknown, A extends Action = Action, LocalState = unknown>(operation: Operation<A>, sign: (data: Uint8Array) => Promise<Uint8Array>, documentId: string, document: Document<State, A, LocalState>, reducer?: Reducer<State, A, LocalState>, user?: User): Promise<Operation<A>>;
4
+ export declare function addActionContext<A extends Action = Action>(action: A, connectDid?: string, user?: RenownUser): A;
5
+ //# sourceMappingURL=signature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../../../src/utils/signature.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,QAAQ,EACR,SAAS,EAET,OAAO,EACP,IAAI,EAEL,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1D,wBAAsB,aAAa,CACjC,KAAK,GAAG,OAAO,EACf,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,UAAU,GAAG,OAAO,EAEpB,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EACvB,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,EAC/C,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EACxC,OAAO,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EACvC,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CA0BvB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EACxD,MAAM,EAAE,CAAC,EACT,UAAU,CAAC,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,UAAU,KAqBlB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=vite.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../vite.config.ts"],"names":[],"mappings":";AAKA,wBAsCG"}
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@powerhousedao/reactor-browser",
3
+ "version": "1.1.0",
4
+ "license": "AGPL-3.0-only",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "types": "dist/types/src/index.d.ts",
12
+ "main": "dist/cjs/index.js",
13
+ "module": "dist/es/index.js",
14
+ "keywords": [],
15
+ "author": "",
16
+ "devDependencies": {
17
+ "@types/react": "^18.3.1",
18
+ "@types/react-dom": "^18.3.1",
19
+ "react": "^18.3.1",
20
+ "react-dom": "^18.3.1"
21
+ },
22
+ "peerDependencies": {
23
+ "react": "^18.3.1",
24
+ "react-dom": "^18.3.1"
25
+ },
26
+ "dependencies": {
27
+ "did-key-creator": "^1.2.0",
28
+ "jotai": "^2.10.3",
29
+ "@powerhousedao/config": "1.4.0",
30
+ "@powerhousedao/scalars": "1.15.0",
31
+ "@powerhousedao/design-system": "1.17.1",
32
+ "document-model-libs": "1.124.0",
33
+ "document-drive": "1.12.1",
34
+ "document-model": "2.14.0"
35
+ },
36
+ "scripts": {
37
+ "check-types": "tsc",
38
+ "lint": "eslint .",
39
+ "lint:nx": "eslint . --fix --quiet",
40
+ "lint:fix": "eslint --fix",
41
+ "postlint": "npm run check-types",
42
+ "build": "NODE_ENV=production vite build",
43
+ "build:watch": "vite build --watch",
44
+ "test": "vitest run --passWithNoTests",
45
+ "clean": "rimraf dist",
46
+ "clean:node_modules": "rimraf node_modules"
47
+ }
48
+ }