@rpcbase/client 0.477.0 → 0.479.0

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.js CHANGED
@@ -2911,9 +2911,14 @@ var showCustomInAppNotification = (item, renderer) => {
2911
2911
  }
2912
2912
  };
2913
2913
  try {
2914
- const content = renderer(item, controls);
2914
+ const rendered = renderer(item, controls);
2915
+ const result = typeof rendered === "object" && rendered !== null && "content" in rendered ? rendered : null;
2916
+ const content = result ? result.content : rendered;
2915
2917
  if (content === null || content === void 0) return false;
2916
- toastId = toast.custom(() => /* @__PURE__ */ jsx(Fragment, { children: content }), { position: "top-right" });
2918
+ toastId = toast.custom(() => /* @__PURE__ */ jsx(Fragment, { children: content }), {
2919
+ position: "top-right",
2920
+ ...result?.options
2921
+ });
2917
2922
  return true;
2918
2923
  } catch (error) {
2919
2924
  console.error("Failed to render custom notification toast", error);