@novely/solid-renderer 0.28.9 → 0.28.11

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.
package/dist/index.jsx CHANGED
@@ -4261,7 +4261,8 @@ var createAudio = (storageData) => {
4261
4261
  return cached;
4262
4262
  const howl = new import_howler.Howl({
4263
4263
  src,
4264
- volume: getVolume(type)
4264
+ volume: getVolume(type),
4265
+ html5: type === "music"
4265
4266
  });
4266
4267
  store[kind][src] = howl;
4267
4268
  return howl;
@@ -5890,8 +5891,7 @@ var MainMenu = () => {
5890
5891
  storageData,
5891
5892
  coreData,
5892
5893
  options,
5893
- $rendererState,
5894
- emitter
5894
+ $rendererState
5895
5895
  } = useData();
5896
5896
  const language = () => storageData().meta[0];
5897
5897
  const rendererStore = from($rendererState);
@@ -5900,14 +5900,10 @@ var MainMenu = () => {
5900
5900
  return;
5901
5901
  $rendererState.mutate((s) => s.screen, screen);
5902
5902
  });
5903
- const emitButtonClick = () => {
5904
- emitter.emit("navigationButton:click", void 0);
5905
- };
5906
5903
  return (() => {
5907
5904
  const _el$ = _tmpl$21(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.firstChild;
5908
5905
  _el$3.$$click = () => {
5909
5906
  options.newGame();
5910
- emitButtonClick();
5911
5907
  };
5912
5908
  insert(_el$4, () => t("NewGame"));
5913
5909
  insert(_el$3, createComponent(Icon, {
@@ -5915,7 +5911,6 @@ var MainMenu = () => {
5915
5911
  }), null);
5916
5912
  _el$5.$$click = () => {
5917
5913
  options.restore();
5918
- emitButtonClick();
5919
5914
  };
5920
5915
  insert(_el$6, () => t("LoadSave"));
5921
5916
  insert(_el$5, createComponent(Icon, {
@@ -5923,7 +5918,6 @@ var MainMenu = () => {
5923
5918
  }), null);
5924
5919
  _el$7.$$click = () => {
5925
5920
  goto("saves");
5926
- emitButtonClick();
5927
5921
  };
5928
5922
  insert(_el$8, () => t("Saves"));
5929
5923
  insert(_el$7, createComponent(Icon, {
@@ -5931,7 +5925,6 @@ var MainMenu = () => {
5931
5925
  }), null);
5932
5926
  _el$9.$$click = () => {
5933
5927
  goto("settings");
5934
- emitButtonClick();
5935
5928
  };
5936
5929
  insert(_el$10, () => t("Settings"));
5937
5930
  insert(_el$9, createComponent(Icon, {
@@ -5966,8 +5959,7 @@ var Saves = () => {
5966
5959
  const {
5967
5960
  t,
5968
5961
  storageData,
5969
- $rendererState,
5970
- emitter
5962
+ $rendererState
5971
5963
  } = useData();
5972
5964
  const saves = () => storageData().saves;
5973
5965
  const language = () => storageData().meta[0];
@@ -5975,7 +5967,6 @@ var Saves = () => {
5975
5967
  const _el$ = _tmpl$27(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling;
5976
5968
  _el$3.$$click = () => {
5977
5969
  $rendererState.setKey("screen", "mainmenu");
5978
- emitter.emit("navigationButton:click", void 0);
5979
5970
  };
5980
5971
  insert(_el$3, () => t("GoBack"));
5981
5972
  insert(_el$4, createComponent(Show, {
@@ -6019,8 +6010,7 @@ var Settings = (props) => {
6019
6010
  storageData,
6020
6011
  storageDataUpdate,
6021
6012
  options,
6022
- $rendererState,
6023
- emitter
6013
+ $rendererState
6024
6014
  } = useData();
6025
6015
  const language = () => storageData().meta[0];
6026
6016
  const textSpeed = () => storageData().meta[1];
@@ -6063,19 +6053,14 @@ var Settings = (props) => {
6063
6053
  const musicVolumeSelectID = createUniqueId();
6064
6054
  const soundVolumeSelectID = createUniqueId();
6065
6055
  const voiceVolumeSelectID = createUniqueId();
6066
- const emitButtonClick = () => {
6067
- emitter.emit("navigationButton:click", void 0);
6068
- };
6069
6056
  return (() => {
6070
6057
  const _el$ = _tmpl$28(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$8.nextSibling, _el$12 = _el$7.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$13.nextSibling, _el$17 = _el$6.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling, _el$22 = _el$19.nextSibling, _el$23 = _el$18.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling, _el$27 = _el$24.nextSibling, _el$28 = _el$23.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.firstChild, _el$31 = _el$30.nextSibling, _el$32 = _el$29.nextSibling;
6071
6058
  _el$3.$$click = () => {
6072
6059
  $rendererState.setKey("screen", "mainmenu");
6073
- emitButtonClick();
6074
6060
  };
6075
6061
  insert(_el$3, () => t("HomeScreen"));
6076
6062
  _el$4.$$click = () => {
6077
6063
  options.restore();
6078
- emitButtonClick();
6079
6064
  };
6080
6065
  insert(_el$4, () => t("ToTheGame"));
6081
6066
  setAttribute(_el$8, "for", languageSelectID);
package/dist/types.d.ts CHANGED
@@ -44,7 +44,6 @@ type CreateSolidRendererOptions = {
44
44
  };
45
45
  type EmitterEventsMap = {
46
46
  'screen:change': PossibleScreen;
47
- 'navigationButton:click': void;
48
47
  };
49
48
  type RendererStoreExtension = {
50
49
  screens: Record<string, StateScreen>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.28.9",
3
+ "version": "0.28.11",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,8 +17,8 @@
17
17
  "dependencies": {
18
18
  "retrieved": "^0.1.0",
19
19
  "solid-js": "1.8.5",
20
- "@novely/core": "0.31.2",
21
- "@novely/renderer-toolkit": "0.3.0",
20
+ "@novely/core": "0.31.3",
21
+ "@novely/renderer-toolkit": "0.3.1",
22
22
  "@novely/typewriter": "0.5.1"
23
23
  },
24
24
  "peerDependencies": {