@burdenoff/microfe-vibecontrols 2026.602.1 → 2026.602.3

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.
Files changed (32) hide show
  1. package/dist/components/sessions/SessionShareDialog.js +24 -462
  2. package/dist/components/sessions/SessionShareDialog.js.map +1 -1
  3. package/dist/components/sharing/entityShareOps.js +106 -0
  4. package/dist/components/sharing/entityShareOps.js.map +1 -1
  5. package/dist/components/sharing/shareRegistry.js +3 -3
  6. package/dist/components/sharing/shareRegistry.js.map +1 -1
  7. package/dist/components/vibedeck/VibeDeckShareDialog.js +19 -335
  8. package/dist/components/vibedeck/VibeDeckShareDialog.js.map +1 -1
  9. package/dist/components/vibes/DeleteVibeDialog.js +130 -0
  10. package/dist/components/vibes/DeleteVibeDialog.js.map +1 -0
  11. package/dist/components/vibes/VibeCard.js +64 -56
  12. package/dist/components/vibes/VibeCard.js.map +1 -1
  13. package/dist/components/vibes/VibeList.js +132 -113
  14. package/dist/components/vibes/VibeList.js.map +1 -1
  15. package/dist/components/vibes/index.js +1 -0
  16. package/dist/constants/permissions.js +1 -0
  17. package/dist/constants/permissions.js.map +1 -1
  18. package/dist/generated/wspace-operations.js +2 -2
  19. package/dist/generated/wspace-operations.js.map +1 -1
  20. package/dist/generated/wspace-types.js +9 -11
  21. package/dist/generated/wspace-types.js.map +1 -1
  22. package/dist/pages/SessionsPage.js +1011 -1007
  23. package/dist/pages/SessionsPage.js.map +1 -1
  24. package/dist/pages/VibeDeckPage.js +40 -41
  25. package/dist/pages/VibeDeckPage.js.map +1 -1
  26. package/dist/pages/VibeDetailsPage.js +560 -523
  27. package/dist/pages/VibeDetailsPage.js.map +1 -1
  28. package/dist/pages/VibesPage.js +311 -280
  29. package/dist/pages/VibesPage.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/utils/shareUrl.js +0 -41
  32. package/dist/utils/shareUrl.js.map +0 -1
@@ -1,341 +1,25 @@
1
- import { useCreateVibeDeckShareLinkMutation as e, useListVibeDeckShareLinksQuery as t, useRevokeVibeDeckShareLinkMutation as n } from "../../generated/wspace-operations.js";
2
- import { useTr as ee } from "../../shared/hooks/useTr.js";
3
- import { buildEmbedUrl as r, copyTextToClipboard as i, escapeHtmlAttribute as a, normalizeShareUrl as o } from "../../utils/shareUrl.js";
4
- import { useCallback as s, useState as c } from "react";
5
- import { Check as l, Code as u, Copy as d, Eye as f, Globe as p, Link2 as m, Loader2 as h, Lock as g, Play as _, Shield as v, Trash2 as te, Users as ne, X as y } from "lucide-react";
6
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
1
+ import { useEntityShareController as e } from "../sharing/useEntityShareController.js";
2
+ import { getStoredWorkspaceId as t } from "@burdenoff/fe-libs/shared/graphql";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { ShareDialog as r } from "@burdenoff/fe-libs/sharing";
7
5
  //#region src/components/vibedeck/VibeDeckShareDialog.tsx
