@sonolus/core 7.9.3 → 7.10.0

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.
@@ -22,6 +22,7 @@ export declare const Icon: {
22
22
  readonly Clock: "clock";
23
23
  readonly Comment: "comment";
24
24
  readonly Crown: "crown";
25
+ readonly CustomServer: "customServer";
25
26
  readonly Delete: "delete";
26
27
  readonly Edit: "edit";
27
28
  readonly Effect: "effect";
@@ -25,6 +25,7 @@ exports.Icon = {
25
25
  Clock: 'clock',
26
26
  Comment: 'comment',
27
27
  Crown: 'crown',
28
+ CustomServer: 'customServer',
28
29
  Delete: 'delete',
29
30
  Edit: 'edit',
30
31
  Effect: 'effect',
@@ -1,5 +1,6 @@
1
1
  import { ServerItemCommunityComment } from './comment';
2
2
  export type ServerItemCommunityCommentList = {
3
3
  pageCount: number;
4
+ cursor?: string;
4
5
  comments: ServerItemCommunityComment[];
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import { ServerItemLeaderboardRecord } from './record';
2
2
  export type ServerItemLeaderboardRecordList = {
3
3
  pageCount: number;
4
+ cursor?: string;
4
5
  records: ServerItemLeaderboardRecord[];
5
6
  };
@@ -1,6 +1,7 @@
1
1
  import { ServerForm } from '../form';
2
2
  export type ServerItemList<T> = {
3
3
  pageCount: number;
4
+ cursor?: string;
4
5
  items: T[];
5
6
  searches?: ServerForm[];
6
7
  };
@@ -50,8 +50,11 @@ export type ServerSelectOption = {
50
50
  description?: string;
51
51
  required: boolean;
52
52
  type: 'select';
53
- def: number;
54
- values: (Text | (string & {}))[];
53
+ def: string;
54
+ values: {
55
+ name: string;
56
+ title: Text | (string & {});
57
+ }[];
55
58
  };
56
59
  export type ServerMultiOption = {
57
60
  query: string;
@@ -60,7 +63,10 @@ export type ServerMultiOption = {
60
63
  required: boolean;
61
64
  type: 'multi';
62
65
  def: boolean[];
63
- values: (Text | (string & {}))[];
66
+ values: {
67
+ name: string;
68
+ title: Text | (string & {});
69
+ }[];
64
70
  };
65
71
  export type ServerServerItemOption = {
66
72
  query: string;
@@ -97,4 +103,5 @@ export type ServerFileOption = {
97
103
  description?: string;
98
104
  required: boolean;
99
105
  type: 'file';
106
+ def: string;
100
107
  };
@@ -1,4 +1,22 @@
1
1
  export declare const Text: {
2
+ /** en: Custom Server */
3
+ readonly CustomServer: "#CUSTOM_SERVER";
4
+ /** en: Collection */
5
+ readonly Collection: "#COLLECTION";
6
+ /** en: Server */
7
+ readonly Server: "#SERVER";
8
+ /** en: Address */
9
+ readonly Address: "#ADDRESS";
10
+ /** en: Expiration */
11
+ readonly Expiration: "#EXPIRATION";
12
+ /** en: Storage */
13
+ readonly Storage: "#STORAGE";
14
+ /** en: Log */
15
+ readonly Log: "#LOG";
16
+ /** en: Inquiry */
17
+ readonly Inquiry: "#INQUIRY";
18
+ /** en: Banner */
19
+ readonly Banner: "#BANNER";
2
20
  /** en: Post */
3
21
  readonly Post: "#POST";
4
22
  /** en: Playlist */
@@ -55,6 +73,8 @@ export declare const Text: {
55
73
  readonly Time: "#TIME";
56
74
  /** en: Author */
57
75
  readonly Author: "#AUTHOR";
76
+ /** en: Description */
77
+ readonly Description: "#DESCRIPTION";
58
78
  /** en: Genre */
59
79
  readonly Genre: "#GENRE";
60
80
  /** en: Type */
@@ -421,6 +441,8 @@ export declare const Text: {
421
441
  readonly TimePlaceholder: "#TIME_PLACEHOLDER";
422
442
  /** en: Enter author... */
423
443
  readonly AuthorPlaceholder: "#AUTHOR_PLACEHOLDER";
444
+ /** en: Enter description... */
445
+ readonly DescriptionPlaceholder: "#DESCRIPTION_PLACEHOLDER";
424
446
  /** en: Enter genre... */
425
447
  readonly GenrePlaceholder: "#GENRE_PLACEHOLDER";
426
448
  /** en: Enter type... */
@@ -649,6 +671,16 @@ export declare const Text: {
649
671
  readonly Ranking: "#RANKING";
650
672
  /** en: Score */
651
673
  readonly Score: "#SCORE";
674
+ /** en: Owner */
675
+ readonly Owner: "#OWNER";
676
+ /** en: Admin */
677
+ readonly Admin: "#ADMIN";
678
+ /** en: Moderator */
679
+ readonly Moderator: "#MODERATOR";
680
+ /** en: Reviewer */
681
+ readonly Reviewer: "#REVIEWER";
682
+ /** en: Banned */
683
+ readonly Banned: "#BANNED";
652
684
  /** en: Player */
653
685
  readonly Player: "#PLAYER";
654
686
  /** en: Spectator */
@@ -843,7 +875,7 @@ export declare const Text: {
843
875
  readonly Allowed: "#ALLOWED";
844
876
  /** en: Disallow */
845
877
  readonly Disallow: "#DISALLOW";
846
- /** en: DisallowED */
878
+ /** en: Disallowed */
847
879
  readonly Disallowed: "#DISALLOWED";
848
880
  /** en: Approve */
849
881
  readonly Approve: "#APPROVE";
@@ -2,6 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Text = void 0;
4
4
  exports.Text = {
5
+ /** en: Custom Server */
6
+ CustomServer: '#CUSTOM_SERVER',
7
+ /** en: Collection */
8
+ Collection: '#COLLECTION',
9
+ /** en: Server */
10
+ Server: '#SERVER',
11
+ /** en: Address */
12
+ Address: '#ADDRESS',
13
+ /** en: Expiration */
14
+ Expiration: '#EXPIRATION',
15
+ /** en: Storage */
16
+ Storage: '#STORAGE',
17
+ /** en: Log */
18
+ Log: '#LOG',
19
+ /** en: Inquiry */
20
+ Inquiry: '#INQUIRY',
21
+ /** en: Banner */
22
+ Banner: '#BANNER',
5
23
  /** en: Post */
6
24
  Post: '#POST',
7
25
  /** en: Playlist */
@@ -58,6 +76,8 @@ exports.Text = {
58
76
  Time: '#TIME',
59
77
  /** en: Author */
60
78
  Author: '#AUTHOR',
79
+ /** en: Description */
80
+ Description: '#DESCRIPTION',
61
81
  /** en: Genre */
62
82
  Genre: '#GENRE',
63
83
  /** en: Type */
@@ -424,6 +444,8 @@ exports.Text = {
424
444
  TimePlaceholder: '#TIME_PLACEHOLDER',
425
445
  /** en: Enter author... */
426
446
  AuthorPlaceholder: '#AUTHOR_PLACEHOLDER',
447
+ /** en: Enter description... */
448
+ DescriptionPlaceholder: '#DESCRIPTION_PLACEHOLDER',
427
449
  /** en: Enter genre... */
428
450
  GenrePlaceholder: '#GENRE_PLACEHOLDER',
429
451
  /** en: Enter type... */
@@ -652,6 +674,16 @@ exports.Text = {
652
674
  Ranking: '#RANKING',
653
675
  /** en: Score */
654
676
  Score: '#SCORE',
677
+ /** en: Owner */
678
+ Owner: '#OWNER',
679
+ /** en: Admin */
680
+ Admin: '#ADMIN',
681
+ /** en: Moderator */
682
+ Moderator: '#MODERATOR',
683
+ /** en: Reviewer */
684
+ Reviewer: '#REVIEWER',
685
+ /** en: Banned */
686
+ Banned: '#BANNED',
655
687
  /** en: Player */
656
688
  Player: '#PLAYER',
657
689
  /** en: Spectator */
@@ -846,7 +878,7 @@ exports.Text = {
846
878
  Allowed: '#ALLOWED',
847
879
  /** en: Disallow */
848
880
  Disallow: '#DISALLOW',
849
- /** en: DisallowED */
881
+ /** en: Disallowed */
850
882
  Disallowed: '#DISALLOWED',
851
883
  /** en: Approve */
852
884
  Approve: '#APPROVE',
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  exports.version = {
5
- package: '7.9.3',
6
- sonolus: '0.8.8',
5
+ package: '7.10.0',
6
+ sonolus: '0.8.9',
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonolus/core",
3
- "version": "7.9.3",
3
+ "version": "7.10.0",
4
4
  "description": "Core library for Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:Sonolus/sonolus-core",
@@ -20,14 +20,14 @@
20
20
  "build": "tsc -p ."
21
21
  },
22
22
  "devDependencies": {
23
- "@eslint/js": "^9.16.0",
23
+ "@eslint/js": "^9.17.0",
24
24
  "@types/eslint__js": "^8.42.3",
25
- "@types/node": "^20.17.9",
26
- "eslint": "^9.16.0",
25
+ "@types/node": "^20.17.10",
26
+ "eslint": "^9.17.0",
27
27
  "eslint-config-prettier": "^9.1.0",
28
- "prettier": "^3.4.1",
28
+ "prettier": "^3.4.2",
29
29
  "prettier-plugin-organize-imports": "^4.1.0",
30
30
  "typescript": "~5.7.2",
31
- "typescript-eslint": "^8.16.0"
31
+ "typescript-eslint": "^8.18.2"
32
32
  }
33
33
  }