@tnkrai/tnkr-editor 0.1.8 → 0.1.9
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -77364,7 +77364,7 @@ const TnkrPreview = ({ categories, className = "", title, onCategorySelect, orga
|
|
|
77364
77364
|
onCategorySelect === null || onCategorySelect === void 0 ? void 0 : onCategorySelect(page);
|
|
77365
77365
|
}
|
|
77366
77366
|
}, [pagesWithContent, onCategorySelect]);
|
|
77367
|
-
return (jsxRuntimeExports.jsxs("div", { className: `flex flex-col rounded-3xl h-screen
|
|
77367
|
+
return (jsxRuntimeExports.jsxs("div", { className: `flex flex-col rounded-3xl h-screen p-2 bg-[#0D0D0D] border-[#000000] ${className}`, children: [jsxRuntimeExports.jsx(PreviewNavbar, { organizationName: organizationName, organizationLogo: organizationLogo, onContactClick: onContactClick, onDiscussionsClick: onDiscussionsClick }), jsxRuntimeExports.jsxs("div", { className: "flex flex-1 overflow-hidden rounded-b-3xl", children: [jsxRuntimeExports.jsx(PreviewSidebar, { categories: categoriesWithExpansion, selectedCategoryId: selectedCategoryId, onCategorySelect: handleCategorySelect, onToggleExpand: handleToggleExpand }), jsxRuntimeExports.jsx("div", { className: "flex-1 flex flex-col overflow-hidden", children: selectedCategory && ((selectedCategory.hasPage && selectedCategory.pageContent) ||
|
|
77368
77368
|
(selectedCategory.type === "assembly" && selectedCategory.organizationId && selectedCategory.productId)) ? (jsxRuntimeExports.jsxs("div", { className: "flex-1 flex overflow-hidden", children: [jsxRuntimeExports.jsx(PageContent, { category: selectedCategory, categories: categories, onGoToPage: handleGoToPage }), selectedCategory.hasPage && selectedCategory.pageContent && (jsxRuntimeExports.jsx(PageContentNavigator, { content: selectedCategory.pageContent }))] })) : (
|
|
77369
77369
|
/* Show placeholder when no content */
|
|
77370
77370
|
jsxRuntimeExports.jsx("div", { className: "flex-1 flex items-center justify-center", children: jsxRuntimeExports.jsxs("div", { className: "text-center text-white/60", children: [jsxRuntimeExports.jsx("p", { className: "text-lg mb-2", children: "No content available" }), jsxRuntimeExports.jsx("p", { className: "text-sm", children: "Select a page with content to view it here" })] }) })) })] })] }));
|