8
- var C = [
9
- {
10
- value: "SIGNED_LINK",
11
- label: "Anyone with the link",
12
- description: "Anyone who has the link can access, no login required",
13
- icon: m
14
- },
15
- {
16
- value: "PUBLIC",
17
- label: "Public",
18
- description: "Anyone can discover and access this deck",
19
- icon: p
20
- },
21
- {
22
- value: "RESTRICTED",
23
- label: "Restricted",
24
- description: "Only people with permission can access (requires login)",
25
- icon: g
26
- }
27
- ], w = [{
28
- value: "VIEW",
29
- label: "Viewer",
30
- description: "Can view the deck",
31
- icon: f
32
- }, {
33
- value: "EXECUTE",
34
- label: "Can execute",
35
- description: "Can view and execute buttons",
36
- icon: _
37
- }], T = ({ vibeDeckId: T, vibeDeckName: E, onClose: D }) => {
38
- let O = ee(), [k, A] = c(null), [re, j] = c(null), [M, N] = c(null), [P, F] = c(null), [I, L] = c("SIGNED_LINK"), [R, z] = c("EXECUTE"), [B, V] = c(""), [H, U] = c(""), [W, G] = c(!1), [K, q] = c(""), { data: J, loading: Y, refetch: ie } = t({ variables: { vibeDeckId: T } }), [X, { loading: Z }] = e({ refetchQueries: ["ListVibeDeckShareLinks"] }), [Q] = n({ refetchQueries: ["ListVibeDeckShareLinks"] }), $ = J?.vibeDeckShareLinks || [], ae = s(async () => {
39
- try {
40
- await X({ variables: { input: {
41
- vibeDeckId: T,
42
- name: K || null,
43
- visibility: I,
44
- permission: R,
45
- expiresInHours: B ? parseInt(B, 10) : null,
46
- password: H || null,
47
- allowIframe: W
48
- } } }), q(""), U(""), V(""), G(!1);
49
- } catch {}
50
- }, [
51
- X,
52
- T,
53
- K,
54
- I,
55
- R,
56
- B,
57
- H,
58
- W
59
- ]), oe = s(async (e) => {
60
- try {
61
- await Q({ variables: { id: e } });
62
- } catch {}
63
- }, [Q]), se = s(async (e, t) => {
64
- let n = await i(o(t)).then(() => !0, (e) => (console.warn("Failed to copy VibeDeck share link:", e), !1));
65
- A(n ? e : null), N(n ? null : e), setTimeout(() => {
66
- A(null), N(null);
67
- }, 2e3);
68
- }, []), ce = s(async (e, t) => {
69
- let n = await i(`<iframe src="${a(r(t))}" width="100%" height="600" frameborder="0" allow="clipboard-write" style="border-radius: 8px; border: 1px solid var(--color-border-subtle);"></iframe>`).then(() => !0, (e) => (console.warn("Failed to copy VibeDeck embed code:", e), !1));
70
- j(n ? e : null), F(n ? null : e), setTimeout(() => {
71
- j(null), F(null);
72
- }, 2e3);
73
- }, []), le = (e) => {
74
- switch (e) {
75
- case "PUBLIC": return /* @__PURE__ */ x(p, {
76
- size: 14,
77
- className: "text-status-success-text"
78
- });
79
- case "RESTRICTED": return /* @__PURE__ */ x(g, {
80
- size: 14,
81
- className: "text-status-warning-text"
82
- });
83
- default: return /* @__PURE__ */ x(m, {
84
- size: 14,
85
- className: "text-status-info-text"
86
- });
87
- }
88
- };
89
- return /* @__PURE__ */ x("div", {
90
- className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-elevated/60 backdrop-blur-sm",
91
- children: /* @__PURE__ */ S("div", {
92
- className: "bg-bg-surface border border-border-default rounded-xl shadow-2xl w-full max-w-lg mx-4 max-h-[85vh] flex flex-col",
93
- children: [/* @__PURE__ */ S("div", {
94
- className: "flex items-center justify-between px-6 py-4 border-b border-border-default",
95
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("h2", {
96
- className: "text-lg font-semibold text-text-primary",
97
- children: [
98
- "Share \"",
99
- E,
100
- "\""
101
- ]
102
- }), /* @__PURE__ */ x("p", {
103
- className: "text-sm text-text-secondary mt-0.5",
104
- children: O("vibecontrols.vibedeck.share.manageAccess", "Manage access to this VibeDeck")
105
- })] }), /* @__PURE__ */ x("button", {
106
- type: "button",
107
- onClick: D,
108
- className: "p-1.5 rounded-lg hover:bg-bg-tertiary text-text-tertiary hover:text-text-primary transition-colors",
109
- children: /* @__PURE__ */ x(y, { size: 18 })
110
- })]
111
- }), /* @__PURE__ */ S("div", {
112
- className: "overflow-y-auto flex-1 px-6 py-4 space-y-6",
113
- children: [/* @__PURE__ */ S("div", {
114
- className: "space-y-4",
115
- children: [
116
- /* @__PURE__ */ S("h3", {
117
- className: "text-sm font-medium text-text-primary flex items-center gap-2",
118
- children: [/* @__PURE__ */ x(m, { size: 14 }), O("vibecontrols.vibedeck.share.createShareLink", "Create share link")]
119
- }),
120
- /* @__PURE__ */ x("input", {
121
- "aria-label": "Link name (optional)",
122
- type: "text",
123
- value: K,
124
- onChange: (e) => q(e.target.value),
125
- placeholder: "Link name (optional)",
126
- className: "w-full px-3 py-2 text-sm bg-bg-sunken border border-border-default rounded-lg text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
127
- }),
128
- /* @__PURE__ */ S("div", {
129
- className: "space-y-2",
130
- children: [/* @__PURE__ */ x("label", {
131
- htmlFor: "vibedecksharedialog-37",
132
- className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
133
- children: "Access"
134
- }), /* @__PURE__ */ x("div", {
135
- className: "grid grid-cols-3 gap-2",
136
- children: C.map((e) => {
137
- let t = e.icon;
138
- return /* @__PURE__ */ S("button", {
139
- type: "button",
140
- onClick: () => L(e.value),
141
- className: `flex flex-col items-center gap-1.5 p-3 rounded-lg border-2 text-xs font-medium transition-all ${I === e.value ? "border-action-primary-bg bg-action-primary-bg/10 text-action-primary-bg" : "border-border-default text-text-secondary hover:border-border-default hover:bg-bg-secondary"}`,
142
- title: e.description,
143
- children: [/* @__PURE__ */ x(t, { size: 16 }), /* @__PURE__ */ x("span", {
144
- className: "text-center leading-tight",
145
- children: e.label
146
- })]
147
- }, e.value);
148
- })
149
- })]
150
- }),
151
- /* @__PURE__ */ S("div", {
152
- className: "space-y-2",
153
- children: [/* @__PURE__ */ x("label", {
154
- htmlFor: "vibedecksharedialog-37",
155
- className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
156
- children: "Permission"
157
- }), /* @__PURE__ */ x("div", {
158
- className: "grid grid-cols-2 gap-2",
159
- children: w.map((e) => {
160
- let t = e.icon;
161
- return /* @__PURE__ */ S("button", {
162
- type: "button",
163
- onClick: () => z(e.value),
164
- className: `flex items-center gap-2 p-3 rounded-lg border-2 text-sm font-medium transition-all ${R === e.value ? "border-action-primary-bg bg-action-primary-bg/10 text-action-primary-bg" : "border-border-default text-text-secondary hover:border-border-default hover:bg-bg-secondary"}`,
165
- children: [/* @__PURE__ */ x(t, { size: 14 }), e.label]
166
- }, e.value);
167
- })
168
- })]
169
- }),
170
- /* @__PURE__ */ S("div", {
171
- className: "grid grid-cols-2 gap-3",
172
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
173
- htmlFor: "vibedecksharedialog-37",
174
- className: "text-xs font-medium text-text-secondary",
175
- children: "Expires in (hours)"
176
- }), /* @__PURE__ */ x("input", {
177
- id: "vibedecksharedialog-37",
178
- "aria-label": "Never",
179
- type: "number",
180
- min: "1",
181
- value: B,
182
- onChange: (e) => V(e.target.value),
183
- placeholder: "Never",
184
- className: "w-full mt-1 px-3 py-2 text-sm bg-bg-sunken border border-border-default rounded-lg text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
185
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
186
- htmlFor: "vibedecksharedialog-36",
187
- className: "text-xs font-medium text-text-secondary",
188
- children: "Password (optional)"
189
- }), /* @__PURE__ */ x("input", {
190
- id: "vibedecksharedialog-36",
191
- "aria-label": "No password",
192
- type: "password",
193
- value: H,
194
- onChange: (e) => U(e.target.value),
195
- placeholder: "No password",
196
- className: "w-full mt-1 px-3 py-2 text-sm bg-bg-sunken border border-border-default rounded-lg text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
197
- })] })]
198
- }),
199
- /* @__PURE__ */ S("label", {
200
- className: "flex items-center gap-3 cursor-pointer",
201
- children: [/* @__PURE__ */ x("input", {
202
- "aria-label": "control",
203
- type: "checkbox",
204
- checked: W,
205
- onChange: (e) => G(e.target.checked),
206
- className: "size-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg"
207
- }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("span", {
208
- className: "text-sm text-text-primary",
209
- children: "Allow iframe embedding"
210
- }), /* @__PURE__ */ x("p", {
211
- className: "text-xs text-text-tertiary",
212
- children: "Enable embedding this deck in other websites"
213
- })] })]
214
- }),
215
- /* @__PURE__ */ S("button", {
216
- type: "button",
217
- onClick: ae,
218
- disabled: Z,
219
- className: "w-full px-4 py-2.5 rounded-lg bg-action-primary-bg text-action-primary-text text-sm font-medium hover:bg-action-primary-bg-hover disabled:opacity-50 transition-colors flex items-center justify-center gap-2",
220
- children: [Z ? /* @__PURE__ */ x(h, {
221
- size: 14,
222
- className: "animate-spin"
223
- }) : /* @__PURE__ */ x(m, { size: 14 }), O("vibecontrols.vibedeck.share.createLink", "Create Link")]
224
- })
225
- ]
226
- }), Y ? /* @__PURE__ */ x("div", {
227
- className: "flex items-center justify-center py-6",
228
- children: /* @__PURE__ */ x(h, {
229
- size: 20,
230
- className: "animate-spin text-text-tertiary"
231
- })
232
- }) : $.length > 0 ? /* @__PURE__ */ S("div", {
233
- className: "space-y-3",
234
- children: [/* @__PURE__ */ S("h3", {
235
- className: "text-sm font-medium text-text-primary flex items-center gap-2",
236
- children: [
237
- /* @__PURE__ */ x(v, { size: 14 }),
238
- "Active links (",
239
- $.length,
240
- ")"
241
- ]
242
- }), $.map((e) => /* @__PURE__ */ S("div", {
243
- className: `rounded-lg border p-3 space-y-2 ${e.status === "ACTIVE" ? "border-border-default bg-bg-secondary" : "border-border-default/50 bg-bg-secondary/50 opacity-60"}`,
244
- children: [/* @__PURE__ */ S("div", {
245
- className: "flex items-center justify-between",
246
- children: [/* @__PURE__ */ S("div", {
247
- className: "flex items-center gap-2",
248
- children: [
249
- le(e.visibility),
250
- /* @__PURE__ */ x("span", {
251
- className: "text-sm font-medium text-text-primary",
252
- children: e.name || "Unnamed link"
253
- }),
254
- /* @__PURE__ */ x("span", {
255
- className: `text-[10px] font-bold uppercase px-1.5 py-0.5 rounded ${e.status === "ACTIVE" ? "bg-status-success-bg/20 text-status-success-text" : e.status === "REVOKED" ? "bg-status-error-bg/20 text-status-error-text" : "bg-status-warning-bg/20 text-status-warning-text"}`,
256
- children: e.status
257
- })
258
- ]
259
- }), /* @__PURE__ */ x("div", {
260
- className: "flex items-center gap-1",
261
- children: e.status === "ACTIVE" && /* @__PURE__ */ S(b, { children: [
262
- /* @__PURE__ */ x("button", {
263
- type: "button",
264
- onClick: () => se(e.id, e.shareUrl),
265
- className: "p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-text-primary transition-colors",
266
- title: "Copy link",
267
- children: k === e.id ? /* @__PURE__ */ x(l, {
268
- size: 14,
269
- className: "text-status-success-text"
270
- }) : M === e.id ? /* @__PURE__ */ x(y, {
271
- size: 14,
272
- className: "text-status-error-text"
273
- }) : /* @__PURE__ */ x(d, { size: 14 })
274
- }),
275
- e.allowIframe && /* @__PURE__ */ x("button", {
276
- type: "button",
277
- onClick: () => ce(e.id, e.shareUrl),
278
- className: "p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-text-primary transition-colors",
279
- title: "Copy embed code",
280
- children: re === e.id ? /* @__PURE__ */ x(l, {
281
- size: 14,
282
- className: "text-status-success-text"
283
- }) : P === e.id ? /* @__PURE__ */ x(y, {
284
- size: 14,
285
- className: "text-status-error-text"
286
- }) : /* @__PURE__ */ x(u, { size: 14 })
287
- }),
288
- /* @__PURE__ */ x("button", {
289
- type: "button",
290
- onClick: () => oe(e.id),
291
- className: "p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-status-error-text transition-colors",
292
- title: "Revoke link",
293
- children: /* @__PURE__ */ x(te, { size: 14 })
294
- })
295
- ] })
296
- })]
297
- }), /* @__PURE__ */ S("div", {
298
- className: "flex items-center gap-3 text-xs text-text-tertiary",
299
- children: [
300
- /* @__PURE__ */ S("span", {
301
- className: "flex items-center gap-1",
302
- children: [e.permission === "EXECUTE" ? /* @__PURE__ */ x(_, { size: 10 }) : /* @__PURE__ */ x(f, { size: 10 }), e.permission === "EXECUTE" ? "Can execute" : "View only"]
303
- }),
304
- e.hasPassword && /* @__PURE__ */ S("span", {
305
- className: "flex items-center gap-1",
306
- children: [/* @__PURE__ */ x(g, { size: 10 }), "Password"]
307
- }),
308
- e.allowIframe && /* @__PURE__ */ S("span", {
309
- className: "flex items-center gap-1",
310
- children: [/* @__PURE__ */ x(u, { size: 10 }), "Embeddable"]
311
- }),
312
- /* @__PURE__ */ S("span", { children: [e.useCount, " uses"] }),
313
- e.expiresAt && /* @__PURE__ */ S("span", { children: ["Expires ", new Date(e.expiresAt).toLocaleDateString()] })
314
- ]
315
- })]
316
- }, e.id))]
317
- }) : /* @__PURE__ */ S("div", {
318
- className: "text-center py-6",
319
- children: [
320
- /* @__PURE__ */ x(ne, {
321
- size: 24,
322
- className: "mx-auto text-text-tertiary mb-2"
323
- }),
324
- /* @__PURE__ */ x("p", {
325
- className: "text-sm text-text-secondary",
326
- children: O("vibecontrols.vibedeck.share.noLinks", "No share links yet")
327
- }),
328
- /* @__PURE__ */ x("p", {
329
- className: "text-xs text-text-tertiary mt-1",
330
- children: O("vibecontrols.vibedeck.share.createLinkHint", "Create a link above to share this VibeDeck")
331
- })
332
- ]
333
- })]
334
- })]
335
- })
6
+ var i = ({ vibeDeckId: i, vibeDeckName: a, onClose: o }) => {
7
+ let s = e("vibedeck", { id: i });
8
+ return /* @__PURE__ */ n(r, {
9
+ resource: {
10
+ type: "vibedeck",
11
+ id: i,
12
+ name: a
13
+ },
14
+ controller: s,
15
+ open: !0,
16
+ onOpenChange: (e) => {
17
+ e || o();
18
+ },
19
+ workspaceId: t() ?? void 0
336
20
  });
337
21
  };
