@unhead/schema 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromiseProps, HeadTag as HeadTag$1, MergeHead, BaseBodyAttributes, HtmlAttributes as HtmlAttributes$1, Merge, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, HttpEventAttributes, DataKeys, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, Meta as Meta$1, Stringable } from '@zhead/schema';
|
|
2
|
-
export { DataKeys, DefinedValueOrEmptyObject, MergeHead, MetaFlatInput, TagKey } from '@zhead/schema';
|
|
2
|
+
export { DataKeys, DefinedValueOrEmptyObject, MergeHead, MetaFlatInput, SpeculationRules, TagKey } from '@zhead/schema';
|
|
3
3
|
import { NestedHooks, Hookable } from 'hookable';
|
|
4
4
|
|
|
5
5
|
interface ResolvesDuplicates {
|
|
@@ -38,23 +38,24 @@ interface TagPosition {
|
|
|
38
38
|
*/
|
|
39
39
|
body?: true;
|
|
40
40
|
}
|
|
41
|
+
type InnerContentVal = string | Record<string, any>;
|
|
41
42
|
interface InnerContent {
|
|
42
43
|
/**
|
|
43
44
|
* Text content of the tag.
|
|
44
45
|
*
|
|
45
46
|
* Alias for children
|
|
46
47
|
*/
|
|
47
|
-
innerHTML?:
|
|
48
|
+
innerHTML?: InnerContentVal;
|
|
48
49
|
/**
|
|
49
50
|
* Sets the textContent of an element.
|
|
50
51
|
*/
|
|
51
|
-
children?:
|
|
52
|
+
children?: InnerContentVal;
|
|
52
53
|
/**
|
|
53
54
|
* Sets the textContent of an element. This will be HTML encoded.
|
|
54
55
|
*
|
|
55
56
|
* Alias for children
|
|
56
57
|
*/
|
|
57
|
-
textContent?:
|
|
58
|
+
textContent?: InnerContentVal;
|
|
58
59
|
}
|
|
59
60
|
interface TagPriority {
|
|
60
61
|
/**
|
|
@@ -356,4 +357,4 @@ interface Unhead<Input extends {} = Head> {
|
|
|
356
357
|
_elMap: Record<string, Element>;
|
|
357
358
|
}
|
|
358
359
|
|
|
359
|
-
export { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BeforeRenderContext, BodyAttributes, CreateHeadOptions, DomRenderTagContext, EntryAugmentation, EntryResolveCtx, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadTag, HeadTagKeys, HookResult, HtmlAttributes, InnerContent, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SchemaAugmentations, Script, SideEffectsRecord, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, Unhead, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
|
360
|
+
export { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BeforeRenderContext, BodyAttributes, CreateHeadOptions, DomRenderTagContext, EntryAugmentation, EntryResolveCtx, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadTag, HeadTagKeys, HookResult, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SchemaAugmentations, Script, SideEffectsRecord, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, Unhead, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/schema",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "1.0.7",
|
|
5
|
+
"packageManager": "pnpm@7.18.0",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@zhead/schema": "^1.0.
|
|
38
|
+
"@zhead/schema": "^1.0.7",
|
|
39
39
|
"hookable": "^5.4.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|