pds-dev-kit-web 2.1.14 → 2.1.15
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/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +1 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.js +46 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +24 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.d.ts +13 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.js +63 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +70 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +52 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.js +41 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.d.ts +35 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.js +141 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.js +33 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +9 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.js +46 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +62 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +4 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +72 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +119 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.js +3 -1
- package/dist/src/sub/DynamicLayout/components/Section/util/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +38 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.d.ts +6 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +35 -7
- package/dist/src/sub/DynamicLayout/components/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/components/index.js +2 -1
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +837 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +2082 -9
- package/dist/src/sub/DynamicLayout/nakedMocks.json +847 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +379 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +386 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +193 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +76 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +71 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +107 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +66 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_AnimationObserverBox.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_AnimationObserverBox.js +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +102 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +21 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useRefDimensions.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useRefDimensions.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +71 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +40 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +200 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.js +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.js +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +67 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +92 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +94 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +95 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +77 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +94 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +47 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +91 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +77 -5
- package/package.json +2 -1
- package/release-note.md +3 -19
|
@@ -119,7 +119,7 @@ declare const colorSet: {
|
|
|
119
119
|
grey300: string;
|
|
120
120
|
darkgrey300: string;
|
|
121
121
|
};
|
|
122
|
-
readonly
|
|
122
|
+
readonly PaletteColor_light: {
|
|
123
123
|
sys_container_background_01: string;
|
|
124
124
|
sys_container_background_02: string;
|
|
125
125
|
sys_container_background_03: string;
|
|
@@ -464,7 +464,7 @@ declare const colorSet: {
|
|
|
464
464
|
sys_sw_sidebar_item_text_disabled: string;
|
|
465
465
|
sys_text_grey_05: string;
|
|
466
466
|
};
|
|
467
|
-
readonly
|
|
467
|
+
readonly PaletteColor_Dark: {
|
|
468
468
|
sys_container_background_01: string;
|
|
469
469
|
sys_container_background_02: string;
|
|
470
470
|
sys_container_background_03: string;
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
-
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
8
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
|
+
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
-
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
13
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
+
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -35,6 +35,7 @@ function DynamicLayout(_a) {
|
|
|
35
35
|
isPreview: isPreview,
|
|
36
36
|
navigationHandler: navigationHandler,
|
|
37
37
|
sectionActionHandler: sectionActionHandler,
|
|
38
|
+
editingSectionId: editingSectionId,
|
|
38
39
|
programmedSectionComponents: programmedSectionComponents
|
|
39
40
|
} }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection }, void 0)), mode !== 'EDIT' &&
|
|
40
41
|
(iframeSection ? ((0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id)) : (filteredSortedSection.map(function (section) { return (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id); })))] }), void 0));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ImagePropTypes = {
|
|
3
|
+
imageSrc: string;
|
|
4
|
+
viewType?: 'fit' | 'fill';
|
|
5
|
+
imagePosition?: 'left-top' | 'left-center' | 'left-bottom' | 'center-top' | 'center-center' | 'center-bottom' | 'right-top' | 'right-center' | 'right-bottom';
|
|
6
|
+
};
|
|
7
|
+
declare const Image: import("react").ForwardRefExoticComponent<ImagePropTypes & import("react").RefAttributes<HTMLImageElement>>;
|
|
8
|
+
export default Image;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var react_1 = require("react");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var Image = (0, react_1.forwardRef)(function (_a, ref) {
|
|
14
|
+
var imageSrc = _a.imageSrc, _b = _a.viewType, viewType = _b === void 0 ? 'fit' : _b, _c = _a.imagePosition, imagePosition = _c === void 0 ? 'center-center' : _c;
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(S_Image, { ref: ref, src: imageSrc, viewType: viewType, imagePosition: imagePosition }, void 0);
|
|
16
|
+
});
|
|
17
|
+
var S_Image = styled_components_1.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"], ["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"])), function (_a) {
|
|
18
|
+
var viewType = _a.viewType;
|
|
19
|
+
return (viewType === 'fit' ? 'auto' : '100%');
|
|
20
|
+
}, function (_a) {
|
|
21
|
+
var viewType = _a.viewType;
|
|
22
|
+
switch (viewType) {
|
|
23
|
+
case 'fit':
|
|
24
|
+
return 'contain';
|
|
25
|
+
case 'fill':
|
|
26
|
+
return 'cover';
|
|
27
|
+
default:
|
|
28
|
+
return 'contain';
|
|
29
|
+
}
|
|
30
|
+
}, function (_a) {
|
|
31
|
+
var viewType = _a.viewType;
|
|
32
|
+
switch (viewType) {
|
|
33
|
+
case 'fit':
|
|
34
|
+
return 'contain';
|
|
35
|
+
case 'fill':
|
|
36
|
+
return 'cover';
|
|
37
|
+
default:
|
|
38
|
+
return 'contain';
|
|
39
|
+
}
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var viewType = _a.viewType;
|
|
42
|
+
return (viewType === 'fit' ? 'auto' : '100%');
|
|
43
|
+
});
|
|
44
|
+
exports.default = Image;
|
|
45
|
+
Image.displayName = 'Image';
|
|
46
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Image = void 0;
|
|
7
|
+
var Image_1 = __importDefault(require("./Image"));
|
|
8
|
+
exports.Image = Image_1.default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
function RichText(_a) {
|
|
13
|
+
var text = _a.text;
|
|
14
|
+
return (0, jsx_runtime_1.jsx)(S_RichText, { dangerouslySetInnerHTML: { __html: text } }, void 0);
|
|
15
|
+
}
|
|
16
|
+
var S_RichText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"], ["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"])), function (_a) {
|
|
17
|
+
var theme = _a.theme;
|
|
18
|
+
return theme.ui_papp_post_notice_link;
|
|
19
|
+
}, function (_a) {
|
|
20
|
+
var theme = _a.theme;
|
|
21
|
+
return theme.ui_98;
|
|
22
|
+
});
|
|
23
|
+
exports.default = RichText;
|
|
24
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RichText = void 0;
|
|
7
|
+
var RichText_1 = __importDefault(require("./RichText"));
|
|
8
|
+
exports.RichText = RichText_1.default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type TextPropTypes = {
|
|
3
|
+
text: string;
|
|
4
|
+
fontFamilyName?: 'Pretendard' | 'sans-serif' | 'serif';
|
|
5
|
+
fontWeight?: number;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
lineHeight?: number;
|
|
8
|
+
letterSpacing?: number;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
11
|
+
};
|
|
12
|
+
declare const Text: import("react").ForwardRefExoticComponent<TextPropTypes & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
export default Text;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var react_1 = require("react");
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
+
var Text = (0, react_1.forwardRef)(function (_a, ref) {
|
|
36
|
+
var text = _a.text, _b = _a.letterSpacing, letterSpacing = _b === void 0 ? 0 : _b, _c = _a.lineHeight, lineHeight = _c === void 0 ? 1.3 : _c, _d = _a.textAlign, textAlign = _d === void 0 ? 'left' : _d, args = __rest(_a, ["text", "letterSpacing", "lineHeight", "textAlign"]);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(S_Text, __assign({ ref: ref, letterSpacing: letterSpacing, lineHeight: lineHeight, textAlign: textAlign }, args, { children: text }), void 0));
|
|
38
|
+
});
|
|
39
|
+
var S_Text = styled_components_1.default.p(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
40
|
+
var letterSpacing = _a.letterSpacing;
|
|
41
|
+
return letterSpacing;
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var lineHeight = _a.lineHeight;
|
|
44
|
+
return lineHeight;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var textAlign = _a.textAlign;
|
|
47
|
+
return textAlign;
|
|
48
|
+
}, function (_a) {
|
|
49
|
+
var fontFamilyName = _a.fontFamilyName;
|
|
50
|
+
return fontFamilyName && "font-family: " + fontFamilyName;
|
|
51
|
+
}, function (_a) {
|
|
52
|
+
var fontWeight = _a.fontWeight;
|
|
53
|
+
return fontWeight && "font-weight: " + fontWeight;
|
|
54
|
+
}, function (_a) {
|
|
55
|
+
var fontSize = _a.fontSize;
|
|
56
|
+
return fontSize && "font-size: " + fontSize + "px";
|
|
57
|
+
}, function (_a) {
|
|
58
|
+
var textColor = _a.textColor;
|
|
59
|
+
return textColor && "color: " + textColor;
|
|
60
|
+
});
|
|
61
|
+
exports.default = Text;
|
|
62
|
+
Text.displayName = 'Text';
|
|
63
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Text = void 0;
|
|
7
|
+
var Text_1 = __importDefault(require("./Text"));
|
|
8
|
+
exports.Text = Text_1.default;
|
package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const customChrome: {
|
|
3
|
+
readonly noheader: "noheader";
|
|
4
|
+
readonly nofooter: "nofooter";
|
|
5
|
+
readonly noborders: "noborders";
|
|
6
|
+
readonly noscrollbar: "noscrollbar";
|
|
7
|
+
readonly transparent: "transparent";
|
|
8
|
+
};
|
|
9
|
+
export declare type TwitterTimelinePropTypes = {
|
|
10
|
+
/**
|
|
11
|
+
* 임베드할 트위터 유저의 id 값 입니다.
|
|
12
|
+
*/
|
|
13
|
+
userId: string;
|
|
14
|
+
/**
|
|
15
|
+
* 임베드시 보여줄 트윗의 개수입니다. 최소 1에서 20까지 설정할 수 있습니다.
|
|
16
|
+
*/
|
|
17
|
+
tweetLimit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* 다른 트윗 또는 계정에 대한 답글 트윗 표시 여부를 결정합니다.
|
|
20
|
+
*/
|
|
21
|
+
showReplies?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 임베드할 트위터 타임라인의 컬러 theme 입니다.
|
|
24
|
+
*/
|
|
25
|
+
theme?: 'dark' | 'light';
|
|
26
|
+
/**
|
|
27
|
+
* 렌더링된 위젯에 지정된 아리아 예의 동작을 적용합니다. 새 트윗이 타임라인 상단에 추가되어 화면 리더에 영향을 줄 수 있습니다.
|
|
28
|
+
*
|
|
29
|
+
* @types polite: 변경 사항이 있지만 사용자의 작업을 방해하지 않는다는 의미입니다. 즉, 변경 사항이 있을 때 스크린 리더는 사용자 작업을 중단하지 않고 알립니다.
|
|
30
|
+
*
|
|
31
|
+
* @types assertive: 변경 사항이 즉시 사용자에게 알려져야 함을 의미합니다. 이 속성 값은 사용자 작업을 방해할 수 있으므로 신중하게 사용해야 합니다.
|
|
32
|
+
*
|
|
33
|
+
* @types rude: 변경 사항이 사용자의 작업을 방해하거나 중단할 수 있음을 나타냅니다. 이 값은 더욱 강력한 우선순위를 가지며, 사용자의 작업을 더 강제로 중단시킬 수 있습니다.
|
|
34
|
+
*/
|
|
35
|
+
ariaPolite?: 'polite' | 'assertive' | 'rude';
|
|
36
|
+
/**
|
|
37
|
+
* 타임라인과 사이트의 임베드된 페이지를 맞춤 추천 및 맞춤 광고 등의 목적으로 사용할지 여부를 결정합니다.
|
|
38
|
+
*/
|
|
39
|
+
dnt?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 임베드할 트위터 타임라인 위젯의 디자인 요소 표시를 결정합니다.
|
|
42
|
+
*
|
|
43
|
+
* @types noheader: 위젯의 헤더를 숨깁니다.
|
|
44
|
+
*
|
|
45
|
+
* @types nofooter: 위젯의 푸터를 숨깁니다.
|
|
46
|
+
*
|
|
47
|
+
* @types noborders: 위젯 영역을 둘러싼 테두리와 트윗을 구분하는 테두리를 포함하여 위젯 내의 모든 테두리를 제거합니다.
|
|
48
|
+
*
|
|
49
|
+
* @types noscrollbar: 기본 타임라인 스크롤바(표시된 경우)를 자르고 숨깁니다. 표준 사용자 인터페이스 구성 요소를 숨기면 웹사이트의 접근성에 영향을 줄 수 있다는 점을 고려하세요.
|
|
50
|
+
*
|
|
51
|
+
* @types transparent: 위젯의 배경색을 제거합니다.
|
|
52
|
+
*/
|
|
53
|
+
customChrome?: (keyof typeof customChrome)[];
|
|
54
|
+
/**
|
|
55
|
+
* 트위터 스크립트가 로드 되기 전 혹은 로드 실패시 보여지는 컴포넌트입니다.
|
|
56
|
+
* a 태그 내부에 들어가기 때문에 로딩과는 다른 용도로 사용됩니다.
|
|
57
|
+
*/
|
|
58
|
+
fallback?: React.ReactNode | JSX.Element;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 트위터의 Profile Timeline 임베드 컴포넌트입니다.
|
|
62
|
+
*
|
|
63
|
+
* Profile Timeline 가이드: https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/profile-timeline
|
|
64
|
+
*
|
|
65
|
+
* Parameter Reference: https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/parameter-reference
|
|
66
|
+
*
|
|
67
|
+
* 트위터 표시 요구 약관: https://developer.twitter.com/en/developer-terms/display-requirements
|
|
68
|
+
*/
|
|
69
|
+
declare const TwitterTimeline: import("react").ForwardRefExoticComponent<TwitterTimelinePropTypes & import("react").RefAttributes<HTMLDivElement>>;
|
|
70
|
+
export default TwitterTimeline;
|
package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
var react_1 = require("react");
|
|
16
|
+
var customChrome = {
|
|
17
|
+
noheader: 'noheader',
|
|
18
|
+
nofooter: 'nofooter',
|
|
19
|
+
noborders: 'noborders',
|
|
20
|
+
noscrollbar: 'noscrollbar',
|
|
21
|
+
transparent: 'transparent'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 트위터의 Profile Timeline 임베드 컴포넌트입니다.
|
|
25
|
+
*
|
|
26
|
+
* Profile Timeline 가이드: https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/profile-timeline
|
|
27
|
+
*
|
|
28
|
+
* Parameter Reference: https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/parameter-reference
|
|
29
|
+
*
|
|
30
|
+
* 트위터 표시 요구 약관: https://developer.twitter.com/en/developer-terms/display-requirements
|
|
31
|
+
*/
|
|
32
|
+
var TwitterTimeline = (0, react_1.forwardRef)(function (_a, ref) {
|
|
33
|
+
var userId = _a.userId, _b = _a.tweetLimit, tweetLimit = _b === void 0 ? 5 : _b, _c = _a.showReplies, showReplies = _c === void 0 ? false : _c, _d = _a.theme, theme = _d === void 0 ? 'light' : _d, _e = _a.ariaPolite, ariaPolite = _e === void 0 ? 'polite' : _e, _f = _a.dnt, dnt = _f === void 0 ? true : _f, _g = _a.customChrome, customChrome = _g === void 0 ? [] : _g, fallback = _a.fallback;
|
|
34
|
+
var TWITTER_EMBED_TIMELINE_SCRIPT_ID = 'twitter-timeline';
|
|
35
|
+
var TWITTER_EMBED_TIMELINE_SCRIPT_SRC = 'https://platform.twitter.com/widgets.js';
|
|
36
|
+
function scriptLoader(scriptId, scriptUrl) {
|
|
37
|
+
var script = document.createElement('script');
|
|
38
|
+
script.async = true;
|
|
39
|
+
script.id = scriptId;
|
|
40
|
+
script.src = scriptUrl;
|
|
41
|
+
script.type = 'text/javascript';
|
|
42
|
+
script.onerror = function () {
|
|
43
|
+
// eslint-disable-next-line no-console
|
|
44
|
+
console.log('onerror >>>', userId);
|
|
45
|
+
};
|
|
46
|
+
document.head.appendChild(script);
|
|
47
|
+
}
|
|
48
|
+
scriptLoader(TWITTER_EMBED_TIMELINE_SCRIPT_ID, TWITTER_EMBED_TIMELINE_SCRIPT_SRC);
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)("section", __assign({ className: "twitter-embed-container", ref: ref }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "twitter-embed" }, { children: (0, jsx_runtime_1.jsx)("a", __assign({ target: "_blank", className: "twitter-timeline", "data-tweet-limit": tweetLimit, "data-show-replies": showReplies, "data-aria-polite": ariaPolite, "data-dnt": dnt, "data-theme": theme, "data-chrome": customChrome.join(' '), href: "https://twitter.com/" + userId, rel: "noreferrer" }, { children: fallback }), void 0) }), void 0) }), void 0));
|
|
50
|
+
});
|
|
51
|
+
exports.default = TwitterTimeline;
|
|
52
|
+
TwitterTimeline.displayName = 'TwitterTimeline';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TwitterTimelinePropTypes } from './TwitterTimeline';
|
|
3
|
+
export declare type TwitterTimelineWrapperPropTypes = TwitterTimelinePropTypes & {
|
|
4
|
+
/**
|
|
5
|
+
* 임베드할 트위터 타임라인 위젯의 너비를 결정합니다. 최소 너비 180픽셀, 최대 너비 520픽셀로 상위 요소의 너비에 맞게 자동으로 조정됩니다.
|
|
6
|
+
*/
|
|
7
|
+
width?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 임베드할 트위터 타임라인 위젯의 높이를 결정합니다.
|
|
10
|
+
*/
|
|
11
|
+
height?: number;
|
|
12
|
+
};
|
|
13
|
+
declare function TwitterTimelineRerender(args: TwitterTimelineWrapperPropTypes): JSX.Element;
|
|
14
|
+
export default TwitterTimelineRerender;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var react_1 = require("react");
|
|
23
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
|
+
var TwitterTimeline_1 = __importDefault(require("./TwitterTimeline"));
|
|
25
|
+
function TwitterTimelineRerender(args) {
|
|
26
|
+
var userId = args.userId, tweetLimit = args.tweetLimit, showReplies = args.showReplies, theme = args.theme, ariaPolite = args.ariaPolite, dnt = args.dnt, customChrome = args.customChrome, fallback = args.fallback, width = args.width, height = args.height;
|
|
27
|
+
var forceRenderKey = (0, react_1.useMemo)(function () {
|
|
28
|
+
return String(userId + tweetLimit + showReplies + theme + ariaPolite + dnt + customChrome + fallback);
|
|
29
|
+
}, [userId, tweetLimit, showReplies, theme, ariaPolite, dnt, customChrome, fallback]);
|
|
30
|
+
var widthInRange = width && width > 180 && width < 520 ? width : undefined;
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(S_TwitterTimelineWrapper, __assign({ className: "twitter-timeline-wrapper", "$width": widthInRange, "$height": height }, { children: (0, jsx_runtime_1.jsx)(TwitterTimeline_1.default, __assign({}, args), forceRenderKey) }), void 0));
|
|
32
|
+
}
|
|
33
|
+
var S_TwitterTimelineWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: content-box;\n height: ", ";\n max-width: 520px;\n min-width: 180px;\n overflow: auto;\n width: ", ";\n"], ["\n box-sizing: content-box;\n height: ", ";\n max-width: 520px;\n min-width: 180px;\n overflow: auto;\n width: ", ";\n"])), function (_a) {
|
|
34
|
+
var $height = _a.$height;
|
|
35
|
+
return ($height ? $height + "px" : '100%');
|
|
36
|
+
}, function (_a) {
|
|
37
|
+
var $width = _a.$width;
|
|
38
|
+
return ($width ? $width + "px" : '100%');
|
|
39
|
+
});
|
|
40
|
+
exports.default = TwitterTimelineRerender;
|
|
41
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TwitterTimeline = void 0;
|
|
7
|
+
var TwitterTimeline_1 = __importDefault(require("./TwitterTimeline"));
|
|
8
|
+
exports.TwitterTimeline = TwitterTimeline_1.default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ComponentBlockWrapperPropTypes = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
boxSizing?: 'border-box' | 'content-box';
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
alignVertical?: 'top' | 'center' | 'bottom';
|
|
8
|
+
alignHorizontal?: 'left' | 'center' | 'right';
|
|
9
|
+
paddingTop?: number;
|
|
10
|
+
paddingRight?: number;
|
|
11
|
+
paddingBottom?: number;
|
|
12
|
+
paddingLeft?: number;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
borderType?: 'none' | 'solid' | 'dashed' | 'dotted';
|
|
15
|
+
borderSize?: number;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
borderRadius?: number;
|
|
18
|
+
backgroundType?: 'solid' | 'gradient';
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
backgroundGradientType?: 'linear' | 'circular';
|
|
21
|
+
backgroundGradientStartColor?: string;
|
|
22
|
+
backgroundGradientStartPosition?: number;
|
|
23
|
+
backgroundGradientEndColor?: string;
|
|
24
|
+
backgroundGradientEndPosition?: number;
|
|
25
|
+
backgroundGradientDegree?: number;
|
|
26
|
+
shadowType?: 'outside' | 'inside';
|
|
27
|
+
shadowColor?: string;
|
|
28
|
+
shadowHorizontalDistance?: number;
|
|
29
|
+
shadowVerticalDistance?: number;
|
|
30
|
+
shadowBlur?: number;
|
|
31
|
+
shadowSpread?: number;
|
|
32
|
+
opacity?: number;
|
|
33
|
+
};
|
|
34
|
+
declare const Wrapper: import("react").ForwardRefExoticComponent<ComponentBlockWrapperPropTypes & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export default Wrapper;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
var react_1 = require("react");
|
|
50
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
51
|
+
var Wrapper = (0, react_1.forwardRef)(function (_a, ref) {
|
|
52
|
+
var children = _a.children, args = __rest(_a, ["children"]);
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(S_Wrapper, __assign({ ref: ref }, args, { children: children }), void 0));
|
|
54
|
+
});
|
|
55
|
+
var ShadowStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: ", ";\n"], ["\n box-shadow: ", ";\n"])), function (_a) {
|
|
56
|
+
var shadowType = _a.shadowType, shadowColor = _a.shadowColor, shadowHorizontalDistance = _a.shadowHorizontalDistance, shadowVerticalDistance = _a.shadowVerticalDistance, shadowBlur = _a.shadowBlur, shadowSpread = _a.shadowSpread;
|
|
57
|
+
var isInset = shadowType === 'inside';
|
|
58
|
+
return (isInset ? 'inset' : '') + " " + shadowHorizontalDistance + "px " + shadowVerticalDistance + "px " + shadowBlur + "px " + shadowSpread + "px " + shadowColor;
|
|
59
|
+
});
|
|
60
|
+
var S_Wrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", ";\n border-radius: ", "px;\n box-sizing: ", ";\n display: flex;\n height: ", "px;\n opacity: ", ";\n overflow: hidden;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: ", "px;\n padding-top: ", "px;\n width: ", "px;\n z-index: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n"], ["\n border: ", ";\n border-radius: ", "px;\n box-sizing: ", ";\n display: flex;\n height: ", "px;\n opacity: ", ";\n overflow: hidden;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: ", "px;\n padding-top: ", "px;\n width: ", "px;\n z-index: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
61
|
+
var _b = _a.borderSize, borderSize = _b === void 0 ? 0 : _b, _c = _a.borderType, borderType = _c === void 0 ? 'none' : _c, _d = _a.borderColor, borderColor = _d === void 0 ? '' : _d;
|
|
62
|
+
return borderSize + "px " + borderType + " " + borderColor;
|
|
63
|
+
}, function (_a) {
|
|
64
|
+
var _b = _a.borderRadius, borderRadius = _b === void 0 ? 0 : _b;
|
|
65
|
+
return borderRadius;
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var _b = _a.boxSizing, boxSizing = _b === void 0 ? 'content-box' : _b;
|
|
68
|
+
return boxSizing;
|
|
69
|
+
}, function (_a) {
|
|
70
|
+
var _b = _a.height, height = _b === void 0 ? '100%' : _b;
|
|
71
|
+
return height;
|
|
72
|
+
}, function (_a) {
|
|
73
|
+
var _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
74
|
+
return opacity;
|
|
75
|
+
}, function (_a) {
|
|
76
|
+
var _b = _a.paddingBottom, paddingBottom = _b === void 0 ? 0 : _b;
|
|
77
|
+
return paddingBottom;
|
|
78
|
+
}, function (_a) {
|
|
79
|
+
var _b = _a.paddingLeft, paddingLeft = _b === void 0 ? 0 : _b;
|
|
80
|
+
return paddingLeft;
|
|
81
|
+
}, function (_a) {
|
|
82
|
+
var _b = _a.paddingRight, paddingRight = _b === void 0 ? 0 : _b;
|
|
83
|
+
return paddingRight;
|
|
84
|
+
}, function (_a) {
|
|
85
|
+
var _b = _a.paddingTop, paddingTop = _b === void 0 ? 0 : _b;
|
|
86
|
+
return paddingTop;
|
|
87
|
+
}, function (_a) {
|
|
88
|
+
var _b = _a.width, width = _b === void 0 ? '100%' : _b;
|
|
89
|
+
return width;
|
|
90
|
+
}, function (_a) {
|
|
91
|
+
var _b = _a.zIndex, zIndex = _b === void 0 ? 0 : _b;
|
|
92
|
+
return zIndex;
|
|
93
|
+
}, function (_a) {
|
|
94
|
+
var _b = _a.alignVertical, alignVertical = _b === void 0 ? 'top' : _b;
|
|
95
|
+
switch (alignVertical) {
|
|
96
|
+
case 'top':
|
|
97
|
+
return 'align-Items: flex-start';
|
|
98
|
+
case 'center':
|
|
99
|
+
return 'align-Items: center';
|
|
100
|
+
case 'bottom':
|
|
101
|
+
return 'align-Items: flex-end';
|
|
102
|
+
default:
|
|
103
|
+
return 'align-Items: flex-start';
|
|
104
|
+
}
|
|
105
|
+
}, function (_a) {
|
|
106
|
+
var _b = _a.alignHorizontal, alignHorizontal = _b === void 0 ? 'left' : _b;
|
|
107
|
+
switch (alignHorizontal) {
|
|
108
|
+
case 'left':
|
|
109
|
+
return 'justify-content: flex-start';
|
|
110
|
+
case 'center':
|
|
111
|
+
return 'justify-content: center';
|
|
112
|
+
case 'right':
|
|
113
|
+
return 'justify-content: flex-end';
|
|
114
|
+
default:
|
|
115
|
+
return 'justify-content: flex-start';
|
|
116
|
+
}
|
|
117
|
+
}, function (_a) {
|
|
118
|
+
var _b = _a.backgroundType, backgroundType = _b === void 0 ? 'solid' : _b;
|
|
119
|
+
switch (backgroundType) {
|
|
120
|
+
case 'solid':
|
|
121
|
+
return BackgroundSolidType;
|
|
122
|
+
case 'gradient':
|
|
123
|
+
return BackgroundGradientType;
|
|
124
|
+
default:
|
|
125
|
+
return BackgroundSolidType;
|
|
126
|
+
}
|
|
127
|
+
}, ShadowStyle);
|
|
128
|
+
var BackgroundSolidType = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
|
|
129
|
+
var backgroundColor = _a.backgroundColor;
|
|
130
|
+
return (backgroundColor ? backgroundColor : 'none');
|
|
131
|
+
});
|
|
132
|
+
var BackgroundGradientType = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
|
|
133
|
+
var _b = _a.backgroundGradientType, backgroundGradientType = _b === void 0 ? 'linear' : _b, _c = _a.backgroundGradientStartColor, backgroundGradientStartColor = _c === void 0 ? 'white' : _c, _d = _a.backgroundGradientStartPosition, backgroundGradientStartPosition = _d === void 0 ? 0 : _d, _e = _a.backgroundGradientEndColor, backgroundGradientEndColor = _e === void 0 ? 'black' : _e, _f = _a.backgroundGradientEndPosition, backgroundGradientEndPosition = _f === void 0 ? 100 : _f, _g = _a.backgroundGradientDegree, backgroundGradientDegree = _g === void 0 ? 90 : _g;
|
|
134
|
+
var isRadial = backgroundGradientType === 'circular';
|
|
135
|
+
var gradientType = isRadial ? 'radial' : backgroundGradientType;
|
|
136
|
+
var degree = isRadial ? '' : backgroundGradientDegree + "deg,";
|
|
137
|
+
return gradientType + "-gradient(" + degree + " " + backgroundGradientStartColor + " " + backgroundGradientStartPosition + "%, " + backgroundGradientEndColor + " " + backgroundGradientEndPosition + "%)";
|
|
138
|
+
});
|
|
139
|
+
exports.default = Wrapper;
|
|
140
|
+
Wrapper.displayName = 'Wrapper';
|
|
141
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|