opacacms 0.1.21 → 0.2.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/README.md +792 -50
- package/dist/admin/auth-client.d.ts +39 -39
- package/dist/admin/index.js +2360 -1392
- package/dist/admin/react.d.ts +1 -1
- package/dist/admin/react.js +8 -0
- package/dist/admin/router.d.ts +1 -0
- package/dist/admin/stores/ui.d.ts +10 -0
- package/dist/admin/ui/admin-layout.d.ts +4 -4
- package/dist/admin/ui/components/DataDetailView.d.ts +1 -1
- package/dist/admin/ui/components/DetailSheet.d.ts +19 -0
- package/dist/admin/ui/components/PluginSettingsForm.d.ts +11 -0
- package/dist/admin/ui/components/fields/BooleanField.d.ts +2 -1
- package/dist/admin/ui/components/fields/DateField.d.ts +1 -1
- package/dist/admin/ui/components/fields/FieldLabel.d.ts +11 -0
- package/dist/admin/ui/components/fields/FileField.d.ts +1 -1
- package/dist/admin/ui/components/fields/NumberField.d.ts +1 -1
- package/dist/admin/ui/components/fields/RadioField.d.ts +1 -1
- package/dist/admin/ui/components/fields/RelationshipField.d.ts +3 -1
- package/dist/admin/ui/components/fields/SelectField.d.ts +1 -1
- package/dist/admin/ui/components/fields/TextAreaField.d.ts +1 -1
- package/dist/admin/ui/components/fields/TextField.d.ts +1 -1
- package/dist/admin/ui/components/fields/VirtualField.d.ts +1 -0
- package/dist/admin/ui/components/fields/index.d.ts +16 -16
- package/dist/admin/ui/components/fields/richtext-editor/index.d.ts +1 -1
- package/dist/admin/ui/components/media/AssetManagerModal.d.ts +1 -1
- package/dist/admin/ui/components/toast.d.ts +1 -1
- package/dist/admin/ui/components/ui/accordion.d.ts +1 -1
- package/dist/admin/ui/components/ui/button.d.ts +1 -1
- package/dist/admin/ui/components/ui/collapsible.d.ts +1 -1
- package/dist/admin/ui/components/ui/dialog.d.ts +1 -1
- package/dist/admin/ui/components/ui/group.d.ts +1 -1
- package/dist/admin/ui/components/ui/index.d.ts +17 -17
- package/dist/admin/ui/components/ui/input.d.ts +1 -1
- package/dist/admin/ui/components/ui/label.d.ts +1 -1
- package/dist/admin/ui/components/ui/radio-group.d.ts +1 -1
- package/dist/admin/ui/components/ui/relationship.d.ts +4 -4
- package/dist/admin/ui/components/ui/select.d.ts +1 -1
- package/dist/admin/ui/components/ui/sheet.d.ts +1 -1
- package/dist/admin/ui/components/ui/tabs.d.ts +1 -1
- package/dist/admin/ui/components/versions-sheet.d.ts +11 -0
- package/dist/admin/ui/views/media-registry-view.d.ts +1 -1
- package/dist/admin/ui/views/settings-view.d.ts +2 -2
- package/dist/admin/vue.js +8 -0
- package/dist/admin/webcomponent.js +2 -2
- package/dist/admin.css +1 -1
- package/dist/auth/index.d.ts +101 -41
- package/dist/{chunk-0sdceeys.js → chunk-0bq155dy.js} +86 -6
- package/dist/{chunk-59sg3pw9.js → chunk-0gtxnxmd.js} +90 -7
- package/dist/{chunk-v521d72w.js → chunk-3rdhbedb.js} +1 -1
- package/dist/chunk-51z3x7kq.js +20 -0
- package/dist/{chunk-7fyepksb.js → chunk-526a3gqx.js} +1 -1
- package/dist/{chunk-wmvjvn7b.js → chunk-6qq3ne6b.js} +39 -1
- package/dist/{chunk-0am1m47g.js → chunk-6v1fw7q7.js} +5 -5
- package/dist/{chunk-t9v845m2.js → chunk-7y1nbmw6.js} +34 -3
- package/dist/chunk-8scgdznr.js +44 -0
- package/dist/{chunk-mycmsjd9.js → chunk-b3kr8w41.js} +57 -6
- package/dist/chunk-bexcv7xe.js +36 -0
- package/dist/{chunk-16vgcf3k.js → chunk-byq8g0rd.js} +1 -1
- package/dist/{chunk-fqastxq9.js → chunk-d1asgtke.js} +86 -6
- package/dist/{chunk-cpw2y3pn.js → chunk-dykn5hr6.js} +7 -7
- package/dist/{chunk-61kwqve4.js → chunk-esrg9qj0.js} +90 -9
- package/dist/chunk-fj19qccp.js +78 -0
- package/dist/{chunk-ekxkvqjm.js → chunk-gmee4mdc.js} +90 -9
- package/dist/{chunk-xa7rjsn2.js → chunk-j53pz21t.js} +2 -2
- package/dist/{chunk-xrfhhz85.js → chunk-kc4jfnv7.js} +480 -85
- package/dist/chunk-mkn49zmy.js +102 -0
- package/dist/{chunk-n1xraw7j.js → chunk-qb6ztvw9.js} +1 -1
- package/dist/{chunk-2kyhqvhc.js → chunk-qxt9vge8.js} +1 -1
- package/dist/chunk-r39em4yj.js +29 -0
- package/dist/chunk-rqyjjqgy.js +91 -0
- package/dist/chunk-rsf0tpy1.js +8 -0
- package/dist/chunk-swtcpvhf.js +2442 -0
- package/dist/chunk-t0zg026p.js +71 -0
- package/dist/chunk-twpvxfce.js +64 -0
- package/dist/{chunk-ybbbqj63.js → chunk-v9z61v3g.js} +15 -0
- package/dist/{chunk-jwjk85ze.js → chunk-ywm4t2gm.js} +6 -2
- package/dist/cli/commands/plugin-build.d.ts +1 -0
- package/dist/cli/commands/plugin-init.d.ts +1 -0
- package/dist/cli/commands/plugin-sync.d.ts +1 -0
- package/dist/cli/index.js +24 -6
- package/dist/config-utils.d.ts +1 -1
- package/dist/config.d.ts +21 -4
- package/dist/db/better-sqlite.d.ts +1 -1
- package/dist/db/better-sqlite.js +5 -5
- package/dist/db/bun-sqlite.d.ts +1 -1
- package/dist/db/bun-sqlite.js +5 -5
- package/dist/db/d1.d.ts +1 -1
- package/dist/db/d1.js +5 -5
- package/dist/db/index.js +9 -9
- package/dist/db/postgres.d.ts +1 -1
- package/dist/db/postgres.js +5 -5
- package/dist/db/sqlite.d.ts +1 -1
- package/dist/db/sqlite.js +5 -5
- package/dist/index.js +4 -3
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/ui-bridge.d.ts +12 -0
- package/dist/plugins/utils.d.ts +5 -0
- package/dist/runtimes/bun.js +13 -7
- package/dist/runtimes/cloudflare-workers.js +5 -5
- package/dist/runtimes/next.js +5 -5
- package/dist/runtimes/node.js +13 -7
- package/dist/schema/collection.d.ts +9 -26
- package/dist/schema/fields/base.d.ts +3 -2
- package/dist/schema/fields/index.d.ts +12 -0
- package/dist/schema/fields/validation.test.d.ts +1 -0
- package/dist/schema/global.d.ts +10 -7
- package/dist/schema/index.js +22 -6
- package/dist/server/admin-router.d.ts +2 -2
- package/dist/server/admin.d.ts +2 -1
- package/dist/server/collection-router.d.ts +1 -1
- package/dist/server/handlers.d.ts +10 -0
- package/dist/server/middlewares/admin.d.ts +2 -2
- package/dist/server/middlewares/auth.d.ts +1 -1
- package/dist/server/middlewares/context.d.ts +2 -0
- package/dist/server/middlewares/rate-limit.d.ts +1 -1
- package/dist/server/openapi.d.ts +2 -0
- package/dist/server/plugins-loader.d.ts +6 -0
- package/dist/server/router.d.ts +3 -3
- package/dist/server/routers/admin.d.ts +2 -2
- package/dist/server/routers/auth.d.ts +1 -1
- package/dist/server/routers/collections.d.ts +1 -1
- package/dist/server/routers/plugins.d.ts +18 -0
- package/dist/server/setup-middlewares.d.ts +2 -2
- package/dist/server/system-router.d.ts +1 -1
- package/dist/server.js +11 -7
- package/dist/storage/adapters/local.d.ts +1 -1
- package/dist/storage/adapters/s3.d.ts +1 -1
- package/dist/types.d.ts +222 -15
- package/dist/utils/logger.d.ts +13 -35
- package/dist/validation.d.ts +40 -0
- package/dist/validator.d.ts +1 -1
- package/package.json +21 -7
- package/dist/admin/ui/components/DataDetailSheet.d.ts +0 -13
- package/dist/admin/ui/components/ui/relationship-detail-sheet.d.ts +0 -9
- package/dist/chunk-62ev8gnc.js +0 -41
- package/dist/chunk-j4d50hrx.js +0 -20
- package/dist/chunk-nb7ctdg8.js +0 -311
package/dist/admin/react.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type CustomFieldProps } from '
|
|
2
|
+
import { type CustomFieldProps } from '../admin/custom-field';
|
|
3
3
|
export declare function defineReactField<TValue = any, TConfig = Record<string, any>>(tagName: string, Component: React.ComponentType<CustomFieldProps<TValue, TConfig>>): void;
|
package/dist/admin/router.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IconName } from "../../types";
|
|
1
2
|
export interface ToastItem {
|
|
2
3
|
id: string;
|
|
3
4
|
message: string;
|
|
@@ -9,3 +10,12 @@ export declare const $isSidebarCollapsed: import("nanostores").WritableAtom<bool
|
|
|
9
10
|
export declare function toggleSidebar(): void;
|
|
10
11
|
export declare function notify(message: string, type?: ToastItem["type"]): void;
|
|
11
12
|
export declare function clearToast(id: string): void;
|
|
13
|
+
export interface SidebarItem {
|
|
14
|
+
label: string;
|
|
15
|
+
icon?: IconName | string;
|
|
16
|
+
path: string;
|
|
17
|
+
component?: string;
|
|
18
|
+
render?: (serverUrl: string, config: any, user: any) => string;
|
|
19
|
+
}
|
|
20
|
+
export declare const $customSidebarItems: import("nanostores").PreinitializedWritableAtom<SidebarItem[]> & object;
|
|
21
|
+
export declare function registerSidebarItem(item: SidebarItem): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type React from
|
|
2
|
-
import type { SerializableConfig } from
|
|
3
|
-
import
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { SerializableConfig } from '../../types';
|
|
3
|
+
import '../../admin/ui/styles/index.scss';
|
|
4
4
|
export interface AdminLayoutProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
config: SerializableConfig;
|
|
@@ -11,4 +11,4 @@ export interface AdminLayoutProps {
|
|
|
11
11
|
} | null;
|
|
12
12
|
onLogout?: () => void;
|
|
13
13
|
}
|
|
14
|
-
export declare function AdminLayout({ children, config, user, onLogout }: AdminLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function AdminLayout({ children, config, user, onLogout, }: AdminLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import "../../../admin/ui/styles/data-detail.scss";
|
|
3
|
+
interface DetailSheetProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
relationTo?: string;
|
|
10
|
+
id?: string | number;
|
|
11
|
+
onSave?: (updatedData: any) => void;
|
|
12
|
+
field?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Universal sheet for viewing and editing document or data details.
|
|
16
|
+
* Can either take 'data' directly (for blocks/arrays) or 'relationTo' + 'id' to fetch.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DetailSheet: React.FC<DetailSheetProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface PluginSettingsFormProps {
|
|
2
|
+
plugin: {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
configSchema?: any[];
|
|
6
|
+
};
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
notify?: (message: string, type?: 'success' | 'error') => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PluginSettingsForm({ plugin, onBack, notify, }: PluginSettingsFormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface BooleanFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
5
4
|
value: boolean;
|
|
6
5
|
onChange: (val: boolean) => void;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
localized?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
readOnly?: boolean;
|
|
9
10
|
error?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface DateFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
5
4
|
value: string | number | Date;
|
|
6
5
|
onChange: (val: string) => void;
|
|
7
6
|
required?: boolean;
|
|
7
|
+
localized?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readOnly?: boolean;
|
|
10
10
|
error?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface FieldLabelProps {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
localized?: boolean;
|
|
7
|
+
htmlFor?: string;
|
|
8
|
+
suffix?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const FieldLabel: React.FC<FieldLabelProps>;
|
|
11
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface NumberFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
5
4
|
value: number;
|
|
6
5
|
onChange: (val: number) => void;
|
|
7
6
|
required?: boolean;
|
|
7
|
+
localized?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readOnly?: boolean;
|
|
10
10
|
placeholder?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface RadioFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
@@ -9,6 +8,7 @@ interface RadioFieldProps {
|
|
|
9
8
|
value: string;
|
|
10
9
|
} | string>;
|
|
11
10
|
required?: boolean;
|
|
11
|
+
localized?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
readOnly?: boolean;
|
|
14
14
|
error?: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type React from
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
interface RelationshipFieldProps {
|
|
3
3
|
name: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
relationTo: string;
|
|
6
6
|
value: any;
|
|
7
7
|
onChange: (val: any) => void;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
localized?: boolean;
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
readOnly?: boolean;
|
|
10
12
|
error?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface SelectFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
@@ -9,6 +8,7 @@ interface SelectFieldProps {
|
|
|
9
8
|
value: string;
|
|
10
9
|
} | string>;
|
|
11
10
|
required?: boolean;
|
|
11
|
+
localized?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
readOnly?: boolean;
|
|
14
14
|
placeholder?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface TextAreaFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
5
4
|
value: string | null;
|
|
6
5
|
onChange: (val: string | null) => void;
|
|
7
6
|
required?: boolean;
|
|
7
|
+
localized?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readOnly?: boolean;
|
|
10
10
|
placeholder?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
interface TextFieldProps {
|
|
3
2
|
name: string;
|
|
4
3
|
label?: string;
|
|
5
4
|
value: string | null;
|
|
6
5
|
onChange: (val: string | null) => void;
|
|
7
6
|
required?: boolean;
|
|
7
|
+
localized?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readOnly?: boolean;
|
|
10
10
|
placeholder?: string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ArrayField } from "
|
|
3
|
-
import { BlocksField } from "
|
|
4
|
-
import { BooleanField } from "
|
|
5
|
-
import { CollapsibleField } from "
|
|
6
|
-
import { DateField } from "
|
|
7
|
-
import { FileField } from "
|
|
8
|
-
import { GroupField } from "
|
|
9
|
-
import { JoinField } from "
|
|
10
|
-
import { NumberField } from "
|
|
11
|
-
import { RadioField } from "
|
|
12
|
-
import { RelationshipField } from "
|
|
13
|
-
import { SelectField } from "
|
|
14
|
-
import { TabsField } from "
|
|
15
|
-
import { TextAreaField } from "
|
|
16
|
-
import { TextField } from "
|
|
17
|
-
import { VirtualField } from "
|
|
2
|
+
import { ArrayField } from "../../../../admin/ui/components/fields/ArrayField";
|
|
3
|
+
import { BlocksField } from "../../../../admin/ui/components/fields/BlocksField";
|
|
4
|
+
import { BooleanField } from "../../../../admin/ui/components/fields/BooleanField";
|
|
5
|
+
import { CollapsibleField } from "../../../../admin/ui/components/fields/CollapsibleField";
|
|
6
|
+
import { DateField } from "../../../../admin/ui/components/fields/DateField";
|
|
7
|
+
import { FileField } from "../../../../admin/ui/components/fields/FileField";
|
|
8
|
+
import { GroupField } from "../../../../admin/ui/components/fields/GroupField";
|
|
9
|
+
import { JoinField } from "../../../../admin/ui/components/fields/JoinField";
|
|
10
|
+
import { NumberField } from "../../../../admin/ui/components/fields/NumberField";
|
|
11
|
+
import { RadioField } from "../../../../admin/ui/components/fields/RadioField";
|
|
12
|
+
import { RelationshipField } from "../../../../admin/ui/components/fields/RelationshipField";
|
|
13
|
+
import { SelectField } from "../../../../admin/ui/components/fields/SelectField";
|
|
14
|
+
import { TabsField } from "../../../../admin/ui/components/fields/TabsField";
|
|
15
|
+
import { TextAreaField } from "../../../../admin/ui/components/fields/TextAreaField";
|
|
16
|
+
import { TextField } from "../../../../admin/ui/components/fields/TextField";
|
|
17
|
+
import { VirtualField } from "../../../../admin/ui/components/fields/VirtualField";
|
|
18
18
|
export { ArrayField, BlocksField, BooleanField, CollapsibleField, DateField, FileField, GroupField, JoinField, NumberField, RadioField, RelationshipField, SelectField, TabsField, TextAreaField, TextField, VirtualField, };
|
|
19
19
|
interface FieldRendererProps {
|
|
20
20
|
field: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import "
|
|
2
|
+
import "../../../../admin/ui/styles/button.scss";
|
|
3
3
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
3
|
-
export * from "
|
|
4
|
-
export * from "
|
|
5
|
-
export * from "
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "
|
|
14
|
-
export * from "
|
|
15
|
-
export * from "
|
|
16
|
-
export * from "
|
|
17
|
-
export * from "
|
|
1
|
+
export * from "../../../../admin/ui/components/ui/accordion";
|
|
2
|
+
export * from "../../../../admin/ui/components/ui/blocks";
|
|
3
|
+
export * from "../../../../admin/ui/components/ui/button";
|
|
4
|
+
export * from "../../../../admin/ui/components/ui/collapsible";
|
|
5
|
+
export * from "../../../../admin/ui/components/ui/dialog";
|
|
6
|
+
export * from "../../../../admin/ui/components/ui/group";
|
|
7
|
+
export * from "../../../../admin/ui/components/ui/input";
|
|
8
|
+
export * from "../../../../admin/ui/components/ui/join";
|
|
9
|
+
export * from "../../../../admin/ui/components/ui/label";
|
|
10
|
+
export * from "../../../../admin/ui/components/ui/radio-group";
|
|
11
|
+
export * from "../../../../admin/ui/components/ui/relationship";
|
|
12
|
+
export * from "../../../../admin/ui/components/ui/scroll-area";
|
|
13
|
+
export * from "../../../../admin/ui/components/ui/select";
|
|
14
|
+
export * from "../../../../admin/ui/components/ui/separator";
|
|
15
|
+
export * from "../../../../admin/ui/components/ui/sheet";
|
|
16
|
+
export * from "../../../../admin/ui/components/ui/tabs";
|
|
17
|
+
export * from "../../../../admin/ui/components/ui/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import "
|
|
2
|
+
import "../../../../admin/ui/styles/input.scss";
|
|
3
3
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
}
|
|
5
5
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import "
|
|
2
|
+
import "../../../../admin/ui/styles/radio-group.scss";
|
|
3
3
|
export interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
value?: string;
|
|
5
5
|
onValueChange?: (value: string) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
export interface RelationshipProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface RelationshipProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
label?: string;
|
|
4
4
|
relationTo: string;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
|
|
6
|
+
hasError?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const Relationship: React.ForwardRefExoticComponent<RelationshipProps & React.RefAttributes<
|
|
8
|
+
export declare const Relationship: React.ForwardRefExoticComponent<RelationshipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SerializableCollection } from '../../../types';
|
|
2
|
+
import '../../../admin/ui/styles/versions.scss';
|
|
3
|
+
interface VersionsSheetProps {
|
|
4
|
+
collection: SerializableCollection;
|
|
5
|
+
parentId: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
onRestore: (data: Record<string, any>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function VersionsSheet({ collection, parentId, open, onOpenChange, onRestore, }: VersionsSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SerializableCollection, SerializableConfig } from "../../../types";
|
|
2
|
-
import "
|
|
2
|
+
import "../../../admin/ui/styles/media-registry.scss";
|
|
3
3
|
export interface MediaRegistryViewProps {
|
|
4
4
|
collection: SerializableCollection;
|
|
5
5
|
config: SerializableConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SerializableConfig } from
|
|
2
|
-
import type { ToastType } from
|
|
1
|
+
import type { SerializableConfig } from '../../../types';
|
|
2
|
+
import type { ToastType } from '../../../admin/stores/ui';
|
|
3
3
|
export interface SettingsViewProps {
|
|
4
4
|
notify?: (message: string, type?: ToastType) => void;
|
|
5
5
|
config: SerializableConfig;
|