@nivaro/react 0.3.117 → 0.3.118
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/index.d.ts +136 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3757 -3695
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4220 -4175
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +54 -53
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +94 -85
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,64 +1,87 @@
|
|
|
1
|
-
import { widgetImageSubtitleLines as
|
|
2
|
-
const
|
|
3
|
-
async function
|
|
4
|
-
const
|
|
5
|
-
if (typeof
|
|
6
|
-
return
|
|
1
|
+
import { widgetImageSubtitleLines as v } from "./widget-image.js";
|
|
2
|
+
const C = "data-widget-image-ignore";
|
|
3
|
+
async function A() {
|
|
4
|
+
const e = await import("html2canvas"), r = e.default ?? e;
|
|
5
|
+
if (typeof r != "function") throw new Error("html2canvas missing");
|
|
6
|
+
return r;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
const E = 640;
|
|
9
|
+
function R(e) {
|
|
10
|
+
return Math.max(E, Math.round(e) || 1);
|
|
11
|
+
}
|
|
12
|
+
const M = 'system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
|
|
13
|
+
function S(e, r) {
|
|
14
|
+
const i = e.createElement("div");
|
|
15
|
+
i.setAttribute("data-widget-image-header", "1"), i.style.cssText = `flex:none;margin:0 0 10px;padding:0 0 8px;border-bottom:1px solid #e2e8f0;font-family:${M};text-align:left;`;
|
|
16
|
+
const a = e.createElement("div");
|
|
17
|
+
a.textContent = r.title, a.style.cssText = "font-size:15px;font-weight:600;line-height:1.3;color:#0f172a;word-break:break-word;", i.appendChild(a);
|
|
18
|
+
for (const f of v(r)) {
|
|
19
|
+
const d = e.createElement("div");
|
|
20
|
+
d.textContent = f, d.style.cssText = "margin-top:2px;font-size:11.5px;line-height:1.4;color:#475569;", i.appendChild(d);
|
|
17
21
|
}
|
|
18
|
-
return
|
|
22
|
+
return i;
|
|
19
23
|
}
|
|
20
|
-
async function
|
|
21
|
-
const
|
|
22
|
-
scale:
|
|
24
|
+
async function k(e, r, i = {}) {
|
|
25
|
+
const a = await A(), f = e.getBoundingClientRect(), d = R(f.width), h = Math.max(1, Math.round(f.height)), u = d > Math.round(f.width), x = await a(e, {
|
|
26
|
+
scale: i.scale ?? 2,
|
|
23
27
|
backgroundColor: "#ffffff",
|
|
24
28
|
useCORS: !0,
|
|
25
29
|
logging: !1,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
// The clone's window must be at least as wide as the picture, or it lays out in the
|
|
31
|
+
// phone's width again.
|
|
32
|
+
windowWidth: Math.max(window.innerWidth, d + 32),
|
|
33
|
+
onclone: (s, n) => {
|
|
34
|
+
const p = s.documentElement;
|
|
35
|
+
p.classList.remove("dark"), s.body.classList.remove("dark"), p.style.colorScheme = "light";
|
|
36
|
+
for (const o of Array.from(n.querySelectorAll(`[${C}]`)))
|
|
37
|
+
o.remove();
|
|
38
|
+
for (const o of Array.from(s.body.children))
|
|
39
|
+
o !== n && !o.contains(n) && (o.style.display = "none");
|
|
40
|
+
s.body.style.margin = "0", s.body.style.background = "#ffffff", n.parentElement !== s.body && s.body.appendChild(n);
|
|
41
|
+
const t = n.style;
|
|
42
|
+
if (t.gridColumn = "auto", t.gridRow = "auto", t.margin = "0", t.boxShadow = "none", t.background = "#ffffff", t.color = "#0f172a", t.borderColor = "#e2e8f0", t.width = `${d}px`, t.maxWidth = "none", t.height = u ? "auto" : `${h}px`, t.minHeight = "0", t.maxHeight = "none", t.overflow = "hidden", t.boxSizing = "border-box", t.display || (t.display = "flex"), getComputedStyle(n).display === "flex" && (t.flexDirection = "column"), u)
|
|
43
|
+
for (const o of Array.from(n.querySelectorAll("svg"))) {
|
|
44
|
+
const c = Number(o.getAttribute("width")), m = Number(o.getAttribute("height"));
|
|
45
|
+
if (!(c > 120 && m > 0)) continue;
|
|
46
|
+
o.getAttribute("viewBox") || o.setAttribute("viewBox", `0 0 ${c} ${m}`), o.setAttribute("preserveAspectRatio", "xMidYMid meet"), o.setAttribute("width", "100%");
|
|
47
|
+
let l = o.parentElement;
|
|
48
|
+
for (let y = 0; l && l !== n && y < 3; y++, l = l.parentElement)
|
|
49
|
+
l.style.width = "100%", l.style.maxWidth = "none";
|
|
50
|
+
}
|
|
51
|
+
const w = S(s, r);
|
|
52
|
+
n.insertBefore(w, n.firstChild);
|
|
53
|
+
const b = Math.ceil(w.getBoundingClientRect().height + 10);
|
|
54
|
+
if (!u)
|
|
55
|
+
t.height = `${h + b}px`;
|
|
56
|
+
else {
|
|
57
|
+
t.minHeight = `${h + b}px`;
|
|
58
|
+
const o = s.defaultView ?? window, c = Number.parseFloat(o.getComputedStyle(n).paddingTop) || 0, m = Number.parseFloat(o.getComputedStyle(n).paddingBottom) || 0;
|
|
59
|
+
t.paddingBottom = `${Math.max(24, c, m)}px`;
|
|
60
|
+
}
|
|
40
61
|
}
|
|
41
|
-
}),
|
|
42
|
-
if (!
|
|
43
|
-
return
|
|
62
|
+
}), g = await new Promise((s) => x.toBlob(s, "image/png"));
|
|
63
|
+
if (!g) throw new Error("picture was empty");
|
|
64
|
+
return g;
|
|
44
65
|
}
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
|
|
66
|
+
function I(e, r) {
|
|
67
|
+
const i = URL.createObjectURL(e), a = document.createElement("a");
|
|
68
|
+
a.href = i, a.download = r, document.body.appendChild(a), a.click(), a.remove(), setTimeout(() => URL.revokeObjectURL(i), 1e4);
|
|
48
69
|
}
|
|
49
|
-
async function
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
}), typeof ClipboardItem < "u" && typeof navigator < "u" && ((
|
|
70
|
+
async function B(e, r) {
|
|
71
|
+
var i;
|
|
72
|
+
if (e.catch(() => {
|
|
73
|
+
}), typeof ClipboardItem < "u" && typeof navigator < "u" && ((i = navigator.clipboard) != null && i.write))
|
|
53
74
|
try {
|
|
54
|
-
return await navigator.clipboard.write([new ClipboardItem({ "image/png":
|
|
75
|
+
return await navigator.clipboard.write([new ClipboardItem({ "image/png": e })]), "copied";
|
|
55
76
|
} catch {
|
|
56
77
|
}
|
|
57
|
-
return
|
|
78
|
+
return I(await e, r), "saved";
|
|
58
79
|
}
|
|
59
80
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
81
|
+
E as MIN_PICTURE_WIDTH,
|
|
82
|
+
C as WIDGET_IMAGE_IGNORE_ATTR,
|
|
83
|
+
B as copyPngOrSave,
|
|
84
|
+
I as downloadBlob,
|
|
85
|
+
R as pictureWidth,
|
|
86
|
+
k as renderWidgetImage
|
|
64
87
|
};
|