unhead 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +4 -4
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +3 -3
- package/dist/legacy.d.mts +3 -3
- package/dist/legacy.d.ts +3 -3
- package/dist/legacy.mjs +6 -6
- 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 +2 -2
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.mjs +4 -4
- package/dist/scripts.d.mts +4 -4
- package/dist/scripts.d.ts +4 -4
- package/dist/scripts.mjs +1 -1
- package/dist/server.d.mts +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.mjs +3 -8
- package/dist/shared/{unhead.CnNMu1HU.d.ts → unhead.71V9w6oU.d.ts} +1 -1
- package/dist/shared/{unhead.Bz11580x.d.mts → unhead.B8_fLxlB.d.mts} +50 -3
- package/dist/shared/{unhead.Bz11580x.d.ts → unhead.B8_fLxlB.d.ts} +50 -3
- package/dist/shared/{unhead.BjuLn3hu.mjs → unhead.BBvzuk-m.mjs} +1 -1
- package/dist/shared/{unhead.CH30252c.mjs → unhead.BZYKjYpn.mjs} +1 -1
- package/dist/shared/{unhead.jqONLOUN.d.ts → unhead.BaYoUAzl.d.ts} +2 -2
- package/dist/shared/{unhead.Brajh4vg.d.mts → unhead.BwirKaJy.d.mts} +1 -1
- package/dist/shared/{unhead.JWUDzlIs.mjs → unhead.CBkhoTGw.mjs} +3 -1
- package/dist/shared/{unhead.CG80LYNi.d.mts → unhead.CcQjGQML.d.mts} +1 -1
- package/dist/shared/{unhead.DzSj5qjO.mjs → unhead.Cdnk2khL.mjs} +39 -14
- package/dist/shared/{unhead.ekDpYRjs.d.mts → unhead.ClQ7OJ-0.d.mts} +2 -2
- package/dist/shared/{unhead.f0Z4Ygga.d.ts → unhead.D3uyoS-Z.d.ts} +1 -1
- package/dist/shared/{unhead.eQfSuvE2.mjs → unhead.DCW7mbD5.mjs} +1 -1
- package/dist/shared/{unhead.BnlR_jz2.d.mts → unhead.DTAcYAas.d.mts} +1 -1
- package/dist/shared/{unhead.DjnbVGfW.d.mts → unhead.DhfYK-VF.d.mts} +2 -2
- package/dist/shared/{unhead.A4ndrqqe.mjs → unhead.Doc2Fa-a.mjs} +1 -1
- package/dist/shared/{unhead.CJY-UeEt.mjs → unhead.DqXjmljN.mjs} +3 -3
- package/dist/shared/{unhead.CJ5MDR84.d.ts → unhead.Dur2vr49.d.ts} +1 -1
- package/dist/shared/{unhead.CKu1VBXp.d.ts → unhead.Dz8_vfOe.d.ts} +2 -2
- package/dist/shared/{unhead.Dc4-12pQ.d.ts → unhead.HonJKaMo.d.ts} +1 -1
- package/dist/shared/{unhead.ebqUBTt1.mjs → unhead.WR8XDfSi.mjs} +9 -1
- package/dist/shared/{unhead.BHr5MNkJ.d.ts → unhead.fHrXv4hy.d.ts} +2 -2
- package/dist/shared/{unhead.BNptCUyv.d.mts → unhead.rdR8o82F.d.mts} +1 -1
- package/dist/shared/{unhead.B3gLwi_2.mjs → unhead.yYqx02R-.mjs} +34 -52
- package/dist/shared/{unhead.ByB97_5N.d.mts → unhead.zmorwZFX.d.mts} +2 -2
- package/dist/stream/client.d.mts +3 -3
- package/dist/stream/client.d.ts +3 -3
- 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 +2 -2
- 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.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 { p as HeadRenderer, U as Unhead } from './shared/unhead.
|
|
4
|
-
export { c as CreateClientHeadOptions } from './shared/unhead.
|
|
1
|
+
export { C as ClientUnhead, c as createHead } from './shared/unhead.DhfYK-VF.mjs';
|
|
2
|
+
import { R as RenderDomHeadOptions } from './shared/unhead.BwirKaJy.mjs';
|
|
3
|
+
import { p as HeadRenderer, U as Unhead } from './shared/unhead.rdR8o82F.mjs';
|
|
4
|
+
export { c as CreateClientHeadOptions } from './shared/unhead.rdR8o82F.mjs';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.B8_fLxlB.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 { p as HeadRenderer, U as Unhead } from './shared/unhead.
|
|
4
|
-
export { c as CreateClientHeadOptions } from './shared/unhead.
|
|
1
|
+
export { C as ClientUnhead, c as createHead } from './shared/unhead.BaYoUAzl.js';
|
|
2
|
+
import { R as RenderDomHeadOptions } from './shared/unhead.Dur2vr49.js';
|
|
3
|
+
import { p as HeadRenderer, U as Unhead } from './shared/unhead.71V9w6oU.js';
|
|
4
|
+
export { c as CreateClientHeadOptions } from './shared/unhead.71V9w6oU.js';
|
|
5
5
|
import 'hookable';
|
|
6
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.B8_fLxlB.js';
|
|
7
7
|
|
|
8
8
|
declare function createDomRenderer(options?: RenderDomHeadOptions): HeadRenderer<boolean>;
|
|
9
9
|
|
package/dist/client.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.BBvzuk-m.mjs';
|
|
2
|
+
export { c as createDomRenderer } from './shared/unhead.BBvzuk-m.mjs';
|
|
3
|
+
export { c as createHead } from './shared/unhead.DqXjmljN.mjs';
|
|
4
4
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.Cdnk2khL.mjs';
|
|
6
6
|
import './shared/unhead.mB5lMBMV.mjs';
|
|
7
7
|
import 'hookable';
|
|
8
8
|
import './shared/unhead.CfgPMHXt.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry } from './shared/unhead.
|
|
2
|
-
import { aw as ResolvableHead, b5 as UseSeoMetaInput, M as InferLink, X as Link, N as InferScript, aL as Script } from './shared/unhead.
|
|
3
|
-
import { H as HeadSafe } from './shared/unhead.
|
|
4
|
-
export { c as createUnhead } from './shared/unhead.
|
|
5
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry } from './shared/unhead.rdR8o82F.mjs';
|
|
2
|
+
import { aw as ResolvableHead, b5 as UseSeoMetaInput, M as InferLink, X as Link, N as InferScript, aL as Script } from './shared/unhead.B8_fLxlB.mjs';
|
|
3
|
+
import { H as HeadSafe } from './shared/unhead.CcQjGQML.mjs';
|
|
4
|
+
export { c as createUnhead } from './shared/unhead.zmorwZFX.mjs';
|
|
5
|
+
export { u as useScript } from './shared/unhead.DTAcYAas.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, k as HeadEntryOptions, A as ActiveHeadEntry } from './shared/unhead.
|
|
2
|
-
import { aw as ResolvableHead, b5 as UseSeoMetaInput, M as InferLink, X as Link, N as InferScript, aL as Script } from './shared/unhead.
|
|
3
|
-
import { H as HeadSafe } from './shared/unhead.
|
|
4
|
-
export { c as createUnhead } from './shared/unhead.
|
|
5
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { U as Unhead, k as HeadEntryOptions, A as ActiveHeadEntry } from './shared/unhead.71V9w6oU.js';
|
|
2
|
+
import { aw as ResolvableHead, b5 as UseSeoMetaInput, M as InferLink, X as Link, N as InferScript, aL as Script } from './shared/unhead.B8_fLxlB.js';
|
|
3
|
+
import { H as HeadSafe } from './shared/unhead.D3uyoS-Z.js';
|
|
4
|
+
export { c as createUnhead } from './shared/unhead.fHrXv4hy.js';
|
|
5
|
+
export { u as useScript } from './shared/unhead.HonJKaMo.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,7 +1,7 @@
|
|
|
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.DCW7mbD5.mjs';
|
|
4
|
+
import './shared/unhead.CBkhoTGw.mjs';
|
|
5
5
|
import './shared/unhead.fg-0ge_u.mjs';
|
|
6
6
|
import './shared/unhead.CUXLLRtV.mjs';
|
|
7
7
|
import './shared/unhead.mB5lMBMV.mjs';
|
package/dist/legacy.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createUnhead } from './shared/unhead.
|
|
2
|
-
import { n as HeadPluginInput, U as Unhead, c as CreateClientHeadOptions, e as CreateServerHeadOptions } from './shared/unhead.
|
|
3
|
-
import { aw as ResolvableHead } from './shared/unhead.
|
|
1
|
+
import { c as createUnhead } from './shared/unhead.zmorwZFX.mjs';
|
|
2
|
+
import { n as HeadPluginInput, U as Unhead, c as CreateClientHeadOptions, e as CreateServerHeadOptions } from './shared/unhead.rdR8o82F.mjs';
|
|
3
|
+
import { aw as ResolvableHead } from './shared/unhead.B8_fLxlB.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 { n as HeadPluginInput, U as Unhead, c as CreateClientHeadOptions, e as CreateServerHeadOptions } from './shared/unhead.
|
|
3
|
-
import { aw as ResolvableHead } from './shared/unhead.
|
|
1
|
+
import { c as createUnhead } from './shared/unhead.fHrXv4hy.js';
|
|
2
|
+
import { n as HeadPluginInput, U as Unhead, c as CreateClientHeadOptions, e as CreateServerHeadOptions } from './shared/unhead.71V9w6oU.js';
|
|
3
|
+
import { aw as ResolvableHead } from './shared/unhead.B8_fLxlB.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 { a as createHead$2 } from './shared/unhead.
|
|
4
|
+
import { c as createHead$1 } from './shared/unhead.DqXjmljN.mjs';
|
|
5
|
+
import { a as createHead$2 } from './shared/unhead.yYqx02R-.mjs';
|
|
6
6
|
import './shared/unhead.BGFxPGPQ.mjs';
|
|
7
|
+
import './shared/unhead.fg-0ge_u.mjs';
|
|
7
8
|
import './shared/unhead.mB5lMBMV.mjs';
|
|
8
9
|
import 'hookable';
|
|
9
|
-
import './shared/unhead.
|
|
10
|
-
import './shared/unhead.
|
|
11
|
-
import './shared/unhead.DzSj5qjO.mjs';
|
|
10
|
+
import './shared/unhead.BBvzuk-m.mjs';
|
|
11
|
+
import './shared/unhead.Cdnk2khL.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 { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.
|
|
1
|
+
import { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.rdR8o82F.mjs';
|
|
2
2
|
import { c as ValidationRuleId, b as RulesConfig } from './shared/unhead.DsqXiUvy.mjs';
|
|
3
3
|
export { R as RuleConfig, a as RuleSeverity, d as ValidationRuleOptions } from './shared/unhead.DsqXiUvy.mjs';
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.B8_fLxlB.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 { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.
|
|
1
|
+
import { n as HeadPluginInput, U as Unhead, o as HeadPluginOptions } from './shared/unhead.71V9w6oU.js';
|
|
2
2
|
import { c as ValidationRuleId, b as RulesConfig } from './shared/unhead.DsqXiUvy.js';
|
|
3
3
|
export { R as RuleConfig, a as RuleSeverity, d as ValidationRuleOptions } from './shared/unhead.DsqXiUvy.js';
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.B8_fLxlB.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 { a as AsVoidFunctions, j as EventHandlerOptions, u 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.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.rdR8o82F.mjs';
|
|
2
|
+
export { a as AsVoidFunctions, j as EventHandlerOptions, u 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.rdR8o82F.mjs';
|
|
3
|
+
export { u as useScript } from './shared/unhead.DTAcYAas.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.B8_fLxlB.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 { a as AsVoidFunctions, j as EventHandlerOptions, u 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.
|
|
3
|
-
export { u as useScript } from './shared/unhead.
|
|
1
|
+
import { R as RecordingEntry } from './shared/unhead.71V9w6oU.js';
|
|
2
|
+
export { a as AsVoidFunctions, j as EventHandlerOptions, u 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.71V9w6oU.js';
|
|
3
|
+
export { u as useScript } from './shared/unhead.HonJKaMo.js';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.B8_fLxlB.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
package/dist/server.d.mts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
export { S as ServerUnhead, c as createHead } from './shared/unhead.
|
|
2
|
-
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.
|
|
3
|
-
export { e as CreateServerHeadOptions } from './shared/unhead.
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
1
|
+
export { S as ServerUnhead, c as createHead } from './shared/unhead.ClQ7OJ-0.mjs';
|
|
2
|
+
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.rdR8o82F.mjs';
|
|
3
|
+
export { e as CreateServerHeadOptions } from './shared/unhead.rdR8o82F.mjs';
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.B8_fLxlB.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 { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.
|
|
3
|
-
export { e as CreateServerHeadOptions } from './shared/unhead.
|
|
4
|
-
import { v as HeadTag } from './shared/unhead.
|
|
1
|
+
export { S as ServerUnhead, c as createHead } from './shared/unhead.Dz8_vfOe.js';
|
|
2
|
+
import { r as RenderSSRHeadOptions, p as HeadRenderer, s as SSRHeadPayload, U as Unhead } from './shared/unhead.71V9w6oU.js';
|
|
3
|
+
export { e as CreateServerHeadOptions } from './shared/unhead.71V9w6oU.js';
|
|
4
|
+
import { v as HeadTag } from './shared/unhead.B8_fLxlB.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 { c as capoTagWeight, a as createHead, b as createServerRenderer, e as escapeHtml, p as propsToString, r as renderSSRHead, s as ssrRenderTags, t as tagToString } from './shared/unhead.yYqx02R-.mjs';
|
|
3
2
|
import { parseHtmlForUnheadExtraction, applyHeadToHtml, parseHtmlForIndexes } from './parser.mjs';
|
|
4
3
|
import './shared/unhead.CfgPMHXt.mjs';
|
|
5
4
|
import './shared/unhead.mB5lMBMV.mjs';
|
|
6
5
|
import 'hookable';
|
|
7
|
-
import './shared/unhead.
|
|
6
|
+
import './shared/unhead.Cdnk2khL.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,5 +1,5 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { t as GenericScript, aN as ScriptHttpEvents, D as DataKeys, a1 as MaybeEventFnHandlers, z as HttpEventAttributes, aK as SchemaAugmentations, v as HeadTag, aw as ResolvableHead, aX as TagPosition, aY as TagPriority, ar as ProcessesTemplateParams, aJ as ResolvesDuplicates, a_ as TemplateParams } from './unhead.
|
|
2
|
+
import { t as GenericScript, aN as ScriptHttpEvents, D as DataKeys, a1 as MaybeEventFnHandlers, z as HttpEventAttributes, aK as SchemaAugmentations, v as HeadTag, aw as ResolvableHead, aX as TagPosition, aY as TagPriority, ar as ProcessesTemplateParams, aJ as ResolvesDuplicates, a_ as TemplateParams } from './unhead.B8_fLxlB.js';
|
|
3
3
|
|
|
4
4
|
type UseScriptStatus = 'awaitingLoad' | 'loading' | 'loaded' | 'error' | 'removed';
|
|
5
5
|
type UseScriptContext<T extends Record<symbol | string, any>> = ScriptInstance<T>;
|
|
@@ -1095,7 +1095,7 @@ type MetaNames = 'apple-itunes-app' | 'apple-mobile-web-app-capable' | 'apple-mo
|
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Known meta property values (OpenGraph, etc.)
|
|
1097
1097
|
*/
|
|
1098
|
-
type MetaProperties = 'article:author' | 'article:expiration_time' | 'article:modified_time' | 'article:published_time' | 'article:section' | 'article:tag' | 'book:author' | 'book:isbn' | 'book:release_date' | 'book:tag' | 'fb:app:id' | 'og:audio:secure_url' | 'og:audio:type' | 'og:audio:url' | 'og:description' | 'og:determiner' | 'og:image:height' | 'og:image:secure_url' | 'og:image:type' | 'og:image:url' | 'og:image:width' | 'og:image' | 'og:locale:alternate' | 'og:locale' | 'og:site:name' | 'og:title' | 'og:type' | 'og:url' | 'og:video:height' | 'og:video:secure_url' | 'og:video:type' | 'og:video:url' | 'og:video:width' | 'og:video' | 'profile:first_name' | 'profile:gender' | 'profile:last_name' | 'profile:username';
|
|
1098
|
+
type MetaProperties = 'article:author' | 'article:expiration_time' | 'article:modified_time' | 'article:published_time' | 'article:section' | 'article:tag' | 'book:author' | 'book:isbn' | 'book:release_date' | 'book:tag' | 'fb:app:id' | 'og:audio:secure_url' | 'og:audio:type' | 'og:audio:url' | 'og:description' | 'og:determiner' | 'og:image:height' | 'og:image:secure_url' | 'og:image:type' | 'og:image:url' | 'og:image:width' | 'og:image' | 'og:locale:alternate' | 'og:locale' | 'og:site:name' | 'og:title' | 'og:type' | 'og:url' | 'og:video:height' | 'og:video:secure_url' | 'og:video:type' | 'og:video:url' | 'og:video:width' | 'og:video' | 'payment:amount' | 'payment:currency' | 'payment:description' | 'payment:expires_at' | 'payment:id' | 'payment:status' | 'payment:success_url' | 'profile:first_name' | 'profile:gender' | 'profile:last_name' | 'profile:username';
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Base properties shared by all meta types
|
|
1101
1101
|
*/
|
|
@@ -1266,7 +1266,54 @@ interface MetaFlatProfile {
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
profileUsername?: string;
|
|
1268
1268
|
}
|
|
1269
|
-
interface
|
|
1269
|
+
interface MetaFlatPayment {
|
|
1270
|
+
/**
|
|
1271
|
+
* Description about the payment link.
|
|
1272
|
+
*
|
|
1273
|
+
* @see https://ogp.me/ns/payment#
|
|
1274
|
+
*/
|
|
1275
|
+
paymentDescription?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The currency code ISO 4217 of the payment.
|
|
1278
|
+
* @example 'USD'
|
|
1279
|
+
*
|
|
1280
|
+
* @see https://ogp.me/ns/payment#
|
|
1281
|
+
*/
|
|
1282
|
+
paymentCurrency?: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* An amount requested on the payment link in decimal format.
|
|
1285
|
+
* @example 19.99
|
|
1286
|
+
*
|
|
1287
|
+
* @see https://ogp.me/ns/payment#
|
|
1288
|
+
*/
|
|
1289
|
+
paymentAmount?: string | number;
|
|
1290
|
+
/**
|
|
1291
|
+
* The date and time including minutes and seconds on which the payment link expires.
|
|
1292
|
+
* @example '1970-01-01T00:00:00.000Z'
|
|
1293
|
+
*
|
|
1294
|
+
* @see https://ogp.me/ns/payment#
|
|
1295
|
+
*/
|
|
1296
|
+
paymentExpiresAt?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Status of the payment.
|
|
1299
|
+
*
|
|
1300
|
+
* @see https://ogp.me/ns/payment#
|
|
1301
|
+
*/
|
|
1302
|
+
paymentStatus?: 'PENDING' | 'PAID' | 'FAILED' | 'EXPIRED';
|
|
1303
|
+
/**
|
|
1304
|
+
* The unique identifier associated with the payment link for a given payment gateway or service provider.
|
|
1305
|
+
*
|
|
1306
|
+
* @see https://ogp.me/ns/payment#
|
|
1307
|
+
*/
|
|
1308
|
+
paymentId?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* A valid URL that gets redirected when payment is success.
|
|
1311
|
+
*
|
|
1312
|
+
* @see https://ogp.me/ns/payment#
|
|
1313
|
+
*/
|
|
1314
|
+
paymentSuccessUrl?: string;
|
|
1315
|
+
}
|
|
1316
|
+
interface MetaFlat extends MetaFlatArticle, MetaFlatBook, MetaFlatProfile, MetaFlatPayment {
|
|
1270
1317
|
/**
|
|
1271
1318
|
* This attribute declares the document's character encoding.
|
|
1272
1319
|
* If the attribute is present, its value must be an ASCII case-insensitive match for the string "utf-8",
|
|
@@ -1551,7 +1598,7 @@ interface MetaFlat extends MetaFlatArticle, MetaFlatBook, MetaFlatProfile {
|
|
|
1551
1598
|
*
|
|
1552
1599
|
* @see https://ogp.me/#metadata
|
|
1553
1600
|
*/
|
|
1554
|
-
ogType?: 'website' | 'article' | 'book' | 'profile' | 'music.song' | 'music.album' | 'music.playlist' | 'music.
|
|
1601
|
+
ogType?: 'website' | 'article' | 'book' | 'profile' | 'music.song' | 'music.album' | 'music.playlist' | 'music.radio_station' | 'video.movie' | 'video.episode' | 'video.tv_show' | 'video.other' | 'payment.link';
|
|
1555
1602
|
/**
|
|
1556
1603
|
* The locale of the resource. Defaults to en_US.
|
|
1557
1604
|
*
|
|
@@ -1095,7 +1095,7 @@ type MetaNames = 'apple-itunes-app' | 'apple-mobile-web-app-capable' | 'apple-mo
|
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Known meta property values (OpenGraph, etc.)
|
|
1097
1097
|
*/
|
|
1098
|
-
type MetaProperties = 'article:author' | 'article:expiration_time' | 'article:modified_time' | 'article:published_time' | 'article:section' | 'article:tag' | 'book:author' | 'book:isbn' | 'book:release_date' | 'book:tag' | 'fb:app:id' | 'og:audio:secure_url' | 'og:audio:type' | 'og:audio:url' | 'og:description' | 'og:determiner' | 'og:image:height' | 'og:image:secure_url' | 'og:image:type' | 'og:image:url' | 'og:image:width' | 'og:image' | 'og:locale:alternate' | 'og:locale' | 'og:site:name' | 'og:title' | 'og:type' | 'og:url' | 'og:video:height' | 'og:video:secure_url' | 'og:video:type' | 'og:video:url' | 'og:video:width' | 'og:video' | 'profile:first_name' | 'profile:gender' | 'profile:last_name' | 'profile:username';
|
|
1098
|
+
type MetaProperties = 'article:author' | 'article:expiration_time' | 'article:modified_time' | 'article:published_time' | 'article:section' | 'article:tag' | 'book:author' | 'book:isbn' | 'book:release_date' | 'book:tag' | 'fb:app:id' | 'og:audio:secure_url' | 'og:audio:type' | 'og:audio:url' | 'og:description' | 'og:determiner' | 'og:image:height' | 'og:image:secure_url' | 'og:image:type' | 'og:image:url' | 'og:image:width' | 'og:image' | 'og:locale:alternate' | 'og:locale' | 'og:site:name' | 'og:title' | 'og:type' | 'og:url' | 'og:video:height' | 'og:video:secure_url' | 'og:video:type' | 'og:video:url' | 'og:video:width' | 'og:video' | 'payment:amount' | 'payment:currency' | 'payment:description' | 'payment:expires_at' | 'payment:id' | 'payment:status' | 'payment:success_url' | 'profile:first_name' | 'profile:gender' | 'profile:last_name' | 'profile:username';
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Base properties shared by all meta types
|
|
1101
1101
|
*/
|
|
@@ -1266,7 +1266,54 @@ interface MetaFlatProfile {
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
profileUsername?: string;
|
|
1268
1268
|
}
|
|
1269
|
-
interface
|
|
1269
|
+
interface MetaFlatPayment {
|
|
1270
|
+
/**
|
|
1271
|
+
* Description about the payment link.
|
|
1272
|
+
*
|
|
1273
|
+
* @see https://ogp.me/ns/payment#
|
|
1274
|
+
*/
|
|
1275
|
+
paymentDescription?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The currency code ISO 4217 of the payment.
|
|
1278
|
+
* @example 'USD'
|
|
1279
|
+
*
|
|
1280
|
+
* @see https://ogp.me/ns/payment#
|
|
1281
|
+
*/
|
|
1282
|
+
paymentCurrency?: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* An amount requested on the payment link in decimal format.
|
|
1285
|
+
* @example 19.99
|
|
1286
|
+
*
|
|
1287
|
+
* @see https://ogp.me/ns/payment#
|
|
1288
|
+
*/
|
|
1289
|
+
paymentAmount?: string | number;
|
|
1290
|
+
/**
|
|
1291
|
+
* The date and time including minutes and seconds on which the payment link expires.
|
|
1292
|
+
* @example '1970-01-01T00:00:00.000Z'
|
|
1293
|
+
*
|
|
1294
|
+
* @see https://ogp.me/ns/payment#
|
|
1295
|
+
*/
|
|
1296
|
+
paymentExpiresAt?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Status of the payment.
|
|
1299
|
+
*
|
|
1300
|
+
* @see https://ogp.me/ns/payment#
|
|
1301
|
+
*/
|
|
1302
|
+
paymentStatus?: 'PENDING' | 'PAID' | 'FAILED' | 'EXPIRED';
|
|
1303
|
+
/**
|
|
1304
|
+
* The unique identifier associated with the payment link for a given payment gateway or service provider.
|
|
1305
|
+
*
|
|
1306
|
+
* @see https://ogp.me/ns/payment#
|
|
1307
|
+
*/
|
|
1308
|
+
paymentId?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* A valid URL that gets redirected when payment is success.
|
|
1311
|
+
*
|
|
1312
|
+
* @see https://ogp.me/ns/payment#
|
|
1313
|
+
*/
|
|
1314
|
+
paymentSuccessUrl?: string;
|
|
1315
|
+
}
|
|
1316
|
+
interface MetaFlat extends MetaFlatArticle, MetaFlatBook, MetaFlatProfile, MetaFlatPayment {
|
|
1270
1317
|
/**
|
|
1271
1318
|
* This attribute declares the document's character encoding.
|
|
1272
1319
|
* If the attribute is present, its value must be an ASCII case-insensitive match for the string "utf-8",
|
|
@@ -1551,7 +1598,7 @@ interface MetaFlat extends MetaFlatArticle, MetaFlatBook, MetaFlatProfile {
|
|
|
1551
1598
|
*
|
|
1552
1599
|
* @see https://ogp.me/#metadata
|
|
1553
1600
|
*/
|
|
1554
|
-
ogType?: 'website' | 'article' | 'book' | 'profile' | 'music.song' | 'music.album' | 'music.playlist' | 'music.
|
|
1601
|
+
ogType?: 'website' | 'article' | 'book' | 'profile' | 'music.song' | 'music.album' | 'music.playlist' | 'music.radio_station' | 'video.movie' | 'video.episode' | 'video.tv_show' | 'video.other' | 'payment.link';
|
|
1555
1602
|
/**
|
|
1556
1603
|
* The locale of the resource. Defaults to en_US.
|
|
1557
1604
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
2
|
+
import { b as normalizeProps, d as dedupeKey, h as hashTag, r as resolveTags, i as isMetaArrayDupeKey } from './unhead.Cdnk2khL.mjs';
|
|
3
3
|
import { c as callHook } from './unhead.mB5lMBMV.mjs';
|
|
4
4
|
|
|
5
5
|
const WHITESPACE_RE = /\s+/;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import { HookableCore } from 'hookable';
|
|
2
|
-
import { U as Unhead, C as ClientHeadHooks, c as CreateClientHeadOptions } from './unhead.
|
|
3
|
-
import { aw as ResolvableHead } from './unhead.
|
|
2
|
+
import { U as Unhead, C as ClientHeadHooks, c as CreateClientHeadOptions } from './unhead.71V9w6oU.js';
|
|
3
|
+
import { aw as ResolvableHead } from './unhead.B8_fLxlB.js';
|
|
4
4
|
|
|
5
5
|
interface ClientUnhead<T = ResolvableHead> extends Unhead<T, boolean> {
|
|
6
6
|
hooks: HookableCore<ClientHeadHooks>;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { at as RawInput, aw as ResolvableHead, aI as ResolvableValue, aB as ResolvableProperties, G as GenericLink, D as DataKeys, aK as SchemaAugmentations, a6 as MetaGeneric, t as GenericScript, b2 as UnheadHtmlAttributes, b1 as UnheadBodyAttributesWithoutEvents } from './unhead.
|
|
1
|
+
import { at as RawInput, aw as ResolvableHead, aI as ResolvableValue, aB as ResolvableProperties, G as GenericLink, D as DataKeys, aK as SchemaAugmentations, a6 as MetaGeneric, t as GenericScript, b2 as UnheadHtmlAttributes, b1 as UnheadBodyAttributesWithoutEvents } from './unhead.B8_fLxlB.mjs';
|
|
2
2
|
|
|
3
3
|
type Base = RawInput<'base'>;
|
|
4
4
|
type HtmlAttributes = RawInput<'htmlAttrs'>;
|