@happyvertical/smrt-content 0.60.16 → 0.60.18

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/README.md +8 -0
  2. package/dist/body-format.d.ts.map +1 -1
  3. package/dist/body-format.js +9 -5
  4. package/dist/body-format.js.map +1 -1
  5. package/dist/chunks/{content-query-DBPoyQ2f.js → content-query-Cn8dEhLF.js} +4 -4
  6. package/dist/chunks/{content-query-DBPoyQ2f.js.map → content-query-Cn8dEhLF.js.map} +1 -1
  7. package/dist/chunks/{content-versions-CwkvR0AU.js → content-versions-BYhUbSKu.js} +2 -2
  8. package/dist/chunks/{content-versions-CwkvR0AU.js.map → content-versions-BYhUbSKu.js.map} +1 -1
  9. package/dist/chunks/{contents--XgOmNqW.js → contents-CequuA0H.js} +2 -2
  10. package/dist/chunks/{contents--XgOmNqW.js.map → contents-CequuA0H.js.map} +1 -1
  11. package/dist/index.js +4 -4
  12. package/dist/manifest.json +1 -1
  13. package/dist/server.js +1 -1
  14. package/dist/smrt-knowledge.json +3 -3
  15. package/dist/svelte/components/ArticleCard.svelte +39 -36
  16. package/dist/svelte/components/ArticleList.svelte +10 -5
  17. package/dist/svelte/components/ContentAgentChat.svelte +90 -82
  18. package/dist/svelte/components/ContentBodyEditor.svelte +246 -231
  19. package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
  20. package/dist/svelte/components/ContentBodyRenderer.svelte +76 -82
  21. package/dist/svelte/components/ContentClaimAuditTool.svelte +100 -112
  22. package/dist/svelte/components/ContentContributionForm.svelte +17 -15
  23. package/dist/svelte/components/ContentContributionInbox.svelte +55 -51
  24. package/dist/svelte/components/ContentContributionPortal.svelte +50 -48
  25. package/dist/svelte/components/ContentContributionTypeManager.svelte +33 -31
  26. package/dist/svelte/components/ContentContributorManager.svelte +29 -27
  27. package/dist/svelte/components/ContentCorrectionsTool.svelte +76 -79
  28. package/dist/svelte/components/ContentEditor.svelte +523 -527
  29. package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +19 -16
  30. package/dist/svelte/components/ContentGovernanceManager.svelte +33 -33
  31. package/dist/svelte/components/ContentGovernancePanel.svelte +336 -359
  32. package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +14 -11
  33. package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +21 -19
  34. package/dist/svelte/components/ContentImageBrowser.svelte +72 -68
  35. package/dist/svelte/components/ContentImageChooser.svelte +30 -22
  36. package/dist/svelte/components/ContentList.svelte +504 -488
  37. package/dist/svelte/components/ContentListLifecyclePanel.svelte +19 -21
  38. package/dist/svelte/components/ContentMetadataFields.svelte +15 -12
  39. package/dist/svelte/components/ContentPictureDrawer.svelte +115 -112
  40. package/dist/svelte/components/ContentReferencesPanel.svelte +59 -54
  41. package/dist/svelte/components/ContentReviewStatusTray.svelte +40 -38
  42. package/dist/svelte/components/ContentStatusFields.svelte +12 -9
  43. package/dist/svelte/components/ContentTitleField.svelte +20 -20
  44. package/dist/svelte/components/ContentTransparencyReport.svelte +94 -92
  45. package/dist/svelte/components/ContentTransparencyTool.svelte +84 -87
  46. package/dist/svelte/components/ContentVersionsTool.svelte +60 -63
  47. package/dist/svelte/components/GovernedContentEditor.svelte +36 -35
  48. package/dist/svelte/components/ImageThumbnail.svelte +18 -12
  49. package/dist/svelte/components/Markdown.svelte +58 -55
  50. package/dist/svelte/routes/ContentContributionsRoute.svelte +206 -209
  51. package/dist/svelte/routes/ContentFactsRoute.svelte +239 -252
  52. package/dist/svelte/routes/ContentGovernanceRoute.svelte +77 -78
  53. package/dist/svelte/routes/ContentWorkspaceRoute.svelte +98 -106
  54. package/dist/svelte/routes/PublishedArticleRoute.svelte +81 -77
  55. package/package.json +25 -25
