@websolutespa/payload-plugin-bowl 1.9.1 → 1.9.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/CHANGELOG.md +6 -0
- package/dist/index.js +28 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -7102,10 +7102,20 @@ var EmailConfig = /* @__PURE__ */ __name((options2) => ({
|
|
|
7102
7102
|
{
|
|
7103
7103
|
type: "select",
|
|
7104
7104
|
name: "action",
|
|
7105
|
-
options:
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7105
|
+
options: (() => {
|
|
7106
|
+
const selectOptions = options2.actions.map((slug) => ({
|
|
7107
|
+
value: slug,
|
|
7108
|
+
label: slug
|
|
7109
|
+
}));
|
|
7110
|
+
if (selectOptions.length > 0) {
|
|
7111
|
+
return selectOptions;
|
|
7112
|
+
} else {
|
|
7113
|
+
return [{
|
|
7114
|
+
value: "",
|
|
7115
|
+
label: "none"
|
|
7116
|
+
}];
|
|
7117
|
+
}
|
|
7118
|
+
})()
|
|
7109
7119
|
},
|
|
7110
7120
|
{
|
|
7111
7121
|
type: "withText",
|
|
@@ -7708,9 +7718,20 @@ var Template = /* @__PURE__ */ __name((options2) => ({
|
|
|
7708
7718
|
admin: {
|
|
7709
7719
|
isClearable: true
|
|
7710
7720
|
},
|
|
7711
|
-
options:
|
|
7712
|
-
|
|
7713
|
-
|
|
7721
|
+
options: (() => {
|
|
7722
|
+
const selectOptions = options2.pages.map((slug) => ({
|
|
7723
|
+
value: slug,
|
|
7724
|
+
label: slug
|
|
7725
|
+
}));
|
|
7726
|
+
if (selectOptions.length > 0) {
|
|
7727
|
+
return selectOptions;
|
|
7728
|
+
} else {
|
|
7729
|
+
return [{
|
|
7730
|
+
value: "",
|
|
7731
|
+
label: "none"
|
|
7732
|
+
}];
|
|
7733
|
+
}
|
|
7734
|
+
})()
|
|
7714
7735
|
},
|
|
7715
7736
|
// !!! todo withCheckbox ?
|
|
7716
7737
|
{
|