@dargmuesli/nuxt-vio 20.1.5 → 20.2.0

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.
package/.config/lint.js CHANGED
@@ -12,9 +12,9 @@ const constants = await jiti.import('../shared/utils/constants.ts')
12
12
  // @ts-ignore
13
13
  const POLYFILLS = constants.POLYFILLS
14
14
 
15
- const vueI18nConfiguration = vueI18n.configs['flat/recommended']
15
+ const vueI18nConfiguration = vueI18n.configs.recommended
16
16
  const compatConfiguration = eslintPluginCompat.configs['flat/recommended']
17
- const ymlConfiguration = eslintPluginYml.configs['flat/recommended']
17
+ const ymlConfiguration = eslintPluginYml.configs.recommended
18
18
  const prettierConfiguration = eslintPluginPrettierRecommended
19
19
 
20
20
  export const VIO_ESLINT_CONFIG = [
@@ -90,7 +90,7 @@
90
90
 
91
91
  a[target='_blank']:not([is-external-icon-disabled])::after {
92
92
  /* inline-table centers the element vertically in the tiptap text area, instead of inline-block */
93
- @apply ml-[5px] inline-table h-3 w-3 bg-current;
93
+ @apply ml-1.25 inline-table h-3 w-3 bg-current;
94
94
 
95
95
  content: '';
96
96
  mask: url('data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJhcnJvdy11cC1yaWdodC1mcm9tLXNxdWFyZSIgY2xhc3M9InN2Zy1pbmxpbmUtLWZhIGZhLWFycm93LXVwLXJpZ2h0LWZyb20tc3F1YXJlIiByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTM4NCAzMjBjLTE3LjY3IDAtMzIgMTQuMzMtMzIgMzJ2OTZINjRWMTYwaDk2YzE3LjY3IDAgMzItMTQuMzIgMzItMzJzLTE0LjMzLTMyLTMyLTMyTDY0IDk2Yy0zNS4zNSAwLTY0IDI4LjY1LTY0IDY0VjQ0OGMwIDM1LjM0IDI4LjY1IDY0IDY0IDY0aDI4OGMzNS4zNSAwIDY0LTI4LjY2IDY0LTY0di05NkM0MTYgMzM0LjMgNDAxLjcgMzIwIDM4NCAzMjB6TTUwMi42IDkuMzY3QzQ5Ni44IDMuNTc4IDQ4OC44IDAgNDgwIDBoLTE2MGMtMTcuNjcgMC0zMS4xIDE0LjMyLTMxLjEgMzEuMWMwIDE3LjY3IDE0LjMyIDMxLjEgMzEuOTkgMzEuMWg4Mi43NUwxNzguNyAyOTAuN2MtMTIuNSAxMi41LTEyLjUgMzIuNzYgMCA0NS4yNkMxOTEuMiAzNDguNSAyMTEuNSAzNDguNSAyMjQgMzM2bDIyNC0yMjYuOFYxOTJjMCAxNy42NyAxNC4zMyAzMS4xIDMxLjEgMzEuMVM1MTIgMjA5LjcgNTEyIDE5MlYzMS4xQzUxMiAyMy4xNiA1MDguNCAxNS4xNiA1MDIuNiA5LjM2N3oiPjwvcGF0aD48L3N2Zz4K')
@@ -17,12 +17,14 @@
17
17
  :class="{
18
18
  'animate-shake': form.$error,
19
19
  }"
20
+ :disabled="isLoading"
20
21
  type="submit"
21
22
  @click="emit('click')"
22
23
  >
23
24
  {{ submitName || t('submit') }}
24
25
  <template #prefix>
25
- <slot name="submit-icon" />
26
+ <VioLoaderIndicatorSpinner v-if="isLoading" class="size-8" />
27
+ <slot v-else name="submit-icon" />
26
28
  </template>
27
29
  </VioButtonColored>
28
30
  <VioFormInputStateError v-if="form.$error" class="mt-2">
@@ -49,6 +51,7 @@ interface Props {
49
51
  form: BaseValidation
50
52
  formClass?: string
51
53
  isFormSent?: boolean
54
+ isLoading?: boolean
52
55
  submitName?: string
53
56
  }
54
57
  const props = withDefaults(defineProps<Props>(), {
@@ -56,6 +59,7 @@ const props = withDefaults(defineProps<Props>(), {
56
59
  errorsPgIds: undefined,
57
60
  formClass: undefined,
58
61
  isFormSent: false,
62
+ isLoading: undefined,
59
63
  submitName: undefined,
60
64
  })
61
65
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <VioLoaderIndicator>
3
3
  <svg
4
- class="animate-spin text-black dark:text-white"
4
+ class="animate-spin"
5
5
  xmlns="http://www.w3.org/2000/svg"
6
6
  fill="none"
7
7
  viewBox="0 0 24 24"
package/nuxt.config.ts CHANGED
@@ -4,6 +4,7 @@ import { dirname, join } from 'node:path'
4
4
  import tailwindcss from '@tailwindcss/vite'
5
5
  import { defu } from 'defu'
6
6
 
7
+ import { IS_IN_STACK } from './node'
7
8
  import {
8
9
  SITE_URL,
9
10
  VIO_SITE_NAME,
@@ -29,7 +30,7 @@ export default defineNuxtConfig(
29
30
  },
30
31
  },
31
32
  compatibilityDate: '2024-04-03',
32
- ...(process.env.NUXT_PUBLIC_SITE_URL
33
+ ...(IS_IN_STACK
33
34
  ? {}
34
35
  : {
35
36
  devServer: {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "dependencies": {
3
- "@dargmuesli/nuxt-cookie-control": "9.1.11",
4
- "@eslint/compat": "2.0.0",
3
+ "@dargmuesli/nuxt-cookie-control": "9.1.13",
4
+ "@eslint/compat": "2.0.1",
5
5
  "@heroicons/vue": "2.2.0",
6
6
  "@http-util/status-i18n": "0.9.0",
7
- "@intlify/eslint-plugin-vue-i18n": "4.1.0",
7
+ "@intlify/eslint-plugin-vue-i18n": "4.1.1",
8
8
  "@nuxt/devtools": "3.1.1",
9
9
  "@nuxt/eslint": "1.12.1",
10
10
  "@nuxt/image": "2.0.0",
@@ -28,14 +28,14 @@
28
28
  "eslint": "9.39.2",
29
29
  "eslint-config-prettier": "10.1.8",
30
30
  "eslint-plugin-compat": "6.0.2",
31
- "eslint-plugin-prettier": "5.5.4",
32
- "eslint-plugin-yml": "1.19.1",
31
+ "eslint-plugin-prettier": "5.5.5",
32
+ "eslint-plugin-yml": "3.0.0",
33
33
  "globals": "17.0.0",
34
34
  "jiti": "2.6.1",
35
35
  "jose": "6.1.3",
36
36
  "lucide-vue-next": "0.562.0",
37
37
  "nuxt-gtag": "4.1.0",
38
- "nuxt-security": "2.5.0",
38
+ "nuxt-security": "2.5.1",
39
39
  "reka-ui": "2.7.0",
40
40
  "shadcn-nuxt": "2.4.3",
41
41
  "tailwind-merge": "3.4.0",
@@ -44,26 +44,26 @@
44
44
  "vue-tsc": "3.2.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/node": "24.10.4",
47
+ "@types/node": "24.10.9",
48
48
  "@urql/devtools": "2.0.3",
49
- "@urql/exchange-graphcache": "8.1.0",
49
+ "@urql/exchange-graphcache": "9.0.0",
50
50
  "@vueuse/core": "14.1.0",
51
51
  "consola": "3.4.2",
52
52
  "defu": "6.1.4",
53
- "h3": "1.15.4",
54
- "lodash-es": "4.17.22",
53
+ "h3": "1.15.5",
54
+ "lodash-es": "4.17.23",
55
55
  "nuxt": "4.2.2",
56
56
  "pinia": "3.0.4",
57
- "prettier": "3.7.4",
57
+ "prettier": "3.8.1",
58
58
  "prettier-plugin-tailwindcss": "0.7.2",
59
59
  "serve": "14.2.5",
60
60
  "sharp": "0.34.5",
61
- "stylelint": "16.26.1",
61
+ "stylelint": "17.0.0",
62
62
  "stylelint-config-recommended-vue": "1.6.1",
63
- "stylelint-config-standard": "39.0.1",
63
+ "stylelint-config-standard": "40.0.0",
64
64
  "stylelint-no-unsupported-browser-features": "8.0.5",
65
65
  "tailwindcss": "4.1.18",
66
- "vue": "3.5.26",
66
+ "vue": "3.5.27",
67
67
  "vue-router": "4.6.4"
68
68
  },
69
69
  "engines": {
@@ -114,5 +114,5 @@
114
114
  "start:static": "serve playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
115
115
  },
116
116
  "type": "module",
117
- "version": "20.1.5"
117
+ "version": "20.2.0"
118
118
  }