@astryxdesign/lab 0.4.7-canary.d895769 → 0.4.7-canary.de6d448
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": "@astryxdesign/lab",
|
|
3
|
-
"version": "0.4.7-canary.
|
|
3
|
+
"version": "0.4.7-canary.de6d448",
|
|
4
4
|
"description": "Experimental Astryx components — published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
|
|
5
5
|
"author": "Meta Open Source",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@stylexjs/stylex": ">=0.10.0",
|
|
48
|
-
"@astryxdesign/core": "0.4.7-canary.
|
|
48
|
+
"@astryxdesign/core": "0.4.7-canary.de6d448",
|
|
49
49
|
"react": ">=19.0.0",
|
|
50
50
|
"react-dom": ">=19.0.0"
|
|
51
51
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"d3-shape": "^3.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@astryxdesign/cli": "0.4.7-canary.
|
|
58
|
+
"@astryxdesign/cli": "0.4.7-canary.de6d448",
|
|
59
59
|
"@types/d3-array": "^3.2.2",
|
|
60
60
|
"@types/d3-scale": "^4.0.9",
|
|
61
61
|
"@types/d3-shape": "^3.1.8",
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
import {describe, it, expect} from 'vitest';
|
|
4
|
-
|
|
5
|
-
import {docs as ChatReasoningDocs} from '../ChatReasoning/ChatReasoning.doc.mjs';
|
|
6
|
-
import {docs as CodeEditorDocs} from '../CodeEditor/CodeEditor.doc.mjs';
|
|
7
|
-
import {docs as LogStreamDocs} from '../LogStream/LogStream.doc.mjs';
|
|
8
|
-
|
|
9
|
-
function getProps(docs: Record<string, unknown>): Array<{name: string}> {
|
|
10
|
-
return (
|
|
11
|
-
(docs.props as Array<{name: string}>) ||
|
|
12
|
-
(
|
|
13
|
-
docs.components as Array<{
|
|
14
|
-
props: Array<{name: string}>;
|
|
15
|
-
}>
|
|
16
|
-
)?.[0]?.props ||
|
|
17
|
-
[]
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
describe('Lab API Contract Drift (#4163)', () => {
|
|
22
|
-
it('documents ChatReasoning props', () => {
|
|
23
|
-
const props = getProps(ChatReasoningDocs).map(p => p.name);
|
|
24
|
-
expect(props).toContain('duration');
|
|
25
|
-
expect(props).toContain('isStreaming');
|
|
26
|
-
expect(props).toContain('isExpanded');
|
|
27
|
-
expect(props).toContain('defaultIsExpanded');
|
|
28
|
-
expect(props).toContain('onExpandedChange');
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('documents CodeEditor props', () => {
|
|
32
|
-
const props = getProps(CodeEditorDocs).map(p => p.name);
|
|
33
|
-
expect(props).toContain('language');
|
|
34
|
-
expect(props).toContain('hasLineNumbers');
|
|
35
|
-
expect(props).toContain('isReadOnly');
|
|
36
|
-
expect(props).toContain('placeholder');
|
|
37
|
-
expect(props).toContain('maxHeight');
|
|
38
|
-
expect(props).toContain('size');
|
|
39
|
-
expect(props).toContain('tokenizer');
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it('documents LogStream props', () => {
|
|
43
|
-
const props = getProps(LogStreamDocs).map(p => p.name);
|
|
44
|
-
expect(props).toContain('variant');
|
|
45
|
-
expect(props).toContain('isFollowing');
|
|
46
|
-
expect(props).toContain('onFollowChange');
|
|
47
|
-
expect(props).toContain('maxHeight');
|
|
48
|
-
expect(props).toContain('hasTimestamps');
|
|
49
|
-
expect(props).toContain('renderEntry');
|
|
50
|
-
});
|
|
51
|
-
});
|