nexocord 1.2.0 → 1.2.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/bin/cli.js +1 -1
- package/dist/core/ui/builders/container.d.ts.map +1 -1
- package/dist/core/ui/builders/select.d.ts +14 -14
- package/dist/core/ui/builders/select.d.ts.map +1 -1
- package/dist/core/ui/index.js +181 -140
- package/dist/core/ui/normalizers/button.d.ts +1 -0
- package/dist/core/ui/normalizers/button.d.ts.map +1 -1
- package/dist/core/ui/normalizers/container.d.ts.map +1 -1
- package/dist/core/ui/normalizers/media.d.ts.map +1 -1
- package/dist/core/ui/normalizers/select.d.ts +1 -1
- package/dist/core/ui/normalizers/select.d.ts.map +1 -1
- package/dist/core/ui/types/button.d.ts +12 -4
- package/dist/core/ui/types/button.d.ts.map +1 -1
- package/dist/core/ui/types/container.d.ts +2 -2
- package/dist/core/ui/types/container.d.ts.map +1 -1
- package/dist/core/ui/utils/formatList.d.ts.map +1 -1
- package/dist/core/ui/utils/splitContainerArgs.d.ts.map +1 -1
- package/dist/core/ui/validators/button.d.ts.map +1 -1
- package/dist/core/ui/validators/container.d.ts.map +1 -1
- package/dist/core/ui/validators/select.d.ts.map +1 -1
- package/dist/index.cjs +181 -140
- package/dist/index.js +185 -144
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -2254,7 +2254,7 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
2254
2254
|
module.exports.createColors = createColors;
|
|
2255
2255
|
});
|
|
2256
2256
|
// package.json
|
|
2257
|
-
var version = "1.2.
|
|
2257
|
+
var version = "1.2.1";
|
|
2258
2258
|
|
|
2259
2259
|
// node_modules/commander/esm.mjs
|
|
2260
2260
|
var import__ = __toESM(require_commander(), 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../src/core/ui/builders/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAclB;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,GAAE,cAAmB;;;;;EAErE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,GAAG,IAAI,EAAE,CAAC,gBAAgB,EAAE,GAAG,cAAc,EAAE,CAAC,GAAG,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../src/core/ui/builders/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAclB;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,GAAE,cAAmB;;;;;EAErE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,GAAG,IAAI,EAAE,CAAC,gBAAgB,EAAE,GAAG,cAAc,EAAE,CAAC,GAAG,cAAc,EAAE,oBAepE;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,GAAG,UAAU,EAAE,YAAY,EAAE,mCAInD;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAClB,WAAW,EAAE;IAAE,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,EAC1D,OAAO,EAAE;IACP,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC3B,UAAU,EAAE,OAAO,UAAU,EAAE,kBAAkB,CAAC;CACnD,oBAsBF"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ChannelType } from 'discord.js';
|
|
2
2
|
import type { ChannelSelect, MentionableSelect, RoleSelect, SelectBase, StringSelect, StringSelectOption, UserSelect } from '../types';
|
|
3
|
-
type
|
|
4
|
-
type
|
|
3
|
+
type SelectOpts = Omit<SelectBase, 'id'>;
|
|
4
|
+
type SelectInput = SelectOpts & {
|
|
5
5
|
customId: SelectBase['id'];
|
|
6
6
|
};
|
|
7
|
-
type
|
|
7
|
+
type ChannelSelectInput = SelectInput & {
|
|
8
8
|
channelTypes?: readonly ChannelType[];
|
|
9
9
|
};
|
|
10
|
-
type
|
|
10
|
+
type StringSelectInput = SelectInput & {
|
|
11
11
|
options: readonly StringSelectOption[];
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -17,8 +17,8 @@ type StringSelectBuilderInput = SelectBuilderInput & {
|
|
|
17
17
|
* @param opts Optional select configuration when a custom id is provided.
|
|
18
18
|
* @returns Public user-select descriptor.
|
|
19
19
|
*/
|
|
20
|
-
export declare function user(customId: SelectBase['id'], opts?:
|
|
21
|
-
export declare function user(opts:
|
|
20
|
+
export declare function user(customId: SelectBase['id'], opts?: SelectOpts): UserSelect;
|
|
21
|
+
export declare function user(opts: SelectInput): UserSelect;
|
|
22
22
|
/**
|
|
23
23
|
* Creates a public role-select descriptor.
|
|
24
24
|
*
|
|
@@ -26,8 +26,8 @@ export declare function user(opts: SelectBuilderInput): UserSelect;
|
|
|
26
26
|
* @param opts Optional select configuration when a custom id is provided.
|
|
27
27
|
* @returns Public role-select descriptor.
|
|
28
28
|
*/
|
|
29
|
-
export declare function role(customId: SelectBase['id'], opts?:
|
|
30
|
-
export declare function role(opts:
|
|
29
|
+
export declare function role(customId: SelectBase['id'], opts?: SelectOpts): RoleSelect;
|
|
30
|
+
export declare function role(opts: SelectInput): RoleSelect;
|
|
31
31
|
/**
|
|
32
32
|
* Creates a public mentionable-select descriptor.
|
|
33
33
|
*
|
|
@@ -35,8 +35,8 @@ export declare function role(opts: SelectBuilderInput): RoleSelect;
|
|
|
35
35
|
* @param opts Optional select configuration when a custom id is provided.
|
|
36
36
|
* @returns Public mentionable-select descriptor.
|
|
37
37
|
*/
|
|
38
|
-
export declare function mentionable(customId: SelectBase['id'], opts?:
|
|
39
|
-
export declare function mentionable(opts:
|
|
38
|
+
export declare function mentionable(customId: SelectBase['id'], opts?: SelectOpts): MentionableSelect;
|
|
39
|
+
export declare function mentionable(opts: SelectInput): MentionableSelect;
|
|
40
40
|
/**
|
|
41
41
|
* Creates a public channel-select descriptor.
|
|
42
42
|
*
|
|
@@ -45,8 +45,8 @@ export declare function mentionable(opts: SelectBuilderInput): MentionableSelect
|
|
|
45
45
|
* @param opts Optional select configuration when a custom id is provided.
|
|
46
46
|
* @returns Public channel-select descriptor.
|
|
47
47
|
*/
|
|
48
|
-
export declare function channel(customId: SelectBase['id'], channelTypes?: readonly ChannelType[], opts?:
|
|
49
|
-
export declare function channel(opts:
|
|
48
|
+
export declare function channel(customId: SelectBase['id'], channelTypes?: readonly ChannelType[], opts?: SelectOpts): ChannelSelect;
|
|
49
|
+
export declare function channel(opts: ChannelSelectInput): ChannelSelect;
|
|
50
50
|
/**
|
|
51
51
|
* Creates a public string-select descriptor.
|
|
52
52
|
*
|
|
@@ -55,7 +55,7 @@ export declare function channel(opts: ChannelSelectBuilderInput): ChannelSelect;
|
|
|
55
55
|
* @param opts Optional select configuration when a custom id is provided.
|
|
56
56
|
* @returns Public string-select descriptor.
|
|
57
57
|
*/
|
|
58
|
-
export declare function string(customId: SelectBase['id'], options: readonly StringSelectOption[], opts?:
|
|
59
|
-
export declare function string(opts:
|
|
58
|
+
export declare function string(customId: SelectBase['id'], options: readonly StringSelectOption[], opts?: SelectOpts): StringSelect;
|
|
59
|
+
export declare function string(opts: StringSelectInput): StringSelect;
|
|
60
60
|
export {};
|
|
61
61
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/core/ui/builders/select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACX,MAAM,UAAU,CAAC;AAGlB,KAAK,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/core/ui/builders/select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACX,MAAM,UAAU,CAAC;AAGlB,KAAK,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AACzC,KAAK,WAAW,GAAG,UAAU,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC;AAC/D,KAAK,kBAAkB,GAAG,WAAW,GAAG;IACtC,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;CACvC,CAAC;AACF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACrC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACxC,CAAC;AAgDF;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;AAChF,wBAAgB,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC;AAQpD;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;AAChF,wBAAgB,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC;AAQpD;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAC1B,IAAI,CAAC,EAAE,UAAU,GAChB,iBAAiB,CAAC;AACrB,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,iBAAiB,CAAC;AAQlE;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAC1B,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,EACrC,IAAI,CAAC,EAAE,UAAU,GAChB,aAAa,CAAC;AACjB,wBAAgB,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,aAAa,CAAC;AA0BjE;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAC1B,OAAO,EAAE,SAAS,kBAAkB,EAAE,EACtC,IAAI,CAAC,EAAE,UAAU,GAChB,YAAY,CAAC;AAChB,wBAAgB,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,YAAY,CAAC"}
|