@prezly/theme-kit-core 9.7.0 → 9.7.1
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/build/constants.cjs +2 -1
- package/build/constants.d.ts +1 -0
- package/build/constants.mjs +1 -0
- package/build/galleries.cjs +1 -1
- package/build/galleries.mjs +2 -2
- package/package.json +2 -2
package/build/constants.cjs
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.PRIVACY_PORTAL_URL = exports.OG_IMAGE_API_URL = exports.DEFAULT_PAGE_SIZE = exports.DEFAULT_GALLERY_PAGE_SIZE = exports.ASSETS_CDN_URL = void 0;
|
|
6
|
+
exports.PRIVACY_PORTAL_URL = exports.OG_IMAGE_API_URL = exports.DEFAULT_PAGE_SIZE = exports.DEFAULT_GALLERY_PAGE_SIZE = exports.ASSETS_SECONDARY_CDN_URL = exports.ASSETS_CDN_URL = void 0;
|
|
7
7
|
var ASSETS_CDN_URL = exports.ASSETS_CDN_URL = 'https://cdn.uc.assets.prezly.com';
|
|
8
|
+
var ASSETS_SECONDARY_CDN_URL = exports.ASSETS_SECONDARY_CDN_URL = 'https://ucarecdn.com';
|
|
8
9
|
var DEFAULT_PAGE_SIZE = exports.DEFAULT_PAGE_SIZE = 12;
|
|
9
10
|
var DEFAULT_GALLERY_PAGE_SIZE = exports.DEFAULT_GALLERY_PAGE_SIZE = 6;
|
|
10
11
|
var OG_IMAGE_API_URL = exports.OG_IMAGE_API_URL = 'https://og.prezly.com/api/og';
|
package/build/constants.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const ASSETS_CDN_URL = "https://cdn.uc.assets.prezly.com";
|
|
2
|
+
export declare const ASSETS_SECONDARY_CDN_URL = "https://ucarecdn.com";
|
|
2
3
|
export declare const DEFAULT_PAGE_SIZE = 12;
|
|
3
4
|
export declare const DEFAULT_GALLERY_PAGE_SIZE = 6;
|
|
4
5
|
export declare const OG_IMAGE_API_URL = "https://og.prezly.com/api/og";
|
package/build/constants.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export var ASSETS_CDN_URL = 'https://cdn.uc.assets.prezly.com';
|
|
2
|
+
export var ASSETS_SECONDARY_CDN_URL = 'https://ucarecdn.com';
|
|
2
3
|
export var DEFAULT_PAGE_SIZE = 12;
|
|
3
4
|
export var DEFAULT_GALLERY_PAGE_SIZE = 6;
|
|
4
5
|
export var OG_IMAGE_API_URL = 'https://og.prezly.com/api/og';
|
package/build/galleries.cjs
CHANGED
|
@@ -34,5 +34,5 @@ function getCoverImage(gallery) {
|
|
|
34
34
|
function getArchiveDownloadUrl(uuid, title) {
|
|
35
35
|
// Uploadcare doesn't like slashes in filenames even in encoded form.
|
|
36
36
|
var filename = encodeURIComponent(title.replace(/\//g, '_'));
|
|
37
|
-
return "".concat(_constants.
|
|
37
|
+
return "".concat(_constants.ASSETS_SECONDARY_CDN_URL, "/").concat(uuid, "/archive/zip/").concat(filename, ".zip");
|
|
38
38
|
}
|
package/build/galleries.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ASSETS_SECONDARY_CDN_URL } from "./constants.mjs";
|
|
2
2
|
export function isEmpty(gallery) {
|
|
3
3
|
return gallery.images_number === 0 && gallery.videos_number === 0;
|
|
4
4
|
}
|
|
@@ -26,5 +26,5 @@ export function getCoverImage(gallery) {
|
|
|
26
26
|
export function getArchiveDownloadUrl(uuid, title) {
|
|
27
27
|
// Uploadcare doesn't like slashes in filenames even in encoded form.
|
|
28
28
|
var filename = encodeURIComponent(title.replace(/\//g, '_'));
|
|
29
|
-
return "".concat(
|
|
29
|
+
return "".concat(ASSETS_SECONDARY_CDN_URL, "/").concat(uuid, "/archive/zip/").concat(filename, ".zip");
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prezly/theme-kit-core",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"description": "Data layer and utility library for developing Prezly themes with JavaScript",
|
|
5
5
|
"main": "build/index.mjs",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "61d70f6f40fd316569b61ad1b5ea759bfd24d50c"
|
|
74
74
|
}
|