@geekity/cms 0.29.0 → 0.30.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 (52) hide show
  1. package/README.md +84 -32
  2. package/dist/admin/store.d.ts +42 -15
  3. package/dist/admin/store.d.ts.map +1 -1
  4. package/dist/admin/store.js +71 -31
  5. package/dist/admin/store.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +10 -3
  8. package/dist/cli.js.map +1 -1
  9. package/dist/comments/index.d.ts +2 -2
  10. package/dist/comments/index.d.ts.map +1 -1
  11. package/dist/comments/index.js +1 -1
  12. package/dist/comments/index.js.map +1 -1
  13. package/dist/comments/records.d.ts +32 -4
  14. package/dist/comments/records.d.ts.map +1 -1
  15. package/dist/comments/records.js +182 -9
  16. package/dist/comments/records.js.map +1 -1
  17. package/dist/comments/routes.js +3 -3
  18. package/dist/comments/routes.js.map +1 -1
  19. package/dist/federation/backfill.js +6 -4
  20. package/dist/federation/backfill.js.map +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -3
  24. package/dist/index.js.map +1 -1
  25. package/dist/plugin.d.ts +28 -2
  26. package/dist/plugin.d.ts.map +1 -1
  27. package/dist/plugin.js +10 -2
  28. package/dist/plugin.js.map +1 -1
  29. package/dist/plugins/site.d.ts.map +1 -1
  30. package/dist/plugins/site.js +7 -1
  31. package/dist/plugins/site.js.map +1 -1
  32. package/dist/web/conversation.d.ts +47 -23
  33. package/dist/web/conversation.d.ts.map +1 -1
  34. package/dist/web/conversation.js +151 -120
  35. package/dist/web/conversation.js.map +1 -1
  36. package/dist/web/feed-source.d.ts +10 -7
  37. package/dist/web/feed-source.d.ts.map +1 -1
  38. package/dist/web/feed-source.js +21 -13
  39. package/dist/web/feed-source.js.map +1 -1
  40. package/dist/web/guids.d.ts +4 -16
  41. package/dist/web/guids.d.ts.map +1 -1
  42. package/dist/web/guids.js +5 -17
  43. package/dist/web/guids.js.map +1 -1
  44. package/dist/web/routes.d.ts.map +1 -1
  45. package/dist/web/routes.js +63 -53
  46. package/dist/web/routes.js.map +1 -1
  47. package/dist/webmention/receive.js +5 -5
  48. package/dist/webmention/receive.js.map +1 -1
  49. package/package.json +1 -1
  50. package/themes/default/README.md +41 -31
  51. package/themes/default/layouts/comment.njk +3 -3
  52. package/themes/default/partials/comment.njk +5 -5
@@ -1,5 +1,5 @@
1
1
  import type { User } from '../admin/accounts.ts';
2
- import type { AdminStore } from '../admin/store.ts';
2
+ import type { AdminStore, PostComment } from '../admin/store.ts';
3
3
  import type { Document } from '../content/document.ts';
4
4
  import type { CitedPageReader } from '../content/citation.ts';
5
5
  import type { RsvpValue } from '../content/rsvp.ts';
@@ -80,11 +80,34 @@ export interface InteractionAuthor {
80
80
  * publishes no feed the site knows of, so both are `null`.
81
81
  */
82
82
  readonly feed: string | null;
83
+ /**
84
+ * The site user they are, by username, else `null`: whoever a reply post
85
+ * is by, or whoever a stored comment names (TASK-337). A theme vouches for
86
+ * the link of a site user and of nobody else.
87
+ */
88
+ readonly username: string | null;
83
89
  }
84
90
  /** One thing somebody did to a post: a reply, a like or a boost. */
