payload-plugin-llms 0.9.0 → 0.9.1
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/README.md +134 -61
- package/dist/global.d.ts +4 -0
- package/dist/global.d.ts.map +1 -0
- package/dist/index.cjs +13 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/lexical.d.ts +28 -4
- package/dist/lexical.d.ts.map +1 -1
- package/dist/llms-lexical.d.ts +4 -0
- package/dist/llms-lexical.d.ts.map +1 -0
- package/dist/llms-txt.d.ts +48 -7
- package/dist/llms-txt.d.ts.map +1 -1
- package/dist/next/headers.d.ts +0 -1
- package/dist/next/headers.d.ts.map +1 -1
- package/dist/next/index.cjs +1 -2
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.ts +3 -5
- package/dist/next/index.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/next/index.js.map +1 -1
- package/dist/next/llms-txt-response.d.ts +7 -0
- package/dist/next/llms-txt-response.d.ts.map +1 -0
- package/dist/next/markdown-response.d.ts +4 -0
- package/dist/next/markdown-response.d.ts.map +1 -0
- package/dist/next/rewrites.d.ts +32 -7
- package/dist/next/rewrites.d.ts.map +1 -1
- package/dist/next/types.d.ts +2 -0
- package/dist/next/types.d.ts.map +1 -1
- package/dist/options.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +42 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -5
- package/dist/chunk-B5YH4Y5S.js +0 -3
- package/dist/chunk-B5YH4Y5S.js.map +0 -1
- package/dist/next/llms-route.d.ts +0 -12
- package/dist/next/llms-route.d.ts.map +0 -1
- package/dist/next/markdown-route.d.ts +0 -34
- package/dist/next/markdown-route.d.ts.map +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare function createMarkdownResponse(markdown: string, options?: {
|
|
2
|
-
headers?: HeadersInit;
|
|
3
|
-
}): Response;
|
|
4
|
-
export type MarkdownRouteParams = {
|
|
5
|
-
locale: string;
|
|
6
|
-
slug?: string[];
|
|
7
|
-
};
|
|
8
|
-
export type MarkdownRouteContext = {
|
|
9
|
-
params: MarkdownRouteParams | Promise<MarkdownRouteParams>;
|
|
10
|
-
};
|
|
11
|
-
export type MarkdownSearchParamsMapper = string[] | ((searchParams: URLSearchParams) => Record<string, string>);
|
|
12
|
-
export type MarkdownRouteGetMarkdownArgs = {
|
|
13
|
-
locale: string;
|
|
14
|
-
slug?: string[];
|
|
15
|
-
draft: boolean;
|
|
16
|
-
searchParams: Record<string, string>;
|
|
17
|
-
request: Request;
|
|
18
|
-
};
|
|
19
|
-
type DraftModeValue = boolean | {
|
|
20
|
-
isEnabled: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type CreateMarkdownRouteOptions = {
|
|
23
|
-
locales: readonly string[];
|
|
24
|
-
getMarkdown: (args: MarkdownRouteGetMarkdownArgs) => Promise<string | null> | string | null;
|
|
25
|
-
draftMode?: (() => Promise<DraftModeValue> | DraftModeValue) | DraftModeValue;
|
|
26
|
-
searchParams?: MarkdownSearchParamsMapper;
|
|
27
|
-
notFoundBody?: string;
|
|
28
|
-
notFoundStatus?: number;
|
|
29
|
-
headers?: HeadersInit | ((markdown: string, context: MarkdownRouteGetMarkdownArgs) => HeadersInit | Promise<HeadersInit>);
|
|
30
|
-
beforeResponse?: (markdown: string, context: MarkdownRouteGetMarkdownArgs) => Promise<string> | string;
|
|
31
|
-
};
|
|
32
|
-
export declare function createMarkdownRoute(options: CreateMarkdownRouteOptions): (request: Request, context: MarkdownRouteContext) => Promise<Response>;
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=markdown-route.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-route.d.ts","sourceRoot":"","sources":["../../src/next/markdown-route.ts"],"names":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