@seed-hypermedia/client 0.0.113 → 0.0.115
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/auto-link.mjs +3 -3
- package/dist/blocks-to-markdown.mjs +3 -2
- package/dist/capability.mjs +2 -2
- package/dist/{chunk-UHAYFVBP.mjs → chunk-3LMBGHBE.mjs} +75 -5
- package/dist/{chunk-3P4J4WDY.mjs → chunk-54K7Z3BG.mjs} +1 -1
- package/dist/{chunk-KMACFX6U.mjs → chunk-BGWUWAFJ.mjs} +1 -1
- package/dist/{chunk-URLWDK7P.mjs → chunk-BZOAANTM.mjs} +1 -1
- package/dist/{chunk-2PRZIGCZ.mjs → chunk-DQMPCZVZ.mjs} +14 -5
- package/dist/chunk-HSDV6WEU.mjs +10 -0
- package/dist/{chunk-5VBVPSXD.mjs → chunk-HZQXXBOH.mjs} +2 -2
- package/dist/chunk-JELXCUZJ.mjs +49 -0
- package/dist/{chunk-3TERIXHU.mjs → chunk-LWCFLZRZ.mjs} +7 -30
- package/dist/{chunk-OXZCRYUS.mjs → chunk-MJFOPYAB.mjs} +1 -1
- package/dist/{chunk-YF2CLLSQ.mjs → chunk-MTJRBDF2.mjs} +3 -3
- package/dist/{chunk-AUKAVTTK.mjs → chunk-MZMGRUTQ.mjs} +1 -1
- package/dist/{chunk-YC433TGZ.mjs → chunk-QIKOXXTT.mjs} +1 -1
- package/dist/{chunk-GLY3UZ3W.mjs → chunk-UQWQXOBZ.mjs} +1 -1
- package/dist/{chunk-LQTTR4ZP.mjs → chunk-V2XTXDGG.mjs} +1 -1
- package/dist/{chunk-NLH5MKTK.mjs → chunk-ZVPHEP3X.mjs} +1 -1
- package/dist/client.mjs +2 -2
- package/dist/comment.mjs +2 -2
- package/dist/document-state.mjs +2 -2
- package/dist/editorblock-to-hmblock.mjs +2 -2
- package/dist/hm-resolver.d.ts +13 -0
- package/dist/hm-resolver.mjs +6 -2
- package/dist/hm-types.d.ts +5 -452
- package/dist/hm-types.mjs +1 -3
- package/dist/hmblock-to-editorblock.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +20 -16
- package/dist/pdf-to-blocks.mjs +3 -3
- package/dist/resource-read.mjs +4 -4
- package/dist/schema-engine.mjs +2 -2
- package/dist/schema-registry.generated.mjs +1 -1
- package/dist/schema-resolve.mjs +4 -4
- package/dist/schema-subtypes.mjs +4 -4
- package/dist/schema-types.generated.d.ts +14 -5
- package/dist/signed-blob.mjs +2 -2
- package/dist/tei-to-blocks.mjs +2 -2
- package/dist/unicode.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-ALW35WVX.mjs +0 -75
- package/dist/chunk-MLR4UDOJ.mjs +0 -10
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MJFOPYAB.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
6
|
import "./chunk-O5MHN2EO.mjs";
|
|
7
7
|
import "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import "./chunk-LVAHHQIK.mjs";
|
|
9
9
|
import "./chunk-DR3HJ6BV.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-LWCFLZRZ.mjs";
|
|
11
11
|
import "./chunk-AHQWDCHV.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
package/dist/comment.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
deleteComment,
|
|
5
5
|
trimTrailingEmptyBlocks,
|
|
6
6
|
updateComment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZVPHEP3X.mjs";
|
|
8
8
|
import "./chunk-JKKS35IS.mjs";
|
|
9
9
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
10
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-LWCFLZRZ.mjs";
|
|
12
12
|
import "./chunk-AHQWDCHV.mjs";
|
|
13
13
|
import "./chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
package/dist/document-state.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
followToDocument,
|
|
5
5
|
resolveDocumentState,
|
|
6
6
|
resolveEditableDocument
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-BGWUWAFJ.mjs";
|
|
8
|
+
import "./chunk-LWCFLZRZ.mjs";
|
|
9
9
|
import "./chunk-AHQWDCHV.mjs";
|
|
10
10
|
import "./chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
editorBlockToHMBlock,
|
|
3
3
|
editorBlocksToHMBlockNodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-54K7Z3BG.mjs";
|
|
5
5
|
import "./chunk-JKKS35IS.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-LWCFLZRZ.mjs";
|
|
7
7
|
import "./chunk-AHQWDCHV.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
package/dist/hm-resolver.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export type ResolvedUrl = {
|
|
|
35
35
|
type: string | null;
|
|
36
36
|
panel: string | null;
|
|
37
37
|
};
|
|
38
|
+
/** Converts a domain-based hm:// reference to its HTTPS resolution URL; canonical IDs return null. */
|
|
39
|
+
export declare function hmDomainUrlToWebUrl(input: string): string | null;
|
|
38
40
|
export declare function resolveHypermediaUrl(url: string, opts?: ResolveOptions): Promise<ResolvedUrl | null>;
|
|
39
41
|
/**
|
|
40
42
|
* Resolve a string that may be an hm:// ID, a gateway URL, or a site web URL
|
|
@@ -42,3 +44,14 @@ export declare function resolveHypermediaUrl(url: string, opts?: ResolveOptions)
|
|
|
42
44
|
* back to an OPTIONS request for web URLs.
|
|
43
45
|
*/
|
|
44
46
|
export declare function resolveId(input: string, opts?: ResolveOptions): Promise<UnpackedHypermediaId>;
|
|
47
|
+
/**
|
|
48
|
+
* The comment a Hypermedia URL addresses, as `<author uid>/<tsid>`, or null when the URL
|
|
49
|
+
* addresses no single comment.
|
|
50
|
+
*
|
|
51
|
+
* A comment appears in a URL as the `/:comments/<uid>/<tsid>` main view or the
|
|
52
|
+
* `?panel=comments/<uid>/<tsid>` side panel, either of which may carry
|
|
53
|
+
* `?reply=<uid>/<tsid>`. A selected reply is the comment the URL is about, so it wins over
|
|
54
|
+
* the thread root. `?panel=comments/<block id>` opens a block's discussion rather than a
|
|
55
|
+
* comment, so only the two-segment comment-id form resolves from the panel parameter.
|
|
56
|
+
*/
|
|
57
|
+
export declare function extractCommentIdFromUrl(url: string): string | null;
|
package/dist/hm-resolver.mjs
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
+
extractCommentIdFromUrl,
|
|
3
|
+
hmDomainUrlToWebUrl,
|
|
2
4
|
resolveHypermediaUrl,
|
|
3
5
|
resolveId
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-3LMBGHBE.mjs";
|
|
7
|
+
import "./chunk-LWCFLZRZ.mjs";
|
|
6
8
|
import "./chunk-AHQWDCHV.mjs";
|
|
7
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
10
|
export {
|
|
11
|
+
extractCommentIdFromUrl,
|
|
12
|
+
hmDomainUrlToWebUrl,
|
|
9
13
|
resolveHypermediaUrl,
|
|
10
14
|
resolveId
|
|
11
15
|
};
|