Skip to content

Commit

Permalink
fix(copy-uuid): deprecated warning (#1258)
Browse files Browse the repository at this point in the history
* chore(copy-uuid): deprecated warning

* fix: trigger ci and release
  • Loading branch information
kaiarrowood authored Mar 18, 2024
1 parent 93f1dbc commit 2e5cce4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/copy-uuid/src/components/CopyUuid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<script setup lang="ts">
import type { PropType } from 'vue'
import { computed, ref, inject } from 'vue'
import { computed, ref, inject, onMounted } from 'vue'
import { createI18n } from '@kong-ui-public/i18n'
import english from '../locales/en.json'
import { COPY_UUID_NOTIFY_KEY } from '../constants'
Expand Down Expand Up @@ -175,6 +175,10 @@ const copyIdToClipboard = (executeCopy: (prop: string) => boolean) => {
emit('success', props.uuid)
}
}
onMounted(() => {
console.warn('DEPRECATED: @kong-ui-public/copy-uuid package is deprecated in favor of @kong/kongponents KCopy component')
})
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit 2e5cce4

Please sign in to comment.