@novely/solid-renderer 0.43.0 → 0.43.2

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 -2
  2. package/package.json +2 -2
package/dist/index.jsx CHANGED
@@ -5062,7 +5062,7 @@ var showImage = (source, params = {}) => {
5062
5062
  image.style.setProperty("--z-index", String(params.z || 1));
5063
5063
  }
5064
5064
  ctx.mutate((s) => s.images[src], image);
5065
- const inClasses = (params.in || "").split(" ");
5065
+ const inClasses = params.in ? params.in.split(" ") : [];
5066
5066
  data({
5067
5067
  image,
5068
5068
  inClasses
@@ -5101,7 +5101,7 @@ var hideImage = (source, params = {}) => {
5101
5101
  const ctx = useContextState(contextKey);
5102
5102
  const { promise, resolve } = Promise.withResolvers();
5103
5103
  const done = () => {
5104
- ctx.mutate((s) => s.images[typeof source === "object" ? source.id : source], void 0);
5104
+ ctx.mutate((s) => s.images[typeof source === "object" ? source.source : source], void 0);
5105
5105
  resolve();
5106
5106
  };
5107
5107
  const { image, inClasses } = data();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.43.0",
3
+ "version": "0.43.2",
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
  },