@sonolus/core 7.10.0 → 7.12.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.
@@ -2,6 +2,7 @@ import { Text } from '../../text';
2
2
  export type EngineConfigurationOption = EngineConfigurationSliderOption | EngineConfigurationToggleOption | EngineConfigurationSelectOption;
3
3
  export type EngineConfigurationSliderOption = {
4
4
  name: Text | (string & {});
5
+ description?: string;
5
6
  standard?: boolean;
6
7
  advanced?: boolean;
7
8
  scope?: string;
@@ -14,6 +15,7 @@ export type EngineConfigurationSliderOption = {
14
15
  };
15
16
  export type EngineConfigurationToggleOption = {
16
17
  name: Text | (string & {});
18
+ description?: string;
17
19
  standard?: boolean;
18
20
  advanced?: boolean;
19
21
  scope?: string;
@@ -22,6 +24,7 @@ export type EngineConfigurationToggleOption = {
22
24
  };
23
25
  export type EngineConfigurationSelectOption = {
24
26
  name: Text | (string & {});
27
+ description?: string;
25
28
  standard?: boolean;
26
29
  advanced?: boolean;
27
30
  scope?: string;
@@ -31,5 +31,5 @@ export type EngineConfigurationAnimationTween = {
31
31
  duration: number;
32
32
  ease: 'linear' | `${'in' | 'out' | 'inOut' | 'outIn'}${'Sine' | 'Quad' | 'Cubic' | 'Quart' | 'Quint' | 'Expo' | 'Circ' | 'Back' | 'Elastic'}` | 'none';
33
33
  };
34
- export type EngineConfigurationJudgmentErrorStyle = 'none' | 'plus' | 'minus' | 'arrowUp' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'triangleUp' | 'triangleDown' | 'triangleLeft' | 'triangleRight';
35
- export type EngineConfigurationJudgmentErrorPlacement = 'both' | 'left' | 'right';
34
+ export type EngineConfigurationJudgmentErrorStyle = 'none' | 'late' | 'early' | 'plus' | 'minus' | 'arrowUp' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'triangleUp' | 'triangleDown' | 'triangleLeft' | 'triangleRight';
35
+ export type EngineConfigurationJudgmentErrorPlacement = 'left' | 'right' | 'leftRight' | 'top' | 'bottom' | 'topBottom' | 'center';
@@ -7,7 +7,7 @@ import { Tag } from '../tag';
7
7
  export type EngineItem = {
8
8
  name: string;
9
9
  source?: string;
10
- version: 12;
10
+ version: 13;
11
11
  title: string;
12
12
  subtitle: string;
13
13
  author: string;
@@ -26,5 +26,5 @@ export type ReplayData = {
26
26
  t: number[];
27
27
  x: number[];
28
28
  y: number[];
29
- }[];
29
+ };
30
30
  };
@@ -1 +1,5 @@
1
- export type ServerUploadItemCommunityCommentActionResponse = object;
1
+ export type ServerUploadItemCommunityCommentActionResponse = {
2
+ shouldUpdateCommunity?: boolean;
3
+ shouldUpdateComments?: boolean;
4
+ shouldNavigateCommentsToPage?: number;
5
+ };
@@ -1 +1,5 @@
1
- export type ServerUploadItemCommunityActionResponse = object;
1
+ export type ServerUploadItemCommunityActionResponse = {
2
+ shouldUpdateCommunity?: boolean;
3
+ shouldUpdateComments?: boolean;
4
+ shouldNavigateCommentsToPage?: number;
5
+ };
@@ -1 +1,5 @@
1
- export type ServerUploadItemActionResponse = object;
1
+ export type ServerUploadItemActionResponse = {
2
+ shouldUpdateItem?: boolean;
3
+ shouldRemoveItem?: boolean;
4
+ shouldNavigateToItem?: string;
5
+ };
@@ -1 +1,4 @@
1
- export type ServerUploadItemResponse = object;
1
+ export type ServerUploadItemResponse = {
2
+ shouldUpdateInfo?: boolean;
3
+ shouldNavigateToItem?: string;
4
+ };
@@ -37,6 +37,68 @@ export declare const Text: {
37
37
  readonly Replay: "#REPLAY";
38
38
  /** en: Room */
39
39
  readonly Room: "#ROOM";
40
+ /** en: Thumbnail */
41
+ readonly PostThumbnail: "#POST_THUMBNAIL";
42
+ /** en: Thumbnail */
43
+ readonly PlaylistThumbnail: "#PLAYLIST_THUMBNAIL";
44
+ /** en: Cover */
45
+ readonly LevelCover: "#LEVEL_COVER";
46
+ /** en: BGM */
47
+ readonly LevelBgm: "#LEVEL_BGM";
48
+ /** en: Preview */
49
+ readonly LevelPreview: "#LEVEL_PREVIEW";
50
+ /** en: Data */
51
+ readonly LevelData: "#LEVEL_DATA";
52
+ /** en: Thumbnail */
53
+ readonly SkinThumbnail: "#SKIN_THUMBNAIL";
54
+ /** en: Data */
55
+ readonly SkinData: "#SKIN_DATA";
56
+ /** en: Texture */
57
+ readonly SkinTexture: "#SKIN_TEXTURE";
58
+ /** en: Thumbnail */
59
+ readonly BackgroundThumbnail: "#BACKGROUND_THUMBNAIL";
60
+ /** en: Image */
61
+ readonly BackgroundImage: "#BACKGROUND_IMAGE";
62
+ /** en: Data */
63
+ readonly BackgroundData: "#BACKGROUND_DATA";
64
+ /** en: Configuration */
65
+ readonly BackgroundConfiguration: "#BACKGROUND_CONFIGURATION";
66
+ /** en: Thumbnail */
67
+ readonly EffectThumbnail: "#EFFECT_THUMBNAIL";
68
+ /** en: Data */
69
+ readonly EffectData: "#EFFECT_DATA";
70
+ /** en: Audio */
71
+ readonly EffectAudio: "#EFFECT_AUDIO";
72
+ /** en: Thumbnail */
73
+ readonly ParticleThumbnail: "#PARTICLE_THUMBNAIL";
74
+ /** en: Data */
75
+ readonly ParticleData: "#PARTICLE_DATA";
76
+ /** en: Texture */
77
+ readonly ParticleTexture: "#PARTICLE_TEXTURE";
78
+ /** en: Thumbnail */
79
+ readonly EngineThumbnail: "#ENGINE_THUMBNAIL";
80
+ /** en: Play Data */
81
+ readonly EnginePlaydata: "#ENGINE_PLAYDATA";
82
+ /** en: Watch Data */
83
+ readonly EngineWatchdata: "#ENGINE_WATCHDATA";
84
+ /** en: Preview Data */
85
+ readonly EnginePreviewdata: "#ENGINE_PREVIEWDATA";
86
+ /** en: Tutorial Data */
87
+ readonly EngineTutorialdata: "#ENGINE_TUTORIALDATA";
88
+ /** en: ROM */
89
+ readonly EngineRom: "#ENGINE_ROM";
90
+ /** en: Configuration */
91
+ readonly EngineConfiguration: "#ENGINE_CONFIGURATION";
92
+ /** en: Data */
93
+ readonly ReplayData: "#REPLAY_DATA";
94
+ /** en: Configuration */
95
+ readonly ReplayConfiguration: "#REPLAY_CONFIGURATION";
96
+ /** en: Cover */
97
+ readonly RoomCover: "#ROOM_COVER";
98
+ /** en: BGM */
99
+ readonly RoomBgm: "#ROOM_BGM";
100
+ /** en: Preview */
101
+ readonly RoomPreview: "#ROOM_PREVIEW";
40
102
  /** en: Grade */
41
103
  readonly Grade: "#GRADE";
42
104
  /** en: Arcade Score */
@@ -53,6 +115,10 @@ export declare const Text: {
53
115
  readonly Good: "#GOOD";
54
116
  /** en: Miss */
55
117
  readonly Miss: "#MISS";
118
+ /** en: Filter */
119
+ readonly Filter: "#FILTER";
120
+ /** en: Sort */
121
+ readonly Sort: "#SORT";
56
122
  /** en: Keywords */
57
123
  readonly Keywords: "#KEYWORDS";
58
124
  /** en: Name */
@@ -81,6 +147,8 @@ export declare const Text: {
81
147
  readonly Type: "#TYPE";
82
148
  /** en: Category */
83
149
  readonly Category: "#CATEGORY";
150
+ /** en: Status */
151
+ readonly Status: "#STATUS";
84
152
  /** en: Language */
85
153
  readonly Language: "#LANGUAGE";
86
154
  /** en: Difficulty */
@@ -321,6 +389,24 @@ export declare const Text: {
321
389
  readonly SimlineAlpha: "#SIMLINE_ALPHA";
322
390
  /** en: Simultaneous Line Animation */
323
391
  readonly SimlineAnimation: "#SIMLINE_ANIMATION";
392
+ /** en: Preview Vertical Scale */
393
+ readonly PreviewScaleVertical: "#PREVIEW_SCALE_VERTICAL";
394
+ /** en: Preview Horizontal Scale */
395
+ readonly PreviewScaleHorizontal: "#PREVIEW_SCALE_HORIZONTAL";
396
+ /** en: Preview Time */
397
+ readonly PreviewTime: "#PREVIEW_TIME";
398
+ /** en: Preview Score */
399
+ readonly PreviewScore: "#PREVIEW_SCORE";
400
+ /** en: Preview BPM */
401
+ readonly PreviewBpm: "#PREVIEW_BPM";
402
+ /** en: Preview Time Scale */
403
+ readonly PreviewTimescale: "#PREVIEW_TIMESCALE";
404
+ /** en: Preview Beat */
405
+ readonly PreviewBeat: "#PREVIEW_BEAT";
406
+ /** en: Preview Measure */
407
+ readonly PreviewMeasure: "#PREVIEW_MEASURE";
408
+ /** en: Preview Combo */
409
+ readonly PreviewCombo: "#PREVIEW_COMBO";
324
410
  /** en: None */
325
411
  readonly None: "#NONE";
326
412
  /** en: Any */
@@ -483,10 +569,48 @@ export declare const Text: {
483
569
  readonly UserPlaceholder: "#USER_PLACEHOLDER";
484
570
  /** en: {0}% */
485
571
  readonly PercentageUnit: "#PERCENTAGE_UNIT";
572
+ /** en: {0} yr */
573
+ readonly YearUnit: "#YEAR_UNIT";
574
+ /** en: {0} mo */
575
+ readonly MonthUnit: "#MONTH_UNIT";
576
+ /** en: {0} d */
577
+ readonly DayUnit: "#DAY_UNIT";
578
+ /** en: {0} h */
579
+ readonly HourUnit: "#HOUR_UNIT";
580
+ /** en: {0} m */
581
+ readonly MinuteUnit: "#MINUTE_UNIT";
486
582
  /** en: {0} s */
487
583
  readonly SecondUnit: "#SECOND_UNIT";
488
584
  /** en: {0} ms */
489
585
  readonly MillisecondUnit: "#MILLISECOND_UNIT";
586
+ /** en: {0} yr ago */
587
+ readonly YearPast: "#YEAR_PAST";
588
+ /** en: {0} mo ago */
589
+ readonly MonthPast: "#MONTH_PAST";
590
+ /** en: {0} d ago */
591
+ readonly DayPast: "#DAY_PAST";
592
+ /** en: {0} h ago */
593
+ readonly HourPast: "#HOUR_PAST";
594
+ /** en: {0} m ago */
595
+ readonly MinutePast: "#MINUTE_PAST";
596
+ /** en: {0} s ago */
597
+ readonly SecondPast: "#SECOND_PAST";
598
+ /** en: {0} ms ago */
599
+ readonly MillisecondPast: "#MILLISECOND_PAST";
600
+ /** en: In {0} yr */
601
+ readonly YearFuture: "#YEAR_FUTURE";
602
+ /** en: In {0} mo */
603
+ readonly MonthFuture: "#MONTH_FUTURE";
604
+ /** en: In {0} d */
605
+ readonly DayFuture: "#DAY_FUTURE";
606
+ /** en: In {0} h */
607
+ readonly HourFuture: "#HOUR_FUTURE";
608
+ /** en: In {0} m */
609
+ readonly MinuteFuture: "#MINUTE_FUTURE";
610
+ /** en: In {0} s */
611
+ readonly SecondFuture: "#SECOND_FUTURE";
612
+ /** en: In {0} ms */
613
+ readonly MillisecondFuture: "#MILLISECOND_FUTURE";
490
614
  /** en: Tap */
491
615
  readonly Tap: "#TAP";
492
616
  /** en: Tap and Hold */
@@ -40,6 +40,68 @@ exports.Text = {
40
40
  Replay: '#REPLAY',
41
41
  /** en: Room */
42
42
  Room: '#ROOM',
43
+ /** en: Thumbnail */
44
+ PostThumbnail: '#POST_THUMBNAIL',
45
+ /** en: Thumbnail */
46
+ PlaylistThumbnail: '#PLAYLIST_THUMBNAIL',
47
+ /** en: Cover */
48
+ LevelCover: '#LEVEL_COVER',
49
+ /** en: BGM */
50
+ LevelBgm: '#LEVEL_BGM',
51
+ /** en: Preview */
52
+ LevelPreview: '#LEVEL_PREVIEW',
53
+ /** en: Data */
54
+ LevelData: '#LEVEL_DATA',
55
+ /** en: Thumbnail */
56
+ SkinThumbnail: '#SKIN_THUMBNAIL',
57
+ /** en: Data */
58
+ SkinData: '#SKIN_DATA',
59
+ /** en: Texture */
60
+ SkinTexture: '#SKIN_TEXTURE',
61
+ /** en: Thumbnail */
62
+ BackgroundThumbnail: '#BACKGROUND_THUMBNAIL',
63
+ /** en: Image */
64
+ BackgroundImage: '#BACKGROUND_IMAGE',
65
+ /** en: Data */
66
+ BackgroundData: '#BACKGROUND_DATA',
67
+ /** en: Configuration */
68
+ BackgroundConfiguration: '#BACKGROUND_CONFIGURATION',
69
+ /** en: Thumbnail */
70
+ EffectThumbnail: '#EFFECT_THUMBNAIL',
71
+ /** en: Data */
72
+ EffectData: '#EFFECT_DATA',
73
+ /** en: Audio */
74
+ EffectAudio: '#EFFECT_AUDIO',
75
+ /** en: Thumbnail */
76
+ ParticleThumbnail: '#PARTICLE_THUMBNAIL',
77
+ /** en: Data */
78
+ ParticleData: '#PARTICLE_DATA',
79
+ /** en: Texture */
80
+ ParticleTexture: '#PARTICLE_TEXTURE',
81
+ /** en: Thumbnail */
82
+ EngineThumbnail: '#ENGINE_THUMBNAIL',
83
+ /** en: Play Data */
84
+ EnginePlaydata: '#ENGINE_PLAYDATA',
85
+ /** en: Watch Data */
86
+ EngineWatchdata: '#ENGINE_WATCHDATA',
87
+ /** en: Preview Data */
88
+ EnginePreviewdata: '#ENGINE_PREVIEWDATA',
89
+ /** en: Tutorial Data */
90
+ EngineTutorialdata: '#ENGINE_TUTORIALDATA',
91
+ /** en: ROM */
92
+ EngineRom: '#ENGINE_ROM',
93
+ /** en: Configuration */
94
+ EngineConfiguration: '#ENGINE_CONFIGURATION',
95
+ /** en: Data */
96
+ ReplayData: '#REPLAY_DATA',
97
+ /** en: Configuration */
98
+ ReplayConfiguration: '#REPLAY_CONFIGURATION',
99
+ /** en: Cover */
100
+ RoomCover: '#ROOM_COVER',
101
+ /** en: BGM */
102
+ RoomBgm: '#ROOM_BGM',
103
+ /** en: Preview */
104
+ RoomPreview: '#ROOM_PREVIEW',
43
105
  /** en: Grade */
44
106
  Grade: '#GRADE',
45
107
  /** en: Arcade Score */
@@ -56,6 +118,10 @@ exports.Text = {
56
118
  Good: '#GOOD',
57
119
  /** en: Miss */
58
120
  Miss: '#MISS',
121
+ /** en: Filter */
122
+ Filter: '#FILTER',
123
+ /** en: Sort */
124
+ Sort: '#SORT',
59
125
  /** en: Keywords */
60
126
  Keywords: '#KEYWORDS',
61
127
  /** en: Name */
@@ -84,6 +150,8 @@ exports.Text = {
84
150
  Type: '#TYPE',
85
151
  /** en: Category */
86
152
  Category: '#CATEGORY',
153
+ /** en: Status */
154
+ Status: '#STATUS',
87
155
  /** en: Language */
88
156
  Language: '#LANGUAGE',
89
157
  /** en: Difficulty */
@@ -324,6 +392,24 @@ exports.Text = {
324
392
  SimlineAlpha: '#SIMLINE_ALPHA',
325
393
  /** en: Simultaneous Line Animation */
326
394
  SimlineAnimation: '#SIMLINE_ANIMATION',
395
+ /** en: Preview Vertical Scale */
396
+ PreviewScaleVertical: '#PREVIEW_SCALE_VERTICAL',
397
+ /** en: Preview Horizontal Scale */
398
+ PreviewScaleHorizontal: '#PREVIEW_SCALE_HORIZONTAL',
399
+ /** en: Preview Time */
400
+ PreviewTime: '#PREVIEW_TIME',
401
+ /** en: Preview Score */
402
+ PreviewScore: '#PREVIEW_SCORE',
403
+ /** en: Preview BPM */
404
+ PreviewBpm: '#PREVIEW_BPM',
405
+ /** en: Preview Time Scale */
406
+ PreviewTimescale: '#PREVIEW_TIMESCALE',
407
+ /** en: Preview Beat */
408
+ PreviewBeat: '#PREVIEW_BEAT',
409
+ /** en: Preview Measure */
410
+ PreviewMeasure: '#PREVIEW_MEASURE',
411
+ /** en: Preview Combo */
412
+ PreviewCombo: '#PREVIEW_COMBO',
327
413
  /** en: None */
328
414
  None: '#NONE',
329
415
  /** en: Any */
@@ -486,10 +572,48 @@ exports.Text = {
486
572
  UserPlaceholder: '#USER_PLACEHOLDER',
487
573
  /** en: {0}% */
488
574
  PercentageUnit: '#PERCENTAGE_UNIT',
575
+ /** en: {0} yr */
576
+ YearUnit: '#YEAR_UNIT',
577
+ /** en: {0} mo */
578
+ MonthUnit: '#MONTH_UNIT',
579
+ /** en: {0} d */
580
+ DayUnit: '#DAY_UNIT',
581
+ /** en: {0} h */
582
+ HourUnit: '#HOUR_UNIT',
583
+ /** en: {0} m */
584
+ MinuteUnit: '#MINUTE_UNIT',
489
585
  /** en: {0} s */
490
586
  SecondUnit: '#SECOND_UNIT',
491
587
  /** en: {0} ms */
492
588
  MillisecondUnit: '#MILLISECOND_UNIT',
589
+ /** en: {0} yr ago */
590
+ YearPast: '#YEAR_PAST',
591
+ /** en: {0} mo ago */
592
+ MonthPast: '#MONTH_PAST',
593
+ /** en: {0} d ago */
594
+ DayPast: '#DAY_PAST',
595
+ /** en: {0} h ago */
596
+ HourPast: '#HOUR_PAST',
597
+ /** en: {0} m ago */
598
+ MinutePast: '#MINUTE_PAST',
599
+ /** en: {0} s ago */
600
+ SecondPast: '#SECOND_PAST',
601
+ /** en: {0} ms ago */
602
+ MillisecondPast: '#MILLISECOND_PAST',
603
+ /** en: In {0} yr */
604
+ YearFuture: '#YEAR_FUTURE',
605
+ /** en: In {0} mo */
606
+ MonthFuture: '#MONTH_FUTURE',
607
+ /** en: In {0} d */
608
+ DayFuture: '#DAY_FUTURE',
609
+ /** en: In {0} h */
610
+ HourFuture: '#HOUR_FUTURE',
611
+ /** en: In {0} m */
612
+ MinuteFuture: '#MINUTE_FUTURE',
613
+ /** en: In {0} s */
614
+ SecondFuture: '#SECOND_FUTURE',
615
+ /** en: In {0} ms */
616
+ MillisecondFuture: '#MILLISECOND_FUTURE',
493
617
  /** en: Tap */
494
618
  Tap: '#TAP',
495
619
  /** en: Tap and Hold */
@@ -3,7 +3,7 @@ import { LocalizationText } from '../localization';
3
3
  import { DatabaseTag } from '../tag';
4
4
  export interface DatabaseEngineItem {
5
5
  name: string;
6
- version: 12;
6
+ version: 13;
7
7
  title: LocalizationText;
8
8
  subtitle: LocalizationText;
9
9
  author: LocalizationText;
@@ -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.10.0',
6
- sonolus: '0.8.9',
5
+ package: '7.12.0',
6
+ sonolus: '0.8.11',
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonolus/core",
3
- "version": "7.10.0",
3
+ "version": "7.12.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.17.0",
23
+ "@eslint/js": "^9.20.0",
24
24
  "@types/eslint__js": "^8.42.3",
25
- "@types/node": "^20.17.10",
26
- "eslint": "^9.17.0",
27
- "eslint-config-prettier": "^9.1.0",
28
- "prettier": "^3.4.2",
25
+ "@types/node": "^20.17.19",
26
+ "eslint": "^9.20.1",
27
+ "eslint-config-prettier": "^10.0.1",
28
+ "prettier": "^3.5.1",
29
29
  "prettier-plugin-organize-imports": "^4.1.0",
30
- "typescript": "~5.7.2",
31
- "typescript-eslint": "^8.18.2"
30
+ "typescript": "~5.7.3",
31
+ "typescript-eslint": "^8.24.1"
32
32
  }
33
33
  }