@seed-design/codemod 0.0.0-alpha-20241021100240 → 0.0.0-alpha-20241022063510
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/README.md +2 -3
- package/bin/transforms/migrate-icons.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -56,9 +56,8 @@ npx @seed-design/codemod migrate-icons src/ui --extensions=ts,tsx
|
|
56
56
|
>
|
57
57
|
> - [import assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#import-attributes) 등 deprecated된 문법이 있으면 파서에 따라 파싱 오류가 표시될 수 있어요.
|
58
58
|
> - 코드 변환 이후 몇 가지 사항을 직접 확인해야 해요. 자세한 내용은 [Notion 페이지](https://www.notion.so/daangn/12128c3a9f8f8063b569c897116c8f40)를 참고해주세요.
|
59
|
-
>
|
60
|
-
> - 5개 아이콘이 사용된 경우
|
61
|
-
> - `--log` flag를 사용하면, 변환되지 않은 아이콘이 `error.log`에 기록돼요.
|
59
|
+
> - 기존 아이콘 198개 중 5개 아이콘은, 신규 아이콘팩에 대응되는 아이콘이 있지만, 대응되는 아이콘이 적절한지 확인해야 해요.
|
60
|
+
> - `--log` flag를 사용하면, 5개 아이콘이 사용된 경우 `error.log`에 기록돼요.
|
62
61
|
|
63
62
|
## 테스트
|
64
63
|
|
@@ -1 +1 @@
|
|
1
|
-
import h from"jscodeshift";import P from"picocolors";var T=P.bold("@seed-design/codemod");function k({importDeclarations:e,match:c,logger:l,filePath:o}){e.replaceWith(r=>{let n=r.node.source.value,t=r.node.specifiers,d=r.node.importKind,s=r.node.comments,F=(()=>{if(typeof n!="string")return n;let{startsWith:i,replaceWith:I}=c.source.find(({startsWith:C})=>n.startsWith(C)),g=(I?n.replace(i,I):n).split("/");return g.map((C,b)=>b!==g.length-1||!(C in c.identifier)?C:c.identifier[C]).join("/")})();l?.debug(`${o}: source ${n} -> ${F}`);let a=t.map(i=>{switch(i.type){case"ImportSpecifier":{let I=i.imported.name;if(!(I in c.identifier)||c.identifier[I]===null)return l?.error(`${o}: imported specifier ${I}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),i;let L=c.identifier[I];if(L===I)return i;l?.debug(`${o}: imported name ${I} -> ${L}`);let p=h.identifier(L);return h.importSpecifier(p,i.local)}case"ImportDefaultSpecifier":return i;case"ImportNamespaceSpecifier":return i}}).filter((i,I,L)=>{if(i.type!=="ImportSpecifier")return!0;let g=i.imported.name;return L.findIndex(p=>p.imported.name===g)===I}),u=h.importDeclaration(a,h.literal(F),d);return u.comments=s,u})}function w({identifiers:e,identifierMatch:c,logger:l,filePath:o}){e.replaceWith(r=>{let n=r.node.name;if(!(n in c))return h.identifier(n);if(c[n]===null)return l?.error(`${o}: identifier ${n}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),console.error(T,`${o}: identifier ${n}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),h.identifier(n);let t=c[n];return l?.debug(`${o}: identifier ${n} -> ${t}`),h.identifier(t)})}import{createLogger as H,format as m,transports as S}from"winston";var f={IconAddThin:"IconPlusLine",IconAddRegular:"IconPlusLine",IconAddFill:"IconPlusFill",IconAddCircleThin:"IconPlusCircleLine",IconAddCircleRegular:"IconPlusCircleLine",IconAddCircleFill:"IconPlusCircleFill",IconAebThin:"IconCarFrontUpsideWave2ReversedUpLine",IconAebRegular:"IconCarFrontUpsideWave2ReversedUpLine",IconAebFill:"IconCarFrontUpsideWave2ReversedUpFill",IconAiThin:"IconSparkle2Line",IconAiRegular:"IconSparkle2Line",IconAiFill:"IconSparkle2Fill",IconAndroidShareThin:"IconAndroidshareLine",IconAndroidShareRegular:"IconAndroidshareLine",IconAndroidShareFill:"IconAndroidshareFill",IconArrowThin:"IconArrowUpRightLine",IconArrowRegular:"IconArrowUpRightLine",IconArrowFill:"IconArrowUpRightFill",IconArrowDownwardThin:"IconArrowDownLine",IconArrowDownwardRegular:"IconArrowDownLine",IconArrowDownwardFill:"IconArrowDownFill",IconArrowDropDownThin:"IconTriangleDownSmallLine",IconArrowDropDownRegular:"IconTriangleDownSmallLine",IconArrowDropDownFill:"IconTriangleDownSmallFill",IconArrowDropUpThin:"IconTriangleUpSmallLine",IconArrowDropUpRegular:"IconTriangleUpSmallLine",IconArrowDropUpFill:"IconTriangleUpSmallFill",IconArrowUpwardThin:"IconArrowUpLine",IconArrowUpwardRegular:"IconArrowUpLine",IconArrowUpwardFill:"IconArrowUpFill",IconArticleThin:"IconArticleLine",IconArticleRegular:"IconArticleLine",IconArticleFill:"IconArticleFill",IconBackwardThin:"IconArrowLeftLine",IconBackwardRegular:"IconArrowLeftLine",IconBackwardFill:"IconArrowLeftFill",IconBillThin:"IconReceiptLine",IconBillRegular:"IconReceiptLine",IconBillFill:"IconReceiptFill",IconBoldThin:null,IconBoldRegular:null,IconBoldFill:null,IconBookmarkThin:"IconBookmarkLine",IconBookmarkRegular:"IconBookmarkLine",IconBookmarkFill:"IconBookmarkFill",IconBookmarkListThin:"IconHorizline3VerticalStarLine",IconBookmarkListRegular:"IconHorizline3VerticalStarLine",IconBookmarkListFill:"IconHorizline3VerticalStarFill",IconCalendarThin:"IconCalendarLine",IconCalendarRegular:"IconCalendarLine",IconCalendarFill:"IconCalendarFill",IconCallThin:"IconPhoneLine",IconCallRegular:"IconPhoneLine",IconCallFill:"IconPhoneFill",IconCallDeclinedThin:"IconPhoneXmarkLine",IconCallDeclinedRegular:"IconPhoneXmarkLine",IconCallDeclinedFill:"IconPhoneXmarkFill",IconCameraThin:"IconCameraLine",IconCameraRegular:"IconCameraLine",IconCameraFill:"IconCameraFill",IconCarThin:"IconCarFrontsideLine",IconCarRegular:"IconCarFrontsideLine",IconCarFill:"IconCarFrontsideFill",IconCarAroundViewThin:"IconArrowClockwiseOvalLine",IconCarAroundViewRegular:"IconArrowClockwiseOvalLine",IconCarAroundViewFill:"IconArrowClockwiseOvalFill",IconCarBlindSpotThin:"IconCarRearUpsideWave2ReversedDownLeftLine",IconCarBlindSpotRegular:"IconCarRearUpsideWave2ReversedDownLeftLine",IconCarBlindSpotFill:"IconCarRearUpsideWave2ReversedDownLeftFill",IconCarCruiseControlThin:"IconSpeedometerLine",IconCarCruiseControlRegular:"IconSpeedometerLine",IconCarCruiseControlFill:"IconSpeedometerFill",IconCarEpbThin:"IconEpbLine",IconCarEpbRegular:"IconEpbLine",IconCarEpbFill:"IconEpbFill",IconCarHeatedSeatThin:"IconSeatLeftHeatwave2Line",IconCarHeatedSeatRegular:"IconSeatLeftHeatwave2Line",IconCarHeatedSeatFill:"IconSeatLeftHeatwave2Fill",IconCarHeatedSteeringWheelThin:"IconSteeringwheelHeatwave2Line",IconCarHeatedSteeringWheelRegular:"IconSteeringwheelHeatwave2Line",IconCarHeatedSteeringWheelFill:"IconSteeringwheelHeatwave2Fill",IconCarLdwsThin:"IconRoadlaneLine",IconCarLdwsRegular:"IconRoadlaneLine",IconCarLdwsFill:"IconRoadlaneFill",IconCarLeatherSeatThin:"IconSeatLeftLine",IconCarLeatherSeatRegular:"IconSeatLeftLine",IconCarLeatherSeatFill:"IconSeatLeftFill",IconCarNavigationThin:"IconCompassLine",IconCarNavigationRegular:"IconCompassLine",IconCarNavigationFill:"IconCompassFill",IconCarPowerTrunkThin:"IconCarRearTrunkOpenLeftsideLine",IconCarPowerTrunkRegular:"IconCarRearTrunkOpenLeftsideLine",IconCarPowerTrunkFill:"IconCarRearTrunkOpenLeftsideFill",IconCarRearCameraThin:"IconCarRearUpsideSectorDownLine",IconCarRearCameraRegular:"IconCarRearUpsideSectorDownLine",IconCarRearCameraFill:"IconCarRearUpsideSectorDownFill",IconCarRearSensorThin:"IconCarRearUpsideWave2ReversedDownLine",IconCarRearSensorRegular:"IconCarRearUpsideWave2ReversedDownLine",IconCarRearSensorFill:"IconCarRearUpsideWave2ReversedDownFill",IconCarSmartKeyThin:"IconSmartkeyLine",IconCarSmartKeyRegular:"IconSmartkeyLine",IconCarSmartKeyFill:"IconSmartkeyFill",IconCarVentilationSeatThin:"IconSeatLeftFanLine",IconCarVentilationSeatRegular:"IconSeatLeftFanLine",IconCarVentilationSeatFill:"IconSeatLeftFanFill",IconCartThin:"IconCartLine",IconCartRegular:"IconCartLine",IconCartFill:"IconCartFill",IconCertificationThin:"IconCrosshairLine",IconCertificationRegular:"IconCrosshairLine",IconCertificationFill:"IconCrosshairFill",IconChallengeThin:"IconFlagHillLine",IconChallengeRegular:"IconFlagHillLine",IconChallengeFill:"IconFlagHillFill",IconChartThin:"IconBarchartSquareLine",IconChartRegular:"IconBarchartSquareLine",IconChartFill:"IconBarchartSquareFill",IconChatBubbleCheckThin:"IconCheckmarkChatbubbleLeftLine",IconChatBubbleCheckRegular:"IconCheckmarkChatbubbleLeftLine",IconChatBubbleCheckFill:"IconCheckmarkChatbubbleLeftFill",IconChattingThin:"IconDot3HorizontalChatbubbleLeftLine",IconChattingRegular:"IconDot3HorizontalChatbubbleLeftLine",IconChattingFill:"IconDot3HorizontalChatbubbleLeftFill",IconChattingSendThin:"IconPaperplaneLine",IconChattingSendRegular:"IconPaperplaneLine",IconChattingSendFill:"IconPaperplaneFill",IconCheckThin:"IconCheckmarkLine",IconCheckRegular:"IconCheckmarkLine",IconCheckFill:"IconCheckmarkFill",IconCheckFlowerThin:"IconCheckmarkFlowerLine",IconCheckFlowerRegular:"IconCheckmarkFlowerLine",IconCheckFlowerFill:"IconCheckmarkFlowerFill",IconChevronLeftThin:"IconChevronLeftLine",IconChevronLeftRegular:"IconChevronLeftLine",IconChevronLeftFill:"IconChevronLeftFill",IconChevronRightThin:"IconChevronRightLine",IconChevronRightRegular:"IconChevronRightLine",IconChevronRightFill:"IconChevronRightFill",IconClickThin:"IconHandPointUpLine",IconClickRegular:"IconHandPointUpLine",IconClickFill:"IconHandPointUpFill",IconClockThin:"IconClockLine",IconClockRegular:"IconClockLine",IconClockFill:"IconClockFill",IconCloseThin:"IconXmarkLine",IconCloseRegular:"IconXmarkLine",IconCloseFill:"IconXmarkFill",IconCobuyingThin:null,IconCobuyingRegular:null,IconCobuyingFill:null,IconCommunityThin:"IconPostLine",IconCommunityRegular:"IconPostLine",IconCommunityFill:"IconPostFill",IconCondoThin:"IconBuilding2Line",IconCondoRegular:"IconBuilding2Line",IconCondoFill:"IconBuilding2Fill",IconConfirmationThin:"IconCheckmarkShieldLine",IconConfirmationRegular:"IconCheckmarkShieldLine",IconConfirmationFill:"IconCheckmarkShieldFill",IconConfirmationPayThin:"IconWonShieldLine",IconConfirmationPayRegular:"IconWonShieldLine",IconConfirmationPayFill:"IconWonShieldFill",IconConfirmationProfileThin:"IconPersonShieldLine",IconConfirmationProfileRegular:"IconPersonShieldLine",IconConfirmationProfileFill:"IconPersonShieldFill",IconContentsThin:"IconGridHeartLine",IconContentsRegular:"IconGridHeartLine",IconContentsFill:"IconGridHeartFill",IconConvertThin:"IconArrowRightArrowLeftLine",IconConvertRegular:"IconArrowRightArrowLeftLine",IconConvertFill:"IconArrowRightArrowLeftFill",IconCopyThin:"IconSquare2StackedLine",IconCopyRegular:"IconSquare2StackedLine",IconCopyFill:"IconSquare2StackedFill",IconCouponThin:"IconCouponLine",IconCouponRegular:"IconCouponLine",IconCouponFill:"IconCouponFill",IconCouponDownloadDoneThin:"IconCheckmarkHorizlineLine",IconCouponDownloadDoneRegular:"IconCheckmarkHorizlineLine",IconCouponDownloadDoneFill:"IconCheckmarkHorizlineFill",IconCouponUsedThin:"IconCheckmarkCouponLine",IconCouponUsedRegular:"IconCheckmarkCouponLine",IconCouponUsedFill:"IconCheckmarkCouponFill",IconDeleteKeyboardThin:"IconBackspacekeyLine",IconDeleteKeyboardRegular:"IconBackspacekeyLine",IconDeleteKeyboardFill:"IconBackspacekeyFill",IconDeliveryThin:null,IconDeliveryRegular:null,IconDeliveryFill:null,IconDirectionThin:"IconArrowRightAngledLine",IconDirectionRegular:"IconArrowRightAngledLine",IconDirectionFill:"IconArrowRightAngledFill",IconDownloadThin:"IconArrowDownHorizlineLine",IconDownloadRegular:"IconArrowDownHorizlineLine",IconDownloadFill:"IconArrowDownHorizlineFill",IconEditThin:"IconEraserHorizlineLine",IconEditRegular:"IconEraserHorizlineLine",IconEditFill:"IconEraserHorizlineFill",IconEmoticonThin:"IconFaceSmileCircleLine",IconEmoticonRegular:"IconFaceSmileCircleLine",IconEmoticonFill:"IconFaceSmileCircleFill",IconEmoticonBadThin:"IconFaceSadCircleLine",IconEmoticonBadRegular:"IconFaceSadCircleLine",IconEmoticonBadFill:"IconFaceSadCircleFill",IconExpandThin:"IconArrowUpRightArrowDownLeftLine",IconExpandRegular:"IconArrowUpRightArrowDownLeftLine",IconExpandFill:"IconArrowUpRightArrowDownLeftFill",IconExpandLessThin:"IconChevronUpLine",IconExpandLessRegular:"IconChevronUpLine",IconExpandLessFill:"IconChevronUpFill",IconExpandMoreThin:"IconChevronDownLine",IconExpandMoreRegular:"IconChevronDownLine",IconExpandMoreFill:"IconChevronDownFill",IconFileThin:"IconPaperclipLine",IconFileRegular:"IconPaperclipLine",IconFileFill:"IconPaperclipFill",IconFilter02Thin:"IconSlider2HorizontalLine",IconFilter02Regular:"IconSlider2HorizontalLine",IconFilter02Fill:"IconSlider2HorizontalFill",IconForwardThin:"IconArrowRightLine",IconForwardRegular:"IconArrowRightLine",IconForwardFill:"IconArrowRightFill",IconGenderThin:"IconMalesymbolFemalesymbolLine",IconGenderRegular:"IconMalesymbolFemalesymbolLine",IconGenderFill:"IconMalesymbolFemalesymbolFill",IconGlobalThin:"IconGlobeLine",IconGlobalRegular:"IconGlobeLine",IconGlobalFill:"IconGlobeFill",IconGpsThin:"IconCrosshairLine",IconGpsRegular:"IconCrosshairLine",IconGpsFill:"IconCrosshairFill",IconGpsEnableThin:"IconCrosshairQuestionmarkLine",IconGpsEnableRegular:"IconCrosshairQuestionmarkLine",IconGpsEnableFill:"IconCrosshairQuestionmarkFill",IconGpsEnable2Thin:"IconCrosshairQuestionmarkLine",IconGpsEnable2Regular:"IconCrosshairQuestionmarkLine",IconGpsEnable2Fill:"IconCrosshairQuestionmarkFill",IconGroupchatKingThin:"IconCrownLine",IconGroupchatKingRegular:"IconCrownLine",IconGroupchatKingFill:"IconCrownFill",IconHandleThin:"IconHorizline3VerticalTightLine",IconHandleRegular:"IconHorizline3VerticalTightLine",IconHandleFill:"IconHorizline3VerticalTightFill",IconHashtagThin:"IconHashLine",IconHashtagRegular:"IconHashLine",IconHashtagFill:"IconHashFill",IconHeadphoneThin:"IconHeadsetLine",IconHeadphoneRegular:"IconHeadsetLine",IconHeadphoneFill:"IconHeadsetFill",IconHeartThin:"IconHeartLine",IconHeartRegular:"IconHeartLine",IconHeartFill:"IconHeartFill",IconHelpThin:"IconQuestionmarkCircleLine",IconHelpRegular:"IconQuestionmarkCircleLine",IconHelpFill:"IconQuestionmarkCircleFill",IconHelpcenterThin:"IconHeadsetLine",IconHelpcenterRegular:"IconHeadsetLine",IconHelpcenterFill:"IconHeadsetFill",IconHelperThin:"IconHeadsetLine",IconHelperRegular:"IconHeadsetLine",IconHelperFill:"IconHeadsetFill",IconHomeThin:"IconHouseLine",IconHomeRegular:"IconHouseLine",IconHomeFill:"IconHouseFill",IconHouseThin:"IconWindow4HouseLine",IconHouseRegular:"IconWindow4HouseLine",IconHouseFill:"IconWindow4HouseFill",IconHousekeepingBookThin:"IconBookLine",IconHousekeepingBookRegular:"IconBookLine",IconHousekeepingBookFill:"IconBookFill",IconImportThin:"IconDocumentArrowLeftLine",IconImportRegular:"IconDocumentArrowLeftLine",IconImportFill:"IconDocumentArrowLeftFill",IconInfoThin:"IconILowercaseSerifCircleLine",IconInfoRegular:"IconILowercaseSerifCircleLine",IconInfoFill:"IconILowercaseSerifCircleFill",IconInterestThin:"IconHorizline3VerticalStarLine",IconInterestRegular:"IconHorizline3VerticalStarLine",IconInterestFill:"IconHorizline3VerticalStarFill",IconInterestListThin:"IconStarLine",IconInterestListRegular:"IconStarLine",IconInterestListFill:"IconStarFill",IconInviteThin:"IconEnvelopeLine",IconInviteRegular:"IconEnvelopeLine",IconInviteFill:"IconEnvelopeFill",IconInviteFriendThin:"IconPersonPlusLine",IconInviteFriendRegular:"IconPersonPlusLine",IconInviteFriendFill:"IconPersonPlusFill",IconIosShareThin:"IconArrowUpBracketDownLine",IconIosShareRegular:"IconArrowUpBracketDownLine",IconIosShareFill:"IconArrowUpBracketDownFill",IconJobsThin:"IconPersonMagnifyingglassLine",IconJobsRegular:"IconPersonMagnifyingglassLine",IconJobsFill:"IconPersonMagnifyingglassFill",IconKeyboardHidingThin:"IconKeyboardChevronDownLine",IconKeyboardHidingRegular:"IconKeyboardChevronDownLine",IconKeyboardHidingFill:"IconKeyboardChevronDownFill",IconKeywordThin:"IconTagLine",IconKeywordRegular:"IconTagLine",IconKeywordFill:"IconTagFill",IconLaptopThin:"IconLaptopLine",IconLaptopRegular:"IconLaptopLine",IconLaptopFill:"IconLaptopFill",IconLeafThin:"IconLeafLine",IconLeafRegular:"IconLeafLine",IconLeafFill:"IconLeafFill",IconListThin:"IconDothorizline3VerticalLine",IconListRegular:"IconDothorizline3VerticalLine",IconListFill:"IconDothorizline3VerticalFill",IconListCardThin:"IconHorizrectangleHorizline2VerticalLine",IconListCardRegular:"IconHorizrectangleHorizline2VerticalLine",IconListCardFill:"IconHorizrectangleHorizline2VerticalFill",IconListCheckThin:"IconDocumentCheckmarkLine",IconListCheckRegular:"IconDocumentCheckmarkLine",IconListCheckFill:"IconDocumentCheckmarkFill",IconListSelectThin:"IconHorizline3VerticalCheckmarkLine",IconListSelectRegular:"IconHorizline3VerticalCheckmarkLine",IconListSelectFill:"IconHorizline3VerticalCheckmarkFill",IconListThumbnailThin:"IconSquareline2VerticalLine",IconListThumbnailRegular:"IconSquareline2VerticalLine",IconListThumbnailFill:"IconSquareline2VerticalFill",IconLocationThin:"IconLocationpinLine",IconLocationRegular:"IconLocationpinLine",IconLocationFill:"IconLocationpinFill",IconLockThin:"IconLockLine",IconLockRegular:"IconLockLine",IconLockFill:"IconLockFill",IconLoudspeakerThin:"IconMegaphoneLine",IconLoudspeakerRegular:"IconMegaphoneLine",IconLoudspeakerFill:"IconMegaphoneFill",IconMapThin:"IconMapLocationpinLine",IconMapRegular:"IconMapLocationpinLine",IconMapFill:"IconMapLocationpinFill",IconMarketThin:"IconStoreLine",IconMarketRegular:"IconStoreLine",IconMarketFill:"IconStoreFill",IconMarketCheckThin:"IconStoreCheckmarkLine",IconMarketCheckRegular:"IconStoreCheckmarkLine",IconMarketCheckFill:"IconStoreCheckmarkFill",IconMarketWriteThin:"IconStorePenLine",IconMarketWriteRegular:"IconStorePenLine",IconMarketWriteFill:"IconStorePenFill",IconMentionThin:"IconAtLine",IconMentionRegular:"IconAtLine",IconMentionFill:"IconAtFill",IconMenuThin:"IconHorizline3VerticalLine",IconMenuRegular:"IconHorizline3VerticalLine",IconMenuFill:"IconHorizline3VerticalFill",IconMicThin:"IconMicrophoneLine",IconMicRegular:"IconMicrophoneLine",IconMicFill:"IconMicrophoneFill",IconMicOffThin:"IconMicrophoneSlashLine",IconMicOffRegular:"IconMicrophoneSlashLine",IconMicOffFill:"IconMicrophoneSlashFill",IconMissionThin:"IconBookOpenLine",IconMissionRegular:"IconBookOpenLine",IconMissionFill:"IconBookOpenFill",IconMobileThin:"IconMobileLine",IconMobileRegular:"IconMobileLine",IconMobileFill:"IconMobileFill",IconMoneySendThin:"IconWonCircleArrowRightLine",IconMoneySendRegular:"IconWonCircleArrowRightLine",IconMoneySendFill:"IconWonCircleArrowRightFill",IconMoneyWonThin:"IconWonCircleLine",IconMoneyWonRegular:"IconWonCircleLine",IconMoneyWonFill:"IconWonCircleFill",IconMoonThin:"IconMoonLine",IconMoonRegular:"IconMoonLine",IconMoonFill:"IconMoonFill",IconMoreHorizThin:"IconDot3HorizontalLine",IconMoreHorizRegular:"IconDot3HorizontalLine",IconMoreHorizFill:"IconDot3HorizontalFill",IconMoreVertThin:"IconDot3VerticalLine",IconMoreVertRegular:"IconDot3VerticalLine",IconMoreVertFill:"IconDot3VerticalFill",IconMyThin:"IconPersonLine",IconMyRegular:"IconPersonLine",IconMyFill:"IconPersonFill",IconMyProfileThin:"IconPersonCircleLine",IconMyProfileRegular:"IconPersonCircleLine",IconMyProfileFill:"IconPersonCircleFill",IconNearMeThin:"IconLocationpinLine",IconNearMeRegular:"IconLocationpinLine",IconNearMeFill:"IconLocationpinFill",IconNewtopicThin:"IconNUppercaseCircleLine",IconNewtopicRegular:"IconNUppercaseCircleLine",IconNewtopicFill:"IconNUppercaseCircleFill",IconNoteThin:"IconDocumentLine",IconNoteRegular:"IconDocumentLine",IconNoteFill:"IconDocumentFill",IconNotificationThin:"IconBellLine",IconNotificationRegular:"IconBellLine",IconNotificationFill:"IconBellFill",IconNotificationFallThin:"IconArrowDownLine",IconNotificationFallRegular:"IconArrowDownLine",IconNotificationFallFill:"IconArrowDownFill",IconNotificationOffThin:"IconBellSlashLine",IconNotificationOffRegular:"IconBellSlashLine",IconNotificationOffFill:"IconBellSlashFill",IconOrderThin:"IconCheckmarkClipboardLine",IconOrderRegular:"IconCheckmarkClipboardLine",IconOrderFill:"IconCheckmarkClipboardFill",IconPauseThin:"IconVertrectangle2HorizontalLine",IconPauseRegular:"IconVertrectangle2HorizontalLine",IconPauseFill:"IconVertrectangle2HorizontalFill",IconPaymentThin:"IconCardLine",IconPaymentRegular:"IconCardLine",IconPaymentFill:"IconCardFill",IconPercentThin:"IconPercentLine",IconPercentRegular:"IconPercentLine",IconPercentFill:"IconPercentFill",IconPhotoThin:"IconPictureLine",IconPhotoRegular:"IconPictureLine",IconPhotoFill:"IconPictureFill",IconPhotoEditThin:"IconWandLine",IconPhotoEditRegular:"IconWandLine",IconPhotoEditFill:"IconWandFill",IconPhotoEditCropThin:"IconCropmarkLine",IconPhotoEditCropRegular:"IconCropmarkLine",IconPhotoEditCropFill:"IconCropmarkFill",IconPhotoEditDrawThin:"IconScribbleLine",IconPhotoEditDrawRegular:"IconScribbleLine",IconPhotoEditDrawFill:"IconScribbleFill",IconPhotoEditRotateThin:"IconArrow2ClockwiseCircularLine",IconPhotoEditRotateRegular:"IconArrow2ClockwiseCircularLine",IconPhotoEditRotateFill:"IconArrow2ClockwiseCircularFill",IconPhotoSeveralThin:"IconPicture2StackedLine",IconPhotoSeveralRegular:"IconPicture2StackedLine",IconPhotoSeveralFill:"IconPicture2StackedFill",IconPlayThin:"IconTriangleRightLine",IconPlayRegular:"IconTriangleRightLine",IconPlayFill:"IconTriangleRightFill",IconPollThin:"IconBarchartSquareLine",IconPollRegular:"IconBarchartSquareLine",IconPollFill:"IconBarchartSquareFill",IconPriceWonThin:"IconWonLine",IconPriceWonRegular:"IconWonLine",IconPriceWonFill:"IconWonFill",IconProductThin:"IconShoppingbagLine",IconProductRegular:"IconShoppingbagLine",IconProductFill:"IconShoppingbagFill",IconProfileThin:"IconPersonLine",IconProfileRegular:"IconPersonLine",IconProfileFill:"IconPersonFill",IconProfileBadgeThin:"IconCheckmarkBadgeLine",IconProfileBadgeRegular:"IconCheckmarkBadgeLine",IconProfileBadgeFill:"IconCheckmarkBadgeFill",IconProhibitionThin:"IconSlashCircleLine",IconProhibitionRegular:"IconSlashCircleLine",IconProhibitionFill:"IconSlashCircleFill",IconPushpinThin:"IconPushpinLine",IconPushpinRegular:"IconPushpinLine",IconPushpinFill:"IconPushpinFill",IconQuestionCheckThin:"IconQuestionmarkSquareLine",IconQuestionCheckRegular:"IconQuestionmarkSquareLine",IconQuestionCheckFill:"IconQuestionmarkSquareFill",IconRedoThin:"IconArrowUturnRightLine",IconRedoRegular:"IconArrowUturnRightLine",IconRedoFill:"IconArrowUturnRightFill",IconRefundThin:"IconWonArrowClockwiseCircularLine",IconRefundRegular:"IconWonArrowClockwiseCircularLine",IconRefundFill:"IconWonArrowClockwiseCircularFill",IconRemoveCircleThin:"IconXmarkCircleLine",IconRemoveCircleRegular:"IconXmarkCircleLine",IconRemoveCircleFill:"IconXmarkCircleFill",IconReplyThin:"IconHorizline2VerticalChatbubbleRightLine",IconReplyRegular:"IconHorizline2VerticalChatbubbleRightLine",IconReplyFill:"IconHorizline2VerticalChatbubbleRightFill",IconReplyMissionThin:"IconHorizline2VerticalChatbubbleRightLine",IconReplyMissionRegular:"IconHorizline2VerticalChatbubbleRightLine",IconReplyMissionFill:"IconHorizline2VerticalChatbubbleRightFill",IconReplyReThin:"IconCornerDownLeftLine",IconReplyReRegular:"IconCornerDownLeftLine",IconReplyReFill:"IconCornerDownLeftFill",IconReportThin:"IconFlagLine",IconReportRegular:"IconFlagLine",IconReportFill:"IconFlagFill",IconReservationThin:"IconCheckmarkCalendarLine",IconReservationRegular:"IconCheckmarkCalendarLine",IconReservationFill:"IconCheckmarkCalendarFill",IconRestaurantThin:"IconForkSpoonLine",IconRestaurantRegular:"IconForkSpoonLine",IconRestaurantFill:"IconForkSpoonFill",IconRetryThin:"IconArrowClockwiseCircularLine",IconRetryRegular:"IconArrowClockwiseCircularLine",IconRetryFill:"IconArrowClockwiseCircularFill",IconReviewStarThin:"IconStarLine",IconReviewStarRegular:"IconStarLine",IconReviewStarFill:"IconStarFill",IconScannerThin:"IconHorizlineViewfinderLine",IconScannerRegular:"IconHorizlineViewfinderLine",IconScannerFill:"IconHorizlineViewfinderFill",IconSearchThin:"IconMagnifyingglassLine",IconSearchRegular:"IconMagnifyingglassLine",IconSearchFill:"IconMagnifyingglassFill",IconSearchDocThin:"IconDocumentMagnifyingglassLine",IconSearchDocRegular:"IconDocumentMagnifyingglassLine",IconSearchDocFill:"IconDocumentMagnifyingglassFill",IconSellThin:"IconPlusSquareLine",IconSellRegular:"IconPlusSquareLine",IconSellFill:"IconPlusSquareFill",IconSettingThin:"IconGearLine",IconSettingRegular:"IconGearLine",IconSettingFill:"IconGearFill",IconSignoutThin:"IconBracketLeftArrowRightLine",IconSignoutRegular:"IconBracketLeftArrowRightLine",IconSignoutFill:"IconBracketLeftArrowRightFill",IconSortThin:"IconArrowUpArrowDownLine",IconSortRegular:"IconArrowUpArrowDownLine",IconSortFill:"IconArrowUpArrowDownFill",IconStoryThin:"IconTriangleRightChatbubbleLeftLine",IconStoryRegular:"IconTriangleRightChatbubbleLeftLine",IconStoryFill:"IconTriangleRightChatbubbleLeftFill",IconStoryArticleThin:"IconDocumentPenLine",IconStoryArticleRegular:"IconDocumentPenLine",IconStoryArticleFill:"IconDocumentPenFill",IconSubtractCircleThin:"IconMinusCircleLine",IconSubtractCircleRegular:"IconMinusCircleLine",IconSubtractCircleFill:"IconMinusCircleFill",IconSubtractionThin:"IconMinusLine",IconSubtractionRegular:"IconMinusLine",IconSubtractionFill:"IconMinusFill",IconSuggestThin:null,IconSuggestRegular:null,IconSuggestFill:null,IconSunThin:"IconSunLine",IconSunRegular:"IconSunLine",IconSunFill:"IconSunFill",IconTalkingdownThin:"IconQuotationmark2RightLine",IconTalkingdownRegular:"IconQuotationmark2RightLine",IconTalkingdownFill:"IconQuotationmark2RightFill",IconTalkingupThin:"IconQuotationmark2LeftLine",IconTalkingupRegular:"IconQuotationmark2LeftLine",IconTalkingupFill:"IconQuotationmark2LeftFill",IconTextThin:"IconTUppercaseSerifLine",IconTextRegular:"IconTUppercaseSerifLine",IconTextFill:"IconTUppercaseSerifFill",IconThumbDownThin:"IconThumbDownLine",IconThumbDownRegular:"IconThumbDownLine",IconThumbDownFill:"IconThumbDownFill",IconThumbUpThin:"IconThumbUpLine",IconThumbUpRegular:"IconThumbUpLine",IconThumbUpFill:"IconThumbUpFill",IconToolboxThin:"IconToolboxLine",IconToolboxRegular:"IconToolboxLine",IconToolboxFill:"IconToolboxFill",IconTranslateThin:"IconTranslationLine",IconTranslateRegular:"IconTranslationLine",IconTranslateFill:"IconTranslationFill",IconTrashThin:"IconTrashcanLine",IconTrashRegular:"IconTrashcanLine",IconTrashFill:"IconTrashcanFill",IconUndoThin:"IconArrowUturnLeftLine",IconUndoRegular:"IconArrowUturnLeftLine",IconUndoFill:"IconArrowUturnLeftFill",IconUserGroupThin:"IconPerson2Line",IconUserGroupRegular:"IconPerson2Line",IconUserGroupFill:"IconPerson2Fill",IconVideoThin:"IconCamcorderLine",IconVideoRegular:"IconCamcorderLine",IconVideoFill:"IconCamcorderFill",IconViewCountThin:"IconEyeLine",IconViewCountRegular:"IconEyeLine",IconViewCountFill:"IconEyeFill",IconViewCountOffThin:"IconEyeSlashLine",IconViewCountOffRegular:"IconEyeSlashLine",IconViewCountOffFill:"IconEyeSlashFill",IconVolumeOffThin:"IconSpeakerSlashLine",IconVolumeOffRegular:"IconSpeakerSlashLine",IconVolumeOffFill:"IconSpeakerSlashFill",IconVolumeOnThin:"IconSpeakerWave2Line",IconVolumeOnRegular:"IconSpeakerWave2Line",IconVolumeOnFill:"IconSpeakerWave2Fill",IconVoteThin:"IconCheckmarkBallotboxLine",IconVoteRegular:"IconCheckmarkBallotboxLine",IconVoteFill:"IconCheckmarkBallotboxFill",IconVoucherThin:"IconGiftLine",IconVoucherRegular:"IconGiftLine",IconVoucherFill:"IconGiftFill",IconWalkThin:"IconFigureWalkLine",IconWalkRegular:"IconFigureWalkLine",IconWalkFill:"IconFigureWalkFill",IconWarningThin:"IconExclamationmarkCircleLine",IconWarningRegular:"IconExclamationmarkCircleLine",IconWarningFill:"IconExclamationmarkCircleFill",IconWriteThin:"IconPenHorizlineLine",IconWriteRegular:"IconPenHorizlineLine",IconWriteFill:"IconPenHorizlineFill",IconWriteFrequentUseThin:"IconDocumentPlusLine",IconWriteFrequentUseRegular:"IconDocumentPlusLine",IconWriteFrequentUseFill:"IconDocumentPlusFill",IconWriteStoryThin:null,IconWriteStoryRegular:null,IconWriteStoryFill:null};var D={source:[{startsWith:"@seed-design/icon",replaceWith:"@daangn/react-icon"},{startsWith:"@seed-design/react-icon",replaceWith:"@daangn/react-icon"}],identifier:f},A=(e,c,{match:l=D})=>{let o=process.env.LOG==="true"?H({level:"info",format:m.combine(m.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),m.printf(({level:a,message:u,timestamp:i})=>`${i} [${a.toUpperCase()}]: ${u}`)),transports:[new S.File({filename:"combined.log",level:"debug"}),new S.File({filename:"error.log",level:"error"})]}):void 0;o?.debug(`${e.path}: \uD655\uC778 \uC2DC\uC791`);let r=c.jscodeshift,n=r(e.source),t=()=>n.find(r.Program).get("body",0).node,d=t(),s=n.find(r.ImportDeclaration,{source:{value:a=>typeof a!="string"?!1:l.source.some(({startsWith:u})=>a.startsWith(u))}});if(s.length===0)return o?.debug(`${e.path}: \uC774 \uD30C\uC77C\uC5D0\uB294 import\uBB38 \uC5C6\uC74C`),e.source;o?.debug(`${e.path}: import\uBB38 ${s.length}\uAC1C \uBC1C\uACAC`),k({importDeclarations:s,match:l,logger:o,filePath:e.path}),o?.debug(`${e.path}: import\uBB38 \uBCC0\uD658 \uC644\uB8CC`),o?.debug(`${e.path}: identifier \uBCC0\uD658 \uC2DC\uC791`);let F=n.find(r.Identifier,{name:a=>Object.keys(l.identifier).includes(a)});o?.debug(`${e.path}: identifier ${F.length}\uAC1C \uBC1C\uACAC`),w({identifiers:F,identifierMatch:l.identifier,logger:o,filePath:e.path}),o?.debug(`${e.path}: identifier \uBCC0\uD658 \uC644\uB8CC`);let R=t();return d!==R&&(R.comments=d.comments),o?.debug(`${e.path}: \uD655\uC778 \uC644\uB8CC`),n.toSource()},O=A;export{O as default};
|
1
|
+
import N from"jscodeshift";function T({importDeclarations:o,match:a,logger:c,filePath:n}){o.replaceWith(r=>{let e=r.node.source.value,t=r.node.specifiers,F=r.node.importKind,s=r.node.comments,L=(()=>{if(typeof e!="string")return e;let{startsWith:i,replaceWith:l}=a.source.find(({startsWith:w})=>e.startsWith(w)),u=(l?e.replace(i,l):e).split("/");return u.map((w,d)=>d!==u.length-1||!(w in a.identifier)?w:a.identifier[w].newName).join("/")})();c?.debug(`${n}: source ${e} -> ${L}`);let I=t.map(i=>{switch(i.type){case"ImportSpecifier":{let l=i.imported.name;if(!(l in a.identifier)||a.identifier[l]===null)return c?.error(`${n}: imported specifier ${l}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),i;let{newName:m,isActionRequired:u}=a.identifier[l];if(m===l)return i;if(c?.debug(`${n}: imported name ${l} -> ${m}`),u){let d=`${n}: ${l}\uC744 ${m}\uB85C \uBCC0\uACBD\uD588\uC9C0\uB9CC, \uBCC0\uACBD\uB41C \uC544\uC774\uCF58\uC774 \uC801\uC808\uD55C\uC9C0 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694`;c?.warn(d)}let w=N.identifier(m);return N.importSpecifier(w,i.local)}case"ImportDefaultSpecifier":return i;case"ImportNamespaceSpecifier":return i}}).filter((i,l,m)=>{if(i.type!=="ImportSpecifier")return!0;let u=i.imported.name;return m.findIndex(C=>C.imported.name===u)===l}),h=N.importDeclaration(I,N.literal(L),F);return h.comments=s,h})}function k({identifiers:o,identifierMatch:a,logger:c,filePath:n}){o.replaceWith(r=>{let e=r.node.name;if(!(e in a))return N.identifier(e);if(a[e]===null)return c?.error(`${n}: identifier ${e}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),N.identifier(e);let{newName:t}=a[e];return c?.debug(`${n}: identifier ${e} -> ${t}`),N.identifier(t)})}import{createLogger as S,format as p,transports as R}from"winston";var f={IconAddThin:{newName:"IconPlusLine"},IconAddRegular:{newName:"IconPlusLine"},IconAddFill:{newName:"IconPlusFill"},IconAddCircleThin:{newName:"IconPlusCircleLine"},IconAddCircleRegular:{newName:"IconPlusCircleLine"},IconAddCircleFill:{newName:"IconPlusCircleFill"},IconAebThin:{newName:"IconCarFrontUpsideWave2ReversedUpLine"},IconAebRegular:{newName:"IconCarFrontUpsideWave2ReversedUpLine"},IconAebFill:{newName:"IconCarFrontUpsideWave2ReversedUpFill"},IconAiThin:{newName:"IconSparkle2Line"},IconAiRegular:{newName:"IconSparkle2Line"},IconAiFill:{newName:"IconSparkle2Fill"},IconAndroidShareThin:{newName:"IconAndroidshareLine"},IconAndroidShareRegular:{newName:"IconAndroidshareLine"},IconAndroidShareFill:{newName:"IconAndroidshareFill"},IconArrowThin:{newName:"IconArrowUpRightLine"},IconArrowRegular:{newName:"IconArrowUpRightLine"},IconArrowFill:{newName:"IconArrowUpRightFill"},IconArrowDownwardThin:{newName:"IconArrowDownLine"},IconArrowDownwardRegular:{newName:"IconArrowDownLine"},IconArrowDownwardFill:{newName:"IconArrowDownFill"},IconArrowDropDownThin:{newName:"IconTriangleDownSmallLine"},IconArrowDropDownRegular:{newName:"IconTriangleDownSmallLine"},IconArrowDropDownFill:{newName:"IconTriangleDownSmallFill"},IconArrowDropUpThin:{newName:"IconTriangleUpSmallLine"},IconArrowDropUpRegular:{newName:"IconTriangleUpSmallLine"},IconArrowDropUpFill:{newName:"IconTriangleUpSmallFill"},IconArrowUpwardThin:{newName:"IconArrowUpLine"},IconArrowUpwardRegular:{newName:"IconArrowUpLine"},IconArrowUpwardFill:{newName:"IconArrowUpFill"},IconArticleThin:{newName:"IconArticleLine"},IconArticleRegular:{newName:"IconArticleLine"},IconArticleFill:{newName:"IconArticleFill"},IconBackwardThin:{newName:"IconArrowLeftLine"},IconBackwardRegular:{newName:"IconArrowLeftLine"},IconBackwardFill:{newName:"IconArrowLeftFill"},IconBillThin:{newName:"IconReceiptLine"},IconBillRegular:{newName:"IconReceiptLine"},IconBillFill:{newName:"IconReceiptFill"},IconBoldThin:{newName:"IconTUppercaseSerifLine",isActionRequired:!0},IconBoldRegular:{newName:"IconTUppercaseSerifLine",isActionRequired:!0},IconBoldFill:{newName:"IconTUppercaseSerifFill",isActionRequired:!0},IconBookmarkThin:{newName:"IconBookmarkLine"},IconBookmarkRegular:{newName:"IconBookmarkLine"},IconBookmarkFill:{newName:"IconBookmarkFill"},IconBookmarkListThin:{newName:"IconHorizline3VerticalStarLine"},IconBookmarkListRegular:{newName:"IconHorizline3VerticalStarLine"},IconBookmarkListFill:{newName:"IconHorizline3VerticalStarFill"},IconCalendarThin:{newName:"IconCalendarLine"},IconCalendarRegular:{newName:"IconCalendarLine"},IconCalendarFill:{newName:"IconCalendarFill"},IconCallThin:{newName:"IconPhoneLine"},IconCallRegular:{newName:"IconPhoneLine"},IconCallFill:{newName:"IconPhoneFill"},IconCallDeclinedThin:{newName:"IconPhoneXmarkLine"},IconCallDeclinedRegular:{newName:"IconPhoneXmarkLine"},IconCallDeclinedFill:{newName:"IconPhoneXmarkFill"},IconCameraThin:{newName:"IconCameraLine"},IconCameraRegular:{newName:"IconCameraLine"},IconCameraFill:{newName:"IconCameraFill"},IconCarThin:{newName:"IconCarFrontsideLine"},IconCarRegular:{newName:"IconCarFrontsideLine"},IconCarFill:{newName:"IconCarFrontsideFill"},IconCarAroundViewThin:{newName:"IconArrowClockwiseOvalLine"},IconCarAroundViewRegular:{newName:"IconArrowClockwiseOvalLine"},IconCarAroundViewFill:{newName:"IconArrowClockwiseOvalFill"},IconCarBlindSpotThin:{newName:"IconCarRearUpsideWave2ReversedDownLeftLine"},IconCarBlindSpotRegular:{newName:"IconCarRearUpsideWave2ReversedDownLeftLine"},IconCarBlindSpotFill:{newName:"IconCarRearUpsideWave2ReversedDownLeftFill"},IconCarCruiseControlThin:{newName:"IconSpeedometerLine"},IconCarCruiseControlRegular:{newName:"IconSpeedometerLine"},IconCarCruiseControlFill:{newName:"IconSpeedometerFill"},IconCarEpbThin:{newName:"IconEpbLine"},IconCarEpbRegular:{newName:"IconEpbLine"},IconCarEpbFill:{newName:"IconEpbFill"},IconCarHeatedSeatThin:{newName:"IconSeatLeftHeatwave2Line"},IconCarHeatedSeatRegular:{newName:"IconSeatLeftHeatwave2Line"},IconCarHeatedSeatFill:{newName:"IconSeatLeftHeatwave2Fill"},IconCarHeatedSteeringWheelThin:{newName:"IconSteeringwheelHeatwave2Line"},IconCarHeatedSteeringWheelRegular:{newName:"IconSteeringwheelHeatwave2Line"},IconCarHeatedSteeringWheelFill:{newName:"IconSteeringwheelHeatwave2Fill"},IconCarLdwsThin:{newName:"IconRoadlaneLine"},IconCarLdwsRegular:{newName:"IconRoadlaneLine"},IconCarLdwsFill:{newName:"IconRoadlaneFill"},IconCarLeatherSeatThin:{newName:"IconSeatLeftLine"},IconCarLeatherSeatRegular:{newName:"IconSeatLeftLine"},IconCarLeatherSeatFill:{newName:"IconSeatLeftFill"},IconCarNavigationThin:{newName:"IconCompassLine"},IconCarNavigationRegular:{newName:"IconCompassLine"},IconCarNavigationFill:{newName:"IconCompassFill"},IconCarPowerTrunkThin:{newName:"IconCarRearTrunkOpenLeftsideLine"},IconCarPowerTrunkRegular:{newName:"IconCarRearTrunkOpenLeftsideLine"},IconCarPowerTrunkFill:{newName:"IconCarRearTrunkOpenLeftsideFill"},IconCarRearCameraThin:{newName:"IconCarRearUpsideSectorDownLine"},IconCarRearCameraRegular:{newName:"IconCarRearUpsideSectorDownLine"},IconCarRearCameraFill:{newName:"IconCarRearUpsideSectorDownFill"},IconCarRearSensorThin:{newName:"IconCarRearUpsideWave2ReversedDownLine"},IconCarRearSensorRegular:{newName:"IconCarRearUpsideWave2ReversedDownLine"},IconCarRearSensorFill:{newName:"IconCarRearUpsideWave2ReversedDownFill"},IconCarSmartKeyThin:{newName:"IconSmartkeyLine"},IconCarSmartKeyRegular:{newName:"IconSmartkeyLine"},IconCarSmartKeyFill:{newName:"IconSmartkeyFill"},IconCarVentilationSeatThin:{newName:"IconSeatLeftFanLine"},IconCarVentilationSeatRegular:{newName:"IconSeatLeftFanLine"},IconCarVentilationSeatFill:{newName:"IconSeatLeftFanFill"},IconCartThin:{newName:"IconCartLine"},IconCartRegular:{newName:"IconCartLine"},IconCartFill:{newName:"IconCartFill"},IconCertificationThin:{newName:"IconCrosshairLine"},IconCertificationRegular:{newName:"IconCrosshairLine"},IconCertificationFill:{newName:"IconCrosshairFill"},IconChallengeThin:{newName:"IconFlagHillLine"},IconChallengeRegular:{newName:"IconFlagHillLine"},IconChallengeFill:{newName:"IconFlagHillFill"},IconChartThin:{newName:"IconBarchartSquareLine"},IconChartRegular:{newName:"IconBarchartSquareLine"},IconChartFill:{newName:"IconBarchartSquareFill"},IconChatBubbleCheckThin:{newName:"IconCheckmarkChatbubbleLeftLine"},IconChatBubbleCheckRegular:{newName:"IconCheckmarkChatbubbleLeftLine"},IconChatBubbleCheckFill:{newName:"IconCheckmarkChatbubbleLeftFill"},IconChattingThin:{newName:"IconDot3HorizontalChatbubbleLeftLine"},IconChattingRegular:{newName:"IconDot3HorizontalChatbubbleLeftLine"},IconChattingFill:{newName:"IconDot3HorizontalChatbubbleLeftFill"},IconChattingSendThin:{newName:"IconPaperplaneLine"},IconChattingSendRegular:{newName:"IconPaperplaneLine"},IconChattingSendFill:{newName:"IconPaperplaneFill"},IconCheckThin:{newName:"IconCheckmarkLine"},IconCheckRegular:{newName:"IconCheckmarkLine"},IconCheckFill:{newName:"IconCheckmarkFill"},IconCheckFlowerThin:{newName:"IconCheckmarkFlowerLine"},IconCheckFlowerRegular:{newName:"IconCheckmarkFlowerLine"},IconCheckFlowerFill:{newName:"IconCheckmarkFlowerFill"},IconChevronLeftThin:{newName:"IconChevronLeftLine"},IconChevronLeftRegular:{newName:"IconChevronLeftLine"},IconChevronLeftFill:{newName:"IconChevronLeftFill"},IconChevronRightThin:{newName:"IconChevronRightLine"},IconChevronRightRegular:{newName:"IconChevronRightLine"},IconChevronRightFill:{newName:"IconChevronRightFill"},IconClickThin:{newName:"IconHandPointUpLine"},IconClickRegular:{newName:"IconHandPointUpLine"},IconClickFill:{newName:"IconHandPointUpFill"},IconClockThin:{newName:"IconClockLine"},IconClockRegular:{newName:"IconClockLine"},IconClockFill:{newName:"IconClockFill"},IconCloseThin:{newName:"IconXmarkLine"},IconCloseRegular:{newName:"IconXmarkLine"},IconCloseFill:{newName:"IconXmarkFill"},IconCobuyingThin:{newName:"IconShoppingbag2StackedLine",isActionRequired:!0},IconCobuyingRegular:{newName:"IconShoppingbag2StackedLine",isActionRequired:!0},IconCobuyingFill:{newName:"IconShoppingbag2StackedFill",isActionRequired:!0},IconCommunityThin:{newName:"IconPostLine"},IconCommunityRegular:{newName:"IconPostLine"},IconCommunityFill:{newName:"IconPostFill"},IconCondoThin:{newName:"IconBuilding2Line"},IconCondoRegular:{newName:"IconBuilding2Line"},IconCondoFill:{newName:"IconBuilding2Fill"},IconConfirmationThin:{newName:"IconCheckmarkShieldLine"},IconConfirmationRegular:{newName:"IconCheckmarkShieldLine"},IconConfirmationFill:{newName:"IconCheckmarkShieldFill"},IconConfirmationPayThin:{newName:"IconWonShieldLine"},IconConfirmationPayRegular:{newName:"IconWonShieldLine"},IconConfirmationPayFill:{newName:"IconWonShieldFill"},IconConfirmationProfileThin:{newName:"IconPersonShieldLine"},IconConfirmationProfileRegular:{newName:"IconPersonShieldLine"},IconConfirmationProfileFill:{newName:"IconPersonShieldFill"},IconContentsThin:{newName:"IconGridHeartLine"},IconContentsRegular:{newName:"IconGridHeartLine"},IconContentsFill:{newName:"IconGridHeartFill"},IconConvertThin:{newName:"IconArrowRightArrowLeftLine"},IconConvertRegular:{newName:"IconArrowRightArrowLeftLine"},IconConvertFill:{newName:"IconArrowRightArrowLeftFill"},IconCopyThin:{newName:"IconSquare2StackedLine"},IconCopyRegular:{newName:"IconSquare2StackedLine"},IconCopyFill:{newName:"IconSquare2StackedFill"},IconCouponThin:{newName:"IconCouponLine"},IconCouponRegular:{newName:"IconCouponLine"},IconCouponFill:{newName:"IconCouponFill"},IconCouponDownloadDoneThin:{newName:"IconCheckmarkHorizlineLine"},IconCouponDownloadDoneRegular:{newName:"IconCheckmarkHorizlineLine"},IconCouponDownloadDoneFill:{newName:"IconCheckmarkHorizlineFill"},IconCouponUsedThin:{newName:"IconCheckmarkCouponLine"},IconCouponUsedRegular:{newName:"IconCheckmarkCouponLine"},IconCouponUsedFill:{newName:"IconCheckmarkCouponFill"},IconDeleteKeyboardThin:{newName:"IconBackspacekeyLine"},IconDeleteKeyboardRegular:{newName:"IconBackspacekeyLine"},IconDeleteKeyboardFill:{newName:"IconBackspacekeyFill"},IconDeliveryThin:{newName:"IconTruckLine",isActionRequired:!0},IconDeliveryRegular:{newName:"IconTruckLine",isActionRequired:!0},IconDeliveryFill:{newName:"IconTruckFill",isActionRequired:!0},IconDirectionThin:{newName:"IconArrowRightAngledLine"},IconDirectionRegular:{newName:"IconArrowRightAngledLine"},IconDirectionFill:{newName:"IconArrowRightAngledFill"},IconDownloadThin:{newName:"IconArrowDownHorizlineLine"},IconDownloadRegular:{newName:"IconArrowDownHorizlineLine"},IconDownloadFill:{newName:"IconArrowDownHorizlineFill"},IconEditThin:{newName:"IconEraserHorizlineLine"},IconEditRegular:{newName:"IconEraserHorizlineLine"},IconEditFill:{newName:"IconEraserHorizlineFill"},IconEmoticonThin:{newName:"IconFaceSmileCircleLine"},IconEmoticonRegular:{newName:"IconFaceSmileCircleLine"},IconEmoticonFill:{newName:"IconFaceSmileCircleFill"},IconEmoticonBadThin:{newName:"IconFaceSadCircleLine"},IconEmoticonBadRegular:{newName:"IconFaceSadCircleLine"},IconEmoticonBadFill:{newName:"IconFaceSadCircleFill"},IconExpandThin:{newName:"IconArrowUpRightArrowDownLeftLine"},IconExpandRegular:{newName:"IconArrowUpRightArrowDownLeftLine"},IconExpandFill:{newName:"IconArrowUpRightArrowDownLeftFill"},IconExpandLessThin:{newName:"IconChevronUpLine"},IconExpandLessRegular:{newName:"IconChevronUpLine"},IconExpandLessFill:{newName:"IconChevronUpFill"},IconExpandMoreThin:{newName:"IconChevronDownLine"},IconExpandMoreRegular:{newName:"IconChevronDownLine"},IconExpandMoreFill:{newName:"IconChevronDownFill"},IconFileThin:{newName:"IconPaperclipLine"},IconFileRegular:{newName:"IconPaperclipLine"},IconFileFill:{newName:"IconPaperclipFill"},IconFilter02Thin:{newName:"IconSlider2HorizontalLine"},IconFilter02Regular:{newName:"IconSlider2HorizontalLine"},IconFilter02Fill:{newName:"IconSlider2HorizontalFill"},IconForwardThin:{newName:"IconArrowRightLine"},IconForwardRegular:{newName:"IconArrowRightLine"},IconForwardFill:{newName:"IconArrowRightFill"},IconGenderThin:{newName:"IconMalesymbolFemalesymbolLine"},IconGenderRegular:{newName:"IconMalesymbolFemalesymbolLine"},IconGenderFill:{newName:"IconMalesymbolFemalesymbolFill"},IconGlobalThin:{newName:"IconGlobeLine"},IconGlobalRegular:{newName:"IconGlobeLine"},IconGlobalFill:{newName:"IconGlobeFill"},IconGpsThin:{newName:"IconCrosshairLine"},IconGpsRegular:{newName:"IconCrosshairLine"},IconGpsFill:{newName:"IconCrosshairFill"},IconGpsEnableThin:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnableRegular:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnableFill:{newName:"IconCrosshairQuestionmarkFill"},IconGpsEnable2Thin:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnable2Regular:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnable2Fill:{newName:"IconCrosshairQuestionmarkFill"},IconGroupchatKingThin:{newName:"IconCrownLine"},IconGroupchatKingRegular:{newName:"IconCrownLine"},IconGroupchatKingFill:{newName:"IconCrownFill"},IconHandleThin:{newName:"IconHorizline3VerticalTightLine"},IconHandleRegular:{newName:"IconHorizline3VerticalTightLine"},IconHandleFill:{newName:"IconHorizline3VerticalTightFill"},IconHashtagThin:{newName:"IconHashLine"},IconHashtagRegular:{newName:"IconHashLine"},IconHashtagFill:{newName:"IconHashFill"},IconHeadphoneThin:{newName:"IconHeadsetLine"},IconHeadphoneRegular:{newName:"IconHeadsetLine"},IconHeadphoneFill:{newName:"IconHeadsetFill"},IconHeartThin:{newName:"IconHeartLine"},IconHeartRegular:{newName:"IconHeartLine"},IconHeartFill:{newName:"IconHeartFill"},IconHelpThin:{newName:"IconQuestionmarkCircleLine"},IconHelpRegular:{newName:"IconQuestionmarkCircleLine"},IconHelpFill:{newName:"IconQuestionmarkCircleFill"},IconHelpcenterThin:{newName:"IconHeadsetLine"},IconHelpcenterRegular:{newName:"IconHeadsetLine"},IconHelpcenterFill:{newName:"IconHeadsetFill"},IconHelperThin:{newName:"IconHeadsetLine"},IconHelperRegular:{newName:"IconHeadsetLine"},IconHelperFill:{newName:"IconHeadsetFill"},IconHomeThin:{newName:"IconHouseLine"},IconHomeRegular:{newName:"IconHouseLine"},IconHomeFill:{newName:"IconHouseFill"},IconHouseThin:{newName:"IconWindow4HouseLine"},IconHouseRegular:{newName:"IconWindow4HouseLine"},IconHouseFill:{newName:"IconWindow4HouseFill"},IconHousekeepingBookThin:{newName:"IconBookLine"},IconHousekeepingBookRegular:{newName:"IconBookLine"},IconHousekeepingBookFill:{newName:"IconBookFill"},IconImportThin:{newName:"IconDocumentArrowLeftLine"},IconImportRegular:{newName:"IconDocumentArrowLeftLine"},IconImportFill:{newName:"IconDocumentArrowLeftFill"},IconInfoThin:{newName:"IconILowercaseSerifCircleLine"},IconInfoRegular:{newName:"IconILowercaseSerifCircleLine"},IconInfoFill:{newName:"IconILowercaseSerifCircleFill"},IconInterestThin:{newName:"IconHorizline3VerticalStarLine"},IconInterestRegular:{newName:"IconHorizline3VerticalStarLine"},IconInterestFill:{newName:"IconHorizline3VerticalStarFill"},IconInterestListThin:{newName:"IconStarLine"},IconInterestListRegular:{newName:"IconStarLine"},IconInterestListFill:{newName:"IconStarFill"},IconInviteThin:{newName:"IconEnvelopeLine"},IconInviteRegular:{newName:"IconEnvelopeLine"},IconInviteFill:{newName:"IconEnvelopeFill"},IconInviteFriendThin:{newName:"IconPersonPlusLine"},IconInviteFriendRegular:{newName:"IconPersonPlusLine"},IconInviteFriendFill:{newName:"IconPersonPlusFill"},IconIosShareThin:{newName:"IconArrowUpBracketDownLine"},IconIosShareRegular:{newName:"IconArrowUpBracketDownLine"},IconIosShareFill:{newName:"IconArrowUpBracketDownFill"},IconJobsThin:{newName:"IconPersonMagnifyingglassLine"},IconJobsRegular:{newName:"IconPersonMagnifyingglassLine"},IconJobsFill:{newName:"IconPersonMagnifyingglassFill"},IconKeyboardHidingThin:{newName:"IconKeyboardChevronDownLine"},IconKeyboardHidingRegular:{newName:"IconKeyboardChevronDownLine"},IconKeyboardHidingFill:{newName:"IconKeyboardChevronDownFill"},IconKeywordThin:{newName:"IconTagLine"},IconKeywordRegular:{newName:"IconTagLine"},IconKeywordFill:{newName:"IconTagFill"},IconLaptopThin:{newName:"IconLaptopLine"},IconLaptopRegular:{newName:"IconLaptopLine"},IconLaptopFill:{newName:"IconLaptopFill"},IconLeafThin:{newName:"IconLeafLine"},IconLeafRegular:{newName:"IconLeafLine"},IconLeafFill:{newName:"IconLeafFill"},IconListThin:{newName:"IconDothorizline3VerticalLine"},IconListRegular:{newName:"IconDothorizline3VerticalLine"},IconListFill:{newName:"IconDothorizline3VerticalFill"},IconListCardThin:{newName:"IconHorizrectangleHorizline2VerticalLine"},IconListCardRegular:{newName:"IconHorizrectangleHorizline2VerticalLine"},IconListCardFill:{newName:"IconHorizrectangleHorizline2VerticalFill"},IconListCheckThin:{newName:"IconDocumentCheckmarkLine"},IconListCheckRegular:{newName:"IconDocumentCheckmarkLine"},IconListCheckFill:{newName:"IconDocumentCheckmarkFill"},IconListSelectThin:{newName:"IconHorizline3VerticalCheckmarkLine"},IconListSelectRegular:{newName:"IconHorizline3VerticalCheckmarkLine"},IconListSelectFill:{newName:"IconHorizline3VerticalCheckmarkFill"},IconListThumbnailThin:{newName:"IconSquareline2VerticalLine"},IconListThumbnailRegular:{newName:"IconSquareline2VerticalLine"},IconListThumbnailFill:{newName:"IconSquareline2VerticalFill"},IconLocationThin:{newName:"IconLocationpinLine"},IconLocationRegular:{newName:"IconLocationpinLine"},IconLocationFill:{newName:"IconLocationpinFill"},IconLockThin:{newName:"IconLockLine"},IconLockRegular:{newName:"IconLockLine"},IconLockFill:{newName:"IconLockFill"},IconLoudspeakerThin:{newName:"IconMegaphoneLine"},IconLoudspeakerRegular:{newName:"IconMegaphoneLine"},IconLoudspeakerFill:{newName:"IconMegaphoneFill"},IconMapThin:{newName:"IconMapLocationpinLine"},IconMapRegular:{newName:"IconMapLocationpinLine"},IconMapFill:{newName:"IconMapLocationpinFill"},IconMarketThin:{newName:"IconStoreLine"},IconMarketRegular:{newName:"IconStoreLine"},IconMarketFill:{newName:"IconStoreFill"},IconMarketCheckThin:{newName:"IconStoreCheckmarkLine"},IconMarketCheckRegular:{newName:"IconStoreCheckmarkLine"},IconMarketCheckFill:{newName:"IconStoreCheckmarkFill"},IconMarketWriteThin:{newName:"IconStorePenLine"},IconMarketWriteRegular:{newName:"IconStorePenLine"},IconMarketWriteFill:{newName:"IconStorePenFill"},IconMentionThin:{newName:"IconAtLine"},IconMentionRegular:{newName:"IconAtLine"},IconMentionFill:{newName:"IconAtFill"},IconMenuThin:{newName:"IconHorizline3VerticalLine"},IconMenuRegular:{newName:"IconHorizline3VerticalLine"},IconMenuFill:{newName:"IconHorizline3VerticalFill"},IconMicThin:{newName:"IconMicrophoneLine"},IconMicRegular:{newName:"IconMicrophoneLine"},IconMicFill:{newName:"IconMicrophoneFill"},IconMicOffThin:{newName:"IconMicrophoneSlashLine"},IconMicOffRegular:{newName:"IconMicrophoneSlashLine"},IconMicOffFill:{newName:"IconMicrophoneSlashFill"},IconMissionThin:{newName:"IconBookOpenLine"},IconMissionRegular:{newName:"IconBookOpenLine"},IconMissionFill:{newName:"IconBookOpenFill"},IconMobileThin:{newName:"IconMobileLine"},IconMobileRegular:{newName:"IconMobileLine"},IconMobileFill:{newName:"IconMobileFill"},IconMoneySendThin:{newName:"IconWonCircleArrowRightLine"},IconMoneySendRegular:{newName:"IconWonCircleArrowRightLine"},IconMoneySendFill:{newName:"IconWonCircleArrowRightFill"},IconMoneyWonThin:{newName:"IconWonCircleLine"},IconMoneyWonRegular:{newName:"IconWonCircleLine"},IconMoneyWonFill:{newName:"IconWonCircleFill"},IconMoonThin:{newName:"IconMoonLine"},IconMoonRegular:{newName:"IconMoonLine"},IconMoonFill:{newName:"IconMoonFill"},IconMoreHorizThin:{newName:"IconDot3HorizontalLine"},IconMoreHorizRegular:{newName:"IconDot3HorizontalLine"},IconMoreHorizFill:{newName:"IconDot3HorizontalFill"},IconMoreVertThin:{newName:"IconDot3VerticalLine"},IconMoreVertRegular:{newName:"IconDot3VerticalLine"},IconMoreVertFill:{newName:"IconDot3VerticalFill"},IconMyThin:{newName:"IconPersonLine"},IconMyRegular:{newName:"IconPersonLine"},IconMyFill:{newName:"IconPersonFill"},IconMyProfileThin:{newName:"IconPersonCircleLine"},IconMyProfileRegular:{newName:"IconPersonCircleLine"},IconMyProfileFill:{newName:"IconPersonCircleFill"},IconNearMeThin:{newName:"IconLocationpinLine"},IconNearMeRegular:{newName:"IconLocationpinLine"},IconNearMeFill:{newName:"IconLocationpinFill"},IconNewtopicThin:{newName:"IconNUppercaseCircleLine"},IconNewtopicRegular:{newName:"IconNUppercaseCircleLine"},IconNewtopicFill:{newName:"IconNUppercaseCircleFill"},IconNoteThin:{newName:"IconDocumentLine"},IconNoteRegular:{newName:"IconDocumentLine"},IconNoteFill:{newName:"IconDocumentFill"},IconNotificationThin:{newName:"IconBellLine"},IconNotificationRegular:{newName:"IconBellLine"},IconNotificationFill:{newName:"IconBellFill"},IconNotificationFallThin:{newName:"IconArrowDownLine"},IconNotificationFallRegular:{newName:"IconArrowDownLine"},IconNotificationFallFill:{newName:"IconArrowDownFill"},IconNotificationOffThin:{newName:"IconBellSlashLine"},IconNotificationOffRegular:{newName:"IconBellSlashLine"},IconNotificationOffFill:{newName:"IconBellSlashFill"},IconOrderThin:{newName:"IconCheckmarkClipboardLine"},IconOrderRegular:{newName:"IconCheckmarkClipboardLine"},IconOrderFill:{newName:"IconCheckmarkClipboardFill"},IconPauseThin:{newName:"IconVertrectangle2HorizontalLine"},IconPauseRegular:{newName:"IconVertrectangle2HorizontalLine"},IconPauseFill:{newName:"IconVertrectangle2HorizontalFill"},IconPaymentThin:{newName:"IconCardLine"},IconPaymentRegular:{newName:"IconCardLine"},IconPaymentFill:{newName:"IconCardFill"},IconPercentThin:{newName:"IconPercentLine"},IconPercentRegular:{newName:"IconPercentLine"},IconPercentFill:{newName:"IconPercentFill"},IconPhotoThin:{newName:"IconPictureLine"},IconPhotoRegular:{newName:"IconPictureLine"},IconPhotoFill:{newName:"IconPictureFill"},IconPhotoEditThin:{newName:"IconWandLine"},IconPhotoEditRegular:{newName:"IconWandLine"},IconPhotoEditFill:{newName:"IconWandFill"},IconPhotoEditCropThin:{newName:"IconCropmarkLine"},IconPhotoEditCropRegular:{newName:"IconCropmarkLine"},IconPhotoEditCropFill:{newName:"IconCropmarkFill"},IconPhotoEditDrawThin:{newName:"IconScribbleLine"},IconPhotoEditDrawRegular:{newName:"IconScribbleLine"},IconPhotoEditDrawFill:{newName:"IconScribbleFill"},IconPhotoEditRotateThin:{newName:"IconArrow2ClockwiseCircularLine"},IconPhotoEditRotateRegular:{newName:"IconArrow2ClockwiseCircularLine"},IconPhotoEditRotateFill:{newName:"IconArrow2ClockwiseCircularFill"},IconPhotoSeveralThin:{newName:"IconPicture2StackedLine"},IconPhotoSeveralRegular:{newName:"IconPicture2StackedLine"},IconPhotoSeveralFill:{newName:"IconPicture2StackedFill"},IconPlayThin:{newName:"IconTriangleRightLine"},IconPlayRegular:{newName:"IconTriangleRightLine"},IconPlayFill:{newName:"IconTriangleRightFill"},IconPollThin:{newName:"IconBarchartSquareLine"},IconPollRegular:{newName:"IconBarchartSquareLine"},IconPollFill:{newName:"IconBarchartSquareFill"},IconPriceWonThin:{newName:"IconWonLine"},IconPriceWonRegular:{newName:"IconWonLine"},IconPriceWonFill:{newName:"IconWonFill"},IconProductThin:{newName:"IconShoppingbagLine"},IconProductRegular:{newName:"IconShoppingbagLine"},IconProductFill:{newName:"IconShoppingbagFill"},IconProfileThin:{newName:"IconPersonLine"},IconProfileRegular:{newName:"IconPersonLine"},IconProfileFill:{newName:"IconPersonFill"},IconProfileBadgeThin:{newName:"IconCheckmarkBadgeLine"},IconProfileBadgeRegular:{newName:"IconCheckmarkBadgeLine"},IconProfileBadgeFill:{newName:"IconCheckmarkBadgeFill"},IconProhibitionThin:{newName:"IconSlashCircleLine"},IconProhibitionRegular:{newName:"IconSlashCircleLine"},IconProhibitionFill:{newName:"IconSlashCircleFill"},IconPushpinThin:{newName:"IconPushpinLine"},IconPushpinRegular:{newName:"IconPushpinLine"},IconPushpinFill:{newName:"IconPushpinFill"},IconQuestionCheckThin:{newName:"IconQuestionmarkSquareLine"},IconQuestionCheckRegular:{newName:"IconQuestionmarkSquareLine"},IconQuestionCheckFill:{newName:"IconQuestionmarkSquareFill"},IconRedoThin:{newName:"IconArrowUturnRightLine"},IconRedoRegular:{newName:"IconArrowUturnRightLine"},IconRedoFill:{newName:"IconArrowUturnRightFill"},IconRefundThin:{newName:"IconWonArrowClockwiseCircularLine"},IconRefundRegular:{newName:"IconWonArrowClockwiseCircularLine"},IconRefundFill:{newName:"IconWonArrowClockwiseCircularFill"},IconRemoveCircleThin:{newName:"IconXmarkCircleLine"},IconRemoveCircleRegular:{newName:"IconXmarkCircleLine"},IconRemoveCircleFill:{newName:"IconXmarkCircleFill"},IconReplyThin:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyRegular:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyFill:{newName:"IconHorizline2VerticalChatbubbleRightFill"},IconReplyMissionThin:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyMissionRegular:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyMissionFill:{newName:"IconHorizline2VerticalChatbubbleRightFill"},IconReplyReThin:{newName:"IconCornerDownLeftLine"},IconReplyReRegular:{newName:"IconCornerDownLeftLine"},IconReplyReFill:{newName:"IconCornerDownLeftFill"},IconReportThin:{newName:"IconFlagLine"},IconReportRegular:{newName:"IconFlagLine"},IconReportFill:{newName:"IconFlagFill"},IconReservationThin:{newName:"IconCheckmarkCalendarLine"},IconReservationRegular:{newName:"IconCheckmarkCalendarLine"},IconReservationFill:{newName:"IconCheckmarkCalendarFill"},IconRestaurantThin:{newName:"IconForkSpoonLine"},IconRestaurantRegular:{newName:"IconForkSpoonLine"},IconRestaurantFill:{newName:"IconForkSpoonFill"},IconRetryThin:{newName:"IconArrowClockwiseCircularLine"},IconRetryRegular:{newName:"IconArrowClockwiseCircularLine"},IconRetryFill:{newName:"IconArrowClockwiseCircularFill"},IconReviewStarThin:{newName:"IconStarLine"},IconReviewStarRegular:{newName:"IconStarLine"},IconReviewStarFill:{newName:"IconStarFill"},IconScannerThin:{newName:"IconHorizlineViewfinderLine"},IconScannerRegular:{newName:"IconHorizlineViewfinderLine"},IconScannerFill:{newName:"IconHorizlineViewfinderFill"},IconSearchThin:{newName:"IconMagnifyingglassLine"},IconSearchRegular:{newName:"IconMagnifyingglassLine"},IconSearchFill:{newName:"IconMagnifyingglassFill"},IconSearchDocThin:{newName:"IconDocumentMagnifyingglassLine"},IconSearchDocRegular:{newName:"IconDocumentMagnifyingglassLine"},IconSearchDocFill:{newName:"IconDocumentMagnifyingglassFill"},IconSellThin:{newName:"IconPlusSquareLine"},IconSellRegular:{newName:"IconPlusSquareLine"},IconSellFill:{newName:"IconPlusSquareFill"},IconSettingThin:{newName:"IconGearLine"},IconSettingRegular:{newName:"IconGearLine"},IconSettingFill:{newName:"IconGearFill"},IconSignoutThin:{newName:"IconBracketLeftArrowRightLine"},IconSignoutRegular:{newName:"IconBracketLeftArrowRightLine"},IconSignoutFill:{newName:"IconBracketLeftArrowRightFill"},IconSortThin:{newName:"IconArrowUpArrowDownLine"},IconSortRegular:{newName:"IconArrowUpArrowDownLine"},IconSortFill:{newName:"IconArrowUpArrowDownFill"},IconStoryThin:{newName:"IconTriangleRightChatbubbleLeftLine"},IconStoryRegular:{newName:"IconTriangleRightChatbubbleLeftLine"},IconStoryFill:{newName:"IconTriangleRightChatbubbleLeftFill"},IconStoryArticleThin:{newName:"IconDocumentPenLine"},IconStoryArticleRegular:{newName:"IconDocumentPenLine"},IconStoryArticleFill:{newName:"IconDocumentPenFill"},IconSubtractCircleThin:{newName:"IconMinusCircleLine"},IconSubtractCircleRegular:{newName:"IconMinusCircleLine"},IconSubtractCircleFill:{newName:"IconMinusCircleFill"},IconSubtractionThin:{newName:"IconMinusLine"},IconSubtractionRegular:{newName:"IconMinusLine"},IconSubtractionFill:{newName:"IconMinusFill"},IconSuggestThin:{newName:"IconLightbulbDot5Line",isActionRequired:!0},IconSuggestRegular:{newName:"IconLightbulbDot5Line",isActionRequired:!0},IconSuggestFill:{newName:"IconLightbulbDot5Fill",isActionRequired:!0},IconSunThin:{newName:"IconSunLine"},IconSunRegular:{newName:"IconSunLine"},IconSunFill:{newName:"IconSunFill"},IconTalkingdownThin:{newName:"IconQuotationmark2RightLine"},IconTalkingdownRegular:{newName:"IconQuotationmark2RightLine"},IconTalkingdownFill:{newName:"IconQuotationmark2RightFill"},IconTalkingupThin:{newName:"IconQuotationmark2LeftLine"},IconTalkingupRegular:{newName:"IconQuotationmark2LeftLine"},IconTalkingupFill:{newName:"IconQuotationmark2LeftFill"},IconTextThin:{newName:"IconTUppercaseSerifLine"},IconTextRegular:{newName:"IconTUppercaseSerifLine"},IconTextFill:{newName:"IconTUppercaseSerifFill"},IconThumbDownThin:{newName:"IconThumbDownLine"},IconThumbDownRegular:{newName:"IconThumbDownLine"},IconThumbDownFill:{newName:"IconThumbDownFill"},IconThumbUpThin:{newName:"IconThumbUpLine"},IconThumbUpRegular:{newName:"IconThumbUpLine"},IconThumbUpFill:{newName:"IconThumbUpFill"},IconToolboxThin:{newName:"IconToolboxLine"},IconToolboxRegular:{newName:"IconToolboxLine"},IconToolboxFill:{newName:"IconToolboxFill"},IconTranslateThin:{newName:"IconTranslationLine"},IconTranslateRegular:{newName:"IconTranslationLine"},IconTranslateFill:{newName:"IconTranslationFill"},IconTrashThin:{newName:"IconTrashcanLine"},IconTrashRegular:{newName:"IconTrashcanLine"},IconTrashFill:{newName:"IconTrashcanFill"},IconUndoThin:{newName:"IconArrowUturnLeftLine"},IconUndoRegular:{newName:"IconArrowUturnLeftLine"},IconUndoFill:{newName:"IconArrowUturnLeftFill"},IconUserGroupThin:{newName:"IconPerson2Line"},IconUserGroupRegular:{newName:"IconPerson2Line"},IconUserGroupFill:{newName:"IconPerson2Fill"},IconVideoThin:{newName:"IconCamcorderLine"},IconVideoRegular:{newName:"IconCamcorderLine"},IconVideoFill:{newName:"IconCamcorderFill"},IconViewCountThin:{newName:"IconEyeLine"},IconViewCountRegular:{newName:"IconEyeLine"},IconViewCountFill:{newName:"IconEyeFill"},IconViewCountOffThin:{newName:"IconEyeSlashLine"},IconViewCountOffRegular:{newName:"IconEyeSlashLine"},IconViewCountOffFill:{newName:"IconEyeSlashFill"},IconVolumeOffThin:{newName:"IconSpeakerSlashLine"},IconVolumeOffRegular:{newName:"IconSpeakerSlashLine"},IconVolumeOffFill:{newName:"IconSpeakerSlashFill"},IconVolumeOnThin:{newName:"IconSpeakerWave2Line"},IconVolumeOnRegular:{newName:"IconSpeakerWave2Line"},IconVolumeOnFill:{newName:"IconSpeakerWave2Fill"},IconVoteThin:{newName:"IconCheckmarkBallotboxLine"},IconVoteRegular:{newName:"IconCheckmarkBallotboxLine"},IconVoteFill:{newName:"IconCheckmarkBallotboxFill"},IconVoucherThin:{newName:"IconGiftLine"},IconVoucherRegular:{newName:"IconGiftLine"},IconVoucherFill:{newName:"IconGiftFill"},IconWalkThin:{newName:"IconFigureWalkLine"},IconWalkRegular:{newName:"IconFigureWalkLine"},IconWalkFill:{newName:"IconFigureWalkFill"},IconWarningThin:{newName:"IconExclamationmarkCircleLine"},IconWarningRegular:{newName:"IconExclamationmarkCircleLine"},IconWarningFill:{newName:"IconExclamationmarkCircleFill"},IconWriteThin:{newName:"IconPenHorizlineLine"},IconWriteRegular:{newName:"IconPenHorizlineLine"},IconWriteFill:{newName:"IconPenHorizlineFill"},IconWriteFrequentUseThin:{newName:"IconDocumentPlusLine"},IconWriteFrequentUseRegular:{newName:"IconDocumentPlusLine"},IconWriteFrequentUseFill:{newName:"IconDocumentPlusFill"},IconWriteStoryThin:{newName:"IconHorizline2VerticalChatbubbleRightLine",isActionRequired:!0},IconWriteStoryRegular:{newName:"IconHorizline2VerticalChatbubbleRightLine",isActionRequired:!0},IconWriteStoryFill:{newName:"IconHorizline2VerticalChatbubbleRightFill",isActionRequired:!0}};var b={source:[{startsWith:"@seed-design/icon",replaceWith:"@daangn/react-icon"},{startsWith:"@seed-design/react-icon",replaceWith:"@daangn/react-icon"}],identifier:f},P=(o,a,{match:c=b})=>{let n=process.env.LOG==="true"?S({level:"info",format:p.combine(p.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),p.printf(({level:I,message:h,timestamp:i})=>`${i} [${I.toUpperCase()}]: ${h}`)),transports:[new R.Console({level:"warn"}),new R.File({filename:"migrate-icons-combined.log",level:"debug"}),new R.File({filename:"migrate-icons-warnings.log",level:"warn"})]}):void 0;n?.debug(`${o.path}: \uD655\uC778 \uC2DC\uC791`);let r=a.jscodeshift,e=r(o.source),t=()=>e.find(r.Program).get("body",0).node,F=t(),s=e.find(r.ImportDeclaration,{source:{value:I=>typeof I!="string"?!1:c.source.some(({startsWith:h})=>I.startsWith(h))}});if(s.length===0)return n?.debug(`${o.path}: \uC774 \uD30C\uC77C\uC5D0\uB294 import\uBB38 \uC5C6\uC74C`),o.source;n?.debug(`${o.path}: import\uBB38 ${s.length}\uAC1C \uBC1C\uACAC`),T({importDeclarations:s,match:c,logger:n,filePath:o.path}),n?.debug(`${o.path}: import\uBB38 \uBCC0\uD658 \uC644\uB8CC`),n?.debug(`${o.path}: identifier \uBCC0\uD658 \uC2DC\uC791`);let L=e.find(r.Identifier,{name:I=>Object.keys(c.identifier).includes(I)});n?.debug(`${o.path}: identifier ${L.length}\uAC1C \uBC1C\uACAC`),k({identifiers:L,identifierMatch:c.identifier,logger:n,filePath:o.path}),n?.debug(`${o.path}: identifier \uBCC0\uD658 \uC644\uB8CC`);let g=t();return F!==g&&(g.comments=F.comments),n?.debug(`${o.path}: \uD655\uC778 \uC644\uB8CC`),e.toSource()},U=P;export{U as default};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@seed-design/codemod",
|
3
|
-
"version": "0.0.0-alpha-
|
3
|
+
"version": "0.0.0-alpha-20241022063510",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"prepack": "yarn build",
|
17
17
|
"dev": "node ./dev.mjs",
|
18
18
|
"build": "node ./build.mjs",
|
19
|
-
"test": "yarn vitest"
|
19
|
+
"test": "LOG=true yarn vitest"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
22
|
"cac": "^6.7.14",
|