@sonolus/core 7.11.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;
@@ -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
+ };
@@ -389,6 +389,24 @@ export declare const Text: {
389
389
  readonly SimlineAlpha: "#SIMLINE_ALPHA";
390
390
  /** en: Simultaneous Line Animation */
391
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";
392
410
  /** en: None */
393
411
  readonly None: "#NONE";
394
412
  /** en: Any */
@@ -392,6 +392,24 @@ exports.Text = {
392
392
  SimlineAlpha: '#SIMLINE_ALPHA',
393
393
  /** en: Simultaneous Line Animation */
394
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',
395
413
  /** en: None */
396
414
  None: '#NONE',
397
415
  /** en: Any */
@@ -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.11.0',
6
- sonolus: '0.8.10',
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.11.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
  }