@unhead/vue 2.0.0-alpha.3 → 2.0.0-alpha.4
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.cjs +2 -4
- package/dist/index.d.cts +4 -8
- package/dist/index.d.mts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.mjs +3 -5
- package/dist/legacy.d.cts +1 -1
- package/dist/legacy.d.mts +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/types.d.cts +1 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const shared = require('@unhead/shared');
|
|
4
3
|
const unhead = require('unhead');
|
|
5
4
|
const composables = require('./shared/vue.Btxz9wTa.cjs');
|
|
5
|
+
const shared = require('@unhead/shared');
|
|
6
6
|
const VueHeadMixin = require('./shared/vue.DFf1FJKf.cjs');
|
|
7
7
|
require('vue');
|
|
8
8
|
|
|
@@ -10,9 +10,8 @@ const unheadVueComposablesImports = {
|
|
|
10
10
|
"@unhead/vue": ["injectHead", ...shared.composableNames]
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
const CapoPlugin = () => shared.defineHeadPlugin({});
|
|
14
|
-
|
|
15
13
|
exports.createHeadCore = unhead.createHeadCore;
|
|
14
|
+
exports.headSymbol = composables.headSymbol;
|
|
16
15
|
exports.injectHead = composables.injectHead;
|
|
17
16
|
exports.resolveUnrefHeadInput = composables.resolveUnrefHeadInput;
|
|
18
17
|
exports.useHead = composables.useHead;
|
|
@@ -22,5 +21,4 @@ exports.useServerHead = composables.useServerHead;
|
|
|
22
21
|
exports.useServerHeadSafe = composables.useServerHeadSafe;
|
|
23
22
|
exports.useServerSeoMeta = composables.useServerSeoMeta;
|
|
24
23
|
exports.VueHeadMixin = VueHeadMixin.VueHeadMixin;
|
|
25
|
-
exports.CapoPlugin = CapoPlugin;
|
|
26
24
|
exports.unheadVueComposablesImports = unheadVueComposablesImports;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _unhead_schema from '@unhead/schema';
|
|
2
|
-
import { MergeHead, ActiveHeadEntry } from '@unhead/schema';
|
|
3
|
-
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, Unhead } from '@unhead/schema';
|
|
4
1
|
export { createHeadCore } from 'unhead';
|
|
5
2
|
export { r as resolveUnrefHeadInput } from './shared/vue.BF-HCrO8.cjs';
|
|
3
|
+
import { MergeHead, ActiveHeadEntry } from '@unhead/schema';
|
|
4
|
+
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from '@unhead/schema';
|
|
6
5
|
import { VueHeadClient, UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput } from './types.cjs';
|
|
7
6
|
export { Base, BodyAttr, BodyAttributes, HeadSafe, HtmlAttr, HtmlAttributes, Link, MaybeComputedRef, MaybeComputedRefEntries, MaybeComputedRefEntriesOnly, MaybeComputedRefOrFalsy, MaybeComputedRefOrPromise, MaybeReadonlyRef, Meta, Noscript, ReactiveHead, Script, Style, Title, TitleTemplate } from './types.cjs';
|
|
8
7
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.cjs';
|
|
@@ -20,9 +19,6 @@ declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, opti
|
|
|
20
19
|
declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
|
|
21
20
|
declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
* @deprecated TODO remove
|
|
25
|
-
*/
|
|
26
|
-
declare const CapoPlugin: () => _unhead_schema.HeadPluginInput;
|
|
22
|
+
declare const headSymbol = "usehead";
|
|
27
23
|
|
|
28
|
-
export {
|
|
24
|
+
export { UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _unhead_schema from '@unhead/schema';
|
|
2
|
-
import { MergeHead, ActiveHeadEntry } from '@unhead/schema';
|
|
3
|
-
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, Unhead } from '@unhead/schema';
|
|
4
1
|
export { createHeadCore } from 'unhead';
|
|
5
2
|
export { r as resolveUnrefHeadInput } from './shared/vue.BF-HCrO8.mjs';
|
|
3
|
+
import { MergeHead, ActiveHeadEntry } from '@unhead/schema';
|
|
4
|
+
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from '@unhead/schema';
|
|
6
5
|
import { VueHeadClient, UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput } from './types.mjs';
|
|
7
6
|
export { Base, BodyAttr, BodyAttributes, HeadSafe, HtmlAttr, HtmlAttributes, Link, MaybeComputedRef, MaybeComputedRefEntries, MaybeComputedRefEntriesOnly, MaybeComputedRefOrFalsy, MaybeComputedRefOrPromise, MaybeReadonlyRef, Meta, Noscript, ReactiveHead, Script, Style, Title, TitleTemplate } from './types.mjs';
|
|
8
7
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
|
|
@@ -20,9 +19,6 @@ declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, opti
|
|
|
20
19
|
declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
|
|
21
20
|
declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
* @deprecated TODO remove
|
|
25
|
-
*/
|
|
26
|
-
declare const CapoPlugin: () => _unhead_schema.HeadPluginInput;
|
|
22
|
+
declare const headSymbol = "usehead";
|
|
27
23
|
|
|
28
|
-
export {
|
|
24
|
+
export { UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _unhead_schema from '@unhead/schema';
|
|
2
|
-
import { MergeHead, ActiveHeadEntry } from '@unhead/schema';
|
|
3
|
-
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, Unhead } from '@unhead/schema';
|
|
4
1
|
export { createHeadCore } from 'unhead';
|
|
5
2
|
export { r as resolveUnrefHeadInput } from './shared/vue.BF-HCrO8.js';
|
|
3
|
+
import { MergeHead, ActiveHeadEntry } from '@unhead/schema';
|
|
4
|
+
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from '@unhead/schema';
|
|
6
5
|
import { VueHeadClient, UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput } from './types.js';
|
|
7
6
|
export { Base, BodyAttr, BodyAttributes, HeadSafe, HtmlAttr, HtmlAttributes, Link, MaybeComputedRef, MaybeComputedRefEntries, MaybeComputedRefEntriesOnly, MaybeComputedRefOrFalsy, MaybeComputedRefOrPromise, MaybeReadonlyRef, Meta, Noscript, ReactiveHead, Script, Style, Title, TitleTemplate } from './types.js';
|
|
8
7
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
|
|
@@ -20,9 +19,6 @@ declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, opti
|
|
|
20
19
|
declare function useServerHeadSafe(input: UseHeadSafeInput, options?: UseHeadOptions): ActiveHeadEntry<any>;
|
|
21
20
|
declare function useServerSeoMeta(input: UseSeoMetaInput, options?: UseHeadOptions): ActiveHeadEntry<UseSeoMetaInput>;
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
* @deprecated TODO remove
|
|
25
|
-
*/
|
|
26
|
-
declare const CapoPlugin: () => _unhead_schema.HeadPluginInput;
|
|
22
|
+
declare const headSymbol = "usehead";
|
|
27
23
|
|
|
28
|
-
export {
|
|
24
|
+
export { UseHeadInput, UseHeadOptions, UseHeadSafeInput, UseSeoMetaInput, VueHeadClient, headSymbol, injectHead, unheadVueComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { composableNames, defineHeadPlugin } from '@unhead/shared';
|
|
2
1
|
export { createHeadCore } from 'unhead';
|
|
3
|
-
export { i as injectHead, r as resolveUnrefHeadInput, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.D2UzSD_b.mjs';
|
|
2
|
+
export { h as headSymbol, i as injectHead, r as resolveUnrefHeadInput, u as useHead, a as useHeadSafe, b as useSeoMeta, c as useServerHead, d as useServerHeadSafe, e as useServerSeoMeta } from './shared/vue.D2UzSD_b.mjs';
|
|
3
|
+
import { composableNames } from '@unhead/shared';
|
|
4
4
|
export { V as VueHeadMixin } from './shared/vue.CNiRntV8.mjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
@@ -8,6 +8,4 @@ const unheadVueComposablesImports = {
|
|
|
8
8
|
"@unhead/vue": ["injectHead", ...composableNames]
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export { CapoPlugin, unheadVueComposablesImports };
|
|
11
|
+
export { unheadVueComposablesImports };
|
package/dist/legacy.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _unhead_schema from '@unhead/schema';
|
|
2
2
|
import { ScriptBase, DataKeys, SchemaAugmentations, HeadEntryOptions, MergeHead, CreateClientHeadOptions, ActiveHeadEntry } from '@unhead/schema';
|
|
3
|
-
import { VueHeadClient, UseHeadInput, UseHeadOptions as UseHeadOptions$1, UseHeadSafeInput, UseSeoMetaInput } from './types.cjs';
|
|
4
3
|
export { createHeadCore } from 'unhead';
|
|
5
4
|
export { r as resolveUnrefHeadInput } from './shared/vue.BF-HCrO8.cjs';
|
|
6
5
|
import { MaybeComputedRefEntriesOnly, UseHeadOptions } from '@unhead/vue';
|
|
7
6
|
import { ScriptInstance, UseScriptStatus, UseScriptOptions as UseScriptOptions$1, UseFunctionType } from 'unhead/legacy';
|
|
8
7
|
export { UseFunctionType, resolveScriptKey } from 'unhead/legacy';
|
|
9
8
|
import { Ref } from 'vue';
|
|
9
|
+
import { VueHeadClient, UseHeadInput, UseHeadOptions as UseHeadOptions$1, UseHeadSafeInput, UseSeoMetaInput } from './types.cjs';
|
|
10
10
|
|
|
11
11
|
interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
|
|
12
12
|
status: Ref<UseScriptStatus>;
|
package/dist/legacy.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _unhead_schema from '@unhead/schema';
|
|
2
2
|
import { ScriptBase, DataKeys, SchemaAugmentations, HeadEntryOptions, MergeHead, CreateClientHeadOptions, ActiveHeadEntry } from '@unhead/schema';
|
|
3
|
-
import { VueHeadClient, UseHeadInput, UseHeadOptions as UseHeadOptions$1, UseHeadSafeInput, UseSeoMetaInput } from './types.mjs';
|
|
4
3
|
export { createHeadCore } from 'unhead';
|
|
5
4
|
export { r as resolveUnrefHeadInput } from './shared/vue.BF-HCrO8.mjs';
|
|
6
5
|
import { MaybeComputedRefEntriesOnly, UseHeadOptions } from '@unhead/vue';
|
|
7
6
|
import { ScriptInstance, UseScriptStatus, UseScriptOptions as UseScriptOptions$1, UseFunctionType } from 'unhead/legacy';
|
|
8
7
|
export { UseFunctionType, resolveScriptKey } from 'unhead/legacy';
|
|
9
8
|
import { Ref } from 'vue';
|
|
9
|
+
import { VueHeadClient, UseHeadInput, UseHeadOptions as UseHeadOptions$1, UseHeadSafeInput, UseSeoMetaInput } from './types.mjs';
|
|
10
10
|
|
|
11
11
|
interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
|
|
12
12
|
status: Ref<UseScriptStatus>;
|
package/dist/legacy.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _unhead_schema from '@unhead/schema';
|
|
2
2
|
import { ScriptBase, DataKeys, SchemaAugmentations, HeadEntryOptions, MergeHead, CreateClientHeadOptions, ActiveHeadEntry } from '@unhead/schema';
|
|
3
|
-
import { VueHeadClient, UseHeadInput, UseHeadOptions as UseHeadOptions$1, UseHeadSafeInput, UseSeoMetaInput } from './types.js';
|
|
4
3
|
export { createHeadCore } from 'unhead';
|
|
5
4
|
export { r as resolveUnrefHeadInput } from './shared/vue.BF-HCrO8.js';
|
|
6
5
|
import { MaybeComputedRefEntriesOnly, UseHeadOptions } from '@unhead/vue';
|
|
7
6
|
import { ScriptInstance, UseScriptStatus, UseScriptOptions as UseScriptOptions$1, UseFunctionType } from 'unhead/legacy';
|
|
8
7
|
export { UseFunctionType, resolveScriptKey } from 'unhead/legacy';
|
|
9
8
|
import { Ref } from 'vue';
|
|
9
|
+
import { VueHeadClient, UseHeadInput, UseHeadOptions as UseHeadOptions$1, UseHeadSafeInput, UseSeoMetaInput } from './types.js';
|
|
10
10
|
|
|
11
11
|
interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
|
|
12
12
|
status: Ref<UseScriptStatus>;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseHtmlAttr, MaybeArray, BaseBodyAttr, Title as Title$1, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, Link as Link$1, Meta as Meta$1, Style as Style$1, Script as Script$1, Noscript as Noscript$1, DataKeys, SchemaAugmentations, DefinedValueOrEmptyObject, MaybeEventFnHandlers, BodyEvents, MergeHead, HeadEntryOptions, MetaFlatInput, Unhead, SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from '@unhead/schema';
|
|
2
|
+
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from '@unhead/schema';
|
|
2
3
|
import { ComputedRef, Ref, Plugin } from 'vue';
|
|
3
4
|
|
|
4
5
|
type MaybeReadonlyRef<T> = ComputedRef<T>;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseHtmlAttr, MaybeArray, BaseBodyAttr, Title as Title$1, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, Link as Link$1, Meta as Meta$1, Style as Style$1, Script as Script$1, Noscript as Noscript$1, DataKeys, SchemaAugmentations, DefinedValueOrEmptyObject, MaybeEventFnHandlers, BodyEvents, MergeHead, HeadEntryOptions, MetaFlatInput, Unhead, SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from '@unhead/schema';
|
|
2
|
+
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from '@unhead/schema';
|
|
2
3
|
import { ComputedRef, Ref, Plugin } from 'vue';
|
|
3
4
|
|
|
4
5
|
type MaybeReadonlyRef<T> = ComputedRef<T>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseHtmlAttr, MaybeArray, BaseBodyAttr, Title as Title$1, TitleTemplate as TitleTemplate$1, EntryAugmentation, Base as Base$1, Link as Link$1, Meta as Meta$1, Style as Style$1, Script as Script$1, Noscript as Noscript$1, DataKeys, SchemaAugmentations, DefinedValueOrEmptyObject, MaybeEventFnHandlers, BodyEvents, MergeHead, HeadEntryOptions, MetaFlatInput, Unhead, SafeMeta, SafeLink, SafeNoscript, SafeScript, SafeHtmlAttr, SafeBodyAttr } from '@unhead/schema';
|
|
2
|
+
export { ActiveHeadEntry, Head, HeadEntryOptions, HeadTag, MergeHead, ResolvedHead, Unhead } from '@unhead/schema';
|
|
2
3
|
import { ComputedRef, Ref, Plugin } from 'vue';
|
|
3
4
|
|
|
4
5
|
type MaybeReadonlyRef<T> = ComputedRef<T>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.4",
|
|
5
5
|
"description": "Full-stack <head> manager built for Vue.",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"hookable": "^5.5.3",
|
|
94
|
-
"
|
|
95
|
-
"@unhead/shared": "2.0.0-alpha.
|
|
96
|
-
"unhead": "2.0.0-alpha.
|
|
94
|
+
"unhead": "2.0.0-alpha.4",
|
|
95
|
+
"@unhead/shared": "2.0.0-alpha.4",
|
|
96
|
+
"@unhead/schema": "2.0.0-alpha.4"
|
|
97
97
|
},
|
|
98
98
|
"scripts": {
|
|
99
99
|
"build": "unbuild .",
|