@blogmcp/sdk 0.10.1 → 0.12.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 (59) hide show
  1. package/dist/community/channels.d.ts +3 -2
  2. package/dist/community/client.d.ts +130 -3
  3. package/dist/community/client.js +232 -161
  4. package/dist/community/forum.d.ts +82 -0
  5. package/dist/community/forum.js +96 -0
  6. package/dist/community/index.d.ts +14 -7
  7. package/dist/community/index.js +185 -121
  8. package/dist/community/links.d.ts +38 -0
  9. package/dist/community/links.js +98 -71
  10. package/dist/community/messages.cs.d.ts +164 -3
  11. package/dist/community/messages.cs.js +184 -3
  12. package/dist/community/messages.d.ts +19 -1
  13. package/dist/community/messages.en.d.ts +154 -3
  14. package/dist/community/messages.en.js +167 -3
  15. package/dist/community/messages.js +37 -28
  16. package/dist/community/outcome.d.ts +8 -3
  17. package/dist/community/outcome.js +61 -20
  18. package/dist/community/poll.d.ts +28 -4
  19. package/dist/community/poll.js +70 -47
  20. package/dist/community/realtime/index.d.ts +19 -3
  21. package/dist/community/realtime/index.js +175 -145
  22. package/dist/community/routes.d.ts +36 -1
  23. package/dist/community/routes.js +51 -21
  24. package/dist/community/server/bff.d.ts +25 -2
  25. package/dist/community/server/bff.js +135 -118
  26. package/dist/community/server/host-routes.d.ts +3 -0
  27. package/dist/community/server/host-routes.js +17 -0
  28. package/dist/community/server/index.d.ts +5 -1
  29. package/dist/community/shapes.d.ts +649 -7
  30. package/dist/community/shapes.js +92 -61
  31. package/dist/community/store.d.ts +27 -0
  32. package/dist/community/store.js +84 -80
  33. package/dist/community/topic.d.ts +173 -0
  34. package/dist/community/topic.js +225 -0
  35. package/dist/nuxt/composables/useAsyncKb.d.ts +10 -4
  36. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue.js +2 -2
  37. package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +36 -36
  38. package/package.json +3 -3
  39. package/src/community/channels.ts +3 -2
  40. package/src/community/client.ts +212 -7
  41. package/src/community/forum.ts +209 -0
  42. package/src/community/index.ts +146 -2
  43. package/src/community/links.ts +64 -4
  44. package/src/community/messages.cs.ts +185 -3
  45. package/src/community/messages.en.ts +168 -3
  46. package/src/community/messages.ts +25 -2
  47. package/src/community/outcome.ts +47 -1
  48. package/src/community/poll.ts +79 -17
  49. package/src/community/realtime/index.ts +124 -48
  50. package/src/community/routes.ts +42 -1
  51. package/src/community/server/bff.ts +89 -30
  52. package/src/community/server/host-routes.ts +20 -0
  53. package/src/community/server/index.ts +5 -1
  54. package/src/community/shapes.ts +677 -6
  55. package/src/community/store.ts +25 -7
  56. package/src/community/topic.ts +521 -0
  57. package/src/core/markdown.ts +1 -1
  58. package/src/nuxt/composables/useAsyncKb.ts +11 -4
  59. package/src/nuxt/nuxt-imports.d.ts +2 -2
@@ -11,6 +11,10 @@
11
11
  * module's pages and the digest's unsubscribe token in the fragment;
12
12
  * communityMentionSpans `@handle` in a body as text spans a page links (never HTML).
13
13
  *
14
+ * M3, the forum (m3-contracts.md §5.2): the client's `forum.*`, `me.follows.*` and `moderation.*`; createTopicStore
15
+ * (a topic over the discussion store, with its header) and pollTopicHead; the forum's helpers (follow targets, the
16
+ * search query, surfaces, away mode, moderators); the forum's paths (categoryPath, topicPath, topicMessageLink).
17
+ *
14
18
  * Browser-safe: nothing here takes a key, a session, a cookie or an IP, and nothing imports `node:*`. This entry
15
19
  * never reaches the server entries (`@blogmcp/sdk/community/server`, `@blogmcp/sdk/consultations/server`), the
16
20
  * adapter client or the delegated-identity minter — test/community/entry-boundary.spec.ts walks its import graph.
@@ -41,6 +45,16 @@ export {
41
45
  COMMUNITY_NOTICE_TURNSTILE_ACTION,
42
46
  COMMUNITY_GOOD_FAITH,
43
47
  COMMUNITY_CLIENT_MSG_ID_RE,
48
+ COMMUNITY_TOPIC_TITLE_MAX,
49
+ COMMUNITY_TOPICS_PAGE_SIZE,
50
+ COMMUNITY_TOPICS_PAGE_MAX,
51
+ COMMUNITY_HEAD_TOPICS_MAX,
52
+ COMMUNITY_SEARCH_QUERY_MIN,
53
+ COMMUNITY_SEARCH_QUERY_MAX,
54
+ COMMUNITY_SEARCH_PAGE_SIZE,
55
+ COMMUNITY_SEARCH_PAGES_MAX,
56
+ COMMUNITY_FOLLOWS_MAX,
57
+ COMMUNITY_CATEGORY_SLUG_RE,
44
58
  } from './routes'
45
59
  export type { CommunityOp, CommunityOpName, CommunitySurface } from './routes'
46
60
 
