@nivaro/react 0.3.94 → 0.3.95
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/shared/components/NotificationBell.js +1 -1
- package/dist/shared/components/item-edit/FieldAffordances.js +285 -278
- package/dist/shared/components/item-edit/FieldRow.js +53 -52
- package/dist/shared/components/item-edit/InlineTableField.js +1 -0
- package/dist/shared/components/item-edit/RuleProvenancePopover.js +61 -53
- package/dist/shared/components/item-edit/useRecordLabels.js +44 -0
- package/dist/shared/components/notifications/NotificationDetailBits.js +55 -55
- package/dist/shared/components/panels/PipelinePanel.js +361 -330
- package/dist/shared/components/support/ReportProblem.js +10 -10
- package/dist/shared/components/support/SupportRequestDialog.js +11 -11
- package/dist/shared/components/support/TicketDetailSheet.js +114 -109
- package/dist/shared/components/support/support-context.js +14 -9
- package/package.json +1 -1
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { formatReplayTail as a, getReplayTail as i } from "../../lib/replay-tail.js";
|
|
2
|
-
function
|
|
3
|
-
const e =
|
|
4
|
-
return
|
|
2
|
+
function u(t) {
|
|
3
|
+
const e = String(t.filename_download ?? "");
|
|
4
|
+
return /^(what-they-saw|technical-details)-\d{4}-/.test(e) || t.title === "What they saw" || t.title === "Technical details";
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
const l =
|
|
6
|
+
function c(t, e = /* @__PURE__ */ new Date()) {
|
|
7
|
+
const l = e.toISOString().slice(0, 19).replace(/:/g, "-");
|
|
8
|
+
return new File([t], `technical-details-${l}.txt`, { type: "text/plain" });
|
|
9
|
+
}
|
|
10
|
+
async function o(t) {
|
|
11
|
+
const e = t.clip ? await t.clip.commit().catch(() => null) : null, l = a(t.tail ?? i(), {
|
|
8
12
|
route: t.route,
|
|
9
13
|
when: t.when,
|
|
10
14
|
userAgent: t.userAgent ?? null
|
|
11
15
|
});
|
|
12
16
|
let n = null;
|
|
13
17
|
try {
|
|
14
|
-
n = String((await t.upload(
|
|
18
|
+
n = String((await t.upload(c(l, t.when))).id);
|
|
15
19
|
} catch {
|
|
16
20
|
n = null;
|
|
17
21
|
}
|
|
18
|
-
return { fileId: n, replay:
|
|
22
|
+
return { fileId: n, replay: e, text: l };
|
|
19
23
|
}
|
|
20
24
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
o as collectSupportContext,
|
|
26
|
+
u as isSupportContextFile,
|
|
27
|
+
c as supportContextFile
|
|
23
28
|
};
|