decoprofile 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2951,8 +2951,164 @@ function Profile({
2951
2951
  }, undefined, true, undefined, this);
2952
2952
  }
2953
2953
 
2954
- // data/avatardecoration.json
2955
- var avatardecoration_default = [
2954
+ // data/avatar.json
2955
+ var avatar_default = [
2956
+ {
2957
+ type: "avatardecoration",
2958
+ titles: "Hallelujah Mountains",
2959
+ filename: "a_4d7aa6ed76753d2bb4e27069c81ce37e.png",
2960
+ id: "1q6e48YnHxXOhotoj4CYIRf0XZJYJdilZ"
2961
+ },
2962
+ {
2963
+ type: "avatardecoration",
2964
+ titles: "Woodsprites",
2965
+ filename: "a_1e1bc5b7037c948c4b5be13cfe12181f.png",
2966
+ id: "18pq1Hikew_XZOjt7QSDj60lTTCwQBVC7"
2967
+ },
2968
+ {
2969
+ type: "avatardecoration",
2970
+ titles: "The Wind Traders",
2971
+ filename: "a_28d4b2924923f7ea07302cf4d0ea84d5.png",
2972
+ id: "1trn8oYQVRnM5RNDNVLVsdocoTs7_5mlT"
2973
+ },
2974
+ {
2975
+ type: "avatardecoration",
2976
+ titles: "Nightwraith",
2977
+ filename: "a_815a399f5a14bfd4c6717317e942ba92.png",
2978
+ id: "16WqiPcs21a_rxmVeuqd6oyZw6U_CnH3n"
2979
+ },
2980
+ {
2981
+ type: "avatardecoration",
2982
+ titles: "Playful Ilu",
2983
+ filename: "a_18281abe1b69fc4611aca0744536d45d.png",
2984
+ id: "19M57bXhJvWXSpz4nQezXaEVidv0yKFFl"
2985
+ },
2986
+ {
2987
+ type: "avatardecoration",
2988
+ titles: "Pandoran Seas",
2989
+ filename: "a_a42f5dfeae19f4a1d8a207f4c5e7e2b2.png",
2990
+ id: "1hEPBWJiXTCOgeGn21Xjw1issZL9vPbnC"
2991
+ },
2992
+ {
2993
+ type: "avatardecoration",
2994
+ titles: "Light Cycles",
2995
+ filename: "a_3a82888aabcc5da388c8dc2d4e210cea.png",
2996
+ id: "17hFky_-m23O1lqAWiLWmIkwGJvLKc_A6"
2997
+ },
2998
+ {
2999
+ type: "avatardecoration",
3000
+ titles: "Encom Grid",
3001
+ filename: "a_4830198b649c02789b9ae7fb05353341.png",
3002
+ id: "1X6YE4prXdVO721otnFixJq8MHWKf1np9"
3003
+ },
3004
+ {
3005
+ type: "avatardecoration",
3006
+ titles: "Super Recognizer",
3007
+ filename: "a_45b53c4e81a6e74b182be1bf6a213fd2.png",
3008
+ id: "1FSPF9wy0brwMQHYjr2Ifej84zp7TYoYV"
3009
+ },
3010
+ {
3011
+ type: "avatardecoration",
3012
+ titles: "Ares Disc",
3013
+ filename: "a_11364446ffc2bef14e6d7c5372fd9b1b.png",
3014
+ id: "1EiwCXpLHMVeLrfTL_n49-FbO9RGVb7v_"
3015
+ },
3016
+ {
3017
+ type: "avatardecoration",
3018
+ titles: "Legacy Disc",
3019
+ filename: "a_abacb85a483a20bcd7fd76f92a66ca24.png",
3020
+ id: "1rKFqz3g3nU-gT31uvO0p3srnDuFf6XXy"
3021
+ },
3022
+ {
3023
+ type: "avatardecoration",
3024
+ titles: "Hologram Disc",
3025
+ filename: "a_00f07afd6fbda1c50496755f38652895.png",
3026
+ id: "1ZD5OJQyCBVU4U4VhloKNZXUhlOQSSG_-"
3027
+ },
3028
+ {
3029
+ type: "avatardecoration",
3030
+ titles: "Light Cycle Wheel",
3031
+ filename: "a_bd95ac0c92b1245ac9f75f49fce917ba.png",
3032
+ id: "1dJawZvZRqJjkjRfzcoeRDvmzWUZ2pgDR"
3033
+ },
3034
+ {
3035
+ type: "avatardecoration",
3036
+ titles: "Hallucination",
3037
+ filename: "a_d58de6195082fd1e4f474bd6ff48e014.png",
3038
+ id: "1JlZBqPYyXcoN0RbRUmiuFzngnmgSyXOJ"
3039
+ },
3040
+ {
3041
+ type: "avatardecoration",
3042
+ titles: "Embrace the Madness",
3043
+ filename: "a_5978fcbbda8a6aa774341fb98f652488.png",
3044
+ id: "1UPZg8KuCGLsHvuXTFjfNGoEQZBS2brvV"
3045
+ },
3046
+ {
3047
+ type: "avatardecoration",
3048
+ titles: "Final Circle",
3049
+ filename: "a_0e5a42177a9c9e39120a5b44bc6ab22a.png",
3050
+ id: "1A8E0NPYD9LDkYW1DDKNRCaAqV3RR4UE4"
3051
+ },
3052
+ {
3053
+ type: "avatardecoration",
3054
+ titles: "COD Squad Up",
3055
+ filename: "a_c2d498ef3a019c9a3893dff3efd23642.png",
3056
+ id: "1NHsk1sKJw5Fx0joaL4kZxuNInB9g7VyR"
3057
+ },
3058
+ {
3059
+ type: "avatardecoration",
3060
+ titles: "Cymbal Monkey",
3061
+ filename: "a_b8b1dce0abad523085864eac10a4237e.png",
3062
+ id: "169465vEwKsf9n3o6Z-WleYS9Ok-cmNKh"
3063
+ },
3064
+ {
3065
+ type: "avatardecoration",
3066
+ titles: "Nova Surge",
3067
+ filename: "a_97323279c4af5e806009a936d68e3ca4.png",
3068
+ id: "1yv5oxaNhTW_QYfB13oAaAiYAGjWHfWTl"
3069
+ },
3070
+ {
3071
+ type: "avatardecoration",
3072
+ titles: "Twilight",
3073
+ filename: "a_87c854f0f4686d5bc3e115d6a9a1b50f.png",
3074
+ id: "1I1mmJmPcPh--_JGbKqZ1Xy2aX14v69dy"
3075
+ },
3076
+ {
3077
+ type: "avatardecoration",
3078
+ titles: "Solar Flare",
3079
+ filename: "a_72cd70f5b655466d9bc441db33ce6cc4.png",
3080
+ id: "11p_jMzIDH9jkIpOpbqol1wb9KLiIYRg2"
3081
+ },
3082
+ {
3083
+ type: "avatardecoration",
3084
+ titles: "Comets",
3085
+ filename: "a_bf4414327dc76e45d20dfc70724ed3fb.png",
3086
+ id: "1rsQgN1qG9QwZXWtudCK-lsiC5FRP3zEL"
3087
+ },
3088
+ {
3089
+ type: "avatardecoration",
3090
+ titles: "Planetary",
3091
+ filename: "a_254ecab407a1af7b4800c30ed238db7d.png",
3092
+ id: "1Sk2DmyPMYjPFSsp8UxkZ4-vbuaO7Qj89"
3093
+ },
3094
+ {
3095
+ type: "avatardecoration",
3096
+ titles: "Moon",
3097
+ filename: "a_f3385577a326dd21e4353f452a601bfa.png",
3098
+ id: "1y3uB0Amq0NYI_d-ifUQsGwg2rbkAp8NU"
3099
+ },
3100
+ {
3101
+ type: "avatardecoration",
3102
+ titles: "Infinite Swirl",
3103
+ filename: "a_2c9ed1dbb5e97d2f25fa1a75ed4e30cb.png",
3104
+ id: "1OFNLOj2mqJTtIHVvlIXa5zTMdNFyLyNr"
3105
+ },
3106
+ {
3107
+ type: "avatardecoration",
3108
+ titles: "Magic Mists",
3109
+ filename: "a_de69fc7d33800c6743ad95581923b558.png",
3110
+ id: "1pJJ6p_Le_tc_ldfyn11K4_cKEVMeUvq5"
3111
+ },
2956
3112
  {
2957
3113
  type: "avatardecoration",
2958
3114
  titles: "Just Hangin'",
@@ -5734,6 +5890,81 @@ var namespace_default = [
5734
5890
  id: 72,
5735
5891
  name: "twilight_dusk",
5736
5892
  videoId: "1XlVD_TT3mbvHy6SVSOeIxt0mLQAA6L8g"
5893
+ },
5894
+ {
5895
+ id: 73,
5896
+ name: "woodsprite",
5897
+ videoId: "139lJYd4HhKqpNxGPM9p_wmHLJOJ_Xx0M"
5898
+ },
5899
+ {
5900
+ id: 74,
5901
+ name: "pandoran_seas",
5902
+ videoId: "1OYchf-zfs-AEfc3J9k0kPBgzKIh-EMVT"
5903
+ },
5904
+ {
5905
+ id: 75,
5906
+ name: "pandoran_seas",
5907
+ videoId: "13wRPkylJalcJfEmXh0GvmHMA6S_ZyZZJ"
5908
+ },
5909
+ {
5910
+ id: 76,
5911
+ name: "encom_grid",
5912
+ videoId: "17vh3IQ59WOOk8lDziaIE6aFEGI-cOIVk"
5913
+ },
5914
+ {
5915
+ id: 77,
5916
+ name: "the_grid_fireworks",
5917
+ videoId: "1SGSHb5XrII1sS1cTviCvkSKyX9Re-nqE"
5918
+ },
5919
+ {
5920
+ id: 78,
5921
+ name: "light_wall",
5922
+ videoId: "1iTGWdZnQ1HBMh_8XGqBwiHS0IgKf-2Yf"
5923
+ },
5924
+ {
5925
+ id: 79,
5926
+ name: "light_wall",
5927
+ videoId: "1MDs_AtBHH7SstByWxhONhBK-4aZ7OOI-"
5928
+ },
5929
+ {
5930
+ id: 80,
5931
+ name: "fluttering_static",
5932
+ videoId: "1kDMDtqKj1QLk0kKDkKoB3zca6IyS3IOv"
5933
+ },
5934
+ {
5935
+ id: 81,
5936
+ name: "2035",
5937
+ videoId: "1voByJ3WMnGcQKlzJLbi5zPm6yTk00D2u"
5938
+ },
5939
+ {
5940
+ id: 82,
5941
+ name: "bye_bye",
5942
+ videoId: "1GwARBFWRR_rmqR4230muYCPXZWl8Uc9s"
5943
+ },
5944
+ {
5945
+ id: 83,
5946
+ name: "squad_wipe",
5947
+ videoId: "1EnEvnBQNRGpQTpNbBsBz4_xRH1c7lZnK"
5948
+ },
5949
+ {
5950
+ id: 84,
5951
+ name: "camo_master",
5952
+ videoId: "1InvWxW0wVHDYac3I21P3Qm76xbejvePt"
5953
+ },
5954
+ {
5955
+ id: 85,
5956
+ name: "cosmic_twilight_flow",
5957
+ videoId: "1GQ44mlh1FUHgUSdoFeoPY3XzpWqjAUCD"
5958
+ },
5959
+ {
5960
+ id: 86,
5961
+ name: "cosmic_twilight_flow",
5962
+ videoId: "1QhW_qcpH2SYwaXfNP5I_5pb_EMTMgXa1"
5963
+ },
5964
+ {
5965
+ id: 87,
5966
+ name: "infinite_swirl",
5967
+ videoId: "1HxwSNtrdviXF8vxswceEr82O540psv9Q"
5737
5968
  }
5738
5969
  ];
5739
5970
 
@@ -7620,9 +7851,9 @@ var profileeffect_default = [
7620
7851
 
7621
7852
  // main/DecoProfile.tsx
7622
7853
  var jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
7854
+ var normalize = (str) => str.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
7623
7855
  function AvatarDecoration({ name, size, className }) {
7624
- const decoration = avatardecoration_default.find((item) => item.titles.toLowerCase() === name.toLowerCase());
7625
- console.log(decoration);
7856
+ const decoration = avatar_default.find((item) => normalize(item.titles) === normalize(name));
7626
7857
  return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Avatar, {
7627
7858
  src: `/api/avatardecoration?id=${decoration?.id}`,
7628
7859
  decorationId: decoration?.id,
@@ -7633,8 +7864,7 @@ function AvatarDecoration({ name, size, className }) {
7633
7864
  }, undefined, false, undefined, this);
7634
7865
  }
7635
7866
  function ProfileDecoration({ name, className }) {
7636
- const decoration = profileeffect_default.find((item) => item.title.toLowerCase() === name.toLowerCase());
7637
- console.log(decoration);
7867
+ const decoration = profileeffect_default.find((item) => normalize(item.title) === normalize(name));
7638
7868
  return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Profile, {
7639
7869
  bgEffectId: decoration?.id,
7640
7870
  avatar: decoration?.filename,
@@ -7642,8 +7872,7 @@ function ProfileDecoration({ name, className }) {
7642
7872
  }, undefined, false, undefined, this);
7643
7873
  }
7644
7874
  function NamespaceDecoration({ name, className }) {
7645
- const decoration = namespace_default.find((item) => item.name.toLowerCase() === name.toLowerCase());
7646
- console.log(decoration);
7875
+ const decoration = namespace_default.find((item) => normalize(item.name) === normalize(name));
7647
7876
  return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(NameSpace, {
7648
7877
  videoId: decoration?.videoId,
7649
7878
  className
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Available avatar decoration names
3
+ * Use with: <AvatarDecoration name="..." />
4
+ */
5
+ export type AvatarDecorationName = "ADuck" | "AHintOfClove" | "ARealFungi" | "AimForLove" | "Air" | "Akuma" | "AllMight" | "Angel" | "Angry" | "ArcaneSigil" | "AresDisc" | "AstralAura" | "AstronautHelmet" | "Aurora" | "AutumnCrown" | "AutumnFoliage" | "AutumnsArbor" | "BakerBear" | "Balance" | "BanditMask" | "BeachHat" | "BerryBunny" | "BlackHole" | "BlackMana" | "Bloodthirsty" | "BlueMana" | "Bonsai" | "Boo" | "BowlerHat" | "BrassBeats" | "BreadDoggy" | "Bubble" | "BubbleTea" | "Buffering" | "BunnyZzzs" | "Butterflies" | "CameramanGlitch" | "Cammy" | "Candlelight" | "CannonFire" | "CatEarHeadset" | "CatEars" | "CatOnesie" | "ChickenNugget" | "Chromawave" | "Chrysanthemums" | "Chunli" | "CityWalls" | "ClydeInvaders" | "CodSquadUp" | "Comets" | "Constellations" | "Copium" | "CottageHome" | "CozyCat" | "CozyDeer" | "CozyHeadphones" | "CozyPostit" | "Crossbones" | "CrystalBall" | "CrystalElk" | "CuriousBb8" | "CyberKatana" | "Cybernetic" | "CymbalMonkey" | "CypherNeuralTheft" | "DandelionDuo" | "DarkHood" | "DeathsEdge" | "DefensiveShield" | "Devil" | "Dewdrop" | "DigitalSunrise" | "Dismay" | "DisxcoreHeadset" | "DonutBear" | "DonutCat" | "DonutCow" | "Doodling" | "DragonBalls" | "DragonsSmile" | "DuskAndDawn" | "Earth" | "Egg" | "EldritchRing" | "Elpis" | "EmbraceTheMadness" | "EncomGrid" | "Endeavor" | "FacesOfTheMoon" | "FairySprites" | "FallLeaves" | "FanFlourish" | "FeelinAwe" | "FeelinNervous" | "FeelinPanic" | "FeelinScrumptious" | "FeelingCute" | "FinalCircle" | "FingerGun" | "Fire" | "Firecrackers" | "Fireflies" | "Fishbones" | "FlameChompers" | "FlamingSword" | "FloralHarmony" | "FluxAlchemy" | "ForestFrolic" | "FoxHat" | "FragOut" | "FreshPine" | "FuturisticUi" | "Ggez" | "GitGud" | "Glitch" | "Glorio" | "GlowingRunes" | "GoldLaurelWreath" | "GoldenHex" | "Gomah" | "GoneFishin" | "GoodOlPepper" | "GrassToucher" | "GreenMana" | "GreenhouseCat" | "GroupHug" | "Gtoilet" | "Guile" | "HallelujahMountains" | "Hallucination" | "Hammy" | "HappyHarvest" | "Hawks" | "HeadInTheClouds" | "Heartbloom" | "Heartstrings" | "Helmsman" | "HexLights" | "HexTiles" | "HologramDisc" | "HologramDragon" | "Honeyblossom" | "HoppyBoi" | "HotShot" | "HughTheRainbow" | "HumanTorch" | "IceCreamFrog" | "ImDancin" | "Implant" | "InLove" | "InTears" | "InfiniteSwirl" | "InvisibleWoman" | "IzukuMidoriya" | "JellyBear" | "Jingasa" | "Joystick" | "JuggernautAstro" | "Juri" | "JustHangin" | "Kabuto" | "KatsukiBakugo" | "Ken" | "KiEnergy" | "Kitsune" | "KoiPond" | "LavaBlobs" | "LegacyDisc" | "LightCycleWheel" | "LightCycles" | "Lightning" | "LightsCameraAction" | "Lightsabers" | "LiquidMoon" | "LofiGirlOutfit" | "LootLightshow" | "LotusFlower" | "LoverGirlAutumn" | "Lovestruck" | "LuckyEnvelopes" | "LuminescentLotus" | "LunaMoths" | "LunarFlowers" | "LunarLanterns" | "MBison" | "MagicMists" | "MagicPortal" | "MagicalGirl" | "MagicalPotion" | "MagicalWand" | "MaleficCrown" | "MallowJump" | "MechFlora" | "MermaidSerenade" | "MidnightSorceress" | "MillenniumFalconHyperdrive" | "MiniPiccolo" | "MiniSupremeKai" | "MiniVegeta" | "Mirage" | "MischievousKitties" | "MisterFantastic" | "MochiBunny" | "Moon" | "Mooncaps" | "MoonlitCharms" | "MrJackOLantern" | "Mushcaps" | "NeonCatHoodie" | "NeonDecoraHair" | "NeonNibbles" | "NeonSpikeChoker" | "NextTurnButton" | "Nibbles" | "Nightwraith" | "NomKitty" | "NovaSurge" | "Oasis" | "OchacoUraraka" | "OmensCowl" | "Oni" | "OniMask" | "PandoranSeas" | "Panzy" | "Phoenix" | "Pipedream" | "PirateCaptain" | "Planetary" | "PlayfulIlu" | "PlayfulLofiCat" | "PolarBearHat" | "PonderingPortal" | "PoweredByShimmer" | "PressF" | "Questionable" | "R2d2OnTatooine" | "RadiatingEnergy" | "Rage" | "RainyCanopy" | "RainyMood" | "RamenBowl" | "RawrXd" | "RedLantern" | "RedMana" | "RestInPeace" | "ReynasLeer" | "RingOfRoses" | "RoseBearer" | "RubyHearts" | "Rumbling" | "Ryu" | "SakuraCity" | "SakuraInk" | "SakuraScholar" | "SakuraWarrior" | "Scallywag" | "Shenron" | "Shocked" | "ShotoTodoroki" | "Shroomling" | "ShurikensMark" | "Shy" | "SippyJuice" | "SkibidiToilet" | "SkullMedallion" | "SkullyCharms" | "SleepyBee" | "SleepyChilledcow" | "SlitherNSnack" | "Smoke" | "SnakesHug" | "Snowdrops" | "Snowglobe" | "SolarFlare" | "SolarOrbit" | "SoulLeavingBody" | "SpaceBattle" | "Speakerwoman" | "SpiritBlossomKarma" | "SpiritBlossomMorgana" | "SpiritBlossomSprings" | "SpiritBlossomSpringsAhri" | "SpiritBlossomSpringsSett" | "SpiritBlossomZed" | "SpiritEmbers" | "SpookyCatEars" | "Sproutling" | "Stardust" | "StarlightTiara" | "StarlightWhales" | "StarryEyed" | "SteampunkCatEars" | "StrawHat" | "StrawberryVine" | "StringLights" | "StudySession" | "Sunflowers" | "SuperRecognizer" | "SushiRoll" | "SweatDrops" | "TerrainTiles" | "Terrarium" | "TheAnomaly" | "TheAtlasGauntlets" | "TheFantasticFour" | "TheHexcore" | "TheMark" | "TheMonsterYouCreated" | "ThePetalPack" | "TheThing" | "TheWindTraders" | "TimekeepersClock" | "ToiletLid" | "TomuraShigaraki" | "Trash" | "TreasureAndKey" | "TvWoman" | "Twilight" | "Ufo" | "Unicorn" | "UwuXp" | "ValorantChampions2024" | "ViperPoisonCloud" | "Water" | "WhiteMana" | "WitchHat" | "WizardHat" | "WizardsStaff" | "Woodsprites" | "Woolgathering" | "YodaOnDagobah" | "YoruDimensionalDrift" | "ZombieFood";
6
+ /**
7
+ * Available namespace decoration names
8
+ * Use with: <NamespaceDecoration name="..." />
9
+ */
10
+ export type NamespaceDecorationName = "2035" | "Angels" | "Aurora" | "Autumnbreeze" | "Berrybunny" | "Blackmana" | "Bloomling" | "Bluemana" | "Bonsai" | "Byebye" | "Camomaster" | "Catbeans" | "Cherryblossoms" | "Cityscape" | "Claptrap" | "Cosmicstorm" | "Cosmictwilightflow" | "Cozycat" | "D20roll" | "Dragonball" | "Encomgrid" | "Encoreorange" | "Encoreteal" | "Fairies" | "Fireflymeadow" | "Flutteringstatic" | "Glitch" | "Gomah" | "Greenmana" | "Hoppyboisperch" | "Imwatchingyoooooutreat" | "Imwatchingyoooooutrick" | "Infiniteswirl" | "Koipond" | "Lightwall" | "Lunamoth" | "Magicheartsblue" | "Magicheartsorange" | "Minigoku" | "Minivegeta" | "Moonessence" | "Moonlitcharm" | "Msspidertreat" | "Msspidertrick" | "Oasis" | "Owlbearcub" | "Pandoranseas" | "Petalbloom" | "Pileofbonestreat" | "Pileofbonestrick" | "Pixiedust" | "Planetrings" | "Reddragon" | "Redmana" | "Ripperawakens" | "Secretagent" | "Shatteredveil" | "Skibiditoilet" | "Spiritblossompetals" | "Spiritblossomsprings" | "Spiritmoon" | "Spiritofspring" | "Sproutling" | "Squadwipe" | "Starfalltides" | "Starfalltidesnightshade" | "Starfalltidesrose" | "Starfalltidesvoid" | "Starlightwhales" | "Sunandmoon" | "Swordoflegend" | "Thegridfireworks" | "Thesameduck" | "Touchgrass" | "Tvwoman" | "Twilight" | "Twilightdusk" | "Twilightfuchsia" | "Underthesea" | "Vault" | "Vengeance" | "Whitemana" | "Woodsprite" | "Yunarasaionerna";
11
+ /**
12
+ * Available profile effect names
13
+ * Use with: <ProfileDecoration name="..." />
14
+ */
15
+ export type ProfileDecorationName = "AkumasWrath" | "AllNighter" | "AngelicIntervention" | "AuroraDreams" | "BearlyAfloat" | "BonsaiEternity" | "BubbleTeaBliss" | "ButterflyHaven" | "ClockworkButterflies" | "CloseCombat" | "ClovesRuse" | "Cluster" | "CozyFlower" | "CriticalDamage" | "DarkOmens" | "DarthVaderArrives" | "DeepDive" | "DoinTheRobot" | "DragonsApproach" | "DreamyBlue" | "DreamyGreen" | "DreamyPink" | "DreamyYellow" | "EnchantedForest" | "EnteringHyperspace" | "EveryProfileIsAStage" | "FallFoliage" | "Feelin90s" | "FireflyMeadow" | "FishingVillage" | "FlutterAndFrolic" | "FullCowling" | "Galactus" | "GhoulishGraffiti" | "Grove" | "HauntedManOWar" | "HeartstringTheory" | "HeheSoRandomXp" | "HydroBlast" | "JinxAndPowpow" | "JoinTheAlliance" | "JollyRoger" | "KawaiiClouds" | "KawaiiMode" | "KeyboardCats" | "KiDetonateBlue" | "KiDetonateGreen" | "KiDetonateRed" | "KiDetonateYellow" | "KoiGarden" | "LazyLoaf" | "LeagueOfVillains" | "LilypadLife" | "LiquidMoonlight" | "LofiCatZoomies" | "LofiGirlStudyBreak" | "LootShower" | "LotsOfBubbles" | "MagicHeartsBlue" | "MagicalGirlEnergy" | "MapleMornings" | "MidnightCelebration" | "MiniGoku" | "MoonlitCrystals" | "MysticVines" | "NatureIsHealing" | "Nightrunner" | "NomKittyCrunch" | "OfInkAndSteel" | "OnisCurse" | "PaintTheTownBlue" | "PancakePals" | "PenguinsOnIce" | "PixieDust" | "PlushieParty" | "PortalBeyond" | "PowerSurgeFuchsia" | "PowerSurgeGreen" | "RawrXdSplash" | "RosesGalore" | "RubyPhotoCard" | "SakuraDreams" | "SakuraKatana" | "ShadowStrike" | "ShatterBlue" | "ShatterPurple" | "ShootingStars" | "ShurikenStrikeBlue" | "SilverSurfer" | "SpiritBlossomSprings" | "SpiritFlame" | "SpiritOfTheKitsune" | "SpringRain" | "StarfallRings" | "StarfallTides" | "StudySpot" | "SunAndMoon" | "Supernova" | "SushiManiaPink" | "SweetCopium" | "TheImmortalClove" | "TheSameDuck" | "TheTimekeeper" | "TurboDrive" | "Twilight" | "UplinkError" | "Vengeance" | "Vortex" | "Watercolors" | "Weeeee" | "WindChime" | "WishfulBeginnings" | "YunarasAionErna" | "ZenGarden" | "ZombieApocalypse" | "ZombieSlime";
@@ -1,3 +1,4 @@
1
+ import { AvatarDecorationName, NamespaceDecorationName, ProfileDecorationName } from "./decoration-names";
1
2
  export type AvatarProps = {
2
3
  src: string;
3
4
  decorationId?: string;
@@ -24,18 +25,30 @@ export type ProfileEffectProps = {
24
25
  width?: string | number;
25
26
  height?: number;
26
27
  };
28
+ /**
29
+ * Props for AvatarDecoration component
30
+ * @param name - The decoration name. TypeScript provides autocomplete suggestions.
31
+ */
27
32
  export interface AvatarDecorationProps {
28
- name: string;
33
+ name: AvatarDecorationName;
29
34
  size?: number;
30
35
  className?: string;
31
36
  }
37
+ /**
38
+ * Props for ProfileDecoration component
39
+ * @param name - The profile effect name. TypeScript provides autocomplete suggestions.
40
+ */
32
41
  export interface ProfileDecorationProps {
33
- name: string;
42
+ name: ProfileDecorationName;
34
43
  className?: string;
35
44
  }
45
+ /**
46
+ * Props for NamespaceDecoration component
47
+ * @param name - The namespace decoration name. TypeScript provides autocomplete suggestions.
48
+ */
36
49
  export interface NamespaceDecorationProps {
37
- name: string;
38
- titleColor: string;
39
- backgroundColor: string;
50
+ name: NamespaceDecorationName;
51
+ titleColor?: string;
52
+ backgroundColor?: string;
40
53
  className?: string;
41
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decoprofile",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "DecoProfile is a bun library for creating effects on avatar, profile and namespace.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,8 @@
9
9
  "dev": "bun run index.tsx",
10
10
  "build": "bun build ./index.tsx --outdir dist --target node",
11
11
  "types": "tsc --emitDeclarationOnly --outDir dist",
12
- "prepare": "bun run types && bun run build",
12
+ "generate-types": "node scripts/generate-types.cjs",
13
+ "prepare": "bun run generate-types && bun run types && bun run build",
13
14
  "prepublishOnly": "bun run prepare"
14
15
  },
15
16
  "keywords": [
@@ -0,0 +1,555 @@
1
+ // Auto-generated types for DecoProfile components
2
+ // Generated at: 2026-01-01T07:31:41.454Z
3
+ // Run 'npm run generate-types' to regenerate
4
+
5
+ /**
6
+ * Available avatar decoration names
7
+ * Use with: <AvatarDecoration name="..." />
8
+ */
9
+ export type AvatarDecorationName =
10
+ | "ADuck"
11
+ | "AHintOfClove"
12
+ | "ARealFungi"
13
+ | "AimForLove"
14
+ | "Air"
15
+ | "Akuma"
16
+ | "AllMight"
17
+ | "Angel"
18
+ | "Angry"
19
+ | "ArcaneSigil"
20
+ | "AresDisc"
21
+ | "AstralAura"
22
+ | "AstronautHelmet"
23
+ | "Aurora"
24
+ | "AutumnCrown"
25
+ | "AutumnFoliage"
26
+ | "AutumnsArbor"
27
+ | "BakerBear"
28
+ | "Balance"
29
+ | "BanditMask"
30
+ | "BeachHat"
31
+ | "BerryBunny"
32
+ | "BlackHole"
33
+ | "BlackMana"
34
+ | "Bloodthirsty"
35
+ | "BlueMana"
36
+ | "Bonsai"
37
+ | "Boo"
38
+ | "BowlerHat"
39
+ | "BrassBeats"
40
+ | "BreadDoggy"
41
+ | "Bubble"
42
+ | "BubbleTea"
43
+ | "Buffering"
44
+ | "BunnyZzzs"
45
+ | "Butterflies"
46
+ | "CameramanGlitch"
47
+ | "Cammy"
48
+ | "Candlelight"
49
+ | "CannonFire"
50
+ | "CatEarHeadset"
51
+ | "CatEars"
52
+ | "CatOnesie"
53
+ | "ChickenNugget"
54
+ | "Chromawave"
55
+ | "Chrysanthemums"
56
+ | "Chunli"
57
+ | "CityWalls"
58
+ | "ClydeInvaders"
59
+ | "CodSquadUp"
60
+ | "Comets"
61
+ | "Constellations"
62
+ | "Copium"
63
+ | "CottageHome"
64
+ | "CozyCat"
65
+ | "CozyDeer"
66
+ | "CozyHeadphones"
67
+ | "CozyPostit"
68
+ | "Crossbones"
69
+ | "CrystalBall"
70
+ | "CrystalElk"
71
+ | "CuriousBb8"
72
+ | "CyberKatana"
73
+ | "Cybernetic"
74
+ | "CymbalMonkey"
75
+ | "CypherNeuralTheft"
76
+ | "DandelionDuo"
77
+ | "DarkHood"
78
+ | "DeathsEdge"
79
+ | "DefensiveShield"
80
+ | "Devil"
81
+ | "Dewdrop"
82
+ | "DigitalSunrise"
83
+ | "Dismay"
84
+ | "DisxcoreHeadset"
85
+ | "DonutBear"
86
+ | "DonutCat"
87
+ | "DonutCow"
88
+ | "Doodling"
89
+ | "DragonBalls"
90
+ | "DragonsSmile"
91
+ | "DuskAndDawn"
92
+ | "Earth"
93
+ | "Egg"
94
+ | "EldritchRing"
95
+ | "Elpis"
96
+ | "EmbraceTheMadness"
97
+ | "EncomGrid"
98
+ | "Endeavor"
99
+ | "FacesOfTheMoon"
100
+ | "FairySprites"
101
+ | "FallLeaves"
102
+ | "FanFlourish"
103
+ | "FeelinAwe"
104
+ | "FeelinNervous"
105
+ | "FeelinPanic"
106
+ | "FeelinScrumptious"
107
+ | "FeelingCute"
108
+ | "FinalCircle"
109
+ | "FingerGun"
110
+ | "Fire"
111
+ | "Firecrackers"
112
+ | "Fireflies"
113
+ | "Fishbones"
114
+ | "FlameChompers"
115
+ | "FlamingSword"
116
+ | "FloralHarmony"
117
+ | "FluxAlchemy"
118
+ | "ForestFrolic"
119
+ | "FoxHat"
120
+ | "FragOut"
121
+ | "FreshPine"
122
+ | "FuturisticUi"
123
+ | "Ggez"
124
+ | "GitGud"
125
+ | "Glitch"
126
+ | "Glorio"
127
+ | "GlowingRunes"
128
+ | "GoldLaurelWreath"
129
+ | "GoldenHex"
130
+ | "Gomah"
131
+ | "GoneFishin"
132
+ | "GoodOlPepper"
133
+ | "GrassToucher"
134
+ | "GreenMana"
135
+ | "GreenhouseCat"
136
+ | "GroupHug"
137
+ | "Gtoilet"
138
+ | "Guile"
139
+ | "HallelujahMountains"
140
+ | "Hallucination"
141
+ | "Hammy"
142
+ | "HappyHarvest"
143
+ | "Hawks"
144
+ | "HeadInTheClouds"
145
+ | "Heartbloom"
146
+ | "Heartstrings"
147
+ | "Helmsman"
148
+ | "HexLights"
149
+ | "HexTiles"
150
+ | "HologramDisc"
151
+ | "HologramDragon"
152
+ | "Honeyblossom"
153
+ | "HoppyBoi"
154
+ | "HotShot"
155
+ | "HughTheRainbow"
156
+ | "HumanTorch"
157
+ | "IceCreamFrog"
158
+ | "ImDancin"
159
+ | "Implant"
160
+ | "InLove"
161
+ | "InTears"
162
+ | "InfiniteSwirl"
163
+ | "InvisibleWoman"
164
+ | "IzukuMidoriya"
165
+ | "JellyBear"
166
+ | "Jingasa"
167
+ | "Joystick"
168
+ | "JuggernautAstro"
169
+ | "Juri"
170
+ | "JustHangin"
171
+ | "Kabuto"
172
+ | "KatsukiBakugo"
173
+ | "Ken"
174
+ | "KiEnergy"
175
+ | "Kitsune"
176
+ | "KoiPond"
177
+ | "LavaBlobs"
178
+ | "LegacyDisc"
179
+ | "LightCycleWheel"
180
+ | "LightCycles"
181
+ | "Lightning"
182
+ | "LightsCameraAction"
183
+ | "Lightsabers"
184
+ | "LiquidMoon"
185
+ | "LofiGirlOutfit"
186
+ | "LootLightshow"
187
+ | "LotusFlower"
188
+ | "LoverGirlAutumn"
189
+ | "Lovestruck"
190
+ | "LuckyEnvelopes"
191
+ | "LuminescentLotus"
192
+ | "LunaMoths"
193
+ | "LunarFlowers"
194
+ | "LunarLanterns"
195
+ | "MBison"
196
+ | "MagicMists"
197
+ | "MagicPortal"
198
+ | "MagicalGirl"
199
+ | "MagicalPotion"
200
+ | "MagicalWand"
201
+ | "MaleficCrown"
202
+ | "MallowJump"
203
+ | "MechFlora"
204
+ | "MermaidSerenade"
205
+ | "MidnightSorceress"
206
+ | "MillenniumFalconHyperdrive"
207
+ | "MiniPiccolo"
208
+ | "MiniSupremeKai"
209
+ | "MiniVegeta"
210
+ | "Mirage"
211
+ | "MischievousKitties"
212
+ | "MisterFantastic"
213
+ | "MochiBunny"
214
+ | "Moon"
215
+ | "Mooncaps"
216
+ | "MoonlitCharms"
217
+ | "MrJackOLantern"
218
+ | "Mushcaps"
219
+ | "NeonCatHoodie"
220
+ | "NeonDecoraHair"
221
+ | "NeonNibbles"
222
+ | "NeonSpikeChoker"
223
+ | "NextTurnButton"
224
+ | "Nibbles"
225
+ | "Nightwraith"
226
+ | "NomKitty"
227
+ | "NovaSurge"
228
+ | "Oasis"
229
+ | "OchacoUraraka"
230
+ | "OmensCowl"
231
+ | "Oni"
232
+ | "OniMask"
233
+ | "PandoranSeas"
234
+ | "Panzy"
235
+ | "Phoenix"
236
+ | "Pipedream"
237
+ | "PirateCaptain"
238
+ | "Planetary"
239
+ | "PlayfulIlu"
240
+ | "PlayfulLofiCat"
241
+ | "PolarBearHat"
242
+ | "PonderingPortal"
243
+ | "PoweredByShimmer"
244
+ | "PressF"
245
+ | "Questionable"
246
+ | "R2d2OnTatooine"
247
+ | "RadiatingEnergy"
248
+ | "Rage"
249
+ | "RainyCanopy"
250
+ | "RainyMood"
251
+ | "RamenBowl"
252
+ | "RawrXd"
253
+ | "RedLantern"
254
+ | "RedMana"
255
+ | "RestInPeace"
256
+ | "ReynasLeer"
257
+ | "RingOfRoses"
258
+ | "RoseBearer"
259
+ | "RubyHearts"
260
+ | "Rumbling"
261
+ | "Ryu"
262
+ | "SakuraCity"
263
+ | "SakuraInk"
264
+ | "SakuraScholar"
265
+ | "SakuraWarrior"
266
+ | "Scallywag"
267
+ | "Shenron"
268
+ | "Shocked"
269
+ | "ShotoTodoroki"
270
+ | "Shroomling"
271
+ | "ShurikensMark"
272
+ | "Shy"
273
+ | "SippyJuice"
274
+ | "SkibidiToilet"
275
+ | "SkullMedallion"
276
+ | "SkullyCharms"
277
+ | "SleepyBee"
278
+ | "SleepyChilledcow"
279
+ | "SlitherNSnack"
280
+ | "Smoke"
281
+ | "SnakesHug"
282
+ | "Snowdrops"
283
+ | "Snowglobe"
284
+ | "SolarFlare"
285
+ | "SolarOrbit"
286
+ | "SoulLeavingBody"
287
+ | "SpaceBattle"
288
+ | "Speakerwoman"
289
+ | "SpiritBlossomKarma"
290
+ | "SpiritBlossomMorgana"
291
+ | "SpiritBlossomSprings"
292
+ | "SpiritBlossomSpringsAhri"
293
+ | "SpiritBlossomSpringsSett"
294
+ | "SpiritBlossomZed"
295
+ | "SpiritEmbers"
296
+ | "SpookyCatEars"
297
+ | "Sproutling"
298
+ | "Stardust"
299
+ | "StarlightTiara"
300
+ | "StarlightWhales"
301
+ | "StarryEyed"
302
+ | "SteampunkCatEars"
303
+ | "StrawHat"
304
+ | "StrawberryVine"
305
+ | "StringLights"
306
+ | "StudySession"
307
+ | "Sunflowers"
308
+ | "SuperRecognizer"
309
+ | "SushiRoll"
310
+ | "SweatDrops"
311
+ | "TerrainTiles"
312
+ | "Terrarium"
313
+ | "TheAnomaly"
314
+ | "TheAtlasGauntlets"
315
+ | "TheFantasticFour"
316
+ | "TheHexcore"
317
+ | "TheMark"
318
+ | "TheMonsterYouCreated"
319
+ | "ThePetalPack"
320
+ | "TheThing"
321
+ | "TheWindTraders"
322
+ | "TimekeepersClock"
323
+ | "ToiletLid"
324
+ | "TomuraShigaraki"
325
+ | "Trash"
326
+ | "TreasureAndKey"
327
+ | "TvWoman"
328
+ | "Twilight"
329
+ | "Ufo"
330
+ | "Unicorn"
331
+ | "UwuXp"
332
+ | "ValorantChampions2024"
333
+ | "ViperPoisonCloud"
334
+ | "Water"
335
+ | "WhiteMana"
336
+ | "WitchHat"
337
+ | "WizardHat"
338
+ | "WizardsStaff"
339
+ | "Woodsprites"
340
+ | "Woolgathering"
341
+ | "YodaOnDagobah"
342
+ | "YoruDimensionalDrift"
343
+ | "ZombieFood";
344
+
345
+ /**
346
+ * Available namespace decoration names
347
+ * Use with: <NamespaceDecoration name="..." />
348
+ */
349
+ export type NamespaceDecorationName =
350
+ | "2035"
351
+ | "Angels"
352
+ | "Aurora"
353
+ | "Autumnbreeze"
354
+ | "Berrybunny"
355
+ | "Blackmana"
356
+ | "Bloomling"
357
+ | "Bluemana"
358
+ | "Bonsai"
359
+ | "Byebye"
360
+ | "Camomaster"
361
+ | "Catbeans"
362
+ | "Cherryblossoms"
363
+ | "Cityscape"
364
+ | "Claptrap"
365
+ | "Cosmicstorm"
366
+ | "Cosmictwilightflow"
367
+ | "Cozycat"
368
+ | "D20roll"
369
+ | "Dragonball"
370
+ | "Encomgrid"
371
+ | "Encoreorange"
372
+ | "Encoreteal"
373
+ | "Fairies"
374
+ | "Fireflymeadow"
375
+ | "Flutteringstatic"
376
+ | "Glitch"
377
+ | "Gomah"
378
+ | "Greenmana"
379
+ | "Hoppyboisperch"
380
+ | "Imwatchingyoooooutreat"
381
+ | "Imwatchingyoooooutrick"
382
+ | "Infiniteswirl"
383
+ | "Koipond"
384
+ | "Lightwall"
385
+ | "Lunamoth"
386
+ | "Magicheartsblue"
387
+ | "Magicheartsorange"
388
+ | "Minigoku"
389
+ | "Minivegeta"
390
+ | "Moonessence"
391
+ | "Moonlitcharm"
392
+ | "Msspidertreat"
393
+ | "Msspidertrick"
394
+ | "Oasis"
395
+ | "Owlbearcub"
396
+ | "Pandoranseas"
397
+ | "Petalbloom"
398
+ | "Pileofbonestreat"
399
+ | "Pileofbonestrick"
400
+ | "Pixiedust"
401
+ | "Planetrings"
402
+ | "Reddragon"
403
+ | "Redmana"
404
+ | "Ripperawakens"
405
+ | "Secretagent"
406
+ | "Shatteredveil"
407
+ | "Skibiditoilet"
408
+ | "Spiritblossompetals"
409
+ | "Spiritblossomsprings"
410
+ | "Spiritmoon"
411
+ | "Spiritofspring"
412
+ | "Sproutling"
413
+ | "Squadwipe"
414
+ | "Starfalltides"
415
+ | "Starfalltidesnightshade"
416
+ | "Starfalltidesrose"
417
+ | "Starfalltidesvoid"
418
+ | "Starlightwhales"
419
+ | "Sunandmoon"
420
+ | "Swordoflegend"
421
+ | "Thegridfireworks"
422
+ | "Thesameduck"
423
+ | "Touchgrass"
424
+ | "Tvwoman"
425
+ | "Twilight"
426
+ | "Twilightdusk"
427
+ | "Twilightfuchsia"
428
+ | "Underthesea"
429
+ | "Vault"
430
+ | "Vengeance"
431
+ | "Whitemana"
432
+ | "Woodsprite"
433
+ | "Yunarasaionerna";
434
+
435
+ /**
436
+ * Available profile effect names
437
+ * Use with: <ProfileDecoration name="..." />
438
+ */
439
+ export type ProfileDecorationName =
440
+ | "AkumasWrath"
441
+ | "AllNighter"
442
+ | "AngelicIntervention"
443
+ | "AuroraDreams"
444
+ | "BearlyAfloat"
445
+ | "BonsaiEternity"
446
+ | "BubbleTeaBliss"
447
+ | "ButterflyHaven"
448
+ | "ClockworkButterflies"
449
+ | "CloseCombat"
450
+ | "ClovesRuse"
451
+ | "Cluster"
452
+ | "CozyFlower"
453
+ | "CriticalDamage"
454
+ | "DarkOmens"
455
+ | "DarthVaderArrives"
456
+ | "DeepDive"
457
+ | "DoinTheRobot"
458
+ | "DragonsApproach"
459
+ | "DreamyBlue"
460
+ | "DreamyGreen"
461
+ | "DreamyPink"
462
+ | "DreamyYellow"
463
+ | "EnchantedForest"
464
+ | "EnteringHyperspace"
465
+ | "EveryProfileIsAStage"
466
+ | "FallFoliage"
467
+ | "Feelin90s"
468
+ | "FireflyMeadow"
469
+ | "FishingVillage"
470
+ | "FlutterAndFrolic"
471
+ | "FullCowling"
472
+ | "Galactus"
473
+ | "GhoulishGraffiti"
474
+ | "Grove"
475
+ | "HauntedManOWar"
476
+ | "HeartstringTheory"
477
+ | "HeheSoRandomXp"
478
+ | "HydroBlast"
479
+ | "JinxAndPowpow"
480
+ | "JoinTheAlliance"
481
+ | "JollyRoger"
482
+ | "KawaiiClouds"
483
+ | "KawaiiMode"
484
+ | "KeyboardCats"
485
+ | "KiDetonateBlue"
486
+ | "KiDetonateGreen"
487
+ | "KiDetonateRed"
488
+ | "KiDetonateYellow"
489
+ | "KoiGarden"
490
+ | "LazyLoaf"
491
+ | "LeagueOfVillains"
492
+ | "LilypadLife"
493
+ | "LiquidMoonlight"
494
+ | "LofiCatZoomies"
495
+ | "LofiGirlStudyBreak"
496
+ | "LootShower"
497
+ | "LotsOfBubbles"
498
+ | "MagicHeartsBlue"
499
+ | "MagicalGirlEnergy"
500
+ | "MapleMornings"
501
+ | "MidnightCelebration"
502
+ | "MiniGoku"
503
+ | "MoonlitCrystals"
504
+ | "MysticVines"
505
+ | "NatureIsHealing"
506
+ | "Nightrunner"
507
+ | "NomKittyCrunch"
508
+ | "OfInkAndSteel"
509
+ | "OnisCurse"
510
+ | "PaintTheTownBlue"
511
+ | "PancakePals"
512
+ | "PenguinsOnIce"
513
+ | "PixieDust"
514
+ | "PlushieParty"
515
+ | "PortalBeyond"
516
+ | "PowerSurgeFuchsia"
517
+ | "PowerSurgeGreen"
518
+ | "RawrXdSplash"
519
+ | "RosesGalore"
520
+ | "RubyPhotoCard"
521
+ | "SakuraDreams"
522
+ | "SakuraKatana"
523
+ | "ShadowStrike"
524
+ | "ShatterBlue"
525
+ | "ShatterPurple"
526
+ | "ShootingStars"
527
+ | "ShurikenStrikeBlue"
528
+ | "SilverSurfer"
529
+ | "SpiritBlossomSprings"
530
+ | "SpiritFlame"
531
+ | "SpiritOfTheKitsune"
532
+ | "SpringRain"
533
+ | "StarfallRings"
534
+ | "StarfallTides"
535
+ | "StudySpot"
536
+ | "SunAndMoon"
537
+ | "Supernova"
538
+ | "SushiManiaPink"
539
+ | "SweetCopium"
540
+ | "TheImmortalClove"
541
+ | "TheSameDuck"
542
+ | "TheTimekeeper"
543
+ | "TurboDrive"
544
+ | "Twilight"
545
+ | "UplinkError"
546
+ | "Vengeance"
547
+ | "Vortex"
548
+ | "Watercolors"
549
+ | "Weeeee"
550
+ | "WindChime"
551
+ | "WishfulBeginnings"
552
+ | "YunarasAionErna"
553
+ | "ZenGarden"
554
+ | "ZombieApocalypse"
555
+ | "ZombieSlime";
package/types/index.ts CHANGED
@@ -1,3 +1,9 @@
1
+ import {
2
+ AvatarDecorationName,
3
+ NamespaceDecorationName,
4
+ ProfileDecorationName,
5
+ } from "./decoration-names";
6
+
1
7
  export type AvatarProps = {
2
8
  src: string;
3
9
  decorationId?: string;
@@ -27,20 +33,32 @@ export type ProfileEffectProps = {
27
33
  height?: number;
28
34
  };
29
35
 
36
+ /**
37
+ * Props for AvatarDecoration component
38
+ * @param name - The decoration name. TypeScript provides autocomplete suggestions.
39
+ */
30
40
  export interface AvatarDecorationProps {
31
- name: string;
41
+ name: AvatarDecorationName;
32
42
  size?: number;
33
43
  className?: string;
34
44
  }
35
45
 
46
+ /**
47
+ * Props for ProfileDecoration component
48
+ * @param name - The profile effect name. TypeScript provides autocomplete suggestions.
49
+ */
36
50
  export interface ProfileDecorationProps {
37
- name: string;
51
+ name: ProfileDecorationName;
38
52
  className?: string;
39
53
  }
40
54
 
55
+ /**
56
+ * Props for NamespaceDecoration component
57
+ * @param name - The namespace decoration name. TypeScript provides autocomplete suggestions.
58
+ */
41
59
  export interface NamespaceDecorationProps {
42
- name: string;
43
- titleColor: string;
44
- backgroundColor: string;
60
+ name: NamespaceDecorationName;
61
+ titleColor?: string;
62
+ backgroundColor?: string;
45
63
  className?: string;
46
64
  }