@sonolus/core 7.6.0 → 7.7.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.
Files changed (67) hide show
  1. package/dist/common/core/engine/configuration/ui.d.ts +1 -1
  2. package/dist/common/core/index.d.ts +1 -0
  3. package/dist/common/core/item-type.d.ts +1 -0
  4. package/dist/common/core/server/form.d.ts +1 -1
  5. package/dist/common/core/server/index.d.ts +3 -9
  6. package/dist/common/core/server/index.js +1 -1
  7. package/dist/common/core/server/info.d.ts +10 -0
  8. package/dist/common/core/server/{community → items/community/comment}/comment.d.ts +2 -1
  9. package/dist/common/core/server/items/community/comment/index.d.ts +2 -0
  10. package/dist/common/core/server/items/community/index.d.ts +3 -0
  11. package/dist/common/core/server/items/community/index.js +17 -0
  12. package/dist/common/core/server/items/community/info.d.ts +6 -0
  13. package/dist/common/core/server/items/create.d.ts +8 -0
  14. package/dist/common/core/server/items/details.d.ts +9 -0
  15. package/dist/common/core/server/items/index.d.ts +8 -0
  16. package/dist/common/core/server/items/index.js +18 -0
  17. package/dist/common/core/server/items/info.d.ts +9 -0
  18. package/dist/common/core/server/items/leaderboard/details.d.ts +4 -0
  19. package/dist/common/core/server/items/leaderboard/index.d.ts +3 -0
  20. package/dist/common/core/server/items/leaderboard/index.js +17 -0
  21. package/dist/common/core/server/items/leaderboard/leaderboard.d.ts +5 -0
  22. package/dist/common/core/server/items/leaderboard/record/details.d.ts +4 -0
  23. package/dist/common/core/server/items/leaderboard/record/details.js +2 -0
  24. package/dist/common/core/server/items/leaderboard/record/index.d.ts +3 -0
  25. package/dist/common/core/server/items/leaderboard/record/index.js +2 -0
  26. package/dist/common/core/server/items/leaderboard/record/list.d.ts +5 -0
  27. package/dist/common/core/server/items/leaderboard/record/list.js +2 -0
  28. package/dist/common/core/server/items/leaderboard/record/record.d.ts +7 -0
  29. package/dist/common/core/server/items/leaderboard/record/record.js +2 -0
  30. package/dist/common/core/server/{item-list.d.ts → items/list.d.ts} +1 -1
  31. package/dist/common/core/server/items/list.js +2 -0
  32. package/dist/common/core/server/items/section.d.ts +7 -0
  33. package/dist/common/core/server/items/section.js +2 -0
  34. package/dist/common/core/server/items/upload.d.ts +1 -0
  35. package/dist/common/core/server/items/upload.js +2 -0
  36. package/dist/common/core/server/{create-room.d.ts → multiplayer/create-room.d.ts} +0 -2
  37. package/dist/common/core/server/multiplayer/create-room.js +2 -0
  38. package/dist/common/core/server/multiplayer/events/update-scoreboard-section-icon-event.d.ts +1 -1
  39. package/dist/common/core/server/multiplayer/index.d.ts +2 -0
  40. package/dist/common/core/server/{join-room.d.ts → multiplayer/join-room.d.ts} +1 -1
  41. package/dist/common/core/server/multiplayer/join-room.js +2 -0
  42. package/dist/common/core/server/multiplayer/scoreboard-section.d.ts +1 -1
  43. package/dist/common/core/server/option.d.ts +37 -1
  44. package/dist/common/core/tag.d.ts +1 -1
  45. package/dist/common/database/tag.d.ts +1 -1
  46. package/dist/common/version.js +2 -2
  47. package/package.json +5 -5
  48. package/dist/common/core/server/community/community.d.ts +0 -6
  49. package/dist/common/core/server/community/index.d.ts +0 -4
  50. package/dist/common/core/server/item-details.d.ts +0 -7
  51. package/dist/common/core/server/item-info.d.ts +0 -8
  52. package/dist/common/core/server/item-section.d.ts +0 -7
  53. package/dist/common/core/server/server-info.d.ts +0 -8
  54. /package/dist/common/core/{server/community/comment-list.js → item-type.js} +0 -0
  55. /package/dist/common/core/server/{community/comment.js → info.js} +0 -0
  56. /package/dist/common/core/server/{community/community.js → items/community/comment/comment.js} +0 -0
  57. /package/dist/common/core/server/{community → items/community/comment}/index.js +0 -0
  58. /package/dist/common/core/server/{community/comment-list.d.ts → items/community/comment/list.d.ts} +0 -0
  59. /package/dist/common/core/server/{community/submit.js → items/community/comment/list.js} +0 -0
  60. /package/dist/common/core/server/{create-room.js → items/community/info.js} +0 -0
  61. /package/dist/common/core/server/{community → items/community}/submit.d.ts +0 -0
  62. /package/dist/common/core/server/{item-details.js → items/community/submit.js} +0 -0
  63. /package/dist/common/core/server/{item-info.js → items/create.js} +0 -0
  64. /package/dist/common/core/server/{item-list.js → items/details.js} +0 -0
  65. /package/dist/common/core/server/{item-section.js → items/info.js} +0 -0
  66. /package/dist/common/core/server/{join-room.js → items/leaderboard/details.js} +0 -0
  67. /package/dist/common/core/server/{server-info.js → items/leaderboard/leaderboard.js} +0 -0
