@happyvertical/smrt-content 0.60.16 → 0.60.17
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/README.md +8 -0
- package/dist/body-format.d.ts.map +1 -1
- package/dist/body-format.js +9 -5
- package/dist/body-format.js.map +1 -1
- package/dist/chunks/{content-query-DBPoyQ2f.js → content-query-YT83-Llc.js} +4 -4
- package/dist/chunks/{content-query-DBPoyQ2f.js.map → content-query-YT83-Llc.js.map} +1 -1
- package/dist/chunks/{content-versions-CwkvR0AU.js → content-versions-DPdLvWjx.js} +2 -2
- package/dist/chunks/{content-versions-CwkvR0AU.js.map → content-versions-DPdLvWjx.js.map} +1 -1
- package/dist/chunks/{contents--XgOmNqW.js → contents-vO5U0lE9.js} +2 -2
- package/dist/chunks/{contents--XgOmNqW.js.map → contents-vO5U0lE9.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/manifest.json +1 -1
- package/dist/server.js +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/components/ArticleCard.svelte +39 -36
- package/dist/svelte/components/ArticleList.svelte +10 -5
- package/dist/svelte/components/ContentAgentChat.svelte +90 -82
- package/dist/svelte/components/ContentBodyEditor.svelte +246 -231
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentBodyRenderer.svelte +76 -82
- package/dist/svelte/components/ContentClaimAuditTool.svelte +100 -112
- package/dist/svelte/components/ContentContributionForm.svelte +17 -15
- package/dist/svelte/components/ContentContributionInbox.svelte +55 -51
- package/dist/svelte/components/ContentContributionPortal.svelte +50 -48
- package/dist/svelte/components/ContentContributionTypeManager.svelte +33 -31
- package/dist/svelte/components/ContentContributorManager.svelte +29 -27
- package/dist/svelte/components/ContentCorrectionsTool.svelte +76 -79
- package/dist/svelte/components/ContentEditor.svelte +523 -527
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +19 -16
- package/dist/svelte/components/ContentGovernanceManager.svelte +33 -33
- package/dist/svelte/components/ContentGovernancePanel.svelte +336 -359
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +14 -11
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +21 -19
- package/dist/svelte/components/ContentImageBrowser.svelte +72 -68
- package/dist/svelte/components/ContentImageChooser.svelte +30 -22
- package/dist/svelte/components/ContentList.svelte +504 -488
- package/dist/svelte/components/ContentListLifecyclePanel.svelte +19 -21
- package/dist/svelte/components/ContentMetadataFields.svelte +15 -12
- package/dist/svelte/components/ContentPictureDrawer.svelte +115 -112
- package/dist/svelte/components/ContentReferencesPanel.svelte +59 -54
- package/dist/svelte/components/ContentReviewStatusTray.svelte +40 -38
- package/dist/svelte/components/ContentStatusFields.svelte +12 -9
- package/dist/svelte/components/ContentTitleField.svelte +20 -20
- package/dist/svelte/components/ContentTransparencyReport.svelte +94 -92
- package/dist/svelte/components/ContentTransparencyTool.svelte +84 -87
- package/dist/svelte/components/ContentVersionsTool.svelte +60 -63
- package/dist/svelte/components/GovernedContentEditor.svelte +36 -35
- package/dist/svelte/components/ImageThumbnail.svelte +18 -12
- package/dist/svelte/components/Markdown.svelte +58 -55
- package/dist/svelte/routes/ContentContributionsRoute.svelte +206 -209
- package/dist/svelte/routes/ContentFactsRoute.svelte +239 -252
- package/dist/svelte/routes/ContentGovernanceRoute.svelte +77 -78
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte +98 -106
- package/dist/svelte/routes/PublishedArticleRoute.svelte +81 -77
- package/package.json +24 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBodyEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentBodyEditor.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAYnE,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjD,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAIrB,KAAK,cAAc,EAIpB,MAAM,mBAAmB,CAAC;AAI3B,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,iBAAiB,CAAC;IAC9B,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAED,sFAAsF;AACtF,MAAM,WAAW,6BAA6B;IAC5C,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,oBAAoB;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB,6EAA6E;IAC7E,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACpE;AAED,MAAM,WAAW,KAAK;IACpB,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,MAAM,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACrD,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,kEAAkE;IAClE,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,+EAA+E;IAC/E,cAAc,CAAC,EAAE,CACf,QAAQ,EAAE,SAAS,GAAG,IAAI,GAAG,MAAM,KAChC,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IAChC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sEAAsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,CAAC;CACzE;
|
|
1
|
+
{"version":3,"file":"ContentBodyEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentBodyEditor.svelte.ts"],"names":[],"mappings":"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"}
|
|
@@ -33,151 +33,145 @@ const safeHtml = $derived(
|
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<div
|
|
36
|
-
class="content-body-
|
|
36
|
+
class="smrt-content-body-renderer__root {resolvedFormat === 'markdown' ? 'markdown-content' : ''} {className}" data-smrt-component="ContentBodyRenderer"
|
|
37
37
|
>
|
|
38
38
|
{@html safeHtml}
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<style>
|
|
42
42
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
43
|
-
@layer smrt.
|
|
44
|
-
.content-body-
|
|
45
|
-
font-size: var(--smrt-typography-body-large-size, 1rem);
|
|
46
|
-
line-height: var(--smrt-typography-body-large-line-height, 1.5);
|
|
47
|
-
color: var(--smrt-color-on-surface);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.content-body-renderer :global(h1),
|
|
51
|
-
.content-body-renderer :global(h2),
|
|
52
|
-
.content-body-renderer :global(h3) {
|
|
53
|
-
color: var(--smrt-color-on-surface);
|
|
54
|
-
line-height: 1.2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.content-body-renderer :global(h1) {
|
|
58
|
-
font-size: var(--smrt-typography-headline-large-size, 2rem);
|
|
43
|
+
@layer smrt.structure {
|
|
44
|
+
.smrt-content-body-renderer__root :global(h1) {
|
|
59
45
|
margin: var(--smrt-spacing-2xl, 2rem) 0 var(--smrt-spacing-lg, 1rem);
|
|
60
46
|
}
|
|
61
|
-
|
|
62
|
-
.content-body-renderer :global(h2) {
|
|
63
|
-
font-size: var(--smrt-typography-headline-medium-size, 1.75rem);
|
|
47
|
+
.smrt-content-body-renderer__root :global(h2) {
|
|
64
48
|
margin: var(--smrt-spacing-xl, 1.5rem) 0 var(--smrt-spacing-md, 0.75rem);
|
|
65
49
|
}
|
|
66
|
-
|
|
67
|
-
.content-body-renderer :global(h3) {
|
|
68
|
-
font-size: var(--smrt-typography-headline-small-size, 1.5rem);
|
|
50
|
+
.smrt-content-body-renderer__root :global(h3) {
|
|
69
51
|
margin: var(--smrt-spacing-lg, 1rem) 0 var(--smrt-spacing-sm, 0.5rem);
|
|
70
52
|
}
|
|
71
|
-
|
|
72
|
-
.content-body-renderer :global(p) {
|
|
53
|
+
.smrt-content-body-renderer__root :global(p) {
|
|
73
54
|
margin: var(--smrt-spacing-md, 0.75rem) 0;
|
|
74
55
|
}
|
|
75
|
-
|
|
76
|
-
.content-body-renderer :global(p:first-child) {
|
|
56
|
+
.smrt-content-body-renderer__root :global(p:first-child) {
|
|
77
57
|
margin-top: 0;
|
|
78
58
|
}
|
|
79
|
-
|
|
80
|
-
.content-body-renderer :global(p:last-child) {
|
|
59
|
+
.smrt-content-body-renderer__root :global(p:last-child) {
|
|
81
60
|
margin-bottom: 0;
|
|
82
61
|
}
|
|
83
|
-
|
|
84
|
-
.content-body-renderer::after {
|
|
85
|
-
content: '';
|
|
62
|
+
.smrt-content-body-renderer__root::after {
|
|
86
63
|
display: block;
|
|
87
64
|
clear: both;
|
|
65
|
+
content: '';
|
|
88
66
|
}
|
|
89
|
-
|
|
90
|
-
.content-body-
|
|
91
|
-
.content-body-renderer :global(ol) {
|
|
67
|
+
.smrt-content-body-renderer__root :global(ul),
|
|
68
|
+
.smrt-content-body-renderer__root :global(ol) {
|
|
92
69
|
margin: var(--smrt-spacing-md, 0.75rem) 0;
|
|
93
70
|
padding-left: var(--smrt-spacing-xl, 1.5rem);
|
|
94
71
|
}
|
|
95
|
-
|
|
96
|
-
.content-body-renderer :global(a) {
|
|
97
|
-
color: var(--smrt-color-primary);
|
|
98
|
-
text-decoration: underline;
|
|
99
|
-
text-underline-offset: 0.18em;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.content-body-renderer :global(img) {
|
|
72
|
+
.smrt-content-body-renderer__root :global(img) {
|
|
103
73
|
display: block;
|
|
104
|
-
width: min(100%, 48rem);
|
|
74
|
+
width: var(--smrt-content-body-image-width, min(100%, 48rem));
|
|
105
75
|
height: auto;
|
|
106
76
|
margin: var(--smrt-spacing-lg, 1rem) 0;
|
|
107
|
-
border-radius: var(--smrt-radius-medium);
|
|
108
77
|
}
|
|
109
|
-
|
|
110
|
-
.content-body-renderer :global(figure[data-smrt-inline-image]) {
|
|
78
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-inline-image]) {
|
|
111
79
|
display: block;
|
|
112
|
-
width: min(100%, 32rem);
|
|
80
|
+
width: var(--smrt-content-body-image-width, min(100%, 32rem));
|
|
113
81
|
max-width: 100%;
|
|
114
82
|
margin: var(--smrt-spacing-lg, 1rem) 0;
|
|
115
83
|
}
|
|
116
|
-
|
|
117
|
-
.content-body-renderer :global(figure[data-smrt-inline-image] img) {
|
|
84
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-inline-image] img) {
|
|
118
85
|
width: 100%;
|
|
119
86
|
max-width: 100%;
|
|
120
87
|
margin: 0;
|
|
121
88
|
}
|
|
122
|
-
|
|
123
|
-
.content-body-
|
|
124
|
-
.content-body-renderer :global(img[data-smrt-placement='left']) {
|
|
89
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='left']),
|
|
90
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='left']) {
|
|
125
91
|
float: left;
|
|
126
|
-
width: min(45%, 22rem);
|
|
92
|
+
width: var(--smrt-content-body-image-width, min(45%, 22rem));
|
|
127
93
|
margin: 0.35rem var(--smrt-spacing-lg, 1rem) var(--smrt-spacing-sm, 0.5rem) 0;
|
|
128
94
|
}
|
|
129
|
-
|
|
130
|
-
.content-body-
|
|
131
|
-
.content-body-renderer :global(img[data-smrt-placement='right']) {
|
|
95
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='right']),
|
|
96
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='right']) {
|
|
132
97
|
float: right;
|
|
133
|
-
width: min(45%, 22rem);
|
|
98
|
+
width: var(--smrt-content-body-image-width, min(45%, 22rem));
|
|
134
99
|
margin: 0.35rem 0 var(--smrt-spacing-sm, 0.5rem) var(--smrt-spacing-lg, 1rem);
|
|
135
100
|
}
|
|
136
|
-
|
|
137
|
-
.content-body-
|
|
138
|
-
.content-body-
|
|
139
|
-
.content-body-
|
|
140
|
-
.content-body-renderer :global(img[data-smrt-placement='block']) {
|
|
101
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='center']),
|
|
102
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='block']),
|
|
103
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='center']),
|
|
104
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='block']) {
|
|
141
105
|
float: none;
|
|
142
106
|
display: block;
|
|
143
107
|
margin-left: auto;
|
|
144
108
|
margin-right: auto;
|
|
145
109
|
}
|
|
146
|
-
|
|
147
|
-
.content-body-
|
|
148
|
-
.content-body-
|
|
110
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='full']),
|
|
111
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='full']),
|
|
112
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-inline-image][data-smrt-placement='full']) {
|
|
149
113
|
float: none;
|
|
150
|
-
width: 100
|
|
114
|
+
width: 100%;
|
|
151
115
|
max-width: 100%;
|
|
152
116
|
margin-left: 0;
|
|
153
117
|
margin-right: 0;
|
|
154
118
|
clear: both;
|
|
155
119
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
width: min(100%, 32rem);
|
|
120
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-inline-image]) {
|
|
121
|
+
width: var(--smrt-content-body-image-width, min(100%, 32rem));
|
|
159
122
|
max-width: 100%;
|
|
160
123
|
}
|
|
161
|
-
|
|
162
|
-
.content-body-
|
|
163
|
-
|
|
164
|
-
width: min(45%, 22rem);
|
|
124
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-inline-image][data-smrt-placement='left']),
|
|
125
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-inline-image][data-smrt-placement='right']) {
|
|
126
|
+
width: var(--smrt-content-body-image-width, min(45%, 22rem));
|
|
165
127
|
}
|
|
166
|
-
|
|
167
|
-
.content-body-renderer :global(img[data-smrt-thumbnail][data-smrt-placement='right']) {
|
|
128
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-thumbnail][data-smrt-placement='right']) {
|
|
168
129
|
margin-top: 0.25rem;
|
|
169
130
|
}
|
|
170
|
-
|
|
171
131
|
/* Phones: wrapped images stack full width above the text they sat beside. */
|
|
172
132
|
@media (max-width: 36rem) {
|
|
173
|
-
.content-body-
|
|
174
|
-
.content-body-
|
|
175
|
-
.content-body-
|
|
176
|
-
.content-body-
|
|
133
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='left']),
|
|
134
|
+
.smrt-content-body-renderer__root :global(figure[data-smrt-placement='right']),
|
|
135
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='left']),
|
|
136
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-placement='right']),
|
|
137
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-inline-image][data-smrt-placement='left']),
|
|
138
|
+
.smrt-content-body-renderer__root :global(img[data-smrt-inline-image][data-smrt-placement='right']) {
|
|
177
139
|
float: none;
|
|
178
|
-
width: 100
|
|
140
|
+
width: 100%;
|
|
179
141
|
margin: var(--smrt-spacing-md, 0.75rem) 0;
|
|
180
142
|
}
|
|
181
143
|
}
|
|
182
144
|
}
|
|
145
|
+
|
|
146
|
+
@layer smrt.theme {
|
|
147
|
+
.smrt-content-body-renderer__root {
|
|
148
|
+
font-size: var(--smrt-typography-body-large-size, 1rem);
|
|
149
|
+
line-height: var(--smrt-typography-body-large-line-height, 1.5);
|
|
150
|
+
color: var(--smrt-color-on-surface);
|
|
151
|
+
}
|
|
152
|
+
.smrt-content-body-renderer__root :global(h1),
|
|
153
|
+
.smrt-content-body-renderer__root :global(h2),
|
|
154
|
+
.smrt-content-body-renderer__root :global(h3) {
|
|
155
|
+
color: var(--smrt-color-on-surface);
|
|
156
|
+
line-height: 1.2;
|
|
157
|
+
}
|
|
158
|
+
.smrt-content-body-renderer__root :global(h1) {
|
|
159
|
+
font-size: var(--smrt-typography-headline-large-size, 2rem);
|
|
160
|
+
}
|
|
161
|
+
.smrt-content-body-renderer__root :global(h2) {
|
|
162
|
+
font-size: var(--smrt-typography-headline-medium-size, 1.75rem);
|
|
163
|
+
}
|
|
164
|
+
.smrt-content-body-renderer__root :global(h3) {
|
|
165
|
+
font-size: var(--smrt-typography-headline-small-size, 1.5rem);
|
|
166
|
+
}
|
|
167
|
+
.smrt-content-body-renderer__root :global(a) {
|
|
168
|
+
color: var(--smrt-color-primary);
|
|
169
|
+
text-decoration: underline;
|
|
170
|
+
text-underline-offset: 0.18em;
|
|
171
|
+
}
|
|
172
|
+
.smrt-content-body-renderer__root :global(img) {
|
|
173
|
+
border-radius: var(--smrt-radius-medium);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
183
177
|
</style>
|
|
@@ -186,20 +186,20 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
186
186
|
}
|
|
187
187
|
</script>
|
|
188
188
|
|
|
189
|
-
<div class="
|
|
189
|
+
<div class="smrt-content-claim-audit-tool__root" data-smrt-component="ContentClaimAuditTool">
|
|
190
190
|
{#if error}
|
|
191
|
-
<p class="
|
|
191
|
+
<p class="smrt-content-claim-audit-tool__error" data-smrt-part="error" role="alert" aria-live="assertive">{error}</p>
|
|
192
192
|
{/if}
|
|
193
193
|
|
|
194
194
|
{#if notice}
|
|
195
|
-
<p class="
|
|
195
|
+
<p class="smrt-content-claim-audit-tool__notice" data-smrt-part="status" role="status" aria-live="polite">{notice}</p>
|
|
196
196
|
{/if}
|
|
197
197
|
|
|
198
198
|
{#if !savedContentId}
|
|
199
|
-
<p class="
|
|
199
|
+
<p class="smrt-content-claim-audit-tool__empty" data-smrt-part="empty">{t(M['content.claim_audit_tool.save_to_audit_claims'])}</p>
|
|
200
200
|
{:else}
|
|
201
|
-
<div class="claim-audit-
|
|
202
|
-
<div class="claim-audit-
|
|
201
|
+
<div class="smrt-content-claim-audit-tool__toolbar" data-smrt-part="actions">
|
|
202
|
+
<div class="smrt-content-claim-audit-tool__counts" data-smrt-part="meta">
|
|
203
203
|
<span><strong>{factAudit?.counts.total ?? 0}</strong> {t(M['content.claim_audit_tool.article_claims'])}</span>
|
|
204
204
|
<span><strong>{factAudit?.counts.supported ?? 0}</strong> supported</span>
|
|
205
205
|
<span><strong>{factAudit?.counts.unsupported ?? 0}</strong> unsupported</span>
|
|
@@ -223,12 +223,12 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
223
223
|
{busy ? 'Working...' : 'Repair audit'}
|
|
224
224
|
</Button>
|
|
225
225
|
</div>
|
|
226
|
-
<p class="
|
|
226
|
+
<p class="smrt-content-claim-audit-tool__empty" data-smrt-part="empty">
|
|
227
227
|
{t(M['content.claim_audit_tool.article_claims_help'])}
|
|
228
228
|
</p>
|
|
229
229
|
|
|
230
230
|
{#if actionableWarnings.length}
|
|
231
|
-
<div class="
|
|
231
|
+
<div class="smrt-content-claim-audit-tool__warning" data-smrt-part="description">
|
|
232
232
|
{#each actionableWarnings as warning}
|
|
233
233
|
<p>{warning}</p>
|
|
234
234
|
{/each}
|
|
@@ -236,7 +236,7 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
236
236
|
{/if}
|
|
237
237
|
|
|
238
238
|
{#if !factAudit || factAudit.counts.total === 0}
|
|
239
|
-
<p class="
|
|
239
|
+
<p class="smrt-content-claim-audit-tool__empty" data-smrt-part="empty">{t(M['content.claim_audit_tool.no_claim_audit_generated'])}</p>
|
|
240
240
|
{:else}
|
|
241
241
|
{#each [
|
|
242
242
|
['contradicted', 'Contradicted'],
|
|
@@ -247,12 +247,12 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
247
247
|
{@const groupKey = group[0] as keyof typeof factAuditGroups}
|
|
248
248
|
{@const groupClaims = factAuditGroups[groupKey]}
|
|
249
249
|
{#if groupClaims.length > 0}
|
|
250
|
-
<div class="
|
|
251
|
-
<div class="
|
|
250
|
+
<div class="smrt-content-claim-audit-tool__list" data-smrt-part="list">
|
|
251
|
+
<div class="smrt-content-claim-audit-tool__caption" data-smrt-part="caption">{t(M['content.claim_audit_tool.group_article_claims'], { group: group[1] })}</div>
|
|
252
252
|
{#each groupClaims as claim (claim.id ?? claim.claimQuote ?? claim.fact.textRefined)}
|
|
253
|
-
<details class="
|
|
253
|
+
<details class="smrt-content-claim-audit-tool__card" data-smrt-part="item">
|
|
254
254
|
<summary>
|
|
255
|
-
<label class="claim-audit-
|
|
255
|
+
<label class="smrt-content-claim-audit-tool__select" data-smrt-part="label">
|
|
256
256
|
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
257
257
|
<input
|
|
258
258
|
type="checkbox"
|
|
@@ -261,13 +261,13 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
261
261
|
onchange={() => toggleClaimSelection(claim)}
|
|
262
262
|
/>
|
|
263
263
|
</label>
|
|
264
|
-
<span class={`
|
|
264
|
+
<span class={`smrt-content-claim-audit-tool__pill smrt-content-claim-audit-tool__pill--${claim.supportStatus === 'supported' ? 'passed' : claim.supportStatus === 'contradicted' ? 'failed' : 'flagged'}`} data-smrt-part="badge">
|
|
265
265
|
{claim.supportStatus.replace('_', ' ')}
|
|
266
266
|
</span>
|
|
267
267
|
<strong>{claim.fact.textRefined || claim.claimQuote || claim.id}</strong>
|
|
268
268
|
</summary>
|
|
269
|
-
<div class="
|
|
270
|
-
<div class="claim-audit-actions">
|
|
269
|
+
<div class="smrt-content-claim-audit-tool__card-body" data-smrt-part="body">
|
|
270
|
+
<div class="smrt-content-claim-audit-tool__actions" data-smrt-part="actions">
|
|
271
271
|
<Button
|
|
272
272
|
variant="secondary"
|
|
273
273
|
type="button"
|
|
@@ -287,10 +287,10 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
287
287
|
<p><strong>{t(M['content.claim_audit_tool.support_assessment_label'])}</strong> {claim.rationale}</p>
|
|
288
288
|
{/if}
|
|
289
289
|
{#if claim.matchedFacts?.length}
|
|
290
|
-
<div class="
|
|
291
|
-
<div class="
|
|
290
|
+
<div class="smrt-content-claim-audit-tool__list" data-smrt-part="list">
|
|
291
|
+
<div class="smrt-content-claim-audit-tool__caption" data-smrt-part="caption">{t(M['content.claim_audit_tool.based_on_source_evidence'])}</div>
|
|
292
292
|
{#each claim.matchedFacts as matched (matched.fact.id ?? matched.fact.textRefined)}
|
|
293
|
-
<div class="
|
|
293
|
+
<div class="smrt-content-claim-audit-tool__card smrt-content-claim-audit-tool__card--nested" data-smrt-part="item">
|
|
294
294
|
<strong>{t(M['content.claim_audit_tool.source_claim_label'])} {matched.fact.textRefined || matched.fact.textRaw || matched.fact.id}</strong>
|
|
295
295
|
{#each matched.evidence ?? [] as evidence (evidence.id ?? evidence.evidenceKey)}
|
|
296
296
|
<span>
|
|
@@ -321,162 +321,150 @@ async function recheckFactClaims(claimIds: string[]) {
|
|
|
321
321
|
|
|
322
322
|
<style>
|
|
323
323
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
324
|
-
@layer smrt.
|
|
324
|
+
@layer smrt.structure {
|
|
325
325
|
/* The tool lays itself out by its own width, not the viewport, so it
|
|
326
|
-
|
|
327
|
-
.
|
|
326
|
+
fits a full page, a side panel, the assistant dock or a phone. */
|
|
327
|
+
.smrt-content-claim-audit-tool__root {
|
|
328
328
|
container-type: inline-size;
|
|
329
329
|
container-name: governance-tool;
|
|
330
330
|
}
|
|
331
|
-
|
|
332
|
-
.
|
|
333
|
-
.
|
|
334
|
-
.tool-card-body {
|
|
331
|
+
.smrt-content-claim-audit-tool__root,
|
|
332
|
+
.smrt-content-claim-audit-tool__list,
|
|
333
|
+
.smrt-content-claim-audit-tool__card-body {
|
|
335
334
|
display: flex;
|
|
336
335
|
flex-direction: column;
|
|
337
336
|
gap: 0.75rem;
|
|
338
337
|
}
|
|
339
|
-
|
|
340
|
-
.claim-audit-
|
|
341
|
-
.claim-audit-counts {
|
|
338
|
+
.smrt-content-claim-audit-tool__toolbar,
|
|
339
|
+
.smrt-content-claim-audit-tool__counts {
|
|
342
340
|
display: flex;
|
|
343
341
|
gap: 0.75rem;
|
|
344
342
|
align-items: center;
|
|
345
343
|
flex-wrap: wrap;
|
|
346
344
|
}
|
|
347
|
-
|
|
348
|
-
.claim-audit-toolbar {
|
|
345
|
+
.smrt-content-claim-audit-tool__toolbar {
|
|
349
346
|
justify-content: space-between;
|
|
350
347
|
}
|
|
351
|
-
|
|
352
|
-
.claim-audit-counts,
|
|
353
|
-
.empty-copy,
|
|
354
|
-
.section-caption,
|
|
355
|
-
.tool-card span {
|
|
356
|
-
color: var(--smrt-color-on-surface-variant);
|
|
357
|
-
font-size: var(--smrt-typography-body-medium-size, 0.85rem);
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.tool-card {
|
|
361
|
-
border: var(--smrt-card-border, var(--smrt-hairline));
|
|
362
|
-
box-shadow: var(--smrt-card-shadow, none);
|
|
363
|
-
border-radius: 0.65rem;
|
|
364
|
-
background: var(--smrt-card-background, var(--smrt-color-surface));
|
|
348
|
+
.smrt-content-claim-audit-tool__card {
|
|
365
349
|
padding: 0.75rem;
|
|
366
350
|
}
|
|
367
|
-
|
|
368
|
-
.tool-card.nested {
|
|
351
|
+
.smrt-content-claim-audit-tool__card.smrt-content-claim-audit-tool__card--nested {
|
|
369
352
|
display: flex;
|
|
370
353
|
flex-direction: column;
|
|
371
354
|
gap: 0.25rem;
|
|
372
355
|
}
|
|
373
|
-
|
|
374
|
-
.tool-card summary {
|
|
356
|
+
.smrt-content-claim-audit-tool__card summary {
|
|
375
357
|
cursor: pointer;
|
|
376
358
|
display: flex;
|
|
377
359
|
align-items: center;
|
|
378
360
|
gap: 0.6rem;
|
|
379
361
|
}
|
|
380
|
-
|
|
381
|
-
.
|
|
382
|
-
.tool-warning p {
|
|
362
|
+
.smrt-content-claim-audit-tool__card p,
|
|
363
|
+
.smrt-content-claim-audit-tool__warning p {
|
|
383
364
|
margin: 0;
|
|
384
365
|
}
|
|
385
|
-
|
|
386
|
-
.tool-card-body {
|
|
366
|
+
.smrt-content-claim-audit-tool__card-body {
|
|
387
367
|
padding-top: 0.75rem;
|
|
388
368
|
}
|
|
389
|
-
|
|
390
|
-
.claim-audit-actions {
|
|
369
|
+
.smrt-content-claim-audit-tool__actions {
|
|
391
370
|
display: flex;
|
|
392
371
|
justify-content: flex-end;
|
|
393
372
|
}
|
|
394
|
-
|
|
395
|
-
.claim-audit-select {
|
|
373
|
+
.smrt-content-claim-audit-tool__select {
|
|
396
374
|
display: inline-flex;
|
|
397
|
-
line-height: 1;
|
|
398
375
|
}
|
|
376
|
+
.smrt-content-claim-audit-tool__pill {
|
|
377
|
+
padding: 0.2rem 0.55rem;
|
|
378
|
+
}
|
|
379
|
+
.smrt-content-claim-audit-tool__error,
|
|
380
|
+
.smrt-content-claim-audit-tool__notice,
|
|
381
|
+
.smrt-content-claim-audit-tool__warning {
|
|
382
|
+
margin: 0;
|
|
383
|
+
padding: 0.75rem 0.9rem;
|
|
384
|
+
}
|
|
385
|
+
.smrt-content-claim-audit-tool__select {
|
|
386
|
+
min-width: 2.75rem;
|
|
387
|
+
min-height: 2.75rem;
|
|
388
|
+
align-items: center;
|
|
389
|
+
justify-content: center;
|
|
390
|
+
}
|
|
391
|
+
.smrt-content-claim-audit-tool__card summary {
|
|
392
|
+
min-height: 2.75rem;
|
|
393
|
+
}
|
|
394
|
+
@container governance-tool (max-width: 30rem) {
|
|
395
|
+
.smrt-content-claim-audit-tool__toolbar {
|
|
396
|
+
flex-direction: column;
|
|
397
|
+
align-items: stretch;
|
|
398
|
+
}
|
|
399
|
+
.smrt-content-claim-audit-tool__toolbar :global(button),
|
|
400
|
+
.smrt-content-claim-audit-tool__actions :global(button) {
|
|
401
|
+
width: 100%;
|
|
402
|
+
}
|
|
403
|
+
.smrt-content-claim-audit-tool__actions {
|
|
404
|
+
justify-content: stretch;
|
|
405
|
+
}
|
|
406
|
+
.smrt-content-claim-audit-tool__card summary {
|
|
407
|
+
flex-wrap: wrap;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
399
411
|
|
|
400
|
-
|
|
412
|
+
@layer smrt.theme {
|
|
413
|
+
.smrt-content-claim-audit-tool__counts,
|
|
414
|
+
.smrt-content-claim-audit-tool__empty,
|
|
415
|
+
.smrt-content-claim-audit-tool__caption,
|
|
416
|
+
.smrt-content-claim-audit-tool__card span {
|
|
417
|
+
color: var(--smrt-color-on-surface-variant);
|
|
418
|
+
font-size: var(--smrt-typography-body-medium-size, 0.85rem);
|
|
419
|
+
}
|
|
420
|
+
.smrt-content-claim-audit-tool__card {
|
|
421
|
+
border: var(--smrt-card-border, var(--smrt-hairline));
|
|
422
|
+
box-shadow: var(--smrt-card-shadow, none);
|
|
423
|
+
border-radius: 0.65rem;
|
|
424
|
+
background: var(--smrt-card-background, var(--smrt-color-surface));
|
|
425
|
+
}
|
|
426
|
+
.smrt-content-claim-audit-tool__select {
|
|
427
|
+
line-height: 1;
|
|
428
|
+
}
|
|
429
|
+
.smrt-content-claim-audit-tool__pill {
|
|
401
430
|
border-radius: var(--smrt-radius-full);
|
|
402
|
-
padding: 0.2rem 0.55rem;
|
|
403
431
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
404
432
|
font-weight: var(--smrt-typography-weight-bold, 700);
|
|
405
433
|
text-transform: capitalize;
|
|
406
434
|
}
|
|
407
|
-
|
|
408
|
-
.pill--passed {
|
|
435
|
+
.smrt-content-claim-audit-tool__pill--passed {
|
|
409
436
|
background: color-mix(in srgb, var(--smrt-color-success) 14%, transparent);
|
|
410
437
|
color: var(--smrt-color-on-success-container);
|
|
411
438
|
}
|
|
412
|
-
|
|
413
|
-
.pill--flagged {
|
|
439
|
+
.smrt-content-claim-audit-tool__pill--flagged {
|
|
414
440
|
background: color-mix(in srgb, var(--smrt-color-warning) 16%, transparent);
|
|
415
441
|
color: var(--smrt-color-on-warning-container);
|
|
416
442
|
}
|
|
417
|
-
|
|
418
|
-
.pill--failed {
|
|
443
|
+
.smrt-content-claim-audit-tool__pill--failed {
|
|
419
444
|
background: color-mix(in srgb, var(--smrt-color-error) 14%, transparent);
|
|
420
445
|
color: var(--smrt-color-on-error-container);
|
|
421
446
|
}
|
|
422
|
-
|
|
423
|
-
.
|
|
424
|
-
.
|
|
425
|
-
.tool-warning {
|
|
426
|
-
margin: 0;
|
|
447
|
+
.smrt-content-claim-audit-tool__error,
|
|
448
|
+
.smrt-content-claim-audit-tool__notice,
|
|
449
|
+
.smrt-content-claim-audit-tool__warning {
|
|
427
450
|
border-radius: 0.6rem;
|
|
428
|
-
padding: 0.75rem 0.9rem;
|
|
429
451
|
font-size: var(--smrt-typography-body-medium-size, 0.9rem);
|
|
430
452
|
}
|
|
431
|
-
|
|
432
|
-
.tool-error {
|
|
453
|
+
.smrt-content-claim-audit-tool__error {
|
|
433
454
|
background: color-mix(in srgb, var(--smrt-color-error) 10%, transparent);
|
|
434
455
|
color: var(--smrt-color-on-error-container);
|
|
435
456
|
}
|
|
436
|
-
|
|
437
|
-
.tool-notice {
|
|
457
|
+
.smrt-content-claim-audit-tool__notice {
|
|
438
458
|
background: color-mix(in srgb, var(--smrt-color-primary) 10%, transparent);
|
|
439
459
|
color: var(--smrt-color-on-primary-container);
|
|
440
460
|
}
|
|
441
|
-
|
|
442
|
-
.tool-warning {
|
|
461
|
+
.smrt-content-claim-audit-tool__warning {
|
|
443
462
|
background: color-mix(in srgb, var(--smrt-color-warning) 12%, transparent);
|
|
444
463
|
color: var(--smrt-color-on-warning-container);
|
|
445
464
|
}
|
|
446
|
-
|
|
447
|
-
.claim-audit-select {
|
|
448
|
-
min-width: 2.75rem;
|
|
449
|
-
min-height: 2.75rem;
|
|
450
|
-
align-items: center;
|
|
451
|
-
justify-content: center;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.tool-card summary {
|
|
455
|
-
min-height: 2.75rem;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.tool-card.nested {
|
|
465
|
+
.smrt-content-claim-audit-tool__card.smrt-content-claim-audit-tool__card--nested {
|
|
459
466
|
background: color-mix(in srgb, var(--smrt-color-on-surface) 6%, transparent);
|
|
460
467
|
}
|
|
461
|
-
|
|
462
|
-
@container governance-tool (max-width: 30rem) {
|
|
463
|
-
.claim-audit-toolbar {
|
|
464
|
-
flex-direction: column;
|
|
465
|
-
align-items: stretch;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.claim-audit-toolbar :global(button),
|
|
469
|
-
.claim-audit-actions :global(button) {
|
|
470
|
-
width: 100%;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
.claim-audit-actions {
|
|
474
|
-
justify-content: stretch;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.tool-card summary {
|
|
478
|
-
flex-wrap: wrap;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
468
|
}
|
|
469
|
+
|
|
482
470
|
</style>
|
|
@@ -127,7 +127,7 @@ function handleSubmit(event: SubmitEvent) {
|
|
|
127
127
|
}
|
|
128
128
|
</script>
|
|
129
129
|
|
|
130
|
-
<div class="contribution-
|
|
130
|
+
<div class="smrt-content-contribution-form__root" data-smrt-component="ContentContributionForm">
|
|
131
131
|
<Form
|
|
132
132
|
class="contribution-form"
|
|
133
133
|
method="post"
|
|
@@ -148,7 +148,7 @@ function handleSubmit(event: SubmitEvent) {
|
|
|
148
148
|
</label>
|
|
149
149
|
|
|
150
150
|
{#if showContributorFields}
|
|
151
|
-
<div class="grid">
|
|
151
|
+
<div class="smrt-content-contribution-form__grid" data-smrt-part="grid">
|
|
152
152
|
<label>
|
|
153
153
|
Email
|
|
154
154
|
<Input name="contributorEmail" type="email" bind:value={draft.contributorEmail} required />
|
|
@@ -187,7 +187,7 @@ function handleSubmit(event: SubmitEvent) {
|
|
|
187
187
|
/>
|
|
188
188
|
</label>
|
|
189
189
|
{#if draft.files.length > 0}
|
|
190
|
-
<div class="
|
|
190
|
+
<div class="smrt-content-contribution-form__file-list" data-smrt-part="list">
|
|
191
191
|
{#each draft.files as file (file.name + file.size)}
|
|
192
192
|
<span>{file.name} ({Math.max(1, Math.round(file.size / 1024))} KB)</span>
|
|
193
193
|
{/each}
|
|
@@ -195,7 +195,7 @@ function handleSubmit(event: SubmitEvent) {
|
|
|
195
195
|
{/if}
|
|
196
196
|
{/if}
|
|
197
197
|
|
|
198
|
-
<div class="actions">
|
|
198
|
+
<div class="smrt-content-contribution-form__actions" data-smrt-part="actions">
|
|
199
199
|
<Button variant="primary" type="submit">{submitLabel}</Button>
|
|
200
200
|
{#if onCancel}
|
|
201
201
|
<Button variant="secondary" type="button" onclick={() => onCancel?.()}>
|
|
@@ -208,35 +208,37 @@ function handleSubmit(event: SubmitEvent) {
|
|
|
208
208
|
|
|
209
209
|
<style>
|
|
210
210
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
211
|
-
@layer smrt.
|
|
212
|
-
.contribution-
|
|
211
|
+
@layer smrt.structure {
|
|
212
|
+
.smrt-content-contribution-form__root :global(.contribution-form) {
|
|
213
213
|
display: grid;
|
|
214
214
|
gap: 0.85rem;
|
|
215
215
|
}
|
|
216
|
-
|
|
217
|
-
.grid {
|
|
216
|
+
.smrt-content-contribution-form__grid {
|
|
218
217
|
display: grid;
|
|
219
218
|
gap: 0.75rem;
|
|
220
219
|
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
|
221
220
|
}
|
|
222
|
-
|
|
223
221
|
label {
|
|
224
222
|
display: grid;
|
|
225
223
|
gap: 0.35rem;
|
|
226
224
|
}
|
|
227
|
-
|
|
228
|
-
.file-list {
|
|
225
|
+
.smrt-content-contribution-form__file-list {
|
|
229
226
|
display: flex;
|
|
230
227
|
gap: 0.5rem;
|
|
231
228
|
flex-wrap: wrap;
|
|
232
|
-
font-size: var(--smrt-typography-body-medium-size, 0.9rem);
|
|
233
|
-
color: var(--smrt-color-on-surface-variant);
|
|
234
229
|
}
|
|
235
|
-
|
|
236
|
-
.actions {
|
|
230
|
+
.smrt-content-contribution-form__actions {
|
|
237
231
|
display: flex;
|
|
238
232
|
gap: 0.75rem;
|
|
239
233
|
flex-wrap: wrap;
|
|
240
234
|
}
|
|
241
235
|
}
|
|
236
|
+
|
|
237
|
+
@layer smrt.theme {
|
|
238
|
+
.smrt-content-contribution-form__file-list {
|
|
239
|
+
font-size: var(--smrt-typography-body-medium-size, 0.9rem);
|
|
240
|
+
color: var(--smrt-color-on-surface-variant);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
242
244
|
</style>
|