338
22
  //#endregion
339
- export { T as VibeDeckShareDialog };
23
+ export { i as VibeDeckShareDialog };
340
24
 
341
25
  //# sourceMappingURL=VibeDeckShareDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VibeDeckShareDialog.js","names":[],"sources":["../../../src/components/vibedeck/VibeDeckShareDialog.tsx"],"sourcesContent":["import { type FC, useState, useCallback } from 'react';\nimport {\n X,\n Link2,\n Copy,\n Check,\n Trash2,\n Globe,\n Lock,\n Users,\n Code,\n Eye,\n Play,\n Shield,\n Loader2,\n} from 'lucide-react';\nimport { type VibeDeckShareLink } from '@/generated/wspace-types';\nimport {\n useListVibeDeckShareLinksQuery,\n useCreateVibeDeckShareLinkMutation,\n useRevokeVibeDeckShareLinkMutation,\n} from '@/generated/wspace-operations';\nimport { useTr } from '../../shared/hooks/useTr';\nimport {\n buildEmbedUrl,\n copyTextToClipboard,\n escapeHtmlAttribute,\n normalizeShareUrl,\n} from '../../utils/shareUrl';\n\ninterface VibeDeckShareDialogProps {\n vibeDeckId: string;\n vibeDeckName: string;\n onClose: () => void;\n}\n\nconst VISIBILITY_OPTIONS = [\n {\n value: 'SIGNED_LINK' as const,\n label: 'Anyone with the link',\n description: 'Anyone who has the link can access, no login required',\n icon: Link2,\n },\n {\n value: 'PUBLIC' as const,\n label: 'Public',\n description: 'Anyone can discover and access this deck',\n icon: Globe,\n },\n {\n value: 'RESTRICTED' as const,\n label: 'Restricted',\n description: 'Only people with permission can access (requires login)',\n icon: Lock,\n },\n];\n\nconst PERMISSION_OPTIONS = [\n {\n value: 'VIEW' as const,\n label: 'Viewer',\n description: 'Can view the deck',\n icon: Eye,\n },\n {\n value: 'EXECUTE' as const,\n label: 'Can execute',\n description: 'Can view and execute buttons',\n icon: Play,\n },\n];\n\nexport const VibeDeckShareDialog: FC<VibeDeckShareDialogProps> = ({\n vibeDeckId,\n vibeDeckName,\n onClose,\n}) => {\n const tr = useTr();\n const [copiedId, setCopiedId] = useState<string | null>(null);\n const [copiedEmbed, setCopiedEmbed] = useState<string | null>(null);\n const [copyFailedId, setCopyFailedId] = useState<string | null>(null);\n const [copyFailedEmbed, setCopyFailedEmbed] = useState<string | null>(null);\n\n // New link form state\n const [visibility, setVisibility] = useState<'SIGNED_LINK' | 'PUBLIC' | 'RESTRICTED'>(\n 'SIGNED_LINK'\n );\n const [permission, setPermission] = useState<'VIEW' | 'EXECUTE'>('EXECUTE');\n const [expiresInHours, setExpiresInHours] = useState<string>('');\n const [password, setPassword] = useState('');\n const [allowIframe, setAllowIframe] = useState(false);\n const [linkName, setLinkName] = useState('');\n\n const { data, loading, refetch } = useListVibeDeckShareLinksQuery({\n variables: { vibeDeckId },\n });\n\n const [createShareLink, { loading: creating }] = useCreateVibeDeckShareLinkMutation({\n refetchQueries: ['ListVibeDeckShareLinks'],\n });\n\n const [revokeShareLink] = useRevokeVibeDeckShareLinkMutation({\n refetchQueries: ['ListVibeDeckShareLinks'],\n });\n\n const shareLinks = data?.vibeDeckShareLinks || [];\n\n const handleCreate = useCallback(async () => {\n try {\n await createShareLink({\n variables: {\n input: {\n vibeDeckId,\n name: linkName || null,\n visibility,\n permission,\n expiresInHours: expiresInHours ? parseInt(expiresInHours, 10) : null,\n password: password || null,\n allowIframe,\n },\n },\n });\n // Reset form\n setLinkName('');\n setPassword('');\n setExpiresInHours('');\n setAllowIframe(false);\n } catch {\n // Error handled by Apollo\n }\n }, [\n createShareLink,\n vibeDeckId,\n linkName,\n visibility,\n permission,\n expiresInHours,\n password,\n allowIframe,\n ]);\n\n const handleRevoke = useCallback(\n async (id: string) => {\n try {\n await revokeShareLink({ variables: { id } });\n } catch {\n // Error handled by Apollo\n }\n },\n [revokeShareLink]\n );\n\n const handleCopyUrl = useCallback(async (id: string, url: string) => {\n const ok = await copyTextToClipboard(normalizeShareUrl(url)).then(\n () => true,\n (error) => {\n console.warn('Failed to copy VibeDeck share link:', error);\n return false;\n }\n );\n setCopiedId(ok ? id : null);\n setCopyFailedId(ok ? null : id);\n setTimeout(() => {\n setCopiedId(null);\n setCopyFailedId(null);\n }, 2000);\n }, []);\n\n const handleCopyEmbed = useCallback(async (id: string, url: string) => {\n const embedCode = `<iframe src=\"${escapeHtmlAttribute(buildEmbedUrl(url))}\" width=\"100%\" height=\"600\" frameborder=\"0\" allow=\"clipboard-write\" style=\"border-radius: 8px; border: 1px solid var(--color-border-subtle);\"></iframe>`;\n const ok = await copyTextToClipboard(embedCode).then(\n () => true,\n (error) => {\n console.warn('Failed to copy VibeDeck embed code:', error);\n return false;\n }\n );\n setCopiedEmbed(ok ? id : null);\n setCopyFailedEmbed(ok ? null : id);\n setTimeout(() => {\n setCopiedEmbed(null);\n setCopyFailedEmbed(null);\n }, 2000);\n }, []);\n\n const visibilityIcon = (v: string) => {\n switch (v) {\n case 'PUBLIC':\n return <Globe size={14} className=\"text-status-success-text\" />;\n case 'RESTRICTED':\n return <Lock size={14} className=\"text-status-warning-text\" />;\n default:\n return <Link2 size={14} className=\"text-status-info-text\" />;\n }\n };\n\n return (\n <div className=\"fixed inset-0 z-50 flex items-center justify-center bg-bg-elevated/60 backdrop-blur-sm\">\n <div className=\"bg-bg-surface border border-border-default rounded-xl shadow-2xl w-full max-w-lg mx-4 max-h-[85vh] flex flex-col\">\n {/* Header */}\n <div className=\"flex items-center justify-between px-6 py-4 border-b border-border-default\">\n <div>\n <h2 className=\"text-lg font-semibold text-text-primary\">Share \"{vibeDeckName}\"</h2>\n <p className=\"text-sm text-text-secondary mt-0.5\">\n {tr('vibecontrols.vibedeck.share.manageAccess', 'Manage access to this VibeDeck')}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={onClose}\n className=\"p-1.5 rounded-lg hover:bg-bg-tertiary text-text-tertiary hover:text-text-primary transition-colors\"\n >\n <X size={18} />\n </button>\n </div>\n\n <div className=\"overflow-y-auto flex-1 px-6 py-4 space-y-6\">\n {/* Create new link section */}\n <div className=\"space-y-4\">\n <h3 className=\"text-sm font-medium text-text-primary flex items-center gap-2\">\n <Link2 size={14} />\n {tr('vibecontrols.vibedeck.share.createShareLink', 'Create share link')}\n </h3>\n\n {/* Link name (optional) */}\n <input\n aria-label=\"Link name (optional)\"\n type=\"text\"\n value={linkName}\n onChange={(e) => setLinkName(e.target.value)}\n placeholder=\"Link name (optional)\"\n className=\"w-full px-3 py-2 text-sm bg-bg-sunken border border-border-default rounded-lg text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg\"\n />\n\n {/* Visibility selector */}\n <div className=\"space-y-2\">\n <label\n htmlFor=\"vibedecksharedialog-37\"\n className=\"text-xs font-medium text-text-secondary uppercase tracking-wider\"\n >\n Access\n </label>\n <div className=\"grid grid-cols-3 gap-2\">\n {VISIBILITY_OPTIONS.map((opt) => {\n const Icon = opt.icon;\n const isSelected = visibility === opt.value;\n return (\n <button\n type=\"button\"\n key={opt.value}\n onClick={() => setVisibility(opt.value)}\n className={`flex flex-col items-center gap-1.5 p-3 rounded-lg border-2 text-xs font-medium transition-all ${\n isSelected\n ? 'border-action-primary-bg bg-action-primary-bg/10 text-action-primary-bg'\n : 'border-border-default text-text-secondary hover:border-border-default hover:bg-bg-secondary'\n }`}\n title={opt.description}\n >\n <Icon size={16} />\n <span className=\"text-center leading-tight\">{opt.label}</span>\n </button>\n );\n })}\n </div>\n </div>\n\n {/* Permission selector */}\n <div className=\"space-y-2\">\n <label\n htmlFor=\"vibedecksharedialog-37\"\n className=\"text-xs font-medium text-text-secondary uppercase tracking-wider\"\n >\n Permission\n </label>\n <div className=\"grid grid-cols-2 gap-2\">\n {PERMISSION_OPTIONS.map((opt) => {\n const Icon = opt.icon;\n const isSelected = permission === opt.value;\n return (\n <button\n type=\"button\"\n key={opt.value}\n onClick={() => setPermission(opt.value)}\n className={`flex items-center gap-2 p-3 rounded-lg border-2 text-sm font-medium transition-all ${\n isSelected\n ? 'border-action-primary-bg bg-action-primary-bg/10 text-action-primary-bg'\n : 'border-border-default text-text-secondary hover:border-border-default hover:bg-bg-secondary'\n }`}\n >\n <Icon size={14} />\n {opt.label}\n </button>\n );\n })}\n </div>\n </div>\n\n {/* Options row */}\n <div className=\"grid grid-cols-2 gap-3\">\n <div>\n <label\n htmlFor=\"vibedecksharedialog-37\"\n className=\"text-xs font-medium text-text-secondary\"\n >\n Expires in (hours)\n </label>\n <input\n id=\"vibedecksharedialog-37\"\n aria-label=\"Never\"\n type=\"number\"\n min=\"1\"\n value={expiresInHours}\n onChange={(e) => setExpiresInHours(e.target.value)}\n placeholder=\"Never\"\n className=\"w-full mt-1 px-3 py-2 text-sm bg-bg-sunken border border-border-default rounded-lg text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg\"\n />\n </div>\n <div>\n <label\n htmlFor=\"vibedecksharedialog-36\"\n className=\"text-xs font-medium text-text-secondary\"\n >\n Password (optional)\n </label>\n <input\n id=\"vibedecksharedialog-36\"\n aria-label=\"No password\"\n type=\"password\"\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n placeholder=\"No password\"\n className=\"w-full mt-1 px-3 py-2 text-sm bg-bg-sunken border border-border-default rounded-lg text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-action-primary-bg\"\n />\n </div>\n </div>\n\n {/* Allow iframe toggle */}\n <label className=\"flex items-center gap-3 cursor-pointer\">\n <input\n aria-label=\"control\"\n type=\"checkbox\"\n checked={allowIframe}\n onChange={(e) => setAllowIframe(e.target.checked)}\n className=\"size-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg\"\n />\n <div>\n <span className=\"text-sm text-text-primary\">Allow iframe embedding</span>\n <p className=\"text-xs text-text-tertiary\">\n Enable embedding this deck in other websites\n </p>\n </div>\n </label>\n\n {/* Create button */}\n <button\n type=\"button\"\n onClick={handleCreate}\n disabled={creating}\n className=\"w-full px-4 py-2.5 rounded-lg bg-action-primary-bg text-action-primary-text text-sm font-medium hover:bg-action-primary-bg-hover disabled:opacity-50 transition-colors flex items-center justify-center gap-2\"\n >\n {creating ? <Loader2 size={14} className=\"animate-spin\" /> : <Link2 size={14} />}\n {tr('vibecontrols.vibedeck.share.createLink', 'Create Link')}\n </button>\n </div>\n\n {/* Existing links */}\n {loading ? (\n <div className=\"flex items-center justify-center py-6\">\n <Loader2 size={20} className=\"animate-spin text-text-tertiary\" />\n </div>\n ) : shareLinks.length > 0 ? (\n <div className=\"space-y-3\">\n <h3 className=\"text-sm font-medium text-text-primary flex items-center gap-2\">\n <Shield size={14} />\n Active links ({shareLinks.length})\n </h3>\n {shareLinks.map((link: VibeDeckShareLink) => (\n <div\n key={link.id}\n className={`rounded-lg border p-3 space-y-2 ${\n link.status === 'ACTIVE'\n ? 'border-border-default bg-bg-secondary'\n : 'border-border-default/50 bg-bg-secondary/50 opacity-60'\n }`}\n >\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-2\">\n {visibilityIcon(link.visibility)}\n <span className=\"text-sm font-medium text-text-primary\">\n {link.name || 'Unnamed link'}\n </span>\n <span\n className={`text-[10px] font-bold uppercase px-1.5 py-0.5 rounded ${\n link.status === 'ACTIVE'\n ? 'bg-status-success-bg/20 text-status-success-text'\n : link.status === 'REVOKED'\n ? 'bg-status-error-bg/20 text-status-error-text'\n : 'bg-status-warning-bg/20 text-status-warning-text'\n }`}\n >\n {link.status}\n </span>\n </div>\n <div className=\"flex items-center gap-1\">\n {link.status === 'ACTIVE' && (\n <>\n <button\n type=\"button\"\n onClick={() => handleCopyUrl(link.id, link.shareUrl)}\n className=\"p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-text-primary transition-colors\"\n title=\"Copy link\"\n >\n {copiedId === link.id ? (\n <Check size={14} className=\"text-status-success-text\" />\n ) : copyFailedId === link.id ? (\n <X size={14} className=\"text-status-error-text\" />\n ) : (\n <Copy size={14} />\n )}\n </button>\n {link.allowIframe && (\n <button\n type=\"button\"\n onClick={() => handleCopyEmbed(link.id, link.shareUrl)}\n className=\"p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-text-primary transition-colors\"\n title=\"Copy embed code\"\n >\n {copiedEmbed === link.id ? (\n <Check size={14} className=\"text-status-success-text\" />\n ) : copyFailedEmbed === link.id ? (\n <X size={14} className=\"text-status-error-text\" />\n ) : (\n <Code size={14} />\n )}\n </button>\n )}\n <button\n type=\"button\"\n onClick={() => handleRevoke(link.id)}\n className=\"p-1.5 rounded hover:bg-bg-tertiary text-text-tertiary hover:text-status-error-text transition-colors\"\n title=\"Revoke link\"\n >\n <Trash2 size={14} />\n </button>\n </>\n )}\n </div>\n </div>\n <div className=\"flex items-center gap-3 text-xs text-text-tertiary\">\n <span className=\"flex items-center gap-1\">\n {link.permission === 'EXECUTE' ? <Play size={10} /> : <Eye size={10} />}\n {link.permission === 'EXECUTE' ? 'Can execute' : 'View only'}\n </span>\n {link.hasPassword && (\n <span className=\"flex items-center gap-1\">\n <Lock size={10} />\n Password\n </span>\n )}\n {link.allowIframe && (\n <span className=\"flex items-center gap-1\">\n <Code size={10} />\n Embeddable\n </span>\n )}\n <span>{link.useCount} uses</span>\n {link.expiresAt && (\n <span>Expires {new Date(link.expiresAt).toLocaleDateString()}</span>\n )}\n </div>\n </div>\n ))}\n </div>\n ) : (\n <div className=\"text-center py-6\">\n <Users size={24} className=\"mx-auto text-text-tertiary mb-2\" />\n <p className=\"text-sm text-text-secondary\">\n {tr('vibecontrols.vibedeck.share.noLinks', 'No share links yet')}\n </p>\n <p className=\"text-xs text-text-tertiary mt-1\">\n {tr(\n 'vibecontrols.vibedeck.share.createLinkHint',\n 'Create a link above to share this VibeDeck'\n )}\n </p>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAoCA,IAAM,IAAqB;CACzB;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACP;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACP;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACP;CACF,EAEK,IAAqB,CACzB;CACE,OAAO;CACP,OAAO;CACP,aAAa;CACb,MAAM;CACP,EACD;CACE,OAAO;CACP,OAAO;CACP,aAAa;CACb,MAAM;CACP,CACF,EAEY,KAAqD,EAChE,eACA,iBACA,iBACI;CACJ,IAAM,IAAK,IAAO,EACZ,CAAC,GAAU,KAAe,EAAwB,KAAK,EACvD,CAAC,IAAa,KAAkB,EAAwB,KAAK,EAC7D,CAAC,GAAc,KAAmB,EAAwB,KAAK,EAC/D,CAAC,GAAiB,KAAsB,EAAwB,KAAK,EAGrE,CAAC,GAAY,KAAiB,EAClC,cACD,EACK,CAAC,GAAY,KAAiB,EAA6B,UAAU,EACrE,CAAC,GAAgB,KAAqB,EAAiB,GAAG,EAC1D,CAAC,GAAU,KAAe,EAAS,GAAG,EACtC,CAAC,GAAa,KAAkB,EAAS,GAAM,EAC/C,CAAC,GAAU,KAAe,EAAS,GAAG,EAEtC,EAAE,SAAM,YAAS,gBAAY,EAA+B,EAChE,WAAW,EAAE,eAAY,EAC1B,CAAC,EAEI,CAAC,GAAiB,EAAE,SAAS,OAAc,EAAmC,EAClF,gBAAgB,CAAC,yBAAyB,EAC3C,CAAC,EAEI,CAAC,KAAmB,EAAmC,EAC3D,gBAAgB,CAAC,yBAAyB,EAC3C,CAAC,EAEI,IAAa,GAAM,sBAAsB,EAAE,EAE3C,K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AC,OAAD;KAAK,WAAU;eAAf;MACE,kBAAC,IAAD;OAAO,MAAM;OAAI,WAAU;OAAoC,CAAA;MAC/D,kBAAC,KAAD;OAAG,WAAU;iBACV,EAAG,uCAAuC,qBAAqB;OAC9D,CAAA;MACJ,kBAAC,KAAD;OAAG,WAAU;iBACV,EACC,8CACA,6CACD;OACC,CAAA;MACA;OAEJ;MACF;;EACF,CAAA"}
