@unhead/schema 1.7.2 → 1.7.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/index.d.cts CHANGED
@@ -166,6 +166,9 @@ interface Unhead<Input extends {} = Head> {
166
166
  * Use a head plugin, loads the plugins hooks.
167
167
  */
168
168
  use: (plugin: HeadPlugin) => void;
169
+ /**
170
+ * Is it a server-side render context.
171
+ */
169
172
  ssr: boolean;
170
173
  /**
171
174
  * @internal
@@ -244,9 +247,9 @@ interface TagPriority {
244
247
  * (besides some special tags).
245
248
  *
246
249
  * The following special tags have default priorities:
247
- * * -2 `<meta charset ...>`
248
- * * -1 `<base>`
249
- * * 0 `<meta http-equiv="content-security-policy" ...>`
250
+ * -2 `<meta charset ...>`
251
+ * -1 `<base>`
252
+ * 0 `<meta http-equiv="content-security-policy" ...>`
250
253
  *
251
254
  * All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
252
255
  */
@@ -342,7 +345,7 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
342
345
  *
343
346
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
344
347
  */
345
- content?: MaybeArray<Stringable>;
348
+ content?: MaybeArray<Stringable> | null;
346
349
  }
347
350
  type EntryAugmentation = undefined | Record<string, any>;
348
351
  type MaybeFunctionEntries<T> = {
package/dist/index.d.mts CHANGED
@@ -166,6 +166,9 @@ interface Unhead<Input extends {} = Head> {
166
166
  * Use a head plugin, loads the plugins hooks.
167
167
  */
168
168
  use: (plugin: HeadPlugin) => void;
169
+ /**
170
+ * Is it a server-side render context.
171
+ */
169
172
  ssr: boolean;
170
173
  /**
171
174
  * @internal
@@ -244,9 +247,9 @@ interface TagPriority {
244
247
  * (besides some special tags).
245
248
  *
246
249
  * The following special tags have default priorities:
247
- * * -2 `<meta charset ...>`
248
- * * -1 `<base>`
249
- * * 0 `<meta http-equiv="content-security-policy" ...>`
250
+ * -2 `<meta charset ...>`
251
+ * -1 `<base>`
252
+ * 0 `<meta http-equiv="content-security-policy" ...>`
250
253
  *
251
254
  * All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
252
255
  */
@@ -342,7 +345,7 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
342
345
  *
343
346
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
344
347
  */
345
- content?: MaybeArray<Stringable>;
348
+ content?: MaybeArray<Stringable> | null;
346
349
  }
347
350
  type EntryAugmentation = undefined | Record<string, any>;
348
351
  type MaybeFunctionEntries<T> = {
package/dist/index.d.ts CHANGED
@@ -166,6 +166,9 @@ interface Unhead<Input extends {} = Head> {
166
166
  * Use a head plugin, loads the plugins hooks.
167
167
  */
168
168
  use: (plugin: HeadPlugin) => void;
169
+ /**
170
+ * Is it a server-side render context.
171
+ */
169
172
  ssr: boolean;
170
173
  /**
171
174
  * @internal
@@ -244,9 +247,9 @@ interface TagPriority {
244
247
  * (besides some special tags).
245
248
  *
246
249
  * The following special tags have default priorities:
247
- * * -2 `<meta charset ...>`
248
- * * -1 `<base>`
249
- * * 0 `<meta http-equiv="content-security-policy" ...>`
250
+ * -2 `<meta charset ...>`
251
+ * -1 `<base>`
252
+ * 0 `<meta http-equiv="content-security-policy" ...>`
250
253
  *
251
254
  * All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
252
255
  */
@@ -342,7 +345,7 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
342
345
  *
343
346
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
344
347
  */
345
- content?: MaybeArray<Stringable>;
348
+ content?: MaybeArray<Stringable> | null;
346
349
  }
347
350
  type EntryAugmentation = undefined | Record<string, any>;
348
351
  type MaybeFunctionEntries<T> = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "1.7.2",
4
+ "version": "1.7.4",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",