@orion-studios/payload-admin-components 0.2.0-beta.10 → 0.2.0-beta.12
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/{OrionBlocksFieldImpl-BS6UQ54J.mjs → OrionBlocksFieldImpl-N563554E.mjs} +8 -1
- package/dist/client.d.mts +20 -1
- package/dist/client.d.ts +20 -1
- package/dist/client.js +648 -2
- package/dist/client.mjs +633 -1
- package/dist/index.d.mts +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.js +81 -9
- package/dist/index.mjs +81 -9
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/components/OrionBlocksFieldImpl.tsx +11 -1
- package/src/components/studio/AdminStudioDashboard.tsx +51 -0
- package/src/components/studio/AdminStudioGlobalsView.tsx +61 -0
- package/src/components/studio/AdminStudioMediaView.tsx +50 -0
- package/src/components/studio/AdminStudioNav.tsx +134 -0
- package/src/components/studio/AdminStudioPageEditView.tsx +172 -0
- package/src/components/studio/AdminStudioPagesListView.tsx +208 -0
- package/src/components/studio/AdminStudioToolsView.tsx +80 -0
- package/src/helpers/configureAdmin.ts +110 -7
|
@@ -464,7 +464,7 @@ function OrionBlockRow(props) {
|
|
|
464
464
|
}
|
|
465
465
|
);
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var OrionBlocksFieldConnected = (props) => {
|
|
468
468
|
const { i18n, t } = useTranslation2();
|
|
469
469
|
const fieldFromProps = props.field;
|
|
470
470
|
const {
|
|
@@ -891,6 +891,13 @@ var OrionBlocksFieldComponent = (props) => {
|
|
|
891
891
|
}
|
|
892
892
|
);
|
|
893
893
|
};
|
|
894
|
+
var OrionBlocksFieldComponent = (props) => {
|
|
895
|
+
const configContext = useConfig();
|
|
896
|
+
if (!configContext?.config) {
|
|
897
|
+
return null;
|
|
898
|
+
}
|
|
899
|
+
return /* @__PURE__ */ jsx2(OrionBlocksFieldConnected, { ...props });
|
|
900
|
+
};
|
|
894
901
|
var OrionBlocksFieldImpl = withCondition(OrionBlocksFieldComponent);
|
|
895
902
|
export {
|
|
896
903
|
OrionBlocksFieldImpl
|
package/dist/client.d.mts
CHANGED
|
@@ -78,4 +78,23 @@ declare function WelcomeHeader({ title, description, tooltip, actions, }: {
|
|
|
78
78
|
actions?: React.ReactNode;
|
|
79
79
|
}): react_jsx_runtime.JSX.Element;
|
|
80
80
|
|
|
81
|
-
|
|
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
|
+
export { AdminStudioDashboard, AdminStudioGlobalsView, AdminStudioMediaView, AdminStudioNav, AdminStudioPageEditView, AdminStudioPagesListView, AdminStudioToolsView, BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, OrionBlocksField, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
|
package/dist/client.d.ts
CHANGED
|
@@ -78,4 +78,23 @@ declare function WelcomeHeader({ title, description, tooltip, actions, }: {
|
|
|
78
78
|
actions?: React.ReactNode;
|
|
79
79
|
}): react_jsx_runtime.JSX.Element;
|
|
80
80
|
|
|
81
|
-
|
|
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
|
+
export { AdminStudioDashboard, AdminStudioGlobalsView, AdminStudioMediaView, AdminStudioNav, AdminStudioPageEditView, AdminStudioPagesListView, AdminStudioToolsView, BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, OrionBlocksField, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
|