@placeholderco/placeholder-ui 3.3.3 → 3.3.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.
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
const isFolder = $derived(node.type === 'folder');
|
|
81
81
|
const hasChildren = $derived(isFolder && (node.children?.length ?? 0) > 0);
|
|
82
82
|
const expanded = $derived(!collapsible || !!node.expanded);
|
|
83
|
+
/** Only folders with children get a working chevron; empty folders keep the space for alignment */
|
|
84
|
+
const canToggle = $derived(hasChildren && collapsible);
|
|
83
85
|
|
|
84
86
|
interface TreePayload {
|
|
85
87
|
sourceId: string;
|
|
@@ -183,15 +185,15 @@
|
|
|
183
185
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
184
186
|
<span
|
|
185
187
|
class="ft-chevron"
|
|
186
|
-
class:invisible={!
|
|
188
|
+
class:invisible={!canToggle}
|
|
187
189
|
class:open={expanded}
|
|
188
190
|
onclick={(e) => {
|
|
189
|
-
if (!
|
|
191
|
+
if (!canToggle) return;
|
|
190
192
|
e.stopPropagation();
|
|
191
193
|
onToggle?.(node);
|
|
192
194
|
}}
|
|
193
195
|
ondblclick={(e) => {
|
|
194
|
-
if (
|
|
196
|
+
if (canToggle) e.stopPropagation();
|
|
195
197
|
}}
|
|
196
198
|
>
|
|
197
199
|
<Icon svg={iconChevronRight} size="0.875rem" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@placeholderco/placeholder-ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "A modern, customizable Svelte 5 UI component library with comprehensive theming support. Re-brand it with a single config object.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Placeholderco",
|
|
@@ -70,19 +70,19 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@sveltejs/adapter-static": "^4.0.1",
|
|
73
|
-
"@sveltejs/kit": "^3.
|
|
73
|
+
"@sveltejs/kit": "^3.2.0",
|
|
74
74
|
"@sveltejs/package": "^3.0.2",
|
|
75
75
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
76
76
|
"@types/node": "^26.6.6",
|
|
77
77
|
"globals": "^17.14.0",
|
|
78
|
-
"prettier": "^3.
|
|
78
|
+
"prettier": "^3.10.0",
|
|
79
79
|
"prettier-plugin-svelte": "^4.1.1",
|
|
80
80
|
"publint": "^0.3.25",
|
|
81
81
|
"rimraf": "^6.1.4",
|
|
82
82
|
"svelte": "^5.57.3",
|
|
83
83
|
"svelte-check": "^4.7.8",
|
|
84
84
|
"typescript": "^6.0.3",
|
|
85
|
-
"vite": "^8.3.
|
|
85
|
+
"vite": "^8.3.8"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@codemirror/autocomplete": "^6.20.4",
|
|
@@ -101,23 +101,23 @@
|
|
|
101
101
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
102
102
|
"@codemirror/view": "^6.43.15",
|
|
103
103
|
"@lezer/highlight": "^1.2.5",
|
|
104
|
-
"@tiptap/core": "^3.33.
|
|
105
|
-
"@tiptap/extension-bubble-menu": "^3.33.
|
|
106
|
-
"@tiptap/extension-code-block": "^3.33.
|
|
107
|
-
"@tiptap/extension-collaboration": "^3.33.
|
|
108
|
-
"@tiptap/extension-collaboration-caret": "^3.33.
|
|
109
|
-
"@tiptap/extension-color": "^3.33.
|
|
110
|
-
"@tiptap/extension-image": "^3.33.
|
|
111
|
-
"@tiptap/extension-link": "^3.33.
|
|
112
|
-
"@tiptap/extension-placeholder": "^3.33.
|
|
113
|
-
"@tiptap/extension-subscript": "^3.33.
|
|
114
|
-
"@tiptap/extension-superscript": "^3.33.
|
|
115
|
-
"@tiptap/extension-table": "^3.33.
|
|
116
|
-
"@tiptap/extension-text-align": "^3.33.
|
|
117
|
-
"@tiptap/extension-text-style": "^3.33.
|
|
118
|
-
"@tiptap/extension-underline": "^3.33.
|
|
119
|
-
"@tiptap/pm": "^3.33.
|
|
120
|
-
"@tiptap/starter-kit": "^3.33.
|
|
104
|
+
"@tiptap/core": "^3.33.1",
|
|
105
|
+
"@tiptap/extension-bubble-menu": "^3.33.1",
|
|
106
|
+
"@tiptap/extension-code-block": "^3.33.1",
|
|
107
|
+
"@tiptap/extension-collaboration": "^3.33.1",
|
|
108
|
+
"@tiptap/extension-collaboration-caret": "^3.33.1",
|
|
109
|
+
"@tiptap/extension-color": "^3.33.1",
|
|
110
|
+
"@tiptap/extension-image": "^3.33.1",
|
|
111
|
+
"@tiptap/extension-link": "^3.33.1",
|
|
112
|
+
"@tiptap/extension-placeholder": "^3.33.1",
|
|
113
|
+
"@tiptap/extension-subscript": "^3.33.1",
|
|
114
|
+
"@tiptap/extension-superscript": "^3.33.1",
|
|
115
|
+
"@tiptap/extension-table": "^3.33.1",
|
|
116
|
+
"@tiptap/extension-text-align": "^3.33.1",
|
|
117
|
+
"@tiptap/extension-text-style": "^3.33.1",
|
|
118
|
+
"@tiptap/extension-underline": "^3.33.1",
|
|
119
|
+
"@tiptap/pm": "^3.33.1",
|
|
120
|
+
"@tiptap/starter-kit": "^3.33.1",
|
|
121
121
|
"dayjs": "^1.11.23",
|
|
122
122
|
"svelte-sonner": "^1.2.3",
|
|
123
123
|
"yjs": "^13.6.33"
|