@@ -166,19 +166,19 @@ async function issueCorrection() {
166
166
  }
167
167
  </script>
168
168
 
169
- <div class="governance-tool" data-smrt-component="ContentCorrectionsTool">
169
+ <div class="smrt-content-corrections-tool__root" data-smrt-component="ContentCorrectionsTool">
170
170
  {#if error}
171
- <p class="tool-error" role="alert" aria-live="assertive">{error}</p>
171
+ <p class="smrt-content-corrections-tool__error" data-smrt-part="error" role="alert" aria-live="assertive">{error}</p>
172
172
  {/if}
173
173
 
174
174
  {#if notice}
175
- <p class="tool-notice" role="status" aria-live="polite">{notice}</p>
175
+ <p class="smrt-content-corrections-tool__notice" data-smrt-part="status" role="status" aria-live="polite">{notice}</p>
176
176
  {/if}
177
177
 
178
178
  {#if !savedContentId}
179
- <p class="empty-copy">{t(M['content.corrections_tool.save_to_issue_corrections'])}</p>
179
+ <p class="smrt-content-corrections-tool__empty" data-smrt-part="empty">{t(M['content.corrections_tool.save_to_issue_corrections'])}</p>
180
180
  {:else}
181
- <label class="workflow-field">
181
+ <label class="smrt-content-corrections-tool__field" data-smrt-part="field">
182
182
  Summary
183
183
  <Input
184
184
  type="text"
@@ -187,7 +187,7 @@ async function issueCorrection() {
187
187
  />
188
188
  </label>
189
189
 
190
- <label class="workflow-field">
190
+ <label class="smrt-content-corrections-tool__field" data-smrt-part="field">
191
191
  {t(M['content.corrections_tool.related_fact'])}
192
192
  <Select bind:value={correctionFactId}>
193
193
  <option value="">{t(M['content.corrections_tool.general_correction'])}</option>
@@ -197,7 +197,7 @@ async function issueCorrection() {
197
197
  </Select>
198
198
  </label>
199
199
 
200
- <label class="workflow-field">
200
+ <label class="smrt-content-corrections-tool__field" data-smrt-part="field">
201
201
  {t(M['content.corrections_tool.corrected_fact_text'])}
202
202
  <Textarea
203
203
  rows={4}
@@ -206,7 +206,7 @@ async function issueCorrection() {
206
206
  ></Textarea>
207
207
  </label>
208
208
 
209
- <label class="workflow-field">
209
+ <label class="smrt-content-corrections-tool__field" data-smrt-part="field">
210
210
  {t(M['content.corrections_tool.public_note'])}
211
211
  <Textarea
212
212
  rows={3}
@@ -215,7 +215,7 @@ async function issueCorrection() {
215
215
  ></Textarea>
216
216
  </label>
217
217
 
218
- <label class="checkbox-row">
218
+ <label class="smrt-content-corrections-tool__checkbox-row" data-smrt-part="field">
219
219
  <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
220
220
  <input type="checkbox" bind:checked={publishCorrection} />
221
221
  {t(M['content.corrections_tool.publish_immediately'])}
@@ -230,16 +230,16 @@ async function issueCorrection() {
230
230
  {busy ? 'Issuing correction...' : 'Issue correction'}
231
231
  </Button>
232
232
 
233
- <div class="tool-list">
234
- <div class="section-caption">{t(M['content.corrections_tool.published_history'])}</div>
233
+ <div class="smrt-content-corrections-tool__list" data-smrt-part="list">
234
+ <div class="smrt-content-corrections-tool__caption" data-smrt-part="caption">{t(M['content.corrections_tool.published_history'])}</div>
235
235
  {#if corrections.length === 0}
236
- <p class="empty-copy">{t(M['content.corrections_tool.no_corrections_issued'])}</p>
236
+ <p class="smrt-content-corrections-tool__empty" data-smrt-part="empty">{t(M['content.corrections_tool.no_corrections_issued'])}</p>
237
237
  {:else}
238
238
  {#each corrections as correction (correction.id ?? `${correction.correctionType}-${correction.createdAt}`)}
239
- <div class="tool-card">
240
- <div class="tool-card-header">
239
+ <div class="smrt-content-corrections-tool__card" data-smrt-part="item">
240
+ <div class="smrt-content-corrections-tool__card-header" data-smrt-part="header">
241
241
  <strong>{correction.correctionType}</strong>
242
- <span class={`pill pill--${correction.status}`}>{correction.status}</span>
242
+ <span class={`smrt-content-corrections-tool__pill smrt-content-corrections-tool__pill--${correction.status}`} data-smrt-part="badge">{correction.status}</span>
243
243
  </div>
244
244
  <p>{correction.summary}</p>
245
245
  <span>{formatTimestamp(correction.publishedAt)}</span>
@@ -255,114 +255,111 @@ async function issueCorrection() {
255
255
 
256
256
  <style>
257
257
  @layer smrt.reset, smrt.structure, smrt.theme;
258
- @layer smrt.theme {
258
+ @layer smrt.structure {
259
259
  /* The tool lays itself out by its own width, not the viewport, so it
260
- fits a full page, a side panel, the assistant dock or a phone. */
261
- .governance-tool {
260
+ fits a full page, a side panel, the assistant dock or a phone. */
261
+ .smrt-content-corrections-tool__root {
262
262
  container-type: inline-size;
263
263
  container-name: governance-tool;
264
264
  }
265
-
266
- .governance-tool,
267
- .tool-list,
268
- .workflow-field {
265
+ .smrt-content-corrections-tool__root,
266
+ .smrt-content-corrections-tool__list,
267
+ .smrt-content-corrections-tool__field {
269
268
  display: flex;
270
269
  flex-direction: column;
271
270
  gap: 0.75rem;
272
271
  }
273
-
274
- .workflow-field {
275
- color: var(--smrt-color-on-surface-variant);
276
- font-size: var(--smrt-typography-label-large-size, 0.875rem);
277
- font-weight: var(--smrt-typography-weight-medium, 500);
278
- }
279
-
280
- .tool-card {
272
+ .smrt-content-corrections-tool__card {
281
273
  display: flex;
282
274
  flex-direction: column;
283
275
  gap: 0.4rem;
284
- background: var(--smrt-card-background, var(--smrt-color-surface));
285
- border: var(--smrt-card-border, var(--smrt-hairline));
286
- box-shadow: var(--smrt-card-shadow, none);
287
- border-radius: 0.75rem;
288
276
  padding: 0.85rem;
289
277
  }
290
-
291
- .tool-card-header {
278
+ .smrt-content-corrections-tool__card-header {
292
279
  display: flex;
293
280
  align-items: center;
294
281
  justify-content: space-between;
295
282
  gap: 0.75rem;
296
283
  }
297
-
298
- .tool-card span,
299
- .empty-copy,
300
- .section-caption {
301
- color: var(--smrt-color-on-surface-variant);
302
- font-size: var(--smrt-typography-body-medium-size, 0.85rem);
303
- }
304
-
305
- .tool-card p {
284
+ .smrt-content-corrections-tool__card p {
306
285
  margin: 0;
307
286
  }
308
-
309
- .checkbox-row {
287
+ .smrt-content-corrections-tool__checkbox-row {
310
288
  display: flex;
311
289
  align-items: center;
312
290
  gap: 0.55rem;
313
- color: var(--smrt-color-on-surface);
314
291
  }
292
+ .smrt-content-corrections-tool__pill {
293
+ padding: 0.2rem 0.55rem;
294
+ }
295
+ .smrt-content-corrections-tool__error,
296
+ .smrt-content-corrections-tool__notice {
297
+ margin: 0;
298
+ padding: 0.75rem 0.9rem;
299
+ }
300
+ .smrt-content-corrections-tool__checkbox-row {
301
+ min-height: 2.75rem;
302
+ }
303
+ @container governance-tool (max-width: 30rem) {
304
+ .smrt-content-corrections-tool__root > :global(button) {
305
+ width: 100%;
306
+ }
307
+ .smrt-content-corrections-tool__card-header {
308
+ flex-wrap: wrap;
309
+ }
310
+ }
311
+ }
315
312
 
316
- .pill {
313
+ @layer smrt.theme {
314
+ .smrt-content-corrections-tool__field {
315
+ color: var(--smrt-color-on-surface-variant);
316
+ font-size: var(--smrt-typography-label-large-size, 0.875rem);
317
+ font-weight: var(--smrt-typography-weight-medium, 500);
318
+ }
319
+ .smrt-content-corrections-tool__card {
320
+ background: var(--smrt-card-background, var(--smrt-color-surface));
321
+ border: var(--smrt-card-border, var(--smrt-hairline));
322
+ box-shadow: var(--smrt-card-shadow, none);
323
+ border-radius: 0.75rem;
324
+ }
325
+ .smrt-content-corrections-tool__card span,
326
+ .smrt-content-corrections-tool__empty,
327
+ .smrt-content-corrections-tool__caption {
328
+ color: var(--smrt-color-on-surface-variant);
329
+ font-size: var(--smrt-typography-body-medium-size, 0.85rem);
330
+ }
331
+ .smrt-content-corrections-tool__checkbox-row {
332
+ color: var(--smrt-color-on-surface);
333
+ }
334
+ .smrt-content-corrections-tool__pill {
317
335
  border-radius: var(--smrt-radius-full);
318
- padding: 0.2rem 0.55rem;
319
336
  font-size: var(--smrt-typography-label-medium-size, 0.75rem);
320
337
  font-weight: var(--smrt-typography-weight-bold, 700);
321
338
  text-transform: capitalize;
322
339
  }
323
-
324
- .pill--published,
325
- .pill--neutral {
340
+ .smrt-content-corrections-tool__pill--published,
341
+ .smrt-content-corrections-tool__pill--neutral {
326
342
  background: color-mix(in srgb, var(--smrt-color-primary) 14%, transparent);
327
343
  color: var(--smrt-color-on-primary-container);
328
344
  }
329
-
330
- .pill--draft,
331
- .pill--retracted {
345
+ .smrt-content-corrections-tool__pill--draft,
346
+ .smrt-content-corrections-tool__pill--retracted {
332
347
  background: color-mix(in srgb, var(--smrt-color-error) 14%, transparent);
333
348
  color: var(--smrt-color-on-error-container);
334
349
  }
335
-
336
- .tool-error,
337
- .tool-notice {
338
- margin: 0;
350
+ .smrt-content-corrections-tool__error,
351
+ .smrt-content-corrections-tool__notice {
339
352
  border-radius: 0.6rem;
340
- padding: 0.75rem 0.9rem;
341
353
  font-size: var(--smrt-typography-body-medium-size, 0.9rem);
342
354
  }
343
-
344
- .tool-error {
355
+ .smrt-content-corrections-tool__error {
345
356
  background: color-mix(in srgb, var(--smrt-color-error) 10%, transparent);
346
357
  color: var(--smrt-color-on-error-container);
347
358
  }
348
-
349
- .tool-notice {
359
+ .smrt-content-corrections-tool__notice {
350
360
  background: color-mix(in srgb, var(--smrt-color-primary) 10%, transparent);
351
361
  color: var(--smrt-color-on-primary-container);
352
362
  }
353
-
354
- .checkbox-row {
355
- min-height: 2.75rem;
356
- }
357
-
358
- @container governance-tool (max-width: 30rem) {
359
- .governance-tool > :global(button) {
360
- width: 100%;
361
- }
362
-
363
- .tool-card-header {
364
- flex-wrap: wrap;
365
- }
366
- }
367
363
  }
364
+
368
365
  </style>