@unhead/schema 1.1.30 → 1.1.31
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 +15 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -336,13 +336,13 @@ interface HeadEntry<Input> {
|
|
|
336
336
|
*
|
|
337
337
|
* @internal
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
mode?: RuntimeMode;
|
|
340
340
|
/**
|
|
341
341
|
* Transformer function for the entry.
|
|
342
342
|
*
|
|
343
343
|
* @internal
|
|
344
344
|
*/
|
|
345
|
-
|
|
345
|
+
transform?: (input: unknown) => unknown;
|
|
346
346
|
/**
|
|
347
347
|
* Head entry index
|
|
348
348
|
*
|
|
@@ -355,6 +355,18 @@ interface HeadEntry<Input> {
|
|
|
355
355
|
* @internal
|
|
356
356
|
*/
|
|
357
357
|
_sde: SideEffectsRecord;
|
|
358
|
+
/**
|
|
359
|
+
* Default tag position.
|
|
360
|
+
*
|
|
361
|
+
* @internal
|
|
362
|
+
*/
|
|
363
|
+
tagPosition?: TagPosition['tagPosition'];
|
|
364
|
+
/**
|
|
365
|
+
* Default tag priority.
|
|
366
|
+
*
|
|
367
|
+
* @internal
|
|
368
|
+
*/
|
|
369
|
+
tagPriority?: TagPriority['tagPriority'];
|
|
358
370
|
}
|
|
359
371
|
type HeadPlugin = Omit<CreateHeadOptions, 'plugins'>;
|
|
360
372
|
/**
|
|
@@ -375,6 +387,7 @@ interface ActiveHeadEntry<Input> {
|
|
|
375
387
|
dispose: () => void;
|
|
376
388
|
}
|
|
377
389
|
interface CreateHeadOptions {
|
|
390
|
+
mode?: 'server' | 'client';
|
|
378
391
|
domDelayFn?: (fn: () => void) => void;
|
|
379
392
|
document?: Document;
|
|
380
393
|
plugins?: HeadPlugin[];
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/schema",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"packageManager": "pnpm@8.6.
|
|
4
|
+
"version": "1.1.31",
|
|
5
|
+
"packageManager": "pnpm@8.6.7",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/harlan-zw",
|