pds-dev-kit-web 2.1.0-alpha.2 → 2.1.0-alpha.4
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/common/styles/colorSet/PaletteColor_Dark.json +7 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +7 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +1 -1
- package/dist/src/common/styles/colorSet/UIColor.json +11 -1
- package/dist/src/common/styles/colorSet/index.d.ts +22 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +18 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +18 -1
- package/package.json +1 -1
- package/release-note.md +5 -3
|
@@ -311,5 +311,11 @@
|
|
|
311
311
|
"sys_component_base_43": "darkblue30",
|
|
312
312
|
"sys_icon_grey_darktheme_01": "darkgrey900",
|
|
313
313
|
"sys_icon_grey_darktheme_02": "darkgrey500",
|
|
314
|
-
"sys_icon_grey_darktheme_03": "darkgrey400"
|
|
314
|
+
"sys_icon_grey_darktheme_03": "darkgrey400",
|
|
315
|
+
"sys_widget_grey_01_opacity_50": "darkgrey900/opacity50",
|
|
316
|
+
"sys_editor_layout_header": "darkgrey70",
|
|
317
|
+
"sys_editor_layout_navigation_panel": "darkgrey80",
|
|
318
|
+
"sys_editor_layout_canvas_area": "darkgrey30",
|
|
319
|
+
"sys_editor_layout_control_panel": "darkgrey70",
|
|
320
|
+
"sys_editor_layout_property_panel": "darkgrey70"
|
|
315
321
|
}
|
|
@@ -311,5 +311,11 @@
|
|
|
311
311
|
"sys_component_base_43": "blue30",
|
|
312
312
|
"sys_icon_grey_darktheme_01": "darkgrey900",
|
|
313
313
|
"sys_icon_grey_darktheme_02": "darkgrey500",
|
|
314
|
-
"sys_icon_grey_darktheme_03": "darkgrey400"
|
|
314
|
+
"sys_icon_grey_darktheme_03": "darkgrey400",
|
|
315
|
+
"sys_widget_grey_01_opacity_50": "grey900/opacity50",
|
|
316
|
+
"sys_editor_layout_header": "white",
|
|
317
|
+
"sys_editor_layout_navigation_panel": "grey50",
|
|
318
|
+
"sys_editor_layout_canvas_area": "grey30",
|
|
319
|
+
"sys_editor_layout_control_panel": "white",
|
|
320
|
+
"sys_editor_layout_property_panel": "white"
|
|
315
321
|
}
|
|
@@ -794,5 +794,15 @@
|
|
|
794
794
|
"ui_cpnt_dropdown_display_icon_darktheme_enabled": "sys_icon_grey_darktheme_01",
|
|
795
795
|
"ui_cpnt_dropdown_display_icon_darktheme_disabled": "sys_icon_grey_darktheme_03",
|
|
796
796
|
"ui_cpnt_dropdown_display_icon_white_enabled": "sys_widget_white",
|
|
797
|
-
"ui_cpnt_dropdown_display_icon_white_disabled": "sys_widget_grey_03"
|
|
797
|
+
"ui_cpnt_dropdown_display_icon_white_disabled": "sys_widget_grey_03",
|
|
798
|
+
"ui_98": "sys_widget_grey_03",
|
|
799
|
+
"ui_99": "sys_component_base_white_opacity50",
|
|
800
|
+
"ui_100": "sys_widget_grey_01_opacity_50",
|
|
801
|
+
"ui_101": "sys_component_base_25",
|
|
802
|
+
"ui_102": "sys_component_base_black_opacity50",
|
|
803
|
+
"ui_editor_layout_header": "sys_editor_layout_header",
|
|
804
|
+
"ui_editor_layout_navigation_panel": "sys_editor_layout_navigation_panel",
|
|
805
|
+
"ui_editor_layout_canvas_area": "sys_editor_layout_canvas_area",
|
|
806
|
+
"ui_editor_layout_control_panel": "sys_editor_layout_control_panel",
|
|
807
|
+
"ui_editor_layout_property_panel": "sys_editor_layout_property_panel"
|
|
798
808
|
}
|
|
@@ -431,6 +431,12 @@ declare const colorSet: {
|
|
|
431
431
|
sys_icon_grey_darktheme_01: string;
|
|
432
432
|
sys_icon_grey_darktheme_02: string;
|
|
433
433
|
sys_icon_grey_darktheme_03: string;
|
|
434
|
+
sys_widget_grey_01_opacity_50: string;
|
|
435
|
+
sys_editor_layout_header: string;
|
|
436
|
+
sys_editor_layout_navigation_panel: string;
|
|
437
|
+
sys_editor_layout_canvas_area: string;
|
|
438
|
+
sys_editor_layout_control_panel: string;
|
|
439
|
+
sys_editor_layout_property_panel: string;
|
|
434
440
|
};
|
|
435
441
|
readonly PaletteColor_Dark: {
|
|
436
442
|
sys_container_background_01: string;
|
|
@@ -746,6 +752,12 @@ declare const colorSet: {
|
|
|
746
752
|
sys_icon_grey_darktheme_01: string;
|
|
747
753
|
sys_icon_grey_darktheme_02: string;
|
|
748
754
|
sys_icon_grey_darktheme_03: string;
|
|
755
|
+
sys_widget_grey_01_opacity_50: string;
|
|
756
|
+
sys_editor_layout_header: string;
|
|
757
|
+
sys_editor_layout_navigation_panel: string;
|
|
758
|
+
sys_editor_layout_canvas_area: string;
|
|
759
|
+
sys_editor_layout_control_panel: string;
|
|
760
|
+
sys_editor_layout_property_panel: string;
|
|
749
761
|
};
|
|
750
762
|
readonly UIColor: {
|
|
751
763
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -1544,6 +1556,16 @@ declare const colorSet: {
|
|
|
1544
1556
|
ui_cpnt_dropdown_display_icon_darktheme_disabled: string;
|
|
1545
1557
|
ui_cpnt_dropdown_display_icon_white_enabled: string;
|
|
1546
1558
|
ui_cpnt_dropdown_display_icon_white_disabled: string;
|
|
1559
|
+
ui_98: string;
|
|
1560
|
+
ui_99: string;
|
|
1561
|
+
ui_100: string;
|
|
1562
|
+
ui_101: string;
|
|
1563
|
+
ui_102: string;
|
|
1564
|
+
ui_editor_layout_header: string;
|
|
1565
|
+
ui_editor_layout_navigation_panel: string;
|
|
1566
|
+
ui_editor_layout_canvas_area: string;
|
|
1567
|
+
ui_editor_layout_control_panel: string;
|
|
1568
|
+
ui_editor_layout_property_panel: string;
|
|
1547
1569
|
};
|
|
1548
1570
|
};
|
|
1549
1571
|
export default colorSet;
|
|
@@ -795,4 +795,14 @@ export interface UITheme {
|
|
|
795
795
|
ui_cpnt_dropdown_display_icon_darktheme_disabled: string;
|
|
796
796
|
ui_cpnt_dropdown_display_icon_white_enabled: string;
|
|
797
797
|
ui_cpnt_dropdown_display_icon_white_disabled: string;
|
|
798
|
+
ui_98: string;
|
|
799
|
+
ui_99: string;
|
|
800
|
+
ui_100: string;
|
|
801
|
+
ui_101: string;
|
|
802
|
+
ui_102: string;
|
|
803
|
+
ui_editor_layout_header: string;
|
|
804
|
+
ui_editor_layout_navigation_panel: string;
|
|
805
|
+
ui_editor_layout_canvas_area: string;
|
|
806
|
+
ui_editor_layout_control_panel: string;
|
|
807
|
+
ui_editor_layout_property_panel: string;
|
|
798
808
|
}
|
|
@@ -7,6 +7,23 @@ var Section_1 = require("../../../../../components/Section");
|
|
|
7
7
|
function TemplateA() {
|
|
8
8
|
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
9
9
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
10
|
+
var checkInvalidUrl = function (url) {
|
|
11
|
+
try {
|
|
12
|
+
// eslint-disable-next-line no-new
|
|
13
|
+
new URL(url);
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var generateSrc = function (src) {
|
|
21
|
+
var isInvalidUrl = checkInvalidUrl(src);
|
|
22
|
+
if (isInvalidUrl) {
|
|
23
|
+
return 'about:blank';
|
|
24
|
+
}
|
|
25
|
+
return src + "?cache=" + new Date().getTime();
|
|
26
|
+
};
|
|
10
27
|
var onIframeLoad = function (event) {
|
|
11
28
|
if (sectionActionHandler) {
|
|
12
29
|
sectionActionHandler({
|
|
@@ -15,6 +32,6 @@ function TemplateA() {
|
|
|
15
32
|
});
|
|
16
33
|
}
|
|
17
34
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: section.properties.multiPurposeUrl
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: generateSrc(section.properties.multiPurposeUrl), style: { border: 'none', width: '100%', height: '100%', display: 'block' }, referrerPolicy: "strict-origin", sandbox: "allow-forms allow-same-origin allow-scripts allow-popups", onLoad: onIframeLoad }, void 0));
|
|
19
36
|
}
|
|
20
37
|
exports.default = TemplateA;
|
|
@@ -7,6 +7,23 @@ var Section_1 = require("../../../../../components/Section");
|
|
|
7
7
|
function TemplateA() {
|
|
8
8
|
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
9
9
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
10
|
+
var checkInvalidUrl = function (url) {
|
|
11
|
+
try {
|
|
12
|
+
// eslint-disable-next-line no-new
|
|
13
|
+
new URL(url);
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var generateSrc = function (src) {
|
|
21
|
+
var isInvalidUrl = checkInvalidUrl(src);
|
|
22
|
+
if (isInvalidUrl) {
|
|
23
|
+
return 'about:blank';
|
|
24
|
+
}
|
|
25
|
+
return src + "?cache=" + new Date().getTime();
|
|
26
|
+
};
|
|
10
27
|
var onIframeLoad = function (event) {
|
|
11
28
|
if (sectionActionHandler) {
|
|
12
29
|
sectionActionHandler({
|
|
@@ -15,6 +32,6 @@ function TemplateA() {
|
|
|
15
32
|
});
|
|
16
33
|
}
|
|
17
34
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: section.properties.multiPurposeUrl
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: generateSrc(section.properties.multiPurposeUrl), style: { border: 'none', width: '100%', height: '100%', display: 'block' }, referrerPolicy: "strict-origin", sandbox: "allow-forms allow-same-origin allow-scripts", onLoad: onIframeLoad }, void 0));
|
|
19
36
|
}
|
|
20
37
|
exports.default = TemplateA;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.1.0-alpha.
|
|
2
|
+
## [v2.1.0-alpha.3]
|
|
3
3
|
## alpha|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
5
|
### sub
|
|
6
6
|
* DynamicLayout
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* FullscreenIframSection
|
|
8
|
+
* multiPurposeUrl에 빈문자열이 올 경우 about:blank 가 입력되도록 수정(FullscreenIframSection이 재귀적으로 생성되는 이슈 해결)
|
|
9
|
+
### Color
|
|
10
|
+
* 컬러 키 값 23.07.12 15시 17분 기준 싱크
|