feat: add abstraction layer for services, composables, and plugin (ENG-37137)#505
Merged
robsongajunior merged 3 commits intomainfrom Apr 2, 2026
Merged
Conversation
…les, and plugin (ENG-37137) - Add useToast wrapper composable with semantic shortcuts (success, error, warn, info) - Add useDialog wrapper composable - Add FilterMatchMode re-export via api entry point - Add DynamicDialog and ConfirmDialog wrapper components - Add Tooltip directive re-export - Add WebkitPlugin that registers PrimeVue, ToastService, DialogService, and Tooltip - Update package.json with 7 new exports - Add abstraction approaches documentation
gdsantana
approved these changes
Apr 2, 2026
Wrappers previously relied on Vue's implicit inheritAttrs fallthrough for the pt (passthrough) prop, which is fragile. Now explicitly declared and forwarded in: accordion-tab, breadcrumb, card, column, message, progressbar, steps, tabmenu, tabpanel, tag, timeline, toast.
robsongajunior
approved these changes
Apr 2, 2026
1 task
Collaborator
|
🎉 This PR is included in version 1.18.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Collaborator
|
🎉 This PR is included in version 1.9.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
app.use(WebkitPlugin)toast.add()) e adiciona atalhos semanticos (toast.success(),toast.error(),toast.warn(),toast.info())useDialogdo PrimeVue@aziontech/webkit/api) e Tooltip directive (@aziontech/webkit/tooltip)Motivacao
Permitir que o console-kit remova a dependencia direta do
primevuedo seupackage.json, usando o webkit como unica camada de abstracao. A migracao no console-kit sera mecanica (troca de import paths em ~100 arquivos), sem mudanca de logica.Novos exports
@aziontech/webkit/plugin@aziontech/webkit/use-toast@aziontech/webkit/use-dialog@aziontech/webkit/api@aziontech/webkit/dynamic-dialog@aziontech/webkit/confirm-dialog@aziontech/webkit/tooltipComo o console-kit vai consumir
Test plan
useToasteuseDialogfuncionam quando oWebkitPluginesta registradotoast.add()(API original) continua funcionandotoast.success(),toast.error()disparam corretamenteDynamicDialogeConfirmDialogrenderizamFilterMatchMode.CONTAINSresolve corretamente