@nivaro/react 0.2.53 → 0.2.55
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 +99 -98
- package/dist/index.d.ts +452 -4
- package/dist/index.js +644 -618
- package/dist/layout-editor.d.ts +252 -2
- package/dist/shared/components/BackgroundRunOffer.js +117 -0
- package/dist/shared/components/BroadcastView.js +214 -213
- package/dist/shared/components/CollectionBrowserView.js +2592 -2695
- package/dist/shared/components/FormWhatsNew.js +60 -0
- package/dist/shared/components/ItemEditForm.js +3968 -3618
- package/dist/shared/components/JobsTray.js +100 -55
- package/dist/shared/components/MyWorkView.js +91 -89
- package/dist/shared/components/NotificationBell.js +80 -79
- package/dist/shared/components/ProfileView.js +568 -520
- package/dist/shared/components/RecordCompare.js +254 -0
- package/dist/shared/components/RecordReadView.js +598 -543
- package/dist/shared/components/ReportView.js +578 -543
- package/dist/shared/components/RowPresence.js +91 -0
- package/dist/shared/components/TipLayer.js +27 -27
- package/dist/shared/components/WidgetSlot.js +474 -458
- package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
- package/dist/shared/components/ai/AskPanel.js +139 -119
- package/dist/shared/components/ai/FirstWeekCard.js +126 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
- package/dist/shared/components/bulk/bulk-field-options.js +45 -0
- package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
- package/dist/shared/components/chat/ChannelArchive.js +326 -0
- package/dist/shared/components/chat/ChannelExtras.js +141 -121
- package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
- package/dist/shared/components/chat/ChatPanel.js +1695 -1733
- package/dist/shared/components/chat/Composer.js +357 -303
- package/dist/shared/components/chat/MessageActions.js +92 -0
- package/dist/shared/components/chat/MessageFormat.js +290 -264
- package/dist/shared/components/chat/OutboxBubbles.js +146 -0
- package/dist/shared/components/chat/RequestIdCard.js +135 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
- package/dist/shared/components/chat/RoomParts.js +213 -274
- package/dist/shared/components/chat/ScreenClip.js +184 -0
- package/dist/shared/components/chat/chat-core.js +402 -483
- package/dist/shared/components/chat/chat-drafts.js +59 -0
- package/dist/shared/components/chat/chat-emoji.js +348 -0
- package/dist/shared/components/chat/chat-local-time.js +41 -0
- package/dist/shared/components/chat/chat-outbox.js +303 -0
- package/dist/shared/components/chat/chat-window.js +163 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
- package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
- package/dist/shared/components/help-videos/api.js +80 -67
- package/dist/shared/components/help-videos/editor/DetailsTab.js +147 -130
- package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
- package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
- package/dist/shared/components/item-edit/FieldAffordances.js +9 -8
- package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
- package/dist/shared/components/item-edit/FieldRow.js +382 -320
- package/dist/shared/components/item-edit/FormHelpVideoButton.js +59 -0
- package/dist/shared/components/item-edit/GroupSection.js +786 -639
- package/dist/shared/components/item-edit/HeaderTools.js +59 -56
- package/dist/shared/components/item-edit/InlineTableField.js +3 -1
- package/dist/shared/components/item-edit/LayoutContentBlock.js +47 -24
- package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
- package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
- package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
- package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
- package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
- package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
- package/dist/shared/components/item-edit/lazy-sections.js +36 -0
- package/dist/shared/components/item-edit/lock-why.js +94 -0
- package/dist/shared/components/item-edit/picker-miss.js +26 -0
- package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
- package/dist/shared/components/item-edit/useFormUsageBeacon.js +65 -0
- package/dist/shared/components/layout-editor/AddPanel.js +226 -151
- package/dist/shared/components/layout-editor/ArrangeButton.js +34 -0
- package/dist/shared/components/layout-editor/AutoArrange.js +86 -0
- package/dist/shared/components/layout-editor/CanvasCompare.js +79 -0
- package/dist/shared/components/layout-editor/ChangeNote.js +147 -0
- package/dist/shared/components/layout-editor/CollabParts.js +175 -0
- package/dist/shared/components/layout-editor/DesignNode.js +311 -116
- package/dist/shared/components/layout-editor/EditorCanvas.js +30 -26
- package/dist/shared/components/layout-editor/EditorTopBar.js +463 -175
- package/dist/shared/components/layout-editor/FindReplace.js +188 -0
- package/dist/shared/components/layout-editor/FormMapButton.js +141 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +250 -109
- package/dist/shared/components/layout-editor/LayoutEditor.js +1196 -305
- package/dist/shared/components/layout-editor/LayoutsRail.js +94 -67
- package/dist/shared/components/layout-editor/NoteMarker.js +38 -0
- package/dist/shared/components/layout-editor/PlacementsTable.js +187 -0
- package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
- package/dist/shared/components/layout-editor/ScheduleChange.js +106 -0
- package/dist/shared/components/layout-editor/SessionHistory.js +84 -0
- package/dist/shared/components/layout-editor/StagedChip.js +22 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +464 -0
- package/dist/shared/components/layout-editor/UnsavedConfirm.js +103 -0
- package/dist/shared/components/layout-editor/ai/AiToolsButton.js +625 -0
- package/dist/shared/components/layout-editor/ai/ChangeCheck.js +153 -0
- package/dist/shared/components/layout-editor/ai/ai-tools-api.js +80 -0
- package/dist/shared/components/layout-editor/ai/assist-ops.js +38 -0
- package/dist/shared/components/layout-editor/ai/autofill-ops.js +73 -0
- package/dist/shared/components/layout-editor/ai/canvas-capture.js +41 -0
- package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +271 -0
- package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +182 -0
- package/dist/shared/components/layout-editor/ai-forms/MeaningSuggestions.js +109 -0
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +170 -0
- package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +40 -0
- package/dist/shared/components/layout-editor/ai-forms/pending.js +25 -0
- package/dist/shared/components/layout-editor/ai-forms/plan.js +263 -0
- package/dist/shared/components/layout-editor/ai-rules/AiAskPopover.js +160 -0
- package/dist/shared/components/layout-editor/ai-rules/CascadeWriter.js +175 -0
- package/dist/shared/components/layout-editor/ai-rules/FieldRuleWriter.js +97 -0
- package/dist/shared/components/layout-editor/ai-rules/RuleWriter.js +94 -0
- package/dist/shared/components/layout-editor/ai-rules/ValidationSuggest.js +153 -0
- package/dist/shared/components/layout-editor/ai-rules/api.js +6 -0
- package/dist/shared/components/layout-editor/ai-text/AiTextTools.js +383 -0
- package/dist/shared/components/layout-editor/ai-text/text-ops.js +125 -0
- package/dist/shared/components/layout-editor/assist/AskPanel.js +278 -0
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +93 -0
- package/dist/shared/components/layout-editor/assist/ProposalsButton.js +150 -0
- package/dist/shared/components/layout-editor/assist/assist-api.js +63 -0
- package/dist/shared/components/layout-editor/assist/jump.js +142 -0
- package/dist/shared/components/layout-editor/assist/settings-index.js +118 -0
- package/dist/shared/components/layout-editor/auto-arrange.js +101 -0
- package/dist/shared/components/layout-editor/bulk/BulkChangesButton.js +221 -0
- package/dist/shared/components/layout-editor/bulk/BulkRun.js +237 -0
- package/dist/shared/components/layout-editor/bulk/MacrosPanel.js +230 -0
- package/dist/shared/components/layout-editor/bulk/bulk-api.js +65 -0
- package/dist/shared/components/layout-editor/bulk/field-labels.js +22 -0
- package/dist/shared/components/layout-editor/bulk/macro-record.js +142 -0
- package/dist/shared/components/layout-editor/bulk/useMacroRecorder.js +65 -0
- package/dist/shared/components/layout-editor/bundle-to-active.js +1 -0
- package/dist/shared/components/layout-editor/canvas-diff.js +157 -0
- package/dist/shared/components/layout-editor/collab/FormFollowShare.js +388 -0
- package/dist/shared/components/layout-editor/collab/collab-api.js +80 -0
- package/dist/shared/components/layout-editor/commands/CommandPalette.js +221 -0
- package/dist/shared/components/layout-editor/commands/intents.js +214 -0
- package/dist/shared/components/layout-editor/commands/parse.js +242 -0
- package/dist/shared/components/layout-editor/design-context.js +26 -6
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +181 -164
- package/dist/shared/components/layout-editor/dnd/collision.js +25 -23
- package/dist/shared/components/layout-editor/dnd/node.js +69 -57
- package/dist/shared/components/layout-editor/dnd/rail-drop.js +56 -0
- package/dist/shared/components/layout-editor/draft-recovery.js +131 -0
- package/dist/shared/components/layout-editor/editor-notes.js +78 -0
- package/dist/shared/components/layout-editor/editors/swap-config.js +1 -0
- package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
- package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
- package/dist/shared/components/layout-editor/entry/presets.js +71 -0
- package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
- package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
- package/dist/shared/components/layout-editor/explain/CanvasRules.js +142 -0
- package/dist/shared/components/layout-editor/explain/default-ghosts.js +81 -0
- package/dist/shared/components/layout-editor/explain/driver-hover.js +62 -0
- package/dist/shared/components/layout-editor/explain/field-sources.js +246 -0
- package/dist/shared/components/layout-editor/explain/rule-graph.js +215 -0
- package/dist/shared/components/layout-editor/explain/use-explain.js +132 -0
- package/dist/shared/components/layout-editor/field-zones.js +116 -0
- package/dist/shared/components/layout-editor/form-map.js +138 -0
- package/dist/shared/components/layout-editor/grid-guides.js +142 -0
- package/dist/shared/components/layout-editor/history-api.js +87 -0
- package/dist/shared/components/layout-editor/inheritance.js +55 -0
- package/dist/shared/components/layout-editor/inspect/inspect-api.js +66 -0
- package/dist/shared/components/layout-editor/inspect/picker-preview.js +48 -0
- package/dist/shared/components/layout-editor/inspect/width-fit.js +87 -0
- package/dist/shared/components/layout-editor/inspector/AiFillSetting.js +85 -0
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
- package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +36 -0
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +179 -0
- package/dist/shared/components/layout-editor/inspector/ColumnFit.js +112 -0
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +291 -141
- package/dist/shared/components/layout-editor/inspector/HelpTab.js +174 -0
- package/dist/shared/components/layout-editor/inspector/Inspector.js +282 -180
- package/dist/shared/components/layout-editor/inspector/LookTab.js +166 -109
- package/dist/shared/components/layout-editor/inspector/OverrideNotice.js +61 -0
- package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
- package/dist/shared/components/layout-editor/inspector/PickerPreview.js +134 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +146 -118
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +162 -111
- package/dist/shared/components/layout-editor/inspector/Translations.js +156 -0
- package/dist/shared/components/layout-editor/inspector/kit.js +71 -70
- package/dist/shared/components/layout-editor/inspector/tab-request.js +21 -0
- package/dist/shared/components/layout-editor/is-typing.js +9 -0
- package/dist/shared/components/layout-editor/keyboard-move.js +66 -0
- package/dist/shared/components/layout-editor/lint/LintPanel.js +190 -0
- package/dist/shared/components/layout-editor/lint/lint-api.js +52 -0
- package/dist/shared/components/layout-editor/load-error.js +37 -0
- package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +305 -0
- package/dist/shared/components/layout-editor/matrix/MatrixGrid.js +181 -0
- package/dist/shared/components/layout-editor/matrix/RoleSectionMatrix.js +147 -0
- package/dist/shared/components/layout-editor/matrix/matrix-api.js +48 -0
- package/dist/shared/components/layout-editor/matrix/role-matrix.js +36 -0
- package/dist/shared/components/layout-editor/matrix/state-matrix.js +145 -0
- package/dist/shared/components/layout-editor/nav/FindPanel.js +109 -0
- package/dist/shared/components/layout-editor/nav/NavTools.js +114 -0
- package/dist/shared/components/layout-editor/nav/OutlinePanel.js +228 -0
- package/dist/shared/components/layout-editor/nav/ShortcutSheet.js +31 -0
- package/dist/shared/components/layout-editor/nav/find.js +20 -0
- package/dist/shared/components/layout-editor/nav/tree.js +142 -0
- package/dist/shared/components/layout-editor/nav/useEditorNav.js +101 -0
- package/dist/shared/components/layout-editor/nav/view-prefs.js +34 -0
- package/dist/shared/components/layout-editor/ops/ChangeRequestsPanel.js +143 -0
- package/dist/shared/components/layout-editor/ops/DependencyDiagram.js +179 -0
- package/dist/shared/components/layout-editor/ops/LayoutOpsBlocks.js +92 -0
- package/dist/shared/components/layout-editor/ops/PromotePanel.js +287 -0
- package/dist/shared/components/layout-editor/ops/ops-api.js +122 -0
- package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
- package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
- package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
- package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -3
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +24 -14
- package/dist/shared/components/layout-editor/overview/overview-api.js +105 -88
- package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
- package/dist/shared/components/layout-editor/panel-style.js +8 -7
- package/dist/shared/components/layout-editor/parity-keys.json.js +4 -0
- package/dist/shared/components/layout-editor/pin.js +25 -0
- package/dist/shared/components/layout-editor/presence.js +111 -0
- package/dist/shared/components/layout-editor/preview/PreviewModes.js +224 -0
- package/dist/shared/components/layout-editor/preview/PreviewPanes.js +262 -0
- package/dist/shared/components/layout-editor/preview/preview-api.js +57 -0
- package/dist/shared/components/layout-editor/preview/preview-model.js +157 -0
- package/dist/shared/components/layout-editor/restore-piece.js +192 -0
- package/dist/shared/components/layout-editor/reuse/FieldMapStep.js +70 -0
- package/dist/shared/components/layout-editor/reuse/FormMoreMenu.js +127 -0
- package/dist/shared/components/layout-editor/reuse/LibraryRows.js +150 -0
- package/dist/shared/components/layout-editor/reuse/NewFormStart.js +20 -0
- package/dist/shared/components/layout-editor/reuse/SectionReuseActions.js +291 -0
- package/dist/shared/components/layout-editor/reuse/field-match.js +77 -0
- package/dist/shared/components/layout-editor/reuse/reuse-api.js +73 -0
- package/dist/shared/components/layout-editor/reuse/seed.js +13 -0
- package/dist/shared/components/layout-editor/reuse/useFormFromRecord.js +43 -0
- package/dist/shared/components/layout-editor/reuse/useRailCopy.js +34 -0
- package/dist/shared/components/layout-editor/section-structure.js +241 -0
- package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
- package/dist/shared/components/layout-editor/settings/FormSettings.js +125 -103
- package/dist/shared/components/layout-editor/settings/InheritanceSection.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +215 -105
- package/dist/shared/components/layout-editor/settings/WhoSection.js +139 -100
- package/dist/shared/components/layout-editor/settings/controls.js +8 -8
- package/dist/shared/components/layout-editor/settings/settings-registry.js +142 -21
- package/dist/shared/components/layout-editor/shortcuts.js +88 -0
- package/dist/shared/components/layout-editor/show-when.js +35 -0
- package/dist/shared/components/layout-editor/slot-names.js +4 -3
- package/dist/shared/components/layout-editor/staged-api.js +64 -0
- package/dist/shared/components/layout-editor/structure-ops.js +403 -0
- package/dist/shared/components/layout-editor/testing/CostLimitSetting.js +42 -0
- package/dist/shared/components/layout-editor/testing/TestingPanels.js +556 -0
- package/dist/shared/components/layout-editor/testing/testing-api.js +67 -0
- package/dist/shared/components/layout-editor/testing/testing-model.js +406 -0
- package/dist/shared/components/layout-editor/testing/use-record-check.js +44 -0
- package/dist/shared/components/layout-editor/toolbar-kit.js +242 -0
- package/dist/shared/components/layout-editor/unsaved-marks.js +72 -0
- package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
- package/dist/shared/components/layout-editor/usage/FillChip.js +27 -0
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +232 -0
- package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
- package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
- package/dist/shared/components/layout-editor/usage/suggest-sections.js +55 -0
- package/dist/shared/components/layout-editor/usage/usage-api.js +104 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +573 -306
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
- package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
- package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
- package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
- package/dist/shared/components/profile/AgentsPanel.js +479 -0
- package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
- package/dist/shared/components/support/SuggestFormChange.js +143 -0
- package/dist/shared/components/support/SupportAnalytics.js +171 -0
- package/dist/shared/components/support/SupportView.js +75 -73
- package/dist/shared/lib/ai-fill.js +37 -0
- package/dist/shared/lib/background-runs.js +150 -0
- package/dist/shared/lib/delivery-ack.js +9 -0
- package/dist/shared/lib/entry-badge-style.js +13 -0
- package/dist/shared/lib/entry-config.js +71 -0
- package/dist/shared/lib/form-sections.js +64 -0
- package/dist/shared/lib/form-structure.js +99 -0
- package/dist/shared/lib/form-usage-beacon.js +133 -0
- package/dist/shared/lib/jobs-tray.js +25 -23
- package/dist/shared/lib/keyset-pager.js +37 -0
- package/dist/shared/lib/layout-i18n.js +66 -0
- package/dist/shared/lib/layout-lint.js +490 -0
- package/dist/shared/lib/layout-ops.js +116 -110
- package/dist/shared/lib/layout-resolve.js +113 -0
- package/dist/shared/lib/placement-behaviour.js +144 -0
- package/dist/shared/lib/prefetch.js +149 -0
- package/dist/shared/lib/presence-hooks.js +199 -0
- package/dist/shared/lib/record-outbox.js +82 -81
- package/dist/shared/lib/replay-socket.js +93 -0
- package/dist/shared/lib/request-gate.js +51 -50
- package/dist/shared/lib/room-gaps.js +96 -0
- package/dist/shared/lib/screenshot.js +54 -28
- package/dist/shared/lib/search-log.js +27 -0
- package/dist/shared/lib/socket-realtime.js +101 -80
- package/dist/shared/lib/visible-when.js +34 -0
- package/dist/shared/lib/worker-socket.js +200 -0
- package/package.json +1 -1
|
@@ -37,7 +37,8 @@ const C = 20, D = /^\/items\/([A-Za-z_][A-Za-z0-9_]*)(?:\/([^/?#]+))?$/, I = /*
|
|
|
37
37
|
"search",
|
|
38
38
|
"after",
|
|
39
39
|
"count",
|
|
40
|
-
"conditions"
|
|
40
|
+
"conditions",
|
|
41
|
+
"labels"
|
|
41
42
|
]);
|
|
42
43
|
function $(e) {
|
|
43
44
|
const o = e;
|
|
@@ -47,10 +48,10 @@ function $(e) {
|
|
|
47
48
|
const [, u, d] = s;
|
|
48
49
|
if (d !== void 0 && I.has(d)) return null;
|
|
49
50
|
const m = o._params ?? {}, l = {};
|
|
50
|
-
for (const [
|
|
51
|
+
for (const [a, r] of Object.entries(m))
|
|
51
52
|
if (r !== void 0) {
|
|
52
|
-
if (!M.has(
|
|
53
|
-
l[
|
|
53
|
+
if (!M.has(a)) return null;
|
|
54
|
+
l[a] = r;
|
|
54
55
|
}
|
|
55
56
|
return d === void 0 ? { collection: u, query: l } : { collection: u, id: d, query: l };
|
|
56
57
|
}
|
|
@@ -58,7 +59,7 @@ function z(e) {
|
|
|
58
59
|
let o = [], s;
|
|
59
60
|
const u = (l) => e.request(l.command).then(l.resolve, l.reject), d = async (l) => {
|
|
60
61
|
if (l.length === 1) return u(l[0]);
|
|
61
|
-
let
|
|
62
|
+
let a;
|
|
62
63
|
try {
|
|
63
64
|
const r = await e.request({
|
|
64
65
|
_method: "POST",
|
|
@@ -72,12 +73,12 @@ function z(e) {
|
|
|
72
73
|
}))
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
|
-
|
|
76
|
+
a = Array.isArray(r == null ? void 0 : r.results) ? r.results : void 0;
|
|
76
77
|
} catch {
|
|
77
|
-
|
|
78
|
+
a = void 0;
|
|
78
79
|
}
|
|
79
80
|
l.forEach((r, n) => {
|
|
80
|
-
const t =
|
|
81
|
+
const t = a == null ? void 0 : a[n];
|
|
81
82
|
if ((t == null ? void 0 : t.status) !== 200 || t === void 0) {
|
|
82
83
|
u(r);
|
|
83
84
|
return;
|
|
@@ -88,12 +89,12 @@ function z(e) {
|
|
|
88
89
|
s = void 0;
|
|
89
90
|
const l = o;
|
|
90
91
|
o = [];
|
|
91
|
-
for (let
|
|
92
|
-
d(l.slice(
|
|
92
|
+
for (let a = 0; a < l.length; a += C)
|
|
93
|
+
d(l.slice(a, a + C));
|
|
93
94
|
};
|
|
94
|
-
return (l,
|
|
95
|
+
return (l, a) => new Promise((r, n) => {
|
|
95
96
|
o.push({
|
|
96
|
-
read:
|
|
97
|
+
read: a,
|
|
97
98
|
command: l,
|
|
98
99
|
resolve: r,
|
|
99
100
|
reject: n
|
|
@@ -112,10 +113,10 @@ function B() {
|
|
|
112
113
|
}
|
|
113
114
|
function H(e) {
|
|
114
115
|
let o = !0, s = [], u;
|
|
115
|
-
const d = (
|
|
116
|
-
const r = [...new Set(
|
|
116
|
+
const d = (a) => e.request(a.command).then(a.resolve, a.reject), m = async (a) => {
|
|
117
|
+
const r = [...new Set(a.map((c) => c.name))];
|
|
117
118
|
if (r.length === 1 || !o) {
|
|
118
|
-
for (const c of
|
|
119
|
+
for (const c of a) d(c);
|
|
119
120
|
return;
|
|
120
121
|
}
|
|
121
122
|
let n;
|
|
@@ -129,7 +130,7 @@ function H(e) {
|
|
|
129
130
|
const h = c == null ? void 0 : c.status;
|
|
130
131
|
if (h === 400 || h === 404 || h === 405) o = !1;
|
|
131
132
|
else if (h === 429 || h !== void 0 && h >= 500) {
|
|
132
|
-
for (const v of
|
|
133
|
+
for (const v of a) v.reject(c);
|
|
133
134
|
return;
|
|
134
135
|
}
|
|
135
136
|
n = void 0;
|
|
@@ -137,37 +138,37 @@ function H(e) {
|
|
|
137
138
|
const t = n == null ? void 0 : n.data;
|
|
138
139
|
if (!t || typeof t != "object" || Array.isArray(t)) {
|
|
139
140
|
Array.isArray(t) && (o = !1);
|
|
140
|
-
for (const c of
|
|
141
|
+
for (const c of a) d(c);
|
|
141
142
|
return;
|
|
142
143
|
}
|
|
143
|
-
const
|
|
144
|
-
for (const c of
|
|
145
|
-
Object.hasOwn(
|
|
144
|
+
const i = t, f = new Set(Array.isArray(n == null ? void 0 : n.missing) ? n.missing : []);
|
|
145
|
+
for (const c of a)
|
|
146
|
+
Object.hasOwn(i, c.name) ? c.resolve({ data: y(i[c.name]) }) : f.has(c.name) ? c.reject(B()) : d(c);
|
|
146
147
|
}, l = () => {
|
|
147
148
|
u = void 0;
|
|
148
|
-
const
|
|
149
|
+
const a = s;
|
|
149
150
|
s = [];
|
|
150
151
|
const r = [], n = /* @__PURE__ */ new Map();
|
|
151
|
-
for (const t of
|
|
152
|
-
let
|
|
153
|
-
if (!
|
|
152
|
+
for (const t of a) {
|
|
153
|
+
let i = n.get(t.name);
|
|
154
|
+
if (!i) {
|
|
154
155
|
const f = r[r.length - 1], c = f ? new Set(f.map((h) => h.name)).size : S;
|
|
155
|
-
|
|
156
|
+
i = f && c < S ? f : [], i !== f && r.push(i), n.set(t.name, i);
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
+
i.push(t);
|
|
158
159
|
}
|
|
159
160
|
for (const t of r) m(t);
|
|
160
161
|
};
|
|
161
|
-
return (
|
|
162
|
+
return (a, r) => new Promise((n, t) => {
|
|
162
163
|
s.push({
|
|
163
164
|
name: r,
|
|
164
|
-
command:
|
|
165
|
+
command: a,
|
|
165
166
|
resolve: n,
|
|
166
167
|
reject: t
|
|
167
168
|
}), u === void 0 && (u = setTimeout(l, Z));
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
|
-
const
|
|
171
|
+
const b = 3e3, W = /^\/(collections\/[A-Za-z_][A-Za-z0-9_-]*|field-config\/[A-Za-z_][A-Za-z0-9_-]*|collection-layouts(\/active|\/summary\/[A-Za-z_][A-Za-z0-9_-]*)?|chat\/room-types|users\/me)$/, F = /^\/(record-views|item-locks|drafts|presence|rum|comments|notifications|tasks|field-rules\/evaluate|chat\/(?!room-types)|field-config\/[^/]+\/(evaluate-visibility|evaluate-defaults|evaluate-lock|cascade|project)$|items\/(?!nivaro_|directus_)[^/]+|users\/cards$|files\/verify$)/;
|
|
171
172
|
function K(e) {
|
|
172
173
|
const o = (e._path ?? "").split("?")[0];
|
|
173
174
|
return (e._method ?? "GET").toUpperCase() === "POST" && q.test(o) ? !0 : F.test(o);
|
|
@@ -179,46 +180,46 @@ function Y(e) {
|
|
|
179
180
|
return !(s && s.item != null && /^\/collection-layouts\/active$/.test(o._path ?? ""));
|
|
180
181
|
}
|
|
181
182
|
let p = 0;
|
|
182
|
-
function
|
|
183
|
+
function O() {
|
|
183
184
|
p++;
|
|
184
185
|
}
|
|
185
186
|
function V(e, o = {}) {
|
|
186
187
|
if (j(e)) return e;
|
|
187
188
|
const s = /* @__PURE__ */ new Map(), u = o.batchReads ? z(e) : null, d = o.batchCollections === !1 ? null : H(e), m = /* @__PURE__ */ new Map();
|
|
188
189
|
let l = p;
|
|
189
|
-
const
|
|
190
|
+
const a = (n, t, i) => {
|
|
190
191
|
if (t !== p) return;
|
|
191
192
|
l !== p && (m.clear(), l = p);
|
|
192
193
|
const f = Date.now();
|
|
193
|
-
for (const [c, h] of m) f - h.at >=
|
|
194
|
-
m.set(n, { at: f, epoch: t, value:
|
|
194
|
+
for (const [c, h] of m) f - h.at >= b && m.delete(c);
|
|
195
|
+
m.set(n, { at: f, epoch: t, value: i });
|
|
195
196
|
}, r = (n) => {
|
|
196
197
|
const t = n;
|
|
197
198
|
if (!A(t)) {
|
|
198
199
|
w(t._method, t._path, t._body);
|
|
199
200
|
const _ = !K(t);
|
|
200
|
-
_ &&
|
|
201
|
+
_ && O();
|
|
201
202
|
const E = e.request(n);
|
|
202
|
-
return (_ ? E.finally(
|
|
203
|
+
return (_ ? E.finally(O) : E).then((g) => (w(t._method, t._path, t._body, g), g));
|
|
203
204
|
}
|
|
204
|
-
const
|
|
205
|
+
const i = k(t), f = Y(t);
|
|
205
206
|
if (f) {
|
|
206
|
-
const _ = m.get(
|
|
207
|
-
if (_ && _.epoch === p && Date.now() - _.at <
|
|
207
|
+
const _ = m.get(i);
|
|
208
|
+
if (_ && _.epoch === p && Date.now() - _.at < b)
|
|
208
209
|
return Promise.resolve(y(_.value));
|
|
209
210
|
}
|
|
210
|
-
const c = s.get(
|
|
211
|
+
const c = s.get(i);
|
|
211
212
|
if (c) return c.then(y);
|
|
212
|
-
const h = u ? $(t) : null, v = !h && d ? U(t) : null, P = h && u ? u(n, h) : v && d ? d(n, v) : e.request(n), L = p, T = P.then((_) => (f && i
|
|
213
|
-
s.get(
|
|
213
|
+
const h = u ? $(t) : null, v = !h && d ? U(t) : null, P = h && u ? u(n, h) : v && d ? d(n, v) : e.request(n), L = p, T = P.then((_) => (f && a(i, L, y(_)), _)).finally(() => {
|
|
214
|
+
s.get(i) === T && s.delete(i);
|
|
214
215
|
});
|
|
215
|
-
return s.set(
|
|
216
|
+
return s.set(i, T), T;
|
|
216
217
|
};
|
|
217
218
|
return new Proxy(e, {
|
|
218
|
-
get(n, t,
|
|
219
|
+
get(n, t, i) {
|
|
219
220
|
if (t === "request") return r;
|
|
220
221
|
if (t === G) return !0;
|
|
221
|
-
const f = Reflect.get(n, t,
|
|
222
|
+
const f = Reflect.get(n, t, i);
|
|
222
223
|
return typeof f == "function" ? f.bind(n) : f;
|
|
223
224
|
}
|
|
224
225
|
});
|
|
@@ -233,8 +234,8 @@ function X(e, o = {}) {
|
|
|
233
234
|
}, l = (r) => {
|
|
234
235
|
const n = r;
|
|
235
236
|
if (s || !N(n) || J.test(n._path ?? "")) return e.request(r);
|
|
236
|
-
const t = k(n),
|
|
237
|
-
if (
|
|
237
|
+
const t = k(n), i = d.get(t);
|
|
238
|
+
if (i) return i.promise.then(y);
|
|
238
239
|
let f = () => {
|
|
239
240
|
};
|
|
240
241
|
const h = new Promise((v) => {
|
|
@@ -258,8 +259,8 @@ function X(e, o = {}) {
|
|
|
258
259
|
u = void 0, s = !0, m();
|
|
259
260
|
}, 0));
|
|
260
261
|
};
|
|
261
|
-
const
|
|
262
|
-
return typeof
|
|
262
|
+
const i = Reflect.get(r, n, t);
|
|
263
|
+
return typeof i == "function" ? i.bind(r) : i;
|
|
263
264
|
}
|
|
264
265
|
});
|
|
265
266
|
}
|
|
@@ -267,11 +268,11 @@ export {
|
|
|
267
268
|
C as BATCH_READ_LIMIT,
|
|
268
269
|
S as COLLECTION_BATCH_LIMIT,
|
|
269
270
|
Z as COLLECTION_BATCH_WINDOW_MS,
|
|
270
|
-
|
|
271
|
+
b as SETTLED_READ_MS,
|
|
271
272
|
U as batchableCollectionMeta,
|
|
272
273
|
$ as batchableRead,
|
|
273
274
|
X as createGatedClient,
|
|
274
|
-
|
|
275
|
+
O as forgetSettledReads,
|
|
275
276
|
j as isCoalesced,
|
|
276
277
|
Y as isSettledRead,
|
|
277
278
|
V as withGetCoalescing
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
function M(c) {
|
|
2
|
+
const n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), i = { gaps: 0, missed: 0, replayed: 0, refetched: 0 }, m = c.graceMs ?? 1500, g = (s) => {
|
|
3
|
+
const e = o.get(s);
|
|
4
|
+
e && (e.timer && clearTimeout(e.timer), o.delete(s));
|
|
5
|
+
}, S = (s) => {
|
|
6
|
+
const e = o.get(s);
|
|
7
|
+
if (e) {
|
|
8
|
+
if (e.timer = null, e.missing.size === 0) {
|
|
9
|
+
o.delete(s);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
e.asked = !0, c.request({ room: s, cursor: e.fromSeq, missed: e.missing.size });
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
observe(s) {
|
|
17
|
+
if (!s || typeof s != "object") return;
|
|
18
|
+
const e = s;
|
|
19
|
+
if (typeof e._room != "string" || typeof e._rseq != "number") return;
|
|
20
|
+
const t = e._room, r = e._rseq, a = typeof e._rseq_min == "number" ? e._rseq_min : r, q = typeof e._seq == "number" ? e._seq : 0, f = n.get(t);
|
|
21
|
+
if (!f) {
|
|
22
|
+
n.set(t, { rseq: r, seq: q });
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const d = o.get(t);
|
|
26
|
+
if (d) for (let l = a; l <= r; l++) d.missing.delete(l);
|
|
27
|
+
if (d && d.missing.size === 0 && !d.asked && g(t), r <= f.rseq) {
|
|
28
|
+
r < f.rseq && a === 1 && n.set(t, { rseq: r, seq: q });
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (a > f.rseq + 1) {
|
|
32
|
+
const l = f.rseq + 1, h = a - 1, y = h - l + 1;
|
|
33
|
+
if (i.gaps++, i.missed += y, y > 200)
|
|
34
|
+
g(t), i.refetched++, c.refetch([t]);
|
|
35
|
+
else {
|
|
36
|
+
const u = o.get(t) ?? {
|
|
37
|
+
fromSeq: f.seq,
|
|
38
|
+
toSeq: q,
|
|
39
|
+
missing: /* @__PURE__ */ new Set(),
|
|
40
|
+
timer: null,
|
|
41
|
+
asked: !1
|
|
42
|
+
};
|
|
43
|
+
for (let p = l; p <= h; p++) u.missing.add(p);
|
|
44
|
+
u.toSeq = Math.max(u.toSeq, q), o.set(t, u), !u.timer && !u.asked && (u.timer = setTimeout(() => S(t), m));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
n.set(t, { rseq: r, seq: Math.max(f.seq, q) });
|
|
48
|
+
},
|
|
49
|
+
replayed(s) {
|
|
50
|
+
const e = s == null ? void 0 : s.room;
|
|
51
|
+
if (typeof e != "string") return;
|
|
52
|
+
const t = o.get(e);
|
|
53
|
+
if (g(e), !!t) {
|
|
54
|
+
if (s.full) {
|
|
55
|
+
i.refetched++, c.refetch([e]);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
for (const r of s.events ?? [])
|
|
59
|
+
typeof (r == null ? void 0 : r.seq) != "number" || r.seq <= t.fromSeq || !(typeof r.rseq == "number" ? t.missing.has(r.rseq) : t.toSeq === 0 || r.seq < t.toSeq) || (i.replayed++, c.dispatch(r.event, { ...r.payload, _seq: r.seq }));
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
reset(s) {
|
|
63
|
+
const e = s ?? [.../* @__PURE__ */ new Set([...n.keys(), ...o.keys()])];
|
|
64
|
+
for (const t of e)
|
|
65
|
+
g(t), n.delete(t);
|
|
66
|
+
},
|
|
67
|
+
stats() {
|
|
68
|
+
return { ...i };
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function _(c) {
|
|
73
|
+
return { collection: c, item: null, items: null, many: !0, count: 0, coalesced: !0 };
|
|
74
|
+
}
|
|
75
|
+
function k(c) {
|
|
76
|
+
const n = [];
|
|
77
|
+
for (const o of c)
|
|
78
|
+
if (o.startsWith("collection:"))
|
|
79
|
+
n.push({
|
|
80
|
+
event: "collection:update",
|
|
81
|
+
payload: _(o.slice(11))
|
|
82
|
+
});
|
|
83
|
+
else if (o.startsWith("record:")) {
|
|
84
|
+
const i = o.slice(7), m = i.indexOf(":");
|
|
85
|
+
m > 0 && n.push({
|
|
86
|
+
event: "collection:update",
|
|
87
|
+
payload: { collection: i.slice(0, m), item: i.slice(m + 1) }
|
|
88
|
+
});
|
|
89
|
+
} else o.startsWith("chat:") && n.push({ event: "chat:message", payload: { room: o.slice(5), touch: !0 } });
|
|
90
|
+
return n;
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
_ as coarseCollectionUpdate,
|
|
94
|
+
M as createRoomGapTracker,
|
|
95
|
+
k as refetchEventsFor
|
|
96
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = "••••••", f = /* @__PURE__ */ new Set([
|
|
2
2
|
"button",
|
|
3
3
|
"submit",
|
|
4
4
|
"reset",
|
|
@@ -9,54 +9,80 @@ const r = "••••••", c = /* @__PURE__ */ new Set([
|
|
|
9
9
|
"image",
|
|
10
10
|
"hidden"
|
|
11
11
|
]);
|
|
12
|
-
function
|
|
13
|
-
for (const t of Array.from(
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
const
|
|
17
|
-
|
|
12
|
+
function u(e) {
|
|
13
|
+
for (const t of Array.from(e.querySelectorAll("input"))) {
|
|
14
|
+
const n = t;
|
|
15
|
+
if (f.has((n.type || "text").toLowerCase())) continue;
|
|
16
|
+
const r = n.value !== "";
|
|
17
|
+
n.value = r ? a : "", n.setAttribute("value", r ? a : "");
|
|
18
18
|
}
|
|
19
|
-
for (const t of Array.from(
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
for (const t of Array.from(e.querySelectorAll("textarea"))) {
|
|
20
|
+
const n = t, r = n.value !== "";
|
|
21
|
+
n.value = r ? a : "", n.textContent = r ? a : "";
|
|
22
22
|
}
|
|
23
|
-
for (const t of Array.from(
|
|
24
|
-
const
|
|
25
|
-
for (const
|
|
23
|
+
for (const t of Array.from(e.querySelectorAll("select"))) {
|
|
24
|
+
const n = t;
|
|
25
|
+
for (const r of Array.from(n.options)) r.textContent = a;
|
|
26
26
|
}
|
|
27
27
|
for (const t of Array.from(
|
|
28
|
-
|
|
28
|
+
e.querySelectorAll('[contenteditable=""], [contenteditable="true"]')
|
|
29
29
|
))
|
|
30
|
-
t.textContent = t.textContent ?
|
|
31
|
-
for (const t of Array.from(
|
|
30
|
+
t.textContent = t.textContent ? a : "";
|
|
31
|
+
for (const t of Array.from(e.querySelectorAll(".nvr-no-record")))
|
|
32
32
|
t.style.visibility = "hidden";
|
|
33
33
|
}
|
|
34
34
|
async function s() {
|
|
35
35
|
try {
|
|
36
|
-
const
|
|
37
|
-
return
|
|
36
|
+
const e = await import("html2canvas");
|
|
37
|
+
return e.default ?? e;
|
|
38
38
|
} catch {
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function m(e = {}) {
|
|
43
43
|
if (typeof document > "u") return null;
|
|
44
44
|
const t = await s();
|
|
45
45
|
if (!t) return null;
|
|
46
|
-
const
|
|
46
|
+
const n = e.ignoreAttr ?? "data-report-problem";
|
|
47
47
|
try {
|
|
48
|
-
const
|
|
48
|
+
const r = await t(document.body, {
|
|
49
49
|
logging: !1,
|
|
50
|
-
scale: Math.min(1, (
|
|
51
|
-
ignoreElements: (
|
|
52
|
-
onclone: (
|
|
53
|
-
}),
|
|
54
|
-
return
|
|
50
|
+
scale: Math.min(1, (e.maxWidth ?? 1280) / Math.max(1, window.innerWidth)),
|
|
51
|
+
ignoreElements: (l) => l.hasAttribute(n),
|
|
52
|
+
onclone: (l) => u(l)
|
|
53
|
+
}), i = r.toDataURL("image/jpeg", 0.7);
|
|
54
|
+
return i.length > 24e5 ? r.toDataURL("image/jpeg", 0.4) : i;
|
|
55
|
+
} catch {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async function d(e, t = {}) {
|
|
60
|
+
if (typeof document > "u") return null;
|
|
61
|
+
const n = await s();
|
|
62
|
+
if (!n) return null;
|
|
63
|
+
const r = Math.max(1, e.scrollWidth || e.clientWidth);
|
|
64
|
+
try {
|
|
65
|
+
const i = await n(e, {
|
|
66
|
+
logging: !1,
|
|
67
|
+
backgroundColor: null,
|
|
68
|
+
scale: Math.min(1, (t.maxWidth ?? 1200) / r),
|
|
69
|
+
ignoreElements: (o) => {
|
|
70
|
+
var c;
|
|
71
|
+
return !!t.ignoreSelector && ((c = o.matches) == null ? void 0 : c.call(o, t.ignoreSelector));
|
|
72
|
+
},
|
|
73
|
+
onclone: (o) => u(o)
|
|
74
|
+
}), l = t.maxChars ?? 19e5;
|
|
75
|
+
for (const o of [0.7, 0.5, 0.35]) {
|
|
76
|
+
const c = i.toDataURL("image/jpeg", o);
|
|
77
|
+
if (c.length <= l) return c;
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
55
80
|
} catch {
|
|
56
81
|
return null;
|
|
57
82
|
}
|
|
58
83
|
}
|
|
59
84
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
85
|
+
d as captureElementImage,
|
|
86
|
+
m as captureMaskedScreenshot,
|
|
87
|
+
u as maskInputsIn
|
|
62
88
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { post as c } from "./commands.js";
|
|
2
|
+
const e = 2;
|
|
3
|
+
async function o(a, n) {
|
|
4
|
+
var r;
|
|
5
|
+
if (n.query.trim().length < e) return null;
|
|
6
|
+
try {
|
|
7
|
+
const t = await a.request(
|
|
8
|
+
c("/search-analytics/log", n)
|
|
9
|
+
);
|
|
10
|
+
return ((r = t == null ? void 0 : t.data) == null ? void 0 : r.id) ?? null;
|
|
11
|
+
} catch {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
async function u(a, n, r) {
|
|
16
|
+
try {
|
|
17
|
+
const t = await n;
|
|
18
|
+
if (t == null) return;
|
|
19
|
+
await a.request(c(`/search-analytics/log/${t}/open`, r));
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
e as MIN_LOGGED_QUERY,
|
|
25
|
+
o as logSearch,
|
|
26
|
+
u as logSearchOpen
|
|
27
|
+
};
|