@happyvertical/smrt-content 0.34.6 → 0.34.8

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 (43) hide show
  1. package/dist/manifest.json +2 -2
  2. package/dist/smrt-knowledge.json +4 -4
  3. package/dist/svelte/components/ContentAgentChat.svelte +17 -16
  4. package/dist/svelte/components/ContentAgentChat.svelte.d.ts.map +1 -1
  5. package/dist/svelte/components/ContentBodyEditor.svelte +4 -3
  6. package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
  7. package/dist/svelte/components/ContentClaimAuditTool.svelte +1 -0
  8. package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts.map +1 -1
  9. package/dist/svelte/components/ContentContributionForm.svelte +73 -68
  10. package/dist/svelte/components/ContentContributionForm.svelte.d.ts.map +1 -1
  11. package/dist/svelte/components/ContentContributionInbox.svelte +9 -7
  12. package/dist/svelte/components/ContentContributionInbox.svelte.d.ts.map +1 -1
  13. package/dist/svelte/components/ContentContributionTypeManager.svelte +117 -91
  14. package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts.map +1 -1
  15. package/dist/svelte/components/ContentContributorManager.svelte +34 -31
  16. package/dist/svelte/components/ContentContributorManager.svelte.d.ts.map +1 -1
  17. package/dist/svelte/components/ContentCorrectionsTool.svelte +11 -22
  18. package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts.map +1 -1
  19. package/dist/svelte/components/ContentEditor.svelte +40 -64
  20. package/dist/svelte/components/ContentEditor.svelte.d.ts.map +1 -1
  21. package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +76 -74
  22. package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts.map +1 -1
  23. package/dist/svelte/components/ContentGovernancePanel.svelte +20 -31
  24. package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts.map +1 -1
  25. package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +42 -44
  26. package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts.map +1 -1
  27. package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +66 -67
  28. package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts.map +1 -1
  29. package/dist/svelte/components/ContentList.svelte +12 -18
  30. package/dist/svelte/components/ContentList.svelte.d.ts.map +1 -1
  31. package/dist/svelte/components/ContentMetadataFields.svelte +8 -23
  32. package/dist/svelte/components/ContentMetadataFields.svelte.d.ts.map +1 -1
  33. package/dist/svelte/components/ContentReferencesPanel.svelte +11 -7
  34. package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts.map +1 -1
  35. package/dist/svelte/components/ContentStatusFields.svelte +8 -19
  36. package/dist/svelte/components/ContentStatusFields.svelte.d.ts.map +1 -1
  37. package/dist/svelte/components/ContentTitleField.svelte +16 -12
  38. package/dist/svelte/components/ContentTitleField.svelte.d.ts.map +1 -1
  39. package/dist/svelte/routes/ContentContributionsRoute.svelte +26 -23
  40. package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts.map +1 -1
  41. package/dist/svelte/routes/ContentFactsRoute.svelte +10 -7
  42. package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts.map +1 -1
  43. package/package.json +15 -15
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import { Form, Input } from '@happyvertical/smrt-ui/forms';
2
3
  import { useI18n } from '@happyvertical/smrt-ui/i18n';
3
4
  import { Button } from '@happyvertical/smrt-ui/ui';
4
5
  import { onMount } from 'svelte';
