@orion-studios/payload-studio 0.6.0-beta.4 → 0.6.0-beta.5
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.js +1 -1
- package/dist/admin/client.mjs +1 -1
- package/dist/admin/index.js +16 -16
- package/dist/admin/index.mjs +1 -1
- package/dist/{chunk-DYXSAVUQ.mjs → chunk-PKVTM6DY.mjs} +16 -16
- package/dist/index.js +16 -16
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/admin/client.js
CHANGED
|
@@ -1248,7 +1248,7 @@ function useSiteBranding(defaultName, defaultLogoUrl) {
|
|
|
1248
1248
|
let cancelled = false;
|
|
1249
1249
|
const run = async () => {
|
|
1250
1250
|
try {
|
|
1251
|
-
const res = await fetch("/api/globals/site-settings?depth=1
|
|
1251
|
+
const res = await fetch("/api/globals/site-settings?depth=1", {
|
|
1252
1252
|
credentials: "include"
|
|
1253
1253
|
});
|
|
1254
1254
|
if (!res.ok) return;
|
package/dist/admin/client.mjs
CHANGED
|
@@ -59,7 +59,7 @@ function useSiteBranding(defaultName, defaultLogoUrl) {
|
|
|
59
59
|
let cancelled = false;
|
|
60
60
|
const run = async () => {
|
|
61
61
|
try {
|
|
62
|
-
const res = await fetch("/api/globals/site-settings?depth=1
|
|
62
|
+
const res = await fetch("/api/globals/site-settings?depth=1", {
|
|
63
63
|
credentials: "include"
|
|
64
64
|
});
|
|
65
65
|
if (!res.ok) return;
|
package/dist/admin/index.js
CHANGED
|
@@ -1069,7 +1069,6 @@ function SnapshotMetric({ card }) {
|
|
|
1069
1069
|
] });
|
|
1070
1070
|
}
|
|
1071
1071
|
function AdminStudioDashboardClient({
|
|
1072
|
-
extensionPanels = [],
|
|
1073
1072
|
formSubmissionsCollectionSlug,
|
|
1074
1073
|
formsCollectionSlug,
|
|
1075
1074
|
formsEnabled,
|
|
@@ -1081,7 +1080,8 @@ function AdminStudioDashboardClient({
|
|
|
1081
1080
|
pagesPath,
|
|
1082
1081
|
sectionLinks,
|
|
1083
1082
|
toolsPath,
|
|
1084
|
-
userRole
|
|
1083
|
+
userRole,
|
|
1084
|
+
children
|
|
1085
1085
|
}) {
|
|
1086
1086
|
const role = isRole(userRole) ? userRole : void 0;
|
|
1087
1087
|
const [state, setState] = (0, import_react.useState)(
|
|
@@ -1462,17 +1462,7 @@ function AdminStudioDashboardClient({
|
|
|
1462
1462
|
] }),
|
|
1463
1463
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "orion-dashboard-snapshot-grid", children: [
|
|
1464
1464
|
snapshotCards.map((card) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SnapshotMetric, { card }, card.kicker)),
|
|
1465
|
-
|
|
1466
|
-
"div",
|
|
1467
|
-
{
|
|
1468
|
-
className: [
|
|
1469
|
-
"orion-dashboard-extension-panel",
|
|
1470
|
-
panel.span === "full" ? "is-full" : "is-half"
|
|
1471
|
-
].filter(Boolean).join(" "),
|
|
1472
|
-
children: panel.node
|
|
1473
|
-
},
|
|
1474
|
-
panel.id
|
|
1475
|
-
))
|
|
1465
|
+
children
|
|
1476
1466
|
] }),
|
|
1477
1467
|
state.pages.status === "error" || state.media.status === "error" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "orion-dashboard-inline-note", children: "Some dashboard modules could not be loaded. The rest of the workspace remains available." }) : null
|
|
1478
1468
|
] })
|
|
@@ -1673,7 +1663,7 @@ function useSiteBranding(defaultName, defaultLogoUrl) {
|
|
|
1673
1663
|
let cancelled = false;
|
|
1674
1664
|
const run = async () => {
|
|
1675
1665
|
try {
|
|
1676
|
-
const res = await fetch("/api/globals/site-settings?depth=1
|
|
1666
|
+
const res = await fetch("/api/globals/site-settings?depth=1", {
|
|
1677
1667
|
credentials: "include"
|
|
1678
1668
|
});
|
|
1679
1669
|
if (!res.ok) return;
|
|
@@ -2234,7 +2224,6 @@ function AdminStudioDashboard(rawProps) {
|
|
|
2234
2224
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2235
2225
|
AdminStudioDashboardClient,
|
|
2236
2226
|
{
|
|
2237
|
-
extensionPanels,
|
|
2238
2227
|
formSubmissionsCollectionSlug,
|
|
2239
2228
|
formsCollectionSlug,
|
|
2240
2229
|
formsEnabled,
|
|
@@ -2246,7 +2235,18 @@ function AdminStudioDashboard(rawProps) {
|
|
|
2246
2235
|
pagesPath: resolveAdminPath2(adminBasePath, "/pages"),
|
|
2247
2236
|
sectionLinks: buildSectionLinks(adminBasePath, sections, formsEnabled, globalsBasePath),
|
|
2248
2237
|
toolsPath: resolveAdminPath2(adminBasePath, "/tools"),
|
|
2249
|
-
userRole
|
|
2238
|
+
userRole,
|
|
2239
|
+
children: extensionPanels.map((panel) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2240
|
+
"div",
|
|
2241
|
+
{
|
|
2242
|
+
className: [
|
|
2243
|
+
"orion-dashboard-extension-panel",
|
|
2244
|
+
panel.span === "full" ? "is-full" : "is-half"
|
|
2245
|
+
].filter(Boolean).join(" "),
|
|
2246
|
+
children: panel.node
|
|
2247
|
+
},
|
|
2248
|
+
panel.id
|
|
2249
|
+
))
|
|
2250
2250
|
}
|
|
2251
2251
|
)
|
|
2252
2252
|
}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -998,7 +998,6 @@ function SnapshotMetric({ card }) {
|
|
|
998
998
|
] });
|
|
999
999
|
}
|
|
1000
1000
|
function AdminStudioDashboardClient({
|
|
1001
|
-
extensionPanels = [],
|
|
1002
1001
|
formSubmissionsCollectionSlug,
|
|
1003
1002
|
formsCollectionSlug,
|
|
1004
1003
|
formsEnabled,
|
|
@@ -1010,7 +1009,8 @@ function AdminStudioDashboardClient({
|
|
|
1010
1009
|
pagesPath,
|
|
1011
1010
|
sectionLinks,
|
|
1012
1011
|
toolsPath,
|
|
1013
|
-
userRole
|
|
1012
|
+
userRole,
|
|
1013
|
+
children
|
|
1014
1014
|
}) {
|
|
1015
1015
|
const role = isRole(userRole) ? userRole : void 0;
|
|
1016
1016
|
const [state, setState] = useState(
|
|
@@ -1391,17 +1391,7 @@ function AdminStudioDashboardClient({
|
|
|
1391
1391
|
] }),
|
|
1392
1392
|
/* @__PURE__ */ jsxs("div", { className: "orion-dashboard-snapshot-grid", children: [
|
|
1393
1393
|
snapshotCards.map((card) => /* @__PURE__ */ jsx(SnapshotMetric, { card }, card.kicker)),
|
|
1394
|
-
|
|
1395
|
-
"div",
|
|
1396
|
-
{
|
|
1397
|
-
className: [
|
|
1398
|
-
"orion-dashboard-extension-panel",
|
|
1399
|
-
panel.span === "full" ? "is-full" : "is-half"
|
|
1400
|
-
].filter(Boolean).join(" "),
|
|
1401
|
-
children: panel.node
|
|
1402
|
-
},
|
|
1403
|
-
panel.id
|
|
1404
|
-
))
|
|
1394
|
+
children
|
|
1405
1395
|
] }),
|
|
1406
1396
|
state.pages.status === "error" || state.media.status === "error" ? /* @__PURE__ */ jsx("div", { className: "orion-dashboard-inline-note", children: "Some dashboard modules could not be loaded. The rest of the workspace remains available." }) : null
|
|
1407
1397
|
] })
|
|
@@ -1602,7 +1592,7 @@ function useSiteBranding(defaultName, defaultLogoUrl) {
|
|
|
1602
1592
|
let cancelled = false;
|
|
1603
1593
|
const run = async () => {
|
|
1604
1594
|
try {
|
|
1605
|
-
const res = await fetch("/api/globals/site-settings?depth=1
|
|
1595
|
+
const res = await fetch("/api/globals/site-settings?depth=1", {
|
|
1606
1596
|
credentials: "include"
|
|
1607
1597
|
});
|
|
1608
1598
|
if (!res.ok) return;
|
|
@@ -2163,7 +2153,6 @@ function AdminStudioDashboard(rawProps) {
|
|
|
2163
2153
|
children: /* @__PURE__ */ jsx4(
|
|
2164
2154
|
AdminStudioDashboardClient,
|
|
2165
2155
|
{
|
|
2166
|
-
extensionPanels,
|
|
2167
2156
|
formSubmissionsCollectionSlug,
|
|
2168
2157
|
formsCollectionSlug,
|
|
2169
2158
|
formsEnabled,
|
|
@@ -2175,7 +2164,18 @@ function AdminStudioDashboard(rawProps) {
|
|
|
2175
2164
|
pagesPath: resolveAdminPath2(adminBasePath, "/pages"),
|
|
2176
2165
|
sectionLinks: buildSectionLinks(adminBasePath, sections, formsEnabled, globalsBasePath),
|
|
2177
2166
|
toolsPath: resolveAdminPath2(adminBasePath, "/tools"),
|
|
2178
|
-
userRole
|
|
2167
|
+
userRole,
|
|
2168
|
+
children: extensionPanels.map((panel) => /* @__PURE__ */ jsx4(
|
|
2169
|
+
"div",
|
|
2170
|
+
{
|
|
2171
|
+
className: [
|
|
2172
|
+
"orion-dashboard-extension-panel",
|
|
2173
|
+
panel.span === "full" ? "is-full" : "is-half"
|
|
2174
|
+
].filter(Boolean).join(" "),
|
|
2175
|
+
children: panel.node
|
|
2176
|
+
},
|
|
2177
|
+
panel.id
|
|
2178
|
+
))
|
|
2179
2179
|
}
|
|
2180
2180
|
)
|
|
2181
2181
|
}
|
package/dist/index.js
CHANGED
|
@@ -1080,7 +1080,6 @@ function SnapshotMetric({ card }) {
|
|
|
1080
1080
|
] });
|
|
1081
1081
|
}
|
|
1082
1082
|
function AdminStudioDashboardClient({
|
|
1083
|
-
extensionPanels = [],
|
|
1084
1083
|
formSubmissionsCollectionSlug,
|
|
1085
1084
|
formsCollectionSlug,
|
|
1086
1085
|
formsEnabled,
|
|
@@ -1092,7 +1091,8 @@ function AdminStudioDashboardClient({
|
|
|
1092
1091
|
pagesPath,
|
|
1093
1092
|
sectionLinks,
|
|
1094
1093
|
toolsPath,
|
|
1095
|
-
userRole
|
|
1094
|
+
userRole,
|
|
1095
|
+
children
|
|
1096
1096
|
}) {
|
|
1097
1097
|
const role = isRole(userRole) ? userRole : void 0;
|
|
1098
1098
|
const [state, setState] = (0, import_react.useState)(
|
|
@@ -1473,17 +1473,7 @@ function AdminStudioDashboardClient({
|
|
|
1473
1473
|
] }),
|
|
1474
1474
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "orion-dashboard-snapshot-grid", children: [
|
|
1475
1475
|
snapshotCards.map((card) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SnapshotMetric, { card }, card.kicker)),
|
|
1476
|
-
|
|
1477
|
-
"div",
|
|
1478
|
-
{
|
|
1479
|
-
className: [
|
|
1480
|
-
"orion-dashboard-extension-panel",
|
|
1481
|
-
panel.span === "full" ? "is-full" : "is-half"
|
|
1482
|
-
].filter(Boolean).join(" "),
|
|
1483
|
-
children: panel.node
|
|
1484
|
-
},
|
|
1485
|
-
panel.id
|
|
1486
|
-
))
|
|
1476
|
+
children
|
|
1487
1477
|
] }),
|
|
1488
1478
|
state.pages.status === "error" || state.media.status === "error" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "orion-dashboard-inline-note", children: "Some dashboard modules could not be loaded. The rest of the workspace remains available." }) : null
|
|
1489
1479
|
] })
|
|
@@ -1684,7 +1674,7 @@ function useSiteBranding(defaultName, defaultLogoUrl) {
|
|
|
1684
1674
|
let cancelled = false;
|
|
1685
1675
|
const run = async () => {
|
|
1686
1676
|
try {
|
|
1687
|
-
const res = await fetch("/api/globals/site-settings?depth=1
|
|
1677
|
+
const res = await fetch("/api/globals/site-settings?depth=1", {
|
|
1688
1678
|
credentials: "include"
|
|
1689
1679
|
});
|
|
1690
1680
|
if (!res.ok) return;
|
|
@@ -2245,7 +2235,6 @@ function AdminStudioDashboard(rawProps) {
|
|
|
2245
2235
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2246
2236
|
AdminStudioDashboardClient,
|
|
2247
2237
|
{
|
|
2248
|
-
extensionPanels,
|
|
2249
2238
|
formSubmissionsCollectionSlug,
|
|
2250
2239
|
formsCollectionSlug,
|
|
2251
2240
|
formsEnabled,
|
|
@@ -2257,7 +2246,18 @@ function AdminStudioDashboard(rawProps) {
|
|
|
2257
2246
|
pagesPath: resolveAdminPath2(adminBasePath, "/pages"),
|
|
2258
2247
|
sectionLinks: buildSectionLinks(adminBasePath, sections, formsEnabled, globalsBasePath),
|
|
2259
2248
|
toolsPath: resolveAdminPath2(adminBasePath, "/tools"),
|
|
2260
|
-
userRole
|
|
2249
|
+
userRole,
|
|
2250
|
+
children: extensionPanels.map((panel) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2251
|
+
"div",
|
|
2252
|
+
{
|
|
2253
|
+
className: [
|
|
2254
|
+
"orion-dashboard-extension-panel",
|
|
2255
|
+
panel.span === "full" ? "is-full" : "is-half"
|
|
2256
|
+
].filter(Boolean).join(" "),
|
|
2257
|
+
children: panel.node
|
|
2258
|
+
},
|
|
2259
|
+
panel.id
|
|
2260
|
+
))
|
|
2261
2261
|
}
|
|
2262
2262
|
)
|
|
2263
2263
|
}
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED