unhead 3.1.4 → 3.1.6
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/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +2 -2
- package/dist/legacy.d.mts +3 -3
- package/dist/legacy.d.ts +3 -3
- package/dist/legacy.mjs +5 -5
- package/dist/parser.d.mts +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/plugins.d.mts +4 -4
- package/dist/plugins.d.ts +4 -4
- package/dist/scripts.d.mts +4 -4
- package/dist/scripts.d.ts +4 -4
- package/dist/scripts.mjs +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.mjs +3 -3
- package/dist/shared/{unhead.ClQ7OJ-0.d.mts → unhead.B37CPNIq.d.mts} +2 -2
- package/dist/shared/{unhead.DTAcYAas.d.mts → unhead.BO2PdEL4.d.mts} +1 -1
- package/dist/shared/{unhead.DqXjmljN.mjs → unhead.BSqa2bYq.mjs} +2 -2
- package/dist/shared/{unhead.BaYoUAzl.d.ts → unhead.BWKj-eGY.d.ts} +2 -2
- package/dist/shared/{unhead.zmorwZFX.d.mts → unhead.BeIvDlYY.d.mts} +2 -2
- package/dist/shared/{unhead.fHrXv4hy.d.ts → unhead.BhvKU-Uu.d.ts} +2 -2
- package/dist/shared/{unhead.Dz8_vfOe.d.ts → unhead.Blkhu0Cr.d.ts} +2 -2
- package/dist/shared/{unhead.71V9w6oU.d.ts → unhead.CBj56GgY.d.ts} +2 -2
- package/dist/shared/{unhead.DhfYK-VF.d.mts → unhead.CRVUlr67.d.mts} +2 -2
- package/dist/shared/{unhead.rdR8o82F.d.mts → unhead.CS8tFxG3.d.mts} +2 -2
- package/dist/shared/{unhead.BBvzuk-m.mjs → unhead.CT3gGqve.mjs} +2 -2
- package/dist/shared/{unhead.D3uyoS-Z.d.ts → unhead.CpKzP6LT.d.mts} +1 -1
- package/dist/shared/{unhead.yYqx02R-.mjs → unhead.D-W0R71w.mjs} +3 -3
- package/dist/shared/{unhead.Dur2vr49.d.ts → unhead.DEgm41PJ.d.ts} +1 -1
- package/dist/shared/{unhead.B8_fLxlB.d.mts → unhead.Dl7UHSN0.d.mts} +1 -1
- package/dist/shared/{unhead.B8_fLxlB.d.ts → unhead.Dl7UHSN0.d.ts} +1 -1
- package/dist/shared/{unhead.DsqXiUvy.d.ts → unhead.Dl_lRDXb.d.mts} +2 -2
- package/dist/shared/{unhead.DsqXiUvy.d.mts → unhead.Dl_lRDXb.d.ts} +2 -2
- package/dist/shared/{unhead.CcQjGQML.d.mts → unhead.Dqn7v3Di.d.ts} +1 -1
- package/dist/shared/{unhead.mB5lMBMV.mjs → unhead.DvIxXxuO.mjs} +1 -1
- package/dist/shared/{unhead.BwirKaJy.d.mts → unhead.GpD0t1jW.d.mts} +1 -1
- package/dist/shared/{unhead.Cdnk2khL.mjs → unhead.H5gLMTHA.mjs} +1 -1
- package/dist/shared/{unhead.DCW7mbD5.mjs → unhead.J7mPNB3E.mjs} +1 -1
- package/dist/shared/{unhead.HonJKaMo.d.ts → unhead.YBmQyFpm.d.ts} +1 -1
- package/dist/stream/client.d.mts +3 -3
- package/dist/stream/client.d.ts +3 -3
- package/dist/stream/client.mjs +1 -1
- package/dist/stream/server.d.mts +3 -3
- package/dist/stream/server.d.ts +3 -3
- package/dist/stream/server.mjs +3 -3
- package/dist/stream/unplugin.d.mts +2 -0
- package/dist/stream/unplugin.d.ts +2 -0
- package/dist/stream/unplugin.mjs +1 -1
- package/dist/types.d.mts +6 -6
- package/dist/types.d.ts +6 -6
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/validate.d.mts +2 -2
- package/dist/validate.d.ts +2 -2
- package/package.json +3 -3
package/dist/client.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { C as ClientUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
export { C as ClientUnhead, c as createHead } from './shared/unhead.CRVUlr67.mjs';
|
|
2
|
+
import { R as RenderDomHeadOptions } from './shared/unhead.GpD0t1jW.mjs';
|
|
3
|
+
import { b as HeadRenderer, U as Unhead } from './shared/unhead.CS8tFxG3.mjs';
|
|
4
|
+
export { C as CreateClientHeadOptions } from './shared/unhead.CS8tFxG3.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.Dl7UHSN0.mjs';
|
|
7
7
|
|
|
8
8
|
declare function createDomRenderer(options?: RenderDomHeadOptions): HeadRenderer<boolean>;
|
|
9
9
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { C as ClientUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
export { C as ClientUnhead, c as createHead } from './shared/unhead.BWKj-eGY.js';
|
|
2
|
+
import { R as RenderDomHeadOptions } from './shared/unhead.DEgm41PJ.js';
|
|
3
|
+
import { b as HeadRenderer, U as Unhead } from './shared/unhead.CBj56GgY.js';
|
|
4
|
+
export { C as CreateClientHeadOptions } from './shared/unhead.CBj56GgY.js';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.Dl7UHSN0.js';
|
|
7
7
|
|
|
8
8
|
declare function createDomRenderer(options?: RenderDomHeadOptions): HeadRenderer<boolean>;
|
|
9
9
|
|
package/dist/client.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as renderDOMHead$1 } from './shared/unhead.
|
|
2
|
-
export { c as createDomRenderer } from './shared/unhead.
|
|
3
|
-
export { c as createHead } from './shared/unhead.
|
|
1
|
+
import { r as renderDOMHead$1 } from './shared/unhead.CT3gGqve.mjs';
|
|
2
|
+
export { c as createDomRenderer } from './shared/unhead.CT3gGqve.mjs';
|
|
3
|
+
export { c as createHead } from './shared/unhead.BSqa2bYq.mjs';
|
|
4
4
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
5
|
-
import './shared/unhead.
|
|
6
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.H5gLMTHA.mjs';
|
|
6
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
7
7
|
import 'hookable';
|
|
8
8
|
import './shared/unhead.CfgPMHXt.mjs';
|
|
9
9
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { U as Unhead,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export { c as createUnhead } from './shared/unhead.
|
|
5
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { U as Unhead, n as HeadEntryOptions, A as ActiveHeadEntry } from './shared/unhead.CS8tFxG3.mjs';
|
|
2
|
+
import { H as HeadSafe } from './shared/unhead.CpKzP6LT.mjs';
|
|
3
|
+
import { R as ResolvableHead, b5 as UseSeoMetaInput, M as InferLink, Z as Link, N as InferScript, aM as Script } from './shared/unhead.Dl7UHSN0.mjs';
|
|
4
|
+
export { c as createUnhead } from './shared/unhead.BeIvDlYY.mjs';
|
|
5
|
+
export { u as useScript } from './shared/unhead.BO2PdEL4.mjs';
|
|
6
6
|
import 'hookable';
|
|
7
7
|
|
|
8
8
|
declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { U as Unhead,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export { c as createUnhead } from './shared/unhead.
|
|
5
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { U as Unhead, n as HeadEntryOptions, A as ActiveHeadEntry } from './shared/unhead.CBj56GgY.js';
|
|
2
|
+
import { H as HeadSafe } from './shared/unhead.Dqn7v3Di.js';
|
|
3
|
+
import { R as ResolvableHead, b5 as UseSeoMetaInput, M as InferLink, Z as Link, N as InferScript, aM as Script } from './shared/unhead.Dl7UHSN0.js';
|
|
4
|
+
export { c as createUnhead } from './shared/unhead.BhvKU-Uu.js';
|
|
5
|
+
export { u as useScript } from './shared/unhead.YBmQyFpm.js';
|
|
6
6
|
import 'hookable';
|
|
7
7
|
|
|
8
8
|
declare function useHead<T extends Unhead<any>, I = ResolvableHead>(unhead: T, input?: ResolvableHead, options?: HeadEntryOptions): ActiveHeadEntry<I>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { S as SafeInputPlugin, F as FlatMetaPlugin } from './shared/unhead.Doc2Fa-a.mjs';
|
|
2
2
|
export { c as createUnhead } from './shared/unhead.CfgPMHXt.mjs';
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
3
|
+
export { u as useScript } from './shared/unhead.J7mPNB3E.mjs';
|
|
4
4
|
import './shared/unhead.CBkhoTGw.mjs';
|
|
5
5
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
6
6
|
import './shared/unhead.CUXLLRtV.mjs';
|
|
7
|
-
import './shared/unhead.
|
|
7
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
8
8
|
import 'hookable';
|
|
9
9
|
|
|
10
10
|
function useHead(unhead, input, options = {}) {
|
package/dist/legacy.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createUnhead } from './shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as createUnhead } from './shared/unhead.BeIvDlYY.mjs';
|
|
2
|
+
import { H as HeadPluginInput, U as Unhead, C as CreateClientHeadOptions, a as CreateServerHeadOptions } from './shared/unhead.CS8tFxG3.mjs';
|
|
3
|
+
import { R as ResolvableHead } from './shared/unhead.Dl7UHSN0.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/legacy.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createUnhead } from './shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as createUnhead } from './shared/unhead.BhvKU-Uu.js';
|
|
2
|
+
import { H as HeadPluginInput, U as Unhead, C as CreateClientHeadOptions, a as CreateServerHeadOptions } from './shared/unhead.CBj56GgY.js';
|
|
3
|
+
import { R as ResolvableHead } from './shared/unhead.Dl7UHSN0.js';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/legacy.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { P as PromisesPlugin, T as TemplateParamsPlugin, A as AliasSortingPlugin } from './shared/unhead.BZYKjYpn.mjs';
|
|
2
2
|
import { d as defineHeadPlugin } from './shared/unhead.CUXLLRtV.mjs';
|
|
3
3
|
import { c as createUnhead } from './shared/unhead.CfgPMHXt.mjs';
|
|
4
|
-
import { c as createHead$1 } from './shared/unhead.
|
|
5
|
-
import {
|
|
4
|
+
import { c as createHead$1 } from './shared/unhead.BSqa2bYq.mjs';
|
|
5
|
+
import { c as createHead$2 } from './shared/unhead.D-W0R71w.mjs';
|
|
6
6
|
import './shared/unhead.BGFxPGPQ.mjs';
|
|
7
7
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
8
|
-
import './shared/unhead.
|
|
8
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
9
9
|
import 'hookable';
|
|
10
|
-
import './shared/unhead.
|
|
11
|
-
import './shared/unhead.
|
|
10
|
+
import './shared/unhead.CT3gGqve.mjs';
|
|
11
|
+
import './shared/unhead.H5gLMTHA.mjs';
|
|
12
12
|
|
|
13
13
|
const DeprecationsPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
14
14
|
key: "deprecations",
|
package/dist/parser.d.mts
CHANGED
package/dist/parser.d.ts
CHANGED
package/dist/plugins.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
1
|
+
import { H as HeadPluginInput, U as Unhead, q as HeadPluginOptions } from './shared/unhead.CS8tFxG3.mjs';
|
|
2
|
+
import { V as ValidationRuleId, R as RulesConfig } from './shared/unhead.Dl_lRDXb.mjs';
|
|
3
|
+
export { a as RuleConfig, b as RuleSeverity, c as ValidationRuleOptions } from './shared/unhead.Dl_lRDXb.mjs';
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.Dl7UHSN0.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare const AliasSortingPlugin: HeadPluginInput;
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
1
|
+
import { H as HeadPluginInput, U as Unhead, q as HeadPluginOptions } from './shared/unhead.CBj56GgY.js';
|
|
2
|
+
import { V as ValidationRuleId, R as RulesConfig } from './shared/unhead.Dl_lRDXb.js';
|
|
3
|
+
export { a as RuleConfig, b as RuleSeverity, c as ValidationRuleOptions } from './shared/unhead.Dl_lRDXb.js';
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.Dl7UHSN0.js';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare const AliasSortingPlugin: HeadPluginInput;
|
package/dist/scripts.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RecordingEntry } from './shared/unhead.
|
|
2
|
-
export {
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.CS8tFxG3.mjs';
|
|
2
|
+
export { g as AsVoidFunctions, l as EventHandlerOptions, v as ScriptInstance, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.CS8tFxG3.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.BO2PdEL4.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.Dl7UHSN0.mjs';
|
|
6
6
|
|
|
7
7
|
declare function createSpyProxy<T extends Record<string, any> | any[]>(target: T, onApply: (stack: RecordingEntry[][]) => void): T;
|
|
8
8
|
|
package/dist/scripts.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RecordingEntry } from './shared/unhead.
|
|
2
|
-
export {
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.CBj56GgY.js';
|
|
2
|
+
export { g as AsVoidFunctions, l as EventHandlerOptions, v as ScriptInstance, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.CBj56GgY.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.YBmQyFpm.js';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.Dl7UHSN0.js';
|
|
6
6
|
|
|
7
7
|
declare function createSpyProxy<T extends Record<string, any> | any[]>(target: T, onApply: (stack: RecordingEntry[][]) => void): T;
|
|
8
8
|
|
package/dist/scripts.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { u as useScript } from './shared/unhead.
|
|
2
|
-
import './shared/unhead.
|
|
1
|
+
export { u as useScript } from './shared/unhead.J7mPNB3E.mjs';
|
|
2
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
5
5
|
|
package/dist/server.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { S as ServerUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
1
|
+
export { S as ServerUnhead, c as createHead } from './shared/unhead.B37CPNIq.mjs';
|
|
2
|
+
import { s as RenderSSRHeadOptions, b as HeadRenderer, S as SSRHeadPayload, U as Unhead } from './shared/unhead.CS8tFxG3.mjs';
|
|
3
|
+
export { a as CreateServerHeadOptions } from './shared/unhead.CS8tFxG3.mjs';
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.Dl7UHSN0.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare function createServerRenderer(options?: RenderSSRHeadOptions): HeadRenderer<SSRHeadPayload>;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { S as ServerUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
1
|
+
export { S as ServerUnhead, c as createHead } from './shared/unhead.Blkhu0Cr.js';
|
|
2
|
+
import { s as RenderSSRHeadOptions, b as HeadRenderer, S as SSRHeadPayload, U as Unhead } from './shared/unhead.CBj56GgY.js';
|
|
3
|
+
export { a as CreateServerHeadOptions } from './shared/unhead.CBj56GgY.js';
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.Dl7UHSN0.js';
|
|
5
5
|
import 'hookable';
|
|
6
6
|
|
|
7
7
|
declare function createServerRenderer(options?: RenderSSRHeadOptions): HeadRenderer<SSRHeadPayload>;
|
package/dist/server.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as capoTagWeight, c as createHead, b as createServerRenderer, e as escapeHtml, p as propsToString, r as renderSSRHead, s as ssrRenderTags, t as tagToString } from './shared/unhead.D-W0R71w.mjs';
|
|
2
2
|
import { parseHtmlForUnheadExtraction, applyHeadToHtml, parseHtmlForIndexes } from './parser.mjs';
|
|
3
3
|
import './shared/unhead.CfgPMHXt.mjs';
|
|
4
|
-
import './shared/unhead.
|
|
4
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.H5gLMTHA.mjs';
|
|
7
7
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
8
8
|
|
|
9
9
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead,
|
|
3
|
-
import {
|
|
2
|
+
import { U as Unhead, S as SSRHeadPayload, f as ServerHeadHooks, a as CreateServerHeadOptions } from './unhead.CS8tFxG3.mjs';
|
|
3
|
+
import { R as ResolvableHead } from './unhead.Dl7UHSN0.mjs';
|
|
4
4
|
|
|
5
5
|
interface ServerUnhead<T = ResolvableHead> extends Unhead<T, SSRHeadPayload> {
|
|
6
6
|
hooks: HookableCore<ServerHeadHooks>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.
|
|
1
|
+
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.CS8tFxG3.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Load third-party scripts with SSR support and a proxied API.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as createUnhead, r as registerPlugin } from './unhead.CfgPMHXt.mjs';
|
|
2
2
|
import { b as TagPriorityAliases } from './unhead.fg-0ge_u.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import { c as createDomRenderer } from './unhead.
|
|
3
|
+
import { c as createHooks } from './unhead.DvIxXxuO.mjs';
|
|
4
|
+
import { c as createDomRenderer } from './unhead.CT3gGqve.mjs';
|
|
5
5
|
|
|
6
6
|
const tagWeight = (tag) => typeof tag.tagPriority === "number" ? tag.tagPriority : 100 + (TagPriorityAliases[tag.tagPriority] || 0);
|
|
7
7
|
function createHead(options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { R as ResolvableHead } from './unhead.Dl7UHSN0.js';
|
|
3
|
+
import { U as Unhead, d as ClientHeadHooks, C as CreateClientHeadOptions } from './unhead.CBj56GgY.js';
|
|
4
4
|
|
|
5
5
|
interface ClientUnhead<T = ResolvableHead> extends Unhead<T, boolean> {
|
|
6
6
|
hooks: HookableCore<ClientHeadHooks>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as HeadRenderer, c as CreateHeadOptions, U as Unhead } from './unhead.CS8tFxG3.mjs';
|
|
2
|
+
import { R as ResolvableHead } from './unhead.Dl7UHSN0.mjs';
|
|
3
3
|
|
|
4
4
|
declare function createUnhead<T = ResolvableHead, R = unknown>(renderer: HeadRenderer<R>, resolvedOptions?: CreateHeadOptions): Unhead<T, R>;
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as HeadRenderer, c as CreateHeadOptions, U as Unhead } from './unhead.CBj56GgY.js';
|
|
2
|
+
import { R as ResolvableHead } from './unhead.Dl7UHSN0.js';
|
|
3
3
|
|
|
4
4
|
declare function createUnhead<T = ResolvableHead, R = unknown>(renderer: HeadRenderer<R>, resolvedOptions?: CreateHeadOptions): Unhead<T, R>;
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead,
|
|
3
|
-
import {
|
|
2
|
+
import { U as Unhead, S as SSRHeadPayload, f as ServerHeadHooks, a as CreateServerHeadOptions } from './unhead.CBj56GgY.js';
|
|
3
|
+
import { R as ResolvableHead } from './unhead.Dl7UHSN0.js';
|
|
4
4
|
|
|
5
5
|
interface ServerUnhead<T = ResolvableHead> extends Unhead<T, SSRHeadPayload> {
|
|
6
6
|
hooks: HookableCore<ServerHeadHooks>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { t as GenericScript,
|
|
2
|
+
import { t as GenericScript, aO as ScriptHttpEvents, D as DataKeys, a3 as MaybeEventFnHandlers, z as HttpEventAttributes, aL as SchemaAugmentations, v as HeadTag, R as ResolvableHead, aX as TagPosition, aY as TagPriority, at as ProcessesTemplateParams, aK as ResolvesDuplicates, a_ as TemplateParams } from './unhead.Dl7UHSN0.js';
|
|
3
3
|
|
|
4
4
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
5
5
|
type UseScriptContext<T extends Record<symbol | string, any>> = ScriptInstance<T>;
|
|
@@ -512,4 +512,4 @@ interface DomState {
|
|
|
512
512
|
_e: Map<string, Element>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
export type { ActiveHeadEntry as A, UseScriptContext as B,
|
|
515
|
+
export type { ActiveHeadEntry as A, UseScriptContext as B, CreateClientHeadOptions as C, DOMHeadHooks as D, EntryResolveCtx as E, UseScriptInput as F, UseScriptOptions as G, HeadPluginInput as H, UseScriptResolvedInput as I, UseScriptReturn as J, UseScriptStatus as K, PropResolver as P, RecordingEntry as R, SSRHeadPayload as S, Unhead as U, WarmupStrategy as W, CreateServerHeadOptions as a, HeadRenderer as b, CreateHeadOptions as c, ClientHeadHooks as d, CreateStreamableServerHeadOptions as e, ServerHeadHooks as f, AsVoidFunctions as g, CoreHeadHooks as h, DomBeforeRenderCtx as i, DomRenderTagContext as j, DomState as k, EventHandlerOptions as l, HeadEntry as m, HeadEntryOptions as n, HeadHooks as o, HeadPlugin as p, HeadPluginOptions as q, HookResult as r, RenderSSRHeadOptions as s, SSRHeadHooks as t, SSRRenderContext as u, ScriptInstance as v, ShouldRenderContext as w, SideEffectsRecord as x, SyncHookResult as y, UseFunctionType as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { R as ResolvableHead } from './unhead.Dl7UHSN0.mjs';
|
|
3
|
+
import { U as Unhead, d as ClientHeadHooks, C as CreateClientHeadOptions } from './unhead.CS8tFxG3.mjs';
|
|
4
4
|
|
|
5
5
|
interface ClientUnhead<T = ResolvableHead> extends Unhead<T, boolean> {
|
|
6
6
|
hooks: HookableCore<ClientHeadHooks>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { t as GenericScript,
|
|
2
|
+
import { t as GenericScript, aO as ScriptHttpEvents, D as DataKeys, a3 as MaybeEventFnHandlers, z as HttpEventAttributes, aL as SchemaAugmentations, v as HeadTag, R as ResolvableHead, aX as TagPosition, aY as TagPriority, at as ProcessesTemplateParams, aK as ResolvesDuplicates, a_ as TemplateParams } from './unhead.Dl7UHSN0.mjs';
|
|
3
3
|
|
|
4
4
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
5
5
|
type UseScriptContext<T extends Record<symbol | string, any>> = ScriptInstance<T>;
|
|
@@ -512,4 +512,4 @@ interface DomState {
|
|
|
512
512
|
_e: Map<string, Element>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
export type { ActiveHeadEntry as A, UseScriptContext as B,
|
|
515
|
+
export type { ActiveHeadEntry as A, UseScriptContext as B, CreateClientHeadOptions as C, DOMHeadHooks as D, EntryResolveCtx as E, UseScriptInput as F, UseScriptOptions as G, HeadPluginInput as H, UseScriptResolvedInput as I, UseScriptReturn as J, UseScriptStatus as K, PropResolver as P, RecordingEntry as R, SSRHeadPayload as S, Unhead as U, WarmupStrategy as W, CreateServerHeadOptions as a, HeadRenderer as b, CreateHeadOptions as c, ClientHeadHooks as d, CreateStreamableServerHeadOptions as e, ServerHeadHooks as f, AsVoidFunctions as g, CoreHeadHooks as h, DomBeforeRenderCtx as i, DomRenderTagContext as j, DomState as k, EventHandlerOptions as l, HeadEntry as m, HeadEntryOptions as n, HeadHooks as o, HeadPlugin as p, HeadPluginOptions as q, HookResult as r, RenderSSRHeadOptions as s, SSRHeadHooks as t, SSRRenderContext as u, ScriptInstance as v, ShouldRenderContext as w, SideEffectsRecord as x, SyncHookResult as y, UseFunctionType as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as HasElementTags } from './unhead.fg-0ge_u.mjs';
|
|
2
|
-
import { b as normalizeProps, d as dedupeKey, h as hashTag, r as resolveTags, i as isMetaArrayDupeKey } from './unhead.
|
|
3
|
-
import {
|
|
2
|
+
import { b as normalizeProps, d as dedupeKey, h as hashTag, r as resolveTags, i as isMetaArrayDupeKey } from './unhead.H5gLMTHA.mjs';
|
|
3
|
+
import { a as callHook } from './unhead.DvIxXxuO.mjs';
|
|
4
4
|
|
|
5
5
|
const WHITESPACE_RE = /\s+/;
|
|
6
6
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { av as RawInput, R as ResolvableHead, aJ as ResolvableValue, aC as ResolvableProperties, G as GenericLink, D as DataKeys, aL as SchemaAugmentations, a8 as MetaGeneric, t as GenericScript, b2 as UnheadHtmlAttributes, b1 as UnheadBodyAttributesWithoutEvents } from './unhead.Dl7UHSN0.mjs';
|
|
2
2
|
|
|
3
3
|
type Base = RawInput<'base'>;
|
|
4
4
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createUnhead, r as registerPlugin } from './unhead.CfgPMHXt.mjs';
|
|
2
|
-
import {
|
|
3
|
-
import { r as resolveTags } from './unhead.
|
|
2
|
+
import { a as callHook, c as createHooks } from './unhead.DvIxXxuO.mjs';
|
|
3
|
+
import { r as resolveTags } from './unhead.H5gLMTHA.mjs';
|
|
4
4
|
import { b as TagPriorityAliases, c as TagsWithInnerContent, a as SelfClosingTags } from './unhead.fg-0ge_u.mjs';
|
|
5
5
|
|
|
6
6
|
const TAG_WEIGHTS = { base: -10, title: 10 };
|
|
@@ -186,4 +186,4 @@ function createHead(options = {}) {
|
|
|
186
186
|
return head;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
export {
|
|
189
|
+
export { capoTagWeight as a, createServerRenderer as b, createHead as c, escapeHtml as e, propsToString as p, renderSSRHead as r, ssrRenderTags as s, tagToString as t };
|
|
@@ -3023,4 +3023,4 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
3023
3023
|
}
|
|
3024
3024
|
type HeadTagKeys = (keyof HeadTag)[];
|
|
3025
3025
|
|
|
3026
|
-
export type {
|
|
3026
|
+
export type { LinkHttpEvents as $, AlternateFeedLink as A, Booleanable as B, CanonicalLink as C, DataKeys as D, ExpectLink as E, FaviconLink as F, GenericLink as G, HasTemplateParams as H, HubLink as I, IconLink as J, ImportMapConfig as K, ImportMapScript as L, InferLink as M, InferScript as N, InlineModuleScript as O, InlineScript as P, InnerContent as Q, ResolvableHead as R, SerializableHead as S, InnerContentVal as T, InternalTagKey as U, JsonLdScript as V, KnownLinkRel as W, KnownScriptType as X, LicenseLink as Y, Link as Z, LinkBase as _, AlternateLanguageLink as a, TemplateParamsAugmentations as a$, ManifestLink as a0, MaskIconLink as a1, MaybeArray as a2, MaybeEventFnHandlers as a3, MeLink as a4, Meta as a5, MetaBase as a6, MetaFlat as a7, MetaGeneric as a8, MetaNames as a9, ResolvableMeta as aA, ResolvableNoscript as aB, ResolvableProperties as aC, ResolvableScript as aD, ResolvableStyle as aE, ResolvableTemplateParams as aF, ResolvableTitle as aG, ResolvableTitleTemplate as aH, ResolvableUnion as aI, ResolvableValue as aJ, ResolvesDuplicates as aK, SchemaAugmentations as aL, Script as aM, ScriptBase as aN, ScriptHttpEvents as aO, SearchLink as aP, SitemapLink as aQ, SpeculationRules as aR, SpeculationRulesScript as aS, StringInnerContent as aT, Stringable as aU, StylesheetLink as aV, TagKey as aW, TagPosition as aX, TagPriority as aY, TagUserProperties as aZ, TemplateParams as a_, MetaProperties as aa, ModuleScript as ab, ModulepreloadLink as ac, NameMeta as ad, Never as ae, NextLink as af, PingbackLink as ag, PreconnectLink as ah, PrefetchLink as ai, PreloadFontLink as aj, PreloadImageLink as ak, PreloadLink as al, PreloadLinkBase as am, PreloadOtherLink as an, PreloadScriptLink as ao, PreloadStyleLink as ap, PrerenderLink as aq, PrevLink as ar, PrivacyPolicyLink as as, ProcessesTemplateParams as at, PropertyMeta as au, RawInput as av, ResolvableBase as aw, ResolvableBodyAttributes as ax, ResolvableHtmlAttributes as ay, ResolvableLink as az, AlternateLink as b, TermsOfServiceLink as b0, UnheadBodyAttributesWithoutEvents as b1, UnheadHtmlAttributes as b2, UnheadMeta as b3, UseHeadInput as b4, UseSeoMetaInput as b5, ValidTagPositions as b6, WebmentionLink as b7, AlternateMediaLink as c, AlternateStylesheetLink as d, AmpHtmlLink as e, AppleTouchIconLink as f, AppleTouchStartupImageLink as g, ApplicationJsonScript as h, Arrayable as i, AuthorLink as j, BareAlternateLink as k, BodyAttributesWithoutEvents as l, BodyEvents as m, CharsetMeta as n, CompressionDictionaryLink as o, DeepReadonly as p, DeepResolvableProperties as q, DnsPrefetchLink as r, ExternalScript as s, GenericScript as t, GlobalAttributes as u, HeadTag as v, HeadTagKeys as w, HelpLink as x, HttpEquivMeta as y, HttpEventAttributes as z };
|
|
@@ -3023,4 +3023,4 @@ interface HeadTag extends TagPriority, TagPosition, ResolvesDuplicates, HasTempl
|
|
|
3023
3023
|
}
|
|
3024
3024
|
type HeadTagKeys = (keyof HeadTag)[];
|
|
3025
3025
|
|
|
3026
|
-
export type {
|
|
3026
|
+
export type { LinkHttpEvents as $, AlternateFeedLink as A, Booleanable as B, CanonicalLink as C, DataKeys as D, ExpectLink as E, FaviconLink as F, GenericLink as G, HasTemplateParams as H, HubLink as I, IconLink as J, ImportMapConfig as K, ImportMapScript as L, InferLink as M, InferScript as N, InlineModuleScript as O, InlineScript as P, InnerContent as Q, ResolvableHead as R, SerializableHead as S, InnerContentVal as T, InternalTagKey as U, JsonLdScript as V, KnownLinkRel as W, KnownScriptType as X, LicenseLink as Y, Link as Z, LinkBase as _, AlternateLanguageLink as a, TemplateParamsAugmentations as a$, ManifestLink as a0, MaskIconLink as a1, MaybeArray as a2, MaybeEventFnHandlers as a3, MeLink as a4, Meta as a5, MetaBase as a6, MetaFlat as a7, MetaGeneric as a8, MetaNames as a9, ResolvableMeta as aA, ResolvableNoscript as aB, ResolvableProperties as aC, ResolvableScript as aD, ResolvableStyle as aE, ResolvableTemplateParams as aF, ResolvableTitle as aG, ResolvableTitleTemplate as aH, ResolvableUnion as aI, ResolvableValue as aJ, ResolvesDuplicates as aK, SchemaAugmentations as aL, Script as aM, ScriptBase as aN, ScriptHttpEvents as aO, SearchLink as aP, SitemapLink as aQ, SpeculationRules as aR, SpeculationRulesScript as aS, StringInnerContent as aT, Stringable as aU, StylesheetLink as aV, TagKey as aW, TagPosition as aX, TagPriority as aY, TagUserProperties as aZ, TemplateParams as a_, MetaProperties as aa, ModuleScript as ab, ModulepreloadLink as ac, NameMeta as ad, Never as ae, NextLink as af, PingbackLink as ag, PreconnectLink as ah, PrefetchLink as ai, PreloadFontLink as aj, PreloadImageLink as ak, PreloadLink as al, PreloadLinkBase as am, PreloadOtherLink as an, PreloadScriptLink as ao, PreloadStyleLink as ap, PrerenderLink as aq, PrevLink as ar, PrivacyPolicyLink as as, ProcessesTemplateParams as at, PropertyMeta as au, RawInput as av, ResolvableBase as aw, ResolvableBodyAttributes as ax, ResolvableHtmlAttributes as ay, ResolvableLink as az, AlternateLink as b, TermsOfServiceLink as b0, UnheadBodyAttributesWithoutEvents as b1, UnheadHtmlAttributes as b2, UnheadMeta as b3, UseHeadInput as b4, UseSeoMetaInput as b5, ValidTagPositions as b6, WebmentionLink as b7, AlternateMediaLink as c, AlternateStylesheetLink as d, AmpHtmlLink as e, AppleTouchIconLink as f, AppleTouchStartupImageLink as g, ApplicationJsonScript as h, Arrayable as i, AuthorLink as j, BareAlternateLink as k, BodyAttributesWithoutEvents as l, BodyEvents as m, CharsetMeta as n, CompressionDictionaryLink as o, DeepReadonly as p, DeepResolvableProperties as q, DnsPrefetchLink as r, ExternalScript as s, GenericScript as t, GlobalAttributes as u, HeadTag as v, HeadTagKeys as w, HelpLink as x, HttpEquivMeta as y, HttpEventAttributes as z };
|
|
@@ -34,5 +34,5 @@ type RulesConfig = {
|
|
|
34
34
|
[K in ValidationRuleId]?: RuleConfig<K>;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export { VALIDATION_RULE_IDS as
|
|
38
|
-
export type {
|
|
37
|
+
export { VALIDATION_RULE_IDS as d };
|
|
38
|
+
export type { RulesConfig as R, ValidationRuleId as V, RuleConfig as a, RuleSeverity as b, ValidationRuleOptions as c };
|
|
@@ -34,5 +34,5 @@ type RulesConfig = {
|
|
|
34
34
|
[K in ValidationRuleId]?: RuleConfig<K>;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export { VALIDATION_RULE_IDS as
|
|
38
|
-
export type {
|
|
37
|
+
export { VALIDATION_RULE_IDS as d };
|
|
38
|
+
export type { RulesConfig as R, ValidationRuleId as V, RuleConfig as a, RuleSeverity as b, ValidationRuleOptions as c };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { av as RawInput, R as ResolvableHead, aJ as ResolvableValue, aC as ResolvableProperties, G as GenericLink, D as DataKeys, aL as SchemaAugmentations, a8 as MetaGeneric, t as GenericScript, b2 as UnheadHtmlAttributes, b1 as UnheadBodyAttributesWithoutEvents } from './unhead.Dl7UHSN0.js';
|
|
2
2
|
|
|
3
3
|
type Base = RawInput<'base'>;
|
|
4
4
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { U as UniqueTags, c as TagsWithInnerContent, M as MetaTagsArrayable, H as HasElementTags, T as TagConfigKeys, D as DupeableTags, d as UsesMergeStrategy, V as ValidHeadTags } from './unhead.fg-0ge_u.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { a as callHook } from './unhead.DvIxXxuO.mjs';
|
|
3
3
|
|
|
4
4
|
const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/;
|
|
5
5
|
const META_KEY_ATTRS = ["name", "property", "http-equiv"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.
|
|
1
|
+
import { U as Unhead, F as UseScriptInput, G as UseScriptOptions, J as UseScriptReturn } from './unhead.CBj56GgY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Load third-party scripts with SSR support and a proxied API.
|
package/dist/stream/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ClientUnhead } from '../shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { C as ClientUnhead } from '../shared/unhead.CRVUlr67.mjs';
|
|
2
|
+
import { U as Unhead, C as CreateClientHeadOptions } from '../shared/unhead.CS8tFxG3.mjs';
|
|
3
|
+
import { S as SerializableHead, R as ResolvableHead } from '../shared/unhead.Dl7UHSN0.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/stream/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ClientUnhead } from '../shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { C as ClientUnhead } from '../shared/unhead.BWKj-eGY.js';
|
|
2
|
+
import { U as Unhead, C as CreateClientHeadOptions } from '../shared/unhead.CBj56GgY.js';
|
|
3
|
+
import { S as SerializableHead, R as ResolvableHead } from '../shared/unhead.Dl7UHSN0.js';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/stream/client.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerPlugin } from '../shared/unhead.CfgPMHXt.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { c as createHooks } from '../shared/unhead.DvIxXxuO.mjs';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_STREAM_KEY = "__unhead__";
|
package/dist/stream/server.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ServerUnhead } from '../shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { S as ServerUnhead } from '../shared/unhead.B37CPNIq.mjs';
|
|
2
|
+
import { e as CreateStreamableServerHeadOptions, U as Unhead, S as SSRHeadPayload } from '../shared/unhead.CS8tFxG3.mjs';
|
|
3
|
+
import { R as ResolvableHead } from '../shared/unhead.Dl7UHSN0.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/stream/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ServerUnhead } from '../shared/unhead.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { S as ServerUnhead } from '../shared/unhead.Blkhu0Cr.js';
|
|
2
|
+
import { e as CreateStreamableServerHeadOptions, U as Unhead, S as SSRHeadPayload } from '../shared/unhead.CBj56GgY.js';
|
|
3
|
+
import { R as ResolvableHead } from '../shared/unhead.Dl7UHSN0.js';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/stream/server.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { parseHtmlForIndexes, applyHeadToHtml } from '../parser.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { c as createHead } from '../shared/unhead.D-W0R71w.mjs';
|
|
3
3
|
import { DEFAULT_STREAM_KEY } from './client.mjs';
|
|
4
4
|
import '../shared/unhead.CfgPMHXt.mjs';
|
|
5
|
-
import '../shared/unhead.
|
|
5
|
+
import '../shared/unhead.DvIxXxuO.mjs';
|
|
6
6
|
import 'hookable';
|
|
7
|
-
import '../shared/unhead.
|
|
7
|
+
import '../shared/unhead.H5gLMTHA.mjs';
|
|
8
8
|
import '../shared/unhead.fg-0ge_u.mjs';
|
|
9
9
|
|
|
10
10
|
const LT_RE = /</g;
|
|
@@ -15,6 +15,8 @@ interface StreamingPluginOptions {
|
|
|
15
15
|
* source-level AST injection (React/Solid/Svelte). Vue does not use it.
|
|
16
16
|
*/
|
|
17
17
|
filter?: RegExp;
|
|
18
|
+
/** Optional source-code prefilter for transform hooks. */
|
|
19
|
+
codeFilter?: RegExp;
|
|
18
20
|
/** Transform handler called for files matching `filter`. */
|
|
19
21
|
transform?: (code: string, id: string, options?: {
|
|
20
22
|
ssr?: boolean;
|
|
@@ -15,6 +15,8 @@ interface StreamingPluginOptions {
|
|
|
15
15
|
* source-level AST injection (React/Solid/Svelte). Vue does not use it.
|
|
16
16
|
*/
|
|
17
17
|
filter?: RegExp;
|
|
18
|
+
/** Optional source-code prefilter for transform hooks. */
|
|
19
|
+
codeFilter?: RegExp;
|
|
18
20
|
/** Transform handler called for files matching `filter`. */
|
|
19
21
|
transform?: (code: string, id: string, options?: {
|
|
20
22
|
ssr?: boolean;
|
package/dist/stream/unplugin.mjs
CHANGED
|
@@ -94,7 +94,7 @@ function buildStreamingPluginOptions(options) {
|
|
|
94
94
|
},
|
|
95
95
|
...options.transform && options.filter ? {
|
|
96
96
|
transform: {
|
|
97
|
-
filter: { id: options.filter },
|
|
97
|
+
filter: options.codeFilter ? { id: options.filter, code: options.codeFilter } : { id: options.filter },
|
|
98
98
|
handler(code, id, opts) {
|
|
99
99
|
return options.transform(code, id, { ssr: isSSRCall(this, opts) });
|
|
100
100
|
}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as ActiveHeadEntry,
|
|
2
|
-
export { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.
|
|
4
|
-
import {
|
|
5
|
-
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AmpHtmlLink, f as AppleTouchIconLink, g as AppleTouchStartupImageLink, h as ApplicationJsonScript, i as Arrayable, j as AuthorLink,
|
|
1
|
+
export { A as ActiveHeadEntry, g as AsVoidFunctions, d as ClientHeadHooks, h as CoreHeadHooks, C as CreateClientHeadOptions, c as CreateHeadOptions, a as CreateServerHeadOptions, e as CreateStreamableServerHeadOptions, D as DOMHeadHooks, i as DomBeforeRenderCtx, j as DomRenderTagContext, k as DomState, E as EntryResolveCtx, l as EventHandlerOptions, m as HeadEntry, n as HeadEntryOptions, o as HeadHooks, p as HeadPlugin, H as HeadPluginInput, q as HeadPluginOptions, b as HeadRenderer, r as HookResult, P as PropResolver, R as RecordingEntry, s as RenderSSRHeadOptions, t as SSRHeadHooks, S as SSRHeadPayload, u as SSRRenderContext, v as ScriptInstance, f as ServerHeadHooks, w as ShouldRenderContext, x as SideEffectsRecord, y as SyncHookResult, U as Unhead, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.CS8tFxG3.mjs';
|
|
2
|
+
export { R as RenderDomHeadOptions } from './shared/unhead.GpD0t1jW.mjs';
|
|
3
|
+
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.CpKzP6LT.mjs';
|
|
4
|
+
import { B as Booleanable } from './shared/unhead.Dl7UHSN0.mjs';
|
|
5
|
+
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AmpHtmlLink, f as AppleTouchIconLink, g as AppleTouchStartupImageLink, h as ApplicationJsonScript, i as Arrayable, j as AuthorLink, k as BareAlternateLink, l as BodyAttributesWithoutEvents, m as BodyEvents, C as CanonicalLink, n as CharsetMeta, o as CompressionDictionaryLink, D as DataKeys, p as DeepReadonly, q as DeepResolvableProperties, r as DnsPrefetchLink, E as ExpectLink, s as ExternalScript, F as FaviconLink, G as GenericLink, t as GenericScript, u as GlobalAttributes, H as HasTemplateParams, v as HeadTag, w as HeadTagKeys, x as HelpLink, y as HttpEquivMeta, z as HttpEventAttributes, I as HubLink, J as IconLink, K as ImportMapConfig, L as ImportMapScript, M as InferLink, N as InferScript, O as InlineModuleScript, P as InlineScript, Q as InnerContent, T as InnerContentVal, U as InternalTagKey, V as JsonLdScript, W as KnownLinkRel, X as KnownScriptType, Y as LicenseLink, Z as Link, _ as LinkBase, $ as LinkHttpEvents, a0 as ManifestLink, a1 as MaskIconLink, a2 as MaybeArray, a3 as MaybeEventFnHandlers, a4 as MeLink, a5 as Meta, a6 as MetaBase, a7 as MetaFlat, a8 as MetaGeneric, a9 as MetaNames, aa as MetaProperties, ab as ModuleScript, ac as ModulepreloadLink, ad as NameMeta, ae as Never, af as NextLink, ag as PingbackLink, ah as PreconnectLink, ai as PrefetchLink, aj as PreloadFontLink, ak as PreloadImageLink, al as PreloadLink, am as PreloadLinkBase, an as PreloadOtherLink, ao as PreloadScriptLink, ap as PreloadStyleLink, aq as PrerenderLink, ar as PrevLink, as as PrivacyPolicyLink, at as ProcessesTemplateParams, au as PropertyMeta, av as RawInput, aw as ResolvableBase, ax as ResolvableBodyAttributes, R as ResolvableHead, ay as ResolvableHtmlAttributes, az as ResolvableLink, aA as ResolvableMeta, aB as ResolvableNoscript, aC as ResolvableProperties, aD as ResolvableScript, aE as ResolvableStyle, aF as ResolvableTemplateParams, aG as ResolvableTitle, aH as ResolvableTitleTemplate, aI as ResolvableUnion, aJ as ResolvableValue, aK as ResolvesDuplicates, aL as SchemaAugmentations, aM as Script, aN as ScriptBase, aO as ScriptHttpEvents, aP as SearchLink, S as SerializableHead, aQ as SitemapLink, aR as SpeculationRules, aS as SpeculationRulesScript, aT as StringInnerContent, aU as Stringable, aV as StylesheetLink, aW as TagKey, aX as TagPosition, aY as TagPriority, aZ as TagUserProperties, a_ as TemplateParams, a$ as TemplateParamsAugmentations, b0 as TermsOfServiceLink, b1 as UnheadBodyAttributesWithoutEvents, b2 as UnheadHtmlAttributes, b3 as UnheadMeta, b4 as UseHeadInput, b5 as UseSeoMetaInput, b6 as ValidTagPositions, b7 as WebmentionLink } from './shared/unhead.Dl7UHSN0.mjs';
|
|
6
6
|
export { createSpyProxy } from './scripts.mjs';
|
|
7
|
-
export { u as useScript } from './shared/unhead.
|
|
7
|
+
export { u as useScript } from './shared/unhead.BO2PdEL4.mjs';
|
|
8
8
|
import 'hookable';
|
|
9
9
|
|
|
10
10
|
interface AriaAttributes {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as ActiveHeadEntry,
|
|
2
|
-
export { R as RenderDomHeadOptions } from './shared/unhead.
|
|
3
|
-
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.
|
|
4
|
-
import {
|
|
5
|
-
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AmpHtmlLink, f as AppleTouchIconLink, g as AppleTouchStartupImageLink, h as ApplicationJsonScript, i as Arrayable, j as AuthorLink,
|
|
1
|
+
export { A as ActiveHeadEntry, g as AsVoidFunctions, d as ClientHeadHooks, h as CoreHeadHooks, C as CreateClientHeadOptions, c as CreateHeadOptions, a as CreateServerHeadOptions, e as CreateStreamableServerHeadOptions, D as DOMHeadHooks, i as DomBeforeRenderCtx, j as DomRenderTagContext, k as DomState, E as EntryResolveCtx, l as EventHandlerOptions, m as HeadEntry, n as HeadEntryOptions, o as HeadHooks, p as HeadPlugin, H as HeadPluginInput, q as HeadPluginOptions, b as HeadRenderer, r as HookResult, P as PropResolver, R as RecordingEntry, s as RenderSSRHeadOptions, t as SSRHeadHooks, S as SSRHeadPayload, u as SSRRenderContext, v as ScriptInstance, f as ServerHeadHooks, w as ShouldRenderContext, x as SideEffectsRecord, y as SyncHookResult, U as Unhead, z as UseFunctionType, B as UseScriptContext, F as UseScriptInput, G as UseScriptOptions, I as UseScriptResolvedInput, J as UseScriptReturn, K as UseScriptStatus, W as WarmupStrategy } from './shared/unhead.CBj56GgY.js';
|
|
2
|
+
export { R as RenderDomHeadOptions } from './shared/unhead.DEgm41PJ.js';
|
|
3
|
+
export { B as Base, a as BodyAttributes, H as HeadSafe, b as HtmlAttributes, N as Noscript, S as SafeBodyAttr, c as SafeHtmlAttr, d as SafeLink, e as SafeMeta, f as SafeNoscript, g as SafeScript, h as SafeStyle, i as Style } from './shared/unhead.Dqn7v3Di.js';
|
|
4
|
+
import { B as Booleanable } from './shared/unhead.Dl7UHSN0.js';
|
|
5
|
+
export { A as AlternateFeedLink, a as AlternateLanguageLink, b as AlternateLink, c as AlternateMediaLink, d as AlternateStylesheetLink, e as AmpHtmlLink, f as AppleTouchIconLink, g as AppleTouchStartupImageLink, h as ApplicationJsonScript, i as Arrayable, j as AuthorLink, k as BareAlternateLink, l as BodyAttributesWithoutEvents, m as BodyEvents, C as CanonicalLink, n as CharsetMeta, o as CompressionDictionaryLink, D as DataKeys, p as DeepReadonly, q as DeepResolvableProperties, r as DnsPrefetchLink, E as ExpectLink, s as ExternalScript, F as FaviconLink, G as GenericLink, t as GenericScript, u as GlobalAttributes, H as HasTemplateParams, v as HeadTag, w as HeadTagKeys, x as HelpLink, y as HttpEquivMeta, z as HttpEventAttributes, I as HubLink, J as IconLink, K as ImportMapConfig, L as ImportMapScript, M as InferLink, N as InferScript, O as InlineModuleScript, P as InlineScript, Q as InnerContent, T as InnerContentVal, U as InternalTagKey, V as JsonLdScript, W as KnownLinkRel, X as KnownScriptType, Y as LicenseLink, Z as Link, _ as LinkBase, $ as LinkHttpEvents, a0 as ManifestLink, a1 as MaskIconLink, a2 as MaybeArray, a3 as MaybeEventFnHandlers, a4 as MeLink, a5 as Meta, a6 as MetaBase, a7 as MetaFlat, a8 as MetaGeneric, a9 as MetaNames, aa as MetaProperties, ab as ModuleScript, ac as ModulepreloadLink, ad as NameMeta, ae as Never, af as NextLink, ag as PingbackLink, ah as PreconnectLink, ai as PrefetchLink, aj as PreloadFontLink, ak as PreloadImageLink, al as PreloadLink, am as PreloadLinkBase, an as PreloadOtherLink, ao as PreloadScriptLink, ap as PreloadStyleLink, aq as PrerenderLink, ar as PrevLink, as as PrivacyPolicyLink, at as ProcessesTemplateParams, au as PropertyMeta, av as RawInput, aw as ResolvableBase, ax as ResolvableBodyAttributes, R as ResolvableHead, ay as ResolvableHtmlAttributes, az as ResolvableLink, aA as ResolvableMeta, aB as ResolvableNoscript, aC as ResolvableProperties, aD as ResolvableScript, aE as ResolvableStyle, aF as ResolvableTemplateParams, aG as ResolvableTitle, aH as ResolvableTitleTemplate, aI as ResolvableUnion, aJ as ResolvableValue, aK as ResolvesDuplicates, aL as SchemaAugmentations, aM as Script, aN as ScriptBase, aO as ScriptHttpEvents, aP as SearchLink, S as SerializableHead, aQ as SitemapLink, aR as SpeculationRules, aS as SpeculationRulesScript, aT as StringInnerContent, aU as Stringable, aV as StylesheetLink, aW as TagKey, aX as TagPosition, aY as TagPriority, aZ as TagUserProperties, a_ as TemplateParams, a$ as TemplateParamsAugmentations, b0 as TermsOfServiceLink, b1 as UnheadBodyAttributesWithoutEvents, b2 as UnheadHtmlAttributes, b3 as UnheadMeta, b4 as UseHeadInput, b5 as UseSeoMetaInput, b6 as ValidTagPositions, b7 as WebmentionLink } from './shared/unhead.Dl7UHSN0.js';
|
|
6
6
|
export { createSpyProxy } from './scripts.js';
|
|
7
|
-
export { u as useScript } from './shared/unhead.
|
|
7
|
+
export { u as useScript } from './shared/unhead.YBmQyFpm.js';
|
|
8
8
|
import 'hookable';
|
|
9
9
|
|
|
10
10
|
interface AriaAttributes {
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as HeadTag,
|
|
2
|
-
import { P as PropResolver, U as Unhead } from './shared/unhead.
|
|
1
|
+
import { v as HeadTag, a7 as MetaFlat, R as ResolvableHead, a_ as TemplateParams } from './shared/unhead.Dl7UHSN0.mjs';
|
|
2
|
+
import { P as PropResolver, U as Unhead } from './shared/unhead.CS8tFxG3.mjs';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
declare const SelfClosingTags: Set<string>;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as HeadTag,
|
|
2
|
-
import { P as PropResolver, U as Unhead } from './shared/unhead.
|
|
1
|
+
import { v as HeadTag, a7 as MetaFlat, R as ResolvableHead, a_ as TemplateParams } from './shared/unhead.Dl7UHSN0.js';
|
|
2
|
+
import { P as PropResolver, U as Unhead } from './shared/unhead.CBj56GgY.js';
|
|
3
3
|
import 'hookable';
|
|
4
4
|
|
|
5
5
|
declare const SelfClosingTags: Set<string>;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { D as DupeableTags, H as HasElementTags, M as MetaTagsArrayable, S as ScriptNetworkEvents, a as SelfClosingTags, T as TagConfigKeys, b as TagPriorityAliases, c as TagsWithInnerContent, U as UniqueTags, d as UsesMergeStrategy, V as ValidHeadTags } from './shared/unhead.fg-0ge_u.mjs';
|
|
2
|
-
export { d as dedupeKey, a as dedupeTags, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, b as normalizeProps, r as resolveTags, c as resolveTitleTemplate, s as sanitizeTags, w as walkResolver } from './shared/unhead.
|
|
2
|
+
export { d as dedupeKey, a as dedupeTags, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, b as normalizeProps, r as resolveTags, c as resolveTitleTemplate, s as sanitizeTags, w as walkResolver } from './shared/unhead.H5gLMTHA.mjs';
|
|
3
3
|
export { r as resolveMetaKeyType, a as resolveMetaKeyValue, b as resolvePackedMetaObjectValue, u as unpackMeta } from './shared/unhead.CBkhoTGw.mjs';
|
|
4
4
|
export { p as processTemplateParams } from './shared/unhead.BGFxPGPQ.mjs';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
6
6
|
import 'hookable';
|
package/dist/validate.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { V as ValidationRuleId } from './shared/unhead.Dl_lRDXb.mjs';
|
|
2
|
+
export { a as RuleConfig, b as RuleSeverity, R as RulesConfig, d as VALIDATION_RULE_IDS, c as ValidationRuleOptions } from './shared/unhead.Dl_lRDXb.mjs';
|
|
3
3
|
|
|
4
4
|
declare const URL_META_KEYS: Set<string>;
|
|
5
5
|
declare const KNOWN_META_PROPERTIES: Set<string>;
|
package/dist/validate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { V as ValidationRuleId } from './shared/unhead.Dl_lRDXb.js';
|
|
2
|
+
export { a as RuleConfig, b as RuleSeverity, R as RulesConfig, d as VALIDATION_RULE_IDS, c as ValidationRuleOptions } from './shared/unhead.Dl_lRDXb.js';
|
|
3
3
|
|
|
4
4
|
declare const URL_META_KEYS: Set<string>;
|
|
5
5
|
declare const KNOWN_META_PROPERTIES: Set<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.6",
|
|
5
5
|
"description": "Full-stack <head> manager built for any framework.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
163
|
-
"rollup": "^4.
|
|
164
|
-
"vite": "^8.0
|
|
163
|
+
"rollup": "^4.62.2",
|
|
164
|
+
"vite": "^8.1.0"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "unbuild",
|