@@ -402,27 +403,29 @@ async function handleDeleteContributor(data: Record<string, any>) {
402
403
  {t(M['content.contributions.portal_body'])}
403
404
  </p>
404
405
  </div>
405
- <form
406
- class="inline-form"
407
- onsubmit={(event) => {
408
- event.preventDefault();
409
- void refreshPortalOnly();
410
- }}
411
- >
412
- <input
413
- type="email"
414
- bind:value={portalEmail}
415
- placeholder={t(M['content.contributions.portal_email_placeholder'])}
416
- />
417
- <Button
418
- variant="ghost"
419
- type="submit"
420
- class="load-button"
421
- disabled={refreshingPortal}
406
+ <div class="inline-form-shell">
407
+ <Form
408
+ class="inline-form"
409
+ onsubmit={(event) => {
410
+ event.preventDefault();
411
+ void refreshPortalOnly();
412
+ }}
422
413
  >
423
- {refreshingPortal ? 'Loading...' : 'Load'}
424
- </Button>
425
- </form>
414
+ <Input
415
+ type="email"
416
+ bind:value={portalEmail}
417
+ placeholder={t(M['content.contributions.portal_email_placeholder'])}
418
+ />
419
+ <Button
420
+ variant="ghost"
421
+ type="submit"
422
+ class="load-button"
423
+ disabled={refreshingPortal}
424
+ >
425
+ {refreshingPortal ? 'Loading...' : 'Load'}
426
+ </Button>
427
+ </Form>
428
+ </div>
426
429
  </div>
427
430
 
428
431
  <ContentContributionPortal
@@ -707,14 +710,14 @@ async function handleDeleteContributor(data: Record<string, any>) {
707
710
  color: var(--smrt-color-on-surface-variant);
708
711
  }
709
712
 
710
- .inline-form {
713
+ .inline-form-shell :global(.inline-form) {
711
714
  display: flex;
712
715
  gap: 0.5rem;
713
716
  flex-wrap: wrap;
714
717
  align-items: center;
715
718
  }
716
719
 
717
- .inline-form input {
720
+ .inline-form-shell :global(.input) {
718
721
  min-width: min(22rem, 100%);
719
722
  padding: 0.7rem 0.85rem;
720
723
  border-radius: 0.75rem;
@@ -723,7 +726,7 @@ async function handleDeleteContributor(data: Record<string, any>) {
723
726
  color: var(--smrt-color-on-surface);
724
727
  }
725
728
 
726
- .inline-form :global(.load-button) {
729
+ .inline-form-shell :global(.load-button) {
727
730
  border-radius: var(--smrt-radius-full, 9999px);
728
731
  border: 1px solid color-mix(
729
732
  in srgb,
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContributionsRoute.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/routes/ContentContributionsRoute.svelte.ts"],"names":[],"mappings":"AAoBA,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAGrB,UAAU,8BAA8B;IACtC,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAmcD,QAAA,MAAM,yBAAyB,oEAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ContentContributionsRoute.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/routes/ContentContributionsRoute.svelte.ts"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAGrB,UAAU,8BAA8B;IACtC,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAscD,QAAA,MAAM,yBAAyB,oEAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import { Form, Input } from '@happyvertical/smrt-ui/forms';
2
3
  import { useI18n } from '@happyvertical/smrt-ui/i18n';
3
4
  import { Button } from '@happyvertical/smrt-ui/ui';
4
5
  import { onMount } from 'svelte';
@@ -118,10 +119,10 @@ onMount(() => {
118
119
 
119
120
  <main class="container page-main">
120
121
  <section class="filters-panel">
121
- <form class="filters" onsubmit={handleSubmit}>
122
+ <Form class="filters" onsubmit={handleSubmit}>
122
123
  <label class="search-field">
123
124
  <span>Search</span>
124
- <input
125
+ <Input
125
126
  type="search"
126
127
  bind:value={query}
127
128
  placeholder={t(M['content.facts.search_placeholder'])}
@@ -129,6 +130,7 @@ onMount(() => {
129
130
  </label>
130
131
 
131
132
  <label class="toggle">
133
+ <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
132
134
  <input
133
135
  type="checkbox"
134
136
  bind:checked={latestOnly}
@@ -138,6 +140,7 @@ onMount(() => {
138
140
  </label>
139
141
 
140
142
  <label class="toggle">
143
+ <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
141
144
  <input
142
145
  type="checkbox"
143
146
  bind:checked={includeSuperseded}
@@ -149,7 +152,7 @@ onMount(() => {
149
152
  <Button variant="primary" class="refresh-button" type="submit" disabled={refreshing}>
150
153
  {refreshing ? 'Refreshing…' : 'Refresh'}
151
154
  </Button>
152
- </form>
155
+ </Form>
153
156
  </section>
154
157
 
155
158
  {#if error}
@@ -379,7 +382,7 @@ onMount(() => {
379
382
  border-color: color-mix(in srgb, var(--smrt-color-error) 30%, transparent);
380
383
  }
381
384
 
382
- .filters {
385
+ .filters-panel :global(.filters) {
383
386
  display: grid;
384
387
  grid-template-columns: minmax(0, 1.8fr) repeat(2, auto) auto;
385
388
  gap: 0.75rem;
@@ -397,7 +400,7 @@ onMount(() => {
397
400
  color: var(--smrt-color-on-surface-variant);
398
401
  }
399
402
 
400
- .search-field input {
403
+ .search-field :global(.input) {
401
404
  min-height: 2.85rem;
402
405
  border-radius: 0.85rem;
403
406
  border: 1px solid var(--smrt-color-outline-variant);
@@ -417,7 +420,7 @@ onMount(() => {
417
420
  color: var(--smrt-color-on-surface);
418
421
  }
419
422
 
420
- .filters :global(.refresh-button) {
423
+ .filters-panel :global(.refresh-button) {
421
424
  min-height: 2.85rem;
422
425
  border-radius: 0.85rem;
423
426
  border: none;
@@ -606,7 +609,7 @@ onMount(() => {
606
609
  justify-content: flex-start;
607
610
  }
608
611
 
609
- .filters {
612
+ .filters-panel :global(.filters) {
610
613
  grid-template-columns: 1fr;
611
614
  }
612
615
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentFactsRoute.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/routes/ContentFactsRoute.svelte.ts"],"names":[],"mappings":"AAQA,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAGrB,UAAU,sBAAsB;IAC9B,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAkND,QAAA,MAAM,iBAAiB,4DAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"ContentFactsRoute.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/routes/ContentFactsRoute.svelte.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAGrB,UAAU,sBAAsB;IAC9B,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAqND,QAAA,MAAM,iBAAiB,4DAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-content",
3
- "version": "0.34.6",
3
+ "version": "0.34.8",
4
4
  "description": "Content processing module for SMRT framework - handles documents, web content, and media",
5
5
  "type": "module",
6
- "smrtRawPrimitives": "strict-buttons",
6
+ "smrtRawPrimitives": "strict",
7
7
  "main": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "files": [
@@ -50,17 +50,17 @@
50
50
  "@happyvertical/utils": "^0.74.7",
51
51
  "fast-xml-parser": "^5.7.2",
52
52
  "yaml": "^2.8.2",
53
- "@happyvertical/smrt-assets": "0.34.6",
54
- "@happyvertical/smrt-chat": "0.34.6",
55
- "@happyvertical/smrt-core": "0.34.6",
56
- "@happyvertical/smrt-facts": "0.34.6",
57
- "@happyvertical/smrt-images": "0.34.6",
58
- "@happyvertical/smrt-messages": "0.34.6",
59
- "@happyvertical/smrt-prompts": "0.34.6",
60
- "@happyvertical/smrt-profiles": "0.34.6",
61
- "@happyvertical/smrt-tenancy": "0.34.6",
62
- "@happyvertical/smrt-types": "0.34.6",
63
- "@happyvertical/smrt-ui": "0.34.6"
53
+ "@happyvertical/smrt-assets": "0.34.8",
54
+ "@happyvertical/smrt-chat": "0.34.8",
55
+ "@happyvertical/smrt-facts": "0.34.8",
56
+ "@happyvertical/smrt-core": "0.34.8",
57
+ "@happyvertical/smrt-images": "0.34.8",
58
+ "@happyvertical/smrt-messages": "0.34.8",
59
+ "@happyvertical/smrt-prompts": "0.34.8",
60
+ "@happyvertical/smrt-profiles": "0.34.8",
61
+ "@happyvertical/smrt-tenancy": "0.34.8",
62
+ "@happyvertical/smrt-types": "0.34.8",
63
+ "@happyvertical/smrt-ui": "0.34.8"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "svelte": "^5.18.0"
@@ -81,8 +81,8 @@
81
81
  "typescript": "^5.9.3",
82
82
  "vite": "^7.3.1",
83
83
  "vitest": "^4.0.17",
84
- "@happyvertical/smrt-playground": "0.34.6",
85
- "@happyvertical/smrt-vitest": "0.34.6"
84
+ "@happyvertical/smrt-playground": "0.34.8",
85
+ "@happyvertical/smrt-vitest": "0.34.8"
86
86
  },
87
87
  "keywords": [
88
88
  "ai",