@orion-studios/payload-admin-components 0.2.0-beta.11 → 0.2.0-beta.13
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-N563554E.mjs → OrionBlocksFieldImpl-HDXEKQM3.mjs} +1 -1
- package/dist/{chunk-3SA5V3QM.mjs → chunk-OPMRMGFD.mjs} +34 -0
- package/dist/client.d.mts +30 -1
- package/dist/client.d.ts +30 -1
- package/dist/client.js +4853 -178
- package/dist/client.mjs +4659 -3
- 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 +10 -0
- 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/components/studio/OpenInStudioMenuItem.tsx +35 -0
- package/src/components/studio/PageEditRedirectToStudio.tsx +48 -0
- package/src/helpers/configureAdmin.ts +110 -7
|
@@ -1,4 +1,35 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
2
33
|
|
|
3
34
|
// src/components/BlockPicker.tsx
|
|
4
35
|
import { useState } from "react";
|
|
@@ -204,6 +235,9 @@ function SectionTabs({
|
|
|
204
235
|
}
|
|
205
236
|
|
|
206
237
|
export {
|
|
238
|
+
__require,
|
|
239
|
+
__commonJS,
|
|
240
|
+
__toESM,
|
|
207
241
|
BlockPicker,
|
|
208
242
|
SectionTabs
|
|
209
243
|
};
|
package/dist/client.d.mts
CHANGED
|
@@ -78,4 +78,33 @@ 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
|
+
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
|
+
|
|
110
|
+
export { AdminStudioDashboard, AdminStudioGlobalsView, AdminStudioMediaView, AdminStudioNav, AdminStudioPageEditView, AdminStudioPagesListView, AdminStudioToolsView, BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, OpenInStudioMenuItem, OrionBlocksField, PageEditRedirectToStudio, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
|
package/dist/client.d.ts
CHANGED
|
@@ -78,4 +78,33 @@ 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
|
+
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
|
+
|
|
110
|
+
export { AdminStudioDashboard, AdminStudioGlobalsView, AdminStudioMediaView, AdminStudioNav, AdminStudioPageEditView, AdminStudioPagesListView, AdminStudioToolsView, BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, OpenInStudioMenuItem, OrionBlocksField, PageEditRedirectToStudio, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
|