Grabbed dndbeyond's source code

```
~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js
```
This commit is contained in:
2025-05-28 11:50:03 -07:00
commit 8df9031d27
3592 changed files with 319051 additions and 0 deletions
@@ -0,0 +1,41 @@
import { FC, HTMLAttributes } from "react";
import { HtmlContent } from "~/components/HtmlContent";
import { useCharacterEngine } from "~/hooks/useCharacterEngine";
import { useRuleData } from "~/hooks/useRuleData";
import { Header } from "~/subApps/sheet/components/Sidebar/components/Header";
import { PaneInitFailureContent } from "../../components/PaneInitFailureContent";
import { PaneIdentifiersBasicAction } from "../../types";
/*
This is the Sidebar display for Basic Actions. You can see this Pane by clicking on the Basic Actions (actions, bonus actions, reactions, etc.) displayed in the Actions section of the Character Sheet. Examples of Basic Actions include Attack, Dash, Disengage, Dodge, Help, Hide, Ready, Search, Use an Object, etc.
*/
interface BasicActionPaneProps extends HTMLAttributes<HTMLDivElement> {
identifiers: PaneIdentifiersBasicAction | null;
}
export const BasicActionPane: FC<BasicActionPaneProps> = ({
identifiers,
...props
}) => {
const { ruleData } = useCharacterEngine();
const { ruleDataUtils } = useRuleData();
const action =
identifiers && ruleDataUtils.getBasicAction(identifiers.id, ruleData);
if (action === null) {
return <PaneInitFailureContent />;
}
return (
<div {...props}>
<Header>{action.name}</Header>
{action.description !== null && (
<HtmlContent html={action.description} withoutTooltips />
)}
</div>
);
};