@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.
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, 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
- <form
142
- class="editor"
143
- onsubmit={(event) => {
144
- event.preventDefault();
145
- handleSubmit();
146
- }}
147
- >
148
- <label>
149
- Key
150
- <input type="text" bind:value={draft.key} required />
151
- </label>
152
- <label>
153
- Label
154
- <input type="text" bind:value={draft.label} required />
155
- </label>
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
- <div class="checkbox-grid">
158
- <label><input type="checkbox" bind:checked={draft.enabled} /> Enabled</label>
159
- <label><input type="checkbox" bind:checked={draft.allowText} /> {t(M['content.contribution_type_manager.allow_text'])}</label>
160
- <label><input type="checkbox" bind:checked={draft.allowFiles} /> {t(M['content.contribution_type_manager.allow_files'])}</label>
161
- <label><input type="checkbox" bind:checked={draft.allowEmptyText} /> {t(M['content.contribution_type_manager.allow_empty_text'])}</label>
162
- </div>
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
- <input
167
- type="checkbox"
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
- <input
175
- type="checkbox"
176
- checked={draft.allowedChannels.includes('email')}
177
- onchange={() => toggleChannel('email')}
178
- />
179
- Email
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
- <div class="checkbox-grid">
200
- <label><input type="checkbox" bind:checked={draft.promotion.autoPromoteTrusted} /> {t(M['content.contribution_type_manager.auto_promote_trusted'])}</label>
201
- <label><input type="checkbox" bind:checked={draft.promotion.createAssets} /> {t(M['content.contribution_type_manager.create_assets_on_promotion'])}</label>
202
- <label><input type="checkbox" bind:checked={draft.intakeRules.trustedOnly} /> {t(M['content.contribution_type_manager.trusted_contributors_only'])}</label>
203
- </div>
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
- <label>
206
- {t(M['content.contribution_type_manager.max_files'])}
207
- <input type="number" min="0" bind:value={draft.intakeRules.maxFiles} />
208
- </label>
209
- <label>
210
- {t(M['content.contribution_type_manager.max_total_bytes'])}
211
- <input type="number" min="0" bind:value={draft.intakeRules.maxTotalBytes} />
212
- </label>
213
- <label>
214
- {t(M['content.contribution_type_manager.allowed_mime_patterns'])}
215
- <input type="text" bind:value={draft.intakeRules.allowedMimePatterns} placeholder={t(M['content.contribution_type_manager.allowed_mime_patterns_placeholder'])} />
216
- </label>
217
- <label>
218
- {t(M['content.contribution_type_manager.blocked_mime_patterns'])}
219
- <input type="text" bind:value={draft.intakeRules.blockedMimePatterns} />
220
- </label>
221
- <label>
222
- {t(M['content.contribution_type_manager.quarantine_mime_patterns'])}
223
- <input type="text" bind:value={draft.intakeRules.quarantineMimePatterns} />
224
- </label>
225
- <label>
226
- {t(M['content.contribution_type_manager.blocked_text_patterns'])}
227
- <textarea bind:value={draft.intakeRules.blockedTextPatterns} rows="2"></textarea>
228
- </label>
229
- <label>
230
- {t(M['content.contribution_type_manager.quarantine_text_patterns'])}
231
- <textarea bind:value={draft.intakeRules.quarantineTextPatterns} rows="2"></textarea>
232
- </label>
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
- <div class="actions">
235
- <Button variant="primary" type="submit">{t(M['content.contribution_type_manager.save_type'])}</Button>
236
- </div>
237
- </form>
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":"AAKA,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;AAqOD,QAAA,MAAM,8BAA8B,2CAAwC,CAAC;AAC7E,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACxF,eAAe,8BAA8B,CAAC"}
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
- <form
71
- class="editor"
72
- onsubmit={(event) => {
73
- event.preventDefault();
74
- handleSubmit();
75
- }}
76
- >
77
- <label>
78
- Email
79
- <input type="email" bind:value={draft.email} required />
80
- </label>
81
- <label>
82
- Name
83
- <input type="text" bind:value={draft.name} />
84
- </label>
85
- <label>
86
- {t(M['content.contributor_manager.trust_level'])}
87
- <select bind:value={draft.trustLevel}>
88
- <option value="standard">standard</option>
89
- <option value="trusted">trusted</option>
90
- <option value="blocked">blocked</option>
91
- </select>
92
- </label>
93
-
94
- <div class="actions">
95
- <Button variant="primary" type="submit">{t(M['content.contributor_manager.save_contributor'])}</Button>
96
- </div>
97
- </form>
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":"AAKA,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;AAiGD,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
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
- <input
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
- <select bind:value={correctionFactId}>
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
- </select>
191
+ </Select>
191
192
  </label>
192
193
 
193
194
  <label class="workflow-field">
194
195
  {t(M['content.corrections_tool.corrected_fact_text'])}
195
- <textarea
196
- rows="4"
196
+ <Textarea
197
+ rows={4}
197
198
  bind:value={correctedFactText}
198
199
  placeholder={t(M['content.corrections_tool.provide_corrected_wording'])}
199
- ></textarea>
200
+ ></Textarea>
200
201
  </label>
201
202
 
202
203
  <label class="workflow-field">
203
204
  {t(M['content.corrections_tool.public_note'])}
204
- <textarea
205
- rows="3"
205
+ <Textarea
206
+ rows={3}
206
207
  bind:value={correctionPublicNote}
207
208
  placeholder={t(M['content.corrections_tool.optional_public_correction_note'])}
208
- ></textarea>
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":"AAKA,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;AAqOD,QAAA,MAAM,sBAAsB,2CAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
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"}