Skip to content

feat(FzCardList): re-export FzActionProps and FzBadgeTone from the package entry#383

Draft
sergioterrasifiscozen wants to merge 1 commit into
mainfrom
chore/card-list-reexport-types
Draft

feat(FzCardList): re-export FzActionProps and FzBadgeTone from the package entry#383
sergioterrasifiscozen wants to merge 1 commit into
mainfrom
chore/card-list-reexport-types

Conversation

@sergioterrasifiscozen

@sergioterrasifiscozen sergioterrasifiscozen commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Cosa

@fiscozen/card-list ora re-esporta FzActionProps (originale @fiscozen/action) e FzBadgeTone (originale @fiscozen/badge) dal suo entry point. Entrambi i tipi sono parte della superficie pubblica di FzCardList:

  • FzActionProps finisce in FzCardListItemProps.actions e nella firma di fzaction:click.
  • FzBadgeTone finisce in FzCardListItemProps.badge.

Prima:

import { FzCardList, type FzCardListItem } from '@fiscozen/card-list'
import type { FzActionProps } from '@fiscozen/action'
import type { FzBadgeTone } from '@fiscozen/badge'

Dopo:

import {
  FzCardList,
  type FzCardListItem,
  type FzActionProps,
  type FzBadgeTone,
} from '@fiscozen/card-list'

Nessun cambio di behavior. I tipi originali rimangono dichiarati in @fiscozen/action / @fiscozen/badge (questo è solo un re-export).

Cosa fare in app dopo il rilascio di @fiscozen/card-list@1.0.4

  1. Bump @fiscozen/card-list da ^1.0.3 a ^1.0.4 in frontoffice/package.json (caret pin). Solo FO usa il pacchetto.
  2. Cleanup import (opzionale, DX): nei 4 file FO che usano <FzCardList> con actions, accorpare l'import in un'unica riga da @fiscozen/card-list:
    • frontoffice/src/components/customers/Customers.vue
    • frontoffice/src/components/messages/Messages.vue
    • frontoffice/src/components/providers/Providers.vue
    • frontoffice/src/components/documents/Documents.vue

…ackage entry

Both types are part of the public surface of FzCardList:
- FzActionProps is consumed by FzCardListItemProps.actions and emitted
  in the fzaction:click signature.
- FzBadgeTone is consumed by FzCardListItemProps.badge.

Re-exporting them from @fiscozen/card-list lets consumers obtain the
typings from the same entry as the components, without depending on
@fiscozen/action or @fiscozen/badge directly.

Add a small spec that locks the contract: importing the re-exported
types from the package barrel must keep compiling under vue-tsc.

No behavior change.
@sergioterrasifiscozen sergioterrasifiscozen self-assigned this May 18, 2026
@sergioterrasifiscozen sergioterrasifiscozen requested review from francesca-vago and removed request for francesca-vago May 18, 2026 11:01
@sergioterrasifiscozen sergioterrasifiscozen added the enhancement New feature or request label May 18, 2026
@sergioterrasifiscozen sergioterrasifiscozen changed the title chore(FzCardList): re-export FzActionProps and FzBadgeTone from the package entry feat(FzCardList): re-export FzActionProps and FzBadgeTone from the package entry May 18, 2026
@sergioterrasifiscozen sergioterrasifiscozen marked this pull request as draft May 28, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants