@ubean/image 0.4.4 → 0.4.6
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/components.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/ipx.d.ts +8 -9
- package/dist/vite.d.ts +3 -3
- package/package.json +4 -4
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ImageFormat, r as ImageFit, s as ImagePosition } from "./types-DosomQo8.js";
|
|
2
2
|
import { PropType } from "vue";
|
|
3
3
|
//#region src/components.d.ts
|
|
4
|
-
declare const NuxtImg: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
export declare const NuxtImg: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
src: {
|
|
6
6
|
type: PropType<string>;
|
|
7
7
|
required: true;
|
|
@@ -88,7 +88,7 @@ declare const NuxtImg: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
88
88
|
placeholder: string | number | boolean;
|
|
89
89
|
preload: boolean;
|
|
90
90
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
91
|
-
declare const NuxtPicture: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
91
|
+
export declare const NuxtPicture: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
92
92
|
src: {
|
|
93
93
|
type: StringConstructor;
|
|
94
94
|
required: true;
|
|
@@ -164,4 +164,4 @@ declare const NuxtPicture: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
164
164
|
formats: Record<string, ImageFormat[]>;
|
|
165
165
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
166
166
|
//#endregion
|
|
167
|
-
export { NuxtImg
|
|
167
|
+
export { NuxtImg as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import ubeanImagePlugin, { UbeanImageOptions } from "./vite.js";
|
|
|
4
4
|
import { ServeIpxOptions, ServeIpxResult, createIpxHonoHandler, parseIpxModifiers, resolveLocalImage, serveIpxRequest } from "./ipx.js";
|
|
5
5
|
import { C as resolveAlias, D as staticProvider, E as srcSetToString, O as validateDomain, S as isRemoteUrl, _ as getPlaceholder, a as useImage, b as ipxProvider, c as cloudinaryProvider, d as createImageContext, f as createImageHash, g as detectFormat, h as defaultScreens, i as resolveImage, l as createDensitySrcSet, m as createStaticUrl, n as defineImagePreset, o as buildImgAttributes, p as createSrcSet, r as getImageContext, s as builtinProviders, t as configureImageRuntime, u as createIPXUrl, x as isDataUrl, y as imgixProvider } from "./runtime-B5AxhRTR.js";
|
|
6
6
|
//#region src/index.d.ts
|
|
7
|
-
declare const UbeanImg: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
export declare const UbeanImg: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
src: {
|
|
9
9
|
type: import("vue").PropType<string>;
|
|
10
10
|
required: true;
|
|
@@ -91,7 +91,7 @@ declare const UbeanImg: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
91
91
|
placeholder: string | number | boolean;
|
|
92
92
|
preload: boolean;
|
|
93
93
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
94
|
-
declare const UbeanPicture: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
94
|
+
export declare const UbeanPicture: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
95
95
|
src: {
|
|
96
96
|
type: StringConstructor;
|
|
97
97
|
required: true;
|
|
@@ -178,4 +178,4 @@ declare const _default: {
|
|
|
178
178
|
install(app: any, options?: any): void;
|
|
179
179
|
};
|
|
180
180
|
//#endregion
|
|
181
|
-
export { type CreateImageOptions, type ImageCTX, type ImageFit, type ImageFormat, type ImageModifiers, type ImageOptions, type ImagePosition, type ImageProvider, type ImageSize, type ImageSrcsetItem, NuxtImg, NuxtPicture, type ResolvedImage, type ServeIpxOptions, type ServeIpxResult, type UbeanImageOptions,
|
|
181
|
+
export { type CreateImageOptions, type ImageCTX, type ImageFit, type ImageFormat, type ImageModifiers, type ImageOptions, type ImagePosition, type ImageProvider, type ImageSize, type ImageSrcsetItem, NuxtImg, NuxtPicture, type ResolvedImage, type ServeIpxOptions, type ServeIpxResult, type UbeanImageOptions, buildImgAttributes, builtinProviders, cloudinaryProvider, configureImageRuntime, createDensitySrcSet, createIPXUrl, createImageContext, createImageHash, createIpxHonoHandler, createSrcSet, createStaticUrl, _default as default, defaultScreens, defineImagePreset, detectFormat, getImageContext, getPlaceholder, imgixProvider, ipxProvider, isDataUrl, isRemoteUrl, parseIpxModifiers, resolveAlias, resolveImage, resolveLocalImage, serveIpxRequest, srcSetToString, staticProvider, ubeanImagePlugin, useImage, validateDomain };
|
package/dist/ipx.d.ts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
//#region src/ipx.d.ts
|
|
2
|
-
interface ServeIpxOptions {
|
|
2
|
+
export interface ServeIpxOptions {
|
|
3
3
|
rootDir: string;
|
|
4
4
|
staticDir?: string;
|
|
5
5
|
isDev?: boolean;
|
|
6
6
|
}
|
|
7
|
-
interface ServeIpxResult {
|
|
7
|
+
export interface ServeIpxResult {
|
|
8
8
|
status: number;
|
|
9
9
|
headers: Record<string, string>;
|
|
10
10
|
body?: Buffer | Uint8Array | string;
|
|
11
11
|
redirect?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function parseIpxModifiers(str: string): Record<string, unknown>;
|
|
14
|
-
declare function resolveLocalImage(root: string, staticDir: string, src: string): string | undefined;
|
|
15
|
-
declare function ipxContentType(src: string, format?: string): string;
|
|
13
|
+
export declare function parseIpxModifiers(str: string): Record<string, unknown>;
|
|
14
|
+
export declare function resolveLocalImage(root: string, staticDir: string, src: string): string | undefined;
|
|
15
|
+
export declare function ipxContentType(src: string, format?: string): string;
|
|
16
16
|
/**
|
|
17
17
|
* Serve `/_ipx/<modifiers>/<src>` the same way in Vite dev and production Hono.
|
|
18
18
|
* `pathname` is the part after `/_ipx` (e.g. `/_/photo.jpg` or `/w_800/photo.jpg`).
|
|
19
19
|
*/
|
|
20
|
-
declare function serveIpxRequest(pathname: string, options: ServeIpxOptions): Promise<ServeIpxResult>;
|
|
21
|
-
declare function createIpxHonoHandler(options: ServeIpxOptions): (c: {
|
|
20
|
+
export declare function serveIpxRequest(pathname: string, options: ServeIpxOptions): Promise<ServeIpxResult>;
|
|
21
|
+
export declare function createIpxHonoHandler(options: ServeIpxOptions): (c: {
|
|
22
22
|
req: {
|
|
23
23
|
path: string;
|
|
24
24
|
};
|
|
25
25
|
redirect: (location: string, status?: 301 | 302) => Response;
|
|
26
26
|
}) => Promise<Response>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { ServeIpxOptions, ServeIpxResult, createIpxHonoHandler, ipxContentType, parseIpxModifiers, resolveLocalImage, serveIpxRequest };
|
|
27
|
+
//#endregion
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as CreateImageOptions } from "./types-DosomQo8.js";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
3
|
//#region src/vite.d.ts
|
|
4
|
-
interface UbeanImageOptions extends CreateImageOptions {
|
|
4
|
+
export interface UbeanImageOptions extends CreateImageOptions {
|
|
5
5
|
injectScript?: boolean;
|
|
6
6
|
staticDir?: string;
|
|
7
7
|
ipxMiddleware?: boolean;
|
|
8
8
|
devtools?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare function ubeanImagePlugin(userOptions?: UbeanImageOptions): Plugin;
|
|
10
|
+
export declare function ubeanImagePlugin(userOptions?: UbeanImageOptions): Plugin;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { ubeanImagePlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/image",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Image optimization and transformation for ubean",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^26.5.0",
|
|
34
|
-
"typescript": "
|
|
35
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.
|
|
36
|
-
"vite-plus": "0.3.
|
|
34
|
+
"typescript": "npm:typescript-native-bridge@latest",
|
|
35
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
|
|
36
|
+
"vite-plus": "0.3.1",
|
|
37
37
|
"vue": "^3.5.42"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|