@orion-studios/payload-studio 0.3.0-beta.1 → 0.3.0-beta.10
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/admin/client.d.mts +27 -106
- package/dist/admin/client.d.ts +27 -106
- package/dist/admin/client.js +596 -261
- package/dist/admin/client.mjs +539 -205
- package/dist/admin/index.d.mts +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.js +33 -7
- package/dist/admin/index.mjs +1 -1
- package/dist/admin.css +107 -7
- package/dist/{chunk-NJWZOW5E.mjs → chunk-J6HM2LPT.mjs} +33 -7
- package/dist/{index-CITGmLG_.d.ts → index-DbH0Ljwp.d.mts} +1 -0
- package/dist/{index-CITGmLG_.d.mts → index-DbH0Ljwp.d.ts} +1 -0
- package/dist/{index-C5LUBJWe.d.mts → index-vTq0Uy37.d.mts} +25 -0
- package/dist/{index-C5LUBJWe.d.ts → index-vTq0Uy37.d.ts} +25 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +33 -7
- package/dist/index.mjs +1 -1
- package/dist/nextjs/index.d.mts +1 -1
- package/dist/nextjs/index.d.ts +1 -1
- package/dist/studio-pages/client.d.mts +19 -20
- package/dist/studio-pages/client.d.ts +19 -20
- package/package.json +2 -2
package/dist/admin/client.d.mts
CHANGED
|
@@ -1,110 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { FC } from 'react'
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
export type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark'
|
|
5
4
|
|
|
6
|
-
declare function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
11
|
-
declare function useTheme(defaultTheme?: ThemeOption): {
|
|
12
|
-
theme: ThemeOption;
|
|
13
|
-
setTheme: (newTheme: ThemeOption) => void;
|
|
14
|
-
isDark: boolean;
|
|
15
|
-
isBrand: boolean;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
hasMounted: boolean;
|
|
18
|
-
toggleDarkMode: () => void;
|
|
19
|
-
toggleBrandMode: () => void;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type ThemeComponentProps = {
|
|
23
|
-
defaultTheme?: ThemeOption;
|
|
24
|
-
};
|
|
25
|
-
declare function ThemeSwitcher({ defaultTheme }: ThemeComponentProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function ThemeProvider({ children, defaultTheme }: {
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
defaultTheme?: ThemeOption;
|
|
29
|
-
}): react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
declare function HelpTooltip({ content, position, }: {
|
|
32
|
-
content: string;
|
|
33
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
34
|
-
}): react_jsx_runtime.JSX.Element;
|
|
35
|
-
|
|
36
|
-
type BadgeStatus = 'draft' | 'published' | 'changed';
|
|
37
|
-
declare function StatusBadge({ status, size, }: {
|
|
38
|
-
status: BadgeStatus;
|
|
39
|
-
size?: 'sm' | 'md';
|
|
40
|
-
}): react_jsx_runtime.JSX.Element;
|
|
41
|
-
|
|
42
|
-
declare function EmptyState({ icon, title, description, actionLabel, actionHref, }: {
|
|
43
|
-
icon?: ReactNode;
|
|
44
|
-
title: string;
|
|
45
|
-
description: string;
|
|
46
|
-
actionLabel?: string;
|
|
47
|
-
actionHref?: string;
|
|
48
|
-
}): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
interface BlockOption {
|
|
51
|
-
slug: string;
|
|
52
|
-
label: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
icon?: React.ReactNode;
|
|
55
|
-
imageURL?: string;
|
|
5
|
+
export declare function useTheme(): {
|
|
6
|
+
setTheme: (theme: ThemeOption) => void
|
|
7
|
+
theme: ThemeOption
|
|
56
8
|
}
|
|
57
|
-
declare function BlockPicker({ blocks, onSelect, }: {
|
|
58
|
-
blocks: BlockOption[];
|
|
59
|
-
onSelect: (slug: string) => void;
|
|
60
|
-
}): react_jsx_runtime.JSX.Element;
|
|
61
|
-
|
|
62
|
-
interface TabConfig {
|
|
63
|
-
label: string;
|
|
64
|
-
icon?: React.ReactNode;
|
|
65
|
-
content: React.ReactNode;
|
|
66
|
-
}
|
|
67
|
-
declare function SectionTabs({ tabs, defaultTab, }: {
|
|
68
|
-
tabs: TabConfig[];
|
|
69
|
-
defaultTab?: number;
|
|
70
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
71
|
-
|
|
72
|
-
declare function OrionBlocksField(props: Record<string, unknown>): react_jsx_runtime.JSX.Element;
|
|
73
|
-
|
|
74
|
-
declare function WelcomeHeader({ title, description, tooltip, actions, }: {
|
|
75
|
-
title: string;
|
|
76
|
-
description?: string;
|
|
77
|
-
tooltip?: string;
|
|
78
|
-
actions?: React.ReactNode;
|
|
79
|
-
}): react_jsx_runtime.JSX.Element;
|
|
80
|
-
|
|
81
|
-
declare function AdminStudioDashboard(): react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
declare function AdminStudioNav(props: Record<string, unknown>): react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type AnyRecord$4 = Record<string, unknown>;
|
|
86
|
-
declare function AdminStudioPagesListView(props: AnyRecord$4): react_jsx_runtime.JSX.Element;
|
|
87
|
-
|
|
88
|
-
type AnyRecord$3 = Record<string, unknown>;
|
|
89
|
-
declare function AdminStudioPageEditView(props: AnyRecord$3): react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
type AnyRecord$2 = Record<string, unknown>;
|
|
92
|
-
declare function AdminStudioGlobalsView(props: AnyRecord$2): react_jsx_runtime.JSX.Element;
|
|
93
|
-
|
|
94
|
-
type AnyRecord$1 = Record<string, unknown>;
|
|
95
|
-
declare function AdminStudioMediaView(props: AnyRecord$1): react_jsx_runtime.JSX.Element;
|
|
96
|
-
|
|
97
|
-
type AnyRecord = Record<string, unknown>;
|
|
98
|
-
declare function AdminStudioToolsView(props: AnyRecord): react_jsx_runtime.JSX.Element;
|
|
99
|
-
|
|
100
|
-
type Props$1 = {
|
|
101
|
-
pagesPathBase?: string;
|
|
102
|
-
};
|
|
103
|
-
declare function OpenInStudioMenuItem({ pagesPathBase }: Props$1): react_jsx_runtime.JSX.Element | null;
|
|
104
|
-
|
|
105
|
-
type Props = {
|
|
106
|
-
pagesPathBase?: string;
|
|
107
|
-
};
|
|
108
|
-
declare function PageEditRedirectToStudio({ pagesPathBase }: Props): react_jsx_runtime.JSX.Element;
|
|
109
9
|
|
|
110
|
-
export
|
|
10
|
+
export declare const Logo: FC<any>
|
|
11
|
+
export declare const Icon: FC<any>
|
|
12
|
+
export declare const Dashboard: FC<any>
|
|
13
|
+
export declare const ThemeSwitcher: FC<any>
|
|
14
|
+
export declare const ThemeProvider: FC<any>
|
|
15
|
+
export declare const HelpTooltip: FC<any>
|
|
16
|
+
export declare const StatusBadge: FC<any>
|
|
17
|
+
export declare const EmptyState: FC<any>
|
|
18
|
+
export declare const BlockPicker: FC<any>
|
|
19
|
+
export declare const SectionTabs: FC<any>
|
|
20
|
+
export declare const OrionBlocksField: FC<any>
|
|
21
|
+
export declare const WelcomeHeader: FC<any>
|
|
22
|
+
export declare const AdminStudioDashboard: FC<any>
|
|
23
|
+
export declare const AdminStudioNav: FC<any>
|
|
24
|
+
export declare const AdminStudioPagesListView: FC<any>
|
|
25
|
+
export declare const AdminStudioPageEditView: FC<any>
|
|
26
|
+
export declare const AdminStudioGlobalsView: FC<any>
|
|
27
|
+
export declare const AdminStudioMediaView: FC<any>
|
|
28
|
+
export declare const AdminStudioToolsView: FC<any>
|
|
29
|
+
export declare const OpenInStudioMenuItem: FC<any>
|
|
30
|
+
export declare const PageEditRedirectToStudio: FC<any>
|
|
31
|
+
export declare const StudioBackBreadcrumb: FC<any>
|
package/dist/admin/client.d.ts
CHANGED
|
@@ -1,110 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { FC } from 'react'
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
export type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark'
|
|
5
4
|
|
|
6
|
-
declare function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
|
|
11
|
-
declare function useTheme(defaultTheme?: ThemeOption): {
|
|
12
|
-
theme: ThemeOption;
|
|
13
|
-
setTheme: (newTheme: ThemeOption) => void;
|
|
14
|
-
isDark: boolean;
|
|
15
|
-
isBrand: boolean;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
hasMounted: boolean;
|
|
18
|
-
toggleDarkMode: () => void;
|
|
19
|
-
toggleBrandMode: () => void;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type ThemeComponentProps = {
|
|
23
|
-
defaultTheme?: ThemeOption;
|
|
24
|
-
};
|
|
25
|
-
declare function ThemeSwitcher({ defaultTheme }: ThemeComponentProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function ThemeProvider({ children, defaultTheme }: {
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
defaultTheme?: ThemeOption;
|
|
29
|
-
}): react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
declare function HelpTooltip({ content, position, }: {
|
|
32
|
-
content: string;
|
|
33
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
34
|
-
}): react_jsx_runtime.JSX.Element;
|
|
35
|
-
|
|
36
|
-
type BadgeStatus = 'draft' | 'published' | 'changed';
|
|
37
|
-
declare function StatusBadge({ status, size, }: {
|
|
38
|
-
status: BadgeStatus;
|
|
39
|
-
size?: 'sm' | 'md';
|
|
40
|
-
}): react_jsx_runtime.JSX.Element;
|
|
41
|
-
|
|
42
|
-
declare function EmptyState({ icon, title, description, actionLabel, actionHref, }: {
|
|
43
|
-
icon?: ReactNode;
|
|
44
|
-
title: string;
|
|
45
|
-
description: string;
|
|
46
|
-
actionLabel?: string;
|
|
47
|
-
actionHref?: string;
|
|
48
|
-
}): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
interface BlockOption {
|
|
51
|
-
slug: string;
|
|
52
|
-
label: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
icon?: React.ReactNode;
|
|
55
|
-
imageURL?: string;
|
|
5
|
+
export declare function useTheme(): {
|
|
6
|
+
setTheme: (theme: ThemeOption) => void
|
|
7
|
+
theme: ThemeOption
|
|
56
8
|
}
|
|
57
|
-
declare function BlockPicker({ blocks, onSelect, }: {
|
|
58
|
-
blocks: BlockOption[];
|
|
59
|
-
onSelect: (slug: string) => void;
|
|
60
|
-
}): react_jsx_runtime.JSX.Element;
|
|
61
|
-
|
|
62
|
-
interface TabConfig {
|
|
63
|
-
label: string;
|
|
64
|
-
icon?: React.ReactNode;
|
|
65
|
-
content: React.ReactNode;
|
|
66
|
-
}
|
|
67
|
-
declare function SectionTabs({ tabs, defaultTab, }: {
|
|
68
|
-
tabs: TabConfig[];
|
|
69
|
-
defaultTab?: number;
|
|
70
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
71
|
-
|
|
72
|
-
declare function OrionBlocksField(props: Record<string, unknown>): react_jsx_runtime.JSX.Element;
|
|
73
|
-
|
|
74
|
-
declare function WelcomeHeader({ title, description, tooltip, actions, }: {
|
|
75
|
-
title: string;
|
|
76
|
-
description?: string;
|
|
77
|
-
tooltip?: string;
|
|
78
|
-
actions?: React.ReactNode;
|
|
79
|
-
}): react_jsx_runtime.JSX.Element;
|
|
80
|
-
|
|
81
|
-
declare function AdminStudioDashboard(): react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
declare function AdminStudioNav(props: Record<string, unknown>): react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type AnyRecord$4 = Record<string, unknown>;
|
|
86
|
-
declare function AdminStudioPagesListView(props: AnyRecord$4): react_jsx_runtime.JSX.Element;
|
|
87
|
-
|
|
88
|
-
type AnyRecord$3 = Record<string, unknown>;
|
|
89
|
-
declare function AdminStudioPageEditView(props: AnyRecord$3): react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
type AnyRecord$2 = Record<string, unknown>;
|
|
92
|
-
declare function AdminStudioGlobalsView(props: AnyRecord$2): react_jsx_runtime.JSX.Element;
|
|
93
|
-
|
|
94
|
-
type AnyRecord$1 = Record<string, unknown>;
|
|
95
|
-
declare function AdminStudioMediaView(props: AnyRecord$1): react_jsx_runtime.JSX.Element;
|
|
96
|
-
|
|
97
|
-
type AnyRecord = Record<string, unknown>;
|
|
98
|
-
declare function AdminStudioToolsView(props: AnyRecord): react_jsx_runtime.JSX.Element;
|
|
99
|
-
|
|
100
|
-
type Props$1 = {
|
|
101
|
-
pagesPathBase?: string;
|
|
102
|
-
};
|
|
103
|
-
declare function OpenInStudioMenuItem({ pagesPathBase }: Props$1): react_jsx_runtime.JSX.Element | null;
|
|
104
|
-
|
|
105
|
-
type Props = {
|
|
106
|
-
pagesPathBase?: string;
|
|
107
|
-
};
|
|
108
|
-
declare function PageEditRedirectToStudio({ pagesPathBase }: Props): react_jsx_runtime.JSX.Element;
|
|
109
9
|
|
|
110
|
-
export
|
|
10
|
+
export declare const Logo: FC<any>
|
|
11
|
+
export declare const Icon: FC<any>
|
|
12
|
+
export declare const Dashboard: FC<any>
|
|
13
|
+
export declare const ThemeSwitcher: FC<any>
|
|
14
|
+
export declare const ThemeProvider: FC<any>
|
|
15
|
+
export declare const HelpTooltip: FC<any>
|
|
16
|
+
export declare const StatusBadge: FC<any>
|
|
17
|
+
export declare const EmptyState: FC<any>
|
|
18
|
+
export declare const BlockPicker: FC<any>
|
|
19
|
+
export declare const SectionTabs: FC<any>
|
|
20
|
+
export declare const OrionBlocksField: FC<any>
|
|
21
|
+
export declare const WelcomeHeader: FC<any>
|
|
22
|
+
export declare const AdminStudioDashboard: FC<any>
|
|
23
|
+
export declare const AdminStudioNav: FC<any>
|
|
24
|
+
export declare const AdminStudioPagesListView: FC<any>
|
|
25
|
+
export declare const AdminStudioPageEditView: FC<any>
|
|
26
|
+
export declare const AdminStudioGlobalsView: FC<any>
|
|
27
|
+
export declare const AdminStudioMediaView: FC<any>
|
|
28
|
+
export declare const AdminStudioToolsView: FC<any>
|
|
29
|
+
export declare const OpenInStudioMenuItem: FC<any>
|
|
30
|
+
export declare const PageEditRedirectToStudio: FC<any>
|
|
31
|
+
export declare const StudioBackBreadcrumb: FC<any>
|