@seed-hypermedia/client 0.0.68 → 0.0.70
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/LICENSE +201 -0
- package/dist/auth.d.ts +79 -0
- package/dist/auth.mjs +266 -0
- package/dist/auto-link.d.ts +3 -2
- package/dist/auto-link.mjs +21 -0
- package/dist/base64.mjs +9 -0
- package/dist/blobs.d.ts +170 -0
- package/dist/blobs.mjs +51 -0
- package/dist/block-diff.mjs +17 -0
- package/dist/blocks-to-markdown.mjs +22 -0
- package/dist/capability.d.ts +7 -2
- package/dist/capability.mjs +14 -0
- package/dist/cbor.d.ts +13 -0
- package/dist/cbor.mjs +13 -0
- package/dist/change.d.ts +8 -7
- package/dist/change.mjs +24 -0
- package/dist/chunk-2MD3FXKB.mjs +14 -0
- package/dist/chunk-37WRGUK4.mjs +125 -0
- package/dist/chunk-3KESF5XJ.mjs +297 -0
- package/dist/chunk-3TPCJCVO.mjs +24 -0
- package/dist/chunk-4Q3SAL5R.mjs +75 -0
- package/dist/chunk-52P3E6H6.mjs +459 -0
- package/dist/chunk-BUPMCRR4.mjs +48 -0
- package/dist/chunk-CBELM7KX.mjs +29 -0
- package/dist/{chunk-KCR3277A.mjs → chunk-DBHL3BYB.mjs} +9 -14
- package/dist/chunk-DR3HJ6BV.mjs +25 -0
- package/dist/chunk-EU36RFR3.mjs +159 -0
- package/dist/chunk-EY6RQVAP.mjs +138 -0
- package/dist/chunk-H7L4TI6X.mjs +705 -0
- package/dist/chunk-HBIVZA6C.mjs +102 -0
- package/dist/chunk-IT5LLTMP.mjs +209 -0
- package/dist/chunk-JT57MV7Y.mjs +136 -0
- package/dist/chunk-KO4XH5L2.mjs +475 -0
- package/dist/chunk-LVAHHQIK.mjs +41 -0
- package/dist/chunk-LYECQKZE.mjs +49 -0
- package/dist/chunk-N3P7S5YZ.mjs +118 -0
- package/dist/chunk-NPG76WUS.mjs +348 -0
- package/dist/chunk-NYWCMQTH.mjs +412 -0
- package/dist/chunk-OZKQOI2X.mjs +334 -0
- package/dist/chunk-PJ2RFT5A.mjs +113 -0
- package/dist/chunk-PPAY4WZX.mjs +40 -0
- package/dist/chunk-S2PVJK2P.mjs +517 -0
- package/dist/chunk-SHOAYNJY.mjs +289 -0
- package/dist/chunk-T5BTAJPW.mjs +725 -0
- package/dist/{chunk-EGCUJ6D6.mjs → chunk-UOL3F6XQ.mjs} +0 -12
- package/dist/chunk-VN7F33SS.mjs +108 -0
- package/dist/chunk-YNVFRCUH.mjs +171 -0
- package/dist/client.d.ts +3 -2
- package/dist/client.mjs +15 -0
- package/dist/comment.d.ts +5 -4
- package/dist/comment.mjs +19 -0
- package/dist/contact.d.ts +5 -4
- package/dist/contact.mjs +15 -0
- package/dist/document-state.mjs +8 -0
- package/dist/editor-types.mjs +0 -0
- package/dist/editorblock-to-hmblock.mjs +11 -0
- package/dist/encryption.mjs +13 -0
- package/dist/errors.mjs +11 -0
- package/dist/file-to-ipfs.mjs +13 -0
- package/dist/grobid.mjs +11 -0
- package/dist/hm-resolver.mjs +10 -0
- package/dist/hmauth.d.ts +169 -0
- package/dist/hmauth.mjs +53 -0
- package/dist/hmblock-to-editorblock.mjs +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +132 -5453
- package/dist/keyfile.mjs +19 -0
- package/dist/markdown-to-blocks.mjs +15 -0
- package/dist/pdf-to-blocks-embedded.mjs +7 -0
- package/dist/pdf-to-blocks.mjs +11 -0
- package/dist/ref.d.ts +5 -4
- package/dist/ref.mjs +13 -0
- package/dist/resource-read.mjs +15 -0
- package/dist/signer.d.ts +42 -0
- package/dist/signer.mjs +9 -0
- package/dist/signing.d.ts +10 -2
- package/dist/signing.mjs +16 -0
- package/dist/tei-to-blocks.mjs +8 -0
- package/dist/unicode.mjs +19 -0
- package/dist/vault-local.mjs +10 -6
- package/dist/vault.d.ts +14 -4
- package/dist/vault.mjs +6 -2
- package/package.json +18 -28
- package/src/index.ts +0 -144
package/dist/keyfile.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
create,
|
|
3
|
+
decrypt,
|
|
4
|
+
load,
|
|
5
|
+
parse,
|
|
6
|
+
principalStringFromSeed,
|
|
7
|
+
stringify
|
|
8
|
+
} from "./chunk-EY6RQVAP.mjs";
|
|
9
|
+
import "./chunk-UOL3F6XQ.mjs";
|
|
10
|
+
import "./chunk-2MD3FXKB.mjs";
|
|
11
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
12
|
+
export {
|
|
13
|
+
create,
|
|
14
|
+
decrypt,
|
|
15
|
+
load,
|
|
16
|
+
parse,
|
|
17
|
+
principalStringFromSeed,
|
|
18
|
+
stringify
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
flattenToOperations,
|
|
3
|
+
markdownBlockNodesToHMBlockNodes,
|
|
4
|
+
parseFrontmatter,
|
|
5
|
+
parseInlineFormatting,
|
|
6
|
+
parseMarkdown
|
|
7
|
+
} from "./chunk-H7L4TI6X.mjs";
|
|
8
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
9
|
+
export {
|
|
10
|
+
flattenToOperations,
|
|
11
|
+
markdownBlockNodesToHMBlockNodes,
|
|
12
|
+
parseFrontmatter,
|
|
13
|
+
parseInlineFormatting,
|
|
14
|
+
parseMarkdown
|
|
15
|
+
};
|
package/dist/ref.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Ref SDK — create signed ref blobs for document version, tombstone, and redirect operations.
|
|
3
3
|
*/
|
|
4
|
-
import type { HMPublishBlobsInput
|
|
4
|
+
import type { HMPublishBlobsInput } from './hm-types';
|
|
5
|
+
import type { AnySigner } from './signer';
|
|
5
6
|
export type CreateVersionRefInput = {
|
|
6
7
|
/** Account UID (base58btc-encoded principal) */
|
|
7
8
|
space: string;
|
|
@@ -55,15 +56,15 @@ export type CreateRedirectRefInput = {
|
|
|
55
56
|
* Points to a specific document version (genesis + heads).
|
|
56
57
|
* Used for fork/branch operations and normal document refs.
|
|
57
58
|
*/
|
|
58
|
-
export declare function createVersionRef(input: CreateVersionRefInput, signer:
|
|
59
|
+
export declare function createVersionRef(input: CreateVersionRefInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
59
60
|
/**
|
|
60
61
|
* Create a signed tombstone ref blob ready for publishing.
|
|
61
62
|
* Marks a document as deleted (empty heads, no redirect).
|
|
62
63
|
*/
|
|
63
|
-
export declare function createTombstoneRef(input: CreateTombstoneRefInput, signer:
|
|
64
|
+
export declare function createTombstoneRef(input: CreateTombstoneRefInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
64
65
|
/**
|
|
65
66
|
* Create a signed redirect ref blob ready for publishing.
|
|
66
67
|
* Redirects this document path to a different account/path.
|
|
67
68
|
* Optionally republishes the target content at this location.
|
|
68
69
|
*/
|
|
69
|
-
export declare function createRedirectRef(input: CreateRedirectRefInput, signer:
|
|
70
|
+
export declare function createRedirectRef(input: CreateRedirectRefInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
package/dist/ref.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createRedirectRef,
|
|
3
|
+
createTombstoneRef,
|
|
4
|
+
createVersionRef
|
|
5
|
+
} from "./chunk-PJ2RFT5A.mjs";
|
|
6
|
+
import "./chunk-LVAHHQIK.mjs";
|
|
7
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
8
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
9
|
+
export {
|
|
10
|
+
createRedirectRef,
|
|
11
|
+
createTombstoneRef,
|
|
12
|
+
createVersionRef
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveIdWithClient
|
|
3
|
+
} from "./chunk-4Q3SAL5R.mjs";
|
|
4
|
+
import "./chunk-YNVFRCUH.mjs";
|
|
5
|
+
import "./chunk-3KESF5XJ.mjs";
|
|
6
|
+
import "./chunk-CBELM7KX.mjs";
|
|
7
|
+
import "./chunk-JT57MV7Y.mjs";
|
|
8
|
+
import "./chunk-PJ2RFT5A.mjs";
|
|
9
|
+
import "./chunk-LVAHHQIK.mjs";
|
|
10
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
+
import "./chunk-SQEUO7FO.mjs";
|
|
12
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
13
|
+
export {
|
|
14
|
+
resolveIdWithClient
|
|
15
|
+
};
|
package/dist/signer.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The signer abstraction shared across this package.
|
|
3
|
+
*
|
|
4
|
+
* Two signer shapes grew up independently here:
|
|
5
|
+
*
|
|
6
|
+
* - {@link HMSigner} (`getPublicKey()`) — used by the blob builders
|
|
7
|
+
* (`createComment`, `createContact`, `createChange`, …) and by `SeedClient`.
|
|
8
|
+
* - {@link PrincipalSigner} (`principal`) — used by the blob primitives in
|
|
9
|
+
* `./blobs` and by the auth/vault code, where the principal is already
|
|
10
|
+
* known synchronously.
|
|
11
|
+
*
|
|
12
|
+
* Neither is wrong, and both produce identical bytes. Rather than break one set
|
|
13
|
+
* of callers, every public entry point now accepts {@link AnySigner} and
|
|
14
|
+
* normalizes with the helpers below, so callers never have to care which shape
|
|
15
|
+
* a given function was originally written against.
|
|
16
|
+
*
|
|
17
|
+
* This module intentionally has no runtime imports, so importing it never pulls
|
|
18
|
+
* crypto or schema code into a bundle.
|
|
19
|
+
*/
|
|
20
|
+
import type { HMSigner } from './hm-types';
|
|
21
|
+
export type { HMSigner };
|
|
22
|
+
/**
|
|
23
|
+
* A signer that exposes its principal synchronously.
|
|
24
|
+
*
|
|
25
|
+
* Structurally identical to the `Signer` interface in `./blobs`; declared
|
|
26
|
+
* separately here so this module stays dependency-free.
|
|
27
|
+
*/
|
|
28
|
+
export type PrincipalSigner = {
|
|
29
|
+
readonly principal: Uint8Array;
|
|
30
|
+
sign(data: Uint8Array): Promise<Uint8Array>;
|
|
31
|
+
};
|
|
32
|
+
/** Either accepted signer shape. */
|
|
33
|
+
export type AnySigner = HMSigner | PrincipalSigner;
|
|
34
|
+
/** Normalize to the `getPublicKey()` shape. Cheap — no key material is touched. */
|
|
35
|
+
export declare function toHMSigner(signer: AnySigner): HMSigner;
|
|
36
|
+
/**
|
|
37
|
+
* Normalize to the synchronous-principal shape.
|
|
38
|
+
*
|
|
39
|
+
* Async because an {@link HMSigner} only reveals its public key through a
|
|
40
|
+
* promise; the result caches it so callers can read `.principal` directly.
|
|
41
|
+
*/
|
|
42
|
+
export declare function toPrincipalSigner(signer: AnySigner): Promise<PrincipalSigner>;
|
package/dist/signer.mjs
ADDED
package/dist/signing.d.ts
CHANGED
|
@@ -2,14 +2,22 @@
|
|
|
2
2
|
* Internal signing utilities shared across blob creation modules.
|
|
3
3
|
* Not exported from the package index.
|
|
4
4
|
*/
|
|
5
|
-
import type { HMPublishBlobsInput
|
|
5
|
+
import type { HMPublishBlobsInput } from './hm-types';
|
|
6
|
+
import { type AnySigner } from './signer';
|
|
6
7
|
export declare const cborCodec: {
|
|
7
8
|
code: 113;
|
|
8
9
|
encode: (input: unknown) => import("multiformats").ByteView<unknown>;
|
|
9
10
|
name: "DAG-CBOR";
|
|
10
11
|
};
|
|
11
12
|
export declare function normalizeBytes(data: Uint8Array): Uint8Array<ArrayBuffer>;
|
|
12
|
-
export declare function signObject(signer:
|
|
13
|
+
export declare function signObject(signer: AnySigner, data: unknown): Promise<Uint8Array>;
|
|
14
|
+
/**
|
|
15
|
+
* Read a signer's principal, accepting either signer shape.
|
|
16
|
+
*
|
|
17
|
+
* Lets the blob builders take an `AnySigner` without each one having to
|
|
18
|
+
* normalize first.
|
|
19
|
+
*/
|
|
20
|
+
export declare function signerPublicKey(signer: AnySigner): Promise<Uint8Array>;
|
|
13
21
|
export declare function toPublishInput(blobData: Uint8Array, extraBlobs?: Array<{
|
|
14
22
|
cid?: string;
|
|
15
23
|
data: Uint8Array;
|
package/dist/signing.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cborCodec,
|
|
3
|
+
normalizeBytes,
|
|
4
|
+
signObject,
|
|
5
|
+
signerPublicKey,
|
|
6
|
+
toPublishInput
|
|
7
|
+
} from "./chunk-LVAHHQIK.mjs";
|
|
8
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
9
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
10
|
+
export {
|
|
11
|
+
cborCodec,
|
|
12
|
+
normalizeBytes,
|
|
13
|
+
signObject,
|
|
14
|
+
signerPublicKey,
|
|
15
|
+
toPublishInput
|
|
16
|
+
};
|
package/dist/unicode.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnnotationSet,
|
|
3
|
+
addSpanToAnnotation,
|
|
4
|
+
pushSpanToAnnotation,
|
|
5
|
+
validateExclusiveAnnotations
|
|
6
|
+
} from "./chunk-N3P7S5YZ.mjs";
|
|
7
|
+
import {
|
|
8
|
+
codePointLength,
|
|
9
|
+
isSurrogate
|
|
10
|
+
} from "./chunk-SQEUO7FO.mjs";
|
|
11
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
12
|
+
export {
|
|
13
|
+
AnnotationSet,
|
|
14
|
+
addSpanToAnnotation,
|
|
15
|
+
codePointLength,
|
|
16
|
+
isSurrogate,
|
|
17
|
+
pushSpanToAnnotation,
|
|
18
|
+
validateExclusiveAnnotations
|
|
19
|
+
};
|
package/dist/vault-local.mjs
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readOSSecret,
|
|
3
|
-
stripGoKeyringPrefix
|
|
4
|
-
} from "./chunk-KNP335NP.mjs";
|
|
5
1
|
import {
|
|
6
2
|
decryptVaultState,
|
|
7
3
|
getAccountName,
|
|
@@ -9,8 +5,16 @@ import {
|
|
|
9
5
|
principalFromPublicKey,
|
|
10
6
|
principalToString,
|
|
11
7
|
unwrapDEK
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import
|
|
8
|
+
} from "./chunk-DBHL3BYB.mjs";
|
|
9
|
+
import {
|
|
10
|
+
readOSSecret,
|
|
11
|
+
stripGoKeyringPrefix
|
|
12
|
+
} from "./chunk-KNP335NP.mjs";
|
|
13
|
+
import "./chunk-UOL3F6XQ.mjs";
|
|
14
|
+
import "./chunk-2MD3FXKB.mjs";
|
|
15
|
+
import "./chunk-IT5LLTMP.mjs";
|
|
16
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
17
|
+
import "./chunk-3TPCJCVO.mjs";
|
|
14
18
|
import "./chunk-7P6ASYW6.mjs";
|
|
15
19
|
|
|
16
20
|
// src/vault-local.ts
|
package/dist/vault.d.ts
CHANGED
|
@@ -16,10 +16,20 @@ import './base64';
|
|
|
16
16
|
export declare const VAULT_VERSION = 2;
|
|
17
17
|
/** A principal: multicodec prefix + raw Ed25519 public key. */
|
|
18
18
|
export type Principal = Uint8Array;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Build a Principal from a raw 32-byte Ed25519 public key.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated Use `principalFromEd25519` from `./blobs`, the single
|
|
23
|
+
* implementation. Kept as an alias so existing vault callers keep working.
|
|
24
|
+
*/
|
|
25
|
+
export declare const principalFromPublicKey: (publicKey: Uint8Array) => Principal;
|
|
26
|
+
/**
|
|
27
|
+
* Encode a Principal to its base58btc multibase string (starts with 'z').
|
|
28
|
+
*
|
|
29
|
+
* @deprecated Use `principalToString` from `./blobs`, the single
|
|
30
|
+
* implementation. Re-exported here so existing vault callers keep working.
|
|
31
|
+
*/
|
|
32
|
+
export declare const principalToString: (principal: Principal) => string;
|
|
23
33
|
/** Derive the account ID (base58btc principal string) from a 32-byte Ed25519 seed. */
|
|
24
34
|
export declare function accountIdFromSeed(seed: Uint8Array): string;
|
|
25
35
|
/**
|
package/dist/vault.mjs
CHANGED
|
@@ -14,8 +14,12 @@ import {
|
|
|
14
14
|
principalToString,
|
|
15
15
|
serialize,
|
|
16
16
|
unwrapDEK
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-DBHL3BYB.mjs";
|
|
18
|
+
import "./chunk-UOL3F6XQ.mjs";
|
|
19
|
+
import "./chunk-2MD3FXKB.mjs";
|
|
20
|
+
import "./chunk-IT5LLTMP.mjs";
|
|
21
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
22
|
+
import "./chunk-3TPCJCVO.mjs";
|
|
19
23
|
import "./chunk-7P6ASYW6.mjs";
|
|
20
24
|
export {
|
|
21
25
|
VAULT_VERSION,
|
package/package.json
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-hypermedia/client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/seed-hypermedia/seed",
|
|
7
7
|
"directory": "frontend/packages/client"
|
|
8
8
|
},
|
|
9
|
-
"main": "
|
|
10
|
-
"types": "
|
|
9
|
+
"main": "./dist/index.mjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.mjs"
|
|
14
15
|
},
|
|
15
16
|
"./*": {
|
|
16
|
-
"
|
|
17
|
+
"types": "./dist/*.d.ts",
|
|
18
|
+
"import": "./dist/*.mjs"
|
|
17
19
|
},
|
|
18
20
|
"./package.json": "./package.json"
|
|
19
21
|
},
|
|
@@ -22,32 +24,13 @@
|
|
|
22
24
|
],
|
|
23
25
|
"sideEffects": false,
|
|
24
26
|
"publishConfig": {
|
|
25
|
-
"access": "public"
|
|
26
|
-
"main": "./dist/index.js",
|
|
27
|
-
"types": "./dist/index.d.ts",
|
|
28
|
-
"exports": {
|
|
29
|
-
".": {
|
|
30
|
-
"import": "./dist/index.js",
|
|
31
|
-
"types": "./dist/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./*": {
|
|
34
|
-
"import": "./dist/*.js",
|
|
35
|
-
"types": "./dist/*.d.ts"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsup && tsc --project tsconfig.build.json",
|
|
41
|
-
"format:check": "prettier --check .",
|
|
42
|
-
"format:write": "prettier --write .",
|
|
43
|
-
"prepublishOnly": "pnpm build",
|
|
44
|
-
"test": "vitest --run",
|
|
45
|
-
"typecheck": "tsc --noEmit --project tsconfig.app.json"
|
|
27
|
+
"access": "public"
|
|
46
28
|
},
|
|
47
29
|
"dependencies": {
|
|
48
30
|
"@ipld/dag-cbor": "^9.2.5",
|
|
49
31
|
"@noble/ciphers": "^2.1.1",
|
|
50
32
|
"@noble/curves": "^2.0.1",
|
|
33
|
+
"@noble/hashes": "^2.0.1",
|
|
51
34
|
"blockstore-core": "^5.0.2",
|
|
52
35
|
"cborg": "^4.5.8",
|
|
53
36
|
"cheerio": "^1.2.0",
|
|
@@ -66,11 +49,18 @@
|
|
|
66
49
|
},
|
|
67
50
|
"peerDependencies": {
|
|
68
51
|
"pdfjs-dist": "^4.2.67",
|
|
69
|
-
"zod": "
|
|
52
|
+
"zod": "^3.20.0"
|
|
70
53
|
},
|
|
71
54
|
"peerDependenciesMeta": {
|
|
72
55
|
"pdfjs-dist": {
|
|
73
56
|
"optional": true
|
|
74
57
|
}
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsup && tsc --project tsconfig.build.json",
|
|
61
|
+
"format:check": "prettier --check .",
|
|
62
|
+
"format:write": "prettier --write .",
|
|
63
|
+
"test": "vitest --run",
|
|
64
|
+
"typecheck": "tsc --noEmit --project tsconfig.app.json"
|
|
75
65
|
}
|
|
76
|
-
}
|
|
66
|
+
}
|
package/src/index.ts
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
export {createCapability, resolveCapability} from './capability'
|
|
2
|
-
export type {CapabilityRole, CreateCapabilityInput} from './capability'
|
|
3
|
-
export {
|
|
4
|
-
createChange,
|
|
5
|
-
createChangeOps,
|
|
6
|
-
createDocumentChange,
|
|
7
|
-
createDocumentChangeFromOps,
|
|
8
|
-
createGenesisChange,
|
|
9
|
-
signDocumentChange,
|
|
10
|
-
signPreparedChange,
|
|
11
|
-
} from './change'
|
|
12
|
-
export type {
|
|
13
|
-
CreateChangeOpsInput,
|
|
14
|
-
CreateDocumentChangeFromOpsInput,
|
|
15
|
-
CreateDocumentChangeInput,
|
|
16
|
-
DocumentOperation,
|
|
17
|
-
SignDocumentChangeInput,
|
|
18
|
-
} from './change'
|
|
19
|
-
export {createSeedClient} from './client'
|
|
20
|
-
export type {PublishDocumentInput, SeedClient, SeedClientOptions} from './client'
|
|
21
|
-
export {commentRecordIdFromBlob, createComment, deleteComment, updateComment} from './comment'
|
|
22
|
-
export type {
|
|
23
|
-
CommentAttachmentBlob,
|
|
24
|
-
CreateCommentInput,
|
|
25
|
-
DeleteCommentInput,
|
|
26
|
-
QuotingTarget,
|
|
27
|
-
UpdateCommentInput,
|
|
28
|
-
} from './comment'
|
|
29
|
-
export {contactRecordIdFromBlob, createContact, deleteContact, updateContact} from './contact'
|
|
30
|
-
export type {CreateContactInput, CreateContactResult, DeleteContactInput, UpdateContactInput} from './contact'
|
|
31
|
-
export {SeedClientError, SeedNetworkError, SeedValidationError} from './errors'
|
|
32
|
-
export {createRedirectRef, createTombstoneRef, createVersionRef} from './ref'
|
|
33
|
-
export type {CreateRedirectRefInput, CreateTombstoneRefInput, CreateVersionRefInput} from './ref'
|
|
34
|
-
export {teiToBlocks} from './tei-to-blocks'
|
|
35
|
-
export type {TeiToBlocksOptions, TeiToBlocksResult, TeiFigure, FigureCoords} from './tei-to-blocks'
|
|
36
|
-
export {pdfToBlocks} from './pdf-to-blocks'
|
|
37
|
-
export type {PdfToBlocksOptions, PdfToBlocksResult} from './pdf-to-blocks'
|
|
38
|
-
export {isGrobidAvailable, processFulltextDocument, DEFAULT_GROBID_URL} from './grobid'
|
|
39
|
-
export type {GrobidOptions} from './grobid'
|
|
40
|
-
export {embeddedPdfToBlocks} from './pdf-to-blocks-embedded'
|
|
41
|
-
export type {EmbeddedPdfResult} from './pdf-to-blocks-embedded'
|
|
42
|
-
|
|
43
|
-
export {trimTrailingEmptyBlocks} from './comment'
|
|
44
|
-
export {
|
|
45
|
-
codePointLength,
|
|
46
|
-
entityQueryPathToHmIdPath,
|
|
47
|
-
getHMQueryString,
|
|
48
|
-
hmIdPathToEntityQueryPath,
|
|
49
|
-
HYPERMEDIA_SCHEME,
|
|
50
|
-
isSurrogate,
|
|
51
|
-
packBaseId,
|
|
52
|
-
packHmId,
|
|
53
|
-
parseCustomURL,
|
|
54
|
-
parseFragment,
|
|
55
|
-
serializeBlockRange,
|
|
56
|
-
unpackHmId,
|
|
57
|
-
} from './hm-types'
|
|
58
|
-
export type {HMRequest, HMSigner, UnpackedHypermediaId} from './hm-types'
|
|
59
|
-
|
|
60
|
-
export {resolveHypermediaUrl, resolveId} from './hm-resolver'
|
|
61
|
-
export type {DomainResolverFn, DomainIdChangedCallback, ResolveOptions, ResolvedUrl} from './hm-resolver'
|
|
62
|
-
export {resolveIdWithClient} from './resource-read'
|
|
63
|
-
export type {ResolveIdWithClientOptions, ResolvedIdWithClient} from './resource-read'
|
|
64
|
-
|
|
65
|
-
export {fileToIpfsBlobs, filesToIpfsBlobs, resolveFileLinksInBlocks, hasFileLinks} from './file-to-ipfs'
|
|
66
|
-
export type {CollectedBlob} from './file-to-ipfs'
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
parseMarkdown,
|
|
70
|
-
flattenToOperations,
|
|
71
|
-
parseInlineFormatting,
|
|
72
|
-
parseFrontmatter,
|
|
73
|
-
markdownBlockNodesToHMBlockNodes,
|
|
74
|
-
} from './markdown-to-blocks'
|
|
75
|
-
export type {BlockNode, SeedBlock, Annotation} from './markdown-to-blocks'
|
|
76
|
-
export {
|
|
77
|
-
blocksToMarkdown,
|
|
78
|
-
emitFrontmatter,
|
|
79
|
-
slugify,
|
|
80
|
-
draftFilename,
|
|
81
|
-
parseDraftFilename,
|
|
82
|
-
documentToResolvedMarkdown,
|
|
83
|
-
commentToResolvedMarkdown,
|
|
84
|
-
contentToResolvedMarkdown,
|
|
85
|
-
} from './blocks-to-markdown'
|
|
86
|
-
export type {ResolvedMarkdownOptions} from './blocks-to-markdown'
|
|
87
|
-
export type {BlocksToMarkdownOptions} from './blocks-to-markdown'
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
createBlocksMap,
|
|
91
|
-
matchBlockIds,
|
|
92
|
-
computeReplaceOps,
|
|
93
|
-
hmBlockNodeToBlockNode,
|
|
94
|
-
rebindTableIdentities,
|
|
95
|
-
toAPIBlockNode,
|
|
96
|
-
} from './block-diff'
|
|
97
|
-
export type {APIBlockNode, APIBlock} from './block-diff'
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
autoLinkChildToParent,
|
|
101
|
-
createAutoLinkOps,
|
|
102
|
-
documentContainsLinkToChild,
|
|
103
|
-
documentHasSelfQuery,
|
|
104
|
-
shouldAutoLinkParent,
|
|
105
|
-
} from './auto-link'
|
|
106
|
-
export type {AutoLinkChildToParentOptions} from './auto-link'
|
|
107
|
-
export {resolveDocumentState} from './document-state'
|
|
108
|
-
export type {DocumentState} from './document-state'
|
|
109
|
-
|
|
110
|
-
export {editorBlockToHMBlock, editorBlocksToHMBlockNodes} from './editorblock-to-hmblock'
|
|
111
|
-
export {hmBlocksToEditorContent, hmBlockToEditorBlock, annotationContains} from './hmblock-to-editorblock'
|
|
112
|
-
export {AnnotationSet, addSpanToAnnotation, pushSpanToAnnotation} from './unicode'
|
|
113
|
-
export type {MutableAnnotation, SpanAnnotation} from './unicode'
|
|
114
|
-
|
|
115
|
-
export * as keyfile from './keyfile'
|
|
116
|
-
export * as keyEncryption from './encryption'
|
|
117
|
-
export type {
|
|
118
|
-
EditorBlock,
|
|
119
|
-
EditorBaseBlock,
|
|
120
|
-
EditorBlockProps,
|
|
121
|
-
EditorBlockType,
|
|
122
|
-
EditorParagraphBlock,
|
|
123
|
-
EditorHeadingBlock,
|
|
124
|
-
EditorCodeBlock,
|
|
125
|
-
EditorImageBlock,
|
|
126
|
-
EditorVideoBlock,
|
|
127
|
-
EditorFileBlock,
|
|
128
|
-
EditorButtonBlock,
|
|
129
|
-
EditorEmbedBlock,
|
|
130
|
-
EditorWebEmbedBlock,
|
|
131
|
-
EditorMathBlock,
|
|
132
|
-
EditorNostrBlock,
|
|
133
|
-
EditorQueryBlock,
|
|
134
|
-
EditorUnknownBlock,
|
|
135
|
-
EditorText,
|
|
136
|
-
EditorLink,
|
|
137
|
-
EditorInlineEmbed,
|
|
138
|
-
EditorInlineStyles,
|
|
139
|
-
EditorAnnotationType,
|
|
140
|
-
HMInlineContent,
|
|
141
|
-
MediaBlockProps,
|
|
142
|
-
DraftMediaRef,
|
|
143
|
-
SearchResult,
|
|
144
|
-
} from './editor-types'
|