pds-dev-kit-web 2.2.185 → 2.2.186
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/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +15 -5
- package/package.json +1 -1
- package/release-note.md +2 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseTargetUrl = void 0;
|
|
3
|
+
exports.convertToCdnUrl = exports.parseTargetUrl = void 0;
|
|
4
4
|
function parseTargetUrl(url) {
|
|
5
5
|
var _a = url.split('?'), encodedURL = _a[0], query = _a[1];
|
|
6
6
|
if (!query) {
|
|
7
7
|
return {
|
|
8
|
-
encodedURL: encodedURL,
|
|
8
|
+
encodedURL: convertToCdnUrl(encodedURL),
|
|
9
9
|
fallbackURL: null
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -13,13 +13,23 @@ function parseTargetUrl(url) {
|
|
|
13
13
|
var fallbackUrl = params.get('fallbackUrl');
|
|
14
14
|
if (!fallbackUrl) {
|
|
15
15
|
return {
|
|
16
|
-
encodedURL: encodedURL,
|
|
16
|
+
encodedURL: convertToCdnUrl(encodedURL),
|
|
17
17
|
fallbackURL: null
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
|
-
encodedURL: encodedURL,
|
|
22
|
-
fallbackURL: "https://".concat(fallbackUrl)
|
|
21
|
+
encodedURL: convertToCdnUrl(encodedURL),
|
|
22
|
+
fallbackURL: convertToCdnUrl("https://".concat(fallbackUrl))
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
exports.parseTargetUrl = parseTargetUrl;
|
|
26
|
+
function convertToCdnUrl(url) {
|
|
27
|
+
if (!url) {
|
|
28
|
+
return url;
|
|
29
|
+
}
|
|
30
|
+
return url
|
|
31
|
+
.replace(/^https?:\/\/publ-upload-local\.s3\.ap-northeast-2\.amazonaws\.com\//, 'https://cdn.local.publishingkit.net/')
|
|
32
|
+
.replace(/^https?:\/\/publ-upload-dev\.s3\.ap-northeast-2\.amazonaws\.com\//, 'https://cdn.dev.publishingkit.net/')
|
|
33
|
+
.replace(/^https?:\/\/publ-upload-prod\.s3\.ap-northeast-2\.amazonaws\.com\//, 'https://cdn.publishingkit.net/');
|
|
34
|
+
}
|
|
35
|
+
exports.convertToCdnUrl = convertToCdnUrl;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.2.
|
|
2
|
+
## [v2.2.186]
|
|
3
3
|
## daily|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
5
|
### 업데이트 사항
|
|
6
|
-
* [PDS-
|
|
7
|
-
* [PDS-1316] DesktopHeadLessModal 사이즈 prop 추가
|
|
8
|
-
* [PDS-1319] ChatBubbleListItem의 스펙 추가
|
|
9
|
-
* [PDS-1322] Divider에 overrideColorKey prop 추가 건
|
|
6
|
+
* [PDS-1318] 비디오 CB 개선 건 - 트래픽 비용 절감 작업
|