@seliseblocks/genesis-os 4.3.4 → 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-CME46DIB.cjs → chunk-6DQTH7RD.cjs} +142 -116
- package/dist/chunk-6DQTH7RD.cjs.map +1 -0
- package/dist/{chunk-EF42GERU.js → chunk-IWWGJQGJ.js} +143 -117
- package/dist/chunk-IWWGJQGJ.js.map +1 -0
- package/dist/components/index.cjs +339 -339
- package/dist/components/index.js +1 -1
- package/dist/index.cjs +351 -351
- package/dist/index.js +1 -1
- package/dist/layouts/index.cjs +8 -8
- package/dist/layouts/index.js +1 -1
- package/dist/pages/index.cjs +6 -6
- package/dist/pages/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CME46DIB.cjs.map +0 -1
- package/dist/chunk-EF42GERU.js.map +0 -1
|
@@ -4764,8 +4764,8 @@ var hasDraggableData = (entry) => {
|
|
|
4764
4764
|
if (!entry) {
|
|
4765
4765
|
return false;
|
|
4766
4766
|
}
|
|
4767
|
-
const
|
|
4768
|
-
if (
|
|
4767
|
+
const data = entry.data.current;
|
|
4768
|
+
if (data?.type === "Column" || data?.type === "Task") {
|
|
4769
4769
|
return true;
|
|
4770
4770
|
}
|
|
4771
4771
|
return false;
|
|
@@ -4791,9 +4791,9 @@ var kanbanKeyboardCoordinateGetter = (event, { context: { active, droppableRects
|
|
|
4791
4791
|
if (!rect) {
|
|
4792
4792
|
return;
|
|
4793
4793
|
}
|
|
4794
|
-
const
|
|
4795
|
-
if (
|
|
4796
|
-
const { type, children } =
|
|
4794
|
+
const data = entry.data.current;
|
|
4795
|
+
if (data) {
|
|
4796
|
+
const { type, children } = data;
|
|
4797
4797
|
if (type === "Column" && children?.length > 0) {
|
|
4798
4798
|
if (active.data.current?.type !== "Column") {
|
|
4799
4799
|
return;
|
|
@@ -4978,13 +4978,13 @@ var KanbanBoard = () => {
|
|
|
4978
4978
|
};
|
|
4979
4979
|
const onDragStart = (event) => {
|
|
4980
4980
|
if (!hasDraggableData(event.active)) return;
|
|
4981
|
-
const
|
|
4982
|
-
if (
|
|
4983
|
-
setActiveColumn(
|
|
4981
|
+
const data = event.active.data.current;
|
|
4982
|
+
if (data?.type === "Column") {
|
|
4983
|
+
setActiveColumn(data.column);
|
|
4984
4984
|
return;
|
|
4985
4985
|
}
|
|
4986
|
-
if (
|
|
4987
|
-
setActiveTask(
|
|
4986
|
+
if (data?.type === "Task") {
|
|
4987
|
+
setActiveTask(data.task);
|
|
4988
4988
|
}
|
|
4989
4989
|
};
|
|
4990
4990
|
const onDragEnd = (event) => {
|
|
@@ -5144,7 +5144,7 @@ var InfiniteScroller = ({
|
|
|
5144
5144
|
emptyContent,
|
|
5145
5145
|
className
|
|
5146
5146
|
}) => {
|
|
5147
|
-
const [
|
|
5147
|
+
const [data, setData] = React8.useState(initialData);
|
|
5148
5148
|
const [isLoading, setIsLoading] = React8.useState(false);
|
|
5149
5149
|
const [hasMore, setHasMore] = React8.useState(hasTopMore);
|
|
5150
5150
|
const scrollContainerRef = React8.useRef(null);
|
|
@@ -5153,7 +5153,7 @@ var InfiniteScroller = ({
|
|
|
5153
5153
|
if (isLoading || !hasMore) return;
|
|
5154
5154
|
setIsLoading(true);
|
|
5155
5155
|
try {
|
|
5156
|
-
const firstItem =
|
|
5156
|
+
const firstItem = data.length ? data[0] : null;
|
|
5157
5157
|
const olderData = await topFn(firstItem);
|
|
5158
5158
|
if (olderData.length > 0) {
|
|
5159
5159
|
const scrollContainer = scrollContainerRef.current;
|
|
@@ -5176,10 +5176,10 @@ var InfiniteScroller = ({
|
|
|
5176
5176
|
} finally {
|
|
5177
5177
|
setIsLoading(false);
|
|
5178
5178
|
}
|
|
5179
|
-
}, [
|
|
5179
|
+
}, [data, hasMore, isLoading, topFn]);
|
|
5180
5180
|
const handleFetchNewerData = React8.useCallback(async () => {
|
|
5181
5181
|
try {
|
|
5182
|
-
const lastItem =
|
|
5182
|
+
const lastItem = data.length ? data[data.length - 1] : null;
|
|
5183
5183
|
const newerData = await pollingFn(lastItem);
|
|
5184
5184
|
if (newerData.length > 0) {
|
|
5185
5185
|
setNewDataAvailable(true);
|
|
@@ -5188,7 +5188,7 @@ var InfiniteScroller = ({
|
|
|
5188
5188
|
} catch (error) {
|
|
5189
5189
|
console.error("Error fetching newer data:", error);
|
|
5190
5190
|
}
|
|
5191
|
-
}, [
|
|
5191
|
+
}, [data, pollingFn]);
|
|
5192
5192
|
React8.useEffect(() => {
|
|
5193
5193
|
const scrollContainer = scrollContainerRef.current;
|
|
5194
5194
|
const handleScroll = () => {
|
|
@@ -5223,7 +5223,7 @@ var InfiniteScroller = ({
|
|
|
5223
5223
|
}
|
|
5224
5224
|
}, []);
|
|
5225
5225
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: className ?? "relative flex h-full flex-col", children: [
|
|
5226
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: scrollContainerRef, className: "h-full overflow-auto", children:
|
|
5226
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: scrollContainerRef, className: "h-full overflow-auto", children: data.length ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5227
5227
|
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5228
5228
|
framerMotion.motion.div,
|
|
5229
5229
|
{
|
|
@@ -5235,7 +5235,7 @@ var InfiniteScroller = ({
|
|
|
5235
5235
|
},
|
|
5236
5236
|
"loading"
|
|
5237
5237
|
) : null }),
|
|
5238
|
-
|
|
5238
|
+
data.map((item, index) => {
|
|
5239
5239
|
const key = getItemKey?.(item, index) ?? index;
|
|
5240
5240
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5241
5241
|
framerMotion.motion.div,
|
|
@@ -6749,14 +6749,14 @@ var OPTIONS = {
|
|
|
6749
6749
|
dark: { Icon: lucideReact.Moon, label: "Dark" }
|
|
6750
6750
|
};
|
|
6751
6751
|
var OPTION_ORDER = ["system", "light", "dark"];
|
|
6752
|
-
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-
|
|
6752
|
+
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";
|
|
6753
6753
|
var TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES = "text-sm font-medium text-muted-foreground hover:text-foreground";
|
|
6754
6754
|
function ThemeSwitcher({
|
|
6755
6755
|
className,
|
|
6756
6756
|
showChevron = true
|
|
6757
6757
|
} = {}) {
|
|
6758
6758
|
const { theme, setTheme } = chunkXALNVJQU_cjs.useTheme();
|
|
6759
|
-
const { Icon: ThemeIcon
|
|
6759
|
+
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6760
6760
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
6761
6761
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6762
6762
|
"button",
|
|
@@ -6769,7 +6769,6 @@ function ThemeSwitcher({
|
|
|
6769
6769
|
),
|
|
6770
6770
|
children: [
|
|
6771
6771
|
/* @__PURE__ */ jsxRuntime.jsx(ThemeIcon, { className: "h-4 w-4", "aria-hidden": true }),
|
|
6772
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: themeLabel }),
|
|
6773
6772
|
showChevron && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6774
6773
|
lucideReact.ChevronDown,
|
|
6775
6774
|
{
|
|
@@ -6867,8 +6866,8 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6867
6866
|
}
|
|
6868
6867
|
function UserDropdownMenu() {
|
|
6869
6868
|
const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
6870
|
-
const { data
|
|
6871
|
-
const userData =
|
|
6869
|
+
const { data } = useGetUserInfo();
|
|
6870
|
+
const userData = data?.data;
|
|
6872
6871
|
const { isPending, mutateAsync } = chunkXALNVJQU_cjs.useLogout();
|
|
6873
6872
|
const { resetProjectStore } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
6874
6873
|
const { setUnAuthenticated, clearTokens } = chunkVAKGHXK6_cjs.useAuthStore();
|
|
@@ -7132,27 +7131,27 @@ function useNotificationFeed(open) {
|
|
|
7132
7131
|
const [notifications, setNotifications] = React8.useState([]);
|
|
7133
7132
|
const [hasMore, setHasMore] = React8.useState(true);
|
|
7134
7133
|
const listRef = React8.useRef(null);
|
|
7135
|
-
const { data
|
|
7134
|
+
const { data, isLoading, isFetching } = chunkXALNVJQU_cjs.useGetNotifications(
|
|
7136
7135
|
pageNumber,
|
|
7137
7136
|
PAGE_SIZE
|
|
7138
7137
|
);
|
|
7139
7138
|
const markAsRead = chunkXALNVJQU_cjs.useMarkAsRead();
|
|
7140
7139
|
const markAllAsRead = chunkXALNVJQU_cjs.useMarkAllAsRead();
|
|
7141
7140
|
React8.useEffect(() => {
|
|
7142
|
-
if (!
|
|
7141
|
+
if (!data?.notifications) return;
|
|
7143
7142
|
setNotifications((prev) => {
|
|
7144
7143
|
const existingIds = new Set(prev.map((n) => n.id));
|
|
7145
7144
|
const merged = [
|
|
7146
7145
|
...prev,
|
|
7147
|
-
...
|
|
7146
|
+
...data.notifications.filter((n) => !existingIds.has(n.id))
|
|
7148
7147
|
];
|
|
7149
7148
|
merged.sort(
|
|
7150
7149
|
(a, b) => new Date(b.createdTime || 0).getTime() - new Date(a.createdTime || 0).getTime()
|
|
7151
7150
|
);
|
|
7152
7151
|
return merged;
|
|
7153
7152
|
});
|
|
7154
|
-
setHasMore(pageNumber * PAGE_SIZE < (
|
|
7155
|
-
}, [
|
|
7153
|
+
setHasMore(pageNumber * PAGE_SIZE < (data.totalNotificationsCount ?? 0));
|
|
7154
|
+
}, [data, pageNumber]);
|
|
7156
7155
|
React8.useEffect(() => {
|
|
7157
7156
|
if (!open) return;
|
|
7158
7157
|
setPageNumber(1);
|
|
@@ -7194,7 +7193,7 @@ function useNotificationFeed(open) {
|
|
|
7194
7193
|
isLoading,
|
|
7195
7194
|
isFetching,
|
|
7196
7195
|
listRef,
|
|
7197
|
-
unreadCount:
|
|
7196
|
+
unreadCount: data?.unReadNotificationsCount ?? 0,
|
|
7198
7197
|
handleScroll,
|
|
7199
7198
|
handleMarkAsRead,
|
|
7200
7199
|
handleMarkAllAsRead
|
|
@@ -9121,75 +9120,105 @@ var LoginPage = () => {
|
|
|
9121
9120
|
);
|
|
9122
9121
|
};
|
|
9123
9122
|
|
|
9124
|
-
// src/assets/images/console/
|
|
9125
|
-
var
|
|
9123
|
+
// src/assets/images/console/resource-docs.svg
|
|
9124
|
+
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';
|
|
9126
9125
|
|
|
9127
|
-
// src/assets/images/console/
|
|
9128
|
-
var
|
|
9126
|
+
// src/assets/images/console/resource-cli.svg
|
|
9127
|
+
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';
|
|
9129
9128
|
|
|
9130
|
-
// src/assets/images/console/
|
|
9131
|
-
var
|
|
9132
|
-
var
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
whileHover: { y: -4 },
|
|
9142
|
-
transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] },
|
|
9143
|
-
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",
|
|
9144
|
-
children: [
|
|
9145
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex items-center justify-center overflow-hidden bg-[hsl(var(--surface-app))] px-8 py-10", children: [
|
|
9146
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[radial-gradient(hsl(var(--border-default))_1px,transparent_1px)] opacity-60 [background-size:18px_18px]" }),
|
|
9147
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9148
|
-
"img",
|
|
9149
|
-
{
|
|
9150
|
-
src: image,
|
|
9151
|
-
width: 148,
|
|
9152
|
-
height: 148,
|
|
9153
|
-
alt: label,
|
|
9154
|
-
className: "relative object-contain drop-shadow-sm transition-transform duration-500 group-hover:scale-105"
|
|
9155
|
-
}
|
|
9156
|
-
)
|
|
9157
|
-
] }),
|
|
9158
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col gap-2 p-5", children: [
|
|
9159
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
9160
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-base font-semibold text-[hsl(var(--high-emphasis))]", children: label }),
|
|
9161
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.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" })
|
|
9162
|
-
] }),
|
|
9163
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm leading-relaxed", children: description }),
|
|
9164
|
-
/* @__PURE__ */ jsxRuntime.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" })
|
|
9165
|
-
] })
|
|
9166
|
-
]
|
|
9167
|
-
}
|
|
9168
|
-
);
|
|
9169
|
-
};
|
|
9170
|
-
var data = [
|
|
9171
|
-
{
|
|
9172
|
-
label: "Docs",
|
|
9173
|
-
description: "Established standards that help project managers and technical leaders minimize project risks.",
|
|
9174
|
-
image: console_timeline_default,
|
|
9175
|
-
url: "https://docs.seliseblocks.com"
|
|
9129
|
+
// src/assets/images/console/resource-skills.svg
|
|
9130
|
+
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';
|
|
9131
|
+
var resources = [
|
|
9132
|
+
{
|
|
9133
|
+
eyebrow: "Learn",
|
|
9134
|
+
label: "Read Docs",
|
|
9135
|
+
description: "Established standards and guides that help teams minimize project risk and ship consistently. Learn the possibilities that you can unlock with Selise Blocks.",
|
|
9136
|
+
image: resource_docs_default,
|
|
9137
|
+
url: "https://docs.seliseblocks.com",
|
|
9138
|
+
icon: lucideReact.BookOpenText,
|
|
9139
|
+
actionLabel: "Start Reading"
|
|
9176
9140
|
},
|
|
9177
9141
|
{
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9142
|
+
eyebrow: "Build",
|
|
9143
|
+
label: "Install CLI",
|
|
9144
|
+
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.",
|
|
9145
|
+
image: resource_cli_default,
|
|
9146
|
+
url: "https://github.com/SELISEdigitalplatforms/blocks-cli",
|
|
9147
|
+
icon: lucideReact.SquareTerminal,
|
|
9148
|
+
actionLabel: "See Installation Steps"
|
|
9182
9149
|
},
|
|
9183
9150
|
{
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9151
|
+
eyebrow: "Automate",
|
|
9152
|
+
label: "Bootstrap",
|
|
9153
|
+
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.",
|
|
9154
|
+
image: resource_skills_default,
|
|
9155
|
+
url: "https://github.com/SELISEdigitalplatforms/blocks-skills",
|
|
9156
|
+
icon: lucideReact.Sparkles,
|
|
9157
|
+
actionLabel: "Set Up Your Agent"
|
|
9188
9158
|
}
|
|
9189
9159
|
];
|
|
9190
|
-
var
|
|
9191
|
-
|
|
9192
|
-
|
|
9160
|
+
var BentoGrid = ({
|
|
9161
|
+
children,
|
|
9162
|
+
className
|
|
9163
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9164
|
+
"div",
|
|
9165
|
+
{
|
|
9166
|
+
className: chunkYAF2X7W5_cjs.cn("grid w-full grid-cols-1 gap-4 lg:grid-cols-3", className),
|
|
9167
|
+
children
|
|
9168
|
+
}
|
|
9169
|
+
);
|
|
9170
|
+
var BentoCard = ({
|
|
9171
|
+
eyebrow,
|
|
9172
|
+
label,
|
|
9173
|
+
image,
|
|
9174
|
+
description,
|
|
9175
|
+
url,
|
|
9176
|
+
icon: Icon2,
|
|
9177
|
+
actionLabel
|
|
9178
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9179
|
+
"a",
|
|
9180
|
+
{
|
|
9181
|
+
href: url,
|
|
9182
|
+
target: "_blank",
|
|
9183
|
+
rel: "noopener noreferrer",
|
|
9184
|
+
"aria-label": `${label}: ${description}`,
|
|
9185
|
+
className: chunkYAF2X7W5_cjs.cn(
|
|
9186
|
+
"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",
|
|
9187
|
+
"shadow-[0_1px_2px_hsl(var(--foreground)/0.04),0_8px_24px_-20px_hsl(var(--foreground)/0.22)]",
|
|
9188
|
+
"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)]",
|
|
9189
|
+
"focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
9190
|
+
),
|
|
9191
|
+
children: [
|
|
9192
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
9193
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[radial-gradient(hsl(var(--border-default))_1px,transparent_1px)] opacity-55 [background-size:18px_18px]" }),
|
|
9194
|
+
/* @__PURE__ */ jsxRuntime.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" }),
|
|
9195
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9196
|
+
"img",
|
|
9197
|
+
{
|
|
9198
|
+
src: image,
|
|
9199
|
+
alt: "",
|
|
9200
|
+
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]"
|
|
9201
|
+
}
|
|
9202
|
+
)
|
|
9203
|
+
] }),
|
|
9204
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col px-3 pb-3 pt-4", children: [
|
|
9205
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-11 shrink-0 items-center gap-3", children: [
|
|
9206
|
+
/* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(Icon2, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
9207
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 flex-col justify-center text-left", children: [
|
|
9208
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-[10px] font-bold uppercase leading-4 tracking-[0.16em] text-primary", children: eyebrow }),
|
|
9209
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "truncate text-lg font-semibold leading-6 tracking-tight text-[hsl(var(--high-emphasis))]", children: label })
|
|
9210
|
+
] })
|
|
9211
|
+
] }),
|
|
9212
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 line-clamp-3 h-[3.75rem] shrink-0 text-sm leading-5 text-muted-foreground", children: description }),
|
|
9213
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto pt-3", children: /* @__PURE__ */ jsxRuntime.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: [
|
|
9214
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: actionLabel }),
|
|
9215
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.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" })
|
|
9216
|
+
] }) })
|
|
9217
|
+
] })
|
|
9218
|
+
]
|
|
9219
|
+
}
|
|
9220
|
+
);
|
|
9221
|
+
var DefaultDoc = () => /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
|
|
9193
9222
|
function useCreateProjectRedirect() {
|
|
9194
9223
|
const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
9195
9224
|
const navigate = reactRouter.useNavigate();
|
|
@@ -9998,9 +10027,9 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
9998
10027
|
) });
|
|
9999
10028
|
};
|
|
10000
10029
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
10001
|
-
const { data
|
|
10030
|
+
const { data, isLoading, isFetching } = chunkUVMFL4UV_cjs.useGetProjects({ enabled: true });
|
|
10002
10031
|
const isPending = isLoading || isFetching;
|
|
10003
|
-
const projectGroups =
|
|
10032
|
+
const projectGroups = data || [];
|
|
10004
10033
|
const {
|
|
10005
10034
|
availableEnvironmentOptions,
|
|
10006
10035
|
environmentFilter,
|
|
@@ -10112,10 +10141,7 @@ var ConsolePage = ({ canCreateProject = false }) => {
|
|
|
10112
10141
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex flex-1 flex-col gap-12 px-6 py-10 sm:px-10 xl:px-[154px]", children: [
|
|
10113
10142
|
/* @__PURE__ */ jsxRuntime.jsx(SelfProject, { canCreateProject }),
|
|
10114
10143
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-5", children: [
|
|
10115
|
-
/* @__PURE__ */ jsxRuntime.
|
|
10116
|
-
/* @__PURE__ */ jsxRuntime.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" }),
|
|
10117
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px flex-1 bg-[hsl(var(--border-default))]" })
|
|
10118
|
-
] }),
|
|
10144
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.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" }) }),
|
|
10119
10145
|
/* @__PURE__ */ jsxRuntime.jsx(DefaultDoc, {})
|
|
10120
10146
|
] })
|
|
10121
10147
|
] })
|
|
@@ -10400,7 +10426,7 @@ var useSwaggerEndpoints = (serviceName, {
|
|
|
10400
10426
|
} = {}) => {
|
|
10401
10427
|
const baseUrl = serviceName ? chunkVTOD5ZQU_cjs.getServiceBaseUrl(serviceName) : void 0;
|
|
10402
10428
|
const swaggerUrl = serviceName ? chunkVTOD5ZQU_cjs.getServiceSwaggerUrl(serviceName) : void 0;
|
|
10403
|
-
const { data
|
|
10429
|
+
const { data, isLoading, isError, error } = reactQuery.useQuery({
|
|
10404
10430
|
queryKey: ["swagger-endpoints", swaggerUrl],
|
|
10405
10431
|
queryFn: () => {
|
|
10406
10432
|
if (!swaggerUrl) {
|
|
@@ -10411,41 +10437,41 @@ var useSwaggerEndpoints = (serviceName, {
|
|
|
10411
10437
|
enabled: Boolean(swaggerUrl) && enabled,
|
|
10412
10438
|
staleTime
|
|
10413
10439
|
});
|
|
10414
|
-
const endpoints =
|
|
10440
|
+
const endpoints = data && swaggerUrl ? parseSwaggerDocument(data, swaggerUrl, baseUrl) : [];
|
|
10415
10441
|
return { endpoints, isLoading, isError, error };
|
|
10416
10442
|
};
|
|
10417
10443
|
var ConfirmationModal = ({
|
|
10418
|
-
data
|
|
10444
|
+
data,
|
|
10419
10445
|
onConfirm,
|
|
10420
10446
|
buttonState
|
|
10421
10447
|
}) => /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "mr-4 w-full max-w-[425px] rounded-md", children: [
|
|
10422
10448
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
10423
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children:
|
|
10424
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children:
|
|
10449
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children: data.dialogTitle }),
|
|
10450
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children: data.dialogSubtitle })
|
|
10425
10451
|
] }),
|
|
10426
10452
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogFooter, { className: "mt-4 flex flex-row gap-2", children: [
|
|
10427
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "sm", children:
|
|
10453
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "sm", children: data.cancelButton || "Cancel" }) }),
|
|
10428
10454
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10429
10455
|
Button,
|
|
10430
10456
|
{
|
|
10431
10457
|
size: "sm",
|
|
10432
10458
|
onClick: onConfirm,
|
|
10433
10459
|
disabled: buttonState?.confirm.disable,
|
|
10434
|
-
children:
|
|
10460
|
+
children: data.confirmButton || "Yes"
|
|
10435
10461
|
}
|
|
10436
10462
|
)
|
|
10437
10463
|
] })
|
|
10438
10464
|
] });
|
|
10439
10465
|
var DashboardOverview = () => {
|
|
10440
10466
|
const { name } = chunkXALNVJQU_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
10441
|
-
const { data
|
|
10467
|
+
const { data, isFetching } = chunkUVMFL4UV_cjs.useGetProject();
|
|
10442
10468
|
const {
|
|
10443
10469
|
endpoints,
|
|
10444
10470
|
isLoading: isLoadingEndpoints,
|
|
10445
10471
|
error
|
|
10446
10472
|
} = useSwaggerEndpoints(name);
|
|
10447
10473
|
return /* @__PURE__ */ jsxRuntime.jsxs("main", { className: "flex flex-col gap-6 p-6", children: [
|
|
10448
|
-
/* @__PURE__ */ jsxRuntime.jsx(ProjectDetail, { isLoading: isFetching, project:
|
|
10474
|
+
/* @__PURE__ */ jsxRuntime.jsx(ProjectDetail, { isLoading: isFetching, project: data?.data }),
|
|
10449
10475
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10450
10476
|
CoreApiCard,
|
|
10451
10477
|
{
|
|
@@ -10792,7 +10818,7 @@ var buildColumns = (onSet) => [
|
|
|
10792
10818
|
})
|
|
10793
10819
|
];
|
|
10794
10820
|
var ProjectRepoTable = ({
|
|
10795
|
-
data
|
|
10821
|
+
data,
|
|
10796
10822
|
domains,
|
|
10797
10823
|
projectKey,
|
|
10798
10824
|
projectEnv
|
|
@@ -10805,7 +10831,7 @@ var ProjectRepoTable = ({
|
|
|
10805
10831
|
};
|
|
10806
10832
|
const columns = buildColumns(handleSet);
|
|
10807
10833
|
const table = reactTable.useReactTable({
|
|
10808
|
-
data
|
|
10834
|
+
data,
|
|
10809
10835
|
columns,
|
|
10810
10836
|
getCoreRowModel: reactTable.getCoreRowModel()
|
|
10811
10837
|
});
|
|
@@ -12187,15 +12213,15 @@ var DropdownSearchInput = ({
|
|
|
12187
12213
|
}, [debounced]);
|
|
12188
12214
|
const handleChange = (event) => {
|
|
12189
12215
|
event.stopPropagation();
|
|
12190
|
-
const
|
|
12191
|
-
setState(
|
|
12192
|
-
debounced(
|
|
12216
|
+
const data = { ...state, value: event.target.value };
|
|
12217
|
+
setState(data);
|
|
12218
|
+
debounced(data);
|
|
12193
12219
|
};
|
|
12194
12220
|
const handleClear = (e) => {
|
|
12195
12221
|
e.stopPropagation();
|
|
12196
|
-
const
|
|
12197
|
-
setState(
|
|
12198
|
-
onChange(
|
|
12222
|
+
const data = { ...state, value: "" };
|
|
12223
|
+
setState(data);
|
|
12224
|
+
onChange(data);
|
|
12199
12225
|
};
|
|
12200
12226
|
const handleSelect = (value2) => {
|
|
12201
12227
|
setState({ selected: value2, value: "" });
|
|
@@ -12707,7 +12733,7 @@ var noop = () => {
|
|
|
12707
12733
|
};
|
|
12708
12734
|
function DataTable(props) {
|
|
12709
12735
|
const {
|
|
12710
|
-
data
|
|
12736
|
+
data,
|
|
12711
12737
|
columns,
|
|
12712
12738
|
isLoading = false,
|
|
12713
12739
|
renderLoader,
|
|
@@ -12735,7 +12761,7 @@ function DataTable(props) {
|
|
|
12735
12761
|
void setInternalDescending(value.isDescending);
|
|
12736
12762
|
};
|
|
12737
12763
|
const table = reactTable.useReactTable({
|
|
12738
|
-
data
|
|
12764
|
+
data,
|
|
12739
12765
|
columns,
|
|
12740
12766
|
getCoreRowModel: reactTable.getCoreRowModel(),
|
|
12741
12767
|
...tableOptions
|
|
@@ -13257,5 +13283,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
|
|
|
13257
13283
|
exports.useRightSidePanel = useRightSidePanel;
|
|
13258
13284
|
exports.useSortQueryParams = useSortQueryParams;
|
|
13259
13285
|
exports.useWizardStepper = useWizardStepper;
|
|
13260
|
-
//# sourceMappingURL=chunk-
|
|
13261
|
-
//# sourceMappingURL=chunk-
|
|
13286
|
+
//# sourceMappingURL=chunk-6DQTH7RD.cjs.map
|
|
13287
|
+
//# sourceMappingURL=chunk-6DQTH7RD.cjs.map
|