@dressed/react 1.5.0-rc.1 → 1.5.0-rc.1.1
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,7 +1,7 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import type { APILabelComponent } from "discord-api-types/v10";
|
|
3
3
|
import { type ComponentNode } from "../react/renderer.ts";
|
|
4
|
-
type LabelProps = Omit<APILabelComponent, "
|
|
4
|
+
type LabelProps = Omit<APILabelComponent, "component" | "type"> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare function Label({ label, description, children, ...rest }: LabelProps): ReactElement<APILabelComponent>;
|
package/dist/components/label.js
CHANGED
|
@@ -6,6 +6,6 @@ export function Label({ label, description, children, ...rest }) {
|
|
|
6
6
|
return createElement("dressed-node", props, children);
|
|
7
7
|
}
|
|
8
8
|
export async function parseActionRow(props, children) {
|
|
9
|
-
return { ...props,
|
|
9
|
+
return { ...props, component: await Promise.all(children.map(renderNode)) };
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/components/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,aAAa,EAAqC,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAsB,MAAM,sBAAsB,CAAC;AAMtE,MAAM,UAAU,KAAK,CAAC,EACpB,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAG,IAAI,EACI;IACX,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,IAAa,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IACxE,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,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