@justanarthur/payload-www 0.3.1 → 0.3.2
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/config.js +2 -2
- package/dist/data-test.js +2 -2
- package/dist/server.js +2 -2
- package/dist/test.js +2 -2
- package/dist/with-www-config.js +2 -2
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -885,8 +885,8 @@ function createWWWConfig(options) {
|
|
|
885
885
|
type: "component"
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
|
-
for (const { slug, admin } of blocks) {
|
|
889
|
-
const path = admin?.custom?.path;
|
|
888
|
+
for (const { slug, custom, admin } of blocks) {
|
|
889
|
+
const path = custom?.path ?? admin?.custom?.path;
|
|
890
890
|
if (typeof path === "string" && slug)
|
|
891
891
|
renderDependencies[slug] = { path, type: "component" };
|
|
892
892
|
}
|
package/dist/data-test.js
CHANGED
|
@@ -891,8 +891,8 @@ function createWWWConfig(options) {
|
|
|
891
891
|
type: "component"
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
for (const { slug, admin } of blocks) {
|
|
895
|
-
const path = admin?.custom?.path;
|
|
894
|
+
for (const { slug, custom, admin } of blocks) {
|
|
895
|
+
const path = custom?.path ?? admin?.custom?.path;
|
|
896
896
|
if (typeof path === "string" && slug)
|
|
897
897
|
renderDependencies[slug] = { path, type: "component" };
|
|
898
898
|
}
|
package/dist/server.js
CHANGED
|
@@ -1054,8 +1054,8 @@ function createWWWConfig(options) {
|
|
|
1054
1054
|
type: "component"
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
|
-
for (const { slug, admin } of blocks) {
|
|
1058
|
-
const path = admin?.custom?.path;
|
|
1057
|
+
for (const { slug, custom, admin } of blocks) {
|
|
1058
|
+
const path = custom?.path ?? admin?.custom?.path;
|
|
1059
1059
|
if (typeof path === "string" && slug)
|
|
1060
1060
|
renderDependencies[slug] = { path, type: "component" };
|
|
1061
1061
|
}
|
package/dist/test.js
CHANGED
|
@@ -891,8 +891,8 @@ function createWWWConfig(options) {
|
|
|
891
891
|
type: "component"
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
for (const { slug, admin } of blocks) {
|
|
895
|
-
const path = admin?.custom?.path;
|
|
894
|
+
for (const { slug, custom, admin } of blocks) {
|
|
895
|
+
const path = custom?.path ?? admin?.custom?.path;
|
|
896
896
|
if (typeof path === "string" && slug)
|
|
897
897
|
renderDependencies[slug] = { path, type: "component" };
|
|
898
898
|
}
|
package/dist/with-www-config.js
CHANGED
|
@@ -885,8 +885,8 @@ function createWWWConfig(options) {
|
|
|
885
885
|
type: "component"
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
|
-
for (const { slug, admin } of blocks) {
|
|
889
|
-
const path = admin?.custom?.path;
|
|
888
|
+
for (const { slug, custom, admin } of blocks) {
|
|
889
|
+
const path = custom?.path ?? admin?.custom?.path;
|
|
890
890
|
if (typeof path === "string" && slug)
|
|
891
891
|
renderDependencies[slug] = { path, type: "component" };
|
|
892
892
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justanarthur/payload-www",
|
|
3
3
|
"description": "Reusable Payload CMS website template — config builder, collections, globals, blocks, fields, access, hooks, metadata (JSON-LD, hreflang), page renderers, and test helpers.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"module": "./dist/index.js",
|