@seliseblocks/genesis-os 4.0.1 → 4.0.3
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/CHANGELOG.md +6 -0
- package/dist/{blocks-app-layout.provider-NoJHvUfO.d.cts → blocks-app-layout.provider-C831nKua.d.cts} +1 -1
- package/dist/{blocks-app-layout.provider-B0h8Ynag.d.ts → blocks-app-layout.provider-CDK1FNn8.d.ts} +1 -1
- package/dist/{chunk-CTVKY3LO.js → chunk-GUT2OEFQ.js} +86 -28
- package/dist/chunk-GUT2OEFQ.js.map +1 -0
- package/dist/{chunk-4GXQNT77.js → chunk-JJVH37IV.js} +386 -341
- package/dist/chunk-JJVH37IV.js.map +1 -0
- package/dist/{chunk-K2HI6ZDD.cjs → chunk-MLXV2TTM.cjs} +412 -367
- package/dist/chunk-MLXV2TTM.cjs.map +1 -0
- package/dist/{chunk-GEPWXPS7.cjs → chunk-UBF3PJTH.cjs} +86 -27
- package/dist/chunk-UBF3PJTH.cjs.map +1 -0
- package/dist/components/index.cjs +330 -330
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.cjs +42 -38
- package/dist/hooks/index.d.cts +11 -4
- package/dist/hooks/index.d.ts +11 -4
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +383 -379
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/layouts/index.cjs +9 -9
- package/dist/layouts/index.js +2 -2
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/pages/index.cjs +7 -7
- package/dist/pages/index.js +2 -2
- package/dist/providers/index.d.cts +2 -2
- package/dist/providers/index.d.ts +2 -2
- package/dist/{runtime-env-czBfLEUX.d.cts → runtime-env-BdtgvU0N.d.cts} +1 -1
- package/dist/{runtime-env-Ddi8Vo0I.d.ts → runtime-env-ByALSfkR.d.ts} +1 -1
- package/dist/{runtime.types-DO4gvqoG.d.cts → runtime.types-DfALkK5X.d.cts} +1 -1
- package/dist/{runtime.types-DO4gvqoG.d.ts → runtime.types-DfALkK5X.d.ts} +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-4GXQNT77.js.map +0 -1
- package/dist/chunk-CTVKY3LO.js.map +0 -1
- package/dist/chunk-GEPWXPS7.cjs.map +0 -1
- package/dist/chunk-K2HI6ZDD.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkUBF3PJTH_cjs = require('./chunk-UBF3PJTH.cjs');
|
|
5
5
|
var chunkZ6N3Y5AQ_cjs = require('./chunk-Z6N3Y5AQ.cjs');
|
|
6
6
|
var chunkAL2E2WC4_cjs = require('./chunk-AL2E2WC4.cjs');
|
|
7
7
|
var chunkQ7Y32IBM_cjs = require('./chunk-Q7Y32IBM.cjs');
|
|
@@ -634,7 +634,12 @@ var SidebarProvider = React8__namespace.forwardRef(
|
|
|
634
634
|
...style
|
|
635
635
|
},
|
|
636
636
|
className: chunkSDWR3F3Y_cjs.cn(
|
|
637
|
-
"group/sidebar-wrapper has-data-
|
|
637
|
+
"group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",
|
|
638
|
+
// NOTE: Tailwind v3 arbitrary-variant syntax `has-[[data-variant=inset]]` is required
|
|
639
|
+
// here. The v4 shorthand `has-data-[variant=inset]` was introduced in commit 25cdbfc
|
|
640
|
+
// but does not resolve in v3 consumers (v3 does not parse `has-data-[...]` selectors),
|
|
641
|
+
// so the inset variant background rule goes ungenerated. Keep the v3 syntax until all
|
|
642
|
+
// consumers ship v4.
|
|
638
643
|
className
|
|
639
644
|
),
|
|
640
645
|
ref,
|
|
@@ -707,7 +712,13 @@ var Sidebar = React8__namespace.forwardRef(
|
|
|
707
712
|
"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
708
713
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
709
714
|
"group-data-[side=right]:rotate-180",
|
|
710
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(
|
|
715
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : (
|
|
716
|
+
// NOTE: Tailwind v3 arbitrary-value syntax is required here. The v4 form
|
|
717
|
+
// `calc(var(--sidebar-width-icon)+(--spacing(4)))` was introduced in commit 25cdbfc
|
|
718
|
+
// but `(--spacing(4))` is not parsed by the v3 compiler, so the floating/inset
|
|
719
|
+
// panel gap width rule goes ungenerated in v3 consumers.
|
|
720
|
+
"group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
721
|
+
)
|
|
711
722
|
)
|
|
712
723
|
}
|
|
713
724
|
),
|
|
@@ -718,7 +729,11 @@ var Sidebar = React8__namespace.forwardRef(
|
|
|
718
729
|
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
719
730
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
720
731
|
// Adjust the padding for floating and inset variants.
|
|
721
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(
|
|
732
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : (
|
|
733
|
+
// NOTE: Same v3 arbitrary-value syntax requirement as the gap div above
|
|
734
|
+
// (see comment there); v4 `(--spacing(...))` does not resolve in v3 consumers.
|
|
735
|
+
"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l"
|
|
736
|
+
),
|
|
722
737
|
className
|
|
723
738
|
),
|
|
724
739
|
...props,
|
|
@@ -2974,7 +2989,7 @@ function MultiSelect({
|
|
|
2974
2989
|
onChange,
|
|
2975
2990
|
value: selectedValues
|
|
2976
2991
|
}) {
|
|
2977
|
-
const [buttonRef, popoverWidth] =
|
|
2992
|
+
const [buttonRef, popoverWidth] = chunkUBF3PJTH_cjs.usePopoverWidth();
|
|
2978
2993
|
const onSelectHandler = (value) => {
|
|
2979
2994
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
2980
2995
|
onChange(nextValues);
|
|
@@ -5959,7 +5974,7 @@ var Utilities_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox=
|
|
|
5959
5974
|
// src/components/common/app-switcher/app-switcher.constant.ts
|
|
5960
5975
|
var APP_SWITCHER_DATA = [
|
|
5961
5976
|
{
|
|
5962
|
-
|
|
5977
|
+
id: "blocks-iam",
|
|
5963
5978
|
label: "IAM",
|
|
5964
5979
|
description: "Identity & Access",
|
|
5965
5980
|
url: window.process?.env.BLOCKS_IAM_BASE_URL || "",
|
|
@@ -5971,7 +5986,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5971
5986
|
isDisabled: false
|
|
5972
5987
|
},
|
|
5973
5988
|
{
|
|
5974
|
-
|
|
5989
|
+
id: "blocks-localization",
|
|
5975
5990
|
label: "Localization",
|
|
5976
5991
|
description: "Localization",
|
|
5977
5992
|
url: window.process?.env.BLOCKS_LOCALIZATION_BASE_URL || "",
|
|
@@ -5983,7 +5998,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5983
5998
|
isDisabled: false
|
|
5984
5999
|
},
|
|
5985
6000
|
{
|
|
5986
|
-
|
|
6001
|
+
id: "blocks-agents",
|
|
5987
6002
|
label: "Agents",
|
|
5988
6003
|
description: "AI Platform",
|
|
5989
6004
|
url: window.process?.env.BLOCKS_AGENTS_BASE_URL || "",
|
|
@@ -5995,7 +6010,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5995
6010
|
isDisabled: false
|
|
5996
6011
|
},
|
|
5997
6012
|
{
|
|
5998
|
-
|
|
6013
|
+
id: "blocks-data",
|
|
5999
6014
|
label: "Data",
|
|
6000
6015
|
description: "Data Integration",
|
|
6001
6016
|
url: window.process?.env.BLOCKS_DATA_BASE_URL || "",
|
|
@@ -6007,7 +6022,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6007
6022
|
isDisabled: false
|
|
6008
6023
|
},
|
|
6009
6024
|
{
|
|
6010
|
-
|
|
6025
|
+
id: "blocks-os",
|
|
6011
6026
|
label: "OS",
|
|
6012
6027
|
description: "Operating System",
|
|
6013
6028
|
url: window.process?.env.BLOCKS_OS_BASE_URL || "",
|
|
@@ -6019,7 +6034,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6019
6034
|
isDisabled: false
|
|
6020
6035
|
},
|
|
6021
6036
|
{
|
|
6022
|
-
|
|
6037
|
+
id: "blocks-utilities",
|
|
6023
6038
|
label: "Utilities",
|
|
6024
6039
|
description: "Utility Tools",
|
|
6025
6040
|
url: window.process?.env.BLOCKS_UTILITIES_BASE_URL || "",
|
|
@@ -6031,7 +6046,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6031
6046
|
isDisabled: false
|
|
6032
6047
|
},
|
|
6033
6048
|
{
|
|
6034
|
-
|
|
6049
|
+
id: "blocks-logic",
|
|
6035
6050
|
label: "Logic",
|
|
6036
6051
|
description: "Business Logic",
|
|
6037
6052
|
url: window.process?.env.BLOCKS_LOGIC_BASE_URL || "",
|
|
@@ -6043,7 +6058,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6043
6058
|
isDisabled: false
|
|
6044
6059
|
},
|
|
6045
6060
|
{
|
|
6046
|
-
|
|
6061
|
+
id: "blocks-monitor",
|
|
6047
6062
|
label: "Monitor",
|
|
6048
6063
|
description: "Monitoring & Logs",
|
|
6049
6064
|
url: window.process?.env.BLOCKS_MONITOR_BASE_URL || "",
|
|
@@ -6055,7 +6070,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6055
6070
|
isDisabled: false
|
|
6056
6071
|
},
|
|
6057
6072
|
{
|
|
6058
|
-
|
|
6073
|
+
id: "blocks-release",
|
|
6059
6074
|
label: "Release",
|
|
6060
6075
|
description: "CI/CD & Releases",
|
|
6061
6076
|
url: window.process?.env.BLOCKS_RELEASE_BASE_URL || "",
|
|
@@ -6067,7 +6082,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6067
6082
|
isDisabled: false
|
|
6068
6083
|
},
|
|
6069
6084
|
{
|
|
6070
|
-
|
|
6085
|
+
id: "blocks-studio",
|
|
6071
6086
|
label: "Studio",
|
|
6072
6087
|
description: "Development Platform",
|
|
6073
6088
|
url: window.process?.env.BLOCKS_STUDIO_BASE_URL || "",
|
|
@@ -6079,9 +6094,24 @@ var APP_SWITCHER_DATA = [
|
|
|
6079
6094
|
isDisabled: false
|
|
6080
6095
|
}
|
|
6081
6096
|
];
|
|
6082
|
-
var
|
|
6083
|
-
|
|
6097
|
+
var parseAllowedServices = (raw) => {
|
|
6098
|
+
const trimmed = raw.trim();
|
|
6099
|
+
if (!trimmed) return null;
|
|
6100
|
+
return new Set(
|
|
6101
|
+
trimmed.split(",").map((entry) => entry.trim()).filter(Boolean)
|
|
6102
|
+
);
|
|
6103
|
+
};
|
|
6104
|
+
var allowedServiceIds = parseAllowedServices(
|
|
6105
|
+
chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_ALLOWED_SERVICES")
|
|
6084
6106
|
);
|
|
6107
|
+
var isAppAllowed = (app) => {
|
|
6108
|
+
if (!allowedServiceIds) return true;
|
|
6109
|
+
return allowedServiceIds.has(app.id);
|
|
6110
|
+
};
|
|
6111
|
+
var filteredAppSwitcherData = APP_SWITCHER_DATA.filter((app) => {
|
|
6112
|
+
if (!isAppAllowed(app)) return false;
|
|
6113
|
+
return typeof app.isDisabled === "function" ? !app.isDisabled() : !app.isDisabled;
|
|
6114
|
+
});
|
|
6085
6115
|
var AppIcon = ({ icon, label }) => {
|
|
6086
6116
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-12 w-12 items-center justify-center overflow-hidden", children: typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: icon, alt: label, className: "h-full w-full object-contain" }) : icon });
|
|
6087
6117
|
};
|
|
@@ -6108,15 +6138,15 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6108
6138
|
const [open, setOpen] = React8.useState(false);
|
|
6109
6139
|
const [redirectUrls, setRedirectUrls] = React8.useState({});
|
|
6110
6140
|
const isRedirecting = React8.useRef(false);
|
|
6111
|
-
const config =
|
|
6141
|
+
const config = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
6112
6142
|
const getRedirectUrl = React8.useCallback(
|
|
6113
|
-
(app) =>
|
|
6143
|
+
(app) => chunkUBF3PJTH_cjs.initiateService.fetchRedirectUrl({
|
|
6114
6144
|
clientId: chunkHF24SZFI_cjs.getRuntimeEnv(app.clientId),
|
|
6115
6145
|
redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv(app.redirectUri),
|
|
6116
6146
|
forwardedTo: resolvedForwardedTo
|
|
6117
6147
|
}).catch((err) => {
|
|
6118
6148
|
console.error(
|
|
6119
|
-
`[AppSwitcher] Failed to get redirect URL for ${app.
|
|
6149
|
+
`[AppSwitcher] Failed to get redirect URL for ${app.id}:`,
|
|
6120
6150
|
err
|
|
6121
6151
|
);
|
|
6122
6152
|
return null;
|
|
@@ -6124,7 +6154,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6124
6154
|
[resolvedForwardedTo]
|
|
6125
6155
|
);
|
|
6126
6156
|
const filteredApps = React8.useMemo(
|
|
6127
|
-
() => filteredAppSwitcherData.filter((app) => app.
|
|
6157
|
+
() => filteredAppSwitcherData.filter((app) => app.id !== config.name),
|
|
6128
6158
|
[config.name]
|
|
6129
6159
|
);
|
|
6130
6160
|
React8.useEffect(() => {
|
|
@@ -6134,7 +6164,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6134
6164
|
filteredApps.forEach((app, idx) => {
|
|
6135
6165
|
getRedirectUrl(app).then((redirectUrl) => {
|
|
6136
6166
|
if (redirectUrl) {
|
|
6137
|
-
setRedirectUrls((prev) => ({ ...prev, [app.
|
|
6167
|
+
setRedirectUrls((prev) => ({ ...prev, [app.id]: redirectUrl }));
|
|
6138
6168
|
}
|
|
6139
6169
|
}).catch((error) => {
|
|
6140
6170
|
console.error("Error getting redirect URL:", error);
|
|
@@ -6148,8 +6178,8 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6148
6178
|
const blocksApps = React8.useMemo(() => {
|
|
6149
6179
|
return filteredApps.map((app) => ({
|
|
6150
6180
|
...app,
|
|
6151
|
-
initiateUrl: redirectUrls[app.
|
|
6152
|
-
isLoading: !redirectUrls[app.
|
|
6181
|
+
initiateUrl: redirectUrls[app.id] ?? app.initiateUrl,
|
|
6182
|
+
isLoading: !redirectUrls[app.id]
|
|
6153
6183
|
})).sort((a, b) => a.label.localeCompare(b.label));
|
|
6154
6184
|
}, [redirectUrls, filteredApps]);
|
|
6155
6185
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
@@ -6173,7 +6203,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6173
6203
|
className: "w-60 overflow-hidden rounded-2xl p-0 shadow-xl",
|
|
6174
6204
|
children: blocksApps.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
|
|
6175
6205
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
|
|
6176
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsxRuntime.jsx(AppTile, { app, isLoading: app.isLoading }, app.
|
|
6206
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsxRuntime.jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
|
|
6177
6207
|
] })
|
|
6178
6208
|
}
|
|
6179
6209
|
)
|
|
@@ -6185,7 +6215,7 @@ var OPTIONS = [
|
|
|
6185
6215
|
{ value: "dark", Icon: lucideReact.Moon, label: "Dark" }
|
|
6186
6216
|
];
|
|
6187
6217
|
function ThemeSwitcher() {
|
|
6188
|
-
const { theme, setTheme } =
|
|
6218
|
+
const { theme, setTheme } = chunkUBF3PJTH_cjs.useTheme();
|
|
6189
6219
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6190
6220
|
Tabs,
|
|
6191
6221
|
{
|
|
@@ -6254,11 +6284,11 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6254
6284
|
function UserDropdownMenu() {
|
|
6255
6285
|
const { data: data2 } = useGetUserInfo();
|
|
6256
6286
|
const userData = data2?.data;
|
|
6257
|
-
const { isPending, mutateAsync } =
|
|
6287
|
+
const { isPending, mutateAsync } = chunkUBF3PJTH_cjs.useLogout();
|
|
6258
6288
|
const { resetProjectStore } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
6259
6289
|
const { setUnAuthenticated, clearTokens } = chunkVAKGHXK6_cjs.useAuthStore();
|
|
6260
6290
|
const { resetSelectedLanguages } = chunkVNUPOJ7H_cjs.useLanguageViewStore();
|
|
6261
|
-
const { data: myOrgsData, isLoading: isOrgsLoading } =
|
|
6291
|
+
const { data: myOrgsData, isLoading: isOrgsLoading } = chunkUBF3PJTH_cjs.useGetMyOrganizations();
|
|
6262
6292
|
const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
|
|
6263
6293
|
const email = userData?.email || "";
|
|
6264
6294
|
const roles = Object.values(userData?.roles || {}).flat();
|
|
@@ -6386,7 +6416,7 @@ var languages = [
|
|
|
6386
6416
|
{ key: "fr", title: "French" }
|
|
6387
6417
|
];
|
|
6388
6418
|
function LanguageSelector() {
|
|
6389
|
-
const { changeLanguage, language } =
|
|
6419
|
+
const { changeLanguage, language } = chunkUBF3PJTH_cjs.useLanguageSwitcher();
|
|
6390
6420
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
6391
6421
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6392
6422
|
"button",
|
|
@@ -6476,7 +6506,7 @@ var notificationListenerService = new NotificationListenerService();
|
|
|
6476
6506
|
|
|
6477
6507
|
// src/components/common/notification/use-notification-socket.ts
|
|
6478
6508
|
function useNotificationSocket() {
|
|
6479
|
-
const { data: configData } =
|
|
6509
|
+
const { data: configData } = chunkUBF3PJTH_cjs.useGetBlocksNotificationConfig(0, 100);
|
|
6480
6510
|
const queryClient = reactQuery.useQueryClient();
|
|
6481
6511
|
notificationListenerService.connect();
|
|
6482
6512
|
React8.useEffect(() => {
|
|
@@ -6491,7 +6521,7 @@ function useNotificationSocket() {
|
|
|
6491
6521
|
notificationListenerService.connection.on(
|
|
6492
6522
|
config.notifyMethod,
|
|
6493
6523
|
(message) => {
|
|
6494
|
-
|
|
6524
|
+
chunkUBF3PJTH_cjs.notificationService.getNotificationConfig(config, message);
|
|
6495
6525
|
try {
|
|
6496
6526
|
const notice = typeof message === "string" ? JSON.parse(message) : message;
|
|
6497
6527
|
const denom = JSON.parse(
|
|
@@ -6515,12 +6545,12 @@ function useNotificationFeed(open) {
|
|
|
6515
6545
|
const [notifications, setNotifications] = React8.useState([]);
|
|
6516
6546
|
const [hasMore, setHasMore] = React8.useState(true);
|
|
6517
6547
|
const listRef = React8.useRef(null);
|
|
6518
|
-
const { data: data2, isLoading, isFetching } =
|
|
6548
|
+
const { data: data2, isLoading, isFetching } = chunkUBF3PJTH_cjs.useGetNotifications(
|
|
6519
6549
|
pageNumber,
|
|
6520
6550
|
PAGE_SIZE
|
|
6521
6551
|
);
|
|
6522
|
-
const markAsRead =
|
|
6523
|
-
const markAllAsRead =
|
|
6552
|
+
const markAsRead = chunkUBF3PJTH_cjs.useMarkAsRead();
|
|
6553
|
+
const markAllAsRead = chunkUBF3PJTH_cjs.useMarkAllAsRead();
|
|
6524
6554
|
React8.useEffect(() => {
|
|
6525
6555
|
if (!data2?.notifications) return;
|
|
6526
6556
|
setNotifications((prev) => {
|
|
@@ -6754,7 +6784,7 @@ function ConsoleHeader() {
|
|
|
6754
6784
|
window.addEventListener("scroll", handleScroll);
|
|
6755
6785
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
6756
6786
|
}, []);
|
|
6757
|
-
const { appLightLogo, appDarkLogo } =
|
|
6787
|
+
const { appLightLogo, appDarkLogo } = chunkUBF3PJTH_cjs.useLogo();
|
|
6758
6788
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6759
6789
|
"div",
|
|
6760
6790
|
{
|
|
@@ -7204,7 +7234,7 @@ var LoginHeader = ({
|
|
|
7204
7234
|
}) => {
|
|
7205
7235
|
const {
|
|
7206
7236
|
config: { appLogoUrl }
|
|
7207
|
-
} =
|
|
7237
|
+
} = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state);
|
|
7208
7238
|
const resolveLogo = (variant) => {
|
|
7209
7239
|
if (!appLogoUrl) return void 0;
|
|
7210
7240
|
if (typeof appLogoUrl === "string") return appLogoUrl;
|
|
@@ -7250,244 +7280,6 @@ var LoginHeader = ({
|
|
|
7250
7280
|
] });
|
|
7251
7281
|
};
|
|
7252
7282
|
|
|
7253
|
-
// src/pages/login/login.constant.ts
|
|
7254
|
-
var BLOCKS_PRODUCTS = [
|
|
7255
|
-
{
|
|
7256
|
-
name: "blocks-os",
|
|
7257
|
-
appName: "blocks OS",
|
|
7258
|
-
badge: "Platform Core",
|
|
7259
|
-
tagline: "Enterprise application operating system.",
|
|
7260
|
-
descriptionTitle: "Your application control plane",
|
|
7261
|
-
keywords: ["secure", "isolated", "auditable"],
|
|
7262
|
-
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7263
|
-
description: "Blocks OS is a secure, isolated, and fully auditable tenant-level core operating layer. It handles multi-tenant isolation, secrets management, audit trails, and sensitive log and trace handling while automatically logging every authentication decision, data access event, and configuration change.",
|
|
7264
|
-
featureChips: [
|
|
7265
|
-
"Multi-tenant isolation",
|
|
7266
|
-
"Scoped secrets",
|
|
7267
|
-
"Audit trails",
|
|
7268
|
-
"Log & trace handling",
|
|
7269
|
-
"Role-based access"
|
|
7270
|
-
],
|
|
7271
|
-
url: "",
|
|
7272
|
-
cta: "Visit blocks OS"
|
|
7273
|
-
},
|
|
7274
|
-
{
|
|
7275
|
-
name: "blocks-localization",
|
|
7276
|
-
appName: "blocks Localization",
|
|
7277
|
-
badge: "i18n",
|
|
7278
|
-
tagline: "Localization infrastructure for modern teams.",
|
|
7279
|
-
descriptionTitle: "Translate without the overhead",
|
|
7280
|
-
keywords: [
|
|
7281
|
-
"multilingual",
|
|
7282
|
-
"contextual",
|
|
7283
|
-
"automated",
|
|
7284
|
-
"instant",
|
|
7285
|
-
"scalable"
|
|
7286
|
-
],
|
|
7287
|
-
shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
|
|
7288
|
-
description: "Blocks Localization is a key-based and context-aware translation service. Manage multilingual interfaces, edit translations in-browser in real time through the extension, and run bulk operations across thousands of keys.",
|
|
7289
|
-
featureChips: [
|
|
7290
|
-
"Browser extension",
|
|
7291
|
-
"Bulk key operations",
|
|
7292
|
-
"Context-aware translations",
|
|
7293
|
-
"Real-time publishing"
|
|
7294
|
-
],
|
|
7295
|
-
url: "",
|
|
7296
|
-
cta: "Visit blocks Localization"
|
|
7297
|
-
},
|
|
7298
|
-
{
|
|
7299
|
-
name: "blocks-iam",
|
|
7300
|
-
appName: "blocks IAM",
|
|
7301
|
-
badge: "Identity",
|
|
7302
|
-
tagline: "Enterprise identity, handled end-to-end.",
|
|
7303
|
-
descriptionTitle: "One identity layer for every app",
|
|
7304
|
-
keywords: ["secure", "unified", "seamless"],
|
|
7305
|
-
shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
|
|
7306
|
-
description: "Blocks IAM is the unified identity layer for your entire application ecosystem. Configure enterprise SSO, connect external identity providers like Keycloak, Okta, or Azure AD, and enforce MFA from a single secure dashboard.",
|
|
7307
|
-
featureChips: [
|
|
7308
|
-
"SSO & IdP integration",
|
|
7309
|
-
"Multi-factor auth",
|
|
7310
|
-
"Role-based access",
|
|
7311
|
-
"CAPTCHA & client credentials",
|
|
7312
|
-
"Magic links"
|
|
7313
|
-
],
|
|
7314
|
-
url: "",
|
|
7315
|
-
cta: "Visit blocks IAM"
|
|
7316
|
-
},
|
|
7317
|
-
{
|
|
7318
|
-
name: "blocks-data",
|
|
7319
|
-
appName: "blocks Data",
|
|
7320
|
-
badge: "Secure Storage",
|
|
7321
|
-
tagline: "Instant APIs over any data operations.",
|
|
7322
|
-
descriptionTitle: "Your data, API-ready",
|
|
7323
|
-
keywords: [
|
|
7324
|
-
"queryable",
|
|
7325
|
-
"structured",
|
|
7326
|
-
"validated",
|
|
7327
|
-
"versioned",
|
|
7328
|
-
"accessible"
|
|
7329
|
-
],
|
|
7330
|
-
shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
|
|
7331
|
-
description: "Blocks Data gives you instant GraphQL endpoints over managed or bring-your-own databases. Define schemas visually, enforce column-level validation and access control, and perform CRUD operations through the Data Playground.",
|
|
7332
|
-
featureChips: [
|
|
7333
|
-
"GraphQL APIs",
|
|
7334
|
-
"Column-level access",
|
|
7335
|
-
"CRUD playground",
|
|
7336
|
-
"Multi-provider storage",
|
|
7337
|
-
"Bring your own database"
|
|
7338
|
-
],
|
|
7339
|
-
url: "",
|
|
7340
|
-
cta: "Visit blocks Data"
|
|
7341
|
-
},
|
|
7342
|
-
{
|
|
7343
|
-
name: "blocks-logic",
|
|
7344
|
-
appName: "blocks Logic",
|
|
7345
|
-
badge: "Worflow Engine",
|
|
7346
|
-
tagline: "Automate without writing code.",
|
|
7347
|
-
descriptionTitle: "Build workflows on a canvas",
|
|
7348
|
-
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
7349
|
-
shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
|
|
7350
|
-
description: "Blocks Logic is a visual workflow engine for orchestrating complex operations without code. Drag triggers, conditions, and actions onto a canvas, fire workflows through webhooks or email, execute AI reasoning nodes, and push data through HTTP requests.",
|
|
7351
|
-
featureChips: [
|
|
7352
|
-
"Drag-and-drop builder",
|
|
7353
|
-
"Webhook & email triggers",
|
|
7354
|
-
"AI agent node",
|
|
7355
|
-
"HTTP & database actions",
|
|
7356
|
-
"Conditional branching"
|
|
7357
|
-
],
|
|
7358
|
-
url: "",
|
|
7359
|
-
cta: "Visit blocks Logic"
|
|
7360
|
-
},
|
|
7361
|
-
{
|
|
7362
|
-
name: "blocks-studio",
|
|
7363
|
-
appName: "blocks Studio",
|
|
7364
|
-
badge: "AI Studio",
|
|
7365
|
-
tagline: "Generate AI-powered apps within Blocks context.",
|
|
7366
|
-
descriptionTitle: "Generate anything with AI",
|
|
7367
|
-
keywords: [
|
|
7368
|
-
"intelligent",
|
|
7369
|
-
"generative",
|
|
7370
|
-
"contextual",
|
|
7371
|
-
"instant",
|
|
7372
|
-
"adaptive"
|
|
7373
|
-
],
|
|
7374
|
-
shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
|
|
7375
|
-
description: "Blocks Studio is an AI engine that transforms natural language prompts into working applications and reports within the Blocks ecosystem. It uses the same agent infrastructure to convert prompts into functional interfaces.",
|
|
7376
|
-
featureChips: [
|
|
7377
|
-
"Natural language prompts",
|
|
7378
|
-
"AI app generation",
|
|
7379
|
-
"Blocks-aware context",
|
|
7380
|
-
"Instant prototyping",
|
|
7381
|
-
"Internal tool scaffolding"
|
|
7382
|
-
],
|
|
7383
|
-
url: "",
|
|
7384
|
-
cta: "Visit blocks Studio"
|
|
7385
|
-
},
|
|
7386
|
-
{
|
|
7387
|
-
name: "blocks-agents",
|
|
7388
|
-
appName: "Blocks Agents",
|
|
7389
|
-
badge: "AI Gateway",
|
|
7390
|
-
tagline: "Reasoning agents for every frontend.",
|
|
7391
|
-
descriptionTitle: "AI agents that understand your product",
|
|
7392
|
-
keywords: [
|
|
7393
|
-
"reasoning",
|
|
7394
|
-
"autonomous",
|
|
7395
|
-
"embeddable",
|
|
7396
|
-
"intelligent",
|
|
7397
|
-
"adaptive"
|
|
7398
|
-
],
|
|
7399
|
-
shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
|
|
7400
|
-
description: "Blocks Agents lets you create, configure, and deploy intelligent assistants without complex technical setup. Equip agents with RAG-powered knowledge bases, connect custom LLMs through MCP, define tools and guardrails, and embed agents into any frontend with a single script tag.",
|
|
7401
|
-
featureChips: [
|
|
7402
|
-
"RAG knowledge bases",
|
|
7403
|
-
"Custom LLM & MCP",
|
|
7404
|
-
"Embeddable script tag",
|
|
7405
|
-
"Standard APIs"
|
|
7406
|
-
],
|
|
7407
|
-
url: "",
|
|
7408
|
-
cta: "Visit Blocks Agents"
|
|
7409
|
-
},
|
|
7410
|
-
{
|
|
7411
|
-
name: "blocks-release",
|
|
7412
|
-
appName: "blocks Release",
|
|
7413
|
-
badge: "CI/CD",
|
|
7414
|
-
tagline: "Secure releases with faster pace.",
|
|
7415
|
-
descriptionTitle: "Deployment with built-in guardrails",
|
|
7416
|
-
keywords: ["secure", "compliant", "automated", "fast"],
|
|
7417
|
-
shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
|
|
7418
|
-
description: "Blocks Release provides end-to-end deployment infrastructure with security and compliance built in. Connect your repositories and the platform handles builds, runtime, scaling, and observability automatically.",
|
|
7419
|
-
featureChips: [
|
|
7420
|
-
"Git-based deployment",
|
|
7421
|
-
"Branch-environment mapping",
|
|
7422
|
-
"SCA, SAST & DAST",
|
|
7423
|
-
"CI/CD pipelines",
|
|
7424
|
-
"ISO compliance"
|
|
7425
|
-
],
|
|
7426
|
-
url: "",
|
|
7427
|
-
cta: "Visit blocks Release"
|
|
7428
|
-
},
|
|
7429
|
-
{
|
|
7430
|
-
name: "blocks-monitor",
|
|
7431
|
-
appName: "blocks Monitor",
|
|
7432
|
-
badge: "Uptime",
|
|
7433
|
-
tagline: "Full visibility from day one.",
|
|
7434
|
-
descriptionTitle: "Observability with zero integration time",
|
|
7435
|
-
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
7436
|
-
shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
|
|
7437
|
-
description: "Blocks Monitor delivers built-in observability without requiring external tooling or complex setup. Access real-time logs, distributed tracing, uptime monitoring, health checks, usage metrics, and AI-assisted diagnostics.",
|
|
7438
|
-
featureChips: [
|
|
7439
|
-
"Real-time logs with AI",
|
|
7440
|
-
"Distributed tracing",
|
|
7441
|
-
"Usage metrics",
|
|
7442
|
-
"Health monitoring",
|
|
7443
|
-
"Zero external tooling"
|
|
7444
|
-
],
|
|
7445
|
-
url: "",
|
|
7446
|
-
cta: "Visit blocks Monitor"
|
|
7447
|
-
},
|
|
7448
|
-
{
|
|
7449
|
-
name: "blocks-utilities",
|
|
7450
|
-
appName: "blocks Utilities",
|
|
7451
|
-
badge: "Toolkit",
|
|
7452
|
-
tagline: "Communication services for modern applications.",
|
|
7453
|
-
descriptionTitle: "Communication services, ready to use",
|
|
7454
|
-
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
7455
|
-
shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
|
|
7456
|
-
description: "Blocks Utilities provides powerful communication services for your applications. Send branded emails, deliver real-time in-app notifications via SignalR, and create secure time-limited magic links\u2014both redirect and action-based\u2014to power automated workflows.",
|
|
7457
|
-
featureChips: [
|
|
7458
|
-
"Branded email",
|
|
7459
|
-
"Real-time notifications",
|
|
7460
|
-
"Redirect magic links",
|
|
7461
|
-
"Action magic links",
|
|
7462
|
-
"Workflow automation"
|
|
7463
|
-
],
|
|
7464
|
-
url: "",
|
|
7465
|
-
cta: "Visit blocks Utilities"
|
|
7466
|
-
}
|
|
7467
|
-
];
|
|
7468
|
-
var DEFAULT_BLOCKS_PRODUCTS = [
|
|
7469
|
-
{
|
|
7470
|
-
name: "blocks-os",
|
|
7471
|
-
appName: "blocks OS Platform",
|
|
7472
|
-
badge: "Platform Core",
|
|
7473
|
-
tagline: "Enterprise platform for secure, scalable applications",
|
|
7474
|
-
descriptionTitle: "Backends that are",
|
|
7475
|
-
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
7476
|
-
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7477
|
-
description: "Blocks OS is a modern platform for building and deploying secure, scalable applications with built-in observability, AI capabilities, and comprehensive identity management. Focus on your application logic while Blocks OS handles infrastructure, auth, and ops.",
|
|
7478
|
-
featureChips: [
|
|
7479
|
-
"Authentication",
|
|
7480
|
-
"Secrets Management",
|
|
7481
|
-
"Configuration",
|
|
7482
|
-
"API Console",
|
|
7483
|
-
"Usage",
|
|
7484
|
-
"Logs & Tracing"
|
|
7485
|
-
],
|
|
7486
|
-
url: "",
|
|
7487
|
-
cta: "Visit blocks OS"
|
|
7488
|
-
}
|
|
7489
|
-
];
|
|
7490
|
-
|
|
7491
7283
|
// src/pages/login/login.styles.ts
|
|
7492
7284
|
var blocksLoginStyles = `
|
|
7493
7285
|
.blocksLogin-page {
|
|
@@ -7974,47 +7766,34 @@ var blocksLoginStyles = `
|
|
|
7974
7766
|
}
|
|
7975
7767
|
}
|
|
7976
7768
|
`;
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
return
|
|
7769
|
+
var hslToRgb = (hue, s, l) => {
|
|
7770
|
+
s /= 100;
|
|
7771
|
+
l /= 100;
|
|
7772
|
+
const k = (n) => (n + hue / 30) % 12;
|
|
7773
|
+
const a = s * Math.min(l, 1 - l);
|
|
7774
|
+
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
7775
|
+
return [
|
|
7776
|
+
Math.round(f(0) * 255),
|
|
7777
|
+
Math.round(f(8) * 255),
|
|
7778
|
+
Math.round(f(4) * 255)
|
|
7779
|
+
];
|
|
7984
7780
|
};
|
|
7985
|
-
|
|
7986
|
-
name,
|
|
7987
|
-
onLogin,
|
|
7988
|
-
isLoading = false,
|
|
7989
|
-
eyebrow = "Blocks \xB7 Core Services",
|
|
7990
|
-
loginLabel = "Log in to your account",
|
|
7991
|
-
docsUrl = "https://docs.seliseblocks.com/",
|
|
7992
|
-
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
7993
|
-
carouselItems
|
|
7994
|
-
}) => {
|
|
7995
|
-
const active = React8.useMemo(() => {
|
|
7996
|
-
const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
|
|
7997
|
-
return products.find((p) => p.name === name) ?? products[0];
|
|
7998
|
-
}, [name, carouselItems]);
|
|
7999
|
-
const otherProducts = React8.useMemo(
|
|
8000
|
-
() => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
|
|
8001
|
-
[active?.name]
|
|
8002
|
-
);
|
|
8003
|
-
const carouselSource = carouselItems ?? otherProducts;
|
|
8004
|
-
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
8005
|
-
const heroSubtitle = active?.tagline;
|
|
8006
|
-
const features = active?.featureChips;
|
|
8007
|
-
const canvasRef = React8.useRef(null);
|
|
7781
|
+
function useAtmosphericCanvas(canvasRef) {
|
|
8008
7782
|
React8.useEffect(() => {
|
|
8009
7783
|
const canvas = canvasRef.current;
|
|
8010
7784
|
if (!canvas) return;
|
|
8011
7785
|
const ctx = canvas.getContext("2d");
|
|
8012
7786
|
if (!ctx) return;
|
|
8013
|
-
|
|
7787
|
+
const rafHandles = /* @__PURE__ */ new Set();
|
|
8014
7788
|
let t = 0;
|
|
8015
7789
|
let dpr = window.devicePixelRatio || 1;
|
|
8016
7790
|
let w = 0;
|
|
8017
7791
|
let h = 0;
|
|
7792
|
+
const schedule = (cb) => {
|
|
7793
|
+
const handle = requestAnimationFrame(cb);
|
|
7794
|
+
rafHandles.add(handle);
|
|
7795
|
+
return handle;
|
|
7796
|
+
};
|
|
8018
7797
|
const resize = () => {
|
|
8019
7798
|
dpr = window.devicePixelRatio || 1;
|
|
8020
7799
|
w = canvas.width = Math.floor(window.innerWidth * dpr);
|
|
@@ -8023,18 +7802,6 @@ var BlocksLoginPage = ({
|
|
|
8023
7802
|
canvas.style.height = window.innerHeight + "px";
|
|
8024
7803
|
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
8025
7804
|
};
|
|
8026
|
-
const hslToRgb = (hue, s, l) => {
|
|
8027
|
-
s /= 100;
|
|
8028
|
-
l /= 100;
|
|
8029
|
-
const k = (n) => (n + hue / 30) % 12;
|
|
8030
|
-
const a = s * Math.min(l, 1 - l);
|
|
8031
|
-
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
8032
|
-
return [
|
|
8033
|
-
Math.round(f(0) * 255),
|
|
8034
|
-
Math.round(f(8) * 255),
|
|
8035
|
-
Math.round(f(4) * 255)
|
|
8036
|
-
];
|
|
8037
|
-
};
|
|
8038
7805
|
const draw = () => {
|
|
8039
7806
|
const time = t * 8e-3;
|
|
8040
7807
|
const baseHue = 185 + 15 * Math.sin(time);
|
|
@@ -8084,17 +7851,318 @@ var BlocksLoginPage = ({
|
|
|
8084
7851
|
ctx.fillStyle = g3;
|
|
8085
7852
|
ctx.fillRect(0, 0, w / dpr, h / dpr);
|
|
8086
7853
|
t++;
|
|
8087
|
-
|
|
7854
|
+
schedule(draw);
|
|
8088
7855
|
};
|
|
8089
7856
|
resize();
|
|
8090
7857
|
window.addEventListener("resize", resize);
|
|
8091
|
-
|
|
7858
|
+
schedule(draw);
|
|
8092
7859
|
return () => {
|
|
8093
|
-
cancelAnimationFrame(
|
|
7860
|
+
rafHandles.forEach((handle) => cancelAnimationFrame(handle));
|
|
7861
|
+
rafHandles.clear();
|
|
8094
7862
|
window.removeEventListener("resize", resize);
|
|
8095
7863
|
};
|
|
8096
|
-
}, []);
|
|
8097
|
-
|
|
7864
|
+
}, [canvasRef]);
|
|
7865
|
+
}
|
|
7866
|
+
|
|
7867
|
+
// src/pages/login/login.constant.ts
|
|
7868
|
+
var BLOCKS_PRODUCTS = [
|
|
7869
|
+
{
|
|
7870
|
+
name: "blocks-os",
|
|
7871
|
+
appName: "blocks OS",
|
|
7872
|
+
badge: "Platform Core",
|
|
7873
|
+
tagline: "Enterprise application operating system.",
|
|
7874
|
+
descriptionTitle: "Your application control plane",
|
|
7875
|
+
keywords: ["secure", "isolated", "auditable"],
|
|
7876
|
+
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7877
|
+
description: "Blocks OS is a secure, isolated, and fully auditable tenant-level core operating layer. It handles multi-tenant isolation, secrets management, audit trails, and sensitive log and trace handling while automatically logging every authentication decision, data access event, and configuration change.",
|
|
7878
|
+
featureChips: [
|
|
7879
|
+
"Multi-tenant isolation",
|
|
7880
|
+
"Scoped secrets",
|
|
7881
|
+
"Audit trails",
|
|
7882
|
+
"Log & trace handling",
|
|
7883
|
+
"Role-based access"
|
|
7884
|
+
],
|
|
7885
|
+
url: "",
|
|
7886
|
+
cta: "Visit blocks OS"
|
|
7887
|
+
},
|
|
7888
|
+
{
|
|
7889
|
+
name: "blocks-localization",
|
|
7890
|
+
appName: "blocks Localization",
|
|
7891
|
+
badge: "i18n",
|
|
7892
|
+
tagline: "Localization infrastructure for modern teams.",
|
|
7893
|
+
descriptionTitle: "Translate without the overhead",
|
|
7894
|
+
keywords: [
|
|
7895
|
+
"multilingual",
|
|
7896
|
+
"contextual",
|
|
7897
|
+
"automated",
|
|
7898
|
+
"instant",
|
|
7899
|
+
"scalable"
|
|
7900
|
+
],
|
|
7901
|
+
shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
|
|
7902
|
+
description: "Blocks Localization is a key-based and context-aware translation service. Manage multilingual interfaces, edit translations in-browser in real time through the extension, and run bulk operations across thousands of keys.",
|
|
7903
|
+
featureChips: [
|
|
7904
|
+
"Browser extension",
|
|
7905
|
+
"Bulk key operations",
|
|
7906
|
+
"Context-aware translations",
|
|
7907
|
+
"Real-time publishing"
|
|
7908
|
+
],
|
|
7909
|
+
url: "",
|
|
7910
|
+
cta: "Visit blocks Localization"
|
|
7911
|
+
},
|
|
7912
|
+
{
|
|
7913
|
+
name: "blocks-iam",
|
|
7914
|
+
appName: "blocks IAM",
|
|
7915
|
+
badge: "Identity",
|
|
7916
|
+
tagline: "Enterprise identity, handled end-to-end.",
|
|
7917
|
+
descriptionTitle: "One identity layer for every app",
|
|
7918
|
+
keywords: ["secure", "unified", "seamless"],
|
|
7919
|
+
shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
|
|
7920
|
+
description: "Blocks IAM is the unified identity layer for your entire application ecosystem. Configure enterprise SSO, connect external identity providers like Keycloak, Okta, or Azure AD, and enforce MFA from a single secure dashboard.",
|
|
7921
|
+
featureChips: [
|
|
7922
|
+
"SSO & IdP integration",
|
|
7923
|
+
"Multi-factor auth",
|
|
7924
|
+
"Role-based access",
|
|
7925
|
+
"CAPTCHA & client credentials",
|
|
7926
|
+
"Magic links"
|
|
7927
|
+
],
|
|
7928
|
+
url: "",
|
|
7929
|
+
cta: "Visit blocks IAM"
|
|
7930
|
+
},
|
|
7931
|
+
{
|
|
7932
|
+
name: "blocks-data",
|
|
7933
|
+
appName: "blocks Data",
|
|
7934
|
+
badge: "Secure Storage",
|
|
7935
|
+
tagline: "Instant APIs over any data operations.",
|
|
7936
|
+
descriptionTitle: "Your data, API-ready",
|
|
7937
|
+
keywords: [
|
|
7938
|
+
"queryable",
|
|
7939
|
+
"structured",
|
|
7940
|
+
"validated",
|
|
7941
|
+
"versioned",
|
|
7942
|
+
"accessible"
|
|
7943
|
+
],
|
|
7944
|
+
shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
|
|
7945
|
+
description: "Blocks Data gives you instant GraphQL endpoints over managed or bring-your-own databases. Define schemas visually, enforce column-level validation and access control, and perform CRUD operations through the Data Playground.",
|
|
7946
|
+
featureChips: [
|
|
7947
|
+
"GraphQL APIs",
|
|
7948
|
+
"Column-level access",
|
|
7949
|
+
"CRUD playground",
|
|
7950
|
+
"Multi-provider storage",
|
|
7951
|
+
"Bring your own database"
|
|
7952
|
+
],
|
|
7953
|
+
url: "",
|
|
7954
|
+
cta: "Visit blocks Data"
|
|
7955
|
+
},
|
|
7956
|
+
{
|
|
7957
|
+
name: "blocks-logic",
|
|
7958
|
+
appName: "blocks Logic",
|
|
7959
|
+
badge: "Worflow Engine",
|
|
7960
|
+
tagline: "Automate without writing code.",
|
|
7961
|
+
descriptionTitle: "Build workflows on a canvas",
|
|
7962
|
+
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
7963
|
+
shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
|
|
7964
|
+
description: "Blocks Logic is a visual workflow engine for orchestrating complex operations without code. Drag triggers, conditions, and actions onto a canvas, fire workflows through webhooks or email, execute AI reasoning nodes, and push data through HTTP requests.",
|
|
7965
|
+
featureChips: [
|
|
7966
|
+
"Drag-and-drop builder",
|
|
7967
|
+
"Webhook & email triggers",
|
|
7968
|
+
"AI agent node",
|
|
7969
|
+
"HTTP & database actions",
|
|
7970
|
+
"Conditional branching"
|
|
7971
|
+
],
|
|
7972
|
+
url: "",
|
|
7973
|
+
cta: "Visit blocks Logic"
|
|
7974
|
+
},
|
|
7975
|
+
{
|
|
7976
|
+
name: "blocks-studio",
|
|
7977
|
+
appName: "blocks Studio",
|
|
7978
|
+
badge: "AI Studio",
|
|
7979
|
+
tagline: "Generate AI-powered apps within Blocks context.",
|
|
7980
|
+
descriptionTitle: "Generate anything with AI",
|
|
7981
|
+
keywords: [
|
|
7982
|
+
"intelligent",
|
|
7983
|
+
"generative",
|
|
7984
|
+
"contextual",
|
|
7985
|
+
"instant",
|
|
7986
|
+
"adaptive"
|
|
7987
|
+
],
|
|
7988
|
+
shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
|
|
7989
|
+
description: "Blocks Studio is an AI engine that transforms natural language prompts into working applications and reports within the Blocks ecosystem. It uses the same agent infrastructure to convert prompts into functional interfaces.",
|
|
7990
|
+
featureChips: [
|
|
7991
|
+
"Natural language prompts",
|
|
7992
|
+
"AI app generation",
|
|
7993
|
+
"Blocks-aware context",
|
|
7994
|
+
"Instant prototyping",
|
|
7995
|
+
"Internal tool scaffolding"
|
|
7996
|
+
],
|
|
7997
|
+
url: "",
|
|
7998
|
+
cta: "Visit blocks Studio"
|
|
7999
|
+
},
|
|
8000
|
+
{
|
|
8001
|
+
name: "blocks-agents",
|
|
8002
|
+
appName: "Blocks Agents",
|
|
8003
|
+
badge: "AI Gateway",
|
|
8004
|
+
tagline: "Reasoning agents for every frontend.",
|
|
8005
|
+
descriptionTitle: "AI agents that understand your product",
|
|
8006
|
+
keywords: [
|
|
8007
|
+
"reasoning",
|
|
8008
|
+
"autonomous",
|
|
8009
|
+
"embeddable",
|
|
8010
|
+
"intelligent",
|
|
8011
|
+
"adaptive"
|
|
8012
|
+
],
|
|
8013
|
+
shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
|
|
8014
|
+
description: "Blocks Agents lets you create, configure, and deploy intelligent assistants without complex technical setup. Equip agents with RAG-powered knowledge bases, connect custom LLMs through MCP, define tools and guardrails, and embed agents into any frontend with a single script tag.",
|
|
8015
|
+
featureChips: [
|
|
8016
|
+
"RAG knowledge bases",
|
|
8017
|
+
"Custom LLM & MCP",
|
|
8018
|
+
"Embeddable script tag",
|
|
8019
|
+
"Standard APIs"
|
|
8020
|
+
],
|
|
8021
|
+
url: "",
|
|
8022
|
+
cta: "Visit Blocks Agents"
|
|
8023
|
+
},
|
|
8024
|
+
{
|
|
8025
|
+
name: "blocks-release",
|
|
8026
|
+
appName: "blocks Release",
|
|
8027
|
+
badge: "CI/CD",
|
|
8028
|
+
tagline: "Secure releases with faster pace.",
|
|
8029
|
+
descriptionTitle: "Deployment with built-in guardrails",
|
|
8030
|
+
keywords: ["secure", "compliant", "automated", "fast"],
|
|
8031
|
+
shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
|
|
8032
|
+
description: "Blocks Release provides end-to-end deployment infrastructure with security and compliance built in. Connect your repositories and the platform handles builds, runtime, scaling, and observability automatically.",
|
|
8033
|
+
featureChips: [
|
|
8034
|
+
"Git-based deployment",
|
|
8035
|
+
"Branch-environment mapping",
|
|
8036
|
+
"SCA, SAST & DAST",
|
|
8037
|
+
"CI/CD pipelines",
|
|
8038
|
+
"ISO compliance"
|
|
8039
|
+
],
|
|
8040
|
+
url: "",
|
|
8041
|
+
cta: "Visit blocks Release"
|
|
8042
|
+
},
|
|
8043
|
+
{
|
|
8044
|
+
name: "blocks-monitor",
|
|
8045
|
+
appName: "blocks Monitor",
|
|
8046
|
+
badge: "Uptime",
|
|
8047
|
+
tagline: "Full visibility from day one.",
|
|
8048
|
+
descriptionTitle: "Observability with zero integration time",
|
|
8049
|
+
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
8050
|
+
shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
|
|
8051
|
+
description: "Blocks Monitor delivers built-in observability without requiring external tooling or complex setup. Access real-time logs, distributed tracing, uptime monitoring, health checks, usage metrics, and AI-assisted diagnostics.",
|
|
8052
|
+
featureChips: [
|
|
8053
|
+
"Real-time logs with AI",
|
|
8054
|
+
"Distributed tracing",
|
|
8055
|
+
"Usage metrics",
|
|
8056
|
+
"Health monitoring",
|
|
8057
|
+
"Zero external tooling"
|
|
8058
|
+
],
|
|
8059
|
+
url: "",
|
|
8060
|
+
cta: "Visit blocks Monitor"
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
name: "blocks-utilities",
|
|
8064
|
+
appName: "blocks Utilities",
|
|
8065
|
+
badge: "Toolkit",
|
|
8066
|
+
tagline: "Communication services for modern applications.",
|
|
8067
|
+
descriptionTitle: "Communication services, ready to use",
|
|
8068
|
+
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
8069
|
+
shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
|
|
8070
|
+
description: "Blocks Utilities provides powerful communication services for your applications. Send branded emails, deliver real-time in-app notifications via SignalR, and create secure time-limited magic links\u2014both redirect and action-based\u2014to power automated workflows.",
|
|
8071
|
+
featureChips: [
|
|
8072
|
+
"Branded email",
|
|
8073
|
+
"Real-time notifications",
|
|
8074
|
+
"Redirect magic links",
|
|
8075
|
+
"Action magic links",
|
|
8076
|
+
"Workflow automation"
|
|
8077
|
+
],
|
|
8078
|
+
url: "",
|
|
8079
|
+
cta: "Visit blocks Utilities"
|
|
8080
|
+
}
|
|
8081
|
+
];
|
|
8082
|
+
var DEFAULT_BLOCKS_PRODUCTS = [
|
|
8083
|
+
{
|
|
8084
|
+
name: "blocks-os",
|
|
8085
|
+
appName: "blocks OS Platform",
|
|
8086
|
+
badge: "Platform Core",
|
|
8087
|
+
tagline: "Enterprise platform for secure, scalable applications",
|
|
8088
|
+
descriptionTitle: "Backends that are",
|
|
8089
|
+
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
8090
|
+
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
8091
|
+
description: "Blocks OS is a modern platform for building and deploying secure, scalable applications with built-in observability, AI capabilities, and comprehensive identity management. Focus on your application logic while Blocks OS handles infrastructure, auth, and ops.",
|
|
8092
|
+
featureChips: [
|
|
8093
|
+
"Authentication",
|
|
8094
|
+
"Secrets Management",
|
|
8095
|
+
"Configuration",
|
|
8096
|
+
"API Console",
|
|
8097
|
+
"Usage",
|
|
8098
|
+
"Logs & Tracing"
|
|
8099
|
+
],
|
|
8100
|
+
url: "",
|
|
8101
|
+
cta: "Visit blocks OS"
|
|
8102
|
+
}
|
|
8103
|
+
];
|
|
8104
|
+
|
|
8105
|
+
// src/pages/login/use-login-carousel.ts
|
|
8106
|
+
function splitAppName(appName) {
|
|
8107
|
+
const idx = appName.indexOf(" ");
|
|
8108
|
+
if (idx === -1) return [appName, ""];
|
|
8109
|
+
return [appName.slice(0, idx), appName.slice(idx + 1)];
|
|
8110
|
+
}
|
|
8111
|
+
var isBlocksProduct = (item) => {
|
|
8112
|
+
return "appName" in item;
|
|
8113
|
+
};
|
|
8114
|
+
function useLoginCarousel({
|
|
8115
|
+
name,
|
|
8116
|
+
carouselItems
|
|
8117
|
+
}) {
|
|
8118
|
+
const active = React8.useMemo(() => {
|
|
8119
|
+
const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
|
|
8120
|
+
return products.find((p) => p.name === name) ?? products[0];
|
|
8121
|
+
}, [name, carouselItems]);
|
|
8122
|
+
const otherProducts = React8.useMemo(
|
|
8123
|
+
() => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
|
|
8124
|
+
[active?.name]
|
|
8125
|
+
);
|
|
8126
|
+
const carouselSource = carouselItems ?? otherProducts;
|
|
8127
|
+
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
8128
|
+
const heroSubtitle = active?.tagline;
|
|
8129
|
+
const features = active?.featureChips;
|
|
8130
|
+
const carouselCards = React8.useMemo(
|
|
8131
|
+
() => [...carouselSource, ...carouselSource],
|
|
8132
|
+
[carouselSource]
|
|
8133
|
+
);
|
|
8134
|
+
return {
|
|
8135
|
+
active,
|
|
8136
|
+
otherProducts,
|
|
8137
|
+
carouselSource,
|
|
8138
|
+
carouselCards,
|
|
8139
|
+
titleHead,
|
|
8140
|
+
titleTail,
|
|
8141
|
+
heroSubtitle,
|
|
8142
|
+
features
|
|
8143
|
+
};
|
|
8144
|
+
}
|
|
8145
|
+
var BlocksLoginPage = ({
|
|
8146
|
+
name,
|
|
8147
|
+
onLogin,
|
|
8148
|
+
isLoading = false,
|
|
8149
|
+
eyebrow = "Blocks \xB7 Core Services",
|
|
8150
|
+
loginLabel = "Log in to your account",
|
|
8151
|
+
docsUrl = "https://docs.seliseblocks.com/",
|
|
8152
|
+
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
8153
|
+
carouselItems
|
|
8154
|
+
}) => {
|
|
8155
|
+
const canvasRef = React8.useRef(null);
|
|
8156
|
+
useAtmosphericCanvas(canvasRef);
|
|
8157
|
+
const {
|
|
8158
|
+
active,
|
|
8159
|
+
carouselSource,
|
|
8160
|
+
carouselCards,
|
|
8161
|
+
titleHead,
|
|
8162
|
+
titleTail,
|
|
8163
|
+
heroSubtitle,
|
|
8164
|
+
features
|
|
8165
|
+
} = useLoginCarousel({ name, carouselItems });
|
|
8098
8166
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "blocksLogin-page", children: [
|
|
8099
8167
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: blocksLoginStyles }),
|
|
8100
8168
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid-bg" }),
|
|
@@ -8370,37 +8438,14 @@ var BlocksLoginPage = ({
|
|
|
8370
8438
|
] });
|
|
8371
8439
|
};
|
|
8372
8440
|
var LoginPage = () => {
|
|
8373
|
-
const config =
|
|
8374
|
-
const
|
|
8375
|
-
const startLogin = async () => {
|
|
8376
|
-
try {
|
|
8377
|
-
if (isStarting) return;
|
|
8378
|
-
setIsStarting(true);
|
|
8379
|
-
const blocksKey = window.process?.env.BLOCKS_X_BLOCKS_KEY;
|
|
8380
|
-
const clientId = window.process?.env.BLOCKS_OIDC_CLIENT_ID;
|
|
8381
|
-
const baseUrl = window.process?.env.userBaseUrl;
|
|
8382
|
-
const redirectUri = `${window.location.origin}/login/callback`;
|
|
8383
|
-
const initiateUrl = `${baseUrl}/api/idp/initiate?x-blocks-key=${blocksKey}&clientId=${clientId}&redirectUri=${redirectUri}`;
|
|
8384
|
-
const headers = {};
|
|
8385
|
-
if (blocksKey) headers["X-Blocks-Key"] = blocksKey;
|
|
8386
|
-
const response = await fetch(initiateUrl.toString(), { headers });
|
|
8387
|
-
const data2 = await response.json();
|
|
8388
|
-
if (data2.redirect_uri) {
|
|
8389
|
-
window.location.href = data2.redirect_uri;
|
|
8390
|
-
} else {
|
|
8391
|
-
setIsStarting(false);
|
|
8392
|
-
}
|
|
8393
|
-
} catch (error) {
|
|
8394
|
-
console.error("Error initiating login:", error);
|
|
8395
|
-
setIsStarting(false);
|
|
8396
|
-
}
|
|
8397
|
-
};
|
|
8441
|
+
const config = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
8442
|
+
const { start, isLoading } = chunkUBF3PJTH_cjs.useLogin();
|
|
8398
8443
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8399
8444
|
BlocksLoginPage,
|
|
8400
8445
|
{
|
|
8401
8446
|
name: config.name,
|
|
8402
|
-
onLogin:
|
|
8403
|
-
isLoading
|
|
8447
|
+
onLogin: start,
|
|
8448
|
+
isLoading,
|
|
8404
8449
|
carouselItems: BLOCKS_PRODUCTS
|
|
8405
8450
|
}
|
|
8406
8451
|
);
|
|
@@ -8476,10 +8521,10 @@ var DefaultDoc = () => {
|
|
|
8476
8521
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-5 md:grid-cols-2 lg:grid-cols-3", children: data.map((item) => /* @__PURE__ */ jsxRuntime.jsx(DocCard, { ...item }, item.url)) });
|
|
8477
8522
|
};
|
|
8478
8523
|
function useCreateProjectRedirect() {
|
|
8479
|
-
const { name } =
|
|
8524
|
+
const { name } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
8480
8525
|
const navigate = reactRouter.useNavigate();
|
|
8481
|
-
const osApp = filteredAppSwitcherData.find((app) => app.
|
|
8482
|
-
const { isFetching, isReady, redirect } =
|
|
8526
|
+
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
8527
|
+
const { isFetching, isReady, redirect } = chunkUBF3PJTH_cjs.usePrefetchRedirect({
|
|
8483
8528
|
clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
8484
8529
|
redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
8485
8530
|
forwardedTo: "/app/create-project",
|
|
@@ -8571,10 +8616,10 @@ function useProjectOverviewRedirect({
|
|
|
8571
8616
|
tenantGroupId
|
|
8572
8617
|
}) {
|
|
8573
8618
|
const navigate = reactRouter.useNavigate();
|
|
8574
|
-
const { name } =
|
|
8575
|
-
const osApp = filteredAppSwitcherData.find((app) => app.
|
|
8619
|
+
const { name } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
8620
|
+
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
8576
8621
|
const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
|
|
8577
|
-
const { isFetching, isReady, redirect } =
|
|
8622
|
+
const { isFetching, isReady, redirect } = chunkUBF3PJTH_cjs.usePrefetchRedirect({
|
|
8578
8623
|
clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
8579
8624
|
redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
8580
8625
|
forwardedTo: redirectedRoute,
|
|
@@ -8666,7 +8711,7 @@ var ProjectCard = ({ project, projects }) => {
|
|
|
8666
8711
|
className: "flex items-center gap-1 shrink-0",
|
|
8667
8712
|
children: [
|
|
8668
8713
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { size: 16 }),
|
|
8669
|
-
"Shared
|
|
8714
|
+
"Shared"
|
|
8670
8715
|
]
|
|
8671
8716
|
}
|
|
8672
8717
|
)
|
|
@@ -8842,7 +8887,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
|
|
|
8842
8887
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader, { className: "h-12 w-12 animate-spin text-gray-500" }) });
|
|
8843
8888
|
};
|
|
8844
8889
|
function ProfilePage() {
|
|
8845
|
-
const { isLoading, error } =
|
|
8890
|
+
const { isLoading, error } = chunkUBF3PJTH_cjs.useInitiateRedirect({
|
|
8846
8891
|
clientId: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
|
|
8847
8892
|
redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
|
|
8848
8893
|
forwardedTo: "/app/profile"
|
|
@@ -9120,7 +9165,7 @@ var ConfirmationModal = ({
|
|
|
9120
9165
|
] })
|
|
9121
9166
|
] });
|
|
9122
9167
|
var DashboardOverview = () => {
|
|
9123
|
-
const { name } =
|
|
9168
|
+
const { name } = chunkUBF3PJTH_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
9124
9169
|
const { data: data2, isFetching } = chunkPSATBGVF_cjs.useGetProject();
|
|
9125
9170
|
const {
|
|
9126
9171
|
endpoints,
|
|
@@ -9817,7 +9862,7 @@ function SidebarMobileView({
|
|
|
9817
9862
|
navigationMenus
|
|
9818
9863
|
}) {
|
|
9819
9864
|
const [open, setOpen] = React8.useState(false);
|
|
9820
|
-
const { appLightLogo, appDarkLogo } =
|
|
9865
|
+
const { appLightLogo, appDarkLogo } = chunkUBF3PJTH_cjs.useLogo();
|
|
9821
9866
|
const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
|
|
9822
9867
|
return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
9823
9868
|
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
|
|
@@ -9867,8 +9912,8 @@ function SidebarMenuDesktop({
|
|
|
9867
9912
|
navigationMenus
|
|
9868
9913
|
}) {
|
|
9869
9914
|
const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkAL2E2WC4_cjs.SidebarContext);
|
|
9870
|
-
const { appLightLogo, appDarkLogo } =
|
|
9871
|
-
const icon =
|
|
9915
|
+
const { appLightLogo, appDarkLogo } = chunkUBF3PJTH_cjs.useLogo();
|
|
9916
|
+
const icon = chunkUBF3PJTH_cjs.useIcon();
|
|
9872
9917
|
const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
|
|
9873
9918
|
const { isActivePath: isProjectOverviewRoute } = chunkQ7Y32IBM_cjs.useIsActiveMenu("/app/project");
|
|
9874
9919
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -9876,14 +9921,14 @@ function SidebarMenuDesktop({
|
|
|
9876
9921
|
{
|
|
9877
9922
|
className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-all md:flex ${isSidebarOpen ? "min-w-60" : "w-14"}`,
|
|
9878
9923
|
children: [
|
|
9879
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-
|
|
9924
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
|
|
9880
9925
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9881
9926
|
reactRouter.Link,
|
|
9882
9927
|
{
|
|
9883
9928
|
to: "console",
|
|
9884
9929
|
className: chunkSDWR3F3Y_cjs.cn(
|
|
9885
9930
|
"relative inline-block cursor-pointer overflow-hidden transition-all",
|
|
9886
|
-
isSidebarOpen ? "h-9 w-
|
|
9931
|
+
isSidebarOpen ? "h-9 w-[72px]" : "h-8 w-8"
|
|
9887
9932
|
),
|
|
9888
9933
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9889
9934
|
RenderAlternatively,
|
|
@@ -10960,7 +11005,7 @@ function MultiSelect2({
|
|
|
10960
11005
|
onChange,
|
|
10961
11006
|
value: selectedValues
|
|
10962
11007
|
}) {
|
|
10963
|
-
const [buttonRef, popoverWidth] =
|
|
11008
|
+
const [buttonRef, popoverWidth] = chunkUBF3PJTH_cjs.usePopoverWidth();
|
|
10964
11009
|
const onSelectHandler = (value) => {
|
|
10965
11010
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
10966
11011
|
onChange(nextValues);
|
|
@@ -11077,7 +11122,7 @@ var ClearButton = ({ onClear }) => {
|
|
|
11077
11122
|
};
|
|
11078
11123
|
function Radio({ label, options, onChange, value }) {
|
|
11079
11124
|
const [search, setSearch] = React8.useState("");
|
|
11080
|
-
const [buttonRef, popoverWidth] =
|
|
11125
|
+
const [buttonRef, popoverWidth] = chunkUBF3PJTH_cjs.usePopoverWidth();
|
|
11081
11126
|
const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
|
|
11082
11127
|
const selected = React8.useMemo(
|
|
11083
11128
|
() => options.find((item) => item.value === value) || null,
|
|
@@ -12145,5 +12190,5 @@ exports.useOidcContext = useOidcContext;
|
|
|
12145
12190
|
exports.usePaginationQueryParams = usePaginationQueryParams;
|
|
12146
12191
|
exports.useSortQueryParams = useSortQueryParams;
|
|
12147
12192
|
exports.useWizardStepper = useWizardStepper;
|
|
12148
|
-
//# sourceMappingURL=chunk-
|
|
12149
|
-
//# sourceMappingURL=chunk-
|
|
12193
|
+
//# sourceMappingURL=chunk-MLXV2TTM.cjs.map
|
|
12194
|
+
//# sourceMappingURL=chunk-MLXV2TTM.cjs.map
|