85
91
  export interface Interaction {
86
92
  /** What it is called: the note's id, and what a reply to it names. */
87
93
  readonly id: string;
94
+ /**
95
+ * Its key (decision-51): a stored comment's id, else the key of its guid.
96
+ * The one thing in its anchor, `#comment-{key}`, and its replies feed,
97
+ * `/replies/{key}/`.
98
+ */
99
+ readonly key: string;
100
+ /**
101
+ * What the comments feeds call it, and what a reply to it names in
102
+ * `source:inReplyTo`: a stored form comment's page, a stored comment's
103
+ * origin or else its url, and anything else's id.
104
+ */
105
+ readonly guid: string;
106
+ /**
107
+ * Whether it was imported from another system (TASK-336): shown in the
108
+ * thread like any other, and carried by no feed and no reply count.
109
+ */
110
+ readonly migrated: boolean;
88
111
  /** Where it came from. */
89
112
  readonly source: InteractionSource;
90
113
  /** Which of the three it is. */
@@ -120,8 +143,10 @@ export interface Interaction {
120
143
  * visible reply sits under it.
121
144
  */
122
145
  export interface WithheldReply {
123
- /** The hidden comment's id, so its anchor on the post is still there. */
146
+ /** The hidden comment's id. */
124
147
  readonly id: string;
148
+ /** Its key, so its anchor on the post is still there. */
149
+ readonly key: string;
125
150
  readonly withheld: true;
126
151
  /** The replies under it, oldest first, at least one of them visible. */
127
152
  readonly replies: ThreadReply[];
@@ -246,14 +271,14 @@ export interface ConversationReader {
246
271
  */
247
272
  readonly comment: (id: string) => CommentThread | undefined;
248
273
  /**
249
- * The id of the reply on a post that a URL names, or `undefined` (TASK-319):
274
+ * The reply on a post that a URL names, or `undefined` (TASK-319):
250
275
  * a comment by its own page or by the post's `#comment-` anchor, a
251
276
  * webmention by the page it was sent from, a fediverse reply by its url or
252
277
  * its id. Every stored comment counts whatever its status, because what a
253
278
  * reply answers is a fact about it, and whether a reader may see the one it
254
279
  * answers is decided when the thread is read.
255
280
  */
256
- readonly replyNamed: (document: Document, url: string) => string | undefined;
281
+ readonly replyNamed: (document: Document, url: string) => Interaction | undefined;
257
282
  /**
258
283
  * What a URL names on this site, while a reader may see it: a reply (a
259
284
  * comment by its page or its anchor, a webmention by the page it was sent
@@ -263,11 +288,10 @@ export interface ConversationReader {
263
288
  */
264
289
  readonly heldAt: (url: string) => HeldAt | undefined;
265
290
  /**
266
- * What a `/replies/` segment names and its direct replies (TASK-324), or
267
- * `undefined`: a key names a served post or page, or a reply a reader can
268
- * see, by its feed guid; anything else is a native comment's id.
291
+ * What a key names and its direct replies (TASK-324, decision-51), or
292
+ * `undefined`: a served post or page, or a reply a reader can see.
269
293
  */
270
- readonly repliesTo: (segment: string) => RepliesOf | undefined;
294
+ readonly repliesTo: (key: string) => RepliesOf | undefined;
271
295
  /**
272
296
  * The document whose conversation a URL is in (TASK-320): the post a
273
297
  * comment's page or anchor is on, the post a webmention was sent to, the
@@ -341,23 +365,23 @@ export declare function createConversation(context: ConversationContext): Conver
341
365
  */
342
366
  export declare function commentNames(id: string, permalink: string, baseUrl: string): string[];
343
367
  /**
344
- * The `id` a comment is anchored at on the page.
345
- *
346
- * Prefixed rather than bare so a comment can never collide with a heading
347
- * anchor the post's own Markdown produced.
368
+ * The stored comment holding a fediverse note or activity id as its origin:
369
+ * one imported from the site this one replaced, keyed by that id as it would
370
+ * have been had it arrived here (TASK-336). A delivery or a fetch of the same
371
+ * id is that comment again, and the stored one wins, since it is the one the
372
+ * moderator decided on and the thread anchors.
348
373
  */
349
- export declare function commentAnchor(id: string): string;
350
- /** The id of the comment whose page a path is, or `undefined` (TASK-319). */
351
- export declare function commentIdAt(pathname: string): string | undefined;
374
+ export declare function heldComment(admin: AdminStore, id: string): PostComment | undefined;
352
375
  /**
353
- * Everything said in a conversation, at every depth and in no order: the
354
- * replies and the mentions.
376
+ * The `id` a thread entry is anchored at on the page, by its key.
355
377
  *
356
- * The likes and the boosts are left out because they say nothing. A feed item
357
- * is somebody's words, and "@ada liked this" has none to carry — a reader
358
- * polling a comments feed would get an entry with an empty body and no way to
359
- * tell what it was for.
378
+ * Prefixed rather than bare so a comment can never collide with a heading
379
+ * anchor the post's own Markdown produced.
360
380
  */
381
+ export declare function commentAnchor(key: string): string;
382
+ /** The key of the comment whose page a path is, or `undefined` (TASK-319). */
383
+ export declare function commentKeyAt(pathname: string): string | undefined;
384
+ /** What a post's comments feed carries, at every depth and in no order. */
361
385
  export declare function spokenIn(conversation: Conversation): Placed[];
362
386
  /**
363
387
  * Interactions as a comments feed carries them: newest first, at most `limit`,
@@ -377,7 +401,7 @@ export declare function feedComments(said: readonly (Placed & {
377
401
  cited: CitedPageReader;
378
402
  post?: Document | undefined;
379
403
  }): FeedComment[];
380
- /** The entry of a thread with this id that a reader can see, at any depth. */
381
- export declare function visibleReply(replies: readonly ThreadReply[], id: string): Interaction | undefined;
404
+ /** The entry of a thread with this key that a reader can see, at any depth. */
405
+ export declare function visibleReply(replies: readonly ThreadReply[], key: string): Interaction | undefined;
382
406
  export declare function isWithheld(reply: ThreadReply): reply is WithheldReply;
383
407
  //# sourceMappingURL=conversation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/web/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,KAAK,EAAgB,UAAU,EAA8B,MAAM,mBAAmB,CAAC;AAC9F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAaxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAK9C;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC;AAElF;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhF;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9E,sDAAsD;AACtD,MAAM,WAAW,iBAAiB;IAChC,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,2DAA2D;IAC3D,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,sEAAsE;IACtE,QAAQ,CA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