Skip to content

Commit f0e4c06

Browse files
committed
chore: bump
1 parent b0faadb commit f0e4c06

23 files changed

Lines changed: 29 additions & 29 deletions

docs/content/docs/1.guides/1.registry-scripts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ Registry scripts doesn't stop you from making use of the core [`useScript()`{lan
157157
- `scriptInput` - Additional input to pass to the script. Same as [useScript Input](/docs/api/use-script#scriptinput).
158158

159159
```ts
160-
import { useScriptCloudflareWebAnalytics } from '#imports'
161160
import { useTimeout } from '@vueuse/core'
161+
import { useScriptCloudflareWebAnalytics } from '#imports'
162162

163163
const { ready } = useTimeout(5000)
164164
useScriptCloudflareWebAnalytics({
@@ -256,8 +256,8 @@ export default defineNuxtConfig({
256256
Then create your custom script composable:
257257

258258
```ts [composables/useScriptMyAnalytics.ts]
259-
import { useRegistryScript } from '#nuxt-scripts/utils'
260259
import { object, string } from 'valibot'
260+
import { useRegistryScript } from '#nuxt-scripts/utils'
261261

262262
export interface MyAnalyticsApi {
263263
track: (event: string, data?: Record<string, any>) => void

packages/script/src/plugins/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { RegistryScript } from '#nuxt-scripts/types'
21
import type { FetchOptions } from 'ofetch'
32
import type { SourceMapInput } from 'rollup'
43
import type { InferInput } from 'valibot'
4+
import type { RegistryScript } from '#nuxt-scripts/types'
55
import type { ProxyConfig, ProxyRewrite } from '../runtime/types'
66
import { createHash } from 'node:crypto'
77
import fsp from 'node:fs/promises'

packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMaps.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
2+
import type { HTMLAttributes, ReservedProps, ShallowRef } from 'vue'
23
/// <reference types="google.maps" />
34
import type { ElementScriptTrigger } from '#nuxt-scripts/types'
4-
import type { HTMLAttributes, ReservedProps, ShallowRef } from 'vue'
55
66
export { MAP_INJECTION_KEY } from './useGoogleMapsResource'
77
@@ -150,12 +150,12 @@ export interface ScriptGoogleMapsSlots {
150150
</script>
151151

152152
<script lang="ts" setup>
153-
import { useScriptTriggerElement } from '#nuxt-scripts/composables/useScriptTriggerElement'
154-
import { useScriptGoogleMaps } from '#nuxt-scripts/registry/google-maps'
155-
import { scriptRuntimeConfig, scriptsPrefix } from '#nuxt-scripts/utils'
156153
import { defu } from 'defu'
157154
import { tryUseNuxtApp, useHead, useRuntimeConfig } from 'nuxt/app'
158155
import { computed, nextTick, onBeforeUnmount, onMounted, provide, ref, shallowRef, toRaw, useAttrs, useTemplateRef, watch } from 'vue'
156+
import { useScriptTriggerElement } from '#nuxt-scripts/composables/useScriptTriggerElement'
157+
import { useScriptGoogleMaps } from '#nuxt-scripts/registry/google-maps'
158+
import { scriptRuntimeConfig, scriptsPrefix } from '#nuxt-scripts/utils'
159159
import ScriptAriaLoadingIndicator from '../ScriptAriaLoadingIndicator.vue'
160160
import { defineDeprecatedAlias, MAP_INJECTION_KEY, waitForMapsReady, warnDeprecatedTopLevelMapProps } from './useGoogleMapsResource'
161161

packages/script/src/runtime/components/GoogleMaps/ScriptGoogleMapsStaticMap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
/// <reference types="google.maps" />
33
import type { QueryObject } from 'ufo'
44
import type { ImgHTMLAttributes, ReservedProps } from 'vue'
5-
import { scriptRuntimeConfig } from '#nuxt-scripts/utils'
65
import { defu } from 'defu'
76
import { useHead, useRuntimeConfig } from 'nuxt/app'
87
import { withQuery } from 'ufo'
98
import { computed, onMounted, ref } from 'vue'
9+
import { scriptRuntimeConfig } from '#nuxt-scripts/utils'
1010
import { useScriptProxyUrl } from '../../composables/useScriptProxyUrl'
1111
</script>
1212

packages/script/src/runtime/components/ScriptPayPalButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import type { ElementScriptTrigger } from '#nuxt-scripts/types'
32
import type {
43
Components,
54
CreateInstanceOptions,
@@ -8,6 +7,7 @@ import type {
87
SdkInstance,
98
} from '@paypal/paypal-js/sdk-v6'
109
import type { HTMLAttributes, ReservedProps } from 'vue'
10+
import type { ElementScriptTrigger } from '#nuxt-scripts/types'
1111
import type { PayPalInput } from '../registry/paypal'
1212
import { defu } from 'defu'
1313
import { computed, onBeforeUnmount, onMounted, ref, resolveComponent, shallowRef } from 'vue'

packages/script/src/runtime/components/ScriptPayPalMessages.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import type { ElementScriptTrigger } from '#nuxt-scripts/types'
32
import type {
43
Components,
54
CreateInstanceOptions,
@@ -10,6 +9,7 @@ import type {
109
SdkInstance,
1110
} from '@paypal/paypal-js/sdk-v6'
1211
import type { HTMLAttributes, ReservedProps } from 'vue'
12+
import type { ElementScriptTrigger } from '#nuxt-scripts/types'
1313
import type { PayPalInput } from '../registry/paypal'
1414
import { defu } from 'defu'
1515
import { computed, onBeforeUnmount, onMounted, ref, resolveComponent, shallowRef } from 'vue'

packages/script/src/runtime/composables/useScript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { UseScriptInput, UseScriptOptions, VueScriptInstance } from '@unhead/vue/scripts'
22
import type { NuxtDevToolsNetworkRequest, NuxtDevToolsScriptInstance, NuxtUseScriptOptions, UseFunctionType, UseScriptContext } from '../types'
3-
// @ts-expect-error virtual template
4-
import { resolveTrigger } from '#build/nuxt-scripts-trigger-resolver'
53
import { useScript as _useScript } from '@unhead/vue/scripts'
64
import { defu } from 'defu'
75
import { injectHead, onNuxtReady, useHead, useNuxtApp, useRuntimeConfig } from 'nuxt/app'
86
import { markRaw, ref } from 'vue'
7+
// @ts-expect-error virtual template
8+
import { resolveTrigger } from '#build/nuxt-scripts-trigger-resolver'
99
import { logger } from '../logger'
1010

1111
type NuxtScriptsApp = ReturnType<typeof useNuxtApp> & {

packages/script/src/runtime/registry/google-analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ConsentState, RegistryScriptInput, UseScriptContext } from '#nuxt-scripts/types'
2-
import { useRegistryScript } from '#nuxt-scripts/utils'
32
import { withQuery } from 'ufo'
3+
import { useRegistryScript } from '#nuxt-scripts/utils'
44
import { GoogleAnalyticsOptions } from './schemas'
55

66
export type GtagCustomParams = Record<string, any>

packages/script/src/runtime/registry/google-recaptcha.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RegistryScriptInput } from '#nuxt-scripts/types'
2-
import { useRegistryScript } from '#nuxt-scripts/utils'
32
import { withQuery } from 'ufo'
3+
import { useRegistryScript } from '#nuxt-scripts/utils'
44
import { GoogleRecaptchaOptions } from './schemas'
55

66
export { GoogleRecaptchaOptions }

packages/script/src/runtime/registry/google-tag-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ConsentState, NuxtUseScriptOptions, RegistryScriptInput, UseFunctionType, UseScriptContext } from '#nuxt-scripts/types'
22
import type { GTag } from './google-analytics'
3-
import { useRegistryScript } from '#nuxt-scripts/utils'
43
import { withQuery } from 'ufo'
4+
import { useRegistryScript } from '#nuxt-scripts/utils'
55
import { GoogleTagManagerOptions } from './schemas'
66

77
/**

0 commit comments

Comments
 (0)