@unhead/vue 3.0.1 → 3.0.2

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/dist/index.d.mts CHANGED
@@ -8,7 +8,7 @@ export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, U
8
8
  export { UseScriptContext, UseScriptInput, UseScriptOptions, UseScriptReturn, VueScriptInstance, useScript } from './scripts.mjs';
9
9
  export { resolveUnrefHeadInput } from './utils.mjs';
10
10
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
11
- export { createUnhead } from 'unhead';
11
+ export { createUnhead, defineLink, defineScript } from 'unhead';
12
12
  import 'vue';
13
13
  import 'unhead/utils';
14
14
 
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, U
8
8
  export { UseScriptContext, UseScriptInput, UseScriptOptions, UseScriptReturn, VueScriptInstance, useScript } from './scripts.js';
9
9
  export { resolveUnrefHeadInput } from './utils.js';
10
10
  export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
11
- export { createUnhead } from 'unhead';
11
+ export { createUnhead, defineLink, defineScript } from 'unhead';
12
12
  import 'vue';
13
13
  import 'unhead/utils';
14
14
 
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  export { h as headSymbol, i as injectHead, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.D51lypTh.mjs';
2
2
  export { resolveUnrefHeadInput } from './utils.mjs';
3
3
  export { V as VueHeadMixin } from './shared/vue.C54fV9ES.mjs';
4
- export { createUnhead } from 'unhead';
4
+ export { createUnhead, defineLink, defineScript } from 'unhead';
5
5
  export { u as useScript } from './shared/vue.CC8Cvdls.mjs';
6
6
  import 'unhead/plugins';
7
7
  import 'unhead/utils';
@@ -10,7 +10,7 @@ interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit
10
10
  type UseScriptInput = string | (ResolvableProperties<Omit<GenericScript & DataKeys & SchemaAugmentations['script'], 'src'>> & {
11
11
  src: string;
12
12
  });
13
- interface UseScriptOptions<T extends Record<symbol | string, any> = Record<string, any>> extends Omit<HeadEntryOptions, 'head'>, Pick<UseScriptOptions$1<T>, 'use' | 'eventContext' | 'beforeInit'> {
13
+ interface UseScriptOptions<T extends Record<symbol | string, any> = Record<string, any>> extends Omit<HeadEntryOptions, 'head'>, Partial<Pick<UseScriptOptions$1<T>, 'use' | 'eventContext' | 'beforeInit'>> {
14
14
  /**
15
15
  * The trigger to load the script:
16
16
  * - `undefined` | `client` - (Default) Load the script on the client when this js is loaded.
package/dist/scripts.d.ts CHANGED
@@ -10,7 +10,7 @@ interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit
10
10
  type UseScriptInput = string | (ResolvableProperties<Omit<GenericScript & DataKeys & SchemaAugmentations['script'], 'src'>> & {
11
11
  src: string;
12
12
  });
13
- interface UseScriptOptions<T extends Record<symbol | string, any> = Record<string, any>> extends Omit<HeadEntryOptions, 'head'>, Pick<UseScriptOptions$1<T>, 'use' | 'eventContext' | 'beforeInit'> {
13
+ interface UseScriptOptions<T extends Record<symbol | string, any> = Record<string, any>> extends Omit<HeadEntryOptions, 'head'>, Partial<Pick<UseScriptOptions$1<T>, 'use' | 'eventContext' | 'beforeInit'>> {
14
14
  /**
15
15
  * The trigger to load the script:
16
16
  * - `undefined` | `client` - (Default) Load the script on the client when this js is loaded.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/vue",
3
3
  "type": "module",
4
- "version": "3.0.1",
4
+ "version": "3.0.2",
5
5
  "description": "Full-stack <head> manager built for Vue.",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -147,8 +147,8 @@
147
147
  "magic-string": "^0.30.21",
148
148
  "oxc-parser": "^0.124.0",
149
149
  "oxc-walker": "^0.7.0",
150
- "@unhead/bundler": "3.0.1",
151
- "unhead": "3.0.1"
150
+ "@unhead/bundler": "3.0.2",
151
+ "unhead": "3.0.2"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@vue/server-renderer": "^3.5.32",