@unhead/vue 2.0.0-alpha.30 → 2.0.0-alpha.31
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/legacy.d.mts +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/shared/vue.A6QPXQyg.d.ts +63 -0
- package/dist/shared/vue.Ds_C3mXu.d.mts +63 -0
- package/dist/types.d.mts +13 -63
- package/dist/types.d.ts +13 -63
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createUnhead } from 'unhead';
|
|
2
2
|
export { createUnhead } from 'unhead';
|
|
3
3
|
import { ActiveHeadEntry } from 'unhead/types';
|
|
4
|
-
export { ActiveHeadEntry, AriaAttributes,
|
|
4
|
+
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GlobalAttributes, Head, HeadEntryOptions, HeadTag, HttpEventAttributes, LinkWithoutEvents, MergeHead, MetaFlat, MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, ScriptWithoutEvents, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
5
5
|
import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.C1egIkvG.mjs';
|
|
6
6
|
export { B as BodyAttr, H as HtmlAttr, M as MaybeFalsy, l as ReactiveHead, n as ResolvableArray, d as ResolvableBase, k as ResolvableBodyAttributes, j as ResolvableHtmlAttributes, e as ResolvableLink, f as ResolvableMeta, i as ResolvableNoscript, o as ResolvableProperties, h as ResolvableScript, g as ResolvableStyle, R as ResolvableTitle, c as ResolvableTitleTemplate, m as ResolvableValue } from './shared/vue.C1egIkvG.mjs';
|
|
7
|
-
import { UseHeadSafeInput } from './
|
|
8
|
-
export { HeadSafe, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SafeStyle } from './
|
|
7
|
+
import { U as UseHeadSafeInput } from './shared/vue.Ds_C3mXu.mjs';
|
|
8
|
+
export { H as HeadSafe, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle } from './shared/vue.Ds_C3mXu.mjs';
|
|
9
|
+
export { Base, BodyAttributes, HtmlAttributes, Link, Meta, Noscript, Script, Style } from './types.mjs';
|
|
9
10
|
export { resolveUnrefHeadInput } from './utils.mjs';
|
|
10
11
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.mjs';
|
|
11
12
|
export { useScript } from './scripts.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createUnhead } from 'unhead';
|
|
2
2
|
export { createUnhead } from 'unhead';
|
|
3
3
|
import { ActiveHeadEntry } from 'unhead/types';
|
|
4
|
-
export { ActiveHeadEntry, AriaAttributes,
|
|
4
|
+
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GlobalAttributes, Head, HeadEntryOptions, HeadTag, HttpEventAttributes, LinkWithoutEvents, MergeHead, MetaFlat, MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, ScriptWithoutEvents, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
5
5
|
import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.C1egIkvG.js';
|
|
6
6
|
export { B as BodyAttr, H as HtmlAttr, M as MaybeFalsy, l as ReactiveHead, n as ResolvableArray, d as ResolvableBase, k as ResolvableBodyAttributes, j as ResolvableHtmlAttributes, e as ResolvableLink, f as ResolvableMeta, i as ResolvableNoscript, o as ResolvableProperties, h as ResolvableScript, g as ResolvableStyle, R as ResolvableTitle, c as ResolvableTitleTemplate, m as ResolvableValue } from './shared/vue.C1egIkvG.js';
|
|
7
|
-
import { UseHeadSafeInput } from './
|
|
8
|
-
export { HeadSafe, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SafeStyle } from './
|
|
7
|
+
import { U as UseHeadSafeInput } from './shared/vue.A6QPXQyg.js';
|
|
8
|
+
export { H as HeadSafe, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle } from './shared/vue.A6QPXQyg.js';
|
|
9
|
+
export { Base, BodyAttributes, HtmlAttributes, Link, Meta, Noscript, Script, Style } from './types.js';
|
|
9
10
|
export { resolveUnrefHeadInput } from './utils.js';
|
|
10
11
|
export { V as VueHeadMixin } from './shared/vue.DnywREVF.js';
|
|
11
12
|
export { useScript } from './scripts.js';
|
package/dist/legacy.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as unhead_types from 'unhead/types';
|
|
|
2
2
|
import { CreateClientHeadOptions, ActiveHeadEntry } from 'unhead/types';
|
|
3
3
|
import { createUnhead } from 'unhead';
|
|
4
4
|
import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.C1egIkvG.mjs';
|
|
5
|
-
import { UseHeadSafeInput } from './
|
|
5
|
+
import { U as UseHeadSafeInput } from './shared/vue.Ds_C3mXu.mjs';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
8
|
declare const createHeadCore: typeof createUnhead;
|
package/dist/legacy.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as unhead_types from 'unhead/types';
|
|
|
2
2
|
import { CreateClientHeadOptions, ActiveHeadEntry } from 'unhead/types';
|
|
3
3
|
import { createUnhead } from 'unhead';
|
|
4
4
|
import { V as VueHeadClient, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput } from './shared/vue.C1egIkvG.js';
|
|
5
|
-
import { UseHeadSafeInput } from './
|
|
5
|
+
import { U as UseHeadSafeInput } from './shared/vue.A6QPXQyg.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
|
|
8
8
|
declare const createHeadCore: typeof createUnhead;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ResolvableHead, LinkWithoutEvents, DataKeys, SchemaAugmentations, UnheadMeta, Style, ScriptWithoutEvents, TagPriority, TagPosition, ResolvesDuplicates, ProcessesTemplateParams, Noscript, HtmlAttributes, BodyAttributesWithoutEvents } from 'unhead/types';
|
|
2
|
+
import { m as ResolvableValue, o as ResolvableProperties } from './vue.C1egIkvG.js';
|
|
3
|
+
|
|
4
|
+
type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributesWithoutEvents, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
|
|
5
|
+
type SafeHtmlAttr = ResolvableProperties<Pick<HtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
|
|
6
|
+
type SafeMeta = ResolvableProperties<Pick<UnheadMeta, 'id' | 'name' | 'property' | 'charset' | 'content' | 'media'> & DataKeys & SchemaAugmentations['meta']>;
|
|
7
|
+
type SafeLink = ResolvableProperties<Pick<LinkWithoutEvents, 'id' | 'color' | 'crossorigin' | 'fetchpriority' | 'href' | 'hreflang' | 'imagesrcset' | 'imagesizes' | 'integrity' | 'media' | 'referrerpolicy' | 'rel' | 'sizes' | 'type'> & DataKeys & SchemaAugmentations['link']>;
|
|
8
|
+
type SafeScript = ResolvableProperties<Pick<ScriptWithoutEvents, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & {
|
|
9
|
+
textContent?: string;
|
|
10
|
+
} & TagPriority & TagPosition & ResolvesDuplicates & ProcessesTemplateParams>;
|
|
11
|
+
type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id'> & DataKeys & Omit<SchemaAugmentations['noscript'], 'innerHTML'>>;
|
|
12
|
+
type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'nonce' | 'title' | 'blocking'> & DataKeys & Omit<SchemaAugmentations['style'], 'innerHTML'>>;
|
|
13
|
+
interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
14
|
+
/**
|
|
15
|
+
* The `<link>` HTML element specifies relationships between the current document and an external resource.
|
|
16
|
+
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
|
|
17
|
+
* (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
|
|
18
|
+
*
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
|
|
20
|
+
*/
|
|
21
|
+
link?: ResolvableValue<ResolvableValue<SafeLink[]>>;
|
|
22
|
+
/**
|
|
23
|
+
* The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
|
|
24
|
+
*
|
|
25
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
|
|
26
|
+
*/
|
|
27
|
+
meta?: ResolvableValue<ResolvableValue<SafeMeta>[]>;
|
|
28
|
+
/**
|
|
29
|
+
* The `<style>` HTML element contains style information for a document, or part of a document.
|
|
30
|
+
* It contains CSS, which is applied to the contents of the document containing the `<style>` element.
|
|
31
|
+
*
|
|
32
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
|
|
33
|
+
*/
|
|
34
|
+
style?: ResolvableValue<ResolvableValue<(SafeStyle | string)>[]>;
|
|
35
|
+
/**
|
|
36
|
+
* The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
|
|
37
|
+
*
|
|
38
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
|
|
39
|
+
*/
|
|
40
|
+
script?: ResolvableValue<ResolvableValue<(SafeScript | string)>[]>;
|
|
41
|
+
/**
|
|
42
|
+
* The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
|
|
43
|
+
* or if scripting is currently turned off in the browser.
|
|
44
|
+
*
|
|
45
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
|
|
46
|
+
*/
|
|
47
|
+
noscript?: ResolvableValue<ResolvableValue<(SafeNoscript | string)>[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Attributes for the `<html>` HTML element.
|
|
50
|
+
*
|
|
51
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
|
|
52
|
+
*/
|
|
53
|
+
htmlAttrs?: ResolvableValue<SafeHtmlAttr>;
|
|
54
|
+
/**
|
|
55
|
+
* Attributes for the `<body>` HTML element.
|
|
56
|
+
*
|
|
57
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
|
|
58
|
+
*/
|
|
59
|
+
bodyAttrs?: ResolvableValue<SafeBodyAttr>;
|
|
60
|
+
}
|
|
61
|
+
type UseHeadSafeInput = ResolvableValue<HeadSafe>;
|
|
62
|
+
|
|
63
|
+
export type { HeadSafe as H, SafeBodyAttr as S, UseHeadSafeInput as U, SafeHtmlAttr as a, SafeMeta as b, SafeLink as c, SafeScript as d, SafeNoscript as e, SafeStyle as f };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ResolvableHead, LinkWithoutEvents, DataKeys, SchemaAugmentations, UnheadMeta, Style, ScriptWithoutEvents, TagPriority, TagPosition, ResolvesDuplicates, ProcessesTemplateParams, Noscript, HtmlAttributes, BodyAttributesWithoutEvents } from 'unhead/types';
|
|
2
|
+
import { m as ResolvableValue, o as ResolvableProperties } from './vue.C1egIkvG.mjs';
|
|
3
|
+
|
|
4
|
+
type SafeBodyAttr = ResolvableProperties<Pick<BodyAttributesWithoutEvents, 'id' | 'class' | 'style'> & DataKeys & SchemaAugmentations['bodyAttrs']>;
|
|
5
|
+
type SafeHtmlAttr = ResolvableProperties<Pick<HtmlAttributes, 'id' | 'class' | 'style' | 'lang' | 'dir'> & DataKeys & SchemaAugmentations['htmlAttrs']>;
|
|
6
|
+
type SafeMeta = ResolvableProperties<Pick<UnheadMeta, 'id' | 'name' | 'property' | 'charset' | 'content' | 'media'> & DataKeys & SchemaAugmentations['meta']>;
|
|
7
|
+
type SafeLink = ResolvableProperties<Pick<LinkWithoutEvents, 'id' | 'color' | 'crossorigin' | 'fetchpriority' | 'href' | 'hreflang' | 'imagesrcset' | 'imagesizes' | 'integrity' | 'media' | 'referrerpolicy' | 'rel' | 'sizes' | 'type'> & DataKeys & SchemaAugmentations['link']>;
|
|
8
|
+
type SafeScript = ResolvableProperties<Pick<ScriptWithoutEvents, 'id' | 'type' | 'nonce' | 'blocking'> & DataKeys & {
|
|
9
|
+
textContent?: string;
|
|
10
|
+
} & TagPriority & TagPosition & ResolvesDuplicates & ProcessesTemplateParams>;
|
|
11
|
+
type SafeNoscript = ResolvableProperties<Pick<Noscript, 'id'> & DataKeys & Omit<SchemaAugmentations['noscript'], 'innerHTML'>>;
|
|
12
|
+
type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'nonce' | 'title' | 'blocking'> & DataKeys & Omit<SchemaAugmentations['style'], 'innerHTML'>>;
|
|
13
|
+
interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
14
|
+
/**
|
|
15
|
+
* The `<link>` HTML element specifies relationships between the current document and an external resource.
|
|
16
|
+
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
|
|
17
|
+
* (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
|
|
18
|
+
*
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
|
|
20
|
+
*/
|
|
21
|
+
link?: ResolvableValue<ResolvableValue<SafeLink[]>>;
|
|
22
|
+
/**
|
|
23
|
+
* The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
|
|
24
|
+
*
|
|
25
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
|
|
26
|
+
*/
|
|
27
|
+
meta?: ResolvableValue<ResolvableValue<SafeMeta>[]>;
|
|
28
|
+
/**
|
|
29
|
+
* The `<style>` HTML element contains style information for a document, or part of a document.
|
|
30
|
+
* It contains CSS, which is applied to the contents of the document containing the `<style>` element.
|
|
31
|
+
*
|
|
32
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
|
|
33
|
+
*/
|
|
34
|
+
style?: ResolvableValue<ResolvableValue<(SafeStyle | string)>[]>;
|
|
35
|
+
/**
|
|
36
|
+
* The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
|
|
37
|
+
*
|
|
38
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
|
|
39
|
+
*/
|
|
40
|
+
script?: ResolvableValue<ResolvableValue<(SafeScript | string)>[]>;
|
|
41
|
+
/**
|
|
42
|
+
* The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
|
|
43
|
+
* or if scripting is currently turned off in the browser.
|
|
44
|
+
*
|
|
45
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
|
|
46
|
+
*/
|
|
47
|
+
noscript?: ResolvableValue<ResolvableValue<(SafeNoscript | string)>[]>;
|
|
48
|
+
/**
|
|
49
|
+
* Attributes for the `<html>` HTML element.
|
|
50
|
+
*
|
|
51
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
|
|
52
|
+
*/
|
|
53
|
+
htmlAttrs?: ResolvableValue<SafeHtmlAttr>;
|
|
54
|
+
/**
|
|
55
|
+
* Attributes for the `<body>` HTML element.
|
|
56
|
+
*
|
|
57
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
|
|
58
|
+
*/
|
|
59
|
+
bodyAttrs?: ResolvableValue<SafeBodyAttr>;
|
|
60
|
+
}
|
|
61
|
+
type UseHeadSafeInput = ResolvableValue<HeadSafe>;
|
|
62
|
+
|
|
63
|
+
export type { HeadSafe as H, SafeBodyAttr as S, UseHeadSafeInput as U, SafeHtmlAttr as a, SafeMeta as b, SafeLink as c, SafeScript as d, SafeNoscript as e, SafeStyle as f };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,66 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ActiveHeadEntry, AriaAttributes,
|
|
3
|
-
|
|
4
|
-
export { B as BodyAttr, H as HtmlAttr, M as MaybeFalsy, l as ReactiveHead, n as ResolvableArray, d as ResolvableBase, k as ResolvableBodyAttributes, j as ResolvableHtmlAttributes, e as ResolvableLink, f as ResolvableMeta, i as ResolvableNoscript, h as ResolvableScript, g as ResolvableStyle, R as ResolvableTitle, c as ResolvableTitleTemplate, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.C1egIkvG.mjs';
|
|
1
|
+
import { RawInput } from 'unhead/types';
|
|
2
|
+
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GlobalAttributes, Head, HeadEntryOptions, HeadTag, HttpEventAttributes, LinkWithoutEvents, MergeHead, MetaFlat, MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, ScriptWithoutEvents, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
3
|
+
export { H as HeadSafe, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle, U as UseHeadSafeInput } from './shared/vue.Ds_C3mXu.mjs';
|
|
4
|
+
export { B as BodyAttr, H as HtmlAttr, M as MaybeFalsy, l as ReactiveHead, n as ResolvableArray, d as ResolvableBase, k as ResolvableBodyAttributes, j as ResolvableHtmlAttributes, e as ResolvableLink, f as ResolvableMeta, i as ResolvableNoscript, o as ResolvableProperties, h as ResolvableScript, g as ResolvableStyle, R as ResolvableTitle, c as ResolvableTitleTemplate, m as ResolvableValue, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.C1egIkvG.mjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
type
|
|
15
|
-
type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'nonce' | 'title' | 'blocking'> & DataKeys & Omit<SchemaAugmentations['style'], 'innerHTML'>>;
|
|
16
|
-
interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
17
|
-
/**
|
|
18
|
-
* The `<link>` HTML element specifies relationships between the current document and an external resource.
|
|
19
|
-
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
|
|
20
|
-
* (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
|
|
21
|
-
*
|
|
22
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
|
|
23
|
-
*/
|
|
24
|
-
link?: ResolvableValue<ResolvableValue<SafeLink[]>>;
|
|
25
|
-
/**
|
|
26
|
-
* The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
|
|
27
|
-
*
|
|
28
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
|
|
29
|
-
*/
|
|
30
|
-
meta?: ResolvableValue<ResolvableValue<SafeMeta>[]>;
|
|
31
|
-
/**
|
|
32
|
-
* The `<style>` HTML element contains style information for a document, or part of a document.
|
|
33
|
-
* It contains CSS, which is applied to the contents of the document containing the `<style>` element.
|
|
34
|
-
*
|
|
35
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
|
|
36
|
-
*/
|
|
37
|
-
style?: ResolvableValue<ResolvableValue<(SafeStyle | string)>[]>;
|
|
38
|
-
/**
|
|
39
|
-
* The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
|
|
40
|
-
*
|
|
41
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
|
|
42
|
-
*/
|
|
43
|
-
script?: ResolvableValue<ResolvableValue<(SafeScript | string)>[]>;
|
|
44
|
-
/**
|
|
45
|
-
* The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
|
|
46
|
-
* or if scripting is currently turned off in the browser.
|
|
47
|
-
*
|
|
48
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
|
|
49
|
-
*/
|
|
50
|
-
noscript?: ResolvableValue<ResolvableValue<(SafeNoscript | string)>[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Attributes for the `<html>` HTML element.
|
|
53
|
-
*
|
|
54
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
|
|
55
|
-
*/
|
|
56
|
-
htmlAttrs?: ResolvableValue<SafeHtmlAttr>;
|
|
57
|
-
/**
|
|
58
|
-
* Attributes for the `<body>` HTML element.
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
|
|
61
|
-
*/
|
|
62
|
-
bodyAttrs?: ResolvableValue<SafeBodyAttr>;
|
|
63
|
-
}
|
|
64
|
-
type UseHeadSafeInput = ResolvableValue<HeadSafe>;
|
|
7
|
+
type Base = RawInput<'base'>;
|
|
8
|
+
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
9
|
+
type Noscript = RawInput<'noscript'>;
|
|
10
|
+
type Style = RawInput<'style'>;
|
|
11
|
+
type Meta = RawInput<'meta'>;
|
|
12
|
+
type Script = RawInput<'script'>;
|
|
13
|
+
type Link = RawInput<'link'>;
|
|
14
|
+
type BodyAttributes = RawInput<'bodyAttrs'>;
|
|
65
15
|
|
|
66
|
-
export
|
|
16
|
+
export type { Base, BodyAttributes, HtmlAttributes, Link, Meta, Noscript, Script, Style };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,66 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ActiveHeadEntry, AriaAttributes,
|
|
3
|
-
|
|
4
|
-
export { B as BodyAttr, H as HtmlAttr, M as MaybeFalsy, l as ReactiveHead, n as ResolvableArray, d as ResolvableBase, k as ResolvableBodyAttributes, j as ResolvableHtmlAttributes, e as ResolvableLink, f as ResolvableMeta, i as ResolvableNoscript, h as ResolvableScript, g as ResolvableStyle, R as ResolvableTitle, c as ResolvableTitleTemplate, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.C1egIkvG.js';
|
|
1
|
+
import { RawInput } from 'unhead/types';
|
|
2
|
+
export { ActiveHeadEntry, AriaAttributes, BodyAttributesWithoutEvents, BodyEvents, DataKeys, GlobalAttributes, Head, HeadEntryOptions, HeadTag, HttpEventAttributes, LinkWithoutEvents, MergeHead, MetaFlat, MetaFlatInput, RawInput, RenderSSRHeadOptions, ResolvableHead, ScriptWithoutEvents, SerializableHead, SpeculationRules, Unhead } from 'unhead/types';
|
|
3
|
+
export { H as HeadSafe, S as SafeBodyAttr, a as SafeHtmlAttr, c as SafeLink, b as SafeMeta, e as SafeNoscript, d as SafeScript, f as SafeStyle, U as UseHeadSafeInput } from './shared/vue.A6QPXQyg.js';
|
|
4
|
+
export { B as BodyAttr, H as HtmlAttr, M as MaybeFalsy, l as ReactiveHead, n as ResolvableArray, d as ResolvableBase, k as ResolvableBodyAttributes, j as ResolvableHtmlAttributes, e as ResolvableLink, f as ResolvableMeta, i as ResolvableNoscript, o as ResolvableProperties, h as ResolvableScript, g as ResolvableStyle, R as ResolvableTitle, c as ResolvableTitleTemplate, m as ResolvableValue, U as UseHeadInput, a as UseHeadOptions, b as UseSeoMetaInput, V as VueHeadClient } from './shared/vue.C1egIkvG.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
type
|
|
15
|
-
type SafeStyle = ResolvableProperties<Pick<Style, 'id' | 'media' | 'nonce' | 'title' | 'blocking'> & DataKeys & Omit<SchemaAugmentations['style'], 'innerHTML'>>;
|
|
16
|
-
interface HeadSafe extends Pick<ResolvableHead, 'title' | 'titleTemplate' | 'templateParams'> {
|
|
17
|
-
/**
|
|
18
|
-
* The `<link>` HTML element specifies relationships between the current document and an external resource.
|
|
19
|
-
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
|
|
20
|
-
* (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
|
|
21
|
-
*
|
|
22
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
|
|
23
|
-
*/
|
|
24
|
-
link?: ResolvableValue<ResolvableValue<SafeLink[]>>;
|
|
25
|
-
/**
|
|
26
|
-
* The `<meta>` element represents metadata that cannot be expressed in other HTML elements, like `<link>` or `<script>`.
|
|
27
|
-
*
|
|
28
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
|
|
29
|
-
*/
|
|
30
|
-
meta?: ResolvableValue<ResolvableValue<SafeMeta>[]>;
|
|
31
|
-
/**
|
|
32
|
-
* The `<style>` HTML element contains style information for a document, or part of a document.
|
|
33
|
-
* It contains CSS, which is applied to the contents of the document containing the `<style>` element.
|
|
34
|
-
*
|
|
35
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
|
|
36
|
-
*/
|
|
37
|
-
style?: ResolvableValue<ResolvableValue<(SafeStyle | string)>[]>;
|
|
38
|
-
/**
|
|
39
|
-
* The `<script>` HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
|
|
40
|
-
*
|
|
41
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
|
|
42
|
-
*/
|
|
43
|
-
script?: ResolvableValue<ResolvableValue<(SafeScript | string)>[]>;
|
|
44
|
-
/**
|
|
45
|
-
* The `<noscript>` HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
|
|
46
|
-
* or if scripting is currently turned off in the browser.
|
|
47
|
-
*
|
|
48
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
|
|
49
|
-
*/
|
|
50
|
-
noscript?: ResolvableValue<ResolvableValue<(SafeNoscript | string)>[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Attributes for the `<html>` HTML element.
|
|
53
|
-
*
|
|
54
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
|
|
55
|
-
*/
|
|
56
|
-
htmlAttrs?: ResolvableValue<SafeHtmlAttr>;
|
|
57
|
-
/**
|
|
58
|
-
* Attributes for the `<body>` HTML element.
|
|
59
|
-
*
|
|
60
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
|
|
61
|
-
*/
|
|
62
|
-
bodyAttrs?: ResolvableValue<SafeBodyAttr>;
|
|
63
|
-
}
|
|
64
|
-
type UseHeadSafeInput = ResolvableValue<HeadSafe>;
|
|
7
|
+
type Base = RawInput<'base'>;
|
|
8
|
+
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
9
|
+
type Noscript = RawInput<'noscript'>;
|
|
10
|
+
type Style = RawInput<'style'>;
|
|
11
|
+
type Meta = RawInput<'meta'>;
|
|
12
|
+
type Script = RawInput<'script'>;
|
|
13
|
+
type Link = RawInput<'link'>;
|
|
14
|
+
type BodyAttributes = RawInput<'bodyAttrs'>;
|
|
65
15
|
|
|
66
|
-
export
|
|
16
|
+
export type { Base, BodyAttributes, HtmlAttributes, Link, Meta, Noscript, Script, Style };
|
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.31",
|
|
5
5
|
"description": "Full-stack <head> manager built for Vue.",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"hookable": "^5.5.3",
|
|
112
|
-
"unhead": "2.0.0-alpha.
|
|
112
|
+
"unhead": "2.0.0-alpha.31"
|
|
113
113
|
},
|
|
114
114
|
"scripts": {
|
|
115
115
|
"build": "unbuild .",
|