Sign In

@aurorajs.dev/core-front

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurorajs.dev/core-front

Aurora npm core front package

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@aurorajs.dev/core-front

Shared TypeScript library for Aurora frontend projects. Provides domain-level utilities and decorators for managing common UI interactions.

Installation

npm install @aurorajs.dev/core-front

Peer dependencies

PackageVersion
@aurorajs.dev/core-common^1.0.3

Usage

import { BlurActiveElement } from '@aurorajs.dev/core-front';

Decorators

@BlurActiveElement()

Method decorator that blurs the currently focused DOM element before executing the decorated method. Prevents UI side effects (visible tooltips, pending validations, virtual keyboard) when users trigger actions while an input still has focus.

class MyComponent {
  @BlurActiveElement()
  onSubmit(): void {
    // the active element is blurred before this runs
  }
}

Development

# Install dependencies
npm install

# Dev mode with watch
npm run start:dev

# Build
npm run build

# Tests
npm test
npm run test:watch
npm run test:cov

# Formatting & linting
npm run format
npm run lint

Build

Built with tsup producing dual CJS/ESM output targeting ES2021:

OutputPath
ESMdist/index.js
CJSdist/index.cjs
Type declarationsdist/index.d.ts

Publishing

make publish

License

MIT

FAQs

Package last updated on 13 Jun 2026

Related posts