@novely/solid-renderer 0.28.9 → 0.28.10

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
@@ -5890,8 +5890,7 @@ var MainMenu = () => {
5890
5890
  storageData,
5891
5891
  coreData,
5892
5892
  options,
5893
- $rendererState,
5894
- emitter
5893
+ $rendererState
5895
5894
  } = useData();
5896
5895
  const language = () => storageData().meta[0];
5897
5896
  const rendererStore = from($rendererState);
@@ -5900,14 +5899,10 @@ var MainMenu = () => {
5900
5899
  return;
5901
5900
  $rendererState.mutate((s) => s.screen, screen);
5902
5901
  });
5903
- const emitButtonClick = () => {
5904
- emitter.emit("navigationButton:click", void 0);
5905
- };
5906
5902
  return (() => {
5907
5903
  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
5904
  _el$3.$$click = () => {
5909
5905
  options.newGame();
5910
- emitButtonClick();
5911
5906
  };
5912
5907
  insert(_el$4, () => t("NewGame"));
5913
5908
  insert(_el$3, createComponent(Icon, {
@@ -5915,7 +5910,6 @@ var MainMenu = () => {
5915
5910
  }), null);
5916
5911
  _el$5.$$click = () => {
5917
5912
  options.restore();
5918
- emitButtonClick();
5919
5913
  };
5920
5914
  insert(_el$6, () => t("LoadSave"));
5921
5915
  insert(_el$5, createComponent(Icon, {
@@ -5923,7 +5917,6 @@ var MainMenu = () => {
5923
5917
  }), null);
5924
5918
  _el$7.$$click = () => {
5925
5919
  goto("saves");
5926
- emitButtonClick();
5927
5920
  };
5928
5921
  insert(_el$8, () => t("Saves"));
5929
5922
  insert(_el$7, createComponent(Icon, {
@@ -5931,7 +5924,6 @@ var MainMenu = () => {
5931
5924
  }), null);
5932
5925
  _el$9.$$click = () => {
5933
5926
  goto("settings");
5934
- emitButtonClick();
5935
5927
  };
5936
5928
  insert(_el$10, () => t("Settings"));
5937
5929
  insert(_el$9, createComponent(Icon, {
@@ -5966,8 +5958,7 @@ var Saves = () => {
5966
5958
  const {
5967
5959
  t,
5968
5960
  storageData,
5969
- $rendererState,
5970
- emitter
5961
+ $rendererState
5971
5962
  } = useData();
5972
5963
  const saves = () => storageData().saves;
5973
5964
  const language = () => storageData().meta[0];
@@ -5975,7 +5966,6 @@ var Saves = () => {
5975
5966
  const _el$ = _tmpl$27(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling;
5976
5967
  _el$3.$$click = () => {
5977
5968
  $rendererState.setKey("screen", "mainmenu");
5978
- emitter.emit("navigationButton:click", void 0);
5979
5969
  };
5980
5970
  insert(_el$3, () => t("GoBack"));
5981
5971
  insert(_el$4, createComponent(Show, {
@@ -6019,8 +6009,7 @@ var Settings = (props) => {
6019
6009
  storageData,
6020
6010
  storageDataUpdate,
6021
6011
  options,
6022
- $rendererState,
6023
- emitter
6012
+ $rendererState
6024
6013
  } = useData();
6025
6014
  const language = () => storageData().meta[0];
6026
6015
  const textSpeed = () => storageData().meta[1];
@@ -6063,19 +6052,14 @@ var Settings = (props) => {
6063
6052
  const musicVolumeSelectID = createUniqueId();
6064
6053
  const soundVolumeSelectID = createUniqueId();
6065
6054
  const voiceVolumeSelectID = createUniqueId();
6066
- const emitButtonClick = () => {
6067
- emitter.emit("navigationButton:click", void 0);
6068
- };
6069
6055
  return (() => {
6070
6056
  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
6057
  _el$3.$$click = () => {
6072
6058
  $rendererState.setKey("screen", "mainmenu");
6073
- emitButtonClick();
6074
6059
  };
6075
6060
  insert(_el$3, () => t("HomeScreen"));
6076
6061
  _el$4.$$click = () => {
6077
6062
  options.restore();
6078
- emitButtonClick();
6079
6063
  };
6080
6064
  insert(_el$4, () => t("ToTheGame"));
6081
6065
  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.10",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "retrieved": "^0.1.0",
19
19
  "solid-js": "1.8.5",
20
- "@novely/core": "0.31.2",
20
+ "@novely/core": "0.31.3",
21
21
  "@novely/renderer-toolkit": "0.3.0",
22
22
  "@novely/typewriter": "0.5.1"
23
23
  },