1
+ {"version":3,"file":"VibeDeckShareDialog.js","names":[],"sources":["../../../src/components/vibedeck/VibeDeckShareDialog.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { ShareDialog } from '@burdenoff/fe-libs/sharing';\nimport { getStoredWorkspaceId } from '@burdenoff/fe-libs/shared/graphql';\n\nimport { useEntityShareController } from '../sharing/useEntityShareController';\n\ninterface VibeDeckShareDialogProps {\n vibeDeckId: string;\n vibeDeckName: string;\n onClose: () => void;\n}\n\n/**\n * VibeDeckShareDialog — thin wrapper around the generic fe-libs `<ShareDialog>`\n * for a VibeDeck.\n *\n * It previously hosted a bespoke link-only share UI (legacy\n * `createVibeDeckShareLink` + `VibeDeckShareLink` table). That surface was pure\n * share-record management with no realtime entanglement, so the body has been\n * replaced with the richer generic dialog (email invite + accept-gate + four\n * visibility modes + expiry + public link) backed by the generic\n * `shareVibeDeckGrant` grant mutations.\n *\n * The mount-to-open `{ vibeDeckId, vibeDeckName, onClose }` API is preserved so\n * the page's existing triggers (header button, deck-card share action) keep\n * working unchanged. `vibeId` is resolved by the controller's own read query\n * (the deck list fragment does not project it), enabling \"Everyone with Vibe\".\n */\nexport const VibeDeckShareDialog: FC<VibeDeckShareDialogProps> = ({\n vibeDeckId,\n vibeDeckName,\n onClose,\n}) => {\n const controller = useEntityShareController('vibedeck', { id: vibeDeckId });\n\n return (\n <ShareDialog\n resource={{ type: 'vibedeck', id: vibeDeckId, name: vibeDeckName }}\n controller={controller}\n open\n onOpenChange={(next) => {\n if (!next) onClose();\n }}\n workspaceId={getStoredWorkspaceId() ?? undefined}\n />\n );\n};\n"],"mappings":";;;;;AA4BA,IAAa,KAAqD,EAChE,eACA,iBACA,iBACI;CACJ,IAAM,IAAa,EAAyB,YAAY,EAAE,IAAI,GAAY,CAAC;AAE3E,QACE,kBAAC,GAAD;EACE,UAAU;GAAE,MAAM;GAAY,IAAI;GAAY,MAAM;GAAc;EACtD;EACZ,MAAA;EACA,eAAe,MAAS;AACtB,GAAK,KAAM,GAAS;;EAEtB,aAAa,GAAsB,IAAI,KAAA;EACvC,CAAA"}
@@ -0,0 +1,130 @@
1
+ import { useEffect as e, useMemo as t, useRef as n, useState as r } from "react";
2
+ import { useI18n as i } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
+ import { AlertTriangle as a, Loader2 as o, Trash2 as s } from "lucide-react";
4
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
+ //#region src/components/vibes/DeleteVibeDialog.tsx
6
+ var u = ({ vibe: u, deleting: d = !1, onConfirm: f, onCancel: p }) => {
7
+ let { t: m } = i(), h = (e, t) => {
8
+ let n = m(e);
9
+ return n === e ? t : n;
10
+ }, [g, _] = r(!1), [v, y] = r(""), b = n(null);
11
+ e(() => {
12
+ if (u) {
13
+ _(!1), y("");
14
+ let e = window.setTimeout(() => b.current?.focus(), 0);
15
+ return () => window.clearTimeout(e);
16
+ }
17
+ }, [u]);
18
+ let x = t(() => !!u && v.trim() === u.name, [v, u]) && !d;
19
+ if (!u) return null;
20
+ let S = () => {
21
+ x && f(g);
22
+ };
23
+ return /* @__PURE__ */ c("div", {
24
+ tabIndex: 0,
25
+ onKeyDown: (e) => {
26
+ e.key === "Escape" && !d && (e.preventDefault(), p());
27
+ },
28
+ role: "dialog",
29
+ "aria-modal": "true",
30
+ "aria-labelledby": "delete-vibe-title",
31
+ className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
32
+ onClick: (e) => {
33
+ e.target === e.currentTarget && !d && p();
34
+ },
35
+ children: /* @__PURE__ */ l("div", {
36
+ className: "w-full max-w-md rounded-lg bg-bg-elevated border border-border-default shadow-xl p-5",
37
+ children: [
38
+ /* @__PURE__ */ l("div", {
39
+ className: "flex items-start gap-3 mb-3",
40
+ children: [/* @__PURE__ */ c("div", {
41
+ className: "flex-shrink-0 size-9 rounded-full bg-status-error-bg flex items-center justify-center",
42
+ children: /* @__PURE__ */ c(s, { className: "size-4 text-status-error-text" })
43
+ }), /* @__PURE__ */ l("div", {
44
+ className: "min-w-0",
45
+ children: [/* @__PURE__ */ c("h2", {
46
+ id: "delete-vibe-title",
47
+ className: "text-base font-semibold text-text-primary",
48
+ children: h("vibeDelete.title", "Delete this vibe?")
49
+ }), /* @__PURE__ */ c("p", {
50
+ className: "text-sm text-text-secondary mt-1",
51
+ children: h("vibeDelete.body", "This permanently deletes the vibe and all of its sub-vibes. This action cannot be undone.")
52
+ })]
53
+ })]
54
+ }),
55
+ /* @__PURE__ */ c("p", {
56
+ className: "text-xs text-text-secondary mb-4",
57
+ children: h("vibeDelete.detachNote", "By default, related items (sessions, notes, tunnels, decks, actions, AI prompts & contexts, instruction files) are kept and simply detached from this vibe.")
58
+ }),
59
+ /* @__PURE__ */ l("label", {
60
+ className: "flex items-start gap-2 mb-3 cursor-pointer select-none",
61
+ children: [/* @__PURE__ */ c("input", {
62
+ type: "checkbox",
63
+ checked: g,
64
+ disabled: d,
65
+ onChange: (e) => _(e.target.checked),
66
+ className: "mt-0.5 size-4 rounded border-border-default cursor-pointer"
67
+ }), /* @__PURE__ */ c("span", {
68
+ className: "text-sm text-text-primary",
69
+ children: h("vibeDelete.alsoDeleteRelated", "Also permanently delete all related items")
70
+ })]
71
+ }),
72
+ g && /* @__PURE__ */ l("div", {
73
+ className: "flex items-start gap-2 mb-4 rounded-md border border-status-error-border bg-status-error-bg px-3 py-2",
74
+ children: [/* @__PURE__ */ c(a, { className: "size-4 mt-0.5 flex-shrink-0 text-status-error-text" }), /* @__PURE__ */ c("p", {
75
+ className: "text-xs text-status-error-text",
76
+ children: h("vibeDelete.relatedWarning", "Every session, note, tunnel, deck, action, AI prompt, AI context and instruction file linked to this vibe will be permanently deleted. This is irreversible.")
77
+ })]
78
+ }),
79
+ /* @__PURE__ */ l("label", {
80
+ htmlFor: "delete-vibe-confirm-name",
81
+ className: "block text-xs font-medium text-text-secondary mb-1",
82
+ children: [
83
+ h("vibeDelete.retypePrompt", "Type the vibe name to confirm:"),
84
+ " ",
85
+ /* @__PURE__ */ c("span", {
86
+ className: "font-mono text-text-primary break-all",
87
+ children: u.name
88
+ })
89
+ ]
90
+ }),
91
+ /* @__PURE__ */ c("input", {
92
+ id: "delete-vibe-confirm-name",
93
+ ref: b,
94
+ type: "text",
95
+ value: v,
96
+ disabled: d,
97
+ onChange: (e) => y(e.target.value),
98
+ onKeyDown: (e) => {
99
+ e.key === "Enter" && (e.preventDefault(), S());
100
+ },
101
+ autoComplete: "off",
102
+ spellCheck: !1,
103
+ "aria-label": h("vibeDelete.retypeAria", "Vibe name confirmation"),
104
+ placeholder: u.name,
105
+ className: "w-full text-sm px-3 py-2 mb-4 rounded-md bg-bg-surface border border-border-default text-text-primary placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-status-error-text/40"
106
+ }),
107
+ /* @__PURE__ */ l("div", {
108
+ className: "flex justify-end gap-2",
109
+ children: [/* @__PURE__ */ c("button", {
110
+ type: "button",
111
+ onClick: p,
112
+ disabled: d,
113
+ className: "text-sm px-3 py-1.5 rounded-md border border-border-default text-text-primary hover:bg-action-ghost-bg-hover disabled:opacity-50",
114
+ children: h("common.cancel", "Cancel")
115
+ }), /* @__PURE__ */ l("button", {
116
+ type: "button",
117
+ onClick: S,
118
+ disabled: !x,
119
+ className: "inline-flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-md bg-status-error-bg text-status-error-text hover:opacity-80 disabled:opacity-40 disabled:cursor-not-allowed",
120
+ children: [d ? /* @__PURE__ */ c(o, { className: "size-4 animate-spin" }) : /* @__PURE__ */ c(s, { className: "size-4" }), g ? h("vibeDelete.confirmAll", "Delete vibe & related") : h("vibeDelete.confirm", "Delete vibe")]
121
+ })]
122
+ })
123
+ ]
124
+ })
125
+ });
126
+ };
127
+ //#endregion
128
+ export { u as DeleteVibeDialog };
129
+
130
+ //# sourceMappingURL=DeleteVibeDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteVibeDialog.js","names":[],"sources":["../../../src/components/vibes/DeleteVibeDialog.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { AlertTriangle, Loader2, Trash2 } from 'lucide-react';\nimport { type FC, useEffect, useMemo, useRef, useState } from 'react';\n\n/** Minimal vibe shape the delete dialog needs from any call site. */\nexport interface DeletableVibe {\n id: string;\n name: string;\n}\n\nexport interface DeleteVibeDialogProps {\n /** The vibe being deleted. When null the dialog is closed. */\n vibe: DeletableVibe | null;\n /** Whether a delete request is currently in flight. */\n deleting?: boolean;\n /**\n * Invoked once the user has confirmed. `deleteRelatedEntities` reflects the\n * opt-in checkbox: when true the linked entities (sessions, notes, tunnels,\n * decks, actions, AI prompts/contexts, instruction files) are deleted too;\n * when false they are preserved and merely detached.\n */\n onConfirm: (deleteRelatedEntities: boolean) => void | Promise<void>;\n onCancel: () => void;\n}\n\n/**\n * Confirmation dialog for permanently deleting a vibe.\n *\n * Deleting a vibe is irreversible, so the user must retype the vibe's exact\n * name before the destructive action is enabled. An explicit, unchecked-by-\n * default checkbox lets them also delete every related entity; ticking it\n * surfaces an extra danger warning so the heightened blast radius is\n * unmistakable before they confirm.\n */\nexport const DeleteVibeDialog: FC<DeleteVibeDialogProps> = ({\n vibe,\n deleting = false,\n onConfirm,\n onCancel,\n}) => {\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const v = t(key);\n return v === key ? fallback : v;\n };\n\n const [deleteRelated, setDeleteRelated] = useState(false);\n const [confirmName, setConfirmName] = useState('');\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n // Reset transient state whenever the dialog opens for a (different) vibe so a\n // previous attempt never leaks into the next one.\n useEffect(() => {\n if (vibe) {\n setDeleteRelated(false);\n setConfirmName('');\n // Focus the name field so the irreversible gate is front-and-centre.\n const id = window.setTimeout(() => inputRef.current?.focus(), 0);\n return () => window.clearTimeout(id);\n }\n return undefined;\n }, [vibe]);\n\n const nameMatches = useMemo(\n () => !!vibe && confirmName.trim() === vibe.name,\n [confirmName, vibe]\n );\n const canDelete = nameMatches && !deleting;\n\n if (!vibe) return null;\n\n const handleConfirm = () => {\n if (!canDelete) return;\n void onConfirm(deleteRelated);\n };\n\n return (\n <div\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === 'Escape' && !deleting) {\n e.preventDefault();\n onCancel();\n }\n }}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"delete-vibe-title\"\n className=\"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4\"\n onClick={(e) => {\n if (e.target === e.currentTarget && !deleting) onCancel();\n }}\n >\n <div className=\"w-full max-w-md rounded-lg bg-bg-elevated border border-border-default shadow-xl p-5\">\n <div className=\"flex items-start gap-3 mb-3\">\n <div className=\"flex-shrink-0 size-9 rounded-full bg-status-error-bg flex items-center justify-center\">\n <Trash2 className=\"size-4 text-status-error-text\" />\n </div>\n <div className=\"min-w-0\">\n <h2 id=\"delete-vibe-title\" className=\"text-base font-semibold text-text-primary\">\n {tr('vibeDelete.title', 'Delete this vibe?')}\n </h2>\n <p className=\"text-sm text-text-secondary mt-1\">\n {tr(\n 'vibeDelete.body',\n 'This permanently deletes the vibe and all of its sub-vibes. This action cannot be undone.'\n )}\n </p>\n </div>\n </div>\n\n <p className=\"text-xs text-text-secondary mb-4\">\n {tr(\n 'vibeDelete.detachNote',\n 'By default, related items (sessions, notes, tunnels, decks, actions, AI prompts & contexts, instruction files) are kept and simply detached from this vibe.'\n )}\n </p>\n\n <label className=\"flex items-start gap-2 mb-3 cursor-pointer select-none\">\n <input\n type=\"checkbox\"\n checked={deleteRelated}\n disabled={deleting}\n onChange={(e) => setDeleteRelated(e.target.checked)}\n className=\"mt-0.5 size-4 rounded border-border-default cursor-pointer\"\n />\n <span className=\"text-sm text-text-primary\">\n {tr('vibeDelete.alsoDeleteRelated', 'Also permanently delete all related items')}\n </span>\n </label>\n\n {deleteRelated && (\n <div className=\"flex items-start gap-2 mb-4 rounded-md border border-status-error-border bg-status-error-bg px-3 py-2\">\n <AlertTriangle className=\"size-4 mt-0.5 flex-shrink-0 text-status-error-text\" />\n <p className=\"text-xs text-status-error-text\">\n {tr(\n 'vibeDelete.relatedWarning',\n 'Every session, note, tunnel, deck, action, AI prompt, AI context and instruction file linked to this vibe will be permanently deleted. This is irreversible.'\n )}\n </p>\n </div>\n )}\n\n <label\n htmlFor=\"delete-vibe-confirm-name\"\n className=\"block text-xs font-medium text-text-secondary mb-1\"\n >\n {tr('vibeDelete.retypePrompt', 'Type the vibe name to confirm:')}{' '}\n <span className=\"font-mono text-text-primary break-all\">{vibe.name}</span>\n </label>\n <input\n id=\"delete-vibe-confirm-name\"\n ref={inputRef}\n type=\"text\"\n value={confirmName}\n disabled={deleting}\n onChange={(e) => setConfirmName(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n handleConfirm();\n }\n }}\n autoComplete=\"off\"\n spellCheck={false}\n aria-label={tr('vibeDelete.retypeAria', 'Vibe name confirmation')}\n placeholder={vibe.name}\n className=\"w-full text-sm px-3 py-2 mb-4 rounded-md bg-bg-surface border border-border-default text-text-primary placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-status-error-text/40\"\n />\n\n <div className=\"flex justify-end gap-2\">\n <button\n type=\"button\"\n onClick={onCancel}\n disabled={deleting}\n className=\"text-sm px-3 py-1.5 rounded-md border border-border-default text-text-primary hover:bg-action-ghost-bg-hover disabled:opacity-50\"\n >\n {tr('common.cancel', 'Cancel')}\n </button>\n <button\n type=\"button\"\n onClick={handleConfirm}\n disabled={!canDelete}\n className=\"inline-flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-md bg-status-error-bg text-status-error-text hover:opacity-80 disabled:opacity-40 disabled:cursor-not-allowed\"\n >\n {deleting ? <Loader2 className=\"size-4 animate-spin\" /> : <Trash2 className=\"size-4\" />}\n {deleteRelated\n ? tr('vibeDelete.confirmAll', 'Delete vibe & related')\n : tr('vibeDelete.confirm', 'Delete vibe')}\n </button>\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;AAkCA,IAAa,KAA+C,EAC1D,SACA,cAAW,IACX,cACA,kBACI;CACJ,IAAM,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAAqB;EAC5C,IAAM,IAAI,EAAE,EAAI;AAChB,SAAO,MAAM,IAAM,IAAW;IAG1B,CAAC,GAAe,KAAoB,EAAS,GAAM,EACnD,CAAC,GAAa,KAAkB,EAAS,GAAG,EAC5C,IAAW,EAAgC,KAAK;AAItD,SAAgB;AACd,MAAI,GAAM;AAER,GADA,EAAiB,GAAM,EACvB,EAAe,GAAG;GAElB,IAAM,IAAK,OAAO,iBAAiB,EAAS,SAAS,OAAO,EAAE,EAAE;AAChE,gBAAa,OAAO,aAAa,EAAG;;IAGrC,CAAC,EAAK,CAAC;CAMV,IAAM,IAJc,QACZ,CAAC,CAAC,KAAQ,EAAY,MAAM,KAAK,EAAK,MAC5C,CAAC,GAAa,EAAK,CACpB,IACgC,CAAC;AAElC,KAAI,CAAC,EAAM,QAAO;CAElB,IAAM,UAAsB;AACrB,OACA,EAAU,EAAc;;AAG/B,QACE,kBAAC,OAAD;EACE,UAAU;EACV,YAAY,MAAM;AAChB,GAAI,EAAE,QAAQ,YAAY,CAAC,MACzB,EAAE,gBAAgB,EAClB,GAAU;;EAGd,MAAK;EACL,cAAW;EACX,mBAAgB;EAChB,WAAU;EACV,UAAU,MAAM;AACd,GAAI,EAAE,WAAW,EAAE,iBAAiB,CAAC,KAAU,GAAU;;YAG3D,kBAAC,OAAD;GAAK,WAAU;aAAf;IACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kB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