@novely/solid-renderer 0.43.1 → 0.43.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 +2 -1
  2. package/package.json +2 -2
package/dist/index.jsx CHANGED
@@ -5082,6 +5082,7 @@ var showImage = (source, params = {}) => {
5082
5082
  resolve();
5083
5083
  }
5084
5084
  clear(() => {
5085
+ ctx.mutate((s) => s.images[src], void 0);
5085
5086
  data({});
5086
5087
  clearAnimation();
5087
5088
  });
@@ -5101,7 +5102,7 @@ var hideImage = (source, params = {}) => {
5101
5102
  const ctx = useContextState(contextKey);
5102
5103
  const { promise, resolve } = Promise.withResolvers();
5103
5104
  const done = () => {
5104
- ctx.mutate((s) => s.images[typeof source === "object" ? source.id : source], void 0);
5105
+ ctx.mutate((s) => s.images[typeof source === "object" ? source.source : source], void 0);
5105
5106
  resolve();
5106
5107
  };
5107
5108
  const { image, inClasses } = data();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.43.1",
3
+ "version": "0.43.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,7 +20,7 @@
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.47.0",
23
+ "@novely/core": "0.47.1",
24
24
  "@novely/renderer-toolkit": "0.12.0",
25
25
  "@novely/typewriter": "0.5.1"
26
26
  },