@unhead/addons 1.3.9 → 1.4.0
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.cjs +1 -0
- package/dist/index.d.cts +40 -0
- package/dist/index.d.mts +40 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -0
- package/dist/{types-9efb11a1.d.ts → shared/addons.0f7fef83.d.cts} +1 -1
- package/dist/shared/addons.0f7fef83.d.mts +21 -0
- package/dist/shared/addons.0f7fef83.d.ts +21 -0
- package/dist/vite.d.cts +6 -0
- package/dist/vite.d.mts +6 -0
- package/dist/vite.d.ts +1 -1
- package/dist/webpack.d.cts +6 -0
- package/dist/webpack.d.mts +6 -0
- package/dist/webpack.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as _unhead_schema from '@unhead/schema';
|
|
2
|
+
|
|
3
|
+
interface InferSeoMetaPluginOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Transform the og title.
|
|
6
|
+
*
|
|
7
|
+
* @param title
|
|
8
|
+
*/
|
|
9
|
+
ogTitle?: ((title: string) => string);
|
|
10
|
+
/**
|
|
11
|
+
* Transform the og description.
|
|
12
|
+
*
|
|
13
|
+
* @param title
|
|
14
|
+
*/
|
|
15
|
+
ogDescription?: ((description: string) => string);
|
|
16
|
+
/**
|
|
17
|
+
* The twitter card to use.
|
|
18
|
+
*
|
|
19
|
+
* @default 'summary_large_image'
|
|
20
|
+
*/
|
|
21
|
+
twitterCard?: false | 'summary' | 'summary_large_image' | 'app' | 'player';
|
|
22
|
+
}
|
|
23
|
+
declare function InferSeoMetaPlugin(options?: InferSeoMetaPluginOptions): _unhead_schema.HeadPlugin;
|
|
24
|
+
|
|
25
|
+
declare const DefaultCriticalTags: {
|
|
26
|
+
htmlAttrs: {
|
|
27
|
+
lang: string;
|
|
28
|
+
};
|
|
29
|
+
meta: ({
|
|
30
|
+
charset: string;
|
|
31
|
+
name?: undefined;
|
|
32
|
+
content?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
name: string;
|
|
35
|
+
content: string;
|
|
36
|
+
charset?: undefined;
|
|
37
|
+
})[];
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { DefaultCriticalTags, InferSeoMetaPlugin, type InferSeoMetaPluginOptions };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as _unhead_schema from '@unhead/schema';
|
|
2
|
+
|
|
3
|
+
interface InferSeoMetaPluginOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Transform the og title.
|
|
6
|
+
*
|
|
7
|
+
* @param title
|
|
8
|
+
*/
|
|
9
|
+
ogTitle?: ((title: string) => string);
|
|
10
|
+
/**
|
|
11
|
+
* Transform the og description.
|
|
12
|
+
*
|
|
13
|
+
* @param title
|
|
14
|
+
*/
|
|
15
|
+
ogDescription?: ((description: string) => string);
|
|
16
|
+
/**
|
|
17
|
+
* The twitter card to use.
|
|
18
|
+
*
|
|
19
|
+
* @default 'summary_large_image'
|
|
20
|
+
*/
|
|
21
|
+
twitterCard?: false | 'summary' | 'summary_large_image' | 'app' | 'player';
|
|
22
|
+
}
|
|
23
|
+
declare function InferSeoMetaPlugin(options?: InferSeoMetaPluginOptions): _unhead_schema.HeadPlugin;
|
|
24
|
+
|
|
25
|
+
declare const DefaultCriticalTags: {
|
|
26
|
+
htmlAttrs: {
|
|
27
|
+
lang: string;
|
|
28
|
+
};
|
|
29
|
+
meta: ({
|
|
30
|
+
charset: string;
|
|
31
|
+
name?: undefined;
|
|
32
|
+
content?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
name: string;
|
|
35
|
+
content: string;
|
|
36
|
+
charset?: undefined;
|
|
37
|
+
})[];
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { DefaultCriticalTags, InferSeoMetaPlugin, type InferSeoMetaPluginOptions };
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface TreeshakeServerComposablesOptions extends BaseTransformerTypes {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface UseSeoMetaTransformOptions extends BaseTransformerTypes {
|
|
6
|
+
imports?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface BaseTransformerTypes {
|
|
10
|
+
sourcemap?: boolean;
|
|
11
|
+
filter?: {
|
|
12
|
+
exclude?: RegExp[];
|
|
13
|
+
include?: RegExp[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface UnpluginOptions extends BaseTransformerTypes {
|
|
17
|
+
treeshake?: TreeshakeServerComposablesOptions;
|
|
18
|
+
transformSeoMeta?: UseSeoMetaTransformOptions;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { UnpluginOptions as U };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface TreeshakeServerComposablesOptions extends BaseTransformerTypes {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface UseSeoMetaTransformOptions extends BaseTransformerTypes {
|
|
6
|
+
imports?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface BaseTransformerTypes {
|
|
10
|
+
sourcemap?: boolean;
|
|
11
|
+
filter?: {
|
|
12
|
+
exclude?: RegExp[];
|
|
13
|
+
include?: RegExp[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface UnpluginOptions extends BaseTransformerTypes {
|
|
17
|
+
treeshake?: TreeshakeServerComposablesOptions;
|
|
18
|
+
transformSeoMeta?: UseSeoMetaTransformOptions;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { UnpluginOptions as U };
|
package/dist/vite.d.cts
ADDED
package/dist/vite.d.mts
ADDED
package/dist/vite.d.ts
CHANGED
package/dist/webpack.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/addons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@rollup/pluginutils": "^5.0.
|
|
52
|
+
"@rollup/pluginutils": "^5.0.4",
|
|
53
53
|
"magic-string": "^0.30.3",
|
|
54
|
-
"mlly": "^1.4.
|
|
54
|
+
"mlly": "^1.4.1",
|
|
55
55
|
"ufo": "^1.3.0",
|
|
56
56
|
"unplugin": "^1.4.0",
|
|
57
57
|
"unplugin-ast": "^0.8.2",
|
|
58
|
-
"@unhead/schema": "1.
|
|
59
|
-
"@unhead/shared": "1.
|
|
58
|
+
"@unhead/schema": "1.4.0",
|
|
59
|
+
"@unhead/shared": "1.4.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/types": "^7.22.11",
|