@jxtools/promptline 1.3.0 → 1.3.2
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/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import type { Prompt } from '../types/queue';
|
|
3
3
|
import { api } from '../api/client';
|
|
4
|
+
import { TrashIcon } from './TrashIcon';
|
|
4
5
|
|
|
5
6
|
interface PromptCardProps {
|
|
6
7
|
prompt: Prompt;
|
|
@@ -218,10 +219,7 @@ export function PromptCard({
|
|
|
218
219
|
].join(' ')}
|
|
219
220
|
aria-label="Delete prompt"
|
|
220
221
|
>
|
|
221
|
-
<
|
|
222
|
-
<polyline points="3 6 5 6 21 6" />
|
|
223
|
-
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
|
|
224
|
-
</svg>
|
|
222
|
+
<TrashIcon />
|
|
225
223
|
</button>
|
|
226
224
|
)}
|
|
227
225
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState, useRef } from 'react';
|
|
2
2
|
import { api } from '../api/client';
|
|
3
3
|
import type { SessionWithStatus, SessionStatus, Prompt } from '../types/queue';
|
|
4
|
+
import { TrashIcon } from './TrashIcon';
|
|
4
5
|
import { PromptCard } from './PromptCard';
|
|
5
6
|
import { AddPromptForm } from './AddPromptForm';
|
|
6
7
|
|
|
@@ -117,7 +118,7 @@ export function SessionSection({ session, project, onMutate, defaultExpanded = t
|
|
|
117
118
|
return (
|
|
118
119
|
<div className="border border-[var(--color-border)] rounded-lg overflow-hidden bg-white/[0.02]">
|
|
119
120
|
{/* Session header */}
|
|
120
|
-
<div className="relative
|
|
121
|
+
<div className="relative">
|
|
121
122
|
<button
|
|
122
123
|
type="button"
|
|
123
124
|
onClick={() => setExpanded(v => !v)}
|
|
@@ -157,10 +158,7 @@ export function SessionSection({ session, project, onMutate, defaultExpanded = t
|
|
|
157
158
|
].join(' ')}
|
|
158
159
|
aria-label="Delete session"
|
|
159
160
|
>
|
|
160
|
-
<
|
|
161
|
-
<polyline points="3 6 5 6 21 6" />
|
|
162
|
-
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
|
|
163
|
-
</svg>
|
|
161
|
+
<TrashIcon />
|
|
164
162
|
</button>
|
|
165
163
|
</div>
|
|
166
164
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function TrashIcon() {
|
|
2
|
+
return (
|
|
3
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
4
|
+
<polyline points="3 6 5 6 21 6" />
|
|
5
|
+
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
|
|
6
|
+
</svg>
|
|
7
|
+
);
|
|
8
|
+
}
|