@farm.js/core 0.1.0-beta.11 → 0.1.0-beta.13
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/{chunk-5EVQFRL2.mjs → chunk-3WIRO3N7.mjs} +2 -2
- package/dist/chunk-3WIRO3N7.mjs.map +1 -0
- package/dist/chunk-53MVSX3R.mjs +168 -0
- package/dist/chunk-53MVSX3R.mjs.map +1 -0
- package/dist/{chunk-AW6I64AP.mjs → chunk-6ZXIQSXE.mjs} +16 -1
- package/dist/chunk-6ZXIQSXE.mjs.map +1 -0
- package/dist/chunk-7ZVN3YZI.mjs +333 -0
- package/dist/chunk-7ZVN3YZI.mjs.map +1 -0
- package/dist/{chunk-7N62DNSO.mjs → chunk-H3TE3LOV.mjs} +2 -2
- package/dist/{chunk-QTZZ2ISQ.mjs → chunk-KLA67WKG.mjs} +1 -1
- package/dist/chunk-KLA67WKG.mjs.map +1 -0
- package/dist/{chunk-K5ZTUF22.mjs → chunk-L2PE36GQ.mjs} +7 -3
- package/dist/chunk-L2PE36GQ.mjs.map +1 -0
- package/dist/{chunk-4LND3PXF.mjs → chunk-OPHK6OJN.mjs} +513 -48
- package/dist/chunk-OPHK6OJN.mjs.map +1 -0
- package/dist/chunk-USLFXFFH.mjs +46 -0
- package/dist/chunk-USLFXFFH.mjs.map +1 -0
- package/dist/{chunk-4677KXB7.mjs → chunk-VSDZEB5M.mjs} +368 -103
- package/dist/chunk-VSDZEB5M.mjs.map +1 -0
- package/dist/{chunk-77BOAQHI.mjs → chunk-Z3YG4OZT.mjs} +725 -147
- package/dist/chunk-Z3YG4OZT.mjs.map +1 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/{devtools-A22KUJZT.mjs → devtools-GAZ7F3KL.mjs} +4 -3
- package/dist/{devtools-A22KUJZT.mjs.map → devtools-GAZ7F3KL.mjs.map} +1 -1
- package/dist/docs.cjs +622 -124
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +5 -3
- package/dist/font.cjs +19 -2
- package/dist/font.cjs.map +1 -1
- package/dist/font.mjs +7 -3
- package/dist/index.cjs +2206 -680
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +27 -19
- package/dist/index.mjs.map +1 -1
- package/dist/internal/build-runtime.cjs +2033 -516
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +13 -10
- package/dist/internal/client-runtime.cjs +169 -2
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +170 -2
- package/dist/internal/client-runtime.mjs.map +1 -1
- package/dist/internal/config-runtime.cjs +22 -0
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.mjs +3 -2
- package/dist/internal/metadata-image-runtime.cjs +199 -0
- package/dist/internal/metadata-image-runtime.cjs.map +1 -0
- package/dist/internal/metadata-image-runtime.mjs +8 -0
- package/dist/internal/metadata-image-runtime.mjs.map +1 -0
- package/dist/internal/production-runtime.cjs +310 -0
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.mjs +10 -0
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.mjs +2 -2
- package/dist/plugin.cjs +1521 -339
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.mjs +9 -5
- package/dist/server.cjs +1634 -410
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +17 -19
- package/dist/server.mjs.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +1575 -349
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +9 -5
- package/package.json +10 -1
- package/dist/after.d.mts +0 -25
- package/dist/after.d.ts +0 -25
- package/dist/agent-runtime.d.mts +0 -94
- package/dist/agent-runtime.d.ts +0 -94
- package/dist/api/route-manager.d.mts +0 -66
- package/dist/api/route-manager.d.ts +0 -66
- package/dist/api/runtime.d.mts +0 -3
- package/dist/api/runtime.d.ts +0 -3
- package/dist/api.d.mts +0 -48
- package/dist/api.d.ts +0 -48
- package/dist/app-BNE2FoZ4.d.mts +0 -302
- package/dist/app-DRGUmJ3s.d.ts +0 -302
- package/dist/app-markdown.d.mts +0 -22
- package/dist/app-markdown.d.ts +0 -22
- package/dist/cache.d.mts +0 -192
- package/dist/cache.d.ts +0 -192
- package/dist/chunk-4677KXB7.mjs.map +0 -1
- package/dist/chunk-4LND3PXF.mjs.map +0 -1
- package/dist/chunk-5EVQFRL2.mjs.map +0 -1
- package/dist/chunk-77BOAQHI.mjs.map +0 -1
- package/dist/chunk-AW6I64AP.mjs.map +0 -1
- package/dist/chunk-K5ZTUF22.mjs.map +0 -1
- package/dist/chunk-QM746KUO.mjs +0 -56
- package/dist/chunk-QM746KUO.mjs.map +0 -1
- package/dist/chunk-QTZZ2ISQ.mjs.map +0 -1
- package/dist/client-BT1mFQas.d.mts +0 -447
- package/dist/client-Nn0q4eO4.d.ts +0 -447
- package/dist/client-cache-CIlyBlmx.d.ts +0 -6
- package/dist/client-cache-D-EZ7XVW.d.mts +0 -6
- package/dist/client-plugins-Bc5jHcNr.d.ts +0 -1927
- package/dist/client-plugins-jsk-ZLzJ.d.mts +0 -1927
- package/dist/client-plugins.d.mts +0 -22
- package/dist/client-plugins.d.ts +0 -22
- package/dist/client.d.mts +0 -447
- package/dist/client.d.ts +0 -447
- package/dist/config.d.mts +0 -29
- package/dist/config.d.ts +0 -29
- package/dist/cron.d.mts +0 -78
- package/dist/cron.d.ts +0 -78
- package/dist/deferred.d.mts +0 -42
- package/dist/deferred.d.ts +0 -42
- package/dist/deployment.d.mts +0 -34
- package/dist/deployment.d.ts +0 -34
- package/dist/docs.d.mts +0 -69
- package/dist/docs.d.ts +0 -69
- package/dist/env-types.d.mts +0 -12
- package/dist/env-types.d.ts +0 -12
- package/dist/env.d.mts +0 -45
- package/dist/env.d.ts +0 -45
- package/dist/environment/vite.d.mts +0 -22
- package/dist/environment/vite.d.ts +0 -22
- package/dist/environment.d.mts +0 -18
- package/dist/environment.d.ts +0 -18
- package/dist/font.d.mts +0 -70
- package/dist/font.d.ts +0 -70
- package/dist/headers.d.mts +0 -22
- package/dist/headers.d.ts +0 -22
- package/dist/i18n/client.d.mts +0 -32
- package/dist/i18n/client.d.ts +0 -32
- package/dist/i18n/index.d.mts +0 -20
- package/dist/i18n/index.d.ts +0 -20
- package/dist/i18n/server.d.mts +0 -30
- package/dist/i18n/server.d.ts +0 -30
- package/dist/image/server.d.mts +0 -37
- package/dist/image/server.d.ts +0 -37
- package/dist/image/sharp.d.mts +0 -7
- package/dist/image/sharp.d.ts +0 -7
- package/dist/image-config-Duob7wER.d.mts +0 -50
- package/dist/image-config-Duob7wER.d.ts +0 -50
- package/dist/image.d.mts +0 -39
- package/dist/image.d.ts +0 -39
- package/dist/index.d.mts +0 -455
- package/dist/index.d.ts +0 -455
- package/dist/integration-api-CHT2OKAf.d.mts +0 -93
- package/dist/integration-api-CHT2OKAf.d.ts +0 -93
- package/dist/integrations.d.mts +0 -22
- package/dist/integrations.d.ts +0 -22
- package/dist/internal/build-runtime.d.mts +0 -39
- package/dist/internal/build-runtime.d.ts +0 -39
- package/dist/internal/client-runtime.d.mts +0 -2
- package/dist/internal/client-runtime.d.ts +0 -2
- package/dist/internal/config-runtime.d.mts +0 -39
- package/dist/internal/config-runtime.d.ts +0 -39
- package/dist/internal/production-node-env.d.mts +0 -12
- package/dist/internal/production-node-env.d.ts +0 -12
- package/dist/internal/production-runtime.d.mts +0 -41
- package/dist/internal/production-runtime.d.ts +0 -41
- package/dist/markdown.d.mts +0 -60
- package/dist/markdown.d.ts +0 -60
- package/dist/metadata-7ffpT3jr.d.mts +0 -22
- package/dist/metadata-JHn-8eht.d.ts +0 -22
- package/dist/middleware.d.mts +0 -164
- package/dist/middleware.d.ts +0 -164
- package/dist/navigation-errors-Dvwpzaer.d.mts +0 -13
- package/dist/navigation-errors-Dvwpzaer.d.ts +0 -13
- package/dist/navigation.d.mts +0 -14
- package/dist/navigation.d.ts +0 -14
- package/dist/observability.d.mts +0 -335
- package/dist/observability.d.ts +0 -335
- package/dist/params-BALtrRim.d.ts +0 -15
- package/dist/params-ry-lxqmy.d.mts +0 -15
- package/dist/plugin-BJDf43dc.d.mts +0 -165
- package/dist/plugin-BJDf43dc.d.ts +0 -165
- package/dist/plugin.d.mts +0 -22
- package/dist/plugin.d.ts +0 -22
- package/dist/production-runtime-9KG7GuvW.d.ts +0 -79
- package/dist/production-runtime-B-fweKts.d.mts +0 -79
- package/dist/production-runtime-C_B79w2P.d.mts +0 -28
- package/dist/production-runtime-DDEM1D2q.d.ts +0 -28
- package/dist/query/client.d.mts +0 -61
- package/dist/query/client.d.ts +0 -61
- package/dist/query/index.d.mts +0 -90
- package/dist/query/index.d.ts +0 -90
- package/dist/query/parsers.d.mts +0 -25
- package/dist/query/parsers.d.ts +0 -25
- package/dist/query/server.d.mts +0 -55
- package/dist/query/server.d.ts +0 -55
- package/dist/request-Dsq4kGW0.d.mts +0 -6
- package/dist/request-udtobOLv.d.ts +0 -6
- package/dist/request.d.mts +0 -2
- package/dist/request.d.ts +0 -2
- package/dist/resolver-DJqjLMg_.d.mts +0 -14
- package/dist/resolver-IH4RmPEl.d.ts +0 -14
- package/dist/route-runtime-DoOHzCAD.d.mts +0 -38
- package/dist/route-runtime-DoOHzCAD.d.ts +0 -38
- package/dist/router.d.mts +0 -36
- package/dist/router.d.ts +0 -36
- package/dist/routes.d.mts +0 -224
- package/dist/routes.d.ts +0 -224
- package/dist/runtime-9nQjVM7X.d.mts +0 -206
- package/dist/runtime-Cxpq6xZN.d.mts +0 -27
- package/dist/runtime-DgeS2skB.d.ts +0 -206
- package/dist/runtime-bv63eUiO.d.ts +0 -27
- package/dist/server-action-security.d.mts +0 -43
- package/dist/server-action-security.d.ts +0 -43
- package/dist/server-fn-client.d.mts +0 -32
- package/dist/server-fn-client.d.ts +0 -32
- package/dist/server-fn.d.mts +0 -93
- package/dist/server-fn.d.ts +0 -93
- package/dist/server-plugins.d.mts +0 -55
- package/dist/server-plugins.d.ts +0 -55
- package/dist/server-query-client.d.mts +0 -50
- package/dist/server-query-client.d.ts +0 -50
- package/dist/server-query.d.mts +0 -36
- package/dist/server-query.d.ts +0 -36
- package/dist/server.d.mts +0 -48
- package/dist/server.d.ts +0 -48
- package/dist/storage.d.mts +0 -52
- package/dist/storage.d.ts +0 -52
- package/dist/testing.d.mts +0 -101
- package/dist/testing.d.ts +0 -101
- package/dist/transport-BmbGTXA5.d.mts +0 -49
- package/dist/transport-BmbGTXA5.d.ts +0 -49
- package/dist/types-BMxWr97v.d.mts +0 -81
- package/dist/types-BMxWr97v.d.ts +0 -81
- package/dist/types-C9N-nk5R.d.mts +0 -53
- package/dist/types-C9N-nk5R.d.ts +0 -53
- package/dist/types-D1A6-XvH.d.mts +0 -73
- package/dist/types-D1A6-XvH.d.ts +0 -73
- package/dist/utils-CA0z0c-2.d.ts +0 -23
- package/dist/utils-mYVkSOt2.d.mts +0 -23
- package/dist/version.d.mts +0 -3
- package/dist/version.d.ts +0 -3
- package/dist/vite.d.mts +0 -22
- package/dist/vite.d.ts +0 -22
- package/dist/workflows.d.mts +0 -110
- package/dist/workflows.d.ts +0 -110
- /package/dist/{chunk-7N62DNSO.mjs.map → chunk-H3TE3LOV.mjs.map} +0 -0
package/dist/headers.d.mts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface RequestCookie {
|
|
2
|
-
name: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
interface ReadonlyHeaders extends Iterable<[string, string]> {
|
|
6
|
-
get(name: string): string | null;
|
|
7
|
-
has(name: string): boolean;
|
|
8
|
-
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
|
|
9
|
-
entries(): IterableIterator<[string, string]>;
|
|
10
|
-
keys(): IterableIterator<string>;
|
|
11
|
-
values(): IterableIterator<string>;
|
|
12
|
-
}
|
|
13
|
-
interface ReadonlyRequestCookies extends Iterable<RequestCookie> {
|
|
14
|
-
get(name: string): RequestCookie | undefined;
|
|
15
|
-
getAll(name?: string): RequestCookie[];
|
|
16
|
-
has(name: string): boolean;
|
|
17
|
-
toString(): string;
|
|
18
|
-
}
|
|
19
|
-
declare function headers(): ReadonlyHeaders;
|
|
20
|
-
declare function cookies(): ReadonlyRequestCookies;
|
|
21
|
-
|
|
22
|
-
export { type ReadonlyHeaders, type ReadonlyRequestCookies, type RequestCookie, cookies, headers };
|
package/dist/headers.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface RequestCookie {
|
|
2
|
-
name: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
interface ReadonlyHeaders extends Iterable<[string, string]> {
|
|
6
|
-
get(name: string): string | null;
|
|
7
|
-
has(name: string): boolean;
|
|
8
|
-
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
|
|
9
|
-
entries(): IterableIterator<[string, string]>;
|
|
10
|
-
keys(): IterableIterator<string>;
|
|
11
|
-
values(): IterableIterator<string>;
|
|
12
|
-
}
|
|
13
|
-
interface ReadonlyRequestCookies extends Iterable<RequestCookie> {
|
|
14
|
-
get(name: string): RequestCookie | undefined;
|
|
15
|
-
getAll(name?: string): RequestCookie[];
|
|
16
|
-
has(name: string): boolean;
|
|
17
|
-
toString(): string;
|
|
18
|
-
}
|
|
19
|
-
declare function headers(): ReadonlyHeaders;
|
|
20
|
-
declare function cookies(): ReadonlyRequestCookies;
|
|
21
|
-
|
|
22
|
-
export { type ReadonlyHeaders, type ReadonlyRequestCookies, type RequestCookie, cookies, headers };
|
package/dist/i18n/client.d.mts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { d as FarmTranslator, c as FarmI18nLocale, a as FarmI18nClientSnapshot } from '../types-BMxWr97v.mjs';
|
|
2
|
-
export { e as FarmI18nMessageArgs, f as FarmI18nMessageKey } from '../types-BMxWr97v.mjs';
|
|
3
|
-
|
|
4
|
-
declare const t: FarmTranslator;
|
|
5
|
-
|
|
6
|
-
interface FarmLocaleState {
|
|
7
|
-
locale: FarmI18nLocale;
|
|
8
|
-
locales: readonly FarmI18nLocale[];
|
|
9
|
-
direction: "ltr" | "rtl";
|
|
10
|
-
setLocale(locale: FarmI18nLocale): void;
|
|
11
|
-
}
|
|
12
|
-
interface FarmListFormatOptions {
|
|
13
|
-
localeMatcher?: "lookup" | "best fit";
|
|
14
|
-
type?: "conjunction" | "disjunction" | "unit";
|
|
15
|
-
style?: "long" | "short" | "narrow";
|
|
16
|
-
}
|
|
17
|
-
declare function useLocale(): FarmLocaleState;
|
|
18
|
-
declare function useTranslations(): FarmTranslator;
|
|
19
|
-
declare function getLocale(): FarmI18nLocale;
|
|
20
|
-
declare function getLocaleSource(): FarmI18nClientSnapshot["source"];
|
|
21
|
-
declare function createTranslator(): FarmTranslator;
|
|
22
|
-
declare function setLocale(locale: FarmI18nLocale): void;
|
|
23
|
-
declare function _setFarmI18nClientSnapshot(snapshot: FarmI18nClientSnapshot): void;
|
|
24
|
-
declare const format: {
|
|
25
|
-
number(value: number, options?: Intl.NumberFormatOptions): string;
|
|
26
|
-
currency(value: number, currency: string, options?: Omit<Intl.NumberFormatOptions, "style" | "currency">): string;
|
|
27
|
-
date(value: Date | number, options?: Intl.DateTimeFormatOptions): string;
|
|
28
|
-
relativeTime(value: number, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions): string;
|
|
29
|
-
list(values: Iterable<string>, options?: FarmListFormatOptions): string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { FarmI18nClientSnapshot, FarmI18nLocale, type FarmLocaleState, _setFarmI18nClientSnapshot, createTranslator, format, getLocale, getLocaleSource, setLocale, t, useLocale, useTranslations };
|
package/dist/i18n/client.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { d as FarmTranslator, c as FarmI18nLocale, a as FarmI18nClientSnapshot } from '../types-BMxWr97v.js';
|
|
2
|
-
export { e as FarmI18nMessageArgs, f as FarmI18nMessageKey } from '../types-BMxWr97v.js';
|
|
3
|
-
|
|
4
|
-
declare const t: FarmTranslator;
|
|
5
|
-
|
|
6
|
-
interface FarmLocaleState {
|
|
7
|
-
locale: FarmI18nLocale;
|
|
8
|
-
locales: readonly FarmI18nLocale[];
|
|
9
|
-
direction: "ltr" | "rtl";
|
|
10
|
-
setLocale(locale: FarmI18nLocale): void;
|
|
11
|
-
}
|
|
12
|
-
interface FarmListFormatOptions {
|
|
13
|
-
localeMatcher?: "lookup" | "best fit";
|
|
14
|
-
type?: "conjunction" | "disjunction" | "unit";
|
|
15
|
-
style?: "long" | "short" | "narrow";
|
|
16
|
-
}
|
|
17
|
-
declare function useLocale(): FarmLocaleState;
|
|
18
|
-
declare function useTranslations(): FarmTranslator;
|
|
19
|
-
declare function getLocale(): FarmI18nLocale;
|
|
20
|
-
declare function getLocaleSource(): FarmI18nClientSnapshot["source"];
|
|
21
|
-
declare function createTranslator(): FarmTranslator;
|
|
22
|
-
declare function setLocale(locale: FarmI18nLocale): void;
|
|
23
|
-
declare function _setFarmI18nClientSnapshot(snapshot: FarmI18nClientSnapshot): void;
|
|
24
|
-
declare const format: {
|
|
25
|
-
number(value: number, options?: Intl.NumberFormatOptions): string;
|
|
26
|
-
currency(value: number, currency: string, options?: Omit<Intl.NumberFormatOptions, "style" | "currency">): string;
|
|
27
|
-
date(value: Date | number, options?: Intl.DateTimeFormatOptions): string;
|
|
28
|
-
relativeTime(value: number, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions): string;
|
|
29
|
-
list(values: Iterable<string>, options?: FarmListFormatOptions): string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { FarmI18nClientSnapshot, FarmI18nLocale, type FarmLocaleState, _setFarmI18nClientSnapshot, createTranslator, format, getLocale, getLocaleSource, setLocale, t, useLocale, useTranslations };
|
package/dist/i18n/index.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { j as FarmI18nRouting } from '../types-BMxWr97v.mjs';
|
|
2
|
-
export { l as FarmI18nCatalog, F as FarmI18nCatalogs, a as FarmI18nClientSnapshot, g as FarmI18nCookieConfig, h as FarmI18nDetectionSignal, i as FarmI18nDirection, c as FarmI18nLocale, m as FarmI18nLocaleRegistry, b as FarmI18nLocaleSource, e as FarmI18nMessageArgs, f as FarmI18nMessageKey, n as FarmI18nMessageRegistry, o as FarmI18nMessageValues, k as FarmI18nUserConfig, d as FarmTranslator, R as ResolvedFarmI18nConfig } from '../types-BMxWr97v.mjs';
|
|
3
|
-
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders, m as matchFarmLocale } from '../resolver-DJqjLMg_.mjs';
|
|
4
|
-
|
|
5
|
-
interface FarmLocalePathConfig {
|
|
6
|
-
locales: readonly string[];
|
|
7
|
-
defaultLocale: string;
|
|
8
|
-
routing: FarmI18nRouting;
|
|
9
|
-
}
|
|
10
|
-
interface FarmLocalePathMatch {
|
|
11
|
-
locale?: string;
|
|
12
|
-
pathname: string;
|
|
13
|
-
explicit: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare function resolveFarmLocalePath(pathname: string, config: FarmLocalePathConfig): FarmLocalePathMatch;
|
|
16
|
-
declare function stripFarmLocaleFromPathname(pathname: string, config: FarmLocalePathConfig): string;
|
|
17
|
-
declare function localizeFarmPathname(pathname: string, locale: string, config: FarmLocalePathConfig): string;
|
|
18
|
-
declare function localizeFarmHref(href: string, locale: string, config: FarmLocalePathConfig): string;
|
|
19
|
-
|
|
20
|
-
export { FarmI18nRouting, localizeFarmHref, localizeFarmPathname, resolveFarmLocalePath, stripFarmLocaleFromPathname };
|
package/dist/i18n/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { j as FarmI18nRouting } from '../types-BMxWr97v.js';
|
|
2
|
-
export { l as FarmI18nCatalog, F as FarmI18nCatalogs, a as FarmI18nClientSnapshot, g as FarmI18nCookieConfig, h as FarmI18nDetectionSignal, i as FarmI18nDirection, c as FarmI18nLocale, m as FarmI18nLocaleRegistry, b as FarmI18nLocaleSource, e as FarmI18nMessageArgs, f as FarmI18nMessageKey, n as FarmI18nMessageRegistry, o as FarmI18nMessageValues, k as FarmI18nUserConfig, d as FarmTranslator, R as ResolvedFarmI18nConfig } from '../types-BMxWr97v.js';
|
|
3
|
-
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders, m as matchFarmLocale } from '../resolver-IH4RmPEl.js';
|
|
4
|
-
|
|
5
|
-
interface FarmLocalePathConfig {
|
|
6
|
-
locales: readonly string[];
|
|
7
|
-
defaultLocale: string;
|
|
8
|
-
routing: FarmI18nRouting;
|
|
9
|
-
}
|
|
10
|
-
interface FarmLocalePathMatch {
|
|
11
|
-
locale?: string;
|
|
12
|
-
pathname: string;
|
|
13
|
-
explicit: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare function resolveFarmLocalePath(pathname: string, config: FarmLocalePathConfig): FarmLocalePathMatch;
|
|
16
|
-
declare function stripFarmLocaleFromPathname(pathname: string, config: FarmLocalePathConfig): string;
|
|
17
|
-
declare function localizeFarmPathname(pathname: string, locale: string, config: FarmLocalePathConfig): string;
|
|
18
|
-
declare function localizeFarmHref(href: string, locale: string, config: FarmLocalePathConfig): string;
|
|
19
|
-
|
|
20
|
-
export { FarmI18nRouting, localizeFarmHref, localizeFarmPathname, resolveFarmLocalePath, stripFarmLocaleFromPathname };
|
package/dist/i18n/server.d.mts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { F as FarmLocaleResolution } from '../resolver-DJqjLMg_.mjs';
|
|
2
|
-
import { F as FarmI18nRuntime } from '../runtime-Cxpq6xZN.mjs';
|
|
3
|
-
export { c as createFarmI18nRuntime } from '../runtime-Cxpq6xZN.mjs';
|
|
4
|
-
import { c as FarmI18nLocale, b as FarmI18nLocaleSource, d as FarmTranslator, a as FarmI18nClientSnapshot } from '../types-BMxWr97v.mjs';
|
|
5
|
-
export { e as FarmI18nMessageArgs, f as FarmI18nMessageKey } from '../types-BMxWr97v.mjs';
|
|
6
|
-
|
|
7
|
-
interface FarmListFormatOptions {
|
|
8
|
-
localeMatcher?: "lookup" | "best fit";
|
|
9
|
-
type?: "conjunction" | "disjunction" | "unit";
|
|
10
|
-
style?: "long" | "short" | "narrow";
|
|
11
|
-
}
|
|
12
|
-
declare function _setDefaultFarmI18nRuntime(runtime: FarmI18nRuntime | undefined): void;
|
|
13
|
-
declare function _runWithFarmI18nRequest<T>(runtime: FarmI18nRuntime, request: Request, fn: (resolution: FarmLocaleResolution) => T | Promise<T>, options?: {
|
|
14
|
-
redirect?: boolean;
|
|
15
|
-
}): Promise<T>;
|
|
16
|
-
declare function runWithLocale<T>(locale: FarmI18nLocale, fn: () => T | Promise<T>): Promise<T>;
|
|
17
|
-
declare function getLocale(): FarmI18nLocale;
|
|
18
|
-
declare function getLocaleSource(): FarmI18nLocaleSource;
|
|
19
|
-
declare const t: FarmTranslator;
|
|
20
|
-
declare function createTranslator(locale: FarmI18nLocale): FarmTranslator;
|
|
21
|
-
declare function getFarmI18nClientSnapshot(): FarmI18nClientSnapshot | undefined;
|
|
22
|
-
declare const format: {
|
|
23
|
-
number(value: number, options?: Intl.NumberFormatOptions): string;
|
|
24
|
-
currency(value: number, currency: string, options?: Omit<Intl.NumberFormatOptions, "style" | "currency">): string;
|
|
25
|
-
date(value: Date | number, options?: Intl.DateTimeFormatOptions): string;
|
|
26
|
-
relativeTime(value: number, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions): string;
|
|
27
|
-
list(values: Iterable<string>, options?: FarmListFormatOptions): string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export { FarmI18nClientSnapshot, FarmI18nLocale, FarmI18nRuntime, _runWithFarmI18nRequest, _setDefaultFarmI18nRuntime, createTranslator, format, getFarmI18nClientSnapshot, getLocale, getLocaleSource, runWithLocale, t };
|
package/dist/i18n/server.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { F as FarmLocaleResolution } from '../resolver-IH4RmPEl.js';
|
|
2
|
-
import { F as FarmI18nRuntime } from '../runtime-bv63eUiO.js';
|
|
3
|
-
export { c as createFarmI18nRuntime } from '../runtime-bv63eUiO.js';
|
|
4
|
-
import { c as FarmI18nLocale, b as FarmI18nLocaleSource, d as FarmTranslator, a as FarmI18nClientSnapshot } from '../types-BMxWr97v.js';
|
|
5
|
-
export { e as FarmI18nMessageArgs, f as FarmI18nMessageKey } from '../types-BMxWr97v.js';
|
|
6
|
-
|
|
7
|
-
interface FarmListFormatOptions {
|
|
8
|
-
localeMatcher?: "lookup" | "best fit";
|
|
9
|
-
type?: "conjunction" | "disjunction" | "unit";
|
|
10
|
-
style?: "long" | "short" | "narrow";
|
|
11
|
-
}
|
|
12
|
-
declare function _setDefaultFarmI18nRuntime(runtime: FarmI18nRuntime | undefined): void;
|
|
13
|
-
declare function _runWithFarmI18nRequest<T>(runtime: FarmI18nRuntime, request: Request, fn: (resolution: FarmLocaleResolution) => T | Promise<T>, options?: {
|
|
14
|
-
redirect?: boolean;
|
|
15
|
-
}): Promise<T>;
|
|
16
|
-
declare function runWithLocale<T>(locale: FarmI18nLocale, fn: () => T | Promise<T>): Promise<T>;
|
|
17
|
-
declare function getLocale(): FarmI18nLocale;
|
|
18
|
-
declare function getLocaleSource(): FarmI18nLocaleSource;
|
|
19
|
-
declare const t: FarmTranslator;
|
|
20
|
-
declare function createTranslator(locale: FarmI18nLocale): FarmTranslator;
|
|
21
|
-
declare function getFarmI18nClientSnapshot(): FarmI18nClientSnapshot | undefined;
|
|
22
|
-
declare const format: {
|
|
23
|
-
number(value: number, options?: Intl.NumberFormatOptions): string;
|
|
24
|
-
currency(value: number, currency: string, options?: Omit<Intl.NumberFormatOptions, "style" | "currency">): string;
|
|
25
|
-
date(value: Date | number, options?: Intl.DateTimeFormatOptions): string;
|
|
26
|
-
relativeTime(value: number, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions): string;
|
|
27
|
-
list(values: Iterable<string>, options?: FarmListFormatOptions): string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export { FarmI18nClientSnapshot, FarmI18nLocale, FarmI18nRuntime, _runWithFarmI18nRequest, _setDefaultFarmI18nRuntime, createTranslator, format, getFarmI18nClientSnapshot, getLocale, getLocaleSource, runWithLocale, t };
|
package/dist/image/server.d.mts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { a as FarmImageFormat, R as ResolvedFarmImageConfig } from '../image-config-Duob7wER.mjs';
|
|
2
|
-
|
|
3
|
-
interface FarmImageTransformInput {
|
|
4
|
-
source: Uint8Array;
|
|
5
|
-
sourceUrl: URL;
|
|
6
|
-
sourceType: string;
|
|
7
|
-
width: number;
|
|
8
|
-
quality: number;
|
|
9
|
-
accept: string;
|
|
10
|
-
formats: readonly FarmImageFormat[];
|
|
11
|
-
signal: AbortSignal;
|
|
12
|
-
}
|
|
13
|
-
interface FarmImageTransformResult {
|
|
14
|
-
body: Uint8Array;
|
|
15
|
-
contentType: string;
|
|
16
|
-
}
|
|
17
|
-
type FarmImageTransformer = (input: FarmImageTransformInput) => Promise<FarmImageTransformResult>;
|
|
18
|
-
interface CreateFarmImageHandlerOptions {
|
|
19
|
-
fetch?: typeof globalThis.fetch;
|
|
20
|
-
transform: FarmImageTransformer;
|
|
21
|
-
validateRemoteUrl?: (url: URL) => void | Promise<void>;
|
|
22
|
-
onError?: (error: unknown, request: Request) => void;
|
|
23
|
-
cacheEntries?: number;
|
|
24
|
-
}
|
|
25
|
-
type FarmImageHandler = (request: Request) => Promise<Response | null>;
|
|
26
|
-
type FarmImageRequestErrorCode = "BODY_TOO_LARGE" | "DISALLOWED_SOURCE" | "INVALID_METHOD" | "INVALID_PARAMETER" | "PRIVATE_SOURCE" | "TOO_MANY_REDIRECTS" | "UNSUPPORTED_IMAGE";
|
|
27
|
-
declare class FarmImageRequestError extends Error {
|
|
28
|
-
readonly code: FarmImageRequestErrorCode;
|
|
29
|
-
readonly status: number;
|
|
30
|
-
constructor(code: FarmImageRequestErrorCode, status: number, message: string);
|
|
31
|
-
}
|
|
32
|
-
declare function createFarmImageHandler(config: ResolvedFarmImageConfig, options: CreateFarmImageHandlerOptions): FarmImageHandler;
|
|
33
|
-
declare function createCloudflareImageTransformer(fetcher?: typeof globalThis.fetch): FarmImageTransformer;
|
|
34
|
-
declare function selectOutputFormat(accept: string, formats: readonly FarmImageFormat[]): FarmImageFormat | undefined;
|
|
35
|
-
declare function isPrivateImageAddress(address: string): boolean;
|
|
36
|
-
|
|
37
|
-
export { type CreateFarmImageHandlerOptions, type FarmImageHandler, FarmImageRequestError, type FarmImageTransformInput, type FarmImageTransformResult, type FarmImageTransformer, createCloudflareImageTransformer, createFarmImageHandler, isPrivateImageAddress, selectOutputFormat };
|
package/dist/image/server.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { a as FarmImageFormat, R as ResolvedFarmImageConfig } from '../image-config-Duob7wER.js';
|
|
2
|
-
|
|
3
|
-
interface FarmImageTransformInput {
|
|
4
|
-
source: Uint8Array;
|
|
5
|
-
sourceUrl: URL;
|
|
6
|
-
sourceType: string;
|
|
7
|
-
width: number;
|
|
8
|
-
quality: number;
|
|
9
|
-
accept: string;
|
|
10
|
-
formats: readonly FarmImageFormat[];
|
|
11
|
-
signal: AbortSignal;
|
|
12
|
-
}
|
|
13
|
-
interface FarmImageTransformResult {
|
|
14
|
-
body: Uint8Array;
|
|
15
|
-
contentType: string;
|
|
16
|
-
}
|
|
17
|
-
type FarmImageTransformer = (input: FarmImageTransformInput) => Promise<FarmImageTransformResult>;
|
|
18
|
-
interface CreateFarmImageHandlerOptions {
|
|
19
|
-
fetch?: typeof globalThis.fetch;
|
|
20
|
-
transform: FarmImageTransformer;
|
|
21
|
-
validateRemoteUrl?: (url: URL) => void | Promise<void>;
|
|
22
|
-
onError?: (error: unknown, request: Request) => void;
|
|
23
|
-
cacheEntries?: number;
|
|
24
|
-
}
|
|
25
|
-
type FarmImageHandler = (request: Request) => Promise<Response | null>;
|
|
26
|
-
type FarmImageRequestErrorCode = "BODY_TOO_LARGE" | "DISALLOWED_SOURCE" | "INVALID_METHOD" | "INVALID_PARAMETER" | "PRIVATE_SOURCE" | "TOO_MANY_REDIRECTS" | "UNSUPPORTED_IMAGE";
|
|
27
|
-
declare class FarmImageRequestError extends Error {
|
|
28
|
-
readonly code: FarmImageRequestErrorCode;
|
|
29
|
-
readonly status: number;
|
|
30
|
-
constructor(code: FarmImageRequestErrorCode, status: number, message: string);
|
|
31
|
-
}
|
|
32
|
-
declare function createFarmImageHandler(config: ResolvedFarmImageConfig, options: CreateFarmImageHandlerOptions): FarmImageHandler;
|
|
33
|
-
declare function createCloudflareImageTransformer(fetcher?: typeof globalThis.fetch): FarmImageTransformer;
|
|
34
|
-
declare function selectOutputFormat(accept: string, formats: readonly FarmImageFormat[]): FarmImageFormat | undefined;
|
|
35
|
-
declare function isPrivateImageAddress(address: string): boolean;
|
|
36
|
-
|
|
37
|
-
export { type CreateFarmImageHandlerOptions, type FarmImageHandler, FarmImageRequestError, type FarmImageTransformInput, type FarmImageTransformResult, type FarmImageTransformer, createCloudflareImageTransformer, createFarmImageHandler, isPrivateImageAddress, selectOutputFormat };
|
package/dist/image/sharp.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { R as ResolvedFarmImageConfig } from '../image-config-Duob7wER.mjs';
|
|
2
|
-
import { FarmImageTransformer } from './server.mjs';
|
|
3
|
-
|
|
4
|
-
declare function createSharpImageTransformer(): FarmImageTransformer;
|
|
5
|
-
declare function createNodeImageUrlValidator(config: ResolvedFarmImageConfig): (url: URL) => Promise<void>;
|
|
6
|
-
|
|
7
|
-
export { createNodeImageUrlValidator, createSharpImageTransformer };
|
package/dist/image/sharp.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { R as ResolvedFarmImageConfig } from '../image-config-Duob7wER.js';
|
|
2
|
-
import { FarmImageTransformer } from './server.js';
|
|
3
|
-
|
|
4
|
-
declare function createSharpImageTransformer(): FarmImageTransformer;
|
|
5
|
-
declare function createNodeImageUrlValidator(config: ResolvedFarmImageConfig): (url: URL) => Promise<void>;
|
|
6
|
-
|
|
7
|
-
export { createNodeImageUrlValidator, createSharpImageTransformer };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
type FarmImageFormat = "image/avif" | "image/webp";
|
|
2
|
-
type FarmImageProvider = "auto" | "node" | "cloudflare" | "none";
|
|
3
|
-
interface FarmImageRemotePattern {
|
|
4
|
-
protocol?: "http" | "https";
|
|
5
|
-
hostname: string;
|
|
6
|
-
port?: string;
|
|
7
|
-
pathname?: string;
|
|
8
|
-
search?: string;
|
|
9
|
-
}
|
|
10
|
-
interface FarmImageLocalPattern {
|
|
11
|
-
pathname: string;
|
|
12
|
-
search?: string;
|
|
13
|
-
}
|
|
14
|
-
interface FarmImageConfig {
|
|
15
|
-
/** Runtime optimizer. Auto selects Cloudflare Images on Cloudflare and Sharp elsewhere. */
|
|
16
|
-
provider?: FarmImageProvider;
|
|
17
|
-
/** Public optimizer endpoint. */
|
|
18
|
-
path?: string;
|
|
19
|
-
/** @deprecated Prefer remotePatterns, which also restricts protocol, path, port, and query. */
|
|
20
|
-
domains?: readonly string[];
|
|
21
|
-
remotePatterns?: readonly FarmImageRemotePattern[];
|
|
22
|
-
localPatterns?: readonly FarmImageLocalPattern[];
|
|
23
|
-
deviceSizes?: readonly number[];
|
|
24
|
-
imageSizes?: readonly number[];
|
|
25
|
-
qualities?: readonly number[];
|
|
26
|
-
formats?: readonly FarmImageFormat[];
|
|
27
|
-
minimumCacheTTL?: number;
|
|
28
|
-
maximumResponseBody?: number | string;
|
|
29
|
-
maximumRedirects?: number;
|
|
30
|
-
dangerouslyAllowSVG?: boolean;
|
|
31
|
-
dangerouslyAllowLocalIP?: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface ResolvedFarmImageConfig {
|
|
34
|
-
provider: FarmImageProvider;
|
|
35
|
-
path: string;
|
|
36
|
-
domains: readonly string[];
|
|
37
|
-
remotePatterns: readonly FarmImageRemotePattern[];
|
|
38
|
-
localPatterns: readonly FarmImageLocalPattern[];
|
|
39
|
-
deviceSizes: readonly number[];
|
|
40
|
-
imageSizes: readonly number[];
|
|
41
|
-
qualities: readonly number[];
|
|
42
|
-
formats: readonly FarmImageFormat[];
|
|
43
|
-
minimumCacheTTL: number;
|
|
44
|
-
maximumResponseBody: number;
|
|
45
|
-
maximumRedirects: number;
|
|
46
|
-
dangerouslyAllowSVG: boolean;
|
|
47
|
-
dangerouslyAllowLocalIP: boolean;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export type { FarmImageConfig as F, ResolvedFarmImageConfig as R, FarmImageFormat as a, FarmImageLocalPattern as b, FarmImageProvider as c, FarmImageRemotePattern as d };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
type FarmImageFormat = "image/avif" | "image/webp";
|
|
2
|
-
type FarmImageProvider = "auto" | "node" | "cloudflare" | "none";
|
|
3
|
-
interface FarmImageRemotePattern {
|
|
4
|
-
protocol?: "http" | "https";
|
|
5
|
-
hostname: string;
|
|
6
|
-
port?: string;
|
|
7
|
-
pathname?: string;
|
|
8
|
-
search?: string;
|
|
9
|
-
}
|
|
10
|
-
interface FarmImageLocalPattern {
|
|
11
|
-
pathname: string;
|
|
12
|
-
search?: string;
|
|
13
|
-
}
|
|
14
|
-
interface FarmImageConfig {
|
|
15
|
-
/** Runtime optimizer. Auto selects Cloudflare Images on Cloudflare and Sharp elsewhere. */
|
|
16
|
-
provider?: FarmImageProvider;
|
|
17
|
-
/** Public optimizer endpoint. */
|
|
18
|
-
path?: string;
|
|
19
|
-
/** @deprecated Prefer remotePatterns, which also restricts protocol, path, port, and query. */
|
|
20
|
-
domains?: readonly string[];
|
|
21
|
-
remotePatterns?: readonly FarmImageRemotePattern[];
|
|
22
|
-
localPatterns?: readonly FarmImageLocalPattern[];
|
|
23
|
-
deviceSizes?: readonly number[];
|
|
24
|
-
imageSizes?: readonly number[];
|
|
25
|
-
qualities?: readonly number[];
|
|
26
|
-
formats?: readonly FarmImageFormat[];
|
|
27
|
-
minimumCacheTTL?: number;
|
|
28
|
-
maximumResponseBody?: number | string;
|
|
29
|
-
maximumRedirects?: number;
|
|
30
|
-
dangerouslyAllowSVG?: boolean;
|
|
31
|
-
dangerouslyAllowLocalIP?: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface ResolvedFarmImageConfig {
|
|
34
|
-
provider: FarmImageProvider;
|
|
35
|
-
path: string;
|
|
36
|
-
domains: readonly string[];
|
|
37
|
-
remotePatterns: readonly FarmImageRemotePattern[];
|
|
38
|
-
localPatterns: readonly FarmImageLocalPattern[];
|
|
39
|
-
deviceSizes: readonly number[];
|
|
40
|
-
imageSizes: readonly number[];
|
|
41
|
-
qualities: readonly number[];
|
|
42
|
-
formats: readonly FarmImageFormat[];
|
|
43
|
-
minimumCacheTTL: number;
|
|
44
|
-
maximumResponseBody: number;
|
|
45
|
-
maximumRedirects: number;
|
|
46
|
-
dangerouslyAllowSVG: boolean;
|
|
47
|
-
dangerouslyAllowLocalIP: boolean;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export type { FarmImageConfig as F, ResolvedFarmImageConfig as R, FarmImageFormat as a, FarmImageLocalPattern as b, FarmImageProvider as c, FarmImageRemotePattern as d };
|
package/dist/image.d.mts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ImgHTMLAttributes, SyntheticEvent } from 'react';
|
|
3
|
-
export { F as FarmImageConfig, a as FarmImageFormat, b as FarmImageLocalPattern, c as FarmImageProvider, d as FarmImageRemotePattern, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
4
|
-
|
|
5
|
-
interface StaticImageData {
|
|
6
|
-
src: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
blurDataURL?: string;
|
|
10
|
-
}
|
|
11
|
-
interface FarmImageLoaderProps {
|
|
12
|
-
src: string;
|
|
13
|
-
width: number;
|
|
14
|
-
quality: number;
|
|
15
|
-
}
|
|
16
|
-
type FarmImageLoader = (props: FarmImageLoaderProps) => string;
|
|
17
|
-
interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "srcSet" | "width" | "height" | "loading" | "placeholder"> {
|
|
18
|
-
src: string | StaticImageData;
|
|
19
|
-
alt: string;
|
|
20
|
-
width?: number | `${number}`;
|
|
21
|
-
height?: number | `${number}`;
|
|
22
|
-
fill?: boolean;
|
|
23
|
-
quality?: number;
|
|
24
|
-
sizes?: string;
|
|
25
|
-
loading?: "eager" | "lazy";
|
|
26
|
-
preload?: boolean;
|
|
27
|
-
placeholder?: "empty" | "blur";
|
|
28
|
-
blurDataURL?: string;
|
|
29
|
-
unoptimized?: boolean;
|
|
30
|
-
loader?: FarmImageLoader;
|
|
31
|
-
onLoad?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
32
|
-
}
|
|
33
|
-
interface ImagePropsResult {
|
|
34
|
-
props: ImgHTMLAttributes<HTMLImageElement>;
|
|
35
|
-
}
|
|
36
|
-
declare function getImageProps(input: ImageProps): ImagePropsResult;
|
|
37
|
-
declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
38
|
-
|
|
39
|
-
export { type FarmImageLoader, type FarmImageLoaderProps, Image, type ImageProps, type ImagePropsResult, type StaticImageData, Image as default, getImageProps };
|
package/dist/image.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ImgHTMLAttributes, SyntheticEvent } from 'react';
|
|
3
|
-
export { F as FarmImageConfig, a as FarmImageFormat, b as FarmImageLocalPattern, c as FarmImageProvider, d as FarmImageRemotePattern, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
4
|
-
|
|
5
|
-
interface StaticImageData {
|
|
6
|
-
src: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
blurDataURL?: string;
|
|
10
|
-
}
|
|
11
|
-
interface FarmImageLoaderProps {
|
|
12
|
-
src: string;
|
|
13
|
-
width: number;
|
|
14
|
-
quality: number;
|
|
15
|
-
}
|
|
16
|
-
type FarmImageLoader = (props: FarmImageLoaderProps) => string;
|
|
17
|
-
interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "srcSet" | "width" | "height" | "loading" | "placeholder"> {
|
|
18
|
-
src: string | StaticImageData;
|
|
19
|
-
alt: string;
|
|
20
|
-
width?: number | `${number}`;
|
|
21
|
-
height?: number | `${number}`;
|
|
22
|
-
fill?: boolean;
|
|
23
|
-
quality?: number;
|
|
24
|
-
sizes?: string;
|
|
25
|
-
loading?: "eager" | "lazy";
|
|
26
|
-
preload?: boolean;
|
|
27
|
-
placeholder?: "empty" | "blur";
|
|
28
|
-
blurDataURL?: string;
|
|
29
|
-
unoptimized?: boolean;
|
|
30
|
-
loader?: FarmImageLoader;
|
|
31
|
-
onLoad?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
32
|
-
}
|
|
33
|
-
interface ImagePropsResult {
|
|
34
|
-
props: ImgHTMLAttributes<HTMLImageElement>;
|
|
35
|
-
}
|
|
36
|
-
declare function getImageProps(input: ImageProps): ImagePropsResult;
|
|
37
|
-
declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
38
|
-
|
|
39
|
-
export { type FarmImageLoader, type FarmImageLoaderProps, Image, type ImageProps, type ImagePropsResult, type StaticImageData, Image as default, getImageProps };
|