@seliseblocks/genesis-os 4.3.3 → 4.3.5
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/{chunk-SG3SZ45K.cjs → chunk-6DQTH7RD.cjs} +212 -167
- package/dist/chunk-6DQTH7RD.cjs.map +1 -0
- package/dist/{chunk-QMVZVNIZ.js → chunk-H47HQ5UX.js} +56 -15
- package/dist/chunk-H47HQ5UX.js.map +1 -0
- package/dist/{chunk-ASLTNGXQ.js → chunk-IWWGJQGJ.js} +184 -139
- package/dist/chunk-IWWGJQGJ.js.map +1 -0
- package/dist/{chunk-GZSVB47D.cjs → chunk-XALNVJQU.cjs} +55 -13
- package/dist/chunk-XALNVJQU.cjs.map +1 -0
- package/dist/components/index.cjs +340 -340
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.cjs +45 -41
- package/dist/hooks/index.d.cts +26 -11
- package/dist/hooks/index.d.ts +26 -11
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +396 -392
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/layouts/index.cjs +9 -9
- package/dist/layouts/index.js +2 -2
- package/dist/pages/index.cjs +7 -7
- package/dist/pages/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-ASLTNGXQ.js.map +0 -1
- package/dist/chunk-GZSVB47D.cjs.map +0 -1
- package/dist/chunk-QMVZVNIZ.js.map +0 -1
- package/dist/chunk-SG3SZ45K.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useSignUpAffordance, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, usePrefetchRedirect } from './chunk-
|
|
2
|
+
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, usePrefetchRedirect } from './chunk-H47HQ5UX.js';
|
|
3
3
|
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-TE3SKUL4.js';
|
|
4
4
|
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-WIY77276.js';
|
|
5
5
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
|
|
@@ -19,7 +19,7 @@ import { motion, AnimatePresence } from 'framer-motion';
|
|
|
19
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
import { Slot } from '@radix-ui/react-slot';
|
|
21
21
|
import { cva } from 'class-variance-authority';
|
|
22
|
-
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell,
|
|
22
|
+
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, BookOpenText, SquareTerminal, Sparkles, Layers, Plus, UsersRound, LayoutGrid, List, ArrowUpRight, Pencil, Settings2, Terminal } from 'lucide-react';
|
|
23
23
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
24
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
25
25
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -4713,8 +4713,8 @@ var hasDraggableData = (entry) => {
|
|
|
4713
4713
|
if (!entry) {
|
|
4714
4714
|
return false;
|
|
4715
4715
|
}
|
|
4716
|
-
const
|
|
4717
|
-
if (
|
|
4716
|
+
const data = entry.data.current;
|
|
4717
|
+
if (data?.type === "Column" || data?.type === "Task") {
|
|
4718
4718
|
return true;
|
|
4719
4719
|
}
|
|
4720
4720
|
return false;
|
|
@@ -4740,9 +4740,9 @@ var kanbanKeyboardCoordinateGetter = (event, { context: { active, droppableRects
|
|
|
4740
4740
|
if (!rect) {
|
|
4741
4741
|
return;
|
|
4742
4742
|
}
|
|
4743
|
-
const
|
|
4744
|
-
if (
|
|
4745
|
-
const { type, children } =
|
|
4743
|
+
const data = entry.data.current;
|
|
4744
|
+
if (data) {
|
|
4745
|
+
const { type, children } = data;
|
|
4746
4746
|
if (type === "Column" && children?.length > 0) {
|
|
4747
4747
|
if (active.data.current?.type !== "Column") {
|
|
4748
4748
|
return;
|
|
@@ -4927,13 +4927,13 @@ var KanbanBoard = () => {
|
|
|
4927
4927
|
};
|
|
4928
4928
|
const onDragStart = (event) => {
|
|
4929
4929
|
if (!hasDraggableData(event.active)) return;
|
|
4930
|
-
const
|
|
4931
|
-
if (
|
|
4932
|
-
setActiveColumn(
|
|
4930
|
+
const data = event.active.data.current;
|
|
4931
|
+
if (data?.type === "Column") {
|
|
4932
|
+
setActiveColumn(data.column);
|
|
4933
4933
|
return;
|
|
4934
4934
|
}
|
|
4935
|
-
if (
|
|
4936
|
-
setActiveTask(
|
|
4935
|
+
if (data?.type === "Task") {
|
|
4936
|
+
setActiveTask(data.task);
|
|
4937
4937
|
}
|
|
4938
4938
|
};
|
|
4939
4939
|
const onDragEnd = (event) => {
|
|
@@ -5093,7 +5093,7 @@ var InfiniteScroller = ({
|
|
|
5093
5093
|
emptyContent,
|
|
5094
5094
|
className
|
|
5095
5095
|
}) => {
|
|
5096
|
-
const [
|
|
5096
|
+
const [data, setData] = useState(initialData);
|
|
5097
5097
|
const [isLoading, setIsLoading] = useState(false);
|
|
5098
5098
|
const [hasMore, setHasMore] = useState(hasTopMore);
|
|
5099
5099
|
const scrollContainerRef = useRef(null);
|
|
@@ -5102,7 +5102,7 @@ var InfiniteScroller = ({
|
|
|
5102
5102
|
if (isLoading || !hasMore) return;
|
|
5103
5103
|
setIsLoading(true);
|
|
5104
5104
|
try {
|
|
5105
|
-
const firstItem =
|
|
5105
|
+
const firstItem = data.length ? data[0] : null;
|
|
5106
5106
|
const olderData = await topFn(firstItem);
|
|
5107
5107
|
if (olderData.length > 0) {
|
|
5108
5108
|
const scrollContainer = scrollContainerRef.current;
|
|
@@ -5125,10 +5125,10 @@ var InfiniteScroller = ({
|
|
|
5125
5125
|
} finally {
|
|
5126
5126
|
setIsLoading(false);
|
|
5127
5127
|
}
|
|
5128
|
-
}, [
|
|
5128
|
+
}, [data, hasMore, isLoading, topFn]);
|
|
5129
5129
|
const handleFetchNewerData = useCallback(async () => {
|
|
5130
5130
|
try {
|
|
5131
|
-
const lastItem =
|
|
5131
|
+
const lastItem = data.length ? data[data.length - 1] : null;
|
|
5132
5132
|
const newerData = await pollingFn(lastItem);
|
|
5133
5133
|
if (newerData.length > 0) {
|
|
5134
5134
|
setNewDataAvailable(true);
|
|
@@ -5137,7 +5137,7 @@ var InfiniteScroller = ({
|
|
|
5137
5137
|
} catch (error) {
|
|
5138
5138
|
console.error("Error fetching newer data:", error);
|
|
5139
5139
|
}
|
|
5140
|
-
}, [
|
|
5140
|
+
}, [data, pollingFn]);
|
|
5141
5141
|
useEffect(() => {
|
|
5142
5142
|
const scrollContainer = scrollContainerRef.current;
|
|
5143
5143
|
const handleScroll = () => {
|
|
@@ -5172,7 +5172,7 @@ var InfiniteScroller = ({
|
|
|
5172
5172
|
}
|
|
5173
5173
|
}, []);
|
|
5174
5174
|
return /* @__PURE__ */ jsxs("div", { className: className ?? "relative flex h-full flex-col", children: [
|
|
5175
|
-
/* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "h-full overflow-auto", children:
|
|
5175
|
+
/* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "h-full overflow-auto", children: data.length ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5176
5176
|
/* @__PURE__ */ jsx(AnimatePresence, { children: isLoading ? /* @__PURE__ */ jsx(
|
|
5177
5177
|
motion.div,
|
|
5178
5178
|
{
|
|
@@ -5184,7 +5184,7 @@ var InfiniteScroller = ({
|
|
|
5184
5184
|
},
|
|
5185
5185
|
"loading"
|
|
5186
5186
|
) : null }),
|
|
5187
|
-
|
|
5187
|
+
data.map((item, index) => {
|
|
5188
5188
|
const key = getItemKey?.(item, index) ?? index;
|
|
5189
5189
|
return /* @__PURE__ */ jsx(
|
|
5190
5190
|
motion.div,
|
|
@@ -6698,14 +6698,14 @@ var OPTIONS = {
|
|
|
6698
6698
|
dark: { Icon: Moon, label: "Dark" }
|
|
6699
6699
|
};
|
|
6700
6700
|
var OPTION_ORDER = ["system", "light", "dark"];
|
|
6701
|
-
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-
|
|
6701
|
+
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-1 px-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
|
|
6702
6702
|
var TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES = "text-sm font-medium text-muted-foreground hover:text-foreground";
|
|
6703
6703
|
function ThemeSwitcher({
|
|
6704
6704
|
className,
|
|
6705
6705
|
showChevron = true
|
|
6706
6706
|
} = {}) {
|
|
6707
6707
|
const { theme, setTheme } = useTheme();
|
|
6708
|
-
const { Icon: ThemeIcon
|
|
6708
|
+
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6709
6709
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
6710
6710
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
6711
6711
|
"button",
|
|
@@ -6718,7 +6718,6 @@ function ThemeSwitcher({
|
|
|
6718
6718
|
),
|
|
6719
6719
|
children: [
|
|
6720
6720
|
/* @__PURE__ */ jsx(ThemeIcon, { className: "h-4 w-4", "aria-hidden": true }),
|
|
6721
|
-
/* @__PURE__ */ jsx("span", { children: themeLabel }),
|
|
6722
6721
|
showChevron && /* @__PURE__ */ jsx(
|
|
6723
6722
|
ChevronDown,
|
|
6724
6723
|
{
|
|
@@ -6816,8 +6815,8 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6816
6815
|
}
|
|
6817
6816
|
function UserDropdownMenu() {
|
|
6818
6817
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
6819
|
-
const { data
|
|
6820
|
-
const userData =
|
|
6818
|
+
const { data } = useGetUserInfo();
|
|
6819
|
+
const userData = data?.data;
|
|
6821
6820
|
const { isPending, mutateAsync } = useLogout();
|
|
6822
6821
|
const { resetProjectStore } = useProjectStore();
|
|
6823
6822
|
const { setUnAuthenticated, clearTokens } = useAuthStore();
|
|
@@ -7081,27 +7080,27 @@ function useNotificationFeed(open) {
|
|
|
7081
7080
|
const [notifications, setNotifications] = useState([]);
|
|
7082
7081
|
const [hasMore, setHasMore] = useState(true);
|
|
7083
7082
|
const listRef = useRef(null);
|
|
7084
|
-
const { data
|
|
7083
|
+
const { data, isLoading, isFetching } = useGetNotifications(
|
|
7085
7084
|
pageNumber,
|
|
7086
7085
|
PAGE_SIZE
|
|
7087
7086
|
);
|
|
7088
7087
|
const markAsRead = useMarkAsRead();
|
|
7089
7088
|
const markAllAsRead = useMarkAllAsRead();
|
|
7090
7089
|
useEffect(() => {
|
|
7091
|
-
if (!
|
|
7090
|
+
if (!data?.notifications) return;
|
|
7092
7091
|
setNotifications((prev) => {
|
|
7093
7092
|
const existingIds = new Set(prev.map((n) => n.id));
|
|
7094
7093
|
const merged = [
|
|
7095
7094
|
...prev,
|
|
7096
|
-
...
|
|
7095
|
+
...data.notifications.filter((n) => !existingIds.has(n.id))
|
|
7097
7096
|
];
|
|
7098
7097
|
merged.sort(
|
|
7099
7098
|
(a, b) => new Date(b.createdTime || 0).getTime() - new Date(a.createdTime || 0).getTime()
|
|
7100
7099
|
);
|
|
7101
7100
|
return merged;
|
|
7102
7101
|
});
|
|
7103
|
-
setHasMore(pageNumber * PAGE_SIZE < (
|
|
7104
|
-
}, [
|
|
7102
|
+
setHasMore(pageNumber * PAGE_SIZE < (data.totalNotificationsCount ?? 0));
|
|
7103
|
+
}, [data, pageNumber]);
|
|
7105
7104
|
useEffect(() => {
|
|
7106
7105
|
if (!open) return;
|
|
7107
7106
|
setPageNumber(1);
|
|
@@ -7143,7 +7142,7 @@ function useNotificationFeed(open) {
|
|
|
7143
7142
|
isLoading,
|
|
7144
7143
|
isFetching,
|
|
7145
7144
|
listRef,
|
|
7146
|
-
unreadCount:
|
|
7145
|
+
unreadCount: data?.unReadNotificationsCount ?? 0,
|
|
7147
7146
|
handleScroll,
|
|
7148
7147
|
handleMarkAsRead,
|
|
7149
7148
|
handleMarkAllAsRead
|
|
@@ -8170,10 +8169,15 @@ var blocksLoginStyles = `
|
|
|
8170
8169
|
display: inline-flex; align-items: center; gap: 6px;
|
|
8171
8170
|
color: var(--accent2); text-decoration: none; font-weight: 600;
|
|
8172
8171
|
transition: gap 0.25s var(--ease-out-expo), text-shadow 0.25s ease;
|
|
8172
|
+
/* Renders as a button: it asks IAM for the signup URL rather than linking to one,
|
|
8173
|
+
so the UA button styling has to be reset back to the inline-link look. */
|
|
8174
|
+
background: none; border: 0; padding: 0; margin: 0;
|
|
8175
|
+
font: inherit; font-weight: 600; cursor: pointer;
|
|
8173
8176
|
}
|
|
8174
|
-
.blocksLogin-page .cta-signup-link:
|
|
8177
|
+
.blocksLogin-page .cta-signup-link:disabled { cursor: default; opacity: 0.7; }
|
|
8178
|
+
.blocksLogin-page .cta-signup-link:hover:not(:disabled) { gap: 10px; text-shadow: 0 0 10px var(--accent2-glow); }
|
|
8175
8179
|
.blocksLogin-page .cta-signup-link svg { transition: transform 0.25s var(--ease-out-expo); }
|
|
8176
|
-
.blocksLogin-page .cta-signup-link:hover svg { transform: translateX(3px); }
|
|
8180
|
+
.blocksLogin-page .cta-signup-link:hover:not(:disabled) svg { transform: translateX(3px); }
|
|
8177
8181
|
|
|
8178
8182
|
.blocksLogin-page .col-right {
|
|
8179
8183
|
display: flex; flex-direction: column; min-height: 0; overflow: hidden;
|
|
@@ -8728,7 +8732,9 @@ var BlocksLoginPage = ({
|
|
|
8728
8732
|
loginLabel = "Log in to your account",
|
|
8729
8733
|
docsUrl = "https://docs.seliseblocks.com/",
|
|
8730
8734
|
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
8731
|
-
|
|
8735
|
+
showSignUp = false,
|
|
8736
|
+
onSignUp,
|
|
8737
|
+
isSignUpLoading = false,
|
|
8732
8738
|
carouselItems
|
|
8733
8739
|
}) => {
|
|
8734
8740
|
const canvasRef = useRef(null);
|
|
@@ -8902,24 +8908,33 @@ var BlocksLoginPage = ({
|
|
|
8902
8908
|
}
|
|
8903
8909
|
)
|
|
8904
8910
|
] }),
|
|
8905
|
-
|
|
8911
|
+
showSignUp && /* @__PURE__ */ jsxs("p", { className: "cta-signup", children: [
|
|
8906
8912
|
"Not a member?",
|
|
8907
8913
|
" ",
|
|
8908
|
-
/* @__PURE__ */ jsxs(
|
|
8909
|
-
"
|
|
8910
|
-
|
|
8911
|
-
"
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8914
|
+
/* @__PURE__ */ jsxs(
|
|
8915
|
+
"button",
|
|
8916
|
+
{
|
|
8917
|
+
type: "button",
|
|
8918
|
+
onClick: onSignUp,
|
|
8919
|
+
disabled: isSignUpLoading,
|
|
8920
|
+
className: "cta-signup-link",
|
|
8921
|
+
children: [
|
|
8922
|
+
isSignUpLoading ? "Redirecting\u2026" : "Sign up",
|
|
8923
|
+
/* @__PURE__ */ jsx(
|
|
8924
|
+
"svg",
|
|
8925
|
+
{
|
|
8926
|
+
width: "11",
|
|
8927
|
+
height: "11",
|
|
8928
|
+
viewBox: "0 0 24 24",
|
|
8929
|
+
fill: "none",
|
|
8930
|
+
stroke: "currentColor",
|
|
8931
|
+
strokeWidth: "2.5",
|
|
8932
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M12 5l7 7-7 7" })
|
|
8933
|
+
}
|
|
8934
|
+
)
|
|
8935
|
+
]
|
|
8936
|
+
}
|
|
8937
|
+
)
|
|
8923
8938
|
] })
|
|
8924
8939
|
] }),
|
|
8925
8940
|
/* @__PURE__ */ jsxs("div", { className: "col-right", children: [
|
|
@@ -9038,88 +9053,121 @@ var BlocksLoginPage = ({
|
|
|
9038
9053
|
var LoginPage = () => {
|
|
9039
9054
|
const config = useBlocksAppConfigStore((state) => state.getConfig());
|
|
9040
9055
|
const { start, isLoading } = useLogin();
|
|
9041
|
-
const {
|
|
9056
|
+
const { canSignUp } = useSignUpAffordance();
|
|
9057
|
+
const { start: startSignUp, isLoading: isSignUpLoading } = useSignUpRedirect();
|
|
9042
9058
|
return /* @__PURE__ */ jsx(
|
|
9043
9059
|
BlocksLoginPage,
|
|
9044
9060
|
{
|
|
9045
9061
|
name: config.name,
|
|
9046
9062
|
onLogin: start,
|
|
9047
9063
|
isLoading,
|
|
9048
|
-
|
|
9064
|
+
showSignUp: canSignUp,
|
|
9065
|
+
onSignUp: startSignUp,
|
|
9066
|
+
isSignUpLoading,
|
|
9049
9067
|
carouselItems: BLOCKS_PRODUCTS
|
|
9050
9068
|
}
|
|
9051
9069
|
);
|
|
9052
9070
|
};
|
|
9053
9071
|
|
|
9054
|
-
// src/assets/images/console/
|
|
9055
|
-
var
|
|
9072
|
+
// src/assets/images/console/resource-docs.svg
|
|
9073
|
+
var resource_docs_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="docs-cover" x1="32" y1="29" x2="128" y2="99" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <linearGradient id="docs-page-left" x1="40" y1="35" x2="78" y2="87" gradientUnits="userSpaceOnUse">%0A <stop stop-color="%23FFFFFF"/>%0A <stop offset="1" stop-color="hsl(218 78% 90%)"/>%0A </linearGradient>%0A <linearGradient id="docs-page-right" x1="82" y1="36" x2="118" y2="88" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 95%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 75%)"/>%0A </linearGradient>%0A <filter id="docs-shadow" x="20" y="16" width="120" height="96" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="8" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="80" cy="98" rx="48" ry="9" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23docs-shadow)">%0A <path d="M27 37.5L73 25.5C77.6 24.3 82.4 24.3 87 25.5L133 37.5V87.5L87 101C82.4 102.4 77.5 102.4 73 101L27 87.5V37.5Z" fill="url(%23docs-cover)"/>%0A <path d="M27 82.5L73 96C77.5 97.4 82.4 97.4 87 96L133 82.5V87.5L87 101C82.4 102.4 77.5 102.4 73 101L27 87.5V82.5Z" fill="hsl(218 78% 32%)"/>%0A <path d="M31.5 34.5L72.2 29.2C75.8 28.7 78.8 31.5 78.8 35.1V89.3C76.3 86.5 72.5 85.2 68.8 85.8L31.5 91.7V34.5Z" fill="url(%23docs-page-left)"/>%0A <path d="M128.5 34.5L87.8 29.2C84.2 28.7 81.2 31.5 81.2 35.1V89.3C83.7 86.5 87.5 85.2 91.2 85.8L128.5 91.7V34.5Z" fill="url(%23docs-page-right)"/>%0A <path d="M78.8 35V89.3C79.5 90.1 80.1 91 80 92.1C79.9 91 80.5 90.1 81.2 89.3V35" stroke="hsl(218 78% 75%)" stroke-width="2"/>%0A <path d="M41 47L67.5 42.8M41 56.5L68 52.2M41 66L62 62.7" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M92 43L118.5 47.2M92 52.5L119 56.8M92 62L113 65.3" stroke="hsl(218 78% 58%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M107 35.5L118 37V58L112.5 52L107 56.5V35.5Z" fill="hsl(218 78% 44%)"/>%0A <path d="M107 35.5L118 37V41L107 39.5V35.5Z" fill="hsl(218 78% 58%)"/>%0A </g>%0A <circle cx="132" cy="26" r="5" fill="hsl(218 78% 32%)"/>%0A <path d="M132 18V34M124 26H140" stroke="hsl(218 78% 90%)" stroke-width="2" stroke-linecap="round"/>%0A</svg>%0A';
|
|
9056
9074
|
|
|
9057
|
-
// src/assets/images/console/
|
|
9058
|
-
var
|
|
9075
|
+
// src/assets/images/console/resource-cli.svg
|
|
9076
|
+
var resource_cli_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="cli-shell" x1="28" y1="24" x2="132" y2="94" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 44%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 32%)"/>%0A </linearGradient>%0A <linearGradient id="cli-bar" x1="29" y1="25" x2="131" y2="44" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <filter id="cli-shadow" x="18" y="15" width="126" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="9" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="78" cy="99" rx="49" ry="8" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23cli-shadow)">%0A <path d="M28 31C28 26.6 31.6 23 36 23H124C128.4 23 132 26.6 132 31V87C132 91.4 128.4 95 124 95H36C31.6 95 28 91.4 28 87V31Z" fill="url(%23cli-shell)"/>%0A <path d="M28 31C28 26.6 31.6 23 36 23H124C128.4 23 132 26.6 132 31V42H28V31Z" fill="url(%23cli-bar)"/>%0A <circle cx="39" cy="32.5" r="3" fill="hsl(218 78% 95%)"/>%0A <circle cx="49" cy="32.5" r="3" fill="hsl(218 78% 90%)"/>%0A <circle cx="59" cy="32.5" r="3" fill="hsl(218 78% 75%)"/>%0A <path d="M42 57L51 64L42 71" stroke="hsl(218 78% 90%)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>%0A <path d="M59 72H80" stroke="hsl(218 78% 90%)" stroke-width="4" stroke-linecap="round"/>%0A <path d="M42 82H68" stroke="hsl(218 78% 58%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M75 82H91" stroke="hsl(218 78% 44%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M107 50L126 61V82L107 93L88 82V61L107 50Z" fill="hsl(218 78% 44%)"/>%0A <path d="M88 61L107 72L126 61L107 50L88 61Z" fill="hsl(218 78% 58%)"/>%0A <path d="M107 72V93L126 82V61L107 72Z" fill="hsl(218 78% 32%)"/>%0A <path d="M96 61L107 67.5L118 61L107 54.5L96 61Z" fill="hsl(218 78% 90%)" fill-opacity="0.75"/>%0A </g>%0A <path d="M138 43C138 39.7 140.7 37 144 37C140.7 37 138 34.3 138 31C138 34.3 135.3 37 132 37C135.3 37 138 39.7 138 43Z" fill="hsl(218 78% 58%)"/>%0A</svg>%0A';
|
|
9059
9077
|
|
|
9060
|
-
// src/assets/images/console/
|
|
9061
|
-
var
|
|
9062
|
-
var
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
whileHover: { y: -4 },
|
|
9072
|
-
transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] },
|
|
9073
|
-
className: "hover:border-primary/40 hover:shadow-primary/5 group flex flex-col overflow-hidden rounded-2xl border border-[hsl(var(--border-default))] bg-[hsl(var(--card))] shadow-sm transition-all duration-300 hover:shadow-xl",
|
|
9074
|
-
children: [
|
|
9075
|
-
/* @__PURE__ */ jsxs("div", { className: "relative flex items-center justify-center overflow-hidden bg-[hsl(var(--surface-app))] px-8 py-10", children: [
|
|
9076
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[radial-gradient(hsl(var(--border-default))_1px,transparent_1px)] opacity-60 [background-size:18px_18px]" }),
|
|
9077
|
-
/* @__PURE__ */ jsx(
|
|
9078
|
-
"img",
|
|
9079
|
-
{
|
|
9080
|
-
src: image,
|
|
9081
|
-
width: 148,
|
|
9082
|
-
height: 148,
|
|
9083
|
-
alt: label,
|
|
9084
|
-
className: "relative object-contain drop-shadow-sm transition-transform duration-500 group-hover:scale-105"
|
|
9085
|
-
}
|
|
9086
|
-
)
|
|
9087
|
-
] }),
|
|
9088
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2 p-5", children: [
|
|
9089
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
9090
|
-
/* @__PURE__ */ jsx("h4", { className: "text-base font-semibold text-[hsl(var(--high-emphasis))]", children: label }),
|
|
9091
|
-
/* @__PURE__ */ jsx(ArrowUpRight, { className: "text-muted-foreground group-hover:text-primary mt-0.5 h-4 w-4 shrink-0 transition-all duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-0.5" })
|
|
9092
|
-
] }),
|
|
9093
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm leading-relaxed", children: description }),
|
|
9094
|
-
/* @__PURE__ */ jsx("span", { className: "text-primary mt-auto pt-3 text-xs font-medium opacity-0 transition-opacity duration-200 group-hover:opacity-100", children: "Explore \u2192" })
|
|
9095
|
-
] })
|
|
9096
|
-
]
|
|
9097
|
-
}
|
|
9098
|
-
);
|
|
9099
|
-
};
|
|
9100
|
-
var data = [
|
|
9101
|
-
{
|
|
9102
|
-
label: "Docs",
|
|
9103
|
-
description: "Established standards that help project managers and technical leaders minimize project risks.",
|
|
9104
|
-
image: console_timeline_default,
|
|
9105
|
-
url: "https://docs.seliseblocks.com"
|
|
9078
|
+
// src/assets/images/console/resource-skills.svg
|
|
9079
|
+
var resource_skills_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="skills-top" x1="48" y1="30" x2="113" y2="68" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 75%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 58%)"/>%0A </linearGradient>%0A <linearGradient id="skills-left" x1="43" y1="49" x2="80" y2="99" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <linearGradient id="skills-right" x1="80" y1="62" x2="119" y2="97" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 44%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 32%)"/>%0A </linearGradient>%0A <filter id="skills-shadow" x="28" y="17" width="111" height="99" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="9" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="80" cy="101" rx="43" ry="8" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23skills-shadow)">%0A <path d="M42 52L80 31L118 52L80 74L42 52Z" fill="url(%23skills-top)"/>%0A <path d="M42 52L80 74V100L42 78V52Z" fill="url(%23skills-left)"/>%0A <path d="M80 74L118 52V78L80 100V74Z" fill="url(%23skills-right)"/>%0A <path d="M61 41.5L99 63.5L110 57L72 35L61 41.5Z" fill="hsl(218 78% 90%)" fill-opacity="0.7"/>%0A <path d="M99 63.5V76.5L110 70V57L99 63.5Z" fill="hsl(218 78% 32%)"/>%0A <path d="M61 41.5V54.5L99 76.5V63.5L61 41.5Z" fill="hsl(218 78% 58%)"/>%0A <path d="M52 65L69 74.8M52 72L65 79.5" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M90 85L107 75" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A </g>%0A <g transform="rotate(-12 111 34)">%0A <rect x="108" y="30" width="7" height="43" rx="3.5" fill="hsl(218 78% 44%)"/>%0A <rect x="108" y="30" width="7" height="13" rx="3.5" fill="hsl(218 78% 75%)"/>%0A </g>%0A <path d="M111 28C110 20.9 107.1 18 100 17C107.1 16 110 13.1 111 6C112 13.1 114.9 16 122 17C114.9 18 112 20.9 111 28Z" fill="hsl(218 78% 58%)"/>%0A <path d="M133 44C132.4 39.7 130.3 37.6 126 37C130.3 36.4 132.4 34.3 133 30C133.6 34.3 135.7 36.4 140 37C135.7 37.6 133.6 39.7 133 44Z" fill="hsl(218 78% 75%)"/>%0A <circle cx="128" cy="57" r="3" fill="hsl(218 78% 90%)"/>%0A</svg>%0A';
|
|
9080
|
+
var resources = [
|
|
9081
|
+
{
|
|
9082
|
+
eyebrow: "Learn",
|
|
9083
|
+
label: "Read Docs",
|
|
9084
|
+
description: "Established standards and guides that help teams minimize project risk and ship consistently. Learn the possibilities that you can unlock with Selise Blocks.",
|
|
9085
|
+
image: resource_docs_default,
|
|
9086
|
+
url: "https://docs.seliseblocks.com",
|
|
9087
|
+
icon: BookOpenText,
|
|
9088
|
+
actionLabel: "Start Reading"
|
|
9106
9089
|
},
|
|
9107
9090
|
{
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9091
|
+
eyebrow: "Build",
|
|
9092
|
+
label: "Install CLI",
|
|
9093
|
+
description: "Public npm packages for building with Blocks: a CLI for project setup plus a framework-neutral frontend SDK. Blocks CLI tool unlocks all the configurations of Blocks project without having to leave your IDE.",
|
|
9094
|
+
image: resource_cli_default,
|
|
9095
|
+
url: "https://github.com/SELISEdigitalplatforms/blocks-cli",
|
|
9096
|
+
icon: SquareTerminal,
|
|
9097
|
+
actionLabel: "See Installation Steps"
|
|
9112
9098
|
},
|
|
9113
9099
|
{
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9100
|
+
eyebrow: "Automate",
|
|
9101
|
+
label: "Bootstrap",
|
|
9102
|
+
description: "Describe what you want in plain language and an agent maps it to a focused, ready-to-run Blocks workflow. Quick start for your coding agent to initialize your blocks project, install the cli and the necessary skills.",
|
|
9103
|
+
image: resource_skills_default,
|
|
9104
|
+
url: "https://github.com/SELISEdigitalplatforms/blocks-skills",
|
|
9105
|
+
icon: Sparkles,
|
|
9106
|
+
actionLabel: "Set Up Your Agent"
|
|
9118
9107
|
}
|
|
9119
9108
|
];
|
|
9120
|
-
var
|
|
9121
|
-
|
|
9122
|
-
|
|
9109
|
+
var BentoGrid = ({
|
|
9110
|
+
children,
|
|
9111
|
+
className
|
|
9112
|
+
}) => /* @__PURE__ */ jsx(
|
|
9113
|
+
"div",
|
|
9114
|
+
{
|
|
9115
|
+
className: cn("grid w-full grid-cols-1 gap-4 lg:grid-cols-3", className),
|
|
9116
|
+
children
|
|
9117
|
+
}
|
|
9118
|
+
);
|
|
9119
|
+
var BentoCard = ({
|
|
9120
|
+
eyebrow,
|
|
9121
|
+
label,
|
|
9122
|
+
image,
|
|
9123
|
+
description,
|
|
9124
|
+
url,
|
|
9125
|
+
icon: Icon2,
|
|
9126
|
+
actionLabel
|
|
9127
|
+
}) => /* @__PURE__ */ jsxs(
|
|
9128
|
+
"a",
|
|
9129
|
+
{
|
|
9130
|
+
href: url,
|
|
9131
|
+
target: "_blank",
|
|
9132
|
+
rel: "noopener noreferrer",
|
|
9133
|
+
"aria-label": `${label}: ${description}`,
|
|
9134
|
+
className: cn(
|
|
9135
|
+
"group relative flex min-w-0 flex-col overflow-hidden rounded-2xl border border-[hsl(var(--border-default))] bg-[hsl(var(--card))] p-2 outline-none transform-gpu",
|
|
9136
|
+
"shadow-[0_1px_2px_hsl(var(--foreground)/0.04),0_8px_24px_-20px_hsl(var(--foreground)/0.22)]",
|
|
9137
|
+
"transition-[border-color,box-shadow,transform] duration-300 hover:-translate-y-0.5 hover:border-primary/30 hover:shadow-[0_16px_32px_-22px_hsl(var(--primary)/0.32)]",
|
|
9138
|
+
"focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
9139
|
+
),
|
|
9140
|
+
children: [
|
|
9141
|
+
/* @__PURE__ */ jsxs("div", { className: "pointer-events-none relative flex h-36 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-[hsl(var(--surface-app))]", children: [
|
|
9142
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[radial-gradient(hsl(var(--border-default))_1px,transparent_1px)] opacity-55 [background-size:18px_18px]" }),
|
|
9143
|
+
/* @__PURE__ */ jsx("div", { className: "absolute left-1/2 top-1/2 h-28 w-28 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/[0.08] blur-2xl transition-transform duration-500 group-hover:scale-125 group-focus-visible:scale-125" }),
|
|
9144
|
+
/* @__PURE__ */ jsx(
|
|
9145
|
+
"img",
|
|
9146
|
+
{
|
|
9147
|
+
src: image,
|
|
9148
|
+
alt: "",
|
|
9149
|
+
className: "relative h-28 w-40 select-none object-contain transition-transform duration-500 ease-out group-hover:scale-[1.04] group-focus-visible:scale-[1.04]"
|
|
9150
|
+
}
|
|
9151
|
+
)
|
|
9152
|
+
] }),
|
|
9153
|
+
/* @__PURE__ */ jsxs("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col px-3 pb-3 pt-4", children: [
|
|
9154
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-11 shrink-0 items-center gap-3", children: [
|
|
9155
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-xl bg-[hsl(var(--surface-app))] text-primary transition-colors duration-300 group-hover:bg-primary/[0.08] group-focus-visible:bg-primary/[0.08]", children: /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
9156
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col justify-center text-left", children: [
|
|
9157
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[10px] font-bold uppercase leading-4 tracking-[0.16em] text-primary", children: eyebrow }),
|
|
9158
|
+
/* @__PURE__ */ jsx("h3", { className: "truncate text-lg font-semibold leading-6 tracking-tight text-[hsl(var(--high-emphasis))]", children: label })
|
|
9159
|
+
] })
|
|
9160
|
+
] }),
|
|
9161
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 line-clamp-3 h-[3.75rem] shrink-0 text-sm leading-5 text-muted-foreground", children: description }),
|
|
9162
|
+
/* @__PURE__ */ jsx("div", { className: "mt-auto pt-3", children: /* @__PURE__ */ jsxs("span", { className: "flex h-10 w-full items-center justify-between rounded-xl bg-[hsl(var(--surface-app))] px-3.5 text-[13px] font-semibold text-primary transition-[background-color,color,box-shadow] duration-300 group-hover:bg-primary group-hover:text-primary-foreground group-hover:shadow-sm group-focus-visible:bg-primary group-focus-visible:text-primary-foreground", children: [
|
|
9163
|
+
/* @__PURE__ */ jsx("span", { children: actionLabel }),
|
|
9164
|
+
/* @__PURE__ */ jsx(ArrowUpRight, { className: "h-4 w-4 transition-transform duration-300 group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-focus-visible:-translate-y-0.5 group-focus-visible:translate-x-0.5" })
|
|
9165
|
+
] }) })
|
|
9166
|
+
] })
|
|
9167
|
+
]
|
|
9168
|
+
}
|
|
9169
|
+
);
|
|
9170
|
+
var DefaultDoc = () => /* @__PURE__ */ jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsx(BentoCard, { ...resource }, resource.url)) });
|
|
9123
9171
|
function useCreateProjectRedirect() {
|
|
9124
9172
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
9125
9173
|
const navigate = useNavigate();
|
|
@@ -9928,9 +9976,9 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
9928
9976
|
) });
|
|
9929
9977
|
};
|
|
9930
9978
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
9931
|
-
const { data
|
|
9979
|
+
const { data, isLoading, isFetching } = useGetProjects({ enabled: true });
|
|
9932
9980
|
const isPending = isLoading || isFetching;
|
|
9933
|
-
const projectGroups =
|
|
9981
|
+
const projectGroups = data || [];
|
|
9934
9982
|
const {
|
|
9935
9983
|
availableEnvironmentOptions,
|
|
9936
9984
|
environmentFilter,
|
|
@@ -10042,10 +10090,7 @@ var ConsolePage = ({ canCreateProject = false }) => {
|
|
|
10042
10090
|
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 flex-col gap-12 px-6 py-10 sm:px-10 xl:px-[154px]", children: [
|
|
10043
10091
|
/* @__PURE__ */ jsx(SelfProject, { canCreateProject }),
|
|
10044
10092
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-5", children: [
|
|
10045
|
-
/* @__PURE__ */
|
|
10046
|
-
/* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "Resources" }),
|
|
10047
|
-
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-[hsl(var(--border-default))]" })
|
|
10048
|
-
] }),
|
|
10093
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "Resources" }) }),
|
|
10049
10094
|
/* @__PURE__ */ jsx(DefaultDoc, {})
|
|
10050
10095
|
] })
|
|
10051
10096
|
] })
|
|
@@ -10330,7 +10375,7 @@ var useSwaggerEndpoints = (serviceName, {
|
|
|
10330
10375
|
} = {}) => {
|
|
10331
10376
|
const baseUrl = serviceName ? getServiceBaseUrl(serviceName) : void 0;
|
|
10332
10377
|
const swaggerUrl = serviceName ? getServiceSwaggerUrl(serviceName) : void 0;
|
|
10333
|
-
const { data
|
|
10378
|
+
const { data, isLoading, isError, error } = useQuery({
|
|
10334
10379
|
queryKey: ["swagger-endpoints", swaggerUrl],
|
|
10335
10380
|
queryFn: () => {
|
|
10336
10381
|
if (!swaggerUrl) {
|
|
@@ -10341,41 +10386,41 @@ var useSwaggerEndpoints = (serviceName, {
|
|
|
10341
10386
|
enabled: Boolean(swaggerUrl) && enabled,
|
|
10342
10387
|
staleTime
|
|
10343
10388
|
});
|
|
10344
|
-
const endpoints =
|
|
10389
|
+
const endpoints = data && swaggerUrl ? parseSwaggerDocument(data, swaggerUrl, baseUrl) : [];
|
|
10345
10390
|
return { endpoints, isLoading, isError, error };
|
|
10346
10391
|
};
|
|
10347
10392
|
var ConfirmationModal = ({
|
|
10348
|
-
data
|
|
10393
|
+
data,
|
|
10349
10394
|
onConfirm,
|
|
10350
10395
|
buttonState
|
|
10351
10396
|
}) => /* @__PURE__ */ jsxs(DialogContent, { className: "mr-4 w-full max-w-[425px] rounded-md", children: [
|
|
10352
10397
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
10353
|
-
/* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children:
|
|
10354
|
-
/* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children:
|
|
10398
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children: data.dialogTitle }),
|
|
10399
|
+
/* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children: data.dialogSubtitle })
|
|
10355
10400
|
] }),
|
|
10356
10401
|
/* @__PURE__ */ jsxs(DialogFooter, { className: "mt-4 flex flex-row gap-2", children: [
|
|
10357
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children:
|
|
10402
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: data.cancelButton || "Cancel" }) }),
|
|
10358
10403
|
/* @__PURE__ */ jsx(
|
|
10359
10404
|
Button,
|
|
10360
10405
|
{
|
|
10361
10406
|
size: "sm",
|
|
10362
10407
|
onClick: onConfirm,
|
|
10363
10408
|
disabled: buttonState?.confirm.disable,
|
|
10364
|
-
children:
|
|
10409
|
+
children: data.confirmButton || "Yes"
|
|
10365
10410
|
}
|
|
10366
10411
|
)
|
|
10367
10412
|
] })
|
|
10368
10413
|
] });
|
|
10369
10414
|
var DashboardOverview = () => {
|
|
10370
10415
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
10371
|
-
const { data
|
|
10416
|
+
const { data, isFetching } = useGetProject();
|
|
10372
10417
|
const {
|
|
10373
10418
|
endpoints,
|
|
10374
10419
|
isLoading: isLoadingEndpoints,
|
|
10375
10420
|
error
|
|
10376
10421
|
} = useSwaggerEndpoints(name);
|
|
10377
10422
|
return /* @__PURE__ */ jsxs("main", { className: "flex flex-col gap-6 p-6", children: [
|
|
10378
|
-
/* @__PURE__ */ jsx(ProjectDetail, { isLoading: isFetching, project:
|
|
10423
|
+
/* @__PURE__ */ jsx(ProjectDetail, { isLoading: isFetching, project: data?.data }),
|
|
10379
10424
|
/* @__PURE__ */ jsx(
|
|
10380
10425
|
CoreApiCard,
|
|
10381
10426
|
{
|
|
@@ -10722,7 +10767,7 @@ var buildColumns = (onSet) => [
|
|
|
10722
10767
|
})
|
|
10723
10768
|
];
|
|
10724
10769
|
var ProjectRepoTable = ({
|
|
10725
|
-
data
|
|
10770
|
+
data,
|
|
10726
10771
|
domains,
|
|
10727
10772
|
projectKey,
|
|
10728
10773
|
projectEnv
|
|
@@ -10735,7 +10780,7 @@ var ProjectRepoTable = ({
|
|
|
10735
10780
|
};
|
|
10736
10781
|
const columns = buildColumns(handleSet);
|
|
10737
10782
|
const table = useReactTable({
|
|
10738
|
-
data
|
|
10783
|
+
data,
|
|
10739
10784
|
columns,
|
|
10740
10785
|
getCoreRowModel: getCoreRowModel()
|
|
10741
10786
|
});
|
|
@@ -12117,15 +12162,15 @@ var DropdownSearchInput = ({
|
|
|
12117
12162
|
}, [debounced]);
|
|
12118
12163
|
const handleChange = (event) => {
|
|
12119
12164
|
event.stopPropagation();
|
|
12120
|
-
const
|
|
12121
|
-
setState(
|
|
12122
|
-
debounced(
|
|
12165
|
+
const data = { ...state, value: event.target.value };
|
|
12166
|
+
setState(data);
|
|
12167
|
+
debounced(data);
|
|
12123
12168
|
};
|
|
12124
12169
|
const handleClear = (e) => {
|
|
12125
12170
|
e.stopPropagation();
|
|
12126
|
-
const
|
|
12127
|
-
setState(
|
|
12128
|
-
onChange(
|
|
12171
|
+
const data = { ...state, value: "" };
|
|
12172
|
+
setState(data);
|
|
12173
|
+
onChange(data);
|
|
12129
12174
|
};
|
|
12130
12175
|
const handleSelect = (value2) => {
|
|
12131
12176
|
setState({ selected: value2, value: "" });
|
|
@@ -12637,7 +12682,7 @@ var noop = () => {
|
|
|
12637
12682
|
};
|
|
12638
12683
|
function DataTable(props) {
|
|
12639
12684
|
const {
|
|
12640
|
-
data
|
|
12685
|
+
data,
|
|
12641
12686
|
columns,
|
|
12642
12687
|
isLoading = false,
|
|
12643
12688
|
renderLoader,
|
|
@@ -12665,7 +12710,7 @@ function DataTable(props) {
|
|
|
12665
12710
|
void setInternalDescending(value.isDescending);
|
|
12666
12711
|
};
|
|
12667
12712
|
const table = useReactTable({
|
|
12668
|
-
data
|
|
12713
|
+
data,
|
|
12669
12714
|
columns,
|
|
12670
12715
|
getCoreRowModel: getCoreRowModel(),
|
|
12671
12716
|
...tableOptions
|
|
@@ -12838,5 +12883,5 @@ var TablePagination2 = React8.forwardRef(
|
|
|
12838
12883
|
TablePagination2.displayName = "TablePagination";
|
|
12839
12884
|
|
|
12840
12885
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList2 as ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
12841
|
-
//# sourceMappingURL=chunk-
|
|
12842
|
-
//# sourceMappingURL=chunk-
|
|
12886
|
+
//# sourceMappingURL=chunk-IWWGJQGJ.js.map
|
|
12887
|
+
//# sourceMappingURL=chunk-IWWGJQGJ.js.map
|