@@ -16,7 +16,7 @@ export type EngineConfigurationUI = {
16
16
  judgmentErrorPlacement: EngineConfigurationJudgmentErrorPlacement;
17
17
  judgmentErrorMin: number;
18
18
  };
19
- export type EngineConfigurationMetric = 'arcade' | 'accuracy' | 'life' | 'perfectRate' | 'errorHeatmap';
19
+ export type EngineConfigurationMetric = 'arcade' | 'arcadePercentage' | 'accuracy' | 'accuracyPercentage' | 'life' | 'perfect' | 'perfectPercentage' | 'greatGoodMiss' | 'greatGoodMissPercentage' | 'miss' | 'missPercentage' | 'errorHeatmap';
20
20
  export type EngineConfigurationVisibility = {
21
21
  scale: number;
22
22
  alpha: number;
@@ -5,6 +5,7 @@ export * from './engine';
5
5
  export { GameplayResult } from './gameplay-result';
6
6
  export { Icon } from './icon';
7
7
  export * from './instruction';
8
+ export { ItemType } from './item-type';
8
9
  export * from './level';
9
10
  export * from './package';
10
11
  export * from './particle';
@@ -0,0 +1 @@
1
+ export type ItemType = 'post' | 'playlist' | 'level' | 'skin' | 'background' | 'effect' | 'particle' | 'engine' | 'replay' | 'room';
@@ -4,6 +4,6 @@ import { ServerOption } from './option';
4
4
  export type ServerForm = {
5
5
  type: string;
6
6
  title: Text | (string & {});
7
- icon?: Icon;
7
+ icon?: Icon | (string & {});
8
8
  options: ServerOption[];
9
9
  };
@@ -1,12 +1,6 @@
1
1
  export { AuthenticateServerRequest, AuthenticateServerResponse } from './authenticate';
2
- export * from './community';
3
- export { CreateRoomRequest, CreateRoomResponse } from './create-room';
4
2
  export { ServerForm } from './form';
5
- export { ItemDetails } from './item-details';
6
- export { ItemInfo } from './item-info';
7
- export { ItemList } from './item-list';
8
- export { ItemSection } from './item-section';
9
- export { JoinRoomRequest, JoinRoomResponse } from './join-room';
3
+ export { ServerInfo, ServerInfoButton } from './info';
4
+ export * from './items';
10
5
  export * from './multiplayer';
11
- export { ServerMultiOption, ServerOption, ServerSelectOption, ServerSliderOption, ServerTextAreaOption, ServerTextOption, ServerToggleOption, } from './option';
12
- export { ServerInfo } from './server-info';
6
+ export { ServerCollectionItemOption, ServerFileOption, ServerMultiOption, ServerOption, ServerSelectOption, ServerServerItemOption, ServerSliderOption, ServerTextAreaOption, ServerTextOption, ServerToggleOption, } from './option';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./community"), exports);
17
+ __exportStar(require("./items"), exports);
18
18
  __exportStar(require("./multiplayer"), exports);
@@ -0,0 +1,10 @@
1
+ import { SRL } from '../resource/srl';
2
+ export type ServerInfo = {
3
+ title: string;
4
+ description?: string;
5
+ buttons: ServerInfoButton[];
6
+ banner?: SRL;
7
+ };
8
+ export type ServerInfoButton = {
9
+ type: 'authentication' | 'multiplayer' | 'post' | 'playlist' | 'level' | 'replay' | 'skin' | 'background' | 'effect' | 'particle' | 'engine';
10
+ };
@@ -1,5 +1,6 @@
1
- import { ServerForm } from '../form';
1
+ import { ServerForm } from '../../../form';
2
2
  export type ItemCommunityComment = {
3
+ name: string;
3
4
  author: string;
4
5
  time: number;
5
6
  content: string;
@@ -0,0 +1,2 @@
1
+ export { ItemCommunityComment } from './comment';
2
+ export { ItemCommunityCommentList } from './list';
@@ -0,0 +1,3 @@
1
+ export * from './comment';
2
+ export { ItemCommunityInfo } from './info';
3
+ export { SubmitItemCommunityActionRequest, SubmitItemCommunityActionResponse } from './submit';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./comment"), exports);
@@ -0,0 +1,6 @@
1
+ import { ServerForm } from '../../form';
2
+ import { ItemCommunityComment } from './comment/comment';
3
+ export type ItemCommunityInfo = {
4
+ actions: ServerForm[];
5
+ topComments: ItemCommunityComment[];
6
+ };
@@ -0,0 +1,8 @@
1
+ export type CreateItemRequest = {
2
+ values: string;
3
+ };
4
+ export type CreateItemResponse = {
5
+ name: string;
6
+ key: string;
7
+ hashes: string[];
8
+ };
@@ -0,0 +1,9 @@
1
+ import { ItemLeaderboard } from './leaderboard/leaderboard';
2
+ import { ItemSection } from './section';
3
+ export type ItemDetails<T> = {
4
+ item: T;
5
+ description: string;
6
+ hasCommunity: boolean;
7
+ leaderboards: ItemLeaderboard[];
8
+ sections: ItemSection<T>[];
9
+ };
@@ -0,0 +1,8 @@
1
+ export * from './community';
2
+ export { CreateItemRequest, CreateItemResponse } from './create';
3
+ export { ItemDetails } from './details';
4
+ export { ItemInfo } from './info';
5
+ export * from './leaderboard';
6
+ export { ItemList } from './list';
7
+ export { ItemSection } from './section';
8
+ export { UploadItemResponse } from './upload';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./community"), exports);
18
+ __exportStar(require("./leaderboard"), exports);
@@ -0,0 +1,9 @@
1
+ import { SRL } from '../../resource/srl';
2
+ import { ServerForm } from '../form';
3
+ import { ItemSection } from './section';
4
+ export type ItemInfo<T> = {
5
+ creates?: ServerForm[];
6
+ searches?: ServerForm[];
7
+ sections: ItemSection<T>[];
8
+ banner?: SRL;
9
+ };
@@ -0,0 +1,4 @@
1
+ import { ItemLeaderboardRecord } from './record';
2
+ export type ItemLeaderboardDetails = {
3
+ topRecords: ItemLeaderboardRecord[];
4
+ };
@@ -0,0 +1,3 @@
1
+ export { ItemLeaderboardDetails } from './details';
2
+ export { ItemLeaderboard } from './leaderboard';
3
+ export * from './record';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./record"), exports);
@@ -0,0 +1,5 @@
1
+ import { Text } from '../../../text';
2
+ export type ItemLeaderboard = {
3
+ name: string;
4
+ title: Text | (string & {});
5
+ };
@@ -0,0 +1,4 @@
1
+ import { ReplayItem } from '../../../../replay';
2
+ export type ItemLeaderboardRecordDetails = {
3
+ replays: ReplayItem[];
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { ItemLeaderboardRecordDetails } from './details';
2
+ export { ItemLeaderboardRecordList } from './list';
3
+ export { ItemLeaderboardRecord } from './record';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ItemLeaderboardRecord } from './record';
2
+ export type ItemLeaderboardRecordList = {
3
+ pageCount: number;
4
+ records: ItemLeaderboardRecord[];
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Text } from '../../../../text';
2
+ export type ItemLeaderboardRecord = {
3
+ name: string;
4
+ rank: Text | (string & {});
5
+ player: string;
6
+ value: Text | (string & {});
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { ServerForm } from './form';
1
+ import { ServerForm } from '../form';
2
2
  export type ItemList<T> = {
3
3
  pageCount: number;
4
4
  items: T[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Icon } from '../../icon';
2
+ import { Text } from '../../text';
3
+ export type ItemSection<T> = {
4
+ title: Text | (string & {});
5
+ icon?: Icon | (string & {});
6
+ items: T[];
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type UploadItemResponse = {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,5 @@
1
- import { ServerForm } from './form';
2
1
  export type CreateRoomRequest = {};
3
2
  export type CreateRoomResponse = {
4
3
  name: string;
5
4
  key: string;
6
- creates: ServerForm[];
7
5
  };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,5 @@ import { Icon } from '../../../icon';
2
2
  export type UpdateScoreboardSectionIconEvent = {
3
3
  type: 'updateScoreboardSectionIcon';
4
4
  index: number;
5
- icon?: Icon;
5
+ icon?: Icon | (string & {});
6
6
  };
@@ -1,6 +1,8 @@
1
1
  export { ChatMessage, QuickChatMessage, TextChatMessage } from './chat-message';
2
2
  export * from './commands';
3
+ export { CreateRoomRequest, CreateRoomResponse } from './create-room';
3
4
  export * from './events';
5
+ export { JoinRoomRequest, JoinRoomResponse } from './join-room';
4
6
  export { LevelLocator } from './level-locator';
5
7
  export { LevelOptionEntry } from './level-option-entry';
6
8
  export { ResultEntry } from './result-entry';
@@ -1,4 +1,4 @@
1
- import { UserProfile } from '../service/user-profile';
1
+ import { UserProfile } from '../../service/user-profile';
2
2
  export type JoinRoomRequest = {
3
3
  type: 'authenticateMultiplayer';
4
4
  address: string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,6 @@ import { Text } from '../../text';
3
3
  import { ScoreEntry } from './score-entry';
4
4
  export type ScoreboardSection = {
5
5
  title: Text | (string & {});
6
- icon?: Icon;
6
+ icon?: Icon | (string & {});
7
7
  scores: ScoreEntry[];
8
8
  };
@@ -1,8 +1,11 @@
1
+ import { ItemType } from '../item-type';
1
2
  import { Text } from '../text';
2
- export type ServerOption = ServerTextOption | ServerTextAreaOption | ServerSliderOption | ServerToggleOption | ServerSelectOption | ServerMultiOption;
3
+ export type ServerOption = ServerTextOption | ServerTextAreaOption | ServerSliderOption | ServerToggleOption | ServerSelectOption | ServerMultiOption | ServerServerItemOption | ServerCollectionItemOption | ServerFileOption;
3
4
  export type ServerTextOption = {
4
5
  query: string;
5
6
  name: Text | (string & {});
7
+ description?: string;
8
+ required?: boolean;
6
9
  type: 'text';
7
10
  placeholder: Text | (string & {});
8
11
  limit?: number;
@@ -10,6 +13,8 @@ export type ServerTextOption = {
10
13
  export type ServerTextAreaOption = {
11
14
  query: string;
12
15
  name: Text | (string & {});
16
+ description?: string;
17
+ required?: boolean;
13
18
  type: 'textArea';
14
19
  placeholder: Text | (string & {});
15
20
  limit?: number;
@@ -17,6 +22,8 @@ export type ServerTextAreaOption = {
17
22
  export type ServerSliderOption = {
18
23
  query: string;
19
24
  name: Text | (string & {});
25
+ description?: string;
26
+ required?: boolean;
20
27
  type: 'slider';
21
28
  def: number;
22
29
  min: number;
@@ -27,12 +34,16 @@ export type ServerSliderOption = {
27
34
  export type ServerToggleOption = {
28
35
  query: string;
29
36
  name: Text | (string & {});
37
+ description?: string;
38
+ required?: boolean;
30
39
  type: 'toggle';
31
40
  def: 0 | 1;
32
41
  };
33
42
  export type ServerSelectOption = {
34
43
  query: string;
35
44
  name: Text | (string & {});
45
+ description?: string;
46
+ required?: boolean;
36
47
  type: 'select';
37
48
  def: number;
38
49
  values: (Text | (string & {}))[];
@@ -40,7 +51,32 @@ export type ServerSelectOption = {
40
51
  export type ServerMultiOption = {
41
52
  query: string;
42
53
  name: Text | (string & {});
54
+ description?: string;
55
+ required?: boolean;
43
56
  type: 'multi';
44
57
  defs: boolean[];
45
58
  values: (Text | (string & {}))[];
46
59
  };
60
+ export type ServerServerItemOption = {
61
+ query: string;
62
+ name: Text | (string & {});
63
+ description?: string;
64
+ required?: boolean;
65
+ type: 'serverItem';
66
+ itemType: ItemType;
67
+ };
68
+ export type ServerCollectionItemOption = {
69
+ query: string;
70
+ name: Text | (string & {});
71
+ description?: string;
72
+ required?: boolean;
73
+ type: 'collectionItem';
74
+ itemType: ItemType;
75
+ };
76
+ export type ServerFileOption = {
77
+ query: string;
78
+ name: Text | (string & {});
79
+ description?: string;
80
+ required?: boolean;
81
+ type: 'file';
82
+ };
@@ -2,5 +2,5 @@ import { Icon } from './icon';
2
2
  import { Text } from './text';
3
3
  export type Tag = {
4
4
  title: Text | (string & {});
5
- icon?: Icon;
5
+ icon?: Icon | (string & {});
6
6
  };
@@ -2,5 +2,5 @@ import { Icon } from '../core/icon';
2
2
  import { LocalizationText } from './localization';
3
3
  export type DatabaseTag = {
4
4
  title: LocalizationText;
5
- icon?: Icon;
5
+ icon?: Icon | (string & {});
6
6
  };
@@ -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.6.0',
6
- sonolus: '0.8.2',
5
+ package: '7.7.0',
6
+ sonolus: '0.8.3',
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonolus/core",
3
- "version": "7.6.0",
3
+ "version": "7.7.0",
4
4
  "description": "Core library for Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:Sonolus/sonolus-core",
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@eslint/js": "^8.57.0",
22
- "@types/node": "~20.12.7",
22
+ "@types/node": "~20.14.2",
23
23
  "eslint": "^8.57.0",
24
24
  "eslint-config-prettier": "^9.1.0",
25
- "prettier": "^3.2.5",
25
+ "prettier": "^3.3.2",
26
26
  "prettier-plugin-organize-imports": "^3.2.4",
27
- "typescript": "~5.4.4",
28
- "typescript-eslint": "^7.6.0"
27
+ "typescript": "~5.4.5",
28
+ "typescript-eslint": "^7.13.0"
29
29
  }
30
30
  }
@@ -1,6 +0,0 @@
1
- import { ServerForm } from '../form';
2
- import { ItemCommunityComment } from './comment';
3
- export type ItemCommunity = {
4
- actions: ServerForm[];
5
- topComments: ItemCommunityComment[];
6
- };
@@ -1,4 +0,0 @@
1
- export { ItemCommunityComment } from './comment';
2
- export { ItemCommunityCommentList } from './comment-list';
3
- export { ItemCommunity } from './community';
4
- export { SubmitItemCommunityActionRequest, SubmitItemCommunityActionResponse } from './submit';
@@ -1,7 +0,0 @@
1
- import { ItemSection } from './item-section';
2
- export type ItemDetails<T> = {
3
- item: T;
4
- description: string;
5
- hasCommunity: boolean;
6
- sections: ItemSection<T>[];
7
- };
@@ -1,8 +0,0 @@
1
- import { SRL } from '../resource/srl';
2
- import { ServerForm } from './form';
3
- import { ItemSection } from './item-section';
4
- export type ItemInfo<T> = {
5
- searches?: ServerForm[];
6
- sections: ItemSection<T>[];
7
- banner?: SRL;
8
- };
@@ -1,7 +0,0 @@
1
- import { Icon } from '../icon';
2
- import { Text } from '../text';
3
- export type ItemSection<T> = {
4
- title: Text | (string & {});
5
- icon?: Icon;
6
- items: T[];
7
- };
@@ -1,8 +0,0 @@
1
- import { SRL } from '../resource/srl';
2
- export type ServerInfo = {
3
- title: string;
4
- description?: string;
5
- hasAuthentication: boolean;
6
- hasMultiplayer: boolean;
7
- banner?: SRL;
8
- };