@@ -83,6 +97,9 @@ export {
83
97
  REALTIME_EVENT_KINDS,
84
98
  CASE_CATEGORIES,
85
99
  CATEGORY_WITHOUT_NOTIFIER,
100
+ ESCALATION_CATEGORIES,
101
+ ADVERSE_EVENT_OUTCOMES,
102
+ isKnownAdverseEventOutcome,
86
103
  AGE_BANDS,
87
104
  LEGAL_TEXT_KINDS,
88
105
  isKnownState,
@@ -103,6 +120,28 @@ export {
103
120
  art9ControllersOf,
104
121
  TRUST_LABELS,
105
122
  isKnownTrustLabel,
123
+ // M3: the forum's vocabularies (open where kb-api may add values).
124
+ FORUM_CATEGORY_KINDS,
125
+ FORUM_CATEGORY_MODES,
126
+ TOPIC_CREATIONS,
127
+ TOPIC_STATES,
128
+ TOPIC_ITEM_KINDS,
129
+ FORUM_SORTS,
130
+ FORUM_SPACES,
131
+ SEARCH_RESULT_KINDS,
132
+ FOLLOW_TARGET_KINDS,
133
+ BRAKE_SURFACES,
134
+ MODERATION_ITEM_KINDS,
135
+ MODERATION_CASE_STATUSES,
136
+ MODERATION_SOURCES,
137
+ MODERATION_RESTRICTIONS,
138
+ MODERATION_BASES,
139
+ MODERATOR_TOPIC_STATES,
140
+ PREMOD_OUTCOMES,
141
+ isKnownForumCategoryKind,
142
+ isKnownForumCategoryMode,
143
+ isKnownTopicState,
144
+ isKnownBrakeSurface,
106
145
  } from './shapes'
107
146
  export type {
108
147
  KnownMessageState,
@@ -137,6 +176,8 @@ export type {
137
176
  PushStatusAnswer,
138
177
  MemberCaps,
139
178
  CaseCategory,
179
+ KnownAdverseEventOutcome,
180
+ AdverseEventOutcome,
140
181
  AgeBand,
141
182
  LegalTextKind,
142
183
  AcceptanceState,
@@ -160,6 +201,7 @@ export type {
160
201
  OwnProfile,
161
202
  MyState,
162
203
  NotificationItem,
204
+ NotificationConversationKind,
163
205
  CommunityPage,
164
206
  DecisionSummary,
165
207
  StatementSubject,
@@ -184,6 +226,79 @@ export type {
184
226
  OnboardInput,
185
227
  ProfileUpdateInput,
186
228
  NoticeSubmitInput,
229
+ // M3: the forum's shapes, inputs and answers.
230
+ MessagePostFields,
231
+ ArticleMessagePostInput,
232
+ TopicMessagePostInput,
233
+ SurfaceBrake,
234
+ SurfaceInfo,
235
+ ModuleSurfaces,
236
+ CommunityAway,
237
+ ModeratorInfo,
238
+ KnownForumCategoryKind,
239
+ ForumCategoryKind,
240
+ KnownForumCategoryMode,
241
+ ForumCategoryMode,
242
+ KnownTopicCreation,
243
+ TopicCreation,
244
+ KnownTopicState,
245
+ TopicState,
246
+ KnownTopicItemKind,
247
+ TopicItemKind,
248
+ ForumSort,
249
+ KnownForumSpace,
250
+ ForumSpace,
251
+ KnownSearchResultKind,
252
+ SearchResultKind,
253
+ KnownFollowTargetKind,
254
+ FollowTargetKind,
255
+ KnownBrakeSurface,
256
+ BrakeSurface,
257
+ KnownModerationItemKind,
258
+ ModerationItemKind,
259
+ KnownModerationCaseStatus,
260
+ ModerationCaseStatus,
261
+ KnownModerationSource,
262
+ ModerationSource,
263
+ ModerationRestriction,
264
+ ModerationBasis,
265
+ ModeratorTopicState,
266
+ PremodOutcome,
267
+ ForumCategoryRef,
268
+ ForumCategory,
269
+ ForumTopicItem,
270
+ ForumArticleItem,
271
+ UnknownTopicItem,
272
+ KnownTopicItem,
273
+ TopicItem,
274
+ ForumTopicsPage,
275
+ Topic,
276
+ TopicViewerState,
277
+ TopicThread,
278
+ TopicHead,
279
+ ForumSearchResult,
280
+ ForumSearchPage,
281
+ FollowTarget,
282
+ Follow,
283
+ FollowsPage,
284
+ ModerationItem,
285
+ ModerationQueuePage,
286
+ ModerationCaseItem,
287
+ ModerationCase,
288
+ ModerationDecideAnswer,
289
+ ModerationRemovalAnswer,
290
+ PremodReviewAnswer,
291
+ TopicCreateAnswer,
292
+ ForumTopicsListInput,
293
+ ForumTopicGetInput,
294
+ ForumTopicCreateInput,
295
+ ForumSearchInput,
296
+ FollowSetInput,
297
+ ModerationQueueInput,
298
+ ModerationDecideInput,
299
+ ModerationRemoveInput,
300
+ ModerationEscalateInput,
301
+ PremodReviewInput,
187
302
  } from './shapes'
188
303
 
189
304
  export {
@@ -207,8 +322,29 @@ export type {
207
322
  ViewerNeeds,
208
323
  } from './store'
209
324
 
210
- export { pollDiscussionHead, POLL_INTERVAL_MS, POLL_MAX_BACKOFF_MS } from './poll'
211
- export type { PollDiscussionHeadOptions, DiscussionHeadPoller } from './poll'
325
+ export { pollDiscussionHead, pollTopicHead, POLL_INTERVAL_MS, POLL_MAX_BACKOFF_MS } from './poll'
326
+ export type { PollDiscussionHeadOptions, DiscussionHeadPoller, PollHeadOptions, PollTopicHeadOptions, TopicHeadPoller } from './poll'
327
+
328
+ // M3 (m3-contracts.md §5.2): a forum topic — the discussion store under the topic's header — and its loaders.
329
+ export { createTopicStore, refreshTopic, loadMoreTopic, settleTopicFailure, isTopicOpen, isTopicStore, topicHeaderOf, topicTitleOf } from './topic'
330
+ export type { TopicStore, TopicStoreState, TopicHeader, TopicViewer, TopicTitle } from './topic'
331
+
332
+ // M3: the forum's helpers — follow targets, the search query, a category's rows, surfaces, away mode, moderators.
333
+ export {
334
+ followTargetOf,
335
+ followTargetParts,
336
+ followKeyOf,
337
+ forumTopicTitleOf,
338
+ topicTitleLength,
339
+ forumSearchQueryOf,
340
+ nextSearchPage,
341
+ isKnownTopicItem,
342
+ knownTopicItemsOf,
343
+ surfaceInfoOf,
344
+ communityAwayOf,
345
+ isCategoryModerator,
346
+ brakedSurfaceOf,
347
+ } from './forum'
212
348
 
213
349
  export { COMMUNITY_CHANNELS } from './channels'
214
350
 
@@ -226,10 +362,16 @@ export {
226
362
  communityMessageAnchor,
227
363
  communityMessageSeqFromHash,
228
364
  communityMessageLink,
365
+ // M3 FX (R20): an article's page (the „Články" rows).
366
+ communityArticleLink,
229
367
  COMMUNITY_DIGEST_TOKEN_RE,
230
368
  digestTokenFromHash,
231
369
  readDigestTokenFromHash,
232
370
  forgetDigestToken,
371
+ // M3 (§5.1): the forum's pages.
372
+ categoryPath,
373
+ topicPath,
374
+ topicMessageLink,
233
375
  } from './links'
234
376
 
235
377
  // M2 T8 (m2-contracts.md §3.3): `@handle` in a body as spans — text, and mentions a page links to profilePath.
@@ -245,6 +387,8 @@ export {
245
387
  confirmMessageKey,
246
388
  noteMessageKey,
247
389
  notificationMessageKey,
390
+ notificationItemMessageKey,
248
391
  trustLabelMessageKey,
392
+ adverseOutcomeMessageKey,
249
393
  } from './messages'
250
394
  export type { CommunityMessageKey, CommunityMessageLanguage } from './messages'
@@ -12,11 +12,15 @@
12
12
  * M2 T8: the module's pages (profile, settings, welcome, notifications, discussions) and the digest's unsubscribe
13
13
  * token, which travels in the fragment of the settings page's link (`#u=<kbun_…>`) by the receipt's rule.
14
14
  *
15
+ * M3 (m3-contracts.md §5.1, D-M3-12): the forum's pages — the forum, a category by its slug, a topic by its
16
+ * conversation id (a message by its anchor in the fragment), search. The storefront names its own (`/komunita/forum`,
17
+ * `/komunita/c/:slug`, `/komunita/t/:id`, `/komunita/hledat`) as templates.
18
+ *
15
19
  * Browser-safe; readReceiptFromHash and readDigestTokenFromHash are the functions that touch `window` (on call,
16
20
  * never on import).
17
21
  */
18
22
 
19
- import { COMMUNITY_HANDLE_RE } from './routes'
23
+ import { COMMUNITY_CATEGORY_SLUG_RE, COMMUNITY_HANDLE_RE } from './routes'
20
24
 
21
25
  /**
22
26
  * The managed blog's community pages (router-relative; the blog prepends its own base). The three legal pages —
@@ -49,6 +53,15 @@ export const COMMUNITY_ROUTES = Object.freeze({
49
53
  welcome: '/community/welcome',
50
54
  /** The notification centre (kb-api's fallback for `notifications_link_path`). */
51
55
  notifications: '/community/notifications',
56
+ // M3 F10 (m3-contracts.md §5.1, D-M3-12): the forum's pages — members only, noindex, in no sitemap.
57
+ /** The forum: its categories with their latest topics, and the search box. */
58
+ forum: '/community/forum',
59
+ /** A category's topics; `{slug}` is the category's slug (categoryPath). */
60
+ category: '/community/c/{slug}',
61
+ /** A topic; `{id}` is its conversation id (topicPath), a message's anchor in the fragment (topicMessageLink). */
62
+ topic: '/community/t/{id}',
63
+ /** The forum's search. */
64
+ search: '/community/search',
52
65
  } as const)
53
66
 
54
67
  /** A decision's id (kb-api's UUIDs). */
@@ -90,6 +103,41 @@ export function profilePath(template: string | null | undefined, handle: string)
90
103
  return t.split('{handle}').join(h)
91
104
  }
92
105
 
106
+ /**
107
+ * M3: a forum category's page — `{slug}` of the template (the host's `categoryPath`; absent, the managed blog's) filled
108
+ * with the category's slug. Null for a slug that is no category slug (COMMUNITY_CATEGORY_SLUG_RE), or a template that is
109
+ * no site path, holds a fragment, lacks `{slug}` or holds another brace — no link from arbitrary text.
110
+ */
111
+ export function categoryPath(template: string | null | undefined, slug: string): string | null {
112
+ const t = template === null || template === undefined || template === '' ? COMMUNITY_ROUTES.category : template
113
+ if (!isSitePath(t) || t.includes('#') || !t.includes('{slug}') || /[{}]/.test(t.split('{slug}').join(''))) return null
114
+ if (typeof slug !== 'string' || !COMMUNITY_CATEGORY_SLUG_RE.test(slug)) return null
115
+ return t.split('{slug}').join(slug)
116
+ }
117
+
118
+ /**
119
+ * M3: a forum topic's page — `{id}` of the template (the host's `topicPath`; absent, the managed blog's) filled with the
120
+ * topic's conversation id (lower case). Null for an id that is no conversation id (a UUID), or a template that is no
121
+ * site path, holds a fragment, lacks `{id}` or holds another brace.
122
+ */
123
+ export function topicPath(template: string | null | undefined, conversationId: string): string | null {
124
+ const t = template === null || template === undefined || template === '' ? COMMUNITY_ROUTES.topic : template
125
+ if (!isSitePath(t) || t.includes('#') || !t.includes('{id}') || /[{}]/.test(t.split('{id}').join(''))) return null
126
+ if (typeof conversationId !== 'string' || !UUID_RE.test(conversationId)) return null
127
+ return t.split('{id}').join(conversationId.toLowerCase())
128
+ }
129
+
130
+ /**
131
+ * M3: one message on its topic's page — topicPath with the message's anchor in the fragment (`#bcm-msg-<seq>`, the row
132
+ * id the discussion view gives it and reads back with communityMessageSeqFromHash). Null where topicPath is, and for a
133
+ * seq that is none (an optimistic row's).
134
+ */
135
+ export function topicMessageLink(template: string | null | undefined, conversationId: string, seq: number): string | null {
136
+ const path = topicPath(template, conversationId)
137
+ const anchor = communityMessageAnchor(seq)
138
+ return path === null || anchor === null ? null : `${path}#${anchor}`
139
+ }
140
+
93
141
  /**
94
142
  * M2 T10: the id `<blogmcp-discussion>` gives a message's row — `bcm-msg-<seq>` (the seq is the message's number in
95
143
  * its conversation, the same for every reader) — and the fragment a link to that message carries. The element
@@ -118,13 +166,25 @@ export function communityMessageSeqFromHash(hash: string): number | null {
118
166
  * a fragment, lacks `{slug}` or holds another brace, and for a slug or seq that is none — no link from arbitrary text.
119
167
  */
120
168
  export function communityMessageLink(articlePath: string | null | undefined, articleSlug: string | null | undefined, seq: number | null | undefined): string | null {
169
+ const page = communityArticleLink(articlePath, articleSlug)
170
+ const anchor = communityMessageAnchor(seq as number)
171
+ if (page === null || anchor === null) return null
172
+ return `${page}#${anchor}`
173
+ }
174
+
175
+ /**
176
+ * M3 FX (m3-contracts.md §5.3; the review of wave 1, R20): an article's page — the host's article template
177
+ * (`articlePath`, one `{slug}`) filled with the article's slug (URL-encoded), no fragment: the „Články" category's row
178
+ * of an article discussion (`ForumArticleItem.articleSlug`) links the article its discussion is under. Null as
179
+ * communityMessageLink is (no template, a template that is no site path, holds a fragment, lacks `{slug}` or holds
180
+ * another brace, a slug that is none) — no link from arbitrary text.
181
+ */
182
+ export function communityArticleLink(articlePath: string | null | undefined, articleSlug: string | null | undefined): string | null {
121
183
  const t = articlePath
122
184
  if (!isSitePath(t) || t.includes('#') || !t.includes('{slug}') || /[{}]/.test(t.split('{slug}').join(''))) return null
123
185
  if (typeof articleSlug !== 'string' || articleSlug === '' || articleSlug.length > 512 || articleSlug === '.' || articleSlug === '..') return null
124
186
  if (/[\u0000-\u001f\u007f]/.test(articleSlug)) return null
125
- const anchor = communityMessageAnchor(seq as number)
126
- if (anchor === null) return null
127
- return `${t.split('{slug}').join(encodeURIComponent(articleSlug))}#${anchor}`
187
+ return t.split('{slug}').join(encodeURIComponent(articleSlug))
128
188
  }
129
189
 
130
190
  /** The „Moje komunita" page: the host's path when it is a site path, else the managed blog's. */
@@ -39,11 +39,17 @@ export const COMMUNITY_MESSAGES_CS = {
39
39
  'error.mentionLimit': 'V jednom příspěvku jste zmínili víc lidí, než zatím jde. Některé zmínky odeberte a pošlete znovu.',
40
40
  'error.pushRefused': 'V tomhle prohlížeči upozornění zapnout nejde. Zkuste jiný prohlížeč, nebo sledujte stránku s upozorněními.',
41
41
  'error.realtimeOff': 'Nové příspěvky se tu teď neukazují hned. Diskuse se obnovuje sama každou chvíli.',
42
+ // M3 (m3-contracts.md §1.2): the forum's refusals.
43
+ 'error.membersOnly': 'Fórum je otevřené členům komunity. Po přihlášení a vstupu do komunity ho uvidíte.',
44
+ 'error.topicLocked': 'Téma je uzavřené, psát do něj už nejde. Číst ho můžete dál.',
45
+ 'error.topicCreationClosed': 'V téhle kategorii nové téma založit nejde. Zkuste prosím jinou.',
46
+ 'error.followLimit': 'Sledujete toho už hodně. Něco prosím přestaňte sledovat a zkuste to znovu.',
42
47
  'error.submit': 'Nepovedlo se to. Obnovte prosím stránku a zkuste to znovu.',
43
48
 
44
49
  // ── what the composer waits for (need.<Need>) ──
45
50
  'need.sign_in': 'Do diskuse můžete psát po přihlášení.',
46
- 'need.onboarding': 'Před prvním komentářem si nastavte jméno a potvrďte pravidla diskuse.',
51
+ // O-16 / F-51: the first join confirms the rules and the terms in one go (the terms once, never again).
52
+ 'need.onboarding': 'Před prvním komentářem si nastavte jméno a potvrďte pravidla diskuse a podmínky.',
47
53
  'need.reconsent_rules': 'Pravidla diskuse se změnila. Potvrďte prosím novou verzi.',
48
54
  'need.art9_consent': 'Pro psaní do diskuse potřebujeme váš souhlas se zpracováním.',
49
55
 
@@ -191,6 +197,9 @@ export const COMMUNITY_MESSAGES_CS = {
191
197
  'onboarding.rulesLede': 'Přečtěte si prosím, jak to v diskusi chodí.',
192
198
  'onboarding.rulesLink': 'Celá pravidla',
193
199
  'onboarding.rulesAccept': 'Souhlasím s pravidly diskuse.',
200
+ // O-16 / F-51: the one consent of a first join where the tenant has terms (the rules and the terms, each linked).
201
+ 'onboarding.rulesTermsAccept': 'Souhlasím s pravidly diskuse a s podmínkami.',
202
+ 'onboarding.termsLink': 'Podmínky diskuse',
194
203
  'onboarding.rulesChanged': 'Pravidla diskuse se od vaší poslední návštěvy změnila. Přečtěte si prosím novou verzi a potvrďte ji.',
195
204
  'onboarding.art9Title': 'Souhlas se zpracováním',
196
205
  'onboarding.art9Lede': 'Pro psaní do diskuse potřebujeme váš souhlas podle textu níže.',
@@ -252,7 +261,7 @@ export const COMMUNITY_MESSAGES_CS = {
252
261
  'panel.art9Refused': 'Souhlas se zpracováním jste odmítli.',
253
262
  'panel.art9Withdraw': 'Odvolat souhlas',
254
263
  'panel.art9WithdrawTitle': 'Odvolat souhlas se zpracováním?',
255
- 'panel.art9WithdrawExplain': 'Diskusi můžete dál číst. Jestli do ní půjde psát i bez souhlasu, nebo až ho zase udělíte, záleží na nastavení webu — řekne vám to před dalším komentářem.',
264
+ 'panel.art9WithdrawExplain': 'Diskusi můžete dál číst. Příspěvky ve fóru, které jste napsali se souhlasem, smažeme za 7 dní — když souhlas do té doby znovu udělíte, zůstanou. Jestli půjde psát i bez souhlasu, záleží na nastavení webu; řekne vám to před dalším komentářem.',
256
265
  'panel.art9WithdrawConfirm': 'Ano, odvolat souhlas',
257
266
  'panel.art9WithdrawCancel': 'Ponechat souhlas',
258
267
  'panel.art9Withdrawn': 'Souhlas jste odvolali.',
@@ -325,6 +334,10 @@ export const COMMUNITY_MESSAGES_CS = {
325
334
  'appealStatus.upheld': 'Rozhodnutí platí',
326
335
  'appealStatus.reversed': 'Rozhodnutí zrušeno',
327
336
  'appealStatus.withdrawn': 'Vzato zpět',
337
+ // M3 F6/F9 (m3-contracts.md §3.5, §4.7): what the team recorded on an adverse-event case (adverseOutcomeMessageKey).
338
+ 'adverseOutcome.recorded': 'Posouzeno jako možný nežádoucí účinek a zaznamenáno do evidence.',
339
+ 'adverseOutcome.reported_to_authority': 'Posouzeno jako možný nežádoucí účinek a ohlášeno příslušnému úřadu.',
340
+ 'adverseOutcome.not_adverse': 'Posouzeno: o nežádoucí účinek nejde.',
328
341
  'notification.decision': 'Máte nové rozhodnutí o svém obsahu.',
329
342
  'notification.appeal_resolved': 'Vaše odvolání je vyřízené.',
330
343
  'notification.erasure_scheduled': 'Smazání vašeho profilu v diskusi je naplánované.',
@@ -335,6 +348,11 @@ export const COMMUNITY_MESSAGES_CS = {
335
348
  'notification.mention': 'Někdo vás zmínil v diskusi.',
336
349
  'notification.module_push_reset': 'Upozornění v prohlížeči je potřeba znovu zapnout v nastavení komunity.',
337
350
  'notification.age_limit_changed': 'Komunita je nově jen pro dospělé, váš profil je proto jen ke čtení. Podrobnosti najdete na stránce Moje komunita.',
351
+ // M3 F3 (§4.3): a followed topic or article discussion has a new message; a followed category a new topic.
352
+ 'notification.topic_update': 'V diskusi, kterou sledujete, přibyl nový příspěvek.',
353
+ 'notification.category_topic': 'V kategorii, kterou sledujete, je nové téma.',
354
+ // M3 F3 (the wave 2 integration): `category_topic` of the „Články" category — a discussion new to its listing.
355
+ 'notification.category_topic.article': 'V kategorii, kterou sledujete, je nová diskuse pod článkem.',
338
356
 
339
357
  // ── M2 T8: the notification centre (centre.*) and the header badge (badge.*) ──
340
358
  'centre.title': 'Upozornění',
@@ -385,7 +403,9 @@ export const COMMUNITY_MESSAGES_CS = {
385
403
  'trust.0': 'Nový člen',
386
404
  'trust.1': 'Člen',
387
405
  'trust.2': 'Stálý člen',
388
- 'trust.3': 'Moderátor',
406
+ // M3 (D-M3-7): TL3 is „Důvěryhodný člen"; „Moderátor" names an appointment (role.moderator), shown in its categories only.
407
+ 'trust.3': 'Důvěryhodný člen',
408
+ 'role.moderator': 'Moderátor',
389
409
 
390
410
  // ── M2 T8: the welcome page (welcome.*) ──
391
411
  'welcome.title': 'Vítejte v komunitě',
@@ -401,6 +421,165 @@ export const COMMUNITY_MESSAGES_CS = {
401
421
  // discussion stays writable — only a brake (`state.braked`) stops its writes — so the composer stays enabled.
402
422
  'state.readOnly': 'Rozšířené funkce komunity jsou teď vypnuté. Diskuse pod článkem běží dál.',
403
423
  'state.braked': 'Psaní je teď na chvíli pozastavené. Číst můžete dál.',
424
+ // M3 (§4.8, D-M3-9): the team's away mode, while it lasts (communityAwayOf).
425
+ 'state.away': 'Tým je teď nepřítomen; nová témata počkají na kontrolu.',
426
+ // M3 (§3.2): a topic whose opening post was deleted (its title went with it).
427
+ 'topic.deleted': 'Smazané téma',
428
+ // M3 (§3.1, B06): a title §3.1's placeholder rule keeps from the viewer (held, removed or held back) — never a deletion,
429
+ // wherever a title reads: a topic, a category's row, a search hit, a moderator's package (M3 FX2, S12: a deleted
430
+ // opening post reads `topic.deleted` in each — topicTitleOf over `openingState`).
431
+ 'topic.withheld': 'Název tématu není k dispozici',
432
+ // M3 F9 (§3.3, B16): the follow button — following needs a target the member may read now; unfollowing never fails.
433
+ 'follow.follow': 'Sledovat',
434
+ 'follow.following': 'Sledujete',
435
+ 'follow.followed': 'Sledujete. Novinky uvidíte v upozorněních.',
436
+ 'follow.unfollowed': 'Už nesledujete.',
437
+ 'follow.unavailable': 'Tohle teď sledovat nejde.',
438
+
439
+ // ── M3 F9: the forum's elements (forum.*, forumCategory.*, topic.*, search.*, moderation.*; m3-contracts.md §5.3) ──
440
+ 'forum.title': 'Fórum',
441
+ 'forum.loading': 'Načítám fórum…',
442
+ 'forum.empty': 'Kategorie fóra tu zatím nejsou.',
443
+ 'forum.topicCount_one': '{count} téma',
444
+ 'forum.topicCount_few': '{count} témata',
445
+ 'forum.topicCount_many': '{count} tématu',
446
+ 'forum.topicCount_other': '{count} témat',
447
+ 'forum.discussionCount_one': '{count} diskuse',
448
+ 'forum.discussionCount_few': '{count} diskuse',
449
+ 'forum.discussionCount_many': '{count} diskuse',
450
+ 'forum.discussionCount_other': '{count} diskusí',
451
+ 'forum.lastActivity': 'Naposledy {date}',
452
+ 'forum.latest': 'Nejnovější témata',
453
+ 'forum.allTopics': 'Všechna témata',
454
+ 'forum.allCategories': 'Všechny kategorie',
455
+ 'forum.search': 'Hledat ve fóru',
456
+ 'forum.searchSubmit': 'Hledat',
457
+ 'forum.modePre': 'Nové příspěvky tu před zveřejněním čekají na kontrolu.',
458
+ 'forum.teamTopics': 'Témata tady zakládá tým.',
459
+ 'forum.join': 'Vstoupit do komunity',
460
+ 'forum.back': 'Zpět na fórum',
461
+ // The forum's own brake (§4.9): its writes pause, the article discussions go on.
462
+ 'state.forumBraked': 'Psaní ve fóru je teď na chvíli pozastavené. Číst můžete dál.',
463
+ 'forumCategory.notFound': 'Tuhle kategorii jsme nenašli.',
464
+ 'forumCategory.empty': 'V téhle kategorii zatím nejsou témata.',
465
+ 'forumCategory.articlesEmpty': 'Diskuse pod články tu zatím nejsou.',
466
+ 'forumCategory.sort': 'Řazení',
467
+ 'forumCategory.sortActivity': 'Podle aktivity',
468
+ 'forumCategory.sortNew': 'Nejnovější',
469
+ 'forumCategory.newTopic': 'Nové téma',
470
+ 'topic.loading': 'Načítám téma…',
471
+ 'topic.notFound': 'Tohle téma jsme nenašli. Možná už není k dispozici.',
472
+ 'topic.count_one': '{count} příspěvek',
473
+ 'topic.count_few': '{count} příspěvky',
474
+ 'topic.count_many': '{count} příspěvku',
475
+ 'topic.count_other': '{count} příspěvků',
476
+ 'topic.locked': 'Uzavřené',
477
+ 'topic.archived': 'Archivované',
478
+ 'topic.pinned': 'Připnuté',
479
+ 'topic.titleLabel': 'Název tématu',
480
+ 'topic.titleMissing': 'Napište prosím název tématu.',
481
+ 'topic.titleTooLong': 'Název je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
482
+ 'topic.bodyLabel': 'Úvodní příspěvek',
483
+ 'topic.create': 'Založit téma',
484
+ 'topic.created': 'Téma je založené.',
485
+ 'topic.createdHeld': 'Téma máme, teď čeká na kontrolu.',
486
+ 'topic.open': 'Otevřít téma',
487
+ // A topic's thread reads the discussion's texts with these words of the forum's (the topic element maps the keys).
488
+ 'forumText.composer.label': 'Váš příspěvek',
489
+ 'forumText.composer.editLabel': 'Úprava příspěvku',
490
+ 'forumText.composer.placeholder': 'Napište příspěvek…',
491
+ 'forumText.composer.tooLong': 'Příspěvek je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
492
+ 'forumText.composer.linksNote_one': 'Do příspěvku se vejde nejvýš {count} odkaz.',
493
+ 'forumText.composer.linksNote_few': 'Do příspěvku se vejdou nejvýš {count} odkazy.',
494
+ 'forumText.composer.linksNote_many': 'Do příspěvku se vejde nejvýš {count} odkazu.',
495
+ 'forumText.composer.linksNote_other': 'Do příspěvku se vejde nejvýš {count} odkazů.',
496
+ 'forumText.composer.posted': 'Příspěvek je zveřejněný.',
497
+ 'forumText.composer.held': 'Příspěvek máme, teď čeká na kontrolu.',
498
+ 'forumText.composer.cooldown_one': 'Další příspěvek můžete poslat za {count} sekundu.',
499
+ 'forumText.composer.cooldown_few': 'Další příspěvek můžete poslat za {count} sekundy.',
500
+ 'forumText.composer.cooldown_many': 'Další příspěvek můžete poslat za {count} sekundy.',
501
+ 'forumText.composer.cooldown_other': 'Další příspěvek můžete poslat za {count} sekund.',
502
+ 'forumText.discussion.empty': 'Zatím tu nejsou odpovědi. Odpovězte jako první.',
503
+ 'forumText.discussion.deleteTitle': 'Smazat příspěvek?',
504
+ 'forumText.discussion.deleteExplain': 'Příspěvek zmizí. Pokud na něj už někdo odpověděl, zůstane po něm prázdné místo.',
505
+ 'forumText.discussion.collapsed': 'Příspěvek autora, kterého jste zablokovali.',
506
+ 'forumText.discussion.heldNote': 'Příspěvek čeká na kontrolu a zatím ho vidíte jen vy. Po kontrole se ukáže ostatním, nebo se v Moje komunita dozvíte, proč ne.',
507
+ 'forumText.discussion.hiddenUntilConsentNote': 'Příspěvek zatím vidíte jen vy. Ostatním se ukáže, až udělíte souhlas se zpracováním.',
508
+ 'forumText.discussion.removedNote': 'Tenhle příspěvek jsme odstranili a ostatní ho nevidí.',
509
+ 'forumText.discussion.placeholderHeld': 'Příspěvek čeká na kontrolu.',
510
+ 'forumText.discussion.placeholderRemoved': 'Příspěvek byl odstraněn.',
511
+ 'forumText.discussion.placeholderDeleted': 'Příspěvek byl smazán.',
512
+ 'forumText.report.title': 'Nahlásit příspěvek',
513
+ 'forumText.report.category': 'Co je na příspěvku špatně?',
514
+ 'forumText.error.links': 'V příspěvku je víc odkazů, než se vejde. Některé prosím uberte.',
515
+ 'forumText.error.blocked': 'Příspěvek v téhle podobě zveřejnit nejde. Zkuste ho prosím upravit.',
516
+ 'forumText.error.confirm': 'Než příspěvek odešlete, potvrďte prosím jednu věc.',
517
+ 'forumText.confirm.other': 'Rozumím upozornění a chci příspěvek odeslat.',
518
+ 'forumText.warning.identifier': 'V příspěvku je nejspíš e-mail, telefon nebo číslo účtu. Pokud tam být nemá, příspěvek upravte.',
519
+ 'forumText.warning.other': 'Příspěvek je zveřejněný, ale pravidla diskuse u něj na něco upozorňují. Projděte si ho prosím.',
520
+ 'forumText.need.onboarding': 'Před prvním příspěvkem si nastavte jméno a potvrďte pravidla diskuse a podmínky.',
521
+ 'forumText.need.art9_consent': 'Pro psaní ve fóru potřebujeme váš souhlas se zpracováním.',
522
+ 'search.title': 'Hledání ve fóru',
523
+ 'search.label': 'Co hledáte?',
524
+ 'search.submit': 'Hledat',
525
+ 'search.searching': 'Hledám…',
526
+ 'search.tooShort': 'Napište prosím aspoň {min} znaky.',
527
+ 'search.tooLong': 'Hledaný text je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
528
+ 'search.empty': 'K tomu jsme nenašli výsledky. Zkuste jiná slova.',
529
+ 'search.more': 'Další výsledky',
530
+ 'search.lastPage': 'Další výsledky už nezobrazíme. Zkuste hledání upřesnit.',
531
+ 'search.space': 'Kde hledat',
532
+ 'search.spaceAll': 'Všude',
533
+ 'search.spaceForum': 'Ve fóru',
534
+ 'search.spaceArticle': 'V diskusích pod články',
535
+ 'search.category': 'Kategorie',
536
+ 'search.topic': 'Téma',
537
+ 'search.message': 'Příspěvek',
538
+ 'search.inArticle': 'Diskuse pod článkem',
539
+ 'moderation.title': 'Moderování',
540
+ 'moderation.loading': 'Načítám frontu…',
541
+ 'moderation.empty': 'Fronta je teď prázdná.',
542
+ 'moderation.source.member_report': 'Nahlásil člen',
543
+ 'moderation.source.filter': 'Zachytil filtr',
544
+ 'moderation.source.staff': 'Od týmu',
545
+ 'moderation.premod': 'Čeká na schválení',
546
+ 'moderation.heldBySystem': 'Zatím skryté automaticky',
547
+ 'moderation.deadline': 'Vyřídit do {date}',
548
+ 'moderation.open': 'Posoudit',
549
+ 'moderation.package': 'Obsah k posouzení',
550
+ // M3 F4 (the wave 2 integration): a message of the package other than the case's subject that others cannot see now.
551
+ 'moderation.itemWithheld': 'Tenhle příspěvek teď ostatní nevidí, a tak ho tu neukazujeme.',
552
+ 'moderation.restriction': 'Rozhodnutí',
553
+ 'moderation.factsHint': 'Popište, co jste u obsahu zjistili. Text bude součástí odůvodnění pro autora.',
554
+ 'moderation.ruleRequired': 'Vyberte prosím pravidlo, o které se rozhodnutí opírá.',
555
+ 'moderation.preview': 'Náhled odůvodnění',
556
+ 'moderation.previewTitle': 'Takhle odůvodnění uvidí autor',
557
+ 'moderation.decide': 'Rozhodnout',
558
+ 'moderation.decided': 'Rozhodnuto.',
559
+ 'moderation.escalate': 'Předat týmu',
560
+ 'moderation.escalateLede': 'Jde podle vás o protiprávní obsah? Předejte ho týmu webu, posoudí ho sám.',
561
+ 'moderation.escalateCategory': 'O co jde?',
562
+ 'moderation.escalated': 'Předáno týmu.',
563
+ 'moderation.remove': 'Odstranit jako moderátor',
564
+ 'moderation.removeLede': 'Příspěvek zmizí a autor dostane odůvodnění, proti kterému se může odvolat.',
565
+ 'moderation.removed': 'Odstraněno. Autor dostal odůvodnění.',
566
+ 'moderation.approve': 'Zveřejnit',
567
+ 'moderation.approved': 'Zveřejněno.',
568
+ 'moderation.reject': 'Zamítnout',
569
+ 'moderation.rejected': 'Zamítnuto. Autor dostal odůvodnění.',
570
+ 'moderation.gone': 'Tahle položka už ve frontě není.',
571
+ // M3 FX (R3): a pre-moderated text the author edited while it was being reviewed.
572
+ 'moderation.textChanged': 'Autor text mezitím upravil. Přečtěte si novou verzi a rozhodněte znovu.',
573
+ 'moderation.lock': 'Uzavřít téma',
574
+ 'moderation.unlock': 'Znovu otevřít téma',
575
+ 'moderation.pin': 'Připnout téma',
576
+ 'moderation.unpin': 'Odepnout téma',
577
+ 'moderation.move': 'Přesunout téma',
578
+ 'moderation.moveTo': 'Kam téma přesunout?',
579
+ 'moderation.done': 'Hotovo.',
580
+ 'moderation.openTopic': 'Zobrazit v tématu',
581
+ // A member's profile: the categories they moderate now (PublicProfile.moderates; „Moderátor" is role.moderator).
582
+ 'profile.moderates': 'V kategoriích',
404
583
  'mention.limit': 'V jednom příspěvku jste zmínili víc lidí, než zatím jde.',
405
584
 
406
585
  // ── the notice form ──
@@ -433,6 +612,9 @@ export const COMMUNITY_MESSAGES_CS = {
433
612
  'notice.submittedAt': 'Odesláno {date}',
434
613
  'notice.decidedAt': 'Rozhodnuto {date}',
435
614
  'notice.statement': 'Odůvodnění',
615
+ // M3 F6/F9: a notice closed by an adverse-event outcome alone — the outcome in plain words and the redress line.
616
+ 'notice.outcome': 'Výsledek',
617
+ 'notice.redress': 'Pokud s vyřízením nesouhlasíte, můžete se obrátit na soud nebo využít mimosoudní řešení sporu.',
436
618
  'notice.appealTitle': 'Odvolání',
437
619
  'notice.appealLede': 'Nesouhlasíte s tím, jak jsme hlášení vyřídili? Napište nám proč.',
438
620
  'notice.appealBody': 'Proč s rozhodnutím nesouhlasíte?',