storyblok 4.22.2 → 4.22.3
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 +6 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -6165,12 +6165,6 @@ const templates = {
|
|
|
6165
6165
|
template: "https://github.com/storyblok/blueprint-core-nextjs",
|
|
6166
6166
|
location: "https://localhost:3000/"
|
|
6167
6167
|
},
|
|
6168
|
-
ELEVENTY: {
|
|
6169
|
-
name: "Eleventy",
|
|
6170
|
-
value: "eleventy",
|
|
6171
|
-
template: "https://github.com/storyblok/blueprint-core-eleventy",
|
|
6172
|
-
location: "https://localhost:8080/"
|
|
6173
|
-
},
|
|
6174
6168
|
ANGULAR: {
|
|
6175
6169
|
name: "Angular",
|
|
6176
6170
|
value: "angular",
|
|
@@ -6382,7 +6376,7 @@ const fetchBlueprintRepositories = async () => {
|
|
|
6382
6376
|
order: "desc",
|
|
6383
6377
|
per_page: 100
|
|
6384
6378
|
});
|
|
6385
|
-
return data.items.filter((repo) => repo.name.startsWith("blueprint-core-")).map(repositoryToTemplate).sort((a, b) => (b.stars || 0) - (a.stars || 0));
|
|
6379
|
+
return data.items.filter((repo) => repo.name.startsWith("blueprint-core-") && !repo.archived).map(repositoryToTemplate).sort((a, b) => (b.stars || 0) - (a.stars || 0));
|
|
6386
6380
|
} catch {
|
|
6387
6381
|
ui.warn("Failed to fetch blueprints from GitHub. Using offline template list.");
|
|
6388
6382
|
return Object.values(templates);
|
|
@@ -6861,14 +6855,12 @@ const createAsset = async (asset, fileBuffer, { spaceId }) => {
|
|
|
6861
6855
|
/**
|
|
6862
6856
|
* Transfers a space-local asset into the org's shared library.
|
|
6863
6857
|
*
|
|
6864
|
-
* UX wording is "transfer"; the
|
|
6865
|
-
*
|
|
6866
|
-
*
|
|
6858
|
+
* UX wording is "transfer"; the API endpoint is still `convert`. Drop this
|
|
6859
|
+
* mapping once the API ships the `convert` -> `transfer` rename. One-way only
|
|
6860
|
+
* (space to shared).
|
|
6867
6861
|
*
|
|
6868
|
-
* A 403
|
|
6869
|
-
*
|
|
6870
|
-
* have write access to it. Surface that as a friendly hint instead of a raw
|
|
6871
|
-
* API error.
|
|
6862
|
+
* A 403 means the space lacks write access to the target folder. Surface that
|
|
6863
|
+
* as a friendly hint instead of a raw API error.
|
|
6872
6864
|
*/
|
|
6873
6865
|
const transferAsset = async (spaceId, assetId, folderId) => {
|
|
6874
6866
|
try {
|