@burdenoff/fe-libs 2026.527.2 → 2026.527.4
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/button/Button.js +18 -16
- package/dist/chrome/AccountSwitcher.js +10 -7
- package/dist/chrome/AutoBreadcrumbs.js +2 -0
- package/dist/chrome/Breadcrumbs.js +2 -0
- package/dist/chrome/CommandPalette.js +5 -3
- package/dist/chrome/ContextSwitcher.js +90 -338
- package/dist/chrome/DynamicFooter.js +7 -7
- package/dist/chrome/Footer.js +5 -5
- package/dist/chrome/GeographySwitcher.js +3 -3
- package/dist/chrome/GlobalSearch.js +73 -448
- package/dist/chrome/HeaderBar.js +6 -1
- package/dist/chrome/LanguagePickerSheet.js +1 -1
- package/dist/chrome/LanguageSwitcher.js +2 -2
- package/dist/chrome/NotificationCenter.js +69 -694
- package/dist/chrome/PanelTabs.js +7 -4
- package/dist/chrome/PluginContextMenuTarget.js +1 -1
- package/dist/chrome/ProductPickerSheet.js +4 -4
- package/dist/chrome/ProductSideNav.js +1 -1
- package/dist/chrome/ProductSwitcher.js +3 -3
- package/dist/chrome/ProfileSwitcher.js +13 -8
- package/dist/chrome/ShortcutHelpDialog.js +2 -1
- package/dist/chrome/SideNavigation.js +75 -239
- package/dist/chrome/Sidebar.js +1 -0
- package/dist/chrome/contextSwitcher/EmptyState.js +32 -0
- package/dist/chrome/contextSwitcher/OrganizationList.js +34 -0
- package/dist/chrome/contextSwitcher/ProjectList.js +34 -0
- package/dist/chrome/contextSwitcher/SearchInput.js +50 -0
- package/dist/chrome/contextSwitcher/TabButton.js +9 -0
- package/dist/chrome/contextSwitcher/TriggerButton.js +38 -0
- package/dist/chrome/contextSwitcher/WorkspaceList.js +34 -0
- package/dist/chrome/contextSwitcher/icons.js +58 -0
- package/dist/chrome/contextSwitcher/useIsMobile.js +11 -0
- package/dist/chrome/globalSearch/AdvancedFiltersPanel.js +253 -0
- package/dist/chrome/globalSearch/CategoryTabs.js +28 -0
- package/dist/chrome/globalSearch/ResultsList.js +58 -0
- package/dist/chrome/globalSearch/SearchInput.js +28 -0
- package/dist/chrome/globalSearch/SearchModeBar.js +36 -0
- package/dist/chrome/globalSearch/useAdvancedFilters.js +78 -0
- package/dist/chrome/globalSearch/utils.js +22 -0
- package/dist/chrome/notificationCenter/BellButton.js +27 -0
- package/dist/chrome/notificationCenter/NotificationCardItem.js +129 -0
- package/dist/chrome/notificationCenter/NotificationFilters.js +67 -0
- package/dist/chrome/notificationCenter/NotificationFooter.js +23 -0
- package/dist/chrome/notificationCenter/NotificationHeader.js +75 -0
- package/dist/chrome/notificationCenter/NotificationList.js +75 -0
- package/dist/chrome/notificationCenter/NotificationPanel.js +19 -0
- package/dist/chrome/notificationCenter/SkeletonCard.js +18 -0
- package/dist/chrome/notificationCenter/constants.js +93 -0
- package/dist/chrome/notificationCenter/gql.js +58 -0
- package/dist/chrome/notificationCenter/useNotificationCenter.js +149 -0
- package/dist/chrome/notificationCenter/usePanelChrome.js +36 -0
- package/dist/chrome/sideNavigation/CollapseToggle.js +29 -0
- package/dist/chrome/sideNavigation/MobileActionsBar.js +25 -0
- package/dist/chrome/sideNavigation/NavItemRenderer.js +79 -0
- package/dist/chrome/sideNavigation/SidebarHeader.js +29 -0
- package/dist/chrome/sideNavigation/helpers.js +19 -0
- package/dist/chrome/sideNavigation/useSideNavigationState.js +45 -0
- package/dist/form/Checkbox.js +17 -15
- package/dist/form/FormDescription.js +9 -10
- package/dist/form/FormField.js +11 -12
- package/dist/form/FormLabel.js +13 -13
- package/dist/form/FormMessage.js +10 -11
- package/dist/form/Input.js +11 -10
- package/dist/form/Radio.js +25 -21
- package/dist/form/Select.js +81 -66
- package/dist/form/Textarea.js +10 -9
- package/dist/shared/components/AccessDenied.js +8 -4
- package/dist/shared/components/AppErrorBoundary.js +2 -0
- package/dist/shared/components/ContextConversationWidget.js +173 -767
- package/dist/shared/components/ErrorFallback.js +3 -0
- package/dist/shared/components/PWAInstallBanner.js +8 -4
- package/dist/shared/components/RequireAuth.js +4 -4
- package/dist/shared/components/SSORedirectGuard.js +1 -1
- package/dist/shared/components/contextConversationWidget/Composer.js +66 -0
- package/dist/shared/components/contextConversationWidget/MessageItem.js +124 -0
- package/dist/shared/components/contextConversationWidget/MessageList.js +32 -0
- package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.js +19 -0
- package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.js +28 -0
- package/dist/shared/components/contextConversationWidget/ReplyBanner.js +32 -0
- package/dist/shared/components/contextConversationWidget/WidgetHeader.js +70 -0
- package/dist/shared/components/contextConversationWidget/queries.js +197 -0
- package/dist/shared/components/contextConversationWidget/types.js +10 -0
- package/dist/shared/components/contextConversationWidget/useAttachmentUpload.js +57 -0
- package/dist/shared/components/contextConversationWidget/useConversationSubscriptions.js +26 -0
- package/dist/shared/components/contextConversationWidget/useMessageActions.js +34 -0
- package/dist/shared/components/contextConversationWidget/useSendMessage.js +45 -0
- package/dist/shared/components/contextConversationWidget/useWidgetMessages.js +44 -0
- package/dist/shared/components/contextConversationWidget/utils.js +56 -0
- package/dist/shared/feature-flags/FeatureFlagProvider.js +21 -21
- package/dist/shared/geography/GeographyProvider.js +20 -20
- package/dist/shared/graphql/GatewayContext.js +1 -1
- package/dist/shared/motion/MotionList.js +1 -1
- package/dist/shared/pages/AiPage.js +3 -3
- package/dist/shared/pages/SearchPage.js +293 -1071
- package/dist/shared/pages/searchPage/ActiveFilterChips.js +176 -0
- package/dist/shared/pages/searchPage/FiltersPanel.js +329 -0
- package/dist/shared/pages/searchPage/ResultsList.js +119 -0
- package/dist/shared/pages/searchPage/ResultsStatus.js +32 -0
- package/dist/shared/pages/searchPage/SearchInput.js +31 -0
- package/dist/shared/pages/searchPage/SearchPagination.js +37 -0
- package/dist/shared/pages/searchPage/SearchToolbar.js +58 -0
- package/dist/shared/pages/searchPage/constants.js +155 -0
- package/dist/shared/pages/searchPage/utils.js +24 -0
- package/dist/shared/plugins/PluginRuntimeProvider.js +1 -1
- package/dist/shared/providers/shell/ActiveContextProvider.js +12 -12
- package/dist/shared/providers/shell/AppShellContext.js +1 -1
- package/dist/shared/providers/shell/AuthProvider.js +130 -384
- package/dist/shared/providers/shell/AuthTokenProvider.js +6 -6
- package/dist/shared/providers/shell/ContextManagerProvider.js +1 -1
- package/dist/shared/providers/shell/FeatureFlagsProvider.js +5 -5
- package/dist/shared/providers/shell/GlobalUiProvider.js +17 -17
- package/dist/shared/providers/shell/I18nProvider.js +15 -15
- package/dist/shared/providers/shell/PageConversationContextProvider.js +14 -14
- package/dist/shared/providers/shell/PermissionProvider.js +16 -16
- package/dist/shared/providers/shell/ShellUiProvider.js +13 -13
- package/dist/shared/providers/shell/ThemeProvider.js +9 -9
- package/dist/shared/providers/shell/authProvider/bridgeStateSync.js +34 -0
- package/dist/shared/providers/shell/authProvider/jwt.js +13 -0
- package/dist/shared/providers/shell/authProvider/ssoRelay.js +38 -0
- package/dist/shared/providers/shell/authProvider/useAuthActions.js +170 -0
- package/dist/shared/providers/shell/authProvider/useBridgeInitialization.js +86 -0
- package/dist/shared/providers/shell/authProvider/useRemoteSLO.js +32 -0
- package/dist/shared/providers/shell/authProvider/useStorageSync.js +35 -0
- package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.js +37 -0
- package/dist/shared/tours/TourPlayer.js +1 -0
- package/dist/shared/tours/TourPlayerProvider.js +1 -1
- package/dist/shared/tours/TourTooltip.js +3 -0
- package/dist/shared/tours/TourTrigger.js +86 -259
- package/dist/shared/tours/ToursContext.js +108 -398
- package/dist/shared/tours/tourTrigger/DesktopTourDropdown.js +48 -0
- package/dist/shared/tours/tourTrigger/MobileTourSheet.js +68 -0
- package/dist/shared/tours/tourTrigger/TourListItemDesktop.js +36 -0
- package/dist/shared/tours/tourTrigger/TourListItemMobile.js +47 -0
- package/dist/shared/tours/tourTrigger/TourStatusChip.js +30 -0
- package/dist/shared/tours/tourTrigger/TourTriggerButton.js +22 -0
- package/dist/shared/tours/toursContext/errors.js +18 -0
- package/dist/shared/tours/toursContext/gql.js +152 -0
- package/dist/shared/tours/toursContext/route.js +20 -0
- package/dist/shared/tours/toursContext/session.js +19 -0
- package/dist/shared/tours/toursContext/useIdleReady.js +18 -0
- package/dist/shared/tours/toursContext/useTourMutations.js +118 -0
- package/dist/shared-events.js +3 -3
- package/dist/shared-hooks.js +1 -1
- package/dist/storage/SaveToFilesButton.js +3 -3
- package/dist/storage/SaveToFilesDialog.js +1 -1
- package/dist/tag/TagBadge.js +1 -1
- package/dist/tag/TagsWidget.js +81 -226
- package/dist/tag/tagsWidget/AddTagTrigger.js +14 -0
- package/dist/tag/tagsWidget/TagBadgeList.js +17 -0
- package/dist/tag/tagsWidget/TagSearchPopover.js +80 -0
- package/dist/tag/tagsWidget/operations.js +64 -0
- package/dist/tag/tagsWidget/useVocabResolver.js +30 -0
- package/dist/ui/card.js +44 -39
- package/dist/ui/dropdown-menu.js +82 -66
- package/dist/ui/input.js +10 -10
- package/dist/ui/label.js +13 -11
- package/dist/ui/select.js +80 -66
- package/dist/ui/table.js +61 -54
- package/dist/ui/textarea.js +9 -9
- package/dist/ui/tooltip.js +13 -11
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Search as e, X as t } from "lucide-react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/pages/searchPage/SearchInput.tsx
|
|
4
|
+
function i({ inputValue: i, placeholder: a, onInputChange: o, onSubmit: s, onClear: c }) {
|
|
5
|
+
return /* @__PURE__ */ n("form", {
|
|
6
|
+
onSubmit: s,
|
|
7
|
+
className: "mb-6",
|
|
8
|
+
children: /* @__PURE__ */ r("div", {
|
|
9
|
+
className: "relative",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ n(e, { className: "absolute left-4 top-1/2 -translate-y-1/2 size-5 text-text-tertiary" }),
|
|
12
|
+
/* @__PURE__ */ n("input", {
|
|
13
|
+
type: "text",
|
|
14
|
+
value: i,
|
|
15
|
+
onChange: (e) => o(e.target.value),
|
|
16
|
+
placeholder: a,
|
|
17
|
+
className: "w-full h-12 pl-12 pr-12 text-lg rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-primary-default focus:border-transparent",
|
|
18
|
+
autoFocus: !0
|
|
19
|
+
}),
|
|
20
|
+
i && /* @__PURE__ */ n("button", {
|
|
21
|
+
type: "button",
|
|
22
|
+
onClick: c,
|
|
23
|
+
className: "absolute right-4 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-bg-muted transition-colors",
|
|
24
|
+
children: /* @__PURE__ */ n(t, { className: "size-4 text-text-tertiary" })
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { i as SearchInput };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ChevronLeft as e, ChevronRight as t } from "lucide-react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/pages/searchPage/SearchPagination.tsx
|
|
4
|
+
function i({ currentPage: i, totalPages: a, hasMore: o, onPageChange: s }) {
|
|
5
|
+
return /* @__PURE__ */ r("div", {
|
|
6
|
+
className: "flex items-center justify-center gap-2 mt-8",
|
|
7
|
+
children: [
|
|
8
|
+
/* @__PURE__ */ r("button", {
|
|
9
|
+
type: "button",
|
|
10
|
+
onClick: () => s(Math.max(1, i - 1)),
|
|
11
|
+
disabled: i === 1,
|
|
12
|
+
className: "flex items-center gap-1 px-3 py-2 text-sm rounded-md border border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted disabled:opacity-50 disabled:cursor-not-allowed",
|
|
13
|
+
children: [/* @__PURE__ */ n(e, { className: "size-4" }), "Previous"]
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ n("div", {
|
|
16
|
+
className: "flex items-center gap-1",
|
|
17
|
+
children: Array.from({ length: Math.min(5, a) }, (e, t) => {
|
|
18
|
+
let r;
|
|
19
|
+
return r = a <= 5 || i <= 3 ? t + 1 : i >= a - 2 ? a - 4 + t : i - 2 + t, /* @__PURE__ */ n("button", {
|
|
20
|
+
onClick: () => s(r),
|
|
21
|
+
className: `w-9 h-9 text-sm rounded-md transition-colors ${i === r ? "bg-primary-default text-primary-foreground" : "border border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted"}`,
|
|
22
|
+
children: r
|
|
23
|
+
}, r);
|
|
24
|
+
})
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ r("button", {
|
|
27
|
+
type: "button",
|
|
28
|
+
onClick: () => s(Math.min(a, i + 1)),
|
|
29
|
+
disabled: i === a || !o,
|
|
30
|
+
className: "flex items-center gap-1 px-3 py-2 text-sm rounded-md border border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted disabled:opacity-50 disabled:cursor-not-allowed",
|
|
31
|
+
children: ["Next", /* @__PURE__ */ n(t, { className: "size-4" })]
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { i as SearchPagination };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SEARCH_MODE_INFO as e, SORT_OPTIONS as t } from "./constants.js";
|
|
2
|
+
import { ArrowUpDown as n, ChevronDown as r, ChevronUp as i, SlidersHorizontal as a } from "lucide-react";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
//#region src/shared/pages/searchPage/SearchToolbar.tsx
|
|
5
|
+
function c({ searchMode: c, sortBy: l, showFilters: u, activeFilterCount: d, onSearchModeChange: f, onSortByChange: p, onToggleFilters: m, onClearFilters: h }) {
|
|
6
|
+
return /* @__PURE__ */ s("div", {
|
|
7
|
+
className: "flex flex-wrap items-center gap-4 mb-6",
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ o("div", {
|
|
10
|
+
className: "flex items-center gap-1 bg-bg-surface rounded-lg p-1 border border-border-default",
|
|
11
|
+
children: [
|
|
12
|
+
"PARTIAL",
|
|
13
|
+
"FULLTEXT",
|
|
14
|
+
"EXACT"
|
|
15
|
+
].map((t) => /* @__PURE__ */ o("button", {
|
|
16
|
+
type: "button",
|
|
17
|
+
onClick: () => f(t),
|
|
18
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${c === t ? "bg-primary-default text-primary-foreground" : "text-text-secondary hover:bg-bg-muted"}`,
|
|
19
|
+
title: e[t].description,
|
|
20
|
+
children: e[t].label
|
|
21
|
+
}, t))
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ s("div", {
|
|
24
|
+
className: "flex items-center gap-2",
|
|
25
|
+
children: [/* @__PURE__ */ o(n, { className: "size-4 text-text-tertiary" }), /* @__PURE__ */ o("select", {
|
|
26
|
+
value: l,
|
|
27
|
+
onChange: (e) => p(e.target.value),
|
|
28
|
+
className: "h-9 px-3 text-sm rounded-md border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default",
|
|
29
|
+
children: t.map((e) => /* @__PURE__ */ o("option", {
|
|
30
|
+
value: e.value,
|
|
31
|
+
children: e.label
|
|
32
|
+
}, e.value))
|
|
33
|
+
})]
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ s("button", {
|
|
36
|
+
onClick: m,
|
|
37
|
+
className: `flex items-center gap-2 px-3 py-2 text-sm rounded-md border transition-colors ${u || d > 0 ? "border-primary-default bg-primary-default/10 text-primary-default" : "border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted"}`,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ o(a, { className: "size-4" }),
|
|
40
|
+
"Filters",
|
|
41
|
+
d > 0 && /* @__PURE__ */ o("span", {
|
|
42
|
+
className: "ml-1 px-1.5 py-0.5 text-xs font-medium bg-primary-default text-primary-foreground rounded-full",
|
|
43
|
+
children: d
|
|
44
|
+
}),
|
|
45
|
+
o(u ? i : r, { className: "size-4" })
|
|
46
|
+
]
|
|
47
|
+
}),
|
|
48
|
+
d > 0 && /* @__PURE__ */ o("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: h,
|
|
51
|
+
className: "text-sm text-text-secondary hover:text-text-primary underline",
|
|
52
|
+
children: "Clear all filters"
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { c as SearchToolbar };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Calendar as e, CheckSquare as t, File as n, FileText as r, FolderKanban as i, LayoutGrid as a, MessageSquare as o, Server as s, Tag as c, Terminal as l, Users as u } from "lucide-react";
|
|
2
|
+
//#region src/shared/pages/searchPage/constants.ts
|
|
3
|
+
var d = {
|
|
4
|
+
UniversalTag: c,
|
|
5
|
+
TagVocabulary: c,
|
|
6
|
+
tag: c,
|
|
7
|
+
document: r,
|
|
8
|
+
file: n,
|
|
9
|
+
page: r,
|
|
10
|
+
member: u,
|
|
11
|
+
user: u,
|
|
12
|
+
"calendar-event": e,
|
|
13
|
+
meeting: e,
|
|
14
|
+
project: i,
|
|
15
|
+
conversation: o,
|
|
16
|
+
thread: o,
|
|
17
|
+
task: t,
|
|
18
|
+
projects: i,
|
|
19
|
+
workspaces: a,
|
|
20
|
+
workspace: a,
|
|
21
|
+
docs: r,
|
|
22
|
+
tags: c,
|
|
23
|
+
members: u,
|
|
24
|
+
calendar: e,
|
|
25
|
+
conversations: o,
|
|
26
|
+
tasks: t,
|
|
27
|
+
Agent: s,
|
|
28
|
+
agent: s,
|
|
29
|
+
agents: s,
|
|
30
|
+
Vibe: i,
|
|
31
|
+
vibe: i,
|
|
32
|
+
vibes: i,
|
|
33
|
+
Session: l,
|
|
34
|
+
session: l,
|
|
35
|
+
sessions: l,
|
|
36
|
+
Note: r,
|
|
37
|
+
note: r,
|
|
38
|
+
notes: r,
|
|
39
|
+
Target: s,
|
|
40
|
+
target: s,
|
|
41
|
+
targets: s
|
|
42
|
+
}, f = {
|
|
43
|
+
PARTIAL: {
|
|
44
|
+
label: "Partial",
|
|
45
|
+
description: "Matches prefixes and substrings (autocomplete)"
|
|
46
|
+
},
|
|
47
|
+
FULLTEXT: {
|
|
48
|
+
label: "Full-text",
|
|
49
|
+
description: "BM25 word matching with stemming"
|
|
50
|
+
},
|
|
51
|
+
EXACT: {
|
|
52
|
+
label: "Exact",
|
|
53
|
+
description: "All search terms must appear exactly"
|
|
54
|
+
}
|
|
55
|
+
}, p = [
|
|
56
|
+
{
|
|
57
|
+
value: "SCORE_DESC",
|
|
58
|
+
label: "Relevance"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "CREATED_DESC",
|
|
62
|
+
label: "Newest first"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: "CREATED_ASC",
|
|
66
|
+
label: "Oldest first"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: "UPDATED_DESC",
|
|
70
|
+
label: "Recently updated"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
value: "UPDATED_ASC",
|
|
74
|
+
label: "Least recently updated"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
value: "TITLE_ASC",
|
|
78
|
+
label: "Title A-Z"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
value: "TITLE_DESC",
|
|
82
|
+
label: "Title Z-A"
|
|
83
|
+
}
|
|
84
|
+
], m = [
|
|
85
|
+
{
|
|
86
|
+
value: "workspace",
|
|
87
|
+
label: "Workspaces"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: "project",
|
|
91
|
+
label: "Projects"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: "member",
|
|
95
|
+
label: "Members"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: "user",
|
|
99
|
+
label: "Users"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
value: "UniversalTag",
|
|
103
|
+
label: "Tags"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
value: "TagVocabulary",
|
|
107
|
+
label: "Vocabularies"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
value: "document",
|
|
111
|
+
label: "Documents"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
value: "file",
|
|
115
|
+
label: "Files"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
value: "task",
|
|
119
|
+
label: "Tasks"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
value: "calendar-event",
|
|
123
|
+
label: "Calendar Events"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
value: "conversation",
|
|
127
|
+
label: "Conversations"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
value: "Agent",
|
|
131
|
+
label: "Agents"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: "Vibe",
|
|
135
|
+
label: "Vibes"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
value: "Session",
|
|
139
|
+
label: "Sessions"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
value: "Note",
|
|
143
|
+
label: "Notes"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
value: "Target",
|
|
147
|
+
label: "Targets"
|
|
148
|
+
}
|
|
149
|
+
], h = [], g = {
|
|
150
|
+
key: "",
|
|
151
|
+
value: "",
|
|
152
|
+
operator: "EQUALS"
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { g as EMPTY_METADATA_CONDITION, d as ENTITY_TYPE_ICONS, m as ENTITY_TYPE_OPTIONS, h as PRODUCT_OPTIONS, f as SEARCH_MODE_INFO, p as SORT_OPTIONS };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/shared/pages/searchPage/utils.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return e.length > 0 ? e.join(",") : void 0;
|
|
7
|
+
}
|
|
8
|
+
function n(e, t) {
|
|
9
|
+
if (!e) return t;
|
|
10
|
+
try {
|
|
11
|
+
return JSON.parse(e);
|
|
12
|
+
} catch {
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function r(e) {
|
|
17
|
+
return (e ?? []).filter((e) => e.key?.trim() || e.value?.trim()).map((e) => ({
|
|
18
|
+
key: e.key ?? "",
|
|
19
|
+
value: e.value ?? "",
|
|
20
|
+
operator: e.operator ?? "EQUALS"
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { r as normalizeMetadataConditions, n as safeParseJson, t as serializeCsv, e as splitCsv };
|
|
@@ -9,7 +9,7 @@ import { useSettingsRegistryStore as s } from "./registries/useSettingsRegistry.
|
|
|
9
9
|
import { useWidgetRegistryStore as c } from "./registries/useWidgetRegistry.js";
|
|
10
10
|
import { useToolbarRegistryStore as l } from "./registries/useToolbarRegistry.js";
|
|
11
11
|
import { useContextMenuRegistryStore as u } from "./registries/useContextMenuRegistry.js";
|
|
12
|
-
import { createContext as d,
|
|
12
|
+
import { createContext as d, use as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g } from "react";
|
|
13
13
|
import { jsx as _ } from "react/jsx-runtime";
|
|
14
14
|
//#region src/shared/plugins/PluginRuntimeProvider.tsx
|
|
15
15
|
var v = d(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getProfileContext as e, resolveActiveProfileId as t, setProfileContext as n } from "./ProfileStorageManager.js";
|
|
2
2
|
import { ACTIVE_CONTEXT_STORAGE_KEY as r, DEFAULT_ACTIVE_CONTEXT_URL_PARAMS as i, clearActiveContextStorage as a, getUrlParam as o, readActiveContextStorageValue as s, writeActiveContextFallback as c, writeActiveContextStorageValue as l } from "./ActiveContextStorage.js";
|
|
3
|
-
import { createContext as u,
|
|
3
|
+
import { createContext as u, use as d, useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
|
|
4
4
|
import { jsx as g } from "react/jsx-runtime";
|
|
5
5
|
//#region src/shared/providers/shell/ActiveContextProvider.tsx
|
|
6
6
|
var _ = u(null);
|
|
@@ -11,14 +11,14 @@ function v(e) {
|
|
|
11
11
|
n ? t.searchParams.set(e, n) : t.searchParams.delete(e);
|
|
12
12
|
}), window.history.replaceState({}, "", t.toString());
|
|
13
13
|
}
|
|
14
|
-
function y({ children: u, defaultOrganizationId:
|
|
14
|
+
function y({ children: u, defaultOrganizationId: d = null, defaultWorkspaceId: y = null, defaultProjectId: b = null, defaultTenantId: x = null, storageKey: S = r, syncToUrl: C = !1, urlParams: w = i }) {
|
|
15
15
|
let [T, E] = h(() => {
|
|
16
|
-
if (typeof window > "u") return
|
|
16
|
+
if (typeof window > "u") return d;
|
|
17
17
|
if (C) {
|
|
18
18
|
let e = o(w.organization);
|
|
19
19
|
if (e) return e;
|
|
20
20
|
}
|
|
21
|
-
return s("organization", S) ||
|
|
21
|
+
return s("organization", S) || d;
|
|
22
22
|
}), [D, O] = h(() => {
|
|
23
23
|
if (typeof window > "u") return y;
|
|
24
24
|
if (C) {
|
|
@@ -105,14 +105,14 @@ function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y
|
|
|
105
105
|
k,
|
|
106
106
|
j
|
|
107
107
|
]);
|
|
108
|
-
let N =
|
|
108
|
+
let N = f((r) => {
|
|
109
109
|
E(r);
|
|
110
110
|
let i = t();
|
|
111
111
|
i && n(i, {
|
|
112
112
|
...e(i),
|
|
113
113
|
organizationId: r
|
|
114
114
|
}), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:organization-changed", { detail: { organizationId: r } }));
|
|
115
|
-
}, []), P =
|
|
115
|
+
}, []), P = f((r, i) => {
|
|
116
116
|
let a = {
|
|
117
117
|
organization: "organizationId",
|
|
118
118
|
workspace: "workspaceId",
|
|
@@ -125,20 +125,20 @@ function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y
|
|
|
125
125
|
...e(o),
|
|
126
126
|
[a[r]]: i
|
|
127
127
|
}) : typeof window < "u" && c(r, i, S);
|
|
128
|
-
}, [S]), F =
|
|
128
|
+
}, [S]), F = f((e) => {
|
|
129
129
|
O(e), P("workspace", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:workspace-changed", { detail: { workspaceId: e } }));
|
|
130
|
-
}, [P]), I =
|
|
130
|
+
}, [P]), I = f((e) => {
|
|
131
131
|
A(e), P("project", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:project-changed", { detail: { projectId: e } }));
|
|
132
|
-
}, [P]), L =
|
|
132
|
+
}, [P]), L = f((e) => {
|
|
133
133
|
M(e), P("tenant", e);
|
|
134
|
-
}, [P]), R =
|
|
134
|
+
}, [P]), R = f((e) => {
|
|
135
135
|
e.organizationId !== void 0 && N(e.organizationId), e.workspaceId !== void 0 && F(e.workspaceId), e.projectId !== void 0 && I(e.projectId), e.tenantId !== void 0 && L(e.tenantId);
|
|
136
136
|
}, [
|
|
137
137
|
N,
|
|
138
138
|
F,
|
|
139
139
|
I,
|
|
140
140
|
L
|
|
141
|
-
]), z =
|
|
141
|
+
]), z = f(() => {
|
|
142
142
|
E(null), O(null), A(null), M(null), a(S);
|
|
143
143
|
let e = t();
|
|
144
144
|
e && n(e, {});
|
|
@@ -173,7 +173,7 @@ function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
function b() {
|
|
176
|
-
let e =
|
|
176
|
+
let e = d(_);
|
|
177
177
|
if (!e) throw Error("useActiveContext must be used within an ActiveContextProvider");
|
|
178
178
|
return e;
|
|
179
179
|
}
|