@playpilot/tpi 8.29.10 → 8.29.11
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/editorial.mount.js +7 -7
- package/dist/link-injections.js +1 -1
- package/dist/mount.js +5 -5
- package/eslint.config.js +1 -0
- package/package.json +1 -1
- package/src/lib/afterArticle.ts +1 -1
- package/src/lib/api/participants.ts +0 -1
- package/src/lib/injection.ts +479 -479
- package/src/routes/components/Debugger.svelte +20 -7
- package/src/tests/lib/injection.test.js +2 -2
|
@@ -138,12 +138,16 @@
|
|
|
138
138
|
|
|
139
139
|
{#if value?.length}
|
|
140
140
|
{#if Array.isArray(value)}
|
|
141
|
-
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
<table border="0" cellpadding="0">
|
|
142
|
+
<tbody>
|
|
143
|
+
{#each value as { label, data }}
|
|
144
|
+
<tr>
|
|
145
|
+
<td><span class="label">{label}</span></td>
|
|
146
|
+
<td><span class="data">{JSON.stringify(data)}</span></td>
|
|
147
|
+
</tr>
|
|
148
|
+
{/each}
|
|
149
|
+
</tbody>
|
|
150
|
+
</table>
|
|
147
151
|
{/if}
|
|
148
152
|
{:else}
|
|
149
153
|
No data
|
|
@@ -293,12 +297,21 @@
|
|
|
293
297
|
color: theme(primary);
|
|
294
298
|
}
|
|
295
299
|
|
|
296
|
-
|
|
300
|
+
table {
|
|
301
|
+
display: block;
|
|
302
|
+
max-width: 100%;
|
|
303
|
+
max-height: 15lh;
|
|
297
304
|
white-space: nowrap;
|
|
298
305
|
overflow-x: auto;
|
|
299
306
|
scrollbar-width: thin;
|
|
300
307
|
}
|
|
301
308
|
|
|
309
|
+
tr {
|
|
310
|
+
&:hover {
|
|
311
|
+
background: rgba(255, 255, 255, 0.15);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
302
315
|
.form-group {
|
|
303
316
|
display: flex;
|
|
304
317
|
align-items: center;
|
|
@@ -469,10 +469,10 @@ describe('injection.ts', () => {
|
|
|
469
469
|
})
|
|
470
470
|
|
|
471
471
|
it('Should return sentence message if text was found in full body text but not in individual elements', () => {
|
|
472
|
-
document.body.innerHTML =
|
|
472
|
+
document.body.innerHTML = '<article><p>Some sentence</p><p>that is broken in two</p></main>'
|
|
473
473
|
|
|
474
474
|
const elements = Array.from(document.body.querySelectorAll('p'))
|
|
475
|
-
const linkInjections = [generateInjection('Some sentence that is broken in two', 'broken')
|
|
475
|
+
const linkInjections = [generateInjection('Some sentence that is broken in two', 'broken')]
|
|
476
476
|
|
|
477
477
|
const results = injectLinksInDocument(elements, { aiInjections: linkInjections, manualInjections: [] })
|
|
478
478
|
|