unhead 3.1.3 → 3.1.5
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 +4 -4
- package/dist/legacy.d.mts +3 -3
- package/dist/legacy.d.ts +3 -3
- package/dist/legacy.mjs +7 -7
- package/dist/parser.d.mts +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/parser.mjs +1 -3
- package/dist/plugins.d.mts +4 -4
- package/dist/plugins.d.ts +4 -4
- package/dist/plugins.mjs +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 +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.mjs +4 -9
- package/dist/shared/{unhead.ekDpYRjs.d.mts → unhead.B37CPNIq.d.mts} +2 -2
- package/dist/shared/{unhead.BnlR_jz2.d.mts → unhead.BO2PdEL4.d.mts} +1 -1
- package/dist/shared/{unhead.CJY-UeEt.mjs → unhead.BSqa2bYq.mjs} +4 -4
- package/dist/shared/{unhead.jqONLOUN.d.ts → unhead.BWKj-eGY.d.ts} +2 -2
- package/dist/shared/{unhead.CH30252c.mjs → unhead.BZYKjYpn.mjs} +1 -1
- package/dist/shared/{unhead.ByB97_5N.d.mts → unhead.BeIvDlYY.d.mts} +2 -2
- package/dist/shared/{unhead.BHr5MNkJ.d.ts → unhead.BhvKU-Uu.d.ts} +2 -2
- package/dist/shared/{unhead.CKu1VBXp.d.ts → unhead.Blkhu0Cr.d.ts} +2 -2
- package/dist/shared/{unhead.CnNMu1HU.d.ts → unhead.CBj56GgY.d.ts} +2 -2
- package/dist/shared/{unhead.JWUDzlIs.mjs → unhead.CBkhoTGw.mjs} +3 -1
- package/dist/shared/{unhead.DjnbVGfW.d.mts → unhead.CRVUlr67.d.mts} +2 -2
- package/dist/shared/{unhead.BNptCUyv.d.mts → unhead.CS8tFxG3.d.mts} +2 -2
- package/dist/shared/{unhead.BjuLn3hu.mjs → unhead.CT3gGqve.mjs} +2 -2
- package/dist/shared/{unhead.f0Z4Ygga.d.ts → unhead.CpKzP6LT.d.mts} +1 -1
- package/dist/shared/{unhead.B3gLwi_2.mjs → unhead.D-W0R71w.mjs} +36 -54
- package/dist/shared/{unhead.CJ5MDR84.d.ts → unhead.DEgm41PJ.d.ts} +1 -1
- package/dist/shared/{unhead.Bz11580x.d.mts → unhead.Dl7UHSN0.d.mts} +51 -4
- package/dist/shared/{unhead.Bz11580x.d.ts → unhead.Dl7UHSN0.d.ts} +51 -4
- 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.A4ndrqqe.mjs → unhead.Doc2Fa-a.mjs} +1 -1
- package/dist/shared/{unhead.CG80LYNi.d.mts → unhead.Dqn7v3Di.d.ts} +1 -1
- package/dist/shared/{unhead.mB5lMBMV.mjs → unhead.DvIxXxuO.mjs} +1 -1
- package/dist/shared/{unhead.Brajh4vg.d.mts → unhead.GpD0t1jW.d.mts} +1 -1
- package/dist/shared/{unhead.DzSj5qjO.mjs → unhead.H5gLMTHA.mjs} +40 -15
- package/dist/shared/{unhead.eQfSuvE2.mjs → unhead.J7mPNB3E.mjs} +2 -2
- package/dist/shared/{unhead.ebqUBTt1.mjs → unhead.WR8XDfSi.mjs} +9 -1
- package/dist/shared/{unhead.Dc4-12pQ.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/iife.global.js +1 -1
- package/dist/stream/iife.mjs +2 -2
- 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/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 +3 -3
- package/dist/validate.d.mts +2 -2
- package/dist/validate.d.ts +2 -2
- package/dist/validate.mjs +1 -1
- package/package.json +2 -24
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
|
-
import { S as SafeInputPlugin, F as FlatMetaPlugin } from './shared/unhead.
|
|
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.
|
|
4
|
-
import './shared/unhead.
|
|
3
|
+
export { u as useScript } from './shared/unhead.J7mPNB3E.mjs';
|
|
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
|
-
import { P as PromisesPlugin, T as TemplateParamsPlugin, A as AliasSortingPlugin } from './shared/unhead.
|
|
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
|
-
import './shared/unhead.mB5lMBMV.mjs';
|
|
8
|
-
import 'hookable';
|
|
9
|
-
import './shared/unhead.BjuLn3hu.mjs';
|
|
10
7
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
11
|
-
import './shared/unhead.
|
|
8
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
9
|
+
import 'hookable';
|
|
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/parser.mjs
CHANGED
|
@@ -128,9 +128,7 @@ function parseAttributes(attrStr) {
|
|
|
128
128
|
}
|
|
129
129
|
break;
|
|
130
130
|
case QUOTED_VALUE:
|
|
131
|
-
if (charCode ===
|
|
132
|
-
i++;
|
|
133
|
-
} else if (charCode === quoteChar) {
|
|
131
|
+
if (charCode === quoteChar) {
|
|
134
132
|
result[name] = attrStr.substring(valueStart, i);
|
|
135
133
|
state = WHITESPACE;
|
|
136
134
|
}
|
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/plugins.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AliasSortingPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.
|
|
1
|
+
export { A as AliasSortingPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.BZYKjYpn.mjs';
|
|
2
2
|
import { d as defineHeadPlugin } from './shared/unhead.CUXLLRtV.mjs';
|
|
3
|
-
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.
|
|
3
|
+
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.Doc2Fa-a.mjs';
|
|
4
4
|
import { minifyJS, minifyCSS, minifyJSON } from './minify.mjs';
|
|
5
|
-
import { t as tagInputFromRuntime, o as tagPredicates, U as URL_META_KEYS, q as titleInputFromRuntime, h as headInputPredicates } from './shared/unhead.
|
|
5
|
+
import { t as tagInputFromRuntime, o as tagPredicates, U as URL_META_KEYS, q as titleInputFromRuntime, h as headInputPredicates } from './shared/unhead.WR8XDfSi.mjs';
|
|
6
6
|
import './shared/unhead.BGFxPGPQ.mjs';
|
|
7
|
-
import './shared/unhead.
|
|
7
|
+
import './shared/unhead.CBkhoTGw.mjs';
|
|
8
8
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
9
9
|
|
|
10
10
|
const META_TRANSFORMABLE_URL = [
|
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,10 +1,14 @@
|
|
|
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>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `head.render()` instead.
|
|
10
|
+
*/
|
|
11
|
+
declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): SSRHeadPayload;
|
|
8
12
|
|
|
9
13
|
declare function capoTagWeight(tag: HeadTag): number;
|
|
10
14
|
|
|
@@ -38,7 +42,4 @@ declare function ssrRenderTags<T extends HeadTag>(tags: T[], options?: RenderSSR
|
|
|
38
42
|
declare function escapeHtml(str: string): string;
|
|
39
43
|
declare function tagToString<T extends HeadTag>(tag: T): string;
|
|
40
44
|
|
|
41
|
-
/** @deprecated Use `head.render()` instead */
|
|
42
|
-
declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): SSRHeadPayload;
|
|
43
|
-
|
|
44
45
|
export { SSRHeadPayload, Unhead, capoTagWeight, createServerRenderer, escapeHtml, propsToString, renderSSRHead, ssrRenderTags, tagToString, transformHtmlTemplate, transformHtmlTemplateRaw };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
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>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `head.render()` instead.
|
|
10
|
+
*/
|
|
11
|
+
declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): SSRHeadPayload;
|
|
8
12
|
|
|
9
13
|
declare function capoTagWeight(tag: HeadTag): number;
|
|
10
14
|
|
|
@@ -38,7 +42,4 @@ declare function ssrRenderTags<T extends HeadTag>(tags: T[], options?: RenderSSR
|
|
|
38
42
|
declare function escapeHtml(str: string): string;
|
|
39
43
|
declare function tagToString<T extends HeadTag>(tag: T): string;
|
|
40
44
|
|
|
41
|
-
/** @deprecated Use `head.render()` instead */
|
|
42
|
-
declare function renderSSRHead(head: Unhead<any>, options?: RenderSSRHeadOptions): SSRHeadPayload;
|
|
43
|
-
|
|
44
45
|
export { SSRHeadPayload, Unhead, capoTagWeight, createServerRenderer, escapeHtml, propsToString, renderSSRHead, ssrRenderTags, tagToString, transformHtmlTemplate, transformHtmlTemplateRaw };
|
package/dist/server.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export { c as capoTagWeight, a as createHead, b as createServerRenderer, e as escapeHtml, p as propsToString, s as ssrRenderTags, t as tagToString } from './shared/unhead.B3gLwi_2.mjs';
|
|
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';
|
|
3
2
|
import { parseHtmlForUnheadExtraction, applyHeadToHtml, parseHtmlForIndexes } from './parser.mjs';
|
|
4
3
|
import './shared/unhead.CfgPMHXt.mjs';
|
|
5
|
-
import './shared/unhead.
|
|
4
|
+
import './shared/unhead.DvIxXxuO.mjs';
|
|
6
5
|
import 'hookable';
|
|
7
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.H5gLMTHA.mjs';
|
|
8
7
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
9
8
|
|
|
10
9
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -19,8 +18,4 @@ function transformHtmlTemplateRaw(head, html) {
|
|
|
19
18
|
return applyHeadToHtml(template, head.render());
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
return renderSSRHead$1(head, options);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { renderSSRHead, transformHtmlTemplate, transformHtmlTemplateRaw };
|
|
21
|
+
export { transformHtmlTemplate, transformHtmlTemplateRaw };
|
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
import { c as createUnhead, r as registerPlugin } from './unhead.CfgPMHXt.mjs';
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
2
|
+
import { b as TagPriorityAliases } from './unhead.fg-0ge_u.mjs';
|
|
3
|
+
import { c as createHooks } from './unhead.DvIxXxuO.mjs';
|
|
4
|
+
import { c as createDomRenderer } from './unhead.CT3gGqve.mjs';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const tagWeight = (tag) => typeof tag.tagPriority === "number" ? tag.tagPriority : 100 + (P[tag.tagPriority] || 0);
|
|
6
|
+
const tagWeight = (tag) => typeof tag.tagPriority === "number" ? tag.tagPriority : 100 + (TagPriorityAliases[tag.tagPriority] || 0);
|
|
7
7
|
function createHead(options = {}) {
|
|
8
8
|
options.document = options.document || (typeof window !== "undefined" ? document : void 0);
|
|
9
9
|
const renderer = options.render || createDomRenderer({ document: options.document });
|
|
@@ -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>;
|
|
@@ -109,7 +109,7 @@ const TemplateParamsPlugin = /* @__PURE__ */ defineHeadPlugin((head) => {
|
|
|
109
109
|
} else if (tag.processTemplateParams || tag.tag === "titleTemplate" || tag.tag === "title") {
|
|
110
110
|
for (const p of contentAttrs) {
|
|
111
111
|
if (typeof tag[p] === "string")
|
|
112
|
-
tag[p] = processTemplateParams(tag[p], params, sep, tag.tag === "script" && tag.props.type.endsWith("json"));
|
|
112
|
+
tag[p] = processTemplateParams(tag[p], params, sep, tag.tag === "script" && typeof tag.props.type === "string" && tag.props.type.endsWith("json"));
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -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 };
|
|
@@ -2,7 +2,7 @@ import { M as MetaTagsArrayable } from './unhead.fg-0ge_u.mjs';
|
|
|
2
2
|
|
|
3
3
|
const NAMESPACES = {
|
|
4
4
|
META: /* @__PURE__ */ new Set(["twitter", "fediverse"]),
|
|
5
|
-
OG: /* @__PURE__ */ new Set(["og", "book", "article", "profile", "fb"]),
|
|
5
|
+
OG: /* @__PURE__ */ new Set(["og", "book", "article", "profile", "fb", "payment"]),
|
|
6
6
|
MEDIA: /* @__PURE__ */ new Set(["ogImage", "ogVideo", "ogAudio", "twitterImage"]),
|
|
7
7
|
HTTP_EQUIV: /* @__PURE__ */ new Set(["contentType", "defaultStyle", "xUaCompatible"])
|
|
8
8
|
};
|
|
@@ -19,6 +19,8 @@ const META_ALIASES = {
|
|
|
19
19
|
ogSiteName: "og:site_name",
|
|
20
20
|
ogVideoSecureUrl: "og:video:secure_url",
|
|
21
21
|
ogVideoUrl: "og:video",
|
|
22
|
+
paymentExpiresAt: "payment:expires_at",
|
|
23
|
+
paymentSuccessUrl: "payment:success_url",
|
|
22
24
|
profileFirstName: "profile:first_name",
|
|
23
25
|
profileLastName: "profile:last_name",
|
|
24
26
|
profileUsername: "profile:username",
|
|
@@ -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'>;
|