@dressed/react 1.8.5-rc.1 → 1.8.5-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.
- package/dist/components/action-row.d.ts +2 -4
- package/dist/components/action-row.js.map +1 -1
- package/dist/components/checkbox.d.ts +4 -2
- package/dist/components/checkbox.js +7 -9
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/container.d.ts +2 -6
- package/dist/components/container.js.map +1 -1
- package/dist/components/label.d.ts +2 -6
- package/dist/components/label.js.map +1 -1
- package/dist/components/media-gallery.d.ts +2 -5
- package/dist/components/media-gallery.js.map +1 -1
- package/dist/components/radio-group.d.ts +4 -2
- package/dist/components/radio-group.js +6 -3
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/section.d.ts +2 -3
- package/dist/components/section.js.map +1 -1
- package/dist/components/select-menu.d.ts +2 -4
- package/dist/components/select-menu.js.map +1 -1
- package/dist/components/text-display.d.ts +2 -6
- package/dist/components/text-display.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react/renderer.js +16 -18
- package/dist/react/renderer.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { APIActionRowComponent, APIComponentInActionRow } from "discord-api-types/v10";
|
|
2
|
-
import { type
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
3
|
import { type ComponentNode } from "../react/renderer.ts";
|
|
4
|
-
export declare function ActionRow({ children, }:
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): ReactElement<APIActionRowComponent<APIComponentInActionRow>>;
|
|
4
|
+
export declare function ActionRow({ children, }: PropsWithChildren): ReactElement<APIActionRowComponent<APIComponentInActionRow>>;
|
|
7
5
|
export declare function parseActionRow<T extends APIActionRowComponent<APIComponentInActionRow>>(props: T, children: ComponentNode[]): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-row.js","sourceRoot":"","sources":["../../src/components/action-row.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"action-row.js","sourceRoot":"","sources":["../../src/components/action-row.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AACjF,OAAO,EAAsB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,UAAU,SAAS,CAAC,EACxB,QAAQ,GACU;IAClB,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAAQ,EACR,QAAyB;IAEzB,OAAO,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;AAC9E,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { APICheckboxComponent, APICheckboxGroupComponent, APICheckboxGroupOption } from "discord-api-types/v10";
|
|
2
|
-
import { type ReactElement } from "react";
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
|
+
import type { ComponentNode } from "../react/renderer.ts";
|
|
3
4
|
export declare function Checkbox(config: Omit<APICheckboxComponent, "type">): ReactElement<APICheckboxComponent>;
|
|
4
5
|
export declare function Checkbox(config: APICheckboxGroupOption): ReactElement<APICheckboxGroupOption>;
|
|
5
|
-
export declare function CheckboxGroup(
|
|
6
|
+
export declare function CheckboxGroup({ children, ...rest }: PropsWithChildren<Omit<APICheckboxGroupComponent, "options" | "type">>): ReactElement<APICheckboxGroupComponent>;
|
|
7
|
+
export declare function parseCheckboxGroup<T extends APICheckboxGroupComponent>(props: T, children: ComponentNode[]): Promise<T>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { Checkbox as DressedComponent, CheckboxGroup as DressedGroupComponent } from "dressed";
|
|
2
2
|
import { createElement } from "react";
|
|
3
3
|
export function Checkbox(config) {
|
|
4
|
-
const props = "label" in config
|
|
5
|
-
? DressedComponent(config.label, config.value, {
|
|
6
|
-
default: config.default,
|
|
7
|
-
description: config.description,
|
|
8
|
-
})
|
|
9
|
-
: DressedComponent(config);
|
|
4
|
+
const props = "label" in config ? DressedComponent(config.label, config.value, config) : DressedComponent(config);
|
|
10
5
|
return createElement("dressed-node", props);
|
|
11
6
|
}
|
|
12
|
-
export function CheckboxGroup(
|
|
13
|
-
const props = DressedGroupComponent(
|
|
14
|
-
return createElement("dressed-node", props);
|
|
7
|
+
export function CheckboxGroup({ children, ...rest }) {
|
|
8
|
+
const props = DressedGroupComponent(rest);
|
|
9
|
+
return createElement("dressed-node", props, children);
|
|
10
|
+
}
|
|
11
|
+
export async function parseCheckboxGroup(props, children) {
|
|
12
|
+
return { ...props, options: children.map((c) => c.props) };
|
|
15
13
|
}
|
|
16
14
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/components/checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC/F,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/components/checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC/F,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AAOjF,MAAM,UAAU,QAAQ,CACtB,MAAmE;IAEnE,MAAM,KAAK,GAAG,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAClH,OAAO,aAAa,CAAC,cAAc,EAAE,KAAc,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,EAC5B,QAAQ,EACR,GAAG,IAAI,EACgE;IACvE,MAAM,KAAK,GAAG,qBAAqB,CAAC,IAAa,CAAC,CAAC;IACnD,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAQ,EACR,QAAyB;IAEzB,OAAO,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;AAC7D,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { APIContainerComponent } from "discord-api-types/v10";
|
|
2
|
-
import { type
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
3
|
import { type ComponentNode } from "../react/renderer.ts";
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function Container({ children, ...rest }: ContainerProps): ReactElement<APIContainerComponent>;
|
|
4
|
+
export declare function Container({ children, ...rest }: PropsWithChildren<Omit<APIContainerComponent, "components" | "type">>): ReactElement<APIContainerComponent>;
|
|
8
5
|
export declare function parseContainer<T extends APIContainerComponent>(props: T, children: ComponentNode[]): Promise<T>;
|
|
9
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../src/components/container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../src/components/container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AACjF,OAAO,EAAsB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,UAAU,SAAS,CAAC,EACxB,QAAQ,EACR,GAAG,IAAI,EAC+D;IACtE,MAAM,KAAK,GAAG,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAkC,KAAQ,EAAE,QAAyB;IACvG,OAAO,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;AAC9E,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { APILabelComponent } from "discord-api-types/v10";
|
|
2
|
-
import { type
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
3
|
import { type ComponentNode } from "../react/renderer.ts";
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function Label({ label, description, children, ...rest }: LabelProps): ReactElement<APILabelComponent>;
|
|
4
|
+
export declare function Label({ label, description, children, ...rest }: PropsWithChildren<Omit<APILabelComponent, "component" | "type">>): ReactElement<APILabelComponent>;
|
|
8
5
|
export declare function parseLabel<T extends APILabelComponent>(props: T, children: ComponentNode[]): Promise<T>;
|
|
9
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/components/label.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/components/label.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AACjF,OAAO,EAAsB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,UAAU,KAAK,CAAC,EACpB,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAG,IAAI,EAC0D;IACjE,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,MAAM,CAAC,KAAK,UAAU,UAAU,CAA8B,KAAQ,EAAE,QAAyB;IAC/F,OAAO;QACL,GAAG,KAAK;QACR,SAAS,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { APIMediaGalleryComponent, APIMediaGalleryItem } from "discord-api-types/v10";
|
|
2
|
-
import { type
|
|
2
|
+
import { type PropsWithChildren } from "react";
|
|
3
3
|
import type { Node } from "../react/node.ts";
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function MediaGallery({ children, ...rest }: MediaGalleryProps): import("react").ReactElement<APIMediaGalleryComponent, string | import("react").JSXElementConstructor<any>>;
|
|
4
|
+
export declare function MediaGallery({ children, ...rest }: PropsWithChildren<Omit<APIMediaGalleryComponent, "items" | "type">>): import("react").ReactElement<APIMediaGalleryComponent, string | import("react").JSXElementConstructor<any>>;
|
|
8
5
|
interface ItemProps extends Omit<APIMediaGalleryItem, "media" | "type"> {
|
|
9
6
|
media: APIMediaGalleryItem["media"] | string;
|
|
10
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-gallery.js","sourceRoot":"","sources":["../../src/components/media-gallery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"media-gallery.js","sourceRoot":"","sources":["../../src/components/media-gallery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,aAAa,EAA0B,MAAM,OAAO,CAAC;AAG9D,MAAM,UAAU,YAAY,CAAC,EAC3B,QAAQ,EACR,GAAG,IAAI,EAC6D;IACpE,MAAM,KAAK,GAAG,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAMD,MAAM,UAAU,gBAAgB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAa;IAC5D,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvC,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,KAAQ,EACR,QAAqC;IAErC,OAAO,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { APIRadioGroupComponent, APIRadioGroupOption } from "discord-api-types/v10";
|
|
2
|
-
import { type ReactElement } from "react";
|
|
3
|
-
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
|
+
import type { ComponentNode } from "../react/renderer.ts";
|
|
4
|
+
export declare function RadioGroup({ children, ...rest }: PropsWithChildren<Omit<APIRadioGroupComponent, "options" | "type">>): ReactElement<APIRadioGroupComponent>;
|
|
4
5
|
export declare function RadioGroupOption({ label, value, ...rest }: APIRadioGroupOption): ReactElement<APIRadioGroupOption>;
|
|
6
|
+
export declare function parseRadioGroup<T extends APIRadioGroupComponent>(props: T, children: ComponentNode[]): Promise<T>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { RadioGroup as DressedComponent, RadioGroupOption as DressedOption } from "dressed";
|
|
2
2
|
import { createElement } from "react";
|
|
3
|
-
export function RadioGroup(
|
|
4
|
-
const props = DressedComponent(
|
|
5
|
-
return createElement("dressed-node", props);
|
|
3
|
+
export function RadioGroup({ children, ...rest }) {
|
|
4
|
+
const props = DressedComponent(rest);
|
|
5
|
+
return createElement("dressed-node", props, children);
|
|
6
6
|
}
|
|
7
7
|
export function RadioGroupOption({ label, value, ...rest }) {
|
|
8
8
|
const props = DressedOption(label, value, rest);
|
|
9
9
|
return createElement("dressed-node", props);
|
|
10
10
|
}
|
|
11
|
+
export async function parseRadioGroup(props, children) {
|
|
12
|
+
return { ...props, options: children.map((c) => c.props) };
|
|
13
|
+
}
|
|
11
14
|
//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/components/radio-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/components/radio-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AAGjF,MAAM,UAAU,UAAU,CAAC,EACzB,QAAQ,EACR,GAAG,IAAI,EAC6D;IACpE,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAa,CAAC,CAAC;IAC9C,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAuB;IAC7E,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAChD,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAQ,EACR,QAAyB;IAEzB,OAAO,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;AAC7D,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { APISectionComponent } from "discord-api-types/v10";
|
|
2
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type PropsWithChildren, type ReactElement, type ReactNode } from "react";
|
|
3
3
|
import { type ComponentNode } from "../react/renderer.ts";
|
|
4
4
|
interface SectionProps extends Omit<APISectionComponent, "accessory" | "components" | "type"> {
|
|
5
|
-
children: ReactNode;
|
|
6
5
|
accessory: ReactNode;
|
|
7
6
|
}
|
|
8
|
-
export declare function Section({ children, accessory, ...rest }: SectionProps): ReactElement<APISectionComponent>;
|
|
7
|
+
export declare function Section({ children, accessory, ...rest }: PropsWithChildren<SectionProps>): ReactElement<APISectionComponent>;
|
|
9
8
|
export declare function parseSection<T extends APISectionComponent>(props: T, children: ComponentNode[]): Promise<T>;
|
|
10
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/components/section.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/components/section.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,aAAa,EAA6D,MAAM,OAAO,CAAC;AACjG,OAAO,EAAsB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMrE,MAAM,UAAU,OAAO,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACyB;IAChC,MAAM,KAAK,GAAG,gBAAgB,CAAC,EAAE,EAAE,IAAa,EAAE,IAAI,CAAC,CAAC;IACxD,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAgC,KAAQ,EAAE,QAAyB;IACnG,MAAM,CAAC,SAAS,EAAE,GAAG,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9E,OAAO,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type APISelectMenuComponent, type APISelectMenuOption, ComponentType } from "discord-api-types/v10";
|
|
2
|
-
import { type
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
3
|
import type { Node } from "../react/node.ts";
|
|
4
4
|
import type { MessageComponentInteraction } from "../rendering/interaction.ts";
|
|
5
5
|
type SelectType = "Channel" | "Mentionable" | "Role" | "String" | "User";
|
|
@@ -10,9 +10,7 @@ type SelectMap = {
|
|
|
10
10
|
};
|
|
11
11
|
type SelectMenuWithCustomId<K extends SelectType> = Omit<SelectMap[`${K}Select`], "type" | "options"> & {
|
|
12
12
|
type: K;
|
|
13
|
-
} & (K extends "String" ?
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
} : object);
|
|
13
|
+
} & (K extends "String" ? PropsWithChildren : object);
|
|
16
14
|
type SelectMenuWithOnClick<K extends SelectType> = Omit<SelectMenuWithCustomId<K>, "custom_id"> & {
|
|
17
15
|
/**
|
|
18
16
|
* Create a temporary handler callback, will not work in a serverless environment
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-menu.js","sourceRoot":"","sources":["../../src/components/select-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7G,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"select-menu.js","sourceRoot":"","sources":["../../src/components/select-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7G,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,aAAa,EAA6D,MAAM,OAAO,CAAC;AAEjG,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AA8B5D,MAAM,UAAU,UAAU,CACxB,MAA4D;IAE5D,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAiC,CAAC;IAChE,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAa,CAAC,CAAC;IAC9C,OAAO,aAAa,CAAC,cAAc,EAAE,KAAc,EAAE,QAAqB,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAuB;IAC7E,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAChD,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,eAAe,CAE7B,MAAc,EAAE,KAAQ,EAAE,QAAqC;IAC/D,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,YAAY,EAAE,CAAC;QAC9C,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO;QACL,GAAG,KAAK;QACR,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,QAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KACxG,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { APITextDisplayComponent } from "discord-api-types/v10";
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare function TextDisplay({ children, ...rest }: TextDisplayProps): ReactElement<APITextDisplayComponent>;
|
|
2
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
3
|
+
export declare function TextDisplay({ children, ...rest }: PropsWithChildren<Omit<APITextDisplayComponent, "content" | "type">>): ReactElement<APITextDisplayComponent>;
|
|
7
4
|
export declare function parseTextDisplay<T extends APITextDisplayComponent>(props: T, children: string): T;
|
|
8
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-display.js","sourceRoot":"","sources":["../../src/components/text-display.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"text-display.js","sourceRoot":"","sources":["../../src/components/text-display.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,aAAa,EAA6C,MAAM,OAAO,CAAC;AAEjF,MAAM,UAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,IAAI,EAC8D;IACrE,MAAM,KAAK,GAAG,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAoC,KAAQ,EAAE,QAAgB;IAC5F,OAAO,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;AACzC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { ActionRow } from "./components/action-row.ts";
|
|
2
2
|
export { Button } from "./components/button.ts";
|
|
3
|
+
export { Checkbox, CheckboxGroup } from "./components/checkbox.ts";
|
|
3
4
|
export { Container } from "./components/container.ts";
|
|
4
5
|
export { File } from "./components/file.ts";
|
|
5
6
|
export { Label } from "./components/label.ts";
|
|
6
7
|
export { MediaGallery, MediaGalleryItem } from "./components/media-gallery.ts";
|
|
8
|
+
export { RadioGroup, RadioGroupOption } from "./components/radio-group.ts";
|
|
7
9
|
export { Section } from "./components/section.ts";
|
|
8
10
|
export { SelectMenu, SelectMenuOption } from "./components/select-menu.ts";
|
|
9
11
|
export { Separator } from "./components/separator.ts";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// Components
|
|
2
2
|
export { ActionRow } from "./components/action-row.js";
|
|
3
3
|
export { Button } from "./components/button.js";
|
|
4
|
+
export { Checkbox, CheckboxGroup } from "./components/checkbox.js";
|
|
4
5
|
export { Container } from "./components/container.js";
|
|
5
6
|
export { File } from "./components/file.js";
|
|
6
7
|
export { Label } from "./components/label.js";
|
|
7
8
|
export { MediaGallery, MediaGalleryItem } from "./components/media-gallery.js";
|
|
9
|
+
export { RadioGroup, RadioGroupOption } from "./components/radio-group.js";
|
|
8
10
|
export { Section } from "./components/section.js";
|
|
9
11
|
export { SelectMenu, SelectMenuOption } from "./components/select-menu.js";
|
|
10
12
|
export { Separator } from "./components/separator.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS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from "discord-api-types/v10";
|
|
|
3
3
|
import { TextDisplay } from "dressed";
|
|
4
4
|
import { parseActionRow } from "../components/action-row.js";
|
|
5
5
|
import { parseButton } from "../components/button.js";
|
|
6
|
+
import { parseCheckboxGroup } from "../components/checkbox.js";
|
|
6
7
|
import { parseContainer } from "../components/container.js";
|
|
7
8
|
import { parseLabel } from "../components/label.js";
|
|
8
9
|
import { parseMediaGallery } from "../components/media-gallery.js";
|
|
10
|
+
import { parseRadioGroup } from "../components/radio-group.js";
|
|
9
11
|
import { parseSection } from "../components/section.js";
|
|
10
12
|
import { parseSelectMenu } from "../components/select-menu.js";
|
|
11
13
|
import { parseTextDisplay } from "../components/text-display.js";
|
|
@@ -51,41 +53,37 @@ export function createRenderer(callback) {
|
|
|
51
53
|
}
|
|
52
54
|
export async function parseNode(node) {
|
|
53
55
|
switch (node.props.type) {
|
|
54
|
-
case ComponentType.ActionRow:
|
|
56
|
+
case ComponentType.ActionRow:
|
|
55
57
|
return parseActionRow(node.props, node.children);
|
|
56
|
-
|
|
57
|
-
case ComponentType.Button: {
|
|
58
|
+
case ComponentType.Button:
|
|
58
59
|
return parseButton(node.id, node.props);
|
|
59
|
-
}
|
|
60
60
|
case ComponentType.StringSelect:
|
|
61
61
|
case ComponentType.UserSelect:
|
|
62
62
|
case ComponentType.RoleSelect:
|
|
63
63
|
case ComponentType.MentionableSelect:
|
|
64
|
-
case ComponentType.ChannelSelect:
|
|
64
|
+
case ComponentType.ChannelSelect:
|
|
65
65
|
return parseSelectMenu(node.id, node.props, node.children);
|
|
66
|
-
}
|
|
67
66
|
case ComponentType.TextInput:
|
|
68
67
|
case ComponentType.Thumbnail:
|
|
69
68
|
case ComponentType.File:
|
|
70
69
|
case ComponentType.Separator:
|
|
71
|
-
case ComponentType.FileUpload:
|
|
70
|
+
case ComponentType.FileUpload:
|
|
71
|
+
case ComponentType.Checkbox:
|
|
72
72
|
return node.props;
|
|
73
|
-
|
|
74
|
-
case ComponentType.Section: {
|
|
73
|
+
case ComponentType.Section:
|
|
75
74
|
return parseSection(node.props, node.children);
|
|
76
|
-
|
|
77
|
-
case ComponentType.TextDisplay: {
|
|
75
|
+
case ComponentType.TextDisplay:
|
|
78
76
|
return parseTextDisplay(node.props, node.text());
|
|
79
|
-
|
|
80
|
-
case ComponentType.MediaGallery: {
|
|
77
|
+
case ComponentType.MediaGallery:
|
|
81
78
|
return parseMediaGallery(node.props, node.children);
|
|
82
|
-
|
|
83
|
-
case ComponentType.Container: {
|
|
79
|
+
case ComponentType.Container:
|
|
84
80
|
return parseContainer(node.props, node.children);
|
|
85
|
-
|
|
86
|
-
case ComponentType.Label: {
|
|
81
|
+
case ComponentType.Label:
|
|
87
82
|
return parseLabel(node.props, node.children);
|
|
88
|
-
|
|
83
|
+
case ComponentType.RadioGroup:
|
|
84
|
+
return parseRadioGroup(node.props, node.children);
|
|
85
|
+
case ComponentType.CheckboxGroup:
|
|
86
|
+
return parseCheckboxGroup(node.props, node.children);
|
|
89
87
|
default: {
|
|
90
88
|
if (typeof node.props === "string") {
|
|
91
89
|
return TextDisplay(node.text());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../src/react/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAKL,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,O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,KAAK,aAAa,CAAC,YAAY;YAC7B,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAuC,CAAC,CAAC;QACrF,KAAK,aAAa,CAAC,SAAS;YAC1B,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnD,KAAK,aAAa,CAAC,KAAK;YACtB,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/C,KAAK,aAAa,CAAC,UAAU;YAC3B,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpD,KAAK,aAAa,CAAC,aAAa;YAC9B,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvD,OAAO,CAAC,CAAC,CAAC;YACR,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACnC,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAClC,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dressed/react",
|
|
3
|
-
"version": "1.8.5-rc.1",
|
|
3
|
+
"version": "1.8.5-rc.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Inbestigator/dressed.git",
|
|
7
7
|
"directory": "packages/dressed-react"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@types/react": "^19.2.
|
|
10
|
+
"@types/react": "^19.2.14",
|
|
11
11
|
"@types/react-reconciler": "^0.33.0",
|
|
12
|
-
"discord-api-types": "^0.38.
|
|
12
|
+
"discord-api-types": "^0.38.39",
|
|
13
13
|
"react-reconciler": "npm:@dressed/react-reconciler"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"dressed": "^
|
|
16
|
+
"dressed": "^2.0.0-canary.2",
|
|
17
17
|
"react": "^19.2.4"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|