pds-dev-kit-web-test 2.3.14 → 2.3.16
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/assets/icons/fill/LogoGoogle.js +1 -1
- package/dist/src/common/assets/icons/fill/TypefaceSystem.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +0 -1
- package/dist/src/common/assets/icons/fill/index.js +0 -2
- package/dist/src/common/assets/icons/line/LogoGoogle.js +1 -1
- package/dist/src/common/assets/icons/line/TypefaceSystem.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +0 -8
- package/dist/src/common/assets/icons/line/index.js +0 -16
- package/dist/src/common/hooks/useAbsolutePositioner.js +2 -2
- package/dist/src/common/hooks/useTooltip.d.ts +2 -2
- package/dist/src/common/hooks/useTooltip.js +2 -2
- package/dist/src/common/styles/colorSet/UIColor.json +3 -1
- package/dist/src/common/styles/colorSet/index.d.ts +2 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/clickTypeSystemUICssGenerator.d.ts +1 -1
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.d.ts +1 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +2 -2
- package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +1 -1
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.d.ts +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +3 -3
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +1 -1
- package/dist/src/desktop/components/BasicListItem/Contents.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +1 -1
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +1 -1
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +2 -2
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +1 -1
- package/dist/src/desktop/components/IconButton/IconButton.js +2 -2
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +1 -1
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +3 -3
- package/dist/src/desktop/components/Slider/Slider.d.ts +1 -1
- package/dist/src/desktop/components/Slider/Slider.js +1 -1
- package/dist/src/desktop/components/TextField/TextField.js +2 -5
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -2
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +2 -2
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +2 -2
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.d.ts +1 -1
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +1 -1
- package/dist/src/mobile/components/BasicListItem/Contents.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +1 -1
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +1 -1
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +1 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/mobile/components/MobileHeaderBar/utils.d.ts +1 -1
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +8 -20
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +1 -1
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +1 -1
- package/dist/src/mobile/components/Slider/Slider.d.ts +1 -1
- package/dist/src/mobile/components/Slider/Slider.js +1 -1
- package/dist/src/mobile/components/TextField/TextField.js +2 -5
- package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminList/AdminList.js +2 -2
- package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminList/HeaderRow.js +2 -2
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +2 -2
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +2 -2
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +2 -2
- package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +1 -1
- package/dist/src/sub/AdminList/ToolBar/ChipList.js +1 -1
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +4 -4
- package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +1 -1
- package/dist/src/sub/AdminList/ToolBar/ToolBar.js +3 -3
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/Embed.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/IframeDenied.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/useGoogleFonts.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.d.ts +1 -1
- package/dist/src/sub/SandollFontKit/api/getSandollFonts.d.ts +16 -0
- package/dist/src/sub/SandollFontKit/api/getSandollFonts.js +82 -0
- package/dist/src/sub/SandollFontKit/api/types.d.ts +50 -0
- package/dist/src/sub/SandollFontKit/api/types.js +2 -0
- package/dist/src/sub/SandollFontKit/constants.d.ts +9 -0
- package/dist/src/sub/SandollFontKit/constants.js +33 -0
- package/dist/src/sub/SandollFontKit/headless/SandollFontItem.d.ts +13 -0
- package/dist/src/sub/SandollFontKit/headless/SandollFontItem.js +64 -0
- package/dist/src/sub/SandollFontKit/headless/SandollFontsList.d.ts +18 -0
- package/dist/src/sub/SandollFontKit/headless/SandollFontsList.js +74 -0
- package/dist/src/sub/SandollFontKit/hooks/useQueryParamsReducer.d.ts +30 -0
- package/dist/src/sub/SandollFontKit/hooks/useQueryParamsReducer.js +69 -0
- package/dist/src/sub/SandollFontKit/index.d.ts +5 -0
- package/dist/src/sub/SandollFontKit/index.js +28 -0
- package/dist/src/sub/SandollFontKit/types.d.ts +14 -0
- package/dist/src/sub/SandollFontKit/types.js +2 -0
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.d.ts +1 -0
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.js +27 -0
- package/package.json +1 -1
- package/release-note.md +4 -4
- package/dist/src/common/assets/icons/fill/LogoSandoll.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/LogoSandoll.js +0 -30
- package/dist/src/common/assets/icons/line/LogoSandoll.d.ts +0 -4
- package/dist/src/common/assets/icons/line/LogoSandoll.js +0 -30
- package/dist/src/common/assets/icons/line/Recent.d.ts +0 -4
- package/dist/src/common/assets/icons/line/Recent.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceBlackLetter20.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceBlackLetter20.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceDeco20.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceDeco20.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceRound20.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceRound20.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceScript20.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceScript20.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceSlab20.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceSlab20.js +0 -30
- package/dist/src/common/assets/icons/line/TypefaceSymbol20.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TypefaceSymbol20.js +0 -30
- package/pipeline_output.log +0 -6456
@@ -0,0 +1,82 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
|
+
function step(op) {
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
|
+
switch (op[0]) {
|
21
|
+
case 0: case 1: t = op; break;
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
25
|
+
default:
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
30
|
+
if (t[2]) _.ops.pop();
|
31
|
+
_.trys.pop(); continue;
|
32
|
+
}
|
33
|
+
op = body.call(thisArg, _);
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
36
|
+
}
|
37
|
+
};
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.fetchSandollFonts = exports.DEFAULT_SEARCHQUERY = exports.DEFAULT_FILTER = exports.DEFAULT_PAGINATION = void 0;
|
40
|
+
exports.DEFAULT_PAGINATION = { page: 1, limit: 100 };
|
41
|
+
exports.DEFAULT_FILTER = { sort: 'trending', order: 'ASC' };
|
42
|
+
exports.DEFAULT_SEARCHQUERY = { usecase: 'EDITOR', searchTerm: '' };
|
43
|
+
function fetchSandollFonts(baseURL, searchParams, publHeaders) {
|
44
|
+
return __awaiter(this, void 0, void 0, function () {
|
45
|
+
var url, searchQuery, pagination, filter, categories, response, error_1;
|
46
|
+
return __generator(this, function (_a) {
|
47
|
+
switch (_a.label) {
|
48
|
+
case 0:
|
49
|
+
url = new URL('/seller/api/v2/channel-management/font-manager/sandoll/available-fonts', baseURL);
|
50
|
+
searchQuery = searchParams.searchQuery, pagination = searchParams.pagination, filter = searchParams.filter, categories = searchParams.categories;
|
51
|
+
// Set query parameters
|
52
|
+
url.searchParams.append('usecase', searchQuery.usecase || 'EDITOR');
|
53
|
+
if (searchQuery.searchTerm) {
|
54
|
+
url.searchParams.append('searchTerm', searchQuery.searchTerm);
|
55
|
+
}
|
56
|
+
url.searchParams.append('page', pagination.page.toString());
|
57
|
+
url.searchParams.append('limit', pagination.limit.toString());
|
58
|
+
url.searchParams.append('sort', filter.sort);
|
59
|
+
url.searchParams.append('order', filter.order);
|
60
|
+
url.searchParams.append('styles', categories.join(','));
|
61
|
+
_a.label = 1;
|
62
|
+
case 1:
|
63
|
+
_a.trys.push([1, 3, , 4]);
|
64
|
+
return [4 /*yield*/, fetch(url.toString(), {
|
65
|
+
method: 'GET',
|
66
|
+
headers: {
|
67
|
+
Authorization: "Bearer ".concat(publHeaders.channelToken),
|
68
|
+
'x-publ-channel-id': "".concat(publHeaders.channelId)
|
69
|
+
}
|
70
|
+
})];
|
71
|
+
case 2:
|
72
|
+
response = _a.sent();
|
73
|
+
return [2 /*return*/, response.json()];
|
74
|
+
case 3:
|
75
|
+
error_1 = _a.sent();
|
76
|
+
return [2 /*return*/, { error: error_1 }];
|
77
|
+
case 4: return [2 /*return*/];
|
78
|
+
}
|
79
|
+
});
|
80
|
+
});
|
81
|
+
}
|
82
|
+
exports.fetchSandollFonts = fetchSandollFonts;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import type { SANDOLL_CategoryType } from '../types';
|
2
|
+
export type Pagination = {
|
3
|
+
page: number;
|
4
|
+
limit: number;
|
5
|
+
};
|
6
|
+
export type Filter = {
|
7
|
+
sort: 'trending' | 'popularity' | 'date' | 'alpha';
|
8
|
+
order: 'ASC' | 'DESC';
|
9
|
+
};
|
10
|
+
export type SearchQuery = {
|
11
|
+
usecase?: 'EDITOR';
|
12
|
+
searchTerm?: string;
|
13
|
+
};
|
14
|
+
export type SandollFont = {
|
15
|
+
id: string;
|
16
|
+
distinctId: string;
|
17
|
+
fontEnumValue: string;
|
18
|
+
provider: string;
|
19
|
+
fontName: string;
|
20
|
+
fontFamilyName: string;
|
21
|
+
supportedWeights: number[];
|
22
|
+
providerFontId: string;
|
23
|
+
providerFontName: string;
|
24
|
+
providerFontFamilyId: string;
|
25
|
+
providerFontFamilyName: string;
|
26
|
+
providerCssInfoDict: CSSInfoDict;
|
27
|
+
category: SANDOLL_CategoryType;
|
28
|
+
};
|
29
|
+
export type CSSInfoDict = {
|
30
|
+
fontFamily: string;
|
31
|
+
fontWeight: number;
|
32
|
+
};
|
33
|
+
export type SupportedOptionMap = {};
|
34
|
+
export type FontResponse = {
|
35
|
+
data: {
|
36
|
+
availableFonts: SandollFont[];
|
37
|
+
supportedOptions: SupportedOptionMap;
|
38
|
+
pagination: Pagination;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
export type SandollFontsQueryParams = {
|
42
|
+
pagination: Pagination;
|
43
|
+
searchQuery: SearchQuery;
|
44
|
+
filter: Filter;
|
45
|
+
categories: SANDOLL_CategoryType[];
|
46
|
+
};
|
47
|
+
export type PublHeaders = {
|
48
|
+
channelToken: string;
|
49
|
+
channelId: string;
|
50
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SANDOLL_CategoryType, SANDOLL_CategoryIconType, SANDOLL_SortOptionType } from './types';
|
2
|
+
export declare const SANDOLL_SORT_OPTIONS: SANDOLL_SortOptionType[];
|
3
|
+
export declare const SANDOLL_DEFAULT_SORT: {
|
4
|
+
text: string;
|
5
|
+
value: SANDOLL_SortOptionType;
|
6
|
+
};
|
7
|
+
export declare const SANDOLL_SORT_OPTION_KEY_MAP: Record<SANDOLL_SortOptionType, string>;
|
8
|
+
export declare const SANDOLL_CATEGORIES: SANDOLL_CategoryType[];
|
9
|
+
export declare const SANDOLL_CATEGORY_ICONS: SANDOLL_CategoryIconType;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SANDOLL_CATEGORY_ICONS = exports.SANDOLL_CATEGORIES = exports.SANDOLL_SORT_OPTION_KEY_MAP = exports.SANDOLL_DEFAULT_SORT = exports.SANDOLL_SORT_OPTIONS = void 0;
|
4
|
+
exports.SANDOLL_SORT_OPTIONS = ['date', 'alpha'];
|
5
|
+
exports.SANDOLL_DEFAULT_SORT = {
|
6
|
+
text: 'str_key_seller_scene_x00001pages_dleditor_modal_fontselect_section_sandoll_filter_viewoption_option_latest',
|
7
|
+
value: 'date'
|
8
|
+
};
|
9
|
+
exports.SANDOLL_SORT_OPTION_KEY_MAP = {
|
10
|
+
date: 'str_key_seller_scene_x00001pages_dleditor_modal_fontselect_section_sandoll_filter_viewoption_option_latest',
|
11
|
+
alpha: 'str_key_seller_scene_x00001pages_dleditor_modal_fontselect_section_sandoll_filter_viewoption_option_name'
|
12
|
+
};
|
13
|
+
exports.SANDOLL_CATEGORIES = [
|
14
|
+
'serif',
|
15
|
+
'sans-serif',
|
16
|
+
'slab',
|
17
|
+
'blackLetter',
|
18
|
+
'deco',
|
19
|
+
'symbol',
|
20
|
+
'round',
|
21
|
+
'script'
|
22
|
+
];
|
23
|
+
// NOTE: remove as
|
24
|
+
exports.SANDOLL_CATEGORY_ICONS = {
|
25
|
+
serif: 'ic_typeface_serif_20',
|
26
|
+
'sans-serif': 'ic_typeface_sans_serif_20',
|
27
|
+
slab: 'ic_typeface_slab_20',
|
28
|
+
round: 'ic_typeface_round_20',
|
29
|
+
script: 'ic_typeface_script_20',
|
30
|
+
deco: 'ic_typeface_deco_20',
|
31
|
+
symbol: 'ic_typeface_symbol_20',
|
32
|
+
blackLetter: 'ic_typeface_blackletter_20'
|
33
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { SANDOLL_Font } from '../types';
|
2
|
+
import type { LegacyRef } from 'react';
|
3
|
+
type HeadlessProps = {
|
4
|
+
isLoading: boolean;
|
5
|
+
isVisible: boolean;
|
6
|
+
ref: LegacyRef<HTMLElement>;
|
7
|
+
};
|
8
|
+
type Props = {
|
9
|
+
font: SANDOLL_Font;
|
10
|
+
children: (args: HeadlessProps) => JSX.Element;
|
11
|
+
};
|
12
|
+
declare function SandollFontItem({ font, children }: Props): JSX.Element;
|
13
|
+
export default SandollFontItem;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
|
+
function step(op) {
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
|
+
switch (op[0]) {
|
21
|
+
case 0: case 1: t = op; break;
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
25
|
+
default:
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
30
|
+
if (t[2]) _.ops.pop();
|
31
|
+
_.trys.pop(); continue;
|
32
|
+
}
|
33
|
+
op = body.call(thisArg, _);
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
36
|
+
}
|
37
|
+
};
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
var GoogleFontkit_1 = require("@sub/GoogleFontkit");
|
40
|
+
var react_1 = require("react");
|
41
|
+
function SandollFontItem(_a) {
|
42
|
+
var font = _a.font, children = _a.children;
|
43
|
+
var _b = (0, react_1.useState)(false), isLoading = _b[0], setIsLoading = _b[1];
|
44
|
+
var ref = (0, react_1.useRef)(null);
|
45
|
+
var entry = (0, GoogleFontkit_1.useIntersectionObserver)(ref, {});
|
46
|
+
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
47
|
+
(0, react_1.useEffect)(function () {
|
48
|
+
if (!isVisible) {
|
49
|
+
return;
|
50
|
+
}
|
51
|
+
function getCss() {
|
52
|
+
return __awaiter(this, void 0, void 0, function () {
|
53
|
+
return __generator(this, function (_a) {
|
54
|
+
setIsLoading(true);
|
55
|
+
setIsLoading(false);
|
56
|
+
return [2 /*return*/];
|
57
|
+
});
|
58
|
+
});
|
59
|
+
}
|
60
|
+
getCss();
|
61
|
+
}, [font, isVisible]);
|
62
|
+
return children({ isLoading: isLoading, isVisible: isVisible, ref: ref });
|
63
|
+
}
|
64
|
+
exports.default = SandollFontItem;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { QueryParamDispatchFunction } from '../hooks/useQueryParamsReducer';
|
3
|
+
import type { PublHeaders, SandollFontsQueryParams } from '../api/types';
|
4
|
+
import type { SANDOLL_Font } from '../types';
|
5
|
+
type HeadlessProps = {
|
6
|
+
isLoading: boolean;
|
7
|
+
fonts: SANDOLL_Font[];
|
8
|
+
queryParams: SandollFontsQueryParams;
|
9
|
+
queryParamDispatch: QueryParamDispatchFunction;
|
10
|
+
};
|
11
|
+
type Props = {
|
12
|
+
baseURL: string;
|
13
|
+
defaultQueryParams?: SandollFontsQueryParams;
|
14
|
+
publHeaders: PublHeaders;
|
15
|
+
children: (args: HeadlessProps) => JSX.Element;
|
16
|
+
};
|
17
|
+
declare function SandollFontsList({ baseURL, defaultQueryParams, publHeaders, children }: Props): JSX.Element;
|
18
|
+
export default SandollFontsList;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
|
+
function step(op) {
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
|
+
switch (op[0]) {
|
21
|
+
case 0: case 1: t = op; break;
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
25
|
+
default:
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
30
|
+
if (t[2]) _.ops.pop();
|
31
|
+
_.trys.pop(); continue;
|
32
|
+
}
|
33
|
+
op = body.call(thisArg, _);
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
36
|
+
}
|
37
|
+
};
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
var react_1 = require("react");
|
40
|
+
var getSandollFonts_1 = require("../api/getSandollFonts");
|
41
|
+
var useQueryParamsReducer_1 = require("../hooks/useQueryParamsReducer");
|
42
|
+
function SandollFontsList(_a) {
|
43
|
+
var baseURL = _a.baseURL, _b = _a.defaultQueryParams, defaultQueryParams = _b === void 0 ? useQueryParamsReducer_1.DEFAULT_QUERY_PARAMS : _b, publHeaders = _a.publHeaders, children = _a.children;
|
44
|
+
var _c = (0, useQueryParamsReducer_1.useQueryParamsReducer)(defaultQueryParams), queryParams = _c[0], queryParamDispatch = _c[1];
|
45
|
+
var _d = (0, react_1.useState)(false), isLoading = _d[0], setIsLoading = _d[1];
|
46
|
+
var _e = (0, react_1.useState)([]), fonts = _e[0], setFonts = _e[1];
|
47
|
+
(0, react_1.useEffect)(function () {
|
48
|
+
function fetchFontsList() {
|
49
|
+
return __awaiter(this, void 0, void 0, function () {
|
50
|
+
var res;
|
51
|
+
return __generator(this, function (_a) {
|
52
|
+
switch (_a.label) {
|
53
|
+
case 0:
|
54
|
+
setIsLoading(true);
|
55
|
+
return [4 /*yield*/, (0, getSandollFonts_1.fetchSandollFonts)(baseURL, queryParams, publHeaders)];
|
56
|
+
case 1:
|
57
|
+
res = _a.sent();
|
58
|
+
setFonts(res.data.availableFonts);
|
59
|
+
setIsLoading(false);
|
60
|
+
return [2 /*return*/];
|
61
|
+
}
|
62
|
+
});
|
63
|
+
});
|
64
|
+
}
|
65
|
+
fetchFontsList();
|
66
|
+
}, [baseURL, queryParams, publHeaders]);
|
67
|
+
return children({
|
68
|
+
isLoading: isLoading,
|
69
|
+
fonts: fonts,
|
70
|
+
queryParams: queryParams,
|
71
|
+
queryParamDispatch: queryParamDispatch
|
72
|
+
});
|
73
|
+
}
|
74
|
+
exports.default = SandollFontsList;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Dispatch } from 'react';
|
2
|
+
import type { SandollFontsQueryParams } from '../api/types';
|
3
|
+
import type { SANDOLL_CategoryType } from '../types';
|
4
|
+
type Filter = {
|
5
|
+
sort: 'trending' | 'popularity' | 'date' | 'alpha';
|
6
|
+
order: 'ASC' | 'DESC';
|
7
|
+
};
|
8
|
+
type Action = {
|
9
|
+
type: 'SET_PAGE';
|
10
|
+
payload: number;
|
11
|
+
} | {
|
12
|
+
type: 'SET_LIMIT';
|
13
|
+
payload: number;
|
14
|
+
} | {
|
15
|
+
type: 'SET_SEARCH_TERM';
|
16
|
+
payload: string;
|
17
|
+
} | {
|
18
|
+
type: 'SET_SORT';
|
19
|
+
payload: Filter['sort'];
|
20
|
+
} | {
|
21
|
+
type: 'SET_ORDER';
|
22
|
+
payload: Filter['order'];
|
23
|
+
} | {
|
24
|
+
type: 'TOGGLE_CATEGORIES';
|
25
|
+
payload: SANDOLL_CategoryType;
|
26
|
+
};
|
27
|
+
export type QueryParamDispatchFunction = Dispatch<Action>;
|
28
|
+
export declare const DEFAULT_QUERY_PARAMS: SandollFontsQueryParams;
|
29
|
+
export declare function useQueryParamsReducer(initialQueryParams: SandollFontsQueryParams): [SandollFontsQueryParams, Dispatch<Action>];
|
30
|
+
export {};
|
@@ -0,0 +1,69 @@
|
|
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
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
15
|
+
if (ar || !(i in from)) {
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
17
|
+
ar[i] = from[i];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
21
|
+
};
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
23
|
+
exports.useQueryParamsReducer = exports.DEFAULT_QUERY_PARAMS = void 0;
|
24
|
+
var react_1 = require("react");
|
25
|
+
// Initial state
|
26
|
+
exports.DEFAULT_QUERY_PARAMS = {
|
27
|
+
pagination: {
|
28
|
+
page: 1,
|
29
|
+
limit: 100
|
30
|
+
},
|
31
|
+
searchQuery: {
|
32
|
+
usecase: 'EDITOR',
|
33
|
+
searchTerm: ''
|
34
|
+
},
|
35
|
+
filter: {
|
36
|
+
sort: 'date',
|
37
|
+
order: 'ASC'
|
38
|
+
},
|
39
|
+
categories: ['blackLetter', 'deco', 'round', 'sans-serif', 'script', 'serif', 'slab', 'symbol']
|
40
|
+
};
|
41
|
+
// Reducer function
|
42
|
+
function queryParamsReducer(state, action) {
|
43
|
+
switch (action.type) {
|
44
|
+
case 'SET_PAGE':
|
45
|
+
return __assign(__assign({}, state), { pagination: __assign(__assign({}, state.pagination), { page: action.payload }) });
|
46
|
+
case 'SET_LIMIT':
|
47
|
+
return __assign(__assign({}, state), { pagination: __assign(__assign({}, state.pagination), { limit: action.payload }) });
|
48
|
+
case 'SET_SEARCH_TERM':
|
49
|
+
return __assign(__assign({}, state), { searchQuery: __assign(__assign({}, state.searchQuery), { searchTerm: action.payload }) });
|
50
|
+
case 'SET_SORT':
|
51
|
+
return __assign(__assign({}, state), { filter: __assign(__assign({}, state.filter), { sort: action.payload }) });
|
52
|
+
case 'SET_ORDER':
|
53
|
+
return __assign(__assign({}, state), { filter: __assign(__assign({}, state.filter), { order: action.payload }) });
|
54
|
+
case 'TOGGLE_CATEGORIES': {
|
55
|
+
var category_1 = action.payload;
|
56
|
+
var categories = state.categories.includes(category_1)
|
57
|
+
? state.categories.filter(function (c) { return c !== category_1; })
|
58
|
+
: __spreadArray(__spreadArray([], state.categories, true), [category_1], false);
|
59
|
+
return __assign(__assign({}, state), { categories: categories });
|
60
|
+
}
|
61
|
+
default:
|
62
|
+
return state;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
// Usage of useReducer with the defined reducer and initial state
|
66
|
+
function useQueryParamsReducer(initialQueryParams) {
|
67
|
+
return (0, react_1.useReducer)(queryParamsReducer, initialQueryParams);
|
68
|
+
}
|
69
|
+
exports.useQueryParamsReducer = useQueryParamsReducer;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { default as SandollFontItem } from './headless/SandollFontItem';
|
2
|
+
export { default as SandollFontsList } from './headless/SandollFontsList';
|
3
|
+
export { default as appendSandollFontTag } from './utils/createSandollFontLink';
|
4
|
+
export * from './types';
|
5
|
+
export * from './constants';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
|
+
};
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
+
exports.appendSandollFontTag = exports.SandollFontsList = exports.SandollFontItem = void 0;
|
21
|
+
var SandollFontItem_1 = require("./headless/SandollFontItem");
|
22
|
+
Object.defineProperty(exports, "SandollFontItem", { enumerable: true, get: function () { return __importDefault(SandollFontItem_1).default; } });
|
23
|
+
var SandollFontsList_1 = require("./headless/SandollFontsList");
|
24
|
+
Object.defineProperty(exports, "SandollFontsList", { enumerable: true, get: function () { return __importDefault(SandollFontsList_1).default; } });
|
25
|
+
var createSandollFontLink_1 = require("./utils/createSandollFontLink");
|
26
|
+
Object.defineProperty(exports, "appendSandollFontTag", { enumerable: true, get: function () { return __importDefault(createSandollFontLink_1).default; } });
|
27
|
+
__exportStar(require("./types"), exports);
|
28
|
+
__exportStar(require("./constants"), exports);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { SandollFont } from './api/types';
|
2
|
+
import type { PDSIconType } from '@common/types';
|
3
|
+
export type SANDOLL_Font = SandollFont;
|
4
|
+
export type SANDOLL_CategoryType = 'serif' | 'sans-serif' | 'slab' | 'round' | 'script' | 'deco' | 'symbol' | 'blackLetter';
|
5
|
+
export type SANDOLL_SortOptionType = 'date' | 'alpha';
|
6
|
+
export type SANDOLL_CategoryIconType = Record<SANDOLL_CategoryType, PDSIconType>;
|
7
|
+
export type SANDOLL_FilterOptionHandlerArgType = {
|
8
|
+
name: 'searchQuery';
|
9
|
+
value: string;
|
10
|
+
} | {
|
11
|
+
name: 'categories';
|
12
|
+
value: SANDOLL_CategoryType[];
|
13
|
+
};
|
14
|
+
export type SANDOLL_ChangeFilterOptionHandler = (arg: SANDOLL_FilterOptionHandlerArgType) => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
export default function appendSandollTagToHead(tagString: string): void;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
function appendSandollTagToHead(tagString) {
|
4
|
+
var _a;
|
5
|
+
// Create a temporary element to parse the string
|
6
|
+
var tempDiv = document.createElement('div');
|
7
|
+
tempDiv.innerHTML = tagString.trim();
|
8
|
+
var newTag = tempDiv.firstChild;
|
9
|
+
if (!newTag)
|
10
|
+
return;
|
11
|
+
var tagName = newTag.tagName.toLowerCase();
|
12
|
+
var id = newTag.getAttribute('id');
|
13
|
+
var href = newTag.getAttribute('href');
|
14
|
+
if (id) {
|
15
|
+
var existingTag = document.querySelector("".concat(tagName, "#").concat(id));
|
16
|
+
if (existingTag) {
|
17
|
+
var existingHref = existingTag.getAttribute('href');
|
18
|
+
if (existingHref === href) {
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
(_a = existingTag.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(existingTag);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// Append the new tag to the head
|
25
|
+
document.head.appendChild(newTag);
|
26
|
+
}
|
27
|
+
exports.default = appendSandollTagToHead;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
@@ -1,30 +0,0 @@
|
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
14
|
-
var t = {};
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
16
|
-
t[p] = s[p];
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
20
|
-
t[p[i]] = s[p[i]];
|
21
|
-
}
|
22
|
-
return t;
|
23
|
-
};
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
26
|
-
var LogoSandoll = function (_a) {
|
27
|
-
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
28
|
-
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M11.9995,7.125 C13.4273322,7.125 14.7115154,7.73867069 15.6029926,8.71650784 C16.4399984,7.88401095 17.5945016,7.369 18.869,7.369 C21.427,7.369 23.5,9.442 23.5,12 C23.5,14.558 21.427,16.631 18.869,16.631 C17.5945016,16.631 16.4399984,16.1159891 15.6025041,15.2826091 C14.7115154,16.2613293 13.4273322,16.875 11.9995,16.875 C10.572198,16.875 9.28826384,16.2613293 8.3969037,15.2834922 C7.56010155,16.1159891 6.40559687,16.631 5.1306,16.631 C2.5736,16.631 0.4996,14.558 0.4996,12 C0.4996,9.442 2.5736,7.369 5.1306,7.369 C6.40559687,7.369 7.56010155,7.88401095 8.39747206,8.71739086 C9.28826384,7.73867069 10.572198,7.125 11.9995,7.125 Z" }) })));
|
29
|
-
};
|
30
|
-
exports.default = LogoSandoll;
|
@@ -1,30 +0,0 @@
|
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
14
|
-
var t = {};
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
16
|
-
t[p] = s[p];
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
20
|
-
t[p[i]] = s[p[i]];
|
21
|
-
}
|
22
|
-
return t;
|
23
|
-
};
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
26
|
-
var LogoSandoll = function (_a) {
|
27
|
-
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
28
|
-
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M11.9995,7.125 C13.4273322,7.125 14.7115154,7.73867069 15.6029926,8.71650784 C16.4399984,7.88401095 17.5945016,7.369 18.869,7.369 C21.427,7.369 23.5,9.442 23.5,12 C23.5,14.558 21.427,16.631 18.869,16.631 C17.5945016,16.631 16.4399984,16.1159891 15.6025041,15.2826091 C14.7115154,16.2613293 13.4273322,16.875 11.9995,16.875 C10.572198,16.875 9.28826384,16.2613293 8.3969037,15.2834922 C7.56010155,16.1159891 6.40559687,16.631 5.1306,16.631 C2.5736,16.631 0.4996,14.558 0.4996,12 C0.4996,9.442 2.5736,7.369 5.1306,7.369 C6.40559687,7.369 7.56010155,7.88401095 8.39747206,8.71739086 C9.28826384,7.73867069 10.572198,7.125 11.9995,7.125 Z" }) })));
|
29
|
-
};
|
30
|
-
exports.default = LogoSandoll;
|