@orion-studios/payload-studio 0.5.0-beta.14 → 0.5.0-beta.16
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/index.mjs
CHANGED
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
admin_app_exports
|
|
6
6
|
} from "./chunk-AAOHJDNS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
blocks_exports
|
|
9
|
-
} from "./chunk-L36VUYHE.mjs";
|
|
10
|
-
import {
|
|
11
|
-
nextjs_exports
|
|
12
|
-
} from "./chunk-ZLLNO5FM.mjs";
|
|
13
7
|
import {
|
|
14
8
|
studio_exports
|
|
15
9
|
} from "./chunk-N67KVM2S.mjs";
|
|
16
10
|
import {
|
|
17
11
|
studio_pages_exports
|
|
18
12
|
} from "./chunk-NIRXZKDV.mjs";
|
|
13
|
+
import {
|
|
14
|
+
nextjs_exports
|
|
15
|
+
} from "./chunk-ZLLNO5FM.mjs";
|
|
16
|
+
import {
|
|
17
|
+
blocks_exports
|
|
18
|
+
} from "./chunk-L36VUYHE.mjs";
|
|
19
19
|
import "./chunk-ETRRXURT.mjs";
|
|
20
20
|
import "./chunk-6BWS3CLP.mjs";
|
|
21
21
|
export {
|
|
@@ -1379,7 +1379,7 @@ function BuilderPageEditor({ initialDoc, pageID }) {
|
|
|
1379
1379
|
id: selectedMedia.id,
|
|
1380
1380
|
url: selectedMedia.url
|
|
1381
1381
|
});
|
|
1382
|
-
updateSelectedField("backgroundImageURL",
|
|
1382
|
+
updateSelectedField("backgroundImageURL", selectedMedia.url);
|
|
1383
1383
|
setSelectedHeroMediaID(String(selectedMedia.id));
|
|
1384
1384
|
};
|
|
1385
1385
|
const clearHeroMedia = () => {
|
|
@@ -1431,7 +1431,7 @@ function BuilderPageEditor({ initialDoc, pageID }) {
|
|
|
1431
1431
|
const uploadedItem = toMediaLibraryItem(uploaded);
|
|
1432
1432
|
nextLayout[selectedIndex] = {
|
|
1433
1433
|
...block,
|
|
1434
|
-
backgroundImageURL:
|
|
1434
|
+
backgroundImageURL: uploadedItem?.url || normalizeText(uploaded.url),
|
|
1435
1435
|
media: uploaded
|
|
1436
1436
|
};
|
|
1437
1437
|
if (uploadedItem) {
|
|
@@ -1351,7 +1351,7 @@ function BuilderPageEditor({ initialDoc, pageID }) {
|
|
|
1351
1351
|
id: selectedMedia.id,
|
|
1352
1352
|
url: selectedMedia.url
|
|
1353
1353
|
});
|
|
1354
|
-
updateSelectedField("backgroundImageURL",
|
|
1354
|
+
updateSelectedField("backgroundImageURL", selectedMedia.url);
|
|
1355
1355
|
setSelectedHeroMediaID(String(selectedMedia.id));
|
|
1356
1356
|
};
|
|
1357
1357
|
const clearHeroMedia = () => {
|
|
@@ -1403,7 +1403,7 @@ function BuilderPageEditor({ initialDoc, pageID }) {
|
|
|
1403
1403
|
const uploadedItem = toMediaLibraryItem(uploaded);
|
|
1404
1404
|
nextLayout[selectedIndex] = {
|
|
1405
1405
|
...block,
|
|
1406
|
-
backgroundImageURL:
|
|
1406
|
+
backgroundImageURL: uploadedItem?.url || normalizeText(uploaded.url),
|
|
1407
1407
|
media: uploaded
|
|
1408
1408
|
};
|
|
1409
1409
|
if (uploadedItem) {
|