# Changelog

All notable changes to `@todovue/tv-label` will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/).

## [1.2.4] - 2026-01-27

### Changed
- Simplified build scripts to improve maintainability. 
- Updated package configuration files to the latest versions.

## [1.2.3] - 2026-01-27

### Changed
- Moved the `@todovue/tv-demo` component import from main.js to `Demo.vue` to localize its usage.

### Removed
- Eliminated the global import of the `@todovue/tv-demo` component from `main.js`.

## [1.2.2] - 2026-01-26

### Changed
- Updated the release workflow to automate publishing to npm and the generation of GitHub Releases.
- Added the `src` directory to the list of ignored files within the `package.json` configuration.
- Added a demo entry point to the `package.json` configuration.

### Dependencies
- Updated `@todovue/tv-demo` to `^1.4.10`.
- Updated `vue` to `^3.5.27`.
- Updated `sass` to `^1.97.3`.

## [1.2.1] - 2026-01-19

### Added
- Introduced an outline variant to the component library for expanded styling options.

### Dependencies
- Updated `@todovue/tv-demo` to `^1.4.3`.

### Changed
* Updated the `release.yml` workflow to support automated publishing to GitHub Packages.
* Modified the repository name in `package.json` to ensure consistency with the package registry.
* Updated the `README.md` documentation to include details and usage examples for the new property.

## [1.2.0] - 2026-01-17

### Added
- Added size variants (`sm`, `md`, `lg`) for enhanced flexibility in UI design.
- Enhanced `TvLabel` styles with improved sizing, alignment, and hover effects.

### Dependencies
- Updated `@todovue/tv-demo` to `^1.4.0`.
- Updated `sass` to `^1.97.2`.
- Updated `vite` to `^7.3.1`.

## [1.1.2] - 2025-12-19

### Added
- Added automatic publishing to the TODOvue cPanel in `release.yml` for each release, simplifying package distribution and updates.
- Added `package-lock.json` to the repository to ensure dependency consistency and facilitate version management across development and production environments.

### Changed
- Changed the `base` option in `vite.config.js` for website deployment in cpanel.

### Fixed
- Fixed repository URL in `package.json` to point to the correct GitHub repository.
- Fixed the token configuration used to generate the package in the GitHub Actions workflow `release.yml`.

### Dependencies
- Updated dependency versions in `package.json` to maintain compatibility and benefit from improvements and bug fixes in the used libraries.

## [1.1.1] - 2025-11-21

### Fixed
- Prevent duplicate CSS import for TvButton

## [1.1.0] - 2025-11-20

### Added
- Added `nux.js` configuration file for Nuxt 4 integration.
- Added `tsconfig.json` for proper type checking during build.
- Create `global.d.ts` to declare module for TypeScript users.
- Added Nuxt module for automatic style injection and auto-registration of the `TvLabel` component.
- The `@todovue/tv-label` component is now externalized from the final build, reducing bundle size.
- Added `CHANGELOG.md` in script to generate demo and documentation site.

### Dependencies
- Updated the `@todovue/tv-demo` dependency to `^1.2.0` to ensure compatibility with the latest changes.

## [1.0.3] - 2025-11-15

### Changed
- Removed CSS injection at runtime via `vite-plugin-css-injected-by-js`.
- Styles are now served from separate CSS files generated by Vite (`dist/*.css`) and must be imported explicitly in the consuming app (SPA or Nuxt).
- Improved SSR/SSG compatibility, especially for Nuxt applications, by relying on standard CSS assets instead of runtime style injection.

## [1.0.2] - 2025-10-17

### Fixed
- Configuration of `vite.config.js`: Set `src/entry.ts` as the entry point for the library in build mode.

## [1.0.1] - 2025-10-17

### Changed
- Changed node-version to workflows release.yml to 20.
- The library build now uses `src/entry.ts` (exports both the component and the plugin) instead of directly exporting the `.vue` file.
- Updated import demo examples.
- Updated documentation for usage in SSR and Nuxt applications.

### Dependencies
- Updated Vite to `^7.0.0` to ensure compatibility with Node.js 20.19+.
- Updated @vitejs/plugin-vue to `^6.0.0`

## [1.0.0] - 2025-05-05

### Added
- Initial release of `TvLabel` component.
- Support for `color` and `textColor` props for full color customization.
- Support for optional `isEdit` and `isRemove` icons with configurable `iconPosition`.
- `textLabel` prop as an alternative to using slot content.
- Full slot support for flexible usage.
- Emits `click-label` and native `click` events.
- Integrated styles for seamless appearance in any layout.
- Ready-to-use demo and documentation site.

[1.2.4]: https://github.com/TODOvue/todovue-label/pull/16/files
[1.2.3]: https://github.com/TODOvue/todovue-label/pull/15/files
[1.2.2]: https://github.com/TODOvue/todovue-label/pull/14/files
[1.2.1]: https://github.com/TODOvue/todovue-label/pull/13/files
[1.2.0]: https://github.com/TODOvue/todovue-label/pull/12/files
[1.1.2]: https://github.com/TODOvue/todovue-label/pull/11/files
[1.1.1]: https://github.com/TODOvue/todovue-label/pull/10/files
[1.1.0]: https://github.com/TODOvue/todovue-label/pull/9/files
[1.0.3]: https://github.com/TODOvue/todovue-label/pull/8/files
[1.0.2]: https://github.com/TODOvue/todovue-label/pull/7/files
[1.0.1]: https://github.com/TODOvue/todovue-label/pull/6/files
[1.0.0]: https://github.com/TODOvue/todovue-label/pull/5/files
