Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | /**
* @fds-uif/generator-base - Shared Exports
*
* Browser-safe exports shared between index.ts and browser.ts.
* This file contains all exports that work in both Node.js and browser environments.
*
* @internal
*/
// Export types (generation-specific)
export type {
// Re-exported from schema for convenience
RenderWhen,
RenderWhenPropMatch,
ResolvedUIF,
ResolvedStructure,
ResolvedAttributes,
ResolvedBoundAttribute,
ResolvedConditionalAttribute,
ResolvedSlot,
ResolvedState,
ResolvedModifier,
ResolvedVariant,
ResolvedVariantOption,
ResolvedStateClass,
ResolvedAccessibility,
// Generation-specific types
ComponentMetadata,
PropMetadata,
StructureMetadata,
SlotMetadata,
ConditionalRule,
ClassNameRule,
GeneratedCode,
GeneratedFile,
// Composition types
CompositionMetadata,
CompositionPropsMetadata,
ComposedComponentMetadata,
ComponentRefMetadata,
ComponentRefPropMetadata,
// Attribute types
BoundAttributeMapping,
ConditionalAttributeMetadata,
// Options
AnalyzerOptions,
FormatterOptions,
GeneratorOptions,
} from './types/index.js';
// Export utility functions
export { toCamelCase, isValidJsIdentifier, sanitizeIdentifier } from './types/index.js';
// Export analyzer (browser-safe)
export { analyzeUif, analyzeMultipleUifs, UifAnalyzerError } from './analyzer/index.js';
// Export formatter (browser-safe - Prettier works in browser)
export {
formatGeneratedCode,
formatMultipleOutputs,
validateSyntax,
getSyntaxErrors,
UifFormatterError,
} from './formatter/index.js';
|