@notionhq/custom-blocks 0.1.5 → 0.1.7
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.
|
@@ -65,7 +65,7 @@ export function NotionCustomBlock({ children, timeoutMs, fallback = null, errorF
|
|
|
65
65
|
if (host.status !== "initialized") {
|
|
66
66
|
return _jsx(_Fragment, { children: fallback });
|
|
67
67
|
}
|
|
68
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { role: "status", className: "custom-blocks-standalone-banner", children: "
|
|
68
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { role: "status", className: "custom-blocks-standalone-banner", children: "Host not detected \u2014 running in standalone preview. Try `ntn customblocks dev` to run the block in a local development environment." }), children] }));
|
|
69
69
|
}
|
|
70
70
|
if (!init.isLoaded) {
|
|
71
71
|
return _jsx(_Fragment, { children: fallback });
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -108,8 +108,8 @@ export function NotionCustomBlock({
|
|
|
108
108
|
return (
|
|
109
109
|
<>
|
|
110
110
|
<div role="status" className="custom-blocks-standalone-banner">
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
Host not detected — running in standalone preview. Try `ntn
|
|
112
|
+
customblocks dev` to run the block in a local development environment.
|
|
113
113
|
</div>
|
|
114
114
|
{children}
|
|
115
115
|
</>
|