@poodle64/librarian 2026.9.4 → 2026.9.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poodle64/librarian",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.5",
|
|
4
4
|
"description": "Milton's conversation surface as a consumable Svelte 5 package: the stream client, transcript state and chat components (transcript, composer, markdown) every household app renders instead of rebuilding.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The scope chip renders only when there is a genuine pick between two or
|
|
3
|
-
* more scopes (design-system, the fixed-scope Composer defect). A room with
|
|
4
|
-
* one shelf set passes neither `documentName` nor `collectionName`, leaving
|
|
5
|
-
* "All collections" as the sole entry — and a sole entry is console
|
|
6
|
-
* furniture, not a control.
|
|
7
|
-
*/
|
|
8
|
-
import { describe, it, expect } from 'vitest';
|
|
9
|
-
import { render, screen } from '@testing-library/svelte';
|
|
10
|
-
import Composer from './composer.svelte';
|
|
11
|
-
describe('Composer scope chip', () => {
|
|
12
|
-
it('renders nothing when the caller has fixed the scope', () => {
|
|
13
|
-
render(Composer, {
|
|
14
|
-
props: {
|
|
15
|
-
value: '',
|
|
16
|
-
running: false,
|
|
17
|
-
scope: 'library',
|
|
18
|
-
onscope: () => { },
|
|
19
|
-
onsubmit: () => { },
|
|
20
|
-
onstop: () => { }
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
expect(screen.queryByText('All collections')).not.toBeInTheDocument();
|
|
24
|
-
});
|
|
25
|
-
it('renders chips once a narrower scope is offered', () => {
|
|
26
|
-
render(Composer, {
|
|
27
|
-
props: {
|
|
28
|
-
value: '',
|
|
29
|
-
running: false,
|
|
30
|
-
scope: 'library',
|
|
31
|
-
collectionName: 'household-legal',
|
|
32
|
-
onscope: () => { },
|
|
33
|
-
onsubmit: () => { },
|
|
34
|
-
onstop: () => { }
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
expect(screen.getByText('All collections')).toBeInTheDocument();
|
|
38
|
-
expect(screen.getByText('household-legal')).toBeInTheDocument();
|
|
39
|
-
});
|
|
40
|
-
});
|