pds-dev-kit-web 2.1.0-alpha.3 → 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 +6 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +6 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +1 -1
- package/dist/src/common/styles/colorSet/UIColor.json +6 -1
- package/dist/src/common/styles/colorSet/index.d.ts +15 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -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 -1
|
@@ -312,5 +312,10 @@
|
|
|
312
312
|
"sys_icon_grey_darktheme_01": "darkgrey900",
|
|
313
313
|
"sys_icon_grey_darktheme_02": "darkgrey500",
|
|
314
314
|
"sys_icon_grey_darktheme_03": "darkgrey400",
|
|
315
|
-
"sys_widget_grey_01_opacity_50": "darkgrey900/opacity50"
|
|
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"
|
|
316
321
|
}
|
|
@@ -312,5 +312,10 @@
|
|
|
312
312
|
"sys_icon_grey_darktheme_01": "darkgrey900",
|
|
313
313
|
"sys_icon_grey_darktheme_02": "darkgrey500",
|
|
314
314
|
"sys_icon_grey_darktheme_03": "darkgrey400",
|
|
315
|
-
"sys_widget_grey_01_opacity_50": "grey900/opacity50"
|
|
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"
|
|
316
321
|
}
|
|
@@ -799,5 +799,10 @@
|
|
|
799
799
|
"ui_99": "sys_component_base_white_opacity50",
|
|
800
800
|
"ui_100": "sys_widget_grey_01_opacity_50",
|
|
801
801
|
"ui_101": "sys_component_base_25",
|
|
802
|
-
"ui_102": "sys_component_base_black_opacity50"
|
|
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"
|
|
803
808
|
}
|
|
@@ -432,6 +432,11 @@ declare const colorSet: {
|
|
|
432
432
|
sys_icon_grey_darktheme_02: string;
|
|
433
433
|
sys_icon_grey_darktheme_03: string;
|
|
434
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;
|
|
435
440
|
};
|
|
436
441
|
readonly PaletteColor_Dark: {
|
|
437
442
|
sys_container_background_01: string;
|
|
@@ -748,6 +753,11 @@ declare const colorSet: {
|
|
|
748
753
|
sys_icon_grey_darktheme_02: string;
|
|
749
754
|
sys_icon_grey_darktheme_03: string;
|
|
750
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;
|
|
751
761
|
};
|
|
752
762
|
readonly UIColor: {
|
|
753
763
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -1551,6 +1561,11 @@ declare const colorSet: {
|
|
|
1551
1561
|
ui_100: string;
|
|
1552
1562
|
ui_101: string;
|
|
1553
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;
|
|
1554
1569
|
};
|
|
1555
1570
|
};
|
|
1556
1571
|
export default colorSet;
|
|
@@ -800,4 +800,9 @@ export interface UITheme {
|
|
|
800
800
|
ui_100: string;
|
|
801
801
|
ui_101: string;
|
|
802
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;
|
|
803
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
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
## [v2.1.0-alpha.3]
|
|
3
3
|
## alpha|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
|
+
### sub
|
|
6
|
+
* DynamicLayout
|
|
7
|
+
* FullscreenIframSection
|
|
8
|
+
* multiPurposeUrl에 빈문자열이 올 경우 about:blank 가 입력되도록 수정(FullscreenIframSection이 재귀적으로 생성되는 이슈 해결)
|
|
5
9
|
### Color
|
|
6
|
-
* 컬러 키 값 23.07.
|
|
10
|
+
* 컬러 키 값 23.07.12 15시 17분 기준 싱크
|