mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
Feature: Feature and preset reference — E2E tests + implementation (#1248)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
d2c43db550
commit
a4d8e2a255
@@ -509,3 +509,64 @@ export function generateComponentReferences(monorepoRoot: string): ComponentResu
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
// FEATURE REFERENCE PIPELINE
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
export interface FeatureStateDef {
|
||||
type: string;
|
||||
detailedType?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface FeatureActionDef {
|
||||
type: string;
|
||||
detailedType?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface FeatureReference {
|
||||
name: string;
|
||||
slug: string;
|
||||
description?: string;
|
||||
state: Record<string, FeatureStateDef>;
|
||||
actions: Record<string, FeatureActionDef>;
|
||||
}
|
||||
|
||||
export interface FeatureResult {
|
||||
name: string;
|
||||
slug: string;
|
||||
reference: FeatureReference;
|
||||
}
|
||||
|
||||
export { generateFeatureReferences } from './feature-handler.js';
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
// PRESET REFERENCE PIPELINE
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
export interface PresetSkinDef {
|
||||
name: string;
|
||||
tagName?: string;
|
||||
}
|
||||
|
||||
export interface PresetReference {
|
||||
name: string;
|
||||
featureBundle: string;
|
||||
features: string[];
|
||||
html: {
|
||||
skins: PresetSkinDef[];
|
||||
};
|
||||
react: {
|
||||
skins: PresetSkinDef[];
|
||||
mediaElement: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PresetResult {
|
||||
name: string;
|
||||
reference: PresetReference;
|
||||
}
|
||||
|
||||
export { generatePresetReferences } from './preset-handler.js';
|
||||
|
||||
Reference in New Issue
Block a user