@unhead/schema 1.9.3 → 1.9.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/index.d.cts CHANGED
@@ -538,11 +538,13 @@ interface UseScriptOptions<T> extends HeadEntryOptions {
538
538
  }) => any);
539
539
  /**
540
540
  * The trigger to load the script:
541
- * - `manual` - Load the script manually by calling `$script.load()`.
542
- * - `Promise` - Load the script when the promise resolves.
543
- * - `Function` - Register a callback function to load the script.
541
+ * - `undefined` | `client` - (Default) Load the script on the client when this js is loaded.
542
+ * - `manual` - Load the script manually by calling `$script.load()`, exists only on the client.
543
+ * - `Promise` - Load the script when the promise resolves, exists only on the client.
544
+ * - `Function` - Register a callback function to load the script, exists only on the client.
545
+ * - `server` - Have the script injected on the server.
544
546
  */
545
- trigger?: 'manual' | Promise<void> | ((fn: any) => any);
547
+ trigger?: 'client' | 'server' | 'manual' | Promise<void> | ((fn: any) => any) | null;
546
548
  /**
547
549
  * Context to run events with. This is useful in Vue to attach the current instance context before
548
550
  * calling the event, allowing the event to be reactive.
package/dist/index.d.mts CHANGED
@@ -538,11 +538,13 @@ interface UseScriptOptions<T> extends HeadEntryOptions {
538
538
  }) => any);
539
539
  /**
540
540
  * The trigger to load the script:
541
- * - `manual` - Load the script manually by calling `$script.load()`.
542
- * - `Promise` - Load the script when the promise resolves.
543
- * - `Function` - Register a callback function to load the script.
541
+ * - `undefined` | `client` - (Default) Load the script on the client when this js is loaded.
542
+ * - `manual` - Load the script manually by calling `$script.load()`, exists only on the client.
543
+ * - `Promise` - Load the script when the promise resolves, exists only on the client.
544
+ * - `Function` - Register a callback function to load the script, exists only on the client.
545
+ * - `server` - Have the script injected on the server.
544
546
  */
545
- trigger?: 'manual' | Promise<void> | ((fn: any) => any);
547
+ trigger?: 'client' | 'server' | 'manual' | Promise<void> | ((fn: any) => any) | null;
546
548
  /**
547
549
  * Context to run events with. This is useful in Vue to attach the current instance context before
548
550
  * calling the event, allowing the event to be reactive.
package/dist/index.d.ts CHANGED
@@ -538,11 +538,13 @@ interface UseScriptOptions<T> extends HeadEntryOptions {
538
538
  }) => any);
539
539
  /**
540
540
  * The trigger to load the script:
541
- * - `manual` - Load the script manually by calling `$script.load()`.
542
- * - `Promise` - Load the script when the promise resolves.
543
- * - `Function` - Register a callback function to load the script.
541
+ * - `undefined` | `client` - (Default) Load the script on the client when this js is loaded.
542
+ * - `manual` - Load the script manually by calling `$script.load()`, exists only on the client.
543
+ * - `Promise` - Load the script when the promise resolves, exists only on the client.
544
+ * - `Function` - Register a callback function to load the script, exists only on the client.
545
+ * - `server` - Have the script injected on the server.
544
546
  */
545
- trigger?: 'manual' | Promise<void> | ((fn: any) => any);
547
+ trigger?: 'client' | 'server' | 'manual' | Promise<void> | ((fn: any) => any) | null;
546
548
  /**
547
549
  * Context to run events with. This is useful in Vue to attach the current instance context before
548
550
  * calling the event, allowing the event to be reactive.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "1.9.3",
4
+ "version": "1.9.5",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",