@novely/solid-renderer 0.42.0-next.5 → 0.42.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.
@@ -0,0 +1,14 @@
1
+ declare const iconStore: {
2
+ SkipBack: import("solid-js").JSX.Element;
3
+ BookOpen: import("solid-js").JSX.Element;
4
+ FloppyDisk: import("solid-js").JSX.Element;
5
+ GearSix: import("solid-js").JSX.Element;
6
+ SignOut: import("solid-js").JSX.Element;
7
+ List: import("solid-js").JSX.Element;
8
+ X: import("solid-js").JSX.Element;
9
+ Play: import("solid-js").JSX.Element;
10
+ Stop: import("solid-js").JSX.Element;
11
+ ArrowSquareRight: import("solid-js").JSX.Element;
12
+ FilePlus: import("solid-js").JSX.Element;
13
+ Files: import("solid-js").JSX.Element;
14
+ };
File without changes
package/dist/index.jsx CHANGED
@@ -2420,6 +2420,7 @@ var createAudio2 = (storageData) => {
2420
2420
  resource.pause();
2421
2421
  },
2422
2422
  play(loop) {
2423
+ resource.volume = getVolume(method);
2423
2424
  resource.loop = loop;
2424
2425
  resource.play();
2425
2426
  },
@@ -2432,6 +2433,7 @@ var createAudio2 = (storageData) => {
2432
2433
  this.start();
2433
2434
  this.voiceStop();
2434
2435
  const resource = store.voice = getAudio("voice", source);
2436
+ resource.volume = getVolume("voice");
2435
2437
  resource.play();
2436
2438
  },
2437
2439
  voiceStop() {
@@ -2472,9 +2474,14 @@ var createAudio2 = (storageData) => {
2472
2474
  };
2473
2475
  const clear = (keepAudio) => {
2474
2476
  context.voiceStop();
2475
- const musics = Object.entries(store.music).filter(([name]) => !keepAudio.music.has(name)).map(([_, a]) => a);
2476
- const sounds = Object.entries(store.sound).filter(([name]) => !keepAudio.sounds.has(name)).map(([_, a]) => a);
2477
- for (const music of [...musics, ...sounds]) {
2477
+ const entries2 = [
2478
+ [store.music, keepAudio.music],
2479
+ [store.sound, keepAudio.sounds]
2480
+ ];
2481
+ const clearEntries = entries2.flatMap(([incoming, keep]) => {
2482
+ return Object.entries(incoming).filter(([name]) => !keep.has(name)).map(([_, a]) => a);
2483
+ });
2484
+ for (const music of clearEntries) {
2478
2485
  if (!music) continue;
2479
2486
  music.stop();
2480
2487
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.42.0-next.5",
3
+ "version": "0.42.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,13 +20,13 @@
20
20
  "es-toolkit": "^1.23.0",
21
21
  "solid-js": "~1.9.3",
22
22
  "solid-transition-group": "^0.2.3",
23
- "@novely/core": "0.46.0-next.3",
23
+ "@novely/core": "0.46.0",
24
24
  "@novely/renderer-toolkit": "0.12.0",
25
25
  "@novely/typewriter": "0.5.1"
26
26
  },
27
27
  "peerDependencies": {
28
- "solid-js": "*",
29
- "@novely/core": "0.46.0-next.3"
28
+ "@novely/core": "*",
29
+ "solid-js": "*"
30
30
  },
31
31
  "license": "ISC",
32
32
  "bugs": {
@@ -1,14 +0,0 @@
1
- import type { FlowComponent, JSX } from 'solid-js';
2
- type NativeSelectProps = Omit<JSX.SelectHTMLAttributes<HTMLSelectElement>, 'class' | 'id'>;
3
- type SelectProps = NativeSelectProps & {
4
- /**
5
- * Icon HTML string
6
- */
7
- icon: string;
8
- /**
9
- * Label
10
- */
11
- label: string;
12
- };
13
- declare const Select: FlowComponent<SelectProps>;
14
- export { Select };
@@ -1,3 +0,0 @@
1
- import type { FlowComponent } from 'solid-js';
2
- declare const ShadowRoot: FlowComponent;
3
- export { ShadowRoot };
@@ -1,10 +0,0 @@
1
- import type { Character, CharactersData, Lang, ValidAction } from "@novely/core";
2
- type ShowArbitraryCharacterParams<$Characters extends CharactersData<Record<string, Character<Lang>>>, $Character extends keyof $Characters> = {
3
- id: $Character & string;
4
- emotion: $Characters[$Character]['emotions'][number] & string;
5
- extendWith: () => string | string[];
6
- classes?: string;
7
- style?: string;
8
- };
9
- declare const createShowArbitraryCharacterAction: <$Characters extends CharactersData<Record<string, Character>>>() => <$Character extends keyof $Characters>(params: ShowArbitraryCharacterParams<$Characters, $Character>) => ValidAction;
10
- export { createShowArbitraryCharacterAction };
@@ -1,24 +0,0 @@
1
- import type { Character, Lang, ValidAction } from "@novely/core";
2
- type ShowArbitraryCharacterParams<$Characters extends Record<string, Character<Lang>>, $Character extends keyof $Characters> = {
3
- id: $Character & string;
4
- emotion: keyof $Characters[$Character]['emotions'] & string;
5
- extendWith: () => string | string[];
6
- classes?: string;
7
- style?: string;
8
- };
9
- declare const createShowArbitraryCharacterAction: <$Characters extends Record<string, Character>>(_: $Characters) => <$Character extends keyof $Characters>(params: ShowArbitraryCharacterParams<$Characters, $Character>) => ValidAction;
10
- type ShowImageParams = {
11
- z?: number;
12
- in?: string;
13
- class?: string;
14
- style?: string;
15
- position?: string;
16
- await?: boolean;
17
- };
18
- declare const showImage: (source: string, params?: ShowImageParams) => ValidAction;
19
- type HideImageParams = {
20
- out?: string;
21
- await?: boolean;
22
- };
23
- declare const hideImage: (source: string, params?: HideImageParams) => ValidAction;
24
- export { createShowArbitraryCharacterAction, showImage, hideImage };