@seed-design/codemod 0.0.0-alpha-20241022061413 → 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.
@@ -1 +1 @@
|
|
1
|
-
import N from"jscodeshift";import b from"picocolors";var p=b.bold("@seed-design/codemod");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,g)=>g!==u.length-1||!(w in a.identifier)?w:a.identifier[w]).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 g=`${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`;console.warn(p,g),c?.warn(g)}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(d=>d.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`),console.error(p,`${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 P,format as R,transports as S}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 A={source:[{startsWith:"@seed-design/icon",replaceWith:"@daangn/react-icon"},{startsWith:"@seed-design/react-icon",replaceWith:"@daangn/react-icon"}],identifier:f},H=(o,a,{match:c=A})=>{let n=process.env.LOG==="true"?P({level:"info",format:R.combine(R.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),R.printf(({level:I,message:h,timestamp:i})=>`${i} [${I.toUpperCase()}]: ${h}`)),transports:[new S.File({filename:"migrate-icons-combined.log",level:"debug"}),new S.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 C=t();return F!==C&&(C.comments=F.comments),n?.debug(`${o.path}: \uD655\uC778 \uC644\uB8CC`),e.toSource()},E=H;export{E 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",
|