@molecule/app-ui-showcase 1.0.2 → 1.0.3
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/README.md +12 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-10-01T18:21:14.007Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-showcase
|
|
@@ -18,6 +18,17 @@ Provides framework-agnostic data describing which components to render
|
|
|
18
18
|
and which prop combinations to test. Used by showcase templates in mlcl
|
|
19
19
|
to generate minimal apps per framework, then screenshotted by Playwright.
|
|
20
20
|
|
|
21
|
+
## Quick Start
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { generateCombinations, showcaseComponents } from '@molecule/app-ui-showcase'
|
|
25
|
+
|
|
26
|
+
const spec = showcaseComponents[0] // e.g. Button — variant × color × size
|
|
27
|
+
const variants = generateCombinations(spec.propMatrix)
|
|
28
|
+
// a showcase app maps spec.name to the framework's UI export and renders
|
|
29
|
+
// one instance per variant, applying spec.defaultProps + spec.children
|
|
30
|
+
```
|
|
31
|
+
|
|
21
32
|
## Type
|
|
22
33
|
|
|
23
34
|
`core`
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
* and which prop combinations to test. Used by showcase templates in mlcl
|
|
6
6
|
* to generate minimal apps per framework, then screenshotted by Playwright.
|
|
7
7
|
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { generateCombinations, showcaseComponents } from '@molecule/app-ui-showcase'
|
|
11
|
+
*
|
|
12
|
+
* const spec = showcaseComponents[0] // e.g. Button — variant × color × size
|
|
13
|
+
* const variants = generateCombinations(spec.propMatrix)
|
|
14
|
+
* // a showcase app maps spec.name to the framework's UI export and renders
|
|
15
|
+
* // one instance per variant, applying spec.defaultProps + spec.children
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
8
18
|
* @module
|
|
9
19
|
*/
|
|
10
20
|
export * from './components.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
* and which prop combinations to test. Used by showcase templates in mlcl
|
|
6
6
|
* to generate minimal apps per framework, then screenshotted by Playwright.
|
|
7
7
|
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { generateCombinations, showcaseComponents } from '@molecule/app-ui-showcase'
|
|
11
|
+
*
|
|
12
|
+
* const spec = showcaseComponents[0] // e.g. Button — variant × color × size
|
|
13
|
+
* const variants = generateCombinations(spec.propMatrix)
|
|
14
|
+
* // a showcase app maps spec.name to the framework's UI export and renders
|
|
15
|
+
* // one instance per variant, applying spec.defaultProps + spec.children
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
8
18
|
* @module
|
|
9
19
|
*/
|
|
10
20
|
export * from './components.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-showcase",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Component showcase specifications for cross-framework visual regression testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@molecule/app-ui": "^1.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@molecule/app-ui": "1.
|
|
34
|
+
"@molecule/app-ui": "1.3.4",
|
|
35
35
|
"@types/node": "26.1.2",
|
|
36
36
|
"typescript": "6.0.3",
|
|
37
37
|
"vitest": "4.1.11"
|