adata-ui 2.0.40 → 2.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import QRCode from 'qrcode'
2
+ import { toCanvas } from 'qrcode'
3
3
  import { removeTrailingSlash } from '#adata-ui/components/utils/removeTrailingSlash'
4
4
 
5
5
  const props = defineProps<{
@@ -65,7 +65,7 @@ watch(isOpen, async (value) => {
65
65
  const canvas = document.getElementById('kaspiQr') as HTMLCanvasElement | null
66
66
  if (!canvas) return
67
67
 
68
- QRCode.toCanvas(
68
+ toCanvas(
69
69
  canvas,
70
70
  props.requestUrl,
71
71
  {
@@ -180,6 +180,7 @@ onBeforeUnmount(() => {
180
180
  <a-checkbox
181
181
  v-model="agreement"
182
182
  side="right"
183
+ name="confirm-agreement"
183
184
  >
184
185
  <i18n-t keypath="modals.id.register.agreement.text">
185
186
  <template #link>
@@ -1,4 +1,4 @@
1
- import { removeTrailingSlash } from '#adata-ui/components/modals/id/helpers/removeTrailingSlash'
1
+ import { removeTrailingSlash } from '#adata-ui/components/utils/removeTrailingSlash'
2
2
 
3
3
  export function useBuyTariffs() {
4
4
  const { commonAuth } = useAppConfig()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.40",
4
+ "version": "2.0.42",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",