This commit is contained in:
Mirco Wittrien 2022-10-01 15:07:31 +02:00
parent 38911ba3be
commit 9e50152774
4 changed files with 25 additions and 15 deletions

View File

@ -42,6 +42,7 @@
"AnalyticsSections": ["CHANNEL_LIST", "ACCOUNT_PANEL", "MEMBER_LIST"],
"AutocompleterQuerySymbols": ["VOICE_CHANNEL", "TEXT_CHANNEL", "USER", "APPLICATION"],
"AutocompleterResultTypes": ["VOICE_CHANNEL", "TEXT_CHANNEL", "USER", "LINK"],
"ChannelTextAreaTypes": ["CREATE_FORUM_POST", "PROFILE_BIO_INPUT", "FORUM_CHANNEL_GUIDELINES"],
"ChannelTypes": ["GUILD_TEXT", "GUILD_STORE", "DM"],
"ChannelTypeGroups": ["GUILD_TEXTUAL", "GUILD_VOCAL", "ALL_DMS"],
"Colors": ["SPOTIFY", "STATUS_RED"],
@ -384,25 +385,34 @@
},
"LibraryComponents": {
"Anchor": {"strings": ["anchorUnderlineOnHover", "noreferrer noopener"]},
"Animations": {"props": ["Controller", "Spring"], "assign": true},
"Animations": {"props": ["Controller", "Spring"]},
"AppReferencePositionLayer": {"strings": ["\"onMount\"", "\"onUnmount\""], "funcStrings": ["createRef"]},
"Avatars": {"strings": ["\"statusColor\"", "ONLINE", "isMobile"], "exported": false, "value": "exports", "map": {
"AnimatedAvatar": ["compare"],
"Avatar": ["statusColor"],
"Sizes": ["SIZE_32"]
}},
"Badges": {"props": ["IconBadge", "NumberBadge"], "assign": true},
"ChannelTextAreaTypes": {"props": ["ChatInputTypes"], "value": "ChatInputTypes"},
"Checkmark": {"name": "Checkmark"},
"Connectors": {"props": ["Router", "Link"], "assign": true},
"DiscordTag": {"name": "DiscordTag"},
"Emoji": {"strings": ["emojiName", "shouldAnimate", "jumboable"], "value": "default"},
"EmojiButton": {"name": "EmojiButton"},
"EmojiPicker": {"name": "EmojiPicker"},
"Badges": {"strings": ["baseShapeRound", "textBadge"], "exported": false, "value": "exports", "map": {
"BadgeShapes": ["baseShapeRoundRight", "baseShapeRoundLeft"],
"IconBadge": [".iconBadge"],
"NumberBadge": [".numberBadge"],
"TextBadge": [".textBadge"]
}},
"Checkmark": {"strings": ["d:\"M8.99991 16.17L4.82991"]},
"Emoji": {"strings": ["emojiName", "shouldAnimate", "jumboable"], "funcStrings": ["autoplay"]},
"EmojiButton": {"strings": ["renderButtonContents", "PickerPerRow", "SELECT_EMOJI"]},
"EmojiPicker": {"strings": ["emojiSize", "inExpressionPicker", ",emojiPaddingHorizontal:"], "funcStrings": ["compare"]},
"Flex": {"props": ["Wrap", "Direction", "Child"]},
"FlowerStar": {"name": "FlowerStar"},
"FocusRingScope": {"props": ["FocusRingScope"], "value": "default"},
"FormComponents": {"props": ["FormSection", "FormText"], "assign": true},
"FlowerStar": {"strings": ["flowerStarContainer", "createElement"]},
"FocusRingScope": {"strings": ["containerRef", "themeOptions", "setContainer"], "exported": false, "value": "exports", "funcStrings": ["themeOptions"]},
"FormComponents": {"props": ["INPUT_PLACEHOLDER", "LABEL_SELECTED"], "exported": false, "value": "exports", "map": {
"FormDivider": [".divider"],
"FormItem": [".titleClassName", "required"],
"FormNotice": [".iconClassName", ".imageData"],
"FormSection": ["sectionTitle", "titleId"],
"FormText": [".type", ".DEFAULT"],
"FormTitle": [".tag", "variant:\"text"]
}},
"FriendsEmptyState": {"strings": ["FriendsEmptyState", "FriendsSections"], "value": "default"},
"GuildComponents": {
"children": {

View File

@ -335,7 +335,7 @@ module.exports = (_ => {
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {href: "https://regexr.com/", children: BDFDB.LanguageUtils.LanguageStrings.HELP + "?"})
]
].map(string => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormText, {
type: BDFDB.LibraryComponents.FormComponents.FormTextTypes.DESCRIPTION,
type: BDFDB.LibraryComponents.FormComponents.FormText.Types.DESCRIPTION,
children: string
}))
}));

View File

@ -255,7 +255,7 @@ module.exports = (_ => {
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {href: "https://regexr.com/", children: BDFDB.LanguageUtils.LanguageStrings.HELP + "?"})
],
].map(string => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormText, {
type: BDFDB.LibraryComponents.FormComponents.FormTextTypes.DESCRIPTION,
type: BDFDB.LibraryComponents.FormComponents.FormText.Types.DESCRIPTION,
children: string
}))
}));

View File

@ -248,7 +248,7 @@ module.exports = (_ => {
"$timestamp will be replaced with the Formatted Timestamp of the quoted Message",
"$unixTimestamp will be replaced with the Unix Timestamp of the quoted Message"
].map(string => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormText, {
type: BDFDB.LibraryComponents.FormComponents.FormTextTypes.DESCRIPTION,
type: BDFDB.LibraryComponents.FormComponents.FormText.Types.DESCRIPTION,
children: string
}))
}));