UNPKG

@plotinus/matrix-package-calculator

Version:

Calculator components for the Matrix framework - basic arithmetic operations with UI

29 lines (28 loc) 1.15 kB
/** * @matrix/package-calculator * * Calculator components package for the Matrix framework with ESM browser runtime loading support. * This package demonstrates the standard Matrix package format that enables: * - npm install @matrix/package-calculator * - matrix add @matrix/package-calculator * - Browser runtime loading via CDN * - Unified loading via mcf-component-loader */ // Main component exports (Node.js/CLI usage) export { CalculatorComponent } from './components/calculator/calculator.component.js'; // Presentation components (browser usage) export { CalculatorPresentationElement } from './presentation/calculator-presentation.js'; // Package metadata for Matrix tooling export const packageInfo = { name: '@matrix/package-calculator', version: '1.0.0', packageType: 'component-library', components: ['calculator'], matrixVersion: '^1.0.0' }; // Component registration helper for mcf-component-loader export async function registerComponents(loader) { const { CalculatorComponent } = await import('./index.js'); loader.register('calculator', CalculatorComponent); return ['calculator']; }