@happyvertical/smrt-content 0.34.6 → 0.34.7
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/dist/manifest.json +2 -2
- package/dist/smrt-knowledge.json +4 -4
- package/dist/svelte/components/ContentAgentChat.svelte +17 -16
- package/dist/svelte/components/ContentAgentChat.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentBodyEditor.svelte +4 -3
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentClaimAuditTool.svelte +1 -0
- package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionForm.svelte +73 -68
- package/dist/svelte/components/ContentContributionForm.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionInbox.svelte +9 -7
- package/dist/svelte/components/ContentContributionInbox.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionTypeManager.svelte +117 -91
- package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributorManager.svelte +34 -31
- package/dist/svelte/components/ContentContributorManager.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentCorrectionsTool.svelte +11 -22
- package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentEditor.svelte +40 -64
- package/dist/svelte/components/ContentEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +76 -74
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernancePanel.svelte +20 -31
- package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +42 -44
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +66 -67
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentList.svelte +12 -18
- package/dist/svelte/components/ContentList.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentMetadataFields.svelte +8 -23
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentReferencesPanel.svelte +11 -7
- package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentStatusFields.svelte +8 -19
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentTitleField.svelte +16 -12
- package/dist/svelte/components/ContentTitleField.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentContributionsRoute.svelte +26 -23
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentFactsRoute.svelte +10 -7
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts.map +1 -1
- package/package.json +15 -15
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { Form, Input, Select, Textarea } 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 type { ContentContributionTypeData } from '../../mock-smrt-client';
|
|
@@ -138,103 +139,128 @@ function handleSubmit() {
|
|
|
138
139
|
{/each}
|
|
139
140
|
</div>
|
|
140
141
|
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
event
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
142
|
+
<div class="editor-shell">
|
|
143
|
+
<Form
|
|
144
|
+
class="editor"
|
|
145
|
+
onsubmit={(event) => {
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
handleSubmit();
|
|
148
|
+
}}
|
|
149
|
+
>
|
|
150
|
+
<label>
|
|
151
|
+
Key
|
|
152
|
+
<Input type="text" bind:value={draft.key} required />
|
|
153
|
+
</label>
|
|
154
|
+
<label>
|
|
155
|
+
Label
|
|
156
|
+
<Input type="text" bind:value={draft.label} required />
|
|
157
|
+
</label>
|
|
158
|
+
|
|
159
|
+
<div class="checkbox-grid">
|
|
160
|
+
<label>
|
|
161
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
162
|
+
<input type="checkbox" bind:checked={draft.enabled} /> Enabled
|
|
163
|
+
</label>
|
|
164
|
+
<label>
|
|
165
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
166
|
+
<input type="checkbox" bind:checked={draft.allowText} /> {t(M['content.contribution_type_manager.allow_text'])}
|
|
167
|
+
</label>
|
|
168
|
+
<label>
|
|
169
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
170
|
+
<input type="checkbox" bind:checked={draft.allowFiles} /> {t(M['content.contribution_type_manager.allow_files'])}
|
|
171
|
+
</label>
|
|
172
|
+
<label>
|
|
173
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
174
|
+
<input type="checkbox" bind:checked={draft.allowEmptyText} /> {t(M['content.contribution_type_manager.allow_empty_text'])}
|
|
175
|
+
</label>
|
|
176
|
+
</div>
|
|
156
177
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
178
|
+
<div class="checkbox-grid">
|
|
179
|
+
<label>
|
|
180
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
181
|
+
<input
|
|
182
|
+
type="checkbox"
|
|
183
|
+
checked={draft.allowedChannels.includes('web')}
|
|
184
|
+
onchange={() => toggleChannel('web')}
|
|
185
|
+
/>
|
|
186
|
+
Web
|
|
187
|
+
</label>
|
|
188
|
+
<label>
|
|
189
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
190
|
+
<input
|
|
191
|
+
type="checkbox"
|
|
192
|
+
checked={draft.allowedChannels.includes('email')}
|
|
193
|
+
onchange={() => toggleChannel('email')}
|
|
194
|
+
/>
|
|
195
|
+
Email
|
|
196
|
+
</label>
|
|
197
|
+
</div>
|
|
163
198
|
|
|
164
|
-
<div class="checkbox-grid">
|
|
165
199
|
<label>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
checked={draft.allowedChannels.includes('web')}
|
|
169
|
-
onchange={() => toggleChannel('web')}
|
|
170
|
-
/>
|
|
171
|
-
Web
|
|
200
|
+
{t(M['content.contribution_type_manager.promotion_content_type'])}
|
|
201
|
+
<Input type="text" bind:value={draft.promotion.targetContentType} required />
|
|
172
202
|
</label>
|
|
173
203
|
<label>
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
204
|
+
{t(M['content.contribution_type_manager.promotion_variant'])}
|
|
205
|
+
<Input type="text" bind:value={draft.promotion.targetContentVariant} />
|
|
206
|
+
</label>
|
|
207
|
+
<label>
|
|
208
|
+
{t(M['content.contribution_type_manager.promotion_status'])}
|
|
209
|
+
<Select bind:value={draft.promotion.targetContentStatus}>
|
|
210
|
+
<option value="draft">draft</option>
|
|
211
|
+
<option value="review">review</option>
|
|
212
|
+
</Select>
|
|
180
213
|
</label>
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
<label>
|
|
184
|
-
{t(M['content.contribution_type_manager.promotion_content_type'])}
|
|
185
|
-
<input type="text" bind:value={draft.promotion.targetContentType} required />
|
|
186
|
-
</label>
|
|
187
|
-
<label>
|
|
188
|
-
{t(M['content.contribution_type_manager.promotion_variant'])}
|
|
189
|
-
<input type="text" bind:value={draft.promotion.targetContentVariant} />
|
|
190
|
-
</label>
|
|
191
|
-
<label>
|
|
192
|
-
{t(M['content.contribution_type_manager.promotion_status'])}
|
|
193
|
-
<select bind:value={draft.promotion.targetContentStatus}>
|
|
194
|
-
<option value="draft">draft</option>
|
|
195
|
-
<option value="review">review</option>
|
|
196
|
-
</select>
|
|
197
|
-
</label>
|
|
198
214
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
215
|
+
<div class="checkbox-grid">
|
|
216
|
+
<label>
|
|
217
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
218
|
+
<input type="checkbox" bind:checked={draft.promotion.autoPromoteTrusted} /> {t(M['content.contribution_type_manager.auto_promote_trusted'])}
|
|
219
|
+
</label>
|
|
220
|
+
<label>
|
|
221
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
222
|
+
<input type="checkbox" bind:checked={draft.promotion.createAssets} /> {t(M['content.contribution_type_manager.create_assets_on_promotion'])}
|
|
223
|
+
</label>
|
|
224
|
+
<label>
|
|
225
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
226
|
+
<input type="checkbox" bind:checked={draft.intakeRules.trustedOnly} /> {t(M['content.contribution_type_manager.trusted_contributors_only'])}
|
|
227
|
+
</label>
|
|
228
|
+
</div>
|
|
204
229
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
<label>
|
|
231
|
+
{t(M['content.contribution_type_manager.max_files'])}
|
|
232
|
+
<Input type="number" min="0" bind:value={draft.intakeRules.maxFiles} />
|
|
233
|
+
</label>
|
|
234
|
+
<label>
|
|
235
|
+
{t(M['content.contribution_type_manager.max_total_bytes'])}
|
|
236
|
+
<Input type="number" min="0" bind:value={draft.intakeRules.maxTotalBytes} />
|
|
237
|
+
</label>
|
|
238
|
+
<label>
|
|
239
|
+
{t(M['content.contribution_type_manager.allowed_mime_patterns'])}
|
|
240
|
+
<Input type="text" bind:value={draft.intakeRules.allowedMimePatterns} placeholder={t(M['content.contribution_type_manager.allowed_mime_patterns_placeholder'])} />
|
|
241
|
+
</label>
|
|
242
|
+
<label>
|
|
243
|
+
{t(M['content.contribution_type_manager.blocked_mime_patterns'])}
|
|
244
|
+
<Input type="text" bind:value={draft.intakeRules.blockedMimePatterns} />
|
|
245
|
+
</label>
|
|
246
|
+
<label>
|
|
247
|
+
{t(M['content.contribution_type_manager.quarantine_mime_patterns'])}
|
|
248
|
+
<Input type="text" bind:value={draft.intakeRules.quarantineMimePatterns} />
|
|
249
|
+
</label>
|
|
250
|
+
<label>
|
|
251
|
+
{t(M['content.contribution_type_manager.blocked_text_patterns'])}
|
|
252
|
+
<Textarea bind:value={draft.intakeRules.blockedTextPatterns} rows={2}></Textarea>
|
|
253
|
+
</label>
|
|
254
|
+
<label>
|
|
255
|
+
{t(M['content.contribution_type_manager.quarantine_text_patterns'])}
|
|
256
|
+
<Textarea bind:value={draft.intakeRules.quarantineTextPatterns} rows={2}></Textarea>
|
|
257
|
+
</label>
|
|
233
258
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
259
|
+
<div class="actions">
|
|
260
|
+
<Button variant="primary" type="submit">{t(M['content.contribution_type_manager.save_type'])}</Button>
|
|
261
|
+
</div>
|
|
262
|
+
</Form>
|
|
263
|
+
</div>
|
|
238
264
|
</div>
|
|
239
265
|
</section>
|
|
240
266
|
|
|
@@ -242,7 +268,7 @@ function handleSubmit() {
|
|
|
242
268
|
.manager,
|
|
243
269
|
.layout,
|
|
244
270
|
.list,
|
|
245
|
-
.editor {
|
|
271
|
+
.editor-shell :global(.editor) {
|
|
246
272
|
display: grid;
|
|
247
273
|
gap: 1rem;
|
|
248
274
|
}
|
|
@@ -252,7 +278,7 @@ function handleSubmit() {
|
|
|
252
278
|
}
|
|
253
279
|
|
|
254
280
|
.card,
|
|
255
|
-
.editor {
|
|
281
|
+
.editor-shell :global(.editor) {
|
|
256
282
|
border: 1px solid var(--smrt-color-outline-variant);
|
|
257
283
|
border-radius: 0.75rem;
|
|
258
284
|
padding: 0.9rem;
|
|
@@ -269,7 +295,7 @@ function handleSubmit() {
|
|
|
269
295
|
flex-wrap: wrap;
|
|
270
296
|
}
|
|
271
297
|
|
|
272
|
-
.editor label {
|
|
298
|
+
.editor-shell label {
|
|
273
299
|
display: grid;
|
|
274
300
|
gap: 0.35rem;
|
|
275
301
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentContributionTypeManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionTypeManager.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentContributionTypeManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionTypeManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAI1E,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACtC,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,CAAC,KAAK,IAAI,CAAC;IAC7D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;CACxD;AA+PD,QAAA,MAAM,8BAA8B,2CAAwC,CAAC;AAC7E,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACxF,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { Form, Input, Select } 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 type { ContentContributorData } from '../../mock-smrt-client';
|
|
@@ -67,34 +68,36 @@ function handleSubmit() {
|
|
|
67
68
|
{/each}
|
|
68
69
|
</div>
|
|
69
70
|
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
event
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
71
|
+
<div class="editor-shell">
|
|
72
|
+
<Form
|
|
73
|
+
class="editor"
|
|
74
|
+
onsubmit={(event) => {
|
|
75
|
+
event.preventDefault();
|
|
76
|
+
handleSubmit();
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
79
|
+
<label>
|
|
80
|
+
Email
|
|
81
|
+
<Input type="email" bind:value={draft.email} required />
|
|
82
|
+
</label>
|
|
83
|
+
<label>
|
|
84
|
+
Name
|
|
85
|
+
<Input type="text" bind:value={draft.name} />
|
|
86
|
+
</label>
|
|
87
|
+
<label>
|
|
88
|
+
{t(M['content.contributor_manager.trust_level'])}
|
|
89
|
+
<Select bind:value={draft.trustLevel}>
|
|
90
|
+
<option value="standard">standard</option>
|
|
91
|
+
<option value="trusted">trusted</option>
|
|
92
|
+
<option value="blocked">blocked</option>
|
|
93
|
+
</Select>
|
|
94
|
+
</label>
|
|
95
|
+
|
|
96
|
+
<div class="actions">
|
|
97
|
+
<Button variant="primary" type="submit">{t(M['content.contributor_manager.save_contributor'])}</Button>
|
|
98
|
+
</div>
|
|
99
|
+
</Form>
|
|
100
|
+
</div>
|
|
98
101
|
</div>
|
|
99
102
|
</section>
|
|
100
103
|
|
|
@@ -102,7 +105,7 @@ function handleSubmit() {
|
|
|
102
105
|
.manager,
|
|
103
106
|
.layout,
|
|
104
107
|
.list,
|
|
105
|
-
.editor {
|
|
108
|
+
.editor-shell :global(.editor) {
|
|
106
109
|
display: grid;
|
|
107
110
|
gap: 1rem;
|
|
108
111
|
}
|
|
@@ -112,7 +115,7 @@ function handleSubmit() {
|
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
.card,
|
|
115
|
-
.editor {
|
|
118
|
+
.editor-shell :global(.editor) {
|
|
116
119
|
border: 1px solid var(--smrt-color-outline-variant);
|
|
117
120
|
border-radius: 0.75rem;
|
|
118
121
|
padding: 0.9rem;
|
|
@@ -128,7 +131,7 @@ function handleSubmit() {
|
|
|
128
131
|
flex-wrap: wrap;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
|
-
.editor label {
|
|
134
|
+
.editor-shell label {
|
|
132
135
|
display: grid;
|
|
133
136
|
gap: 0.35rem;
|
|
134
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentContributorManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributorManager.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentContributorManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributorManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIrE,MAAM,WAAW,KAAK;IACpB,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxC,MAAM,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC1D;AAoGD,QAAA,MAAM,yBAAyB,2CAAwC,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 { Input, Select, Textarea } 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 type { ContentCorrectionData, FactData } from '../../mock-smrt-client';
|
|
@@ -173,7 +174,7 @@ async function issueCorrection() {
|
|
|
173
174
|
{:else}
|
|
174
175
|
<label class="workflow-field">
|
|
175
176
|
Summary
|
|
176
|
-
<
|
|
177
|
+
<Input
|
|
177
178
|
type="text"
|
|
178
179
|
bind:value={correctionSummary}
|
|
179
180
|
placeholder={t(M['content.corrections_tool.what_was_wrong'])}
|
|
@@ -182,33 +183,34 @@ async function issueCorrection() {
|
|
|
182
183
|
|
|
183
184
|
<label class="workflow-field">
|
|
184
185
|
{t(M['content.corrections_tool.related_fact'])}
|
|
185
|
-
<
|
|
186
|
+
<Select bind:value={correctionFactId}>
|
|
186
187
|
<option value="">{t(M['content.corrections_tool.general_correction'])}</option>
|
|
187
188
|
{#each facts as fact (fact.id)}
|
|
188
189
|
<option value={fact.id ?? ''}>{fact.textRefined}</option>
|
|
189
190
|
{/each}
|
|
190
|
-
</
|
|
191
|
+
</Select>
|
|
191
192
|
</label>
|
|
192
193
|
|
|
193
194
|
<label class="workflow-field">
|
|
194
195
|
{t(M['content.corrections_tool.corrected_fact_text'])}
|
|
195
|
-
<
|
|
196
|
-
rows=
|
|
196
|
+
<Textarea
|
|
197
|
+
rows={4}
|
|
197
198
|
bind:value={correctedFactText}
|
|
198
199
|
placeholder={t(M['content.corrections_tool.provide_corrected_wording'])}
|
|
199
|
-
></
|
|
200
|
+
></Textarea>
|
|
200
201
|
</label>
|
|
201
202
|
|
|
202
203
|
<label class="workflow-field">
|
|
203
204
|
{t(M['content.corrections_tool.public_note'])}
|
|
204
|
-
<
|
|
205
|
-
rows=
|
|
205
|
+
<Textarea
|
|
206
|
+
rows={3}
|
|
206
207
|
bind:value={correctionPublicNote}
|
|
207
208
|
placeholder={t(M['content.corrections_tool.optional_public_correction_note'])}
|
|
208
|
-
></
|
|
209
|
+
></Textarea>
|
|
209
210
|
</label>
|
|
210
211
|
|
|
211
212
|
<label class="checkbox-row">
|
|
213
|
+
<!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
|
|
212
214
|
<input type="checkbox" bind:checked={publishCorrection} />
|
|
213
215
|
{t(M['content.corrections_tool.publish_immediately'])}
|
|
214
216
|
</label>
|
|
@@ -260,19 +262,6 @@ async function issueCorrection() {
|
|
|
260
262
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
261
263
|
}
|
|
262
264
|
|
|
263
|
-
.workflow-field input,
|
|
264
|
-
.workflow-field textarea,
|
|
265
|
-
.workflow-field select {
|
|
266
|
-
width: 100%;
|
|
267
|
-
box-sizing: border-box;
|
|
268
|
-
padding: 0.75rem;
|
|
269
|
-
border-radius: 0.5rem;
|
|
270
|
-
border: 1px solid var(--smrt-color-outline);
|
|
271
|
-
background: var(--smrt-color-surface);
|
|
272
|
-
color: var(--smrt-color-on-surface);
|
|
273
|
-
font-family: inherit;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
265
|
.tool-card {
|
|
277
266
|
display: flex;
|
|
278
267
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentCorrectionsTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentCorrectionsTool.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentCorrectionsTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentCorrectionsTool.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAY,MAAM,wBAAwB,CAAC;AAM9E,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;CACtE;AAuOD,QAAA,MAAM,sBAAsB,2CAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
|