diff --git a/packages/react/src/index.d.ts b/packages/react/src/index.d.ts index 8b30b6f..5727b4b 100644 --- a/packages/react/src/index.d.ts +++ b/packages/react/src/index.d.ts @@ -1944,9 +1944,7 @@ declare namespace React { interface IntrinsicClassAttributes extends React.ClassAttributes {} type IntrinsicElements = { - [K in Exclude as Lowercase]: React.InstanceProps< - CreatableInstances[K] - >; + [K in keyof CreatableInstances as Lowercase]: React.InstanceProps; }; } } @@ -1997,87 +1995,3 @@ type ReactManagedAttributes = C extends { propTypes: infer T; defaultProps : C extends { defaultProps: infer D } ? Defaultize : P; - -type ExcludedClassNames = - | "Accessory" - | "AccessoryDescription" - | "Accoutrement" - | "Actor" - | "AirController" - | "AnimationRigData" - | "Annotation" - | "Atmosphere" - | "AtmosphereSensor" - | "AudioSearchParams" - | "Backpack" - | "BindableEvent" - | "BindableFunction" - | "Breakpoint" - | "BubbleChatMessageProperties" - | "BuoyancySensor" - | "ClimbController" - | "Clouds" - | "ControllerManager" - | "ControllerPartSensor" - | "DataStoreGetOptions" - | "DataStoreIncrementOptions" - | "DataStoreOptions" - | "DataStoreSetOptions" - | "Dialog" - | "DialogChoice" - | "ExperienceInviteOptions" - | "ExplorerFilterInstance" - | "Explosion" - | "FluidForceSensor" - | "GetTextBoundsParams" - | "Glue" - | "GroundController" - | "Hat" - | "HiddenSurfaceRemovalAsset" - | "Hole" - | "InternalSyncItem" - | "IntersectOperation" - | "Keyframe" - | "KeyframeMarker" - | "KeyframeSequence" - | "LocalScript" - | "ManualGlue" - | "ManualWeld" - | "MarkerCurve" - | "ModuleScript" - | "NegateOperation" - | "OperationGraph" - | "PartOperation" - | "PathfindingLink" - | "PathfindingModifier" - | "Plane" - | "PluginCapabilities" - | "Pose" - | "RemoteEvent" - | "RemoteFunction" - | "RTAnimationTracker" - | "Script" - | "SkateboardController" - | "SkateboardPlatform" - | "Snap" - | "SpawnLocation" - | "StarterGear" - | "StudioAttachment" - | "StudioCallout" - | "SurfaceSelection" - | "SwimController" - | "Team" - | "TeleportOptions" - | "TerrainDetail" - | "TerrainRegion" - | "TextChannel" - | "TextChatCommand" - | "TextChatMessageProperties" - | "TrackerStreamAnimation" - | "UnionOperation" - | "UnreliableRemoteEvent" - | "VehicleController" - | "VideoDeviceInput" - | "VisualizationMode" - | "VisualizationModeCategory" - | "WorkspaceAnnotation"; diff --git a/packages/react/src/tags.lua b/packages/react/src/tags.lua index 5aac5e1..6248cf5 100644 --- a/packages/react/src/tags.lua +++ b/packages/react/src/tags.lua @@ -1,314 +1,7 @@ -local classNames = { - "Accessory", - "AccessoryDescription", - "Accoutrement", - "Actor", - "AdGui", - "AdPortal", - "AirController", - "AlignOrientation", - "AlignPosition", - "AngularVelocity", - "Animation", - "AnimationConstraint", - "AnimationController", - "AnimationRigData", - "Animator", - "Annotation", - "ArcHandles", - "Atmosphere", - "AtmosphereSensor", - "Attachment", - "AudioAnalyzer", - "AudioChannelMixer", - "AudioChannelSplitter", - "AudioChorus", - "AudioCompressor", - "AudioDeviceInput", - "AudioDeviceOutput", - "AudioDistortion", - "AudioEcho", - "AudioEmitter", - "AudioEqualizer", - "AudioFader", - "AudioFilter", - "AudioFlanger", - "AudioGate", - "AudioLimiter", - "AudioListener", - "AudioPitchShifter", - "AudioPlayer", - "AudioRecorder", - "AudioReverb", - "AudioSearchParams", - "AudioSpeechToText", - "AudioTextToSpeech", - "AudioTremolo", - "AuroraScript", - "AvatarAccessoryRules", - "AvatarAnimationRules", - "AvatarBodyRules", - "AvatarClothingRules", - "AvatarCollisionRules", - "AvatarRules", - "Backpack", - "BallSocketConstraint", - "Beam", - "BillboardGui", - "BindableEvent", - "BindableFunction", - "BlockMesh", - "BloomEffect", - "BlurEffect", - "BodyAngularVelocity", - "BodyColors", - "BodyForce", - "BodyGyro", - "BodyPartDescription", - "BodyPosition", - "BodyThrust", - "BodyVelocity", - "Bone", - "BoolValue", - "BoxHandleAdornment", - "Breakpoint", - "BrickColorValue", - "BubbleChatMessageProperties", - "BuoyancySensor", - "Camera", - "CanvasGroup", - "CFrameValue", - "CharacterMesh", - "ChorusSoundEffect", - "ClickDetector", - "ClimbController", - "Clouds", - "Color3Value", - "ColorCorrectionEffect", - "ColorGradingEffect", - "CompressorSoundEffect", - "ConeHandleAdornment", - "Configuration", - "ControllerManager", - "ControllerPartSensor", - "CornerWedgePart", - "CurveAnimation", - "CustomLog", - "CylinderHandleAdornment", - "CylinderMesh", - "CylindricalConstraint", - "DataStoreGetOptions", - "DataStoreIncrementOptions", - "DataStoreOptions", - "DataStoreSetOptions", - "Decal", - "DepthOfFieldEffect", - "Dialog", - "DialogChoice", - "DistortionSoundEffect", - "DoubleConstrainedValue", - "DragDetector", - "Dragger", - "EchoSoundEffect", - "EqualizerSoundEffect", - "EulerRotationCurve", - "ExperienceInviteOptions", - "ExplorerFilter", - "Explosion", - "FaceControls", - "FileMesh", - "Fire", - "FlangeSoundEffect", - "FloatCurve", - "FloorWire", - "FluidForceSensor", - "Folder", - "ForceField", - "Frame", - "GetTextBoundsParams", - "Glue", - "GroundController", - "Handles", - "HandRigDescription", - "HapticEffect", - "Hat", - "HiddenSurfaceRemovalAsset", - "Highlight", - "HingeConstraint", - "Hole", - "Humanoid", - "HumanoidController", - "HumanoidDescription", - "HumanoidRigDescription", - "IKControl", - "ImageButton", - "ImageHandleAdornment", - "ImageLabel", - "InputAction", - "InputBinding", - "InputContext", - "IntConstrainedValue", - "InternalSyncItem", - "IntersectOperation", - "IntValue", - "Keyframe", - "KeyframeMarker", - "KeyframeSequence", - "LinearVelocity", - "LineForce", - "LineHandleAdornment", - "LocalizationTable", - "LocalScript", - "ManualGlue", - "ManualWeld", - "MarkerCurve", - "MaterialVariant", - "MeshPart", - "Model", - "ModuleScript", - "Motor", - "Motor6D", - "MotorFeature", - "NegateOperation", - "NoCollisionConstraint", - "Noise", - "NumberPose", - "NumberValue", - "ObjectValue", - "OperationGraph", - "Pants", - "Part", - "ParticleEmitter", - "PartOperation", - "Path2D", - "PathfindingLink", - "PathfindingModifier", - "PitchShiftSoundEffect", - "Plane", - "PlaneConstraint", - "PluginCapabilities", - "PointLight", - "Pose", - "PrismaticConstraint", - "ProximityPrompt", - "RayValue", - "RelativeGui", - "RemoteEvent", - "RemoteFunction", - "ReverbSoundEffect", - "RigidConstraint", - "RocketPropulsion", - "RodConstraint", - "RopeConstraint", - "Rotate", - "RotateP", - "RotateV", - "RotationCurve", - "RTAnimationTracker", - "ScreenGui", - "Script", - "ScrollingFrame", - "Seat", - "SelectionBox", - "SelectionPartLasso", - "SelectionPointLasso", - "SelectionSphere", - "Shirt", - "ShirtGraphic", - "SkateboardController", - "SkateboardPlatform", - "Sky", - "Smoke", - "Snap", - "Sound", - "SoundGroup", - "Sparkles", - "SpawnLocation", - "SpecialMesh", - "SphereHandleAdornment", - "SpotLight", - "SpringConstraint", - "StarterGear", - "StringValue", - "StudioAttachment", - "StudioCallout", - "StyleDerive", - "StyleLink", - "StyleRule", - "StyleSheet", - "SunRaysEffect", - "SurfaceAppearance", - "SurfaceGui", - "SurfaceLight", - "SurfaceSelection", - "SwimController", - "Team", - "TeleportOptions", - "TerrainDetail", - "TerrainRegion", - "TextBox", - "TextButton", - "TextChannel", - "TextChatCommand", - "TextChatMessageProperties", - "TextGenerator", - "TextLabel", - "Texture", - "Tool", - "Torque", - "TorsionSpringConstraint", - "TrackerStreamAnimation", - "Trail", - "TremoloSoundEffect", - "TrussPart", - "UIAspectRatioConstraint", - "UIContainerQuery", - "UICorner", - "UIDragDetector", - "UIFlexItem", - "UIGradient", - "UIGridLayout", - "UIListLayout", - "UIPadding", - "UIPageLayout", - "UIScale", - "UISizeConstraint", - "UIStroke", - "UITableLayout", - "UITextSizeConstraint", - "UnionOperation", - "UniversalConstraint", - "UnreliableRemoteEvent", - "Vector3Curve", - "Vector3Value", - "VectorForce", - "VehicleController", - "VehicleSeat", - "VelocityMotor", - "VideoDeviceInput", - "VideoDisplay", - "VideoFrame", - "VideoPlayer", - "ViewportFrame", - "VisualizationMode", - "VisualizationModeCategory", - "WedgePart", - "Weld", - "WeldConstraint", - "Wire", - "WireframeHandleAdornment", - "WorkspaceAnnotation", - "WorldModel", - "WrapDeformer", - "WrapLayer", - "WrapTarget", - "WrapTextureTransfer", -} - local tags = {} -for _, className in classNames do - tags[string.lower(className)] = className +for _, class in game:GetService("ReflectionService"):GetClasses() do + tags[string.lower(class.Name)] = class.Name end return tags