@novely/solid-renderer 0.16.1 → 0.16.3

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.
Files changed (2) hide show
  1. package/dist/index.jsx +4 -5
  2. package/package.json +1 -1
package/dist/index.jsx CHANGED
@@ -4575,12 +4575,11 @@ var Save = (props) => {
4575
4575
  } = iframe();
4576
4576
  if (!contentDocument)
4577
4577
  return;
4578
- contentDocument.head.insertAdjacentHTML("beforeend", `<style>:root { font-size: 30%; background: black; cursor: pointer; } *:not(html, body) { pointer-events: none; animation-play-state: paused; }</style><style>${stylesheet()}</style>`);
4578
+ contentDocument.head.insertAdjacentHTML("beforeend", `<style>:root { font-size: 30%; background: black; cursor: pointer; } *:not(html, body) { pointer-events: none; } *, *::before, *::after { animation-play-state: paused !important; }</style><style>${stylesheet()}</style>`);
4579
4579
  contentDocument.body.addEventListener("click", onIframeClick);
4580
4580
  context.root = contentDocument.body;
4581
- options.preview(props.save, KEY).then(() => {
4582
- contentDocument.body.appendChild(game);
4583
- });
4581
+ contentDocument.body.appendChild(game);
4582
+ options.preview(props.save, KEY);
4584
4583
  };
4585
4584
  createEffect(() => {
4586
4585
  const iframeElement = iframe();
@@ -5041,7 +5040,7 @@ var Game = (props) => {
5041
5040
  }
5042
5041
  }), _el$26);
5043
5042
  insert(_el$, createComponent(Modal, {
5044
- isOpen: () => data.globalState.exitPromptShown,
5043
+ isOpen: () => data.globalState.exitPromptShown && !props.isPreview,
5045
5044
  trapFocus: () => !props.isPreview && data.globalState.exitPromptShown,
5046
5045
  get children() {
5047
5046
  const _el$18 = _tmpl$33(), _el$19 = _el$18.firstChild, _el$20 = _el$19.nextSibling, _el$21 = _el$20.nextSibling, _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"