Skip to content

Commit

Permalink
fix(OUIA): restored ouia type V-PF3/ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorromeo committed Apr 29, 2022
1 parent 130acf9 commit 3a6ff51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [0.3.4] - 2022-04-29
### Fixed
- fix(OUIA): restored ouia type `V-PF3/` prefix.

## [0.3.3] - 2022-04-29
### Fixed
- fix: changed typescript types to correctly handle null/undefined.
Expand Down Expand Up @@ -411,7 +415,8 @@ disabled, as per PatternFly design guidelines.
- `pf-toolbar` component
- `pf-utilization-bar-chart` component

[Unreleased]: https://github.com/mtorromeo/vue-patternfly/compare/v0.3.3...HEAD
[Unreleased]: https://github.com/mtorromeo/vue-patternfly/compare/v0.3.4...HEAD
[0.3.4]: https://github.com/mtorromeo/vue-patternfly/compare/v0.3.3...v0.3.4
[0.3.3]: https://github.com/mtorromeo/vue-patternfly/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/mtorromeo/vue-patternfly/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/mtorromeo/vue-patternfly/compare/v0.3.0...v0.3.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-patternfly",
"version": "0.3.3",
"version": "0.3.4",
"description": "PatternFly 3 components for Vue 3",
"main": "dist/vue-patternfly.umd.js",
"module": "dist/vue-patternfly.es.js",
Expand Down
4 changes: 2 additions & 2 deletions src/ouia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export function useOUIAProps(props: OUIAProps, {
} = {}) {
if (name === null) {
const instance = getCurrentInstance();
name = instance?.proxy?.$options.name;
name = instance?.proxy?.$options.name?.replace(/^pf-|^Pf/, '');
}

return {
ouiaProps: computed(() => ({
'data-ouia-component-type': name,
'data-ouia-component-type': `V-PF3/${name}`,
'data-ouia-safe': unref(safe) ?? props.ouiaSafe,
'data-ouia-component-id': props.ouiaId || getDefaultOUIAId(name, variant),
})),
Expand Down

0 comments on commit 3a6ff51

Please sign in to comment.