Compare commits
2 Commits
1db7f3af6c
...
v2.3.22-rc
| Author | SHA1 | Date | |
|---|---|---|---|
| 263640bce5 | |||
| 1cc8fa4db4 |
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { getPayload } from 'payload';
|
import { getPayload } from 'payload';
|
||||||
import configPromise from '@payload-config';
|
import configPromise from '@payload-config';
|
||||||
import { Container, Card, Heading } from '@/components/ui';
|
import { Heading } from '@/components/ui';
|
||||||
|
|
||||||
export const AgbHistoryBlock: React.FC<{ title: string }> = async ({ title }) => {
|
export const AgbHistoryBlock: React.FC<{ title: string }> = async ({ title }) => {
|
||||||
const payload = await getPayload({ config: configPromise });
|
const payload = await getPayload({ config: configPromise });
|
||||||
|
|||||||
@@ -796,8 +796,8 @@ const jsxConverters: JSXConverters = {
|
|||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
imageGallery: ({ node }: any) => <Gallery />,
|
imageGallery: ({ node: _node }: any) => <Gallery />,
|
||||||
'block-imageGallery': ({ node }: any) => <Gallery />,
|
'block-imageGallery': ({ node: _node }: any) => <Gallery />,
|
||||||
categoryGrid: ({ node }: any) => {
|
categoryGrid: ({ node }: any) => {
|
||||||
const cats = node.fields.categories || [];
|
const cats = node.fields.categories || [];
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ export interface Config {
|
|||||||
'form-submissions': FormSubmission;
|
'form-submissions': FormSubmission;
|
||||||
products: Product;
|
products: Product;
|
||||||
pages: Page;
|
pages: Page;
|
||||||
|
'agbs-collection': AgbsCollection;
|
||||||
'payload-kv': PayloadKv;
|
'payload-kv': PayloadKv;
|
||||||
'payload-locked-documents': PayloadLockedDocument;
|
'payload-locked-documents': PayloadLockedDocument;
|
||||||
'payload-preferences': PayloadPreference;
|
'payload-preferences': PayloadPreference;
|
||||||
@@ -86,8 +87,11 @@ export interface Config {
|
|||||||
'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
|
'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
|
||||||
products: ProductsSelect<false> | ProductsSelect<true>;
|
products: ProductsSelect<false> | ProductsSelect<true>;
|
||||||
pages: PagesSelect<false> | PagesSelect<true>;
|
pages: PagesSelect<false> | PagesSelect<true>;
|
||||||
|
'agbs-collection': AgbsCollectionSelect<false> | AgbsCollectionSelect<true>;
|
||||||
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
|
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
|
||||||
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
|
'payload-locked-documents':
|
||||||
|
| PayloadLockedDocumentsSelect<false>
|
||||||
|
| PayloadLockedDocumentsSelect<true>;
|
||||||
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
||||||
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
||||||
};
|
};
|
||||||
@@ -358,6 +362,19 @@ export interface Page {
|
|||||||
createdAt: string;
|
createdAt: string;
|
||||||
_status?: ('draft' | 'published') | null;
|
_status?: ('draft' | 'published') | null;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "agbs-collection".
|
||||||
|
*/
|
||||||
|
export interface AgbsCollection {
|
||||||
|
id: number;
|
||||||
|
title: string;
|
||||||
|
versionDate: string;
|
||||||
|
file: number | Media;
|
||||||
|
isCurrent?: boolean | null;
|
||||||
|
updatedAt: string;
|
||||||
|
createdAt: string;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "payload-kv".
|
* via the `definition` "payload-kv".
|
||||||
@@ -405,6 +422,10 @@ export interface PayloadLockedDocument {
|
|||||||
| ({
|
| ({
|
||||||
relationTo: 'pages';
|
relationTo: 'pages';
|
||||||
value: number | Page;
|
value: number | Page;
|
||||||
|
} | null)
|
||||||
|
| ({
|
||||||
|
relationTo: 'agbs-collection';
|
||||||
|
value: number | AgbsCollection;
|
||||||
} | null);
|
} | null);
|
||||||
globalSlug?: string | null;
|
globalSlug?: string | null;
|
||||||
user: {
|
user: {
|
||||||
@@ -592,6 +613,18 @@ export interface PagesSelect<T extends boolean = true> {
|
|||||||
createdAt?: T;
|
createdAt?: T;
|
||||||
_status?: T;
|
_status?: T;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
|
* via the `definition` "agbs-collection_select".
|
||||||
|
*/
|
||||||
|
export interface AgbsCollectionSelect<T extends boolean = true> {
|
||||||
|
title?: T;
|
||||||
|
versionDate?: T;
|
||||||
|
file?: T;
|
||||||
|
isCurrent?: T;
|
||||||
|
updatedAt?: T;
|
||||||
|
createdAt?: T;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* This interface was referenced by `Config`'s JSON-Schema
|
* This interface was referenced by `Config`'s JSON-Schema
|
||||||
* via the `definition` "payload-kv_select".
|
* via the `definition` "payload-kv_select".
|
||||||
@@ -980,7 +1013,6 @@ export interface Auth {
|
|||||||
[k: string]: unknown;
|
[k: string]: unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
declare module 'payload' {
|
declare module 'payload' {
|
||||||
export interface GeneratedTypes extends Config {}
|
export interface GeneratedTypes extends Config {}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user