@seliseblocks/genesis-os 4.0.1 → 4.0.2
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/LICENSE +21 -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-GEPWXPS7.cjs → chunk-H6RIPPT3.cjs} +85 -27
- package/dist/chunk-H6RIPPT3.cjs.map +1 -0
- package/dist/{chunk-CTVKY3LO.js → chunk-MH5BEN2P.js} +85 -28
- package/dist/chunk-MH5BEN2P.js.map +1 -0
- package/dist/{chunk-K2HI6ZDD.cjs → chunk-P34SPTPD.cjs} +402 -363
- package/dist/chunk-P34SPTPD.cjs.map +1 -0
- package/dist/{chunk-4GXQNT77.js → chunk-XMM33UUZ.js} +376 -337
- package/dist/chunk-XMM33UUZ.js.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 +23 -24
- 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,5 +1,5 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { usePopoverWidth, useBlocksAppConfigStore, initiateService, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useInitiateRedirect, useIcon, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-
|
|
2
|
+
import { usePopoverWidth, useBlocksAppConfigStore, initiateService, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useInitiateRedirect, useIcon, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-MH5BEN2P.js';
|
|
3
3
|
import { showErrorToast, getForwardedToPath, formatFullDate, getProjectBlocksApiUrl, formatDate, debounce, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-M4AKVWL4.js';
|
|
4
4
|
import { SidebarContext, DashboardLayoutProvider } from './chunk-CC33UJZK.js';
|
|
5
5
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
|
|
@@ -583,7 +583,12 @@ var SidebarProvider = React8.forwardRef(
|
|
|
583
583
|
...style
|
|
584
584
|
},
|
|
585
585
|
className: cn(
|
|
586
|
-
"group/sidebar-wrapper has-data-
|
|
586
|
+
"group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",
|
|
587
|
+
// NOTE: Tailwind v3 arbitrary-variant syntax `has-[[data-variant=inset]]` is required
|
|
588
|
+
// here. The v4 shorthand `has-data-[variant=inset]` was introduced in commit 25cdbfc
|
|
589
|
+
// but does not resolve in v3 consumers (v3 does not parse `has-data-[...]` selectors),
|
|
590
|
+
// so the inset variant background rule goes ungenerated. Keep the v3 syntax until all
|
|
591
|
+
// consumers ship v4.
|
|
587
592
|
className
|
|
588
593
|
),
|
|
589
594
|
ref,
|
|
@@ -656,7 +661,13 @@ var Sidebar = React8.forwardRef(
|
|
|
656
661
|
"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
657
662
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
658
663
|
"group-data-[side=right]:rotate-180",
|
|
659
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(
|
|
664
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : (
|
|
665
|
+
// NOTE: Tailwind v3 arbitrary-value syntax is required here. The v4 form
|
|
666
|
+
// `calc(var(--sidebar-width-icon)+(--spacing(4)))` was introduced in commit 25cdbfc
|
|
667
|
+
// but `(--spacing(4))` is not parsed by the v3 compiler, so the floating/inset
|
|
668
|
+
// panel gap width rule goes ungenerated in v3 consumers.
|
|
669
|
+
"group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
670
|
+
)
|
|
660
671
|
)
|
|
661
672
|
}
|
|
662
673
|
),
|
|
@@ -667,7 +678,11 @@ var Sidebar = React8.forwardRef(
|
|
|
667
678
|
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
668
679
|
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)]",
|
|
669
680
|
// Adjust the padding for floating and inset variants.
|
|
670
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(
|
|
681
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : (
|
|
682
|
+
// NOTE: Same v3 arbitrary-value syntax requirement as the gap div above
|
|
683
|
+
// (see comment there); v4 `(--spacing(...))` does not resolve in v3 consumers.
|
|
684
|
+
"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l"
|
|
685
|
+
),
|
|
671
686
|
className
|
|
672
687
|
),
|
|
673
688
|
...props,
|
|
@@ -5908,7 +5923,7 @@ var Utilities_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox=
|
|
|
5908
5923
|
// src/components/common/app-switcher/app-switcher.constant.ts
|
|
5909
5924
|
var APP_SWITCHER_DATA = [
|
|
5910
5925
|
{
|
|
5911
|
-
|
|
5926
|
+
id: "blocks-iam",
|
|
5912
5927
|
label: "IAM",
|
|
5913
5928
|
description: "Identity & Access",
|
|
5914
5929
|
url: window.process?.env.BLOCKS_IAM_BASE_URL || "",
|
|
@@ -5920,7 +5935,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5920
5935
|
isDisabled: false
|
|
5921
5936
|
},
|
|
5922
5937
|
{
|
|
5923
|
-
|
|
5938
|
+
id: "blocks-localization",
|
|
5924
5939
|
label: "Localization",
|
|
5925
5940
|
description: "Localization",
|
|
5926
5941
|
url: window.process?.env.BLOCKS_LOCALIZATION_BASE_URL || "",
|
|
@@ -5932,7 +5947,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5932
5947
|
isDisabled: false
|
|
5933
5948
|
},
|
|
5934
5949
|
{
|
|
5935
|
-
|
|
5950
|
+
id: "blocks-agents",
|
|
5936
5951
|
label: "Agents",
|
|
5937
5952
|
description: "AI Platform",
|
|
5938
5953
|
url: window.process?.env.BLOCKS_AGENTS_BASE_URL || "",
|
|
@@ -5944,7 +5959,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5944
5959
|
isDisabled: false
|
|
5945
5960
|
},
|
|
5946
5961
|
{
|
|
5947
|
-
|
|
5962
|
+
id: "blocks-data",
|
|
5948
5963
|
label: "Data",
|
|
5949
5964
|
description: "Data Integration",
|
|
5950
5965
|
url: window.process?.env.BLOCKS_DATA_BASE_URL || "",
|
|
@@ -5956,7 +5971,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5956
5971
|
isDisabled: false
|
|
5957
5972
|
},
|
|
5958
5973
|
{
|
|
5959
|
-
|
|
5974
|
+
id: "blocks-os",
|
|
5960
5975
|
label: "OS",
|
|
5961
5976
|
description: "Operating System",
|
|
5962
5977
|
url: window.process?.env.BLOCKS_OS_BASE_URL || "",
|
|
@@ -5968,7 +5983,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5968
5983
|
isDisabled: false
|
|
5969
5984
|
},
|
|
5970
5985
|
{
|
|
5971
|
-
|
|
5986
|
+
id: "blocks-utilities",
|
|
5972
5987
|
label: "Utilities",
|
|
5973
5988
|
description: "Utility Tools",
|
|
5974
5989
|
url: window.process?.env.BLOCKS_UTILITIES_BASE_URL || "",
|
|
@@ -5980,7 +5995,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5980
5995
|
isDisabled: false
|
|
5981
5996
|
},
|
|
5982
5997
|
{
|
|
5983
|
-
|
|
5998
|
+
id: "blocks-logic",
|
|
5984
5999
|
label: "Logic",
|
|
5985
6000
|
description: "Business Logic",
|
|
5986
6001
|
url: window.process?.env.BLOCKS_LOGIC_BASE_URL || "",
|
|
@@ -5992,7 +6007,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5992
6007
|
isDisabled: false
|
|
5993
6008
|
},
|
|
5994
6009
|
{
|
|
5995
|
-
|
|
6010
|
+
id: "blocks-monitor",
|
|
5996
6011
|
label: "Monitor",
|
|
5997
6012
|
description: "Monitoring & Logs",
|
|
5998
6013
|
url: window.process?.env.BLOCKS_MONITOR_BASE_URL || "",
|
|
@@ -6004,7 +6019,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6004
6019
|
isDisabled: false
|
|
6005
6020
|
},
|
|
6006
6021
|
{
|
|
6007
|
-
|
|
6022
|
+
id: "blocks-release",
|
|
6008
6023
|
label: "Release",
|
|
6009
6024
|
description: "CI/CD & Releases",
|
|
6010
6025
|
url: window.process?.env.BLOCKS_RELEASE_BASE_URL || "",
|
|
@@ -6016,7 +6031,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6016
6031
|
isDisabled: false
|
|
6017
6032
|
},
|
|
6018
6033
|
{
|
|
6019
|
-
|
|
6034
|
+
id: "blocks-studio",
|
|
6020
6035
|
label: "Studio",
|
|
6021
6036
|
description: "Development Platform",
|
|
6022
6037
|
url: window.process?.env.BLOCKS_STUDIO_BASE_URL || "",
|
|
@@ -6028,9 +6043,24 @@ var APP_SWITCHER_DATA = [
|
|
|
6028
6043
|
isDisabled: false
|
|
6029
6044
|
}
|
|
6030
6045
|
];
|
|
6031
|
-
var
|
|
6032
|
-
|
|
6046
|
+
var parseAllowedServices = (raw) => {
|
|
6047
|
+
const trimmed = raw.trim();
|
|
6048
|
+
if (!trimmed) return null;
|
|
6049
|
+
return new Set(
|
|
6050
|
+
trimmed.split(",").map((entry) => entry.trim()).filter(Boolean)
|
|
6051
|
+
);
|
|
6052
|
+
};
|
|
6053
|
+
var allowedServiceIds = parseAllowedServices(
|
|
6054
|
+
getRuntimeEnv("BLOCKS_ALLOWED_SERVICES")
|
|
6033
6055
|
);
|
|
6056
|
+
var isAppAllowed = (app) => {
|
|
6057
|
+
if (!allowedServiceIds) return true;
|
|
6058
|
+
return allowedServiceIds.has(app.id);
|
|
6059
|
+
};
|
|
6060
|
+
var filteredAppSwitcherData = APP_SWITCHER_DATA.filter((app) => {
|
|
6061
|
+
if (!isAppAllowed(app)) return false;
|
|
6062
|
+
return typeof app.isDisabled === "function" ? !app.isDisabled() : !app.isDisabled;
|
|
6063
|
+
});
|
|
6034
6064
|
var AppIcon = ({ icon, label }) => {
|
|
6035
6065
|
return /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center overflow-hidden", children: typeof icon === "string" ? /* @__PURE__ */ jsx("img", { src: icon, alt: label, className: "h-full w-full object-contain" }) : icon });
|
|
6036
6066
|
};
|
|
@@ -6065,7 +6095,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6065
6095
|
forwardedTo: resolvedForwardedTo
|
|
6066
6096
|
}).catch((err) => {
|
|
6067
6097
|
console.error(
|
|
6068
|
-
`[AppSwitcher] Failed to get redirect URL for ${app.
|
|
6098
|
+
`[AppSwitcher] Failed to get redirect URL for ${app.id}:`,
|
|
6069
6099
|
err
|
|
6070
6100
|
);
|
|
6071
6101
|
return null;
|
|
@@ -6073,7 +6103,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6073
6103
|
[resolvedForwardedTo]
|
|
6074
6104
|
);
|
|
6075
6105
|
const filteredApps = useMemo(
|
|
6076
|
-
() => filteredAppSwitcherData.filter((app) => app.
|
|
6106
|
+
() => filteredAppSwitcherData.filter((app) => app.id !== config.name),
|
|
6077
6107
|
[config.name]
|
|
6078
6108
|
);
|
|
6079
6109
|
useEffect(() => {
|
|
@@ -6083,7 +6113,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6083
6113
|
filteredApps.forEach((app, idx) => {
|
|
6084
6114
|
getRedirectUrl(app).then((redirectUrl) => {
|
|
6085
6115
|
if (redirectUrl) {
|
|
6086
|
-
setRedirectUrls((prev) => ({ ...prev, [app.
|
|
6116
|
+
setRedirectUrls((prev) => ({ ...prev, [app.id]: redirectUrl }));
|
|
6087
6117
|
}
|
|
6088
6118
|
}).catch((error) => {
|
|
6089
6119
|
console.error("Error getting redirect URL:", error);
|
|
@@ -6097,8 +6127,8 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6097
6127
|
const blocksApps = useMemo(() => {
|
|
6098
6128
|
return filteredApps.map((app) => ({
|
|
6099
6129
|
...app,
|
|
6100
|
-
initiateUrl: redirectUrls[app.
|
|
6101
|
-
isLoading: !redirectUrls[app.
|
|
6130
|
+
initiateUrl: redirectUrls[app.id] ?? app.initiateUrl,
|
|
6131
|
+
isLoading: !redirectUrls[app.id]
|
|
6102
6132
|
})).sort((a, b) => a.label.localeCompare(b.label));
|
|
6103
6133
|
}, [redirectUrls, filteredApps]);
|
|
6104
6134
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
@@ -6122,7 +6152,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6122
6152
|
className: "w-60 overflow-hidden rounded-2xl p-0 shadow-xl",
|
|
6123
6153
|
children: blocksApps.length > 0 && /* @__PURE__ */ jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
|
|
6124
6154
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
|
|
6125
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.
|
|
6155
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
|
|
6126
6156
|
] })
|
|
6127
6157
|
}
|
|
6128
6158
|
)
|
|
@@ -7199,244 +7229,6 @@ var LoginHeader = ({
|
|
|
7199
7229
|
] });
|
|
7200
7230
|
};
|
|
7201
7231
|
|
|
7202
|
-
// src/pages/login/login.constant.ts
|
|
7203
|
-
var BLOCKS_PRODUCTS = [
|
|
7204
|
-
{
|
|
7205
|
-
name: "blocks-os",
|
|
7206
|
-
appName: "blocks OS",
|
|
7207
|
-
badge: "Platform Core",
|
|
7208
|
-
tagline: "Enterprise application operating system.",
|
|
7209
|
-
descriptionTitle: "Your application control plane",
|
|
7210
|
-
keywords: ["secure", "isolated", "auditable"],
|
|
7211
|
-
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7212
|
-
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.",
|
|
7213
|
-
featureChips: [
|
|
7214
|
-
"Multi-tenant isolation",
|
|
7215
|
-
"Scoped secrets",
|
|
7216
|
-
"Audit trails",
|
|
7217
|
-
"Log & trace handling",
|
|
7218
|
-
"Role-based access"
|
|
7219
|
-
],
|
|
7220
|
-
url: "",
|
|
7221
|
-
cta: "Visit blocks OS"
|
|
7222
|
-
},
|
|
7223
|
-
{
|
|
7224
|
-
name: "blocks-localization",
|
|
7225
|
-
appName: "blocks Localization",
|
|
7226
|
-
badge: "i18n",
|
|
7227
|
-
tagline: "Localization infrastructure for modern teams.",
|
|
7228
|
-
descriptionTitle: "Translate without the overhead",
|
|
7229
|
-
keywords: [
|
|
7230
|
-
"multilingual",
|
|
7231
|
-
"contextual",
|
|
7232
|
-
"automated",
|
|
7233
|
-
"instant",
|
|
7234
|
-
"scalable"
|
|
7235
|
-
],
|
|
7236
|
-
shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
|
|
7237
|
-
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.",
|
|
7238
|
-
featureChips: [
|
|
7239
|
-
"Browser extension",
|
|
7240
|
-
"Bulk key operations",
|
|
7241
|
-
"Context-aware translations",
|
|
7242
|
-
"Real-time publishing"
|
|
7243
|
-
],
|
|
7244
|
-
url: "",
|
|
7245
|
-
cta: "Visit blocks Localization"
|
|
7246
|
-
},
|
|
7247
|
-
{
|
|
7248
|
-
name: "blocks-iam",
|
|
7249
|
-
appName: "blocks IAM",
|
|
7250
|
-
badge: "Identity",
|
|
7251
|
-
tagline: "Enterprise identity, handled end-to-end.",
|
|
7252
|
-
descriptionTitle: "One identity layer for every app",
|
|
7253
|
-
keywords: ["secure", "unified", "seamless"],
|
|
7254
|
-
shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
|
|
7255
|
-
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.",
|
|
7256
|
-
featureChips: [
|
|
7257
|
-
"SSO & IdP integration",
|
|
7258
|
-
"Multi-factor auth",
|
|
7259
|
-
"Role-based access",
|
|
7260
|
-
"CAPTCHA & client credentials",
|
|
7261
|
-
"Magic links"
|
|
7262
|
-
],
|
|
7263
|
-
url: "",
|
|
7264
|
-
cta: "Visit blocks IAM"
|
|
7265
|
-
},
|
|
7266
|
-
{
|
|
7267
|
-
name: "blocks-data",
|
|
7268
|
-
appName: "blocks Data",
|
|
7269
|
-
badge: "Secure Storage",
|
|
7270
|
-
tagline: "Instant APIs over any data operations.",
|
|
7271
|
-
descriptionTitle: "Your data, API-ready",
|
|
7272
|
-
keywords: [
|
|
7273
|
-
"queryable",
|
|
7274
|
-
"structured",
|
|
7275
|
-
"validated",
|
|
7276
|
-
"versioned",
|
|
7277
|
-
"accessible"
|
|
7278
|
-
],
|
|
7279
|
-
shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
|
|
7280
|
-
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.",
|
|
7281
|
-
featureChips: [
|
|
7282
|
-
"GraphQL APIs",
|
|
7283
|
-
"Column-level access",
|
|
7284
|
-
"CRUD playground",
|
|
7285
|
-
"Multi-provider storage",
|
|
7286
|
-
"Bring your own database"
|
|
7287
|
-
],
|
|
7288
|
-
url: "",
|
|
7289
|
-
cta: "Visit blocks Data"
|
|
7290
|
-
},
|
|
7291
|
-
{
|
|
7292
|
-
name: "blocks-logic",
|
|
7293
|
-
appName: "blocks Logic",
|
|
7294
|
-
badge: "Worflow Engine",
|
|
7295
|
-
tagline: "Automate without writing code.",
|
|
7296
|
-
descriptionTitle: "Build workflows on a canvas",
|
|
7297
|
-
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
7298
|
-
shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
|
|
7299
|
-
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.",
|
|
7300
|
-
featureChips: [
|
|
7301
|
-
"Drag-and-drop builder",
|
|
7302
|
-
"Webhook & email triggers",
|
|
7303
|
-
"AI agent node",
|
|
7304
|
-
"HTTP & database actions",
|
|
7305
|
-
"Conditional branching"
|
|
7306
|
-
],
|
|
7307
|
-
url: "",
|
|
7308
|
-
cta: "Visit blocks Logic"
|
|
7309
|
-
},
|
|
7310
|
-
{
|
|
7311
|
-
name: "blocks-studio",
|
|
7312
|
-
appName: "blocks Studio",
|
|
7313
|
-
badge: "AI Studio",
|
|
7314
|
-
tagline: "Generate AI-powered apps within Blocks context.",
|
|
7315
|
-
descriptionTitle: "Generate anything with AI",
|
|
7316
|
-
keywords: [
|
|
7317
|
-
"intelligent",
|
|
7318
|
-
"generative",
|
|
7319
|
-
"contextual",
|
|
7320
|
-
"instant",
|
|
7321
|
-
"adaptive"
|
|
7322
|
-
],
|
|
7323
|
-
shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
|
|
7324
|
-
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.",
|
|
7325
|
-
featureChips: [
|
|
7326
|
-
"Natural language prompts",
|
|
7327
|
-
"AI app generation",
|
|
7328
|
-
"Blocks-aware context",
|
|
7329
|
-
"Instant prototyping",
|
|
7330
|
-
"Internal tool scaffolding"
|
|
7331
|
-
],
|
|
7332
|
-
url: "",
|
|
7333
|
-
cta: "Visit blocks Studio"
|
|
7334
|
-
},
|
|
7335
|
-
{
|
|
7336
|
-
name: "blocks-agents",
|
|
7337
|
-
appName: "Blocks Agents",
|
|
7338
|
-
badge: "AI Gateway",
|
|
7339
|
-
tagline: "Reasoning agents for every frontend.",
|
|
7340
|
-
descriptionTitle: "AI agents that understand your product",
|
|
7341
|
-
keywords: [
|
|
7342
|
-
"reasoning",
|
|
7343
|
-
"autonomous",
|
|
7344
|
-
"embeddable",
|
|
7345
|
-
"intelligent",
|
|
7346
|
-
"adaptive"
|
|
7347
|
-
],
|
|
7348
|
-
shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
|
|
7349
|
-
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.",
|
|
7350
|
-
featureChips: [
|
|
7351
|
-
"RAG knowledge bases",
|
|
7352
|
-
"Custom LLM & MCP",
|
|
7353
|
-
"Embeddable script tag",
|
|
7354
|
-
"Standard APIs"
|
|
7355
|
-
],
|
|
7356
|
-
url: "",
|
|
7357
|
-
cta: "Visit Blocks Agents"
|
|
7358
|
-
},
|
|
7359
|
-
{
|
|
7360
|
-
name: "blocks-release",
|
|
7361
|
-
appName: "blocks Release",
|
|
7362
|
-
badge: "CI/CD",
|
|
7363
|
-
tagline: "Secure releases with faster pace.",
|
|
7364
|
-
descriptionTitle: "Deployment with built-in guardrails",
|
|
7365
|
-
keywords: ["secure", "compliant", "automated", "fast"],
|
|
7366
|
-
shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
|
|
7367
|
-
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.",
|
|
7368
|
-
featureChips: [
|
|
7369
|
-
"Git-based deployment",
|
|
7370
|
-
"Branch-environment mapping",
|
|
7371
|
-
"SCA, SAST & DAST",
|
|
7372
|
-
"CI/CD pipelines",
|
|
7373
|
-
"ISO compliance"
|
|
7374
|
-
],
|
|
7375
|
-
url: "",
|
|
7376
|
-
cta: "Visit blocks Release"
|
|
7377
|
-
},
|
|
7378
|
-
{
|
|
7379
|
-
name: "blocks-monitor",
|
|
7380
|
-
appName: "blocks Monitor",
|
|
7381
|
-
badge: "Uptime",
|
|
7382
|
-
tagline: "Full visibility from day one.",
|
|
7383
|
-
descriptionTitle: "Observability with zero integration time",
|
|
7384
|
-
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
7385
|
-
shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
|
|
7386
|
-
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.",
|
|
7387
|
-
featureChips: [
|
|
7388
|
-
"Real-time logs with AI",
|
|
7389
|
-
"Distributed tracing",
|
|
7390
|
-
"Usage metrics",
|
|
7391
|
-
"Health monitoring",
|
|
7392
|
-
"Zero external tooling"
|
|
7393
|
-
],
|
|
7394
|
-
url: "",
|
|
7395
|
-
cta: "Visit blocks Monitor"
|
|
7396
|
-
},
|
|
7397
|
-
{
|
|
7398
|
-
name: "blocks-utilities",
|
|
7399
|
-
appName: "blocks Utilities",
|
|
7400
|
-
badge: "Toolkit",
|
|
7401
|
-
tagline: "Communication services for modern applications.",
|
|
7402
|
-
descriptionTitle: "Communication services, ready to use",
|
|
7403
|
-
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
7404
|
-
shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
|
|
7405
|
-
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.",
|
|
7406
|
-
featureChips: [
|
|
7407
|
-
"Branded email",
|
|
7408
|
-
"Real-time notifications",
|
|
7409
|
-
"Redirect magic links",
|
|
7410
|
-
"Action magic links",
|
|
7411
|
-
"Workflow automation"
|
|
7412
|
-
],
|
|
7413
|
-
url: "",
|
|
7414
|
-
cta: "Visit blocks Utilities"
|
|
7415
|
-
}
|
|
7416
|
-
];
|
|
7417
|
-
var DEFAULT_BLOCKS_PRODUCTS = [
|
|
7418
|
-
{
|
|
7419
|
-
name: "blocks-os",
|
|
7420
|
-
appName: "blocks OS Platform",
|
|
7421
|
-
badge: "Platform Core",
|
|
7422
|
-
tagline: "Enterprise platform for secure, scalable applications",
|
|
7423
|
-
descriptionTitle: "Backends that are",
|
|
7424
|
-
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
7425
|
-
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7426
|
-
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.",
|
|
7427
|
-
featureChips: [
|
|
7428
|
-
"Authentication",
|
|
7429
|
-
"Secrets Management",
|
|
7430
|
-
"Configuration",
|
|
7431
|
-
"API Console",
|
|
7432
|
-
"Usage",
|
|
7433
|
-
"Logs & Tracing"
|
|
7434
|
-
],
|
|
7435
|
-
url: "",
|
|
7436
|
-
cta: "Visit blocks OS"
|
|
7437
|
-
}
|
|
7438
|
-
];
|
|
7439
|
-
|
|
7440
7232
|
// src/pages/login/login.styles.ts
|
|
7441
7233
|
var blocksLoginStyles = `
|
|
7442
7234
|
.blocksLogin-page {
|
|
@@ -7923,37 +7715,19 @@ var blocksLoginStyles = `
|
|
|
7923
7715
|
}
|
|
7924
7716
|
}
|
|
7925
7717
|
`;
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
return
|
|
7718
|
+
var hslToRgb = (hue, s, l) => {
|
|
7719
|
+
s /= 100;
|
|
7720
|
+
l /= 100;
|
|
7721
|
+
const k = (n) => (n + hue / 30) % 12;
|
|
7722
|
+
const a = s * Math.min(l, 1 - l);
|
|
7723
|
+
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
7724
|
+
return [
|
|
7725
|
+
Math.round(f(0) * 255),
|
|
7726
|
+
Math.round(f(8) * 255),
|
|
7727
|
+
Math.round(f(4) * 255)
|
|
7728
|
+
];
|
|
7933
7729
|
};
|
|
7934
|
-
|
|
7935
|
-
name,
|
|
7936
|
-
onLogin,
|
|
7937
|
-
isLoading = false,
|
|
7938
|
-
eyebrow = "Blocks \xB7 Core Services",
|
|
7939
|
-
loginLabel = "Log in to your account",
|
|
7940
|
-
docsUrl = "https://docs.seliseblocks.com/",
|
|
7941
|
-
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
7942
|
-
carouselItems
|
|
7943
|
-
}) => {
|
|
7944
|
-
const active = useMemo(() => {
|
|
7945
|
-
const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
|
|
7946
|
-
return products.find((p) => p.name === name) ?? products[0];
|
|
7947
|
-
}, [name, carouselItems]);
|
|
7948
|
-
const otherProducts = useMemo(
|
|
7949
|
-
() => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
|
|
7950
|
-
[active?.name]
|
|
7951
|
-
);
|
|
7952
|
-
const carouselSource = carouselItems ?? otherProducts;
|
|
7953
|
-
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
7954
|
-
const heroSubtitle = active?.tagline;
|
|
7955
|
-
const features = active?.featureChips;
|
|
7956
|
-
const canvasRef = useRef(null);
|
|
7730
|
+
function useAtmosphericCanvas(canvasRef) {
|
|
7957
7731
|
useEffect(() => {
|
|
7958
7732
|
const canvas = canvasRef.current;
|
|
7959
7733
|
if (!canvas) return;
|
|
@@ -7972,18 +7746,6 @@ var BlocksLoginPage = ({
|
|
|
7972
7746
|
canvas.style.height = window.innerHeight + "px";
|
|
7973
7747
|
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
7974
7748
|
};
|
|
7975
|
-
const hslToRgb = (hue, s, l) => {
|
|
7976
|
-
s /= 100;
|
|
7977
|
-
l /= 100;
|
|
7978
|
-
const k = (n) => (n + hue / 30) % 12;
|
|
7979
|
-
const a = s * Math.min(l, 1 - l);
|
|
7980
|
-
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
7981
|
-
return [
|
|
7982
|
-
Math.round(f(0) * 255),
|
|
7983
|
-
Math.round(f(8) * 255),
|
|
7984
|
-
Math.round(f(4) * 255)
|
|
7985
|
-
];
|
|
7986
|
-
};
|
|
7987
7749
|
const draw = () => {
|
|
7988
7750
|
const time = t * 8e-3;
|
|
7989
7751
|
const baseHue = 185 + 15 * Math.sin(time);
|
|
@@ -8042,8 +7804,308 @@ var BlocksLoginPage = ({
|
|
|
8042
7804
|
cancelAnimationFrame(raf);
|
|
8043
7805
|
window.removeEventListener("resize", resize);
|
|
8044
7806
|
};
|
|
8045
|
-
}, []);
|
|
8046
|
-
|
|
7807
|
+
}, [canvasRef]);
|
|
7808
|
+
}
|
|
7809
|
+
|
|
7810
|
+
// src/pages/login/login.constant.ts
|
|
7811
|
+
var BLOCKS_PRODUCTS = [
|
|
7812
|
+
{
|
|
7813
|
+
name: "blocks-os",
|
|
7814
|
+
appName: "blocks OS",
|
|
7815
|
+
badge: "Platform Core",
|
|
7816
|
+
tagline: "Enterprise application operating system.",
|
|
7817
|
+
descriptionTitle: "Your application control plane",
|
|
7818
|
+
keywords: ["secure", "isolated", "auditable"],
|
|
7819
|
+
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7820
|
+
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.",
|
|
7821
|
+
featureChips: [
|
|
7822
|
+
"Multi-tenant isolation",
|
|
7823
|
+
"Scoped secrets",
|
|
7824
|
+
"Audit trails",
|
|
7825
|
+
"Log & trace handling",
|
|
7826
|
+
"Role-based access"
|
|
7827
|
+
],
|
|
7828
|
+
url: "",
|
|
7829
|
+
cta: "Visit blocks OS"
|
|
7830
|
+
},
|
|
7831
|
+
{
|
|
7832
|
+
name: "blocks-localization",
|
|
7833
|
+
appName: "blocks Localization",
|
|
7834
|
+
badge: "i18n",
|
|
7835
|
+
tagline: "Localization infrastructure for modern teams.",
|
|
7836
|
+
descriptionTitle: "Translate without the overhead",
|
|
7837
|
+
keywords: [
|
|
7838
|
+
"multilingual",
|
|
7839
|
+
"contextual",
|
|
7840
|
+
"automated",
|
|
7841
|
+
"instant",
|
|
7842
|
+
"scalable"
|
|
7843
|
+
],
|
|
7844
|
+
shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
|
|
7845
|
+
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.",
|
|
7846
|
+
featureChips: [
|
|
7847
|
+
"Browser extension",
|
|
7848
|
+
"Bulk key operations",
|
|
7849
|
+
"Context-aware translations",
|
|
7850
|
+
"Real-time publishing"
|
|
7851
|
+
],
|
|
7852
|
+
url: "",
|
|
7853
|
+
cta: "Visit blocks Localization"
|
|
7854
|
+
},
|
|
7855
|
+
{
|
|
7856
|
+
name: "blocks-iam",
|
|
7857
|
+
appName: "blocks IAM",
|
|
7858
|
+
badge: "Identity",
|
|
7859
|
+
tagline: "Enterprise identity, handled end-to-end.",
|
|
7860
|
+
descriptionTitle: "One identity layer for every app",
|
|
7861
|
+
keywords: ["secure", "unified", "seamless"],
|
|
7862
|
+
shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
|
|
7863
|
+
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.",
|
|
7864
|
+
featureChips: [
|
|
7865
|
+
"SSO & IdP integration",
|
|
7866
|
+
"Multi-factor auth",
|
|
7867
|
+
"Role-based access",
|
|
7868
|
+
"CAPTCHA & client credentials",
|
|
7869
|
+
"Magic links"
|
|
7870
|
+
],
|
|
7871
|
+
url: "",
|
|
7872
|
+
cta: "Visit blocks IAM"
|
|
7873
|
+
},
|
|
7874
|
+
{
|
|
7875
|
+
name: "blocks-data",
|
|
7876
|
+
appName: "blocks Data",
|
|
7877
|
+
badge: "Secure Storage",
|
|
7878
|
+
tagline: "Instant APIs over any data operations.",
|
|
7879
|
+
descriptionTitle: "Your data, API-ready",
|
|
7880
|
+
keywords: [
|
|
7881
|
+
"queryable",
|
|
7882
|
+
"structured",
|
|
7883
|
+
"validated",
|
|
7884
|
+
"versioned",
|
|
7885
|
+
"accessible"
|
|
7886
|
+
],
|
|
7887
|
+
shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
|
|
7888
|
+
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.",
|
|
7889
|
+
featureChips: [
|
|
7890
|
+
"GraphQL APIs",
|
|
7891
|
+
"Column-level access",
|
|
7892
|
+
"CRUD playground",
|
|
7893
|
+
"Multi-provider storage",
|
|
7894
|
+
"Bring your own database"
|
|
7895
|
+
],
|
|
7896
|
+
url: "",
|
|
7897
|
+
cta: "Visit blocks Data"
|
|
7898
|
+
},
|
|
7899
|
+
{
|
|
7900
|
+
name: "blocks-logic",
|
|
7901
|
+
appName: "blocks Logic",
|
|
7902
|
+
badge: "Worflow Engine",
|
|
7903
|
+
tagline: "Automate without writing code.",
|
|
7904
|
+
descriptionTitle: "Build workflows on a canvas",
|
|
7905
|
+
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
7906
|
+
shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
|
|
7907
|
+
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.",
|
|
7908
|
+
featureChips: [
|
|
7909
|
+
"Drag-and-drop builder",
|
|
7910
|
+
"Webhook & email triggers",
|
|
7911
|
+
"AI agent node",
|
|
7912
|
+
"HTTP & database actions",
|
|
7913
|
+
"Conditional branching"
|
|
7914
|
+
],
|
|
7915
|
+
url: "",
|
|
7916
|
+
cta: "Visit blocks Logic"
|
|
7917
|
+
},
|
|
7918
|
+
{
|
|
7919
|
+
name: "blocks-studio",
|
|
7920
|
+
appName: "blocks Studio",
|
|
7921
|
+
badge: "AI Studio",
|
|
7922
|
+
tagline: "Generate AI-powered apps within Blocks context.",
|
|
7923
|
+
descriptionTitle: "Generate anything with AI",
|
|
7924
|
+
keywords: [
|
|
7925
|
+
"intelligent",
|
|
7926
|
+
"generative",
|
|
7927
|
+
"contextual",
|
|
7928
|
+
"instant",
|
|
7929
|
+
"adaptive"
|
|
7930
|
+
],
|
|
7931
|
+
shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
|
|
7932
|
+
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.",
|
|
7933
|
+
featureChips: [
|
|
7934
|
+
"Natural language prompts",
|
|
7935
|
+
"AI app generation",
|
|
7936
|
+
"Blocks-aware context",
|
|
7937
|
+
"Instant prototyping",
|
|
7938
|
+
"Internal tool scaffolding"
|
|
7939
|
+
],
|
|
7940
|
+
url: "",
|
|
7941
|
+
cta: "Visit blocks Studio"
|
|
7942
|
+
},
|
|
7943
|
+
{
|
|
7944
|
+
name: "blocks-agents",
|
|
7945
|
+
appName: "Blocks Agents",
|
|
7946
|
+
badge: "AI Gateway",
|
|
7947
|
+
tagline: "Reasoning agents for every frontend.",
|
|
7948
|
+
descriptionTitle: "AI agents that understand your product",
|
|
7949
|
+
keywords: [
|
|
7950
|
+
"reasoning",
|
|
7951
|
+
"autonomous",
|
|
7952
|
+
"embeddable",
|
|
7953
|
+
"intelligent",
|
|
7954
|
+
"adaptive"
|
|
7955
|
+
],
|
|
7956
|
+
shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
|
|
7957
|
+
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.",
|
|
7958
|
+
featureChips: [
|
|
7959
|
+
"RAG knowledge bases",
|
|
7960
|
+
"Custom LLM & MCP",
|
|
7961
|
+
"Embeddable script tag",
|
|
7962
|
+
"Standard APIs"
|
|
7963
|
+
],
|
|
7964
|
+
url: "",
|
|
7965
|
+
cta: "Visit Blocks Agents"
|
|
7966
|
+
},
|
|
7967
|
+
{
|
|
7968
|
+
name: "blocks-release",
|
|
7969
|
+
appName: "blocks Release",
|
|
7970
|
+
badge: "CI/CD",
|
|
7971
|
+
tagline: "Secure releases with faster pace.",
|
|
7972
|
+
descriptionTitle: "Deployment with built-in guardrails",
|
|
7973
|
+
keywords: ["secure", "compliant", "automated", "fast"],
|
|
7974
|
+
shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
|
|
7975
|
+
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.",
|
|
7976
|
+
featureChips: [
|
|
7977
|
+
"Git-based deployment",
|
|
7978
|
+
"Branch-environment mapping",
|
|
7979
|
+
"SCA, SAST & DAST",
|
|
7980
|
+
"CI/CD pipelines",
|
|
7981
|
+
"ISO compliance"
|
|
7982
|
+
],
|
|
7983
|
+
url: "",
|
|
7984
|
+
cta: "Visit blocks Release"
|
|
7985
|
+
},
|
|
7986
|
+
{
|
|
7987
|
+
name: "blocks-monitor",
|
|
7988
|
+
appName: "blocks Monitor",
|
|
7989
|
+
badge: "Uptime",
|
|
7990
|
+
tagline: "Full visibility from day one.",
|
|
7991
|
+
descriptionTitle: "Observability with zero integration time",
|
|
7992
|
+
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
7993
|
+
shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
|
|
7994
|
+
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.",
|
|
7995
|
+
featureChips: [
|
|
7996
|
+
"Real-time logs with AI",
|
|
7997
|
+
"Distributed tracing",
|
|
7998
|
+
"Usage metrics",
|
|
7999
|
+
"Health monitoring",
|
|
8000
|
+
"Zero external tooling"
|
|
8001
|
+
],
|
|
8002
|
+
url: "",
|
|
8003
|
+
cta: "Visit blocks Monitor"
|
|
8004
|
+
},
|
|
8005
|
+
{
|
|
8006
|
+
name: "blocks-utilities",
|
|
8007
|
+
appName: "blocks Utilities",
|
|
8008
|
+
badge: "Toolkit",
|
|
8009
|
+
tagline: "Communication services for modern applications.",
|
|
8010
|
+
descriptionTitle: "Communication services, ready to use",
|
|
8011
|
+
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
8012
|
+
shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
|
|
8013
|
+
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.",
|
|
8014
|
+
featureChips: [
|
|
8015
|
+
"Branded email",
|
|
8016
|
+
"Real-time notifications",
|
|
8017
|
+
"Redirect magic links",
|
|
8018
|
+
"Action magic links",
|
|
8019
|
+
"Workflow automation"
|
|
8020
|
+
],
|
|
8021
|
+
url: "",
|
|
8022
|
+
cta: "Visit blocks Utilities"
|
|
8023
|
+
}
|
|
8024
|
+
];
|
|
8025
|
+
var DEFAULT_BLOCKS_PRODUCTS = [
|
|
8026
|
+
{
|
|
8027
|
+
name: "blocks-os",
|
|
8028
|
+
appName: "blocks OS Platform",
|
|
8029
|
+
badge: "Platform Core",
|
|
8030
|
+
tagline: "Enterprise platform for secure, scalable applications",
|
|
8031
|
+
descriptionTitle: "Backends that are",
|
|
8032
|
+
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
8033
|
+
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
8034
|
+
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.",
|
|
8035
|
+
featureChips: [
|
|
8036
|
+
"Authentication",
|
|
8037
|
+
"Secrets Management",
|
|
8038
|
+
"Configuration",
|
|
8039
|
+
"API Console",
|
|
8040
|
+
"Usage",
|
|
8041
|
+
"Logs & Tracing"
|
|
8042
|
+
],
|
|
8043
|
+
url: "",
|
|
8044
|
+
cta: "Visit blocks OS"
|
|
8045
|
+
}
|
|
8046
|
+
];
|
|
8047
|
+
|
|
8048
|
+
// src/pages/login/use-login-carousel.ts
|
|
8049
|
+
function splitAppName(appName) {
|
|
8050
|
+
const idx = appName.indexOf(" ");
|
|
8051
|
+
if (idx === -1) return [appName, ""];
|
|
8052
|
+
return [appName.slice(0, idx), appName.slice(idx + 1)];
|
|
8053
|
+
}
|
|
8054
|
+
var isBlocksProduct = (item) => {
|
|
8055
|
+
return "appName" in item;
|
|
8056
|
+
};
|
|
8057
|
+
function useLoginCarousel({
|
|
8058
|
+
name,
|
|
8059
|
+
carouselItems
|
|
8060
|
+
}) {
|
|
8061
|
+
const active = useMemo(() => {
|
|
8062
|
+
const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
|
|
8063
|
+
return products.find((p) => p.name === name) ?? products[0];
|
|
8064
|
+
}, [name, carouselItems]);
|
|
8065
|
+
const otherProducts = useMemo(
|
|
8066
|
+
() => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
|
|
8067
|
+
[active?.name]
|
|
8068
|
+
);
|
|
8069
|
+
const carouselSource = carouselItems ?? otherProducts;
|
|
8070
|
+
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
8071
|
+
const heroSubtitle = active?.tagline;
|
|
8072
|
+
const features = active?.featureChips;
|
|
8073
|
+
const carouselCards = useMemo(
|
|
8074
|
+
() => [...carouselSource, ...carouselSource],
|
|
8075
|
+
[carouselSource]
|
|
8076
|
+
);
|
|
8077
|
+
return {
|
|
8078
|
+
active,
|
|
8079
|
+
otherProducts,
|
|
8080
|
+
carouselSource,
|
|
8081
|
+
carouselCards,
|
|
8082
|
+
titleHead,
|
|
8083
|
+
titleTail,
|
|
8084
|
+
heroSubtitle,
|
|
8085
|
+
features
|
|
8086
|
+
};
|
|
8087
|
+
}
|
|
8088
|
+
var BlocksLoginPage = ({
|
|
8089
|
+
name,
|
|
8090
|
+
onLogin,
|
|
8091
|
+
isLoading = false,
|
|
8092
|
+
eyebrow = "Blocks \xB7 Core Services",
|
|
8093
|
+
loginLabel = "Log in to your account",
|
|
8094
|
+
docsUrl = "https://docs.seliseblocks.com/",
|
|
8095
|
+
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
8096
|
+
carouselItems
|
|
8097
|
+
}) => {
|
|
8098
|
+
const canvasRef = useRef(null);
|
|
8099
|
+
useAtmosphericCanvas(canvasRef);
|
|
8100
|
+
const {
|
|
8101
|
+
active,
|
|
8102
|
+
carouselSource,
|
|
8103
|
+
carouselCards,
|
|
8104
|
+
titleHead,
|
|
8105
|
+
titleTail,
|
|
8106
|
+
heroSubtitle,
|
|
8107
|
+
features
|
|
8108
|
+
} = useLoginCarousel({ name, carouselItems });
|
|
8047
8109
|
return /* @__PURE__ */ jsxs("div", { className: "blocksLogin-page", children: [
|
|
8048
8110
|
/* @__PURE__ */ jsx("style", { children: blocksLoginStyles }),
|
|
8049
8111
|
/* @__PURE__ */ jsx("div", { className: "grid-bg" }),
|
|
@@ -8320,36 +8382,13 @@ var BlocksLoginPage = ({
|
|
|
8320
8382
|
};
|
|
8321
8383
|
var LoginPage = () => {
|
|
8322
8384
|
const config = useBlocksAppConfigStore((state) => state.getConfig());
|
|
8323
|
-
const
|
|
8324
|
-
const startLogin = async () => {
|
|
8325
|
-
try {
|
|
8326
|
-
if (isStarting) return;
|
|
8327
|
-
setIsStarting(true);
|
|
8328
|
-
const blocksKey = window.process?.env.BLOCKS_X_BLOCKS_KEY;
|
|
8329
|
-
const clientId = window.process?.env.BLOCKS_OIDC_CLIENT_ID;
|
|
8330
|
-
const baseUrl = window.process?.env.userBaseUrl;
|
|
8331
|
-
const redirectUri = `${window.location.origin}/login/callback`;
|
|
8332
|
-
const initiateUrl = `${baseUrl}/api/idp/initiate?x-blocks-key=${blocksKey}&clientId=${clientId}&redirectUri=${redirectUri}`;
|
|
8333
|
-
const headers = {};
|
|
8334
|
-
if (blocksKey) headers["X-Blocks-Key"] = blocksKey;
|
|
8335
|
-
const response = await fetch(initiateUrl.toString(), { headers });
|
|
8336
|
-
const data2 = await response.json();
|
|
8337
|
-
if (data2.redirect_uri) {
|
|
8338
|
-
window.location.href = data2.redirect_uri;
|
|
8339
|
-
} else {
|
|
8340
|
-
setIsStarting(false);
|
|
8341
|
-
}
|
|
8342
|
-
} catch (error) {
|
|
8343
|
-
console.error("Error initiating login:", error);
|
|
8344
|
-
setIsStarting(false);
|
|
8345
|
-
}
|
|
8346
|
-
};
|
|
8385
|
+
const { start, isLoading } = useLogin();
|
|
8347
8386
|
return /* @__PURE__ */ jsx(
|
|
8348
8387
|
BlocksLoginPage,
|
|
8349
8388
|
{
|
|
8350
8389
|
name: config.name,
|
|
8351
|
-
onLogin:
|
|
8352
|
-
isLoading
|
|
8390
|
+
onLogin: start,
|
|
8391
|
+
isLoading,
|
|
8353
8392
|
carouselItems: BLOCKS_PRODUCTS
|
|
8354
8393
|
}
|
|
8355
8394
|
);
|
|
@@ -8427,7 +8466,7 @@ var DefaultDoc = () => {
|
|
|
8427
8466
|
function useCreateProjectRedirect() {
|
|
8428
8467
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
8429
8468
|
const navigate = useNavigate();
|
|
8430
|
-
const osApp = filteredAppSwitcherData.find((app) => app.
|
|
8469
|
+
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
8431
8470
|
const { isFetching, isReady, redirect } = usePrefetchRedirect({
|
|
8432
8471
|
clientId: osApp ? getRuntimeEnv(osApp.clientId) : "",
|
|
8433
8472
|
redirectUri: osApp ? getRuntimeEnv(osApp.redirectUri) : "",
|
|
@@ -8521,7 +8560,7 @@ function useProjectOverviewRedirect({
|
|
|
8521
8560
|
}) {
|
|
8522
8561
|
const navigate = useNavigate();
|
|
8523
8562
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
8524
|
-
const osApp = filteredAppSwitcherData.find((app) => app.
|
|
8563
|
+
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
8525
8564
|
const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
|
|
8526
8565
|
const { isFetching, isReady, redirect } = usePrefetchRedirect({
|
|
8527
8566
|
clientId: osApp ? getRuntimeEnv(osApp.clientId) : "",
|
|
@@ -8615,7 +8654,7 @@ var ProjectCard = ({ project, projects }) => {
|
|
|
8615
8654
|
className: "flex items-center gap-1 shrink-0",
|
|
8616
8655
|
children: [
|
|
8617
8656
|
/* @__PURE__ */ jsx(UsersRound, { size: 16 }),
|
|
8618
|
-
"Shared
|
|
8657
|
+
"Shared"
|
|
8619
8658
|
]
|
|
8620
8659
|
}
|
|
8621
8660
|
)
|
|
@@ -9825,14 +9864,14 @@ function SidebarMenuDesktop({
|
|
|
9825
9864
|
{
|
|
9826
9865
|
className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-all md:flex ${isSidebarOpen ? "min-w-60" : "w-14"}`,
|
|
9827
9866
|
children: [
|
|
9828
|
-
/* @__PURE__ */ jsxs("div", { className: "flex h-
|
|
9867
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
|
|
9829
9868
|
/* @__PURE__ */ jsx(
|
|
9830
9869
|
Link,
|
|
9831
9870
|
{
|
|
9832
9871
|
to: "console",
|
|
9833
9872
|
className: cn(
|
|
9834
9873
|
"relative inline-block cursor-pointer overflow-hidden transition-all",
|
|
9835
|
-
isSidebarOpen ? "h-9 w-
|
|
9874
|
+
isSidebarOpen ? "h-9 w-[72px]" : "h-8 w-8"
|
|
9836
9875
|
),
|
|
9837
9876
|
children: /* @__PURE__ */ jsx(
|
|
9838
9877
|
RenderAlternatively,
|
|
@@ -11755,5 +11794,5 @@ var TablePagination2 = React8.forwardRef(
|
|
|
11755
11794
|
TablePagination2.displayName = "TablePagination";
|
|
11756
11795
|
|
|
11757
11796
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectCliSnippet, ProjectDetail, ProjectList, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useSortQueryParams, useWizardStepper };
|
|
11758
|
-
//# sourceMappingURL=chunk-
|
|
11759
|
-
//# sourceMappingURL=chunk-
|
|
11797
|
+
//# sourceMappingURL=chunk-XMM33UUZ.js.map
|
|
11798
|
+
//# sourceMappingURL=chunk-XMM33UUZ.js.map
|