@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.
@@ -464,7 +464,7 @@ function OrionBlockRow(props) {
464
464
  }
465
465
  );
466
466
  }
467
- var OrionBlocksFieldComponent = (props) => {
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
- export { BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, OrionBlocksField, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
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
- export { BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, OrionBlocksField, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
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 };