@tnkrai/tnkr-editor 0.4.3 → 0.4.4
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
CHANGED
|
@@ -83558,7 +83558,6 @@ const InlineTextEditor = ({ value, onChange, placeholder = 'Click to edit...', c
|
|
|
83558
83558
|
}
|
|
83559
83559
|
}, [isEditing]);
|
|
83560
83560
|
const displayText = value || placeholder;
|
|
83561
|
-
const isPlaceholder = !value;
|
|
83562
83561
|
if (isEditing) {
|
|
83563
83562
|
const InputComponent = multiline ? 'textarea' : 'input';
|
|
83564
83563
|
return (jsxRuntime.jsx(InputComponent, { ref: inputRef, value: editValue, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, className: `
|
|
@@ -83572,7 +83571,6 @@ const InlineTextEditor = ({ value, onChange, placeholder = 'Click to edit...', c
|
|
|
83572
83571
|
}
|
|
83573
83572
|
return (jsxRuntime.jsx("div", { onClick: handleClick, className: `
|
|
83574
83573
|
cursor-${disabled ? 'default' : 'text'}
|
|
83575
|
-
${isPlaceholder ? 'text-white/40' : 'text-white'}
|
|
83576
83574
|
${disabled ? 'opacity-60' : 'hover:bg-white/5 rounded px-1 -mx-1'}
|
|
83577
83575
|
transition-colors duration-150
|
|
83578
83576
|
${className}
|
|
@@ -86038,7 +86036,7 @@ const PreviewNavbar = ({ organizationName = "Organization", organizationLogo, on
|
|
|
86038
86036
|
const PageContent = ({ category, categories, onGoToPage, showResetCamera }) => {
|
|
86039
86037
|
var _a;
|
|
86040
86038
|
if (!category) {
|
|
86041
|
-
return (jsxRuntime.jsx("div", { className: "flex-1 flex items-center justify-center", children: jsxRuntime.jsxs("div", { className: "text-center", children: [jsxRuntime.jsx("h2", { className: "text-2xl font-semibold text-white mb-4", children: "Welcome to Documentation" }), jsxRuntime.jsx("p", { className: "text-white/60 mb-8
|
|
86039
|
+
return (jsxRuntime.jsx("div", { className: "flex-1 flex items-center justify-center", children: jsxRuntime.jsxs("div", { className: "text-center", children: [jsxRuntime.jsx("h2", { className: "text-2xl font-semibold text-white mb-4", children: "Welcome to Documentation" }), jsxRuntime.jsx("p", { className: "text-white/60 mb-8 w-full", children: "Select a page from the sidebar to view its content. Navigate through categories to explore different sections of the documentation." }), jsxRuntime.jsxs("div", { className: "flex justify-center space-x-4", children: [jsxRuntime.jsxs("div", { className: "px-4 py-2 bg-[#1a1a1a] rounded-lg border border-[#313133]", children: [jsxRuntime.jsx("span", { className: "text-white/50 text-sm", children: "Total Pages" }), jsxRuntime.jsx("p", { className: "text-white text-lg font-semibold", children: countPages(categories) })] }), jsxRuntime.jsxs("div", { className: "px-4 py-2 bg-[#1a1a1a] rounded-lg border border-[#313133]", children: [jsxRuntime.jsx("span", { className: "text-white/50 text-sm", children: "Categories" }), jsxRuntime.jsx("p", { className: "text-white text-lg font-semibold", children: countCategories(categories) })] })] })] }) }));
|
|
86042
86040
|
}
|
|
86043
86041
|
const getParentCategoryName = (cat) => {
|
|
86044
86042
|
// If no parent, return the category's own name
|