@axiom-lattice/protocols 7.4.0 → 7.5.0
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +18 -0
- package/dist/index.d.mts +1143 -3
- package/dist/index.d.ts +1143 -3
- package/dist/index.js +1519 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1489 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AuthCssContract.ts +49 -0
- package/src/PlatformBrandingFields.ts +1562 -0
- package/src/PlatformSettingsProtocol.ts +98 -0
- package/src/__tests__/PlatformBrandingFields.test.ts +178 -0
- package/src/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1247,6 +1247,1384 @@ function observabilityDashboardElementKey(provider) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
var LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION = 3;
|
|
1249
1249
|
|
|
1250
|
+
// src/PlatformBrandingFields.ts
|
|
1251
|
+
var AUTH_SURFACE_KINDS = [
|
|
1252
|
+
"login",
|
|
1253
|
+
"register",
|
|
1254
|
+
"invite",
|
|
1255
|
+
"oidc-email",
|
|
1256
|
+
"tenant-select",
|
|
1257
|
+
"platform-admin-login"
|
|
1258
|
+
];
|
|
1259
|
+
var LOGIN_LAYOUT_IDS = [
|
|
1260
|
+
"centered",
|
|
1261
|
+
"split-brand",
|
|
1262
|
+
"split-story",
|
|
1263
|
+
"split-showcase",
|
|
1264
|
+
"centered-editorial",
|
|
1265
|
+
"full-bleed"
|
|
1266
|
+
];
|
|
1267
|
+
var AUTH_FONT_FAMILY_IDS = ["system", "inter", "serif", "mono"];
|
|
1268
|
+
var AUTH_FONT_FAMILIES = {
|
|
1269
|
+
system: {
|
|
1270
|
+
labelKey: "platformAdmin.settings.branding.font.system",
|
|
1271
|
+
stack: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
1272
|
+
},
|
|
1273
|
+
inter: {
|
|
1274
|
+
labelKey: "platformAdmin.settings.branding.font.inter",
|
|
1275
|
+
stack: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
1276
|
+
},
|
|
1277
|
+
serif: {
|
|
1278
|
+
labelKey: "platformAdmin.settings.branding.font.serif",
|
|
1279
|
+
stack: 'Georgia, "Times New Roman", Times, serif'
|
|
1280
|
+
},
|
|
1281
|
+
mono: {
|
|
1282
|
+
labelKey: "platformAdmin.settings.branding.font.mono",
|
|
1283
|
+
stack: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace'
|
|
1284
|
+
}
|
|
1285
|
+
};
|
|
1286
|
+
var AUTH_SLOT_IDS = [
|
|
1287
|
+
"logo",
|
|
1288
|
+
"eyebrow",
|
|
1289
|
+
"headline",
|
|
1290
|
+
"description",
|
|
1291
|
+
"points",
|
|
1292
|
+
"stats",
|
|
1293
|
+
"quote",
|
|
1294
|
+
"trustLogos",
|
|
1295
|
+
"productShot",
|
|
1296
|
+
"media",
|
|
1297
|
+
"footerNote",
|
|
1298
|
+
"form"
|
|
1299
|
+
];
|
|
1300
|
+
var PLATFORM_BRANDING_FIELDS = {
|
|
1301
|
+
brandName: { kind: "text", maxLength: 80 },
|
|
1302
|
+
logoUrl: { kind: "asset-url" },
|
|
1303
|
+
faviconUrl: { kind: "asset-url" },
|
|
1304
|
+
primaryColor: { kind: "color" },
|
|
1305
|
+
backgroundColor: { kind: "color" },
|
|
1306
|
+
loginTitle: { kind: "text", maxLength: 200 },
|
|
1307
|
+
loginSubtitle: { kind: "text", maxLength: 200 },
|
|
1308
|
+
footerNote: {
|
|
1309
|
+
kind: "text",
|
|
1310
|
+
maxLength: 160,
|
|
1311
|
+
layouts: ["centered", "centered-editorial", "full-bleed"]
|
|
1312
|
+
},
|
|
1313
|
+
customCss: { kind: "css", maxLength: 65536 },
|
|
1314
|
+
loginLayout: { kind: "enum", values: LOGIN_LAYOUT_IDS },
|
|
1315
|
+
cardStyle: {
|
|
1316
|
+
kind: "enum",
|
|
1317
|
+
values: ["card", "plain", "glass", "outline"]
|
|
1318
|
+
},
|
|
1319
|
+
cardPosition: {
|
|
1320
|
+
kind: "enum",
|
|
1321
|
+
values: ["center", "left", "right"],
|
|
1322
|
+
layouts: ["full-bleed"]
|
|
1323
|
+
},
|
|
1324
|
+
surfaceColor: { kind: "color" },
|
|
1325
|
+
textColor: { kind: "color" },
|
|
1326
|
+
textSecondaryColor: { kind: "color" },
|
|
1327
|
+
borderColor: { kind: "color" },
|
|
1328
|
+
radius: { kind: "integer", min: 0, max: 40 },
|
|
1329
|
+
fontFamily: { kind: "enum", values: AUTH_FONT_FAMILY_IDS },
|
|
1330
|
+
fieldStyle: {
|
|
1331
|
+
kind: "enum",
|
|
1332
|
+
values: ["soft", "outline", "filled", "underline", "none"]
|
|
1333
|
+
},
|
|
1334
|
+
logoSize: { kind: "integer", min: 32, max: 96 },
|
|
1335
|
+
titleSize: { kind: "integer", min: 18, max: 56 },
|
|
1336
|
+
bodySize: { kind: "integer", min: 12, max: 20 },
|
|
1337
|
+
pagePadding: { kind: "integer", min: 12, max: 48 },
|
|
1338
|
+
cardPadding: { kind: "integer", min: 16, max: 48 },
|
|
1339
|
+
cardWidth: { kind: "integer", min: 320, max: 560 },
|
|
1340
|
+
cardShadow: {
|
|
1341
|
+
kind: "enum",
|
|
1342
|
+
values: ["none", "soft", "floating", "hard"]
|
|
1343
|
+
},
|
|
1344
|
+
cardEffect: {
|
|
1345
|
+
kind: "enum",
|
|
1346
|
+
values: ["none", "gradient-border", "inner-glow"]
|
|
1347
|
+
},
|
|
1348
|
+
logoStyle: { kind: "enum", values: ["plain", "badge"] },
|
|
1349
|
+
formDensity: {
|
|
1350
|
+
kind: "enum",
|
|
1351
|
+
values: ["compact", "comfortable", "airy"]
|
|
1352
|
+
},
|
|
1353
|
+
ssoLayout: { kind: "enum", values: ["stack", "inline"] },
|
|
1354
|
+
backgroundPattern: {
|
|
1355
|
+
kind: "enum",
|
|
1356
|
+
values: ["none", "grid", "dots", "aurora"],
|
|
1357
|
+
layouts: ["centered", "full-bleed"]
|
|
1358
|
+
},
|
|
1359
|
+
backgroundTreatment: {
|
|
1360
|
+
kind: "enum",
|
|
1361
|
+
values: ["none", "vignette", "grain", "duotone"],
|
|
1362
|
+
layouts: ["centered", "full-bleed"]
|
|
1363
|
+
},
|
|
1364
|
+
imageFit: { kind: "enum", values: ["cover", "contain"] },
|
|
1365
|
+
imagePosition: {
|
|
1366
|
+
kind: "enum",
|
|
1367
|
+
values: ["center", "top", "bottom", "left", "right"]
|
|
1368
|
+
},
|
|
1369
|
+
imageTreatment: {
|
|
1370
|
+
kind: "enum",
|
|
1371
|
+
values: ["none", "grayscale", "duotone"]
|
|
1372
|
+
},
|
|
1373
|
+
panelPosition: {
|
|
1374
|
+
kind: "enum",
|
|
1375
|
+
values: ["left", "right"],
|
|
1376
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1377
|
+
},
|
|
1378
|
+
panelContentAlign: {
|
|
1379
|
+
kind: "enum",
|
|
1380
|
+
values: ["left", "center"],
|
|
1381
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1382
|
+
},
|
|
1383
|
+
panelVisual: {
|
|
1384
|
+
kind: "enum",
|
|
1385
|
+
values: ["orbit", "mesh", "waves", "aurora", "topography", "none"],
|
|
1386
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1387
|
+
},
|
|
1388
|
+
panelTitle: {
|
|
1389
|
+
kind: "text",
|
|
1390
|
+
maxLength: 120,
|
|
1391
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1392
|
+
},
|
|
1393
|
+
panelDescription: {
|
|
1394
|
+
kind: "text",
|
|
1395
|
+
maxLength: 240,
|
|
1396
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1397
|
+
},
|
|
1398
|
+
panelPoint1: {
|
|
1399
|
+
kind: "text",
|
|
1400
|
+
maxLength: 60,
|
|
1401
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1402
|
+
},
|
|
1403
|
+
panelPoint2: {
|
|
1404
|
+
kind: "text",
|
|
1405
|
+
maxLength: 60,
|
|
1406
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1407
|
+
},
|
|
1408
|
+
panelPoint3: {
|
|
1409
|
+
kind: "text",
|
|
1410
|
+
maxLength: 60,
|
|
1411
|
+
layouts: ["split-brand", "split-showcase"]
|
|
1412
|
+
},
|
|
1413
|
+
panelImageUrl: { kind: "asset-url", layouts: ["split-brand"] },
|
|
1414
|
+
panelVideoUrl: { kind: "video-url", layouts: ["split-brand"] },
|
|
1415
|
+
panelProductImageUrl: {
|
|
1416
|
+
kind: "asset-url",
|
|
1417
|
+
layouts: ["split-showcase"]
|
|
1418
|
+
},
|
|
1419
|
+
panelProductImageAlt: {
|
|
1420
|
+
kind: "text",
|
|
1421
|
+
maxLength: 120,
|
|
1422
|
+
layouts: ["split-showcase"]
|
|
1423
|
+
},
|
|
1424
|
+
panelEyebrow: {
|
|
1425
|
+
kind: "text",
|
|
1426
|
+
maxLength: 80,
|
|
1427
|
+
layouts: ["split-story", "split-showcase", "centered-editorial"]
|
|
1428
|
+
},
|
|
1429
|
+
panelStat1Value: { kind: "text", maxLength: 20, layouts: ["split-story"] },
|
|
1430
|
+
panelStat1Label: { kind: "text", maxLength: 40, layouts: ["split-story"] },
|
|
1431
|
+
panelStat2Value: { kind: "text", maxLength: 20, layouts: ["split-story"] },
|
|
1432
|
+
panelStat2Label: { kind: "text", maxLength: 40, layouts: ["split-story"] },
|
|
1433
|
+
panelStat3Value: { kind: "text", maxLength: 20, layouts: ["split-story"] },
|
|
1434
|
+
panelStat3Label: { kind: "text", maxLength: 40, layouts: ["split-story"] },
|
|
1435
|
+
panelQuote: { kind: "text", maxLength: 240, layouts: ["split-story"] },
|
|
1436
|
+
panelQuoteAuthor: { kind: "text", maxLength: 80, layouts: ["split-story"] },
|
|
1437
|
+
panelQuoteRole: { kind: "text", maxLength: 80, layouts: ["split-story"] },
|
|
1438
|
+
panelTrustLogo1: { kind: "asset-url", layouts: ["split-story", "split-showcase", "centered-editorial"] },
|
|
1439
|
+
panelTrustLogo2: { kind: "asset-url", layouts: ["split-story", "split-showcase", "centered-editorial"] },
|
|
1440
|
+
panelTrustLogo3: { kind: "asset-url", layouts: ["split-story", "split-showcase", "centered-editorial"] },
|
|
1441
|
+
panelTrustLogo4: { kind: "asset-url", layouts: ["split-story", "split-showcase", "centered-editorial"] },
|
|
1442
|
+
backgroundImageUrl: {
|
|
1443
|
+
kind: "asset-url",
|
|
1444
|
+
layouts: ["centered", "full-bleed"]
|
|
1445
|
+
},
|
|
1446
|
+
backgroundVideoUrl: { kind: "video-url", layouts: ["full-bleed"] },
|
|
1447
|
+
backgroundOverlayColor: {
|
|
1448
|
+
kind: "color",
|
|
1449
|
+
layouts: ["centered", "full-bleed"]
|
|
1450
|
+
},
|
|
1451
|
+
backgroundOverlayOpacity: {
|
|
1452
|
+
kind: "percent",
|
|
1453
|
+
min: 0,
|
|
1454
|
+
max: 100,
|
|
1455
|
+
layouts: ["centered", "full-bleed"]
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
var PLATFORM_BRANDING_FIELD_KEYS = Object.keys(
|
|
1459
|
+
PLATFORM_BRANDING_FIELDS
|
|
1460
|
+
);
|
|
1461
|
+
var AUTH_SLOT_REGISTRY = {
|
|
1462
|
+
logo: {
|
|
1463
|
+
fields: ["logoUrl"],
|
|
1464
|
+
layouts: LOGIN_LAYOUT_IDS,
|
|
1465
|
+
renderer: "LogoSlot",
|
|
1466
|
+
empty: "hide"
|
|
1467
|
+
},
|
|
1468
|
+
eyebrow: {
|
|
1469
|
+
fields: ["panelEyebrow"],
|
|
1470
|
+
layouts: ["split-story", "split-showcase", "centered-editorial"],
|
|
1471
|
+
renderer: "EyebrowSlot",
|
|
1472
|
+
empty: "hide"
|
|
1473
|
+
},
|
|
1474
|
+
headline: {
|
|
1475
|
+
fields: ["panelTitle", "loginTitle", "brandName"],
|
|
1476
|
+
layouts: LOGIN_LAYOUT_IDS,
|
|
1477
|
+
renderer: "HeadlineSlot",
|
|
1478
|
+
empty: "hide"
|
|
1479
|
+
},
|
|
1480
|
+
description: {
|
|
1481
|
+
fields: ["panelDescription", "loginSubtitle"],
|
|
1482
|
+
layouts: LOGIN_LAYOUT_IDS,
|
|
1483
|
+
renderer: "DescriptionSlot",
|
|
1484
|
+
empty: "hide"
|
|
1485
|
+
},
|
|
1486
|
+
points: {
|
|
1487
|
+
fields: ["panelPoint1", "panelPoint2", "panelPoint3"],
|
|
1488
|
+
layouts: ["split-brand", "split-story", "split-showcase"],
|
|
1489
|
+
renderer: "PointsSlot",
|
|
1490
|
+
empty: "hide"
|
|
1491
|
+
},
|
|
1492
|
+
stats: {
|
|
1493
|
+
fields: [
|
|
1494
|
+
"panelStat1Value",
|
|
1495
|
+
"panelStat1Label",
|
|
1496
|
+
"panelStat2Value",
|
|
1497
|
+
"panelStat2Label",
|
|
1498
|
+
"panelStat3Value",
|
|
1499
|
+
"panelStat3Label"
|
|
1500
|
+
],
|
|
1501
|
+
layouts: ["split-story"],
|
|
1502
|
+
renderer: "StatsSlot",
|
|
1503
|
+
empty: "hide"
|
|
1504
|
+
},
|
|
1505
|
+
quote: {
|
|
1506
|
+
fields: ["panelQuote", "panelQuoteAuthor", "panelQuoteRole"],
|
|
1507
|
+
layouts: ["split-story"],
|
|
1508
|
+
renderer: "QuoteSlot",
|
|
1509
|
+
empty: "hide"
|
|
1510
|
+
},
|
|
1511
|
+
trustLogos: {
|
|
1512
|
+
fields: [
|
|
1513
|
+
"panelTrustLogo1",
|
|
1514
|
+
"panelTrustLogo2",
|
|
1515
|
+
"panelTrustLogo3",
|
|
1516
|
+
"panelTrustLogo4"
|
|
1517
|
+
],
|
|
1518
|
+
layouts: ["split-story", "split-showcase", "centered-editorial"],
|
|
1519
|
+
renderer: "TrustLogosSlot",
|
|
1520
|
+
empty: "hide"
|
|
1521
|
+
},
|
|
1522
|
+
productShot: {
|
|
1523
|
+
fields: ["panelProductImageUrl", "panelProductImageAlt"],
|
|
1524
|
+
layouts: ["split-showcase"],
|
|
1525
|
+
renderer: "ProductShotSlot",
|
|
1526
|
+
empty: "hide"
|
|
1527
|
+
},
|
|
1528
|
+
media: {
|
|
1529
|
+
fields: [
|
|
1530
|
+
"panelImageUrl",
|
|
1531
|
+
"panelVideoUrl",
|
|
1532
|
+
"backgroundImageUrl",
|
|
1533
|
+
"backgroundVideoUrl"
|
|
1534
|
+
],
|
|
1535
|
+
layouts: ["split-brand", "split-story", "full-bleed"],
|
|
1536
|
+
renderer: "MediaSlot",
|
|
1537
|
+
empty: "hide"
|
|
1538
|
+
},
|
|
1539
|
+
footerNote: {
|
|
1540
|
+
fields: ["footerNote"],
|
|
1541
|
+
layouts: ["centered", "centered-editorial", "full-bleed"],
|
|
1542
|
+
renderer: "FooterNoteSlot",
|
|
1543
|
+
empty: "hide"
|
|
1544
|
+
},
|
|
1545
|
+
form: {
|
|
1546
|
+
fields: [],
|
|
1547
|
+
layouts: LOGIN_LAYOUT_IDS,
|
|
1548
|
+
renderer: "FormSlot",
|
|
1549
|
+
required: true,
|
|
1550
|
+
empty: "always"
|
|
1551
|
+
}
|
|
1552
|
+
};
|
|
1553
|
+
var PLATFORM_BRANDING_FIELD_GROUPS = {
|
|
1554
|
+
brandName: "brand",
|
|
1555
|
+
logoUrl: "brand",
|
|
1556
|
+
faviconUrl: "brand",
|
|
1557
|
+
primaryColor: "color",
|
|
1558
|
+
backgroundColor: "color",
|
|
1559
|
+
loginTitle: "content",
|
|
1560
|
+
loginSubtitle: "content",
|
|
1561
|
+
footerNote: "content",
|
|
1562
|
+
customCss: "advanced",
|
|
1563
|
+
loginLayout: "layout",
|
|
1564
|
+
cardStyle: "surface",
|
|
1565
|
+
cardPosition: "layout",
|
|
1566
|
+
surfaceColor: "color",
|
|
1567
|
+
textColor: "color",
|
|
1568
|
+
textSecondaryColor: "color",
|
|
1569
|
+
borderColor: "color",
|
|
1570
|
+
radius: "surface",
|
|
1571
|
+
fontFamily: "type",
|
|
1572
|
+
fieldStyle: "surface",
|
|
1573
|
+
logoSize: "brand",
|
|
1574
|
+
titleSize: "type",
|
|
1575
|
+
bodySize: "type",
|
|
1576
|
+
pagePadding: "spacing",
|
|
1577
|
+
cardPadding: "spacing",
|
|
1578
|
+
cardWidth: "spacing",
|
|
1579
|
+
cardShadow: "surface",
|
|
1580
|
+
cardEffect: "surface",
|
|
1581
|
+
logoStyle: "brand",
|
|
1582
|
+
formDensity: "spacing",
|
|
1583
|
+
ssoLayout: "spacing",
|
|
1584
|
+
backgroundPattern: "background",
|
|
1585
|
+
backgroundTreatment: "background",
|
|
1586
|
+
imageFit: "media",
|
|
1587
|
+
imagePosition: "media",
|
|
1588
|
+
imageTreatment: "media",
|
|
1589
|
+
panelPosition: "layout",
|
|
1590
|
+
panelContentAlign: "layout",
|
|
1591
|
+
panelVisual: "layout",
|
|
1592
|
+
panelTitle: "panel",
|
|
1593
|
+
panelDescription: "panel",
|
|
1594
|
+
panelPoint1: "panel",
|
|
1595
|
+
panelPoint2: "panel",
|
|
1596
|
+
panelPoint3: "panel",
|
|
1597
|
+
panelImageUrl: "panel",
|
|
1598
|
+
panelVideoUrl: "panel",
|
|
1599
|
+
panelEyebrow: "panel",
|
|
1600
|
+
panelStat1Value: "panel",
|
|
1601
|
+
panelStat1Label: "panel",
|
|
1602
|
+
panelStat2Value: "panel",
|
|
1603
|
+
panelStat2Label: "panel",
|
|
1604
|
+
panelStat3Value: "panel",
|
|
1605
|
+
panelStat3Label: "panel",
|
|
1606
|
+
panelQuote: "panel",
|
|
1607
|
+
panelQuoteAuthor: "panel",
|
|
1608
|
+
panelQuoteRole: "panel",
|
|
1609
|
+
panelTrustLogo1: "panel",
|
|
1610
|
+
panelTrustLogo2: "panel",
|
|
1611
|
+
panelTrustLogo3: "panel",
|
|
1612
|
+
panelTrustLogo4: "panel",
|
|
1613
|
+
panelProductImageUrl: "panel",
|
|
1614
|
+
panelProductImageAlt: "panel",
|
|
1615
|
+
backgroundImageUrl: "background",
|
|
1616
|
+
backgroundVideoUrl: "background",
|
|
1617
|
+
backgroundOverlayColor: "background",
|
|
1618
|
+
backgroundOverlayOpacity: "background"
|
|
1619
|
+
};
|
|
1620
|
+
var PLATFORM_BRANDING_FIELD_GROUP_ORDER = [
|
|
1621
|
+
"layout",
|
|
1622
|
+
"brand",
|
|
1623
|
+
"color",
|
|
1624
|
+
"type",
|
|
1625
|
+
"spacing",
|
|
1626
|
+
"surface",
|
|
1627
|
+
"background",
|
|
1628
|
+
"media",
|
|
1629
|
+
"panel",
|
|
1630
|
+
"content",
|
|
1631
|
+
"advanced"
|
|
1632
|
+
];
|
|
1633
|
+
var AUTH_BRANDING_PRESET_RESET_FIELDS = [
|
|
1634
|
+
"loginLayout",
|
|
1635
|
+
"cardStyle",
|
|
1636
|
+
"cardPosition",
|
|
1637
|
+
"surfaceColor",
|
|
1638
|
+
"primaryColor",
|
|
1639
|
+
"backgroundColor",
|
|
1640
|
+
"textColor",
|
|
1641
|
+
"textSecondaryColor",
|
|
1642
|
+
"borderColor",
|
|
1643
|
+
"radius",
|
|
1644
|
+
"fontFamily",
|
|
1645
|
+
"fieldStyle",
|
|
1646
|
+
"logoSize",
|
|
1647
|
+
"titleSize",
|
|
1648
|
+
"bodySize",
|
|
1649
|
+
"pagePadding",
|
|
1650
|
+
"cardPadding",
|
|
1651
|
+
"cardWidth",
|
|
1652
|
+
"cardShadow",
|
|
1653
|
+
"cardEffect",
|
|
1654
|
+
"logoStyle",
|
|
1655
|
+
"formDensity",
|
|
1656
|
+
"ssoLayout",
|
|
1657
|
+
"backgroundPattern",
|
|
1658
|
+
"backgroundTreatment",
|
|
1659
|
+
"imageFit",
|
|
1660
|
+
"imagePosition",
|
|
1661
|
+
"imageTreatment",
|
|
1662
|
+
"panelPosition",
|
|
1663
|
+
"panelContentAlign",
|
|
1664
|
+
"panelVisual",
|
|
1665
|
+
"backgroundImageUrl",
|
|
1666
|
+
"backgroundVideoUrl",
|
|
1667
|
+
"backgroundOverlayColor",
|
|
1668
|
+
"backgroundOverlayOpacity",
|
|
1669
|
+
"panelImageUrl",
|
|
1670
|
+
"panelVideoUrl"
|
|
1671
|
+
];
|
|
1672
|
+
function keysOfKind(kind) {
|
|
1673
|
+
return PLATFORM_BRANDING_FIELD_KEYS.filter(
|
|
1674
|
+
(key) => PLATFORM_BRANDING_FIELDS[key].kind === kind
|
|
1675
|
+
);
|
|
1676
|
+
}
|
|
1677
|
+
var BRANDING_TEXT_KEYS = keysOfKind("text");
|
|
1678
|
+
var BRANDING_ASSET_URL_KEYS = keysOfKind("asset-url");
|
|
1679
|
+
var BRANDING_VIDEO_URL_KEYS = keysOfKind("video-url");
|
|
1680
|
+
var BRANDING_COLOR_KEYS = keysOfKind("color");
|
|
1681
|
+
var BRANDING_CSS_KEYS = keysOfKind("css");
|
|
1682
|
+
var BRANDING_ENUM_KEYS = keysOfKind("enum");
|
|
1683
|
+
var BRANDING_PERCENT_KEYS = keysOfKind("percent");
|
|
1684
|
+
var BRANDING_INTEGER_KEYS = keysOfKind("integer");
|
|
1685
|
+
var DEFAULT_LOGIN_LAYOUT = "centered";
|
|
1686
|
+
var BRAND_PANEL_SUPPORTS = [
|
|
1687
|
+
"login",
|
|
1688
|
+
"register",
|
|
1689
|
+
"platform-admin-login"
|
|
1690
|
+
];
|
|
1691
|
+
var LOGIN_LAYOUTS = {
|
|
1692
|
+
centered: {
|
|
1693
|
+
id: "centered",
|
|
1694
|
+
labelKey: "platformAdmin.settings.branding.layout.centered",
|
|
1695
|
+
supports: AUTH_SURFACE_KINDS,
|
|
1696
|
+
slots: ["logo", "headline", "description", "footerNote", "form"],
|
|
1697
|
+
fields: [
|
|
1698
|
+
"backgroundImageUrl",
|
|
1699
|
+
"backgroundPattern",
|
|
1700
|
+
"backgroundTreatment",
|
|
1701
|
+
"backgroundOverlayColor",
|
|
1702
|
+
"backgroundOverlayOpacity",
|
|
1703
|
+
"footerNote"
|
|
1704
|
+
],
|
|
1705
|
+
parts: [
|
|
1706
|
+
"page",
|
|
1707
|
+
"auth-panel",
|
|
1708
|
+
"card",
|
|
1709
|
+
"header",
|
|
1710
|
+
"logo",
|
|
1711
|
+
"logo-image",
|
|
1712
|
+
"title",
|
|
1713
|
+
"subtitle",
|
|
1714
|
+
"sso-button",
|
|
1715
|
+
"divider",
|
|
1716
|
+
"form",
|
|
1717
|
+
"field",
|
|
1718
|
+
"input",
|
|
1719
|
+
"submit",
|
|
1720
|
+
"alert",
|
|
1721
|
+
"footer",
|
|
1722
|
+
"link",
|
|
1723
|
+
"cancel"
|
|
1724
|
+
]
|
|
1725
|
+
},
|
|
1726
|
+
"split-brand": {
|
|
1727
|
+
id: "split-brand",
|
|
1728
|
+
labelKey: "platformAdmin.settings.branding.layout.splitBrand",
|
|
1729
|
+
supports: BRAND_PANEL_SUPPORTS,
|
|
1730
|
+
slots: ["logo", "headline", "description", "points", "media", "form"],
|
|
1731
|
+
fields: [
|
|
1732
|
+
"panelPosition",
|
|
1733
|
+
"panelContentAlign",
|
|
1734
|
+
"panelVisual",
|
|
1735
|
+
"panelTitle",
|
|
1736
|
+
"panelDescription",
|
|
1737
|
+
"panelPoint1",
|
|
1738
|
+
"panelPoint2",
|
|
1739
|
+
"panelPoint3",
|
|
1740
|
+
"panelImageUrl",
|
|
1741
|
+
"panelVideoUrl"
|
|
1742
|
+
],
|
|
1743
|
+
parts: [
|
|
1744
|
+
"page",
|
|
1745
|
+
"auth-layout",
|
|
1746
|
+
"brand-panel",
|
|
1747
|
+
"brand-name",
|
|
1748
|
+
"panel-title",
|
|
1749
|
+
"panel-description",
|
|
1750
|
+
"panel-points",
|
|
1751
|
+
"panel-point",
|
|
1752
|
+
"panel-graphic",
|
|
1753
|
+
"panel-image",
|
|
1754
|
+
"panel-video",
|
|
1755
|
+
"auth-panel",
|
|
1756
|
+
"card"
|
|
1757
|
+
]
|
|
1758
|
+
},
|
|
1759
|
+
"split-story": {
|
|
1760
|
+
id: "split-story",
|
|
1761
|
+
labelKey: "platformAdmin.settings.branding.layout.splitStory",
|
|
1762
|
+
supports: BRAND_PANEL_SUPPORTS,
|
|
1763
|
+
slots: [
|
|
1764
|
+
"logo",
|
|
1765
|
+
"eyebrow",
|
|
1766
|
+
"headline",
|
|
1767
|
+
"description",
|
|
1768
|
+
"points",
|
|
1769
|
+
"stats",
|
|
1770
|
+
"quote",
|
|
1771
|
+
"trustLogos",
|
|
1772
|
+
"media",
|
|
1773
|
+
"form"
|
|
1774
|
+
],
|
|
1775
|
+
fields: [
|
|
1776
|
+
"panelPosition",
|
|
1777
|
+
"panelContentAlign",
|
|
1778
|
+
"panelVisual",
|
|
1779
|
+
"panelEyebrow",
|
|
1780
|
+
"panelTitle",
|
|
1781
|
+
"panelDescription",
|
|
1782
|
+
"panelPoint1",
|
|
1783
|
+
"panelPoint2",
|
|
1784
|
+
"panelPoint3",
|
|
1785
|
+
"panelStat1Value",
|
|
1786
|
+
"panelStat1Label",
|
|
1787
|
+
"panelStat2Value",
|
|
1788
|
+
"panelStat2Label",
|
|
1789
|
+
"panelStat3Value",
|
|
1790
|
+
"panelStat3Label",
|
|
1791
|
+
"panelQuote",
|
|
1792
|
+
"panelQuoteAuthor",
|
|
1793
|
+
"panelQuoteRole",
|
|
1794
|
+
"panelTrustLogo1",
|
|
1795
|
+
"panelTrustLogo2",
|
|
1796
|
+
"panelTrustLogo3",
|
|
1797
|
+
"panelTrustLogo4",
|
|
1798
|
+
"panelImageUrl",
|
|
1799
|
+
"panelVideoUrl"
|
|
1800
|
+
],
|
|
1801
|
+
parts: [
|
|
1802
|
+
"page",
|
|
1803
|
+
"auth-layout",
|
|
1804
|
+
"story-panel",
|
|
1805
|
+
"story-panel-content",
|
|
1806
|
+
"story-eyebrow",
|
|
1807
|
+
"story-stats",
|
|
1808
|
+
"story-stat",
|
|
1809
|
+
"story-stat-value",
|
|
1810
|
+
"story-stat-label",
|
|
1811
|
+
"story-testimonial",
|
|
1812
|
+
"story-quote",
|
|
1813
|
+
"story-author",
|
|
1814
|
+
"story-role",
|
|
1815
|
+
"story-trust",
|
|
1816
|
+
"story-trust-logo",
|
|
1817
|
+
"brand-name",
|
|
1818
|
+
"panel-title",
|
|
1819
|
+
"panel-description",
|
|
1820
|
+
"panel-points",
|
|
1821
|
+
"panel-point",
|
|
1822
|
+
"panel-graphic",
|
|
1823
|
+
"panel-image",
|
|
1824
|
+
"panel-video",
|
|
1825
|
+
"auth-panel",
|
|
1826
|
+
"card"
|
|
1827
|
+
]
|
|
1828
|
+
},
|
|
1829
|
+
"centered-editorial": {
|
|
1830
|
+
id: "centered-editorial",
|
|
1831
|
+
labelKey: "platformAdmin.settings.branding.layout.centeredEditorial",
|
|
1832
|
+
supports: AUTH_SURFACE_KINDS,
|
|
1833
|
+
slots: ["logo", "eyebrow", "headline", "description", "footerNote", "form", "trustLogos"],
|
|
1834
|
+
fields: [
|
|
1835
|
+
"panelEyebrow",
|
|
1836
|
+
"footerNote",
|
|
1837
|
+
"panelTrustLogo1",
|
|
1838
|
+
"panelTrustLogo2",
|
|
1839
|
+
"panelTrustLogo3",
|
|
1840
|
+
"panelTrustLogo4"
|
|
1841
|
+
],
|
|
1842
|
+
parts: [
|
|
1843
|
+
"page",
|
|
1844
|
+
"auth-panel",
|
|
1845
|
+
"centered-editorial-header",
|
|
1846
|
+
"editorial-eyebrow",
|
|
1847
|
+
"editorial-headline",
|
|
1848
|
+
"editorial-description",
|
|
1849
|
+
"card",
|
|
1850
|
+
"header",
|
|
1851
|
+
"logo",
|
|
1852
|
+
"logo-image",
|
|
1853
|
+
"title",
|
|
1854
|
+
"subtitle",
|
|
1855
|
+
"form",
|
|
1856
|
+
"field",
|
|
1857
|
+
"input",
|
|
1858
|
+
"submit",
|
|
1859
|
+
"alert",
|
|
1860
|
+
"footer",
|
|
1861
|
+
"link",
|
|
1862
|
+
"cancel",
|
|
1863
|
+
"story-trust",
|
|
1864
|
+
"story-trust-logo"
|
|
1865
|
+
]
|
|
1866
|
+
},
|
|
1867
|
+
"split-showcase": {
|
|
1868
|
+
id: "split-showcase",
|
|
1869
|
+
labelKey: "platformAdmin.settings.branding.layout.splitShowcase",
|
|
1870
|
+
supports: BRAND_PANEL_SUPPORTS,
|
|
1871
|
+
slots: [
|
|
1872
|
+
"logo",
|
|
1873
|
+
"eyebrow",
|
|
1874
|
+
"headline",
|
|
1875
|
+
"description",
|
|
1876
|
+
"points",
|
|
1877
|
+
"productShot",
|
|
1878
|
+
"trustLogos",
|
|
1879
|
+
"form"
|
|
1880
|
+
],
|
|
1881
|
+
fields: [
|
|
1882
|
+
"panelPosition",
|
|
1883
|
+
"panelContentAlign",
|
|
1884
|
+
"panelVisual",
|
|
1885
|
+
"panelEyebrow",
|
|
1886
|
+
"panelTitle",
|
|
1887
|
+
"panelDescription",
|
|
1888
|
+
"panelPoint1",
|
|
1889
|
+
"panelPoint2",
|
|
1890
|
+
"panelPoint3",
|
|
1891
|
+
"panelProductImageUrl",
|
|
1892
|
+
"panelProductImageAlt",
|
|
1893
|
+
"panelTrustLogo1",
|
|
1894
|
+
"panelTrustLogo2",
|
|
1895
|
+
"panelTrustLogo3",
|
|
1896
|
+
"panelTrustLogo4"
|
|
1897
|
+
],
|
|
1898
|
+
parts: [
|
|
1899
|
+
"page",
|
|
1900
|
+
"auth-layout",
|
|
1901
|
+
"showcase-panel",
|
|
1902
|
+
"showcase-panel-content",
|
|
1903
|
+
"showcase-eyebrow",
|
|
1904
|
+
"product-frame",
|
|
1905
|
+
"product-shot",
|
|
1906
|
+
"brand-name",
|
|
1907
|
+
"panel-title",
|
|
1908
|
+
"panel-description",
|
|
1909
|
+
"panel-points",
|
|
1910
|
+
"panel-point",
|
|
1911
|
+
"panel-graphic",
|
|
1912
|
+
"story-trust",
|
|
1913
|
+
"story-trust-logo",
|
|
1914
|
+
"auth-panel",
|
|
1915
|
+
"card"
|
|
1916
|
+
]
|
|
1917
|
+
},
|
|
1918
|
+
"full-bleed": {
|
|
1919
|
+
id: "full-bleed",
|
|
1920
|
+
labelKey: "platformAdmin.settings.branding.layout.fullBleed",
|
|
1921
|
+
supports: BRAND_PANEL_SUPPORTS,
|
|
1922
|
+
slots: ["logo", "media", "footerNote", "form"],
|
|
1923
|
+
fields: [
|
|
1924
|
+
"cardPosition",
|
|
1925
|
+
"footerNote",
|
|
1926
|
+
"backgroundImageUrl",
|
|
1927
|
+
"backgroundVideoUrl",
|
|
1928
|
+
"backgroundPattern",
|
|
1929
|
+
"backgroundTreatment",
|
|
1930
|
+
"backgroundOverlayColor",
|
|
1931
|
+
"backgroundOverlayOpacity"
|
|
1932
|
+
],
|
|
1933
|
+
parts: [
|
|
1934
|
+
"page",
|
|
1935
|
+
"background",
|
|
1936
|
+
"background-image",
|
|
1937
|
+
"background-video",
|
|
1938
|
+
"background-overlay",
|
|
1939
|
+
"auth-panel",
|
|
1940
|
+
"card"
|
|
1941
|
+
]
|
|
1942
|
+
}
|
|
1943
|
+
};
|
|
1944
|
+
var AUTH_BRANDING_PRESETS = {
|
|
1945
|
+
classic: {
|
|
1946
|
+
id: "classic",
|
|
1947
|
+
labelKey: "platformAdmin.settings.branding.preset.classic.label",
|
|
1948
|
+
descriptionKey: "platformAdmin.settings.branding.preset.classic.description",
|
|
1949
|
+
branding: {
|
|
1950
|
+
loginLayout: "centered",
|
|
1951
|
+
cardStyle: "card",
|
|
1952
|
+
primaryColor: "#4f46e5",
|
|
1953
|
+
backgroundColor: "#f8fafc",
|
|
1954
|
+
surfaceColor: "#ffffff",
|
|
1955
|
+
textColor: "#0f172a",
|
|
1956
|
+
textSecondaryColor: "#64748b",
|
|
1957
|
+
borderColor: "#e2e8f0",
|
|
1958
|
+
radius: 12,
|
|
1959
|
+
fontFamily: "system"
|
|
1960
|
+
},
|
|
1961
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
1962
|
+
background-image: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--axiom-auth-primary) 12%, transparent), transparent 42%);
|
|
1963
|
+
}
|
|
1964
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
1965
|
+
border-color: transparent;
|
|
1966
|
+
box-shadow: 0 32px 80px -32px color-mix(in srgb, var(--axiom-auth-primary) 45%, transparent);
|
|
1967
|
+
}`
|
|
1968
|
+
},
|
|
1969
|
+
minimal: {
|
|
1970
|
+
id: "minimal",
|
|
1971
|
+
labelKey: "platformAdmin.settings.branding.preset.minimal.label",
|
|
1972
|
+
descriptionKey: "platformAdmin.settings.branding.preset.minimal.description",
|
|
1973
|
+
branding: {
|
|
1974
|
+
loginLayout: "centered",
|
|
1975
|
+
cardStyle: "plain",
|
|
1976
|
+
primaryColor: "#111111",
|
|
1977
|
+
backgroundColor: "#ffffff",
|
|
1978
|
+
surfaceColor: "#ffffff",
|
|
1979
|
+
textColor: "#111111",
|
|
1980
|
+
textSecondaryColor: "#666666",
|
|
1981
|
+
borderColor: "#e5e5e5",
|
|
1982
|
+
radius: 0,
|
|
1983
|
+
fontFamily: "system",
|
|
1984
|
+
formDensity: "compact",
|
|
1985
|
+
ssoLayout: "inline",
|
|
1986
|
+
fieldStyle: "underline"
|
|
1987
|
+
},
|
|
1988
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
1989
|
+
background-image: linear-gradient(180deg, #ffffff, #fafafa);
|
|
1990
|
+
}
|
|
1991
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
1992
|
+
border: 0;
|
|
1993
|
+
box-shadow: none;
|
|
1994
|
+
}
|
|
1995
|
+
#axiom-auth-root [data-axiom-part="title"] {
|
|
1996
|
+
letter-spacing: -0.04em;
|
|
1997
|
+
}`
|
|
1998
|
+
},
|
|
1999
|
+
editorial: {
|
|
2000
|
+
id: "editorial",
|
|
2001
|
+
labelKey: "platformAdmin.settings.branding.preset.editorial.label",
|
|
2002
|
+
descriptionKey: "platformAdmin.settings.branding.preset.editorial.description",
|
|
2003
|
+
branding: {
|
|
2004
|
+
loginLayout: "split-brand",
|
|
2005
|
+
panelPosition: "left",
|
|
2006
|
+
panelContentAlign: "left",
|
|
2007
|
+
panelVisual: "waves",
|
|
2008
|
+
cardStyle: "card",
|
|
2009
|
+
primaryColor: "#1f2937",
|
|
2010
|
+
backgroundColor: "#f5f1e8",
|
|
2011
|
+
surfaceColor: "#fffdf8",
|
|
2012
|
+
textColor: "#1f2937",
|
|
2013
|
+
textSecondaryColor: "#6b7280",
|
|
2014
|
+
borderColor: "#e5e0d5",
|
|
2015
|
+
radius: 4,
|
|
2016
|
+
fontFamily: "serif"
|
|
2017
|
+
},
|
|
2018
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
2019
|
+
background-image: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--axiom-auth-primary) 9%, transparent), transparent 42%), linear-gradient(135deg, #f5f1e8, #efe9dc);
|
|
2020
|
+
}
|
|
2021
|
+
#axiom-auth-root [data-axiom-part="brand-panel"] {
|
|
2022
|
+
background: linear-gradient(145deg, color-mix(in srgb, var(--axiom-auth-primary) 70%, #000), var(--axiom-auth-primary) 55%, color-mix(in srgb, var(--axiom-auth-primary) 80%, #000));
|
|
2023
|
+
}
|
|
2024
|
+
#axiom-auth-root [data-axiom-part="panel-title"] {
|
|
2025
|
+
letter-spacing: -0.03em;
|
|
2026
|
+
}`
|
|
2027
|
+
},
|
|
2028
|
+
product: {
|
|
2029
|
+
id: "product",
|
|
2030
|
+
labelKey: "platformAdmin.settings.branding.preset.product.label",
|
|
2031
|
+
descriptionKey: "platformAdmin.settings.branding.preset.product.description",
|
|
2032
|
+
branding: {
|
|
2033
|
+
loginLayout: "split-brand",
|
|
2034
|
+
panelPosition: "right",
|
|
2035
|
+
panelContentAlign: "center",
|
|
2036
|
+
panelVisual: "mesh",
|
|
2037
|
+
cardStyle: "card",
|
|
2038
|
+
primaryColor: "#2563eb",
|
|
2039
|
+
backgroundColor: "#eff6ff",
|
|
2040
|
+
surfaceColor: "#ffffff",
|
|
2041
|
+
textColor: "#0f172a",
|
|
2042
|
+
textSecondaryColor: "#475569",
|
|
2043
|
+
borderColor: "#bfdbfe",
|
|
2044
|
+
radius: 16,
|
|
2045
|
+
fontFamily: "inter"
|
|
2046
|
+
},
|
|
2047
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
2048
|
+
background-image: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--axiom-auth-primary) 16%, transparent), transparent 42%);
|
|
2049
|
+
}
|
|
2050
|
+
#axiom-auth-root [data-axiom-part="brand-panel"] {
|
|
2051
|
+
background: linear-gradient(150deg, color-mix(in srgb, var(--axiom-auth-primary) 80%, #000), var(--axiom-auth-primary) 45%, color-mix(in srgb, var(--axiom-auth-primary) 70%, #fff));
|
|
2052
|
+
}
|
|
2053
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2054
|
+
box-shadow: 0 32px 80px -36px color-mix(in srgb, var(--axiom-auth-primary) 55%, transparent);
|
|
2055
|
+
}`
|
|
2056
|
+
},
|
|
2057
|
+
midnight: {
|
|
2058
|
+
id: "midnight",
|
|
2059
|
+
labelKey: "platformAdmin.settings.branding.preset.midnight.label",
|
|
2060
|
+
descriptionKey: "platformAdmin.settings.branding.preset.midnight.description",
|
|
2061
|
+
branding: {
|
|
2062
|
+
loginLayout: "full-bleed",
|
|
2063
|
+
cardPosition: "center",
|
|
2064
|
+
cardStyle: "glass",
|
|
2065
|
+
cardEffect: "inner-glow",
|
|
2066
|
+
formDensity: "airy",
|
|
2067
|
+
fieldStyle: "filled",
|
|
2068
|
+
primaryColor: "#f97316",
|
|
2069
|
+
backgroundColor: "#09090b",
|
|
2070
|
+
surfaceColor: "#18181b",
|
|
2071
|
+
textColor: "#fafafa",
|
|
2072
|
+
textSecondaryColor: "#a1a1aa",
|
|
2073
|
+
borderColor: "#27272a",
|
|
2074
|
+
radius: 18,
|
|
2075
|
+
fontFamily: "system",
|
|
2076
|
+
backgroundOverlayColor: "#000000",
|
|
2077
|
+
backgroundOverlayOpacity: 55
|
|
2078
|
+
},
|
|
2079
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
2080
|
+
background-image: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--axiom-auth-primary) 20%, transparent), transparent 38%), radial-gradient(circle at 80% 90%, rgba(124, 58, 237, 0.18), transparent 42%);
|
|
2081
|
+
}
|
|
2082
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2083
|
+
border-color: rgba(255, 255, 255, 0.12);
|
|
2084
|
+
box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
|
|
2085
|
+
}`
|
|
2086
|
+
},
|
|
2087
|
+
cinematic: {
|
|
2088
|
+
id: "cinematic",
|
|
2089
|
+
labelKey: "platformAdmin.settings.branding.preset.cinematic.label",
|
|
2090
|
+
descriptionKey: "platformAdmin.settings.branding.preset.cinematic.description",
|
|
2091
|
+
branding: {
|
|
2092
|
+
loginLayout: "full-bleed",
|
|
2093
|
+
cardPosition: "right",
|
|
2094
|
+
cardStyle: "glass",
|
|
2095
|
+
backgroundTreatment: "vignette",
|
|
2096
|
+
fieldStyle: "filled",
|
|
2097
|
+
primaryColor: "#e11d48",
|
|
2098
|
+
backgroundColor: "#0a0a0a",
|
|
2099
|
+
surfaceColor: "#111111",
|
|
2100
|
+
textColor: "#f5f5f5",
|
|
2101
|
+
textSecondaryColor: "#a3a3a3",
|
|
2102
|
+
borderColor: "#262626",
|
|
2103
|
+
radius: 4,
|
|
2104
|
+
fontFamily: "system",
|
|
2105
|
+
backgroundOverlayColor: "#000000",
|
|
2106
|
+
backgroundOverlayOpacity: 65
|
|
2107
|
+
},
|
|
2108
|
+
customCss: `#axiom-auth-root [data-axiom-part="background-overlay"] {
|
|
2109
|
+
background: radial-gradient(circle at 25% 30%, transparent 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
|
|
2110
|
+
opacity: 1;
|
|
2111
|
+
}
|
|
2112
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2113
|
+
border-color: rgba(255, 255, 255, 0.14);
|
|
2114
|
+
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
|
|
2115
|
+
}`
|
|
2116
|
+
},
|
|
2117
|
+
playful: {
|
|
2118
|
+
id: "playful",
|
|
2119
|
+
labelKey: "platformAdmin.settings.branding.preset.playful.label",
|
|
2120
|
+
descriptionKey: "platformAdmin.settings.branding.preset.playful.description",
|
|
2121
|
+
branding: {
|
|
2122
|
+
loginLayout: "centered",
|
|
2123
|
+
cardStyle: "card",
|
|
2124
|
+
cardEffect: "inner-glow",
|
|
2125
|
+
logoStyle: "badge",
|
|
2126
|
+
primaryColor: "#db2777",
|
|
2127
|
+
backgroundColor: "#fff1f2",
|
|
2128
|
+
surfaceColor: "#ffffff",
|
|
2129
|
+
textColor: "#500724",
|
|
2130
|
+
textSecondaryColor: "#9d174d",
|
|
2131
|
+
borderColor: "#fecdd3",
|
|
2132
|
+
radius: 28,
|
|
2133
|
+
fontFamily: "inter"
|
|
2134
|
+
},
|
|
2135
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
2136
|
+
background-image: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--axiom-auth-primary) 18%, transparent), transparent 35%), radial-gradient(circle at 85% 80%, rgba(251, 113, 133, 0.22), transparent 38%);
|
|
2137
|
+
}
|
|
2138
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2139
|
+
box-shadow: 0 32px 80px -28px color-mix(in srgb, var(--axiom-auth-primary) 45%, transparent);
|
|
2140
|
+
}`
|
|
2141
|
+
},
|
|
2142
|
+
enterprise: {
|
|
2143
|
+
id: "enterprise",
|
|
2144
|
+
labelKey: "platformAdmin.settings.branding.preset.enterprise.label",
|
|
2145
|
+
descriptionKey: "platformAdmin.settings.branding.preset.enterprise.description",
|
|
2146
|
+
branding: {
|
|
2147
|
+
loginLayout: "centered",
|
|
2148
|
+
cardStyle: "card",
|
|
2149
|
+
primaryColor: "#0f766e",
|
|
2150
|
+
backgroundColor: "#f0fdfa",
|
|
2151
|
+
surfaceColor: "#ffffff",
|
|
2152
|
+
textColor: "#134e4a",
|
|
2153
|
+
textSecondaryColor: "#5f7f7a",
|
|
2154
|
+
borderColor: "#99f6e4",
|
|
2155
|
+
radius: 8,
|
|
2156
|
+
fontFamily: "system",
|
|
2157
|
+
logoStyle: "badge",
|
|
2158
|
+
formDensity: "compact",
|
|
2159
|
+
backgroundPattern: "grid",
|
|
2160
|
+
fieldStyle: "outline"
|
|
2161
|
+
},
|
|
2162
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
2163
|
+
background-image: linear-gradient(color-mix(in srgb, var(--axiom-auth-primary) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--axiom-auth-primary) 6%, transparent) 1px, transparent 1px);
|
|
2164
|
+
background-size: 32px 32px;
|
|
2165
|
+
}
|
|
2166
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2167
|
+
box-shadow: 0 24px 64px -32px color-mix(in srgb, var(--axiom-auth-primary) 35%, transparent);
|
|
2168
|
+
}`
|
|
2169
|
+
},
|
|
2170
|
+
noir: {
|
|
2171
|
+
id: "noir",
|
|
2172
|
+
labelKey: "platformAdmin.settings.branding.preset.noir.label",
|
|
2173
|
+
descriptionKey: "platformAdmin.settings.branding.preset.noir.description",
|
|
2174
|
+
branding: {
|
|
2175
|
+
loginLayout: "split-brand",
|
|
2176
|
+
panelPosition: "left",
|
|
2177
|
+
panelVisual: "orbit",
|
|
2178
|
+
cardStyle: "outline",
|
|
2179
|
+
primaryColor: "#111827",
|
|
2180
|
+
backgroundColor: "#f9fafb",
|
|
2181
|
+
surfaceColor: "#ffffff",
|
|
2182
|
+
textColor: "#111827",
|
|
2183
|
+
textSecondaryColor: "#6b7280",
|
|
2184
|
+
borderColor: "#e5e7eb",
|
|
2185
|
+
radius: 0,
|
|
2186
|
+
fontFamily: "mono"
|
|
2187
|
+
},
|
|
2188
|
+
customCss: `#axiom-auth-root [data-axiom-part="brand-panel"] {
|
|
2189
|
+
background: var(--axiom-auth-primary);
|
|
2190
|
+
}
|
|
2191
|
+
#axiom-auth-root [data-axiom-part="brand-panel"]::after {
|
|
2192
|
+
background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
|
|
2193
|
+
background-size: 24px 24px;
|
|
2194
|
+
opacity: 0.45;
|
|
2195
|
+
}
|
|
2196
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2197
|
+
border-color: var(--axiom-auth-primary);
|
|
2198
|
+
box-shadow: 8px 8px 0 var(--axiom-auth-text);
|
|
2199
|
+
}`
|
|
2200
|
+
},
|
|
2201
|
+
aurora: {
|
|
2202
|
+
id: "aurora",
|
|
2203
|
+
labelKey: "platformAdmin.settings.branding.preset.aurora.label",
|
|
2204
|
+
descriptionKey: "platformAdmin.settings.branding.preset.aurora.description",
|
|
2205
|
+
branding: {
|
|
2206
|
+
loginLayout: "full-bleed",
|
|
2207
|
+
cardPosition: "center",
|
|
2208
|
+
cardStyle: "glass",
|
|
2209
|
+
cardEffect: "inner-glow",
|
|
2210
|
+
logoStyle: "badge",
|
|
2211
|
+
formDensity: "airy",
|
|
2212
|
+
fieldStyle: "filled",
|
|
2213
|
+
primaryColor: "#22d3ee",
|
|
2214
|
+
backgroundColor: "#07111f",
|
|
2215
|
+
surfaceColor: "#0f1b2d",
|
|
2216
|
+
textColor: "#e2f8ff",
|
|
2217
|
+
textSecondaryColor: "#9cb8c9",
|
|
2218
|
+
borderColor: "#1e3a4f",
|
|
2219
|
+
radius: 24,
|
|
2220
|
+
fontFamily: "inter",
|
|
2221
|
+
logoSize: 56,
|
|
2222
|
+
titleSize: 34,
|
|
2223
|
+
bodySize: 16,
|
|
2224
|
+
pagePadding: 24,
|
|
2225
|
+
cardPadding: 32,
|
|
2226
|
+
cardWidth: 440,
|
|
2227
|
+
cardShadow: "floating",
|
|
2228
|
+
backgroundPattern: "aurora",
|
|
2229
|
+
backgroundOverlayColor: "#000000",
|
|
2230
|
+
backgroundOverlayOpacity: 45
|
|
2231
|
+
},
|
|
2232
|
+
customCss: `#axiom-auth-root [data-axiom-part="card"] {
|
|
2233
|
+
border-color: color-mix(in srgb, var(--axiom-auth-primary) 22%, transparent);
|
|
2234
|
+
box-shadow: 0 40px 110px -30px color-mix(in srgb, var(--axiom-auth-primary) 35%, transparent);
|
|
2235
|
+
}
|
|
2236
|
+
#axiom-auth-root [data-axiom-part="card"]::before {
|
|
2237
|
+
content: "";
|
|
2238
|
+
position: absolute;
|
|
2239
|
+
inset: 0;
|
|
2240
|
+
border-radius: inherit;
|
|
2241
|
+
pointer-events: none;
|
|
2242
|
+
background: linear-gradient(135deg, color-mix(in srgb, var(--axiom-auth-primary) 12%, transparent), transparent 45%);
|
|
2243
|
+
}`
|
|
2244
|
+
},
|
|
2245
|
+
swiss: {
|
|
2246
|
+
id: "swiss",
|
|
2247
|
+
labelKey: "platformAdmin.settings.branding.preset.swiss.label",
|
|
2248
|
+
descriptionKey: "platformAdmin.settings.branding.preset.swiss.description",
|
|
2249
|
+
branding: {
|
|
2250
|
+
loginLayout: "centered",
|
|
2251
|
+
cardStyle: "card",
|
|
2252
|
+
cardEffect: "gradient-border",
|
|
2253
|
+
formDensity: "compact",
|
|
2254
|
+
fieldStyle: "underline",
|
|
2255
|
+
primaryColor: "#ef4444",
|
|
2256
|
+
backgroundColor: "#f4f4f0",
|
|
2257
|
+
surfaceColor: "#ffffff",
|
|
2258
|
+
textColor: "#111111",
|
|
2259
|
+
textSecondaryColor: "#555555",
|
|
2260
|
+
borderColor: "#d4d4d0",
|
|
2261
|
+
radius: 0,
|
|
2262
|
+
fontFamily: "inter",
|
|
2263
|
+
logoSize: 52,
|
|
2264
|
+
titleSize: 44,
|
|
2265
|
+
bodySize: 15,
|
|
2266
|
+
pagePadding: 32,
|
|
2267
|
+
cardPadding: 36,
|
|
2268
|
+
cardWidth: 460,
|
|
2269
|
+
cardShadow: "none",
|
|
2270
|
+
backgroundPattern: "grid"
|
|
2271
|
+
},
|
|
2272
|
+
customCss: `#axiom-auth-root [data-axiom-part="title"] {
|
|
2273
|
+
letter-spacing: -0.05em;
|
|
2274
|
+
}
|
|
2275
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2276
|
+
border: 1px solid var(--axiom-auth-text);
|
|
2277
|
+
}`
|
|
2278
|
+
},
|
|
2279
|
+
luxe: {
|
|
2280
|
+
id: "luxe",
|
|
2281
|
+
labelKey: "platformAdmin.settings.branding.preset.luxe.label",
|
|
2282
|
+
descriptionKey: "platformAdmin.settings.branding.preset.luxe.description",
|
|
2283
|
+
branding: {
|
|
2284
|
+
loginLayout: "split-brand",
|
|
2285
|
+
panelPosition: "right",
|
|
2286
|
+
panelContentAlign: "center",
|
|
2287
|
+
panelVisual: "topography",
|
|
2288
|
+
cardStyle: "glass",
|
|
2289
|
+
logoStyle: "badge",
|
|
2290
|
+
formDensity: "airy",
|
|
2291
|
+
fieldStyle: "filled",
|
|
2292
|
+
primaryColor: "#a16207",
|
|
2293
|
+
backgroundColor: "#0c0a09",
|
|
2294
|
+
surfaceColor: "#1c1917",
|
|
2295
|
+
textColor: "#fafaf9",
|
|
2296
|
+
textSecondaryColor: "#a8a29e",
|
|
2297
|
+
borderColor: "#44403c",
|
|
2298
|
+
radius: 20,
|
|
2299
|
+
fontFamily: "serif",
|
|
2300
|
+
logoSize: 72,
|
|
2301
|
+
titleSize: 32,
|
|
2302
|
+
bodySize: 16,
|
|
2303
|
+
pagePadding: 24,
|
|
2304
|
+
cardPadding: 32,
|
|
2305
|
+
cardWidth: 420,
|
|
2306
|
+
cardShadow: "floating"
|
|
2307
|
+
},
|
|
2308
|
+
customCss: `#axiom-auth-root [data-axiom-part="brand-panel"] {
|
|
2309
|
+
background: linear-gradient(145deg, #1c1917, #292524 55%, #0c0a09);
|
|
2310
|
+
}
|
|
2311
|
+
#axiom-auth-root [data-axiom-part="panel-title"] {
|
|
2312
|
+
letter-spacing: -0.04em;
|
|
2313
|
+
}
|
|
2314
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2315
|
+
border-color: color-mix(in srgb, var(--axiom-auth-primary) 35%, transparent);
|
|
2316
|
+
box-shadow: 0 40px 110px -40px color-mix(in srgb, var(--axiom-auth-primary) 55%, transparent);
|
|
2317
|
+
}`
|
|
2318
|
+
},
|
|
2319
|
+
narrative: {
|
|
2320
|
+
id: "narrative",
|
|
2321
|
+
labelKey: "platformAdmin.settings.branding.preset.narrative.label",
|
|
2322
|
+
descriptionKey: "platformAdmin.settings.branding.preset.narrative.description",
|
|
2323
|
+
branding: {
|
|
2324
|
+
loginLayout: "split-story",
|
|
2325
|
+
panelPosition: "right",
|
|
2326
|
+
panelContentAlign: "center",
|
|
2327
|
+
panelVisual: "aurora",
|
|
2328
|
+
cardStyle: "glass",
|
|
2329
|
+
cardEffect: "inner-glow",
|
|
2330
|
+
logoStyle: "badge",
|
|
2331
|
+
formDensity: "airy",
|
|
2332
|
+
fieldStyle: "filled",
|
|
2333
|
+
primaryColor: "#0f766e",
|
|
2334
|
+
backgroundColor: "#f0fdfa",
|
|
2335
|
+
surfaceColor: "#ffffff",
|
|
2336
|
+
textColor: "#134e4a",
|
|
2337
|
+
textSecondaryColor: "#5f7f7a",
|
|
2338
|
+
borderColor: "#99f6e4",
|
|
2339
|
+
radius: 20,
|
|
2340
|
+
fontFamily: "serif",
|
|
2341
|
+
logoSize: 64,
|
|
2342
|
+
titleSize: 40,
|
|
2343
|
+
bodySize: 16,
|
|
2344
|
+
pagePadding: 24,
|
|
2345
|
+
cardPadding: 32,
|
|
2346
|
+
cardWidth: 420,
|
|
2347
|
+
cardShadow: "floating",
|
|
2348
|
+
panelEyebrow: "Trusted by modern teams",
|
|
2349
|
+
panelTitle: "Build with confidence",
|
|
2350
|
+
panelDescription: "A foundation for teams that care about craft, security, and speed.",
|
|
2351
|
+
panelPoint1: "SOC 2 ready workflows",
|
|
2352
|
+
panelPoint2: "Fast onboarding",
|
|
2353
|
+
panelPoint3: "Clear audit trails",
|
|
2354
|
+
panelStat1Value: "99.99%",
|
|
2355
|
+
panelStat1Label: "Uptime",
|
|
2356
|
+
panelStat2Value: "4.9/5",
|
|
2357
|
+
panelStat2Label: "Customer rating",
|
|
2358
|
+
panelStat3Value: "12k+",
|
|
2359
|
+
panelStat3Label: "Teams onboarded",
|
|
2360
|
+
panelQuote: "The calmest, most reliable launch experience we have shipped.",
|
|
2361
|
+
panelQuoteAuthor: "Maya Chen",
|
|
2362
|
+
panelQuoteRole: "VP Engineering, Northstar"
|
|
2363
|
+
},
|
|
2364
|
+
customCss: `#axiom-auth-root [data-axiom-part="story-panel"] {
|
|
2365
|
+
background: linear-gradient(145deg, color-mix(in srgb, var(--axiom-auth-primary) 82%, #000), var(--axiom-auth-primary) 55%, color-mix(in srgb, var(--axiom-auth-primary) 72%, #fff));
|
|
2366
|
+
}
|
|
2367
|
+
#axiom-auth-root [data-axiom-part="story-stat"] {
|
|
2368
|
+
padding: 12px 14px;
|
|
2369
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
2370
|
+
border-radius: 12px;
|
|
2371
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2372
|
+
}
|
|
2373
|
+
#axiom-auth-root [data-axiom-part="story-testimonial"] {
|
|
2374
|
+
border-left: 2px solid rgba(255, 255, 255, 0.45);
|
|
2375
|
+
padding-left: 16px;
|
|
2376
|
+
}`
|
|
2377
|
+
},
|
|
2378
|
+
"editorial-centered": {
|
|
2379
|
+
id: "editorial-centered",
|
|
2380
|
+
labelKey: "platformAdmin.settings.branding.preset.editorialCentered.label",
|
|
2381
|
+
descriptionKey: "platformAdmin.settings.branding.preset.editorialCentered.description",
|
|
2382
|
+
branding: {
|
|
2383
|
+
loginLayout: "centered-editorial",
|
|
2384
|
+
cardStyle: "card",
|
|
2385
|
+
cardEffect: "gradient-border",
|
|
2386
|
+
formDensity: "airy",
|
|
2387
|
+
primaryColor: "#7c2d12",
|
|
2388
|
+
backgroundColor: "#faf7f2",
|
|
2389
|
+
surfaceColor: "#fffdf9",
|
|
2390
|
+
textColor: "#1c1917",
|
|
2391
|
+
textSecondaryColor: "#78716c",
|
|
2392
|
+
borderColor: "#e7e5e4",
|
|
2393
|
+
radius: 10,
|
|
2394
|
+
fontFamily: "serif",
|
|
2395
|
+
logoSize: 56,
|
|
2396
|
+
titleSize: 46,
|
|
2397
|
+
bodySize: 16,
|
|
2398
|
+
pagePadding: 32,
|
|
2399
|
+
cardPadding: 32,
|
|
2400
|
+
cardWidth: 440,
|
|
2401
|
+
cardShadow: "soft",
|
|
2402
|
+
panelEyebrow: "Crafted for thoughtful teams"
|
|
2403
|
+
},
|
|
2404
|
+
customCss: `#axiom-auth-root [data-axiom-part="page"] {
|
|
2405
|
+
background-image: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--axiom-auth-primary) 10%, transparent), transparent 44%);
|
|
2406
|
+
}
|
|
2407
|
+
#axiom-auth-root [data-axiom-part="editorial-headline"] {
|
|
2408
|
+
font-weight: 400;
|
|
2409
|
+
}`
|
|
2410
|
+
},
|
|
2411
|
+
brutalist: {
|
|
2412
|
+
id: "brutalist",
|
|
2413
|
+
labelKey: "platformAdmin.settings.branding.preset.brutalist.label",
|
|
2414
|
+
descriptionKey: "platformAdmin.settings.branding.preset.brutalist.description",
|
|
2415
|
+
branding: {
|
|
2416
|
+
loginLayout: "centered",
|
|
2417
|
+
cardStyle: "card",
|
|
2418
|
+
formDensity: "compact",
|
|
2419
|
+
ssoLayout: "inline",
|
|
2420
|
+
fieldStyle: "outline",
|
|
2421
|
+
primaryColor: "#000000",
|
|
2422
|
+
backgroundColor: "#f5f5f0",
|
|
2423
|
+
surfaceColor: "#ffffff",
|
|
2424
|
+
textColor: "#000000",
|
|
2425
|
+
textSecondaryColor: "#333333",
|
|
2426
|
+
borderColor: "#000000",
|
|
2427
|
+
radius: 0,
|
|
2428
|
+
fontFamily: "mono",
|
|
2429
|
+
logoSize: 48,
|
|
2430
|
+
titleSize: 40,
|
|
2431
|
+
bodySize: 14,
|
|
2432
|
+
pagePadding: 24,
|
|
2433
|
+
cardPadding: 32,
|
|
2434
|
+
cardWidth: 480,
|
|
2435
|
+
cardShadow: "hard",
|
|
2436
|
+
backgroundPattern: "dots"
|
|
2437
|
+
},
|
|
2438
|
+
customCss: `#axiom-auth-root [data-axiom-part="title"] {
|
|
2439
|
+
text-transform: uppercase;
|
|
2440
|
+
letter-spacing: -0.03em;
|
|
2441
|
+
}
|
|
2442
|
+
#axiom-auth-root [data-axiom-part="card"] {
|
|
2443
|
+
border: 3px solid var(--axiom-auth-text);
|
|
2444
|
+
box-shadow: 8px 8px 0 var(--axiom-auth-text);
|
|
2445
|
+
}`
|
|
2446
|
+
}
|
|
2447
|
+
};
|
|
2448
|
+
var AUTH_BRANDING_PRESET_IDS = Object.keys(
|
|
2449
|
+
AUTH_BRANDING_PRESETS
|
|
2450
|
+
);
|
|
2451
|
+
var AUTH_BRANDING_CASES = {
|
|
2452
|
+
"editorial-launch": {
|
|
2453
|
+
id: "editorial-launch",
|
|
2454
|
+
labelKey: "platformAdmin.settings.branding.case.editorialLaunch.label",
|
|
2455
|
+
descriptionKey: "platformAdmin.settings.branding.case.editorialLaunch.description",
|
|
2456
|
+
presetId: "editorial-centered",
|
|
2457
|
+
branding: {
|
|
2458
|
+
brandName: "AlphaFina",
|
|
2459
|
+
logoUrl: "/logo.png",
|
|
2460
|
+
loginTitle: "A quieter way to sign in",
|
|
2461
|
+
loginSubtitle: "One account for every workspace.",
|
|
2462
|
+
footerNote: "SOC 2 ready \xB7 SSO \xB7 Audit logs",
|
|
2463
|
+
panelEyebrow: "Crafted for thoughtful teams",
|
|
2464
|
+
panelTrustLogo1: "/cases/trust-northstar.svg",
|
|
2465
|
+
panelTrustLogo2: "/cases/trust-acme.svg",
|
|
2466
|
+
panelTrustLogo3: "/cases/trust-vertex.svg",
|
|
2467
|
+
panelTrustLogo4: "/cases/trust-lumen.svg"
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
"product-showcase": {
|
|
2471
|
+
id: "product-showcase",
|
|
2472
|
+
labelKey: "platformAdmin.settings.branding.case.productShowcase.label",
|
|
2473
|
+
descriptionKey: "platformAdmin.settings.branding.case.productShowcase.description",
|
|
2474
|
+
presetId: "product",
|
|
2475
|
+
branding: {
|
|
2476
|
+
brandName: "AlphaFina",
|
|
2477
|
+
logoUrl: "/logo.png",
|
|
2478
|
+
loginLayout: "split-showcase",
|
|
2479
|
+
panelPosition: "right",
|
|
2480
|
+
panelContentAlign: "center",
|
|
2481
|
+
cardStyle: "glass",
|
|
2482
|
+
panelEyebrow: "Product tour",
|
|
2483
|
+
panelTitle: "One workspace for every launch",
|
|
2484
|
+
panelDescription: "Plan, build, and ship agent workflows without losing the thread.",
|
|
2485
|
+
panelPoint1: "Live run visibility",
|
|
2486
|
+
panelPoint2: "Audit-ready activity",
|
|
2487
|
+
panelPoint3: "One shared context",
|
|
2488
|
+
panelProductImageUrl: "/cases/product-dashboard.svg",
|
|
2489
|
+
panelProductImageAlt: "AlphaFina workspace dashboard",
|
|
2490
|
+
panelTrustLogo1: "/cases/trust-northstar.svg",
|
|
2491
|
+
panelTrustLogo2: "/cases/trust-acme.svg",
|
|
2492
|
+
panelTrustLogo3: "/cases/trust-vertex.svg",
|
|
2493
|
+
panelTrustLogo4: "/cases/trust-lumen.svg",
|
|
2494
|
+
imageFit: "cover",
|
|
2495
|
+
imagePosition: "top",
|
|
2496
|
+
imageTreatment: "none"
|
|
2497
|
+
},
|
|
2498
|
+
customCss: `#axiom-auth-root [data-axiom-part="showcase-panel"] {
|
|
2499
|
+
background: linear-gradient(150deg, color-mix(in srgb, var(--axiom-auth-primary) 82%, #000), var(--axiom-auth-primary) 48%, color-mix(in srgb, var(--axiom-auth-primary) 68%, #fff));
|
|
2500
|
+
}
|
|
2501
|
+
#axiom-auth-root [data-axiom-part="product-frame"] {
|
|
2502
|
+
background: rgba(255, 255, 255, 0.16);
|
|
2503
|
+
border-color: rgba(255, 255, 255, 0.28);
|
|
2504
|
+
}`
|
|
2505
|
+
},
|
|
2506
|
+
"data-story": {
|
|
2507
|
+
id: "data-story",
|
|
2508
|
+
labelKey: "platformAdmin.settings.branding.case.dataStory.label",
|
|
2509
|
+
descriptionKey: "platformAdmin.settings.branding.case.dataStory.description",
|
|
2510
|
+
presetId: "narrative",
|
|
2511
|
+
branding: {
|
|
2512
|
+
brandName: "AlphaFina",
|
|
2513
|
+
logoUrl: "/logo.png",
|
|
2514
|
+
loginLayout: "split-story",
|
|
2515
|
+
panelEyebrow: "Trusted by modern teams",
|
|
2516
|
+
panelTitle: "Build with confidence",
|
|
2517
|
+
panelDescription: "A foundation for teams that care about craft, security, and speed.",
|
|
2518
|
+
panelPoint1: "SOC 2 ready workflows",
|
|
2519
|
+
panelPoint2: "Fast onboarding",
|
|
2520
|
+
panelPoint3: "Clear audit trails",
|
|
2521
|
+
panelStat1Value: "99.99%",
|
|
2522
|
+
panelStat1Label: "Uptime",
|
|
2523
|
+
panelStat2Value: "4.9/5",
|
|
2524
|
+
panelStat2Label: "Customer rating",
|
|
2525
|
+
panelStat3Value: "12k+",
|
|
2526
|
+
panelStat3Label: "Teams onboarded",
|
|
2527
|
+
panelQuote: "The calmest, most reliable launch experience we have shipped.",
|
|
2528
|
+
panelQuoteAuthor: "Maya Chen",
|
|
2529
|
+
panelQuoteRole: "VP Engineering, Northstar",
|
|
2530
|
+
panelTrustLogo1: "/cases/trust-northstar.svg",
|
|
2531
|
+
panelTrustLogo2: "/cases/trust-acme.svg",
|
|
2532
|
+
panelTrustLogo3: "/cases/trust-vertex.svg",
|
|
2533
|
+
panelTrustLogo4: "/cases/trust-lumen.svg"
|
|
2534
|
+
}
|
|
2535
|
+
},
|
|
2536
|
+
"aurora-launch": {
|
|
2537
|
+
id: "aurora-launch",
|
|
2538
|
+
labelKey: "platformAdmin.settings.branding.case.auroraLaunch.label",
|
|
2539
|
+
descriptionKey: "platformAdmin.settings.branding.case.auroraLaunch.description",
|
|
2540
|
+
presetId: "aurora",
|
|
2541
|
+
branding: {
|
|
2542
|
+
brandName: "AlphaFina",
|
|
2543
|
+
logoUrl: "/logo.png",
|
|
2544
|
+
loginLayout: "full-bleed",
|
|
2545
|
+
backgroundImageUrl: "/cases/aurora-bg.svg",
|
|
2546
|
+
backgroundOverlayColor: "#000000",
|
|
2547
|
+
backgroundOverlayOpacity: 35,
|
|
2548
|
+
imageFit: "cover",
|
|
2549
|
+
imagePosition: "center",
|
|
2550
|
+
imageTreatment: "none",
|
|
2551
|
+
cardStyle: "glass",
|
|
2552
|
+
cardPosition: "center",
|
|
2553
|
+
loginTitle: "Sign in to the network",
|
|
2554
|
+
loginSubtitle: "One secure account for every team and agent.",
|
|
2555
|
+
footerNote: "Encrypted sessions \xB7 SSO \xB7 Audit trails"
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
"cinematic-video": {
|
|
2559
|
+
id: "cinematic-video",
|
|
2560
|
+
labelKey: "platformAdmin.settings.branding.case.cinematicVideo.label",
|
|
2561
|
+
descriptionKey: "platformAdmin.settings.branding.case.cinematicVideo.description",
|
|
2562
|
+
presetId: "cinematic",
|
|
2563
|
+
branding: {
|
|
2564
|
+
brandName: "AlphaFina",
|
|
2565
|
+
logoUrl: "/logo.png",
|
|
2566
|
+
loginLayout: "full-bleed",
|
|
2567
|
+
backgroundVideoUrl: "/cases/14471967_3840_2160_30fps.mp4",
|
|
2568
|
+
backgroundImageUrl: "/cases/aurora-bg.svg",
|
|
2569
|
+
backgroundOverlayColor: "#000000",
|
|
2570
|
+
backgroundOverlayOpacity: 65,
|
|
2571
|
+
imageFit: "cover",
|
|
2572
|
+
imagePosition: "center",
|
|
2573
|
+
imageTreatment: "none",
|
|
2574
|
+
cardStyle: "glass",
|
|
2575
|
+
cardPosition: "right",
|
|
2576
|
+
loginTitle: "Sign in to the network",
|
|
2577
|
+
loginSubtitle: "One secure account for every team and agent."
|
|
2578
|
+
}
|
|
2579
|
+
},
|
|
2580
|
+
"aurora-video": {
|
|
2581
|
+
id: "aurora-video",
|
|
2582
|
+
labelKey: "platformAdmin.settings.branding.case.auroraVideo.label",
|
|
2583
|
+
descriptionKey: "platformAdmin.settings.branding.case.auroraVideo.description",
|
|
2584
|
+
presetId: "aurora",
|
|
2585
|
+
branding: {
|
|
2586
|
+
brandName: "AlphaFina",
|
|
2587
|
+
logoUrl: "/logo.png",
|
|
2588
|
+
loginLayout: "full-bleed",
|
|
2589
|
+
backgroundVideoUrl: "/cases/15404923_1920_1080_60fps.mp4",
|
|
2590
|
+
backgroundImageUrl: "/cases/aurora-bg.svg",
|
|
2591
|
+
backgroundOverlayColor: "#000000",
|
|
2592
|
+
backgroundOverlayOpacity: 30,
|
|
2593
|
+
imageFit: "cover",
|
|
2594
|
+
imagePosition: "center",
|
|
2595
|
+
imageTreatment: "none",
|
|
2596
|
+
cardStyle: "glass",
|
|
2597
|
+
cardPosition: "center",
|
|
2598
|
+
loginTitle: "Sign in to the network",
|
|
2599
|
+
loginSubtitle: "One secure account for every team and agent."
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
};
|
|
2603
|
+
var AUTH_BRANDING_CASE_IDS = Object.keys(
|
|
2604
|
+
AUTH_BRANDING_CASES
|
|
2605
|
+
);
|
|
2606
|
+
function isLoginLayoutId(value) {
|
|
2607
|
+
return typeof value === "string" && LOGIN_LAYOUT_IDS.includes(value);
|
|
2608
|
+
}
|
|
2609
|
+
function isAuthFontFamilyId(value) {
|
|
2610
|
+
return typeof value === "string" && AUTH_FONT_FAMILY_IDS.includes(value);
|
|
2611
|
+
}
|
|
2612
|
+
function layoutSpecificFields(layout) {
|
|
2613
|
+
return PLATFORM_BRANDING_FIELD_KEYS.filter((key) => {
|
|
2614
|
+
const definition = PLATFORM_BRANDING_FIELDS[key];
|
|
2615
|
+
return definition.layouts?.includes(layout) ?? false;
|
|
2616
|
+
});
|
|
2617
|
+
}
|
|
2618
|
+
function layoutSupportsSurface(layout, surface) {
|
|
2619
|
+
return LOGIN_LAYOUTS[layout].supports.includes(surface);
|
|
2620
|
+
}
|
|
2621
|
+
function resolveLoginLayout(layout, surface) {
|
|
2622
|
+
if (isLoginLayoutId(layout) && layoutSupportsSurface(layout, surface)) {
|
|
2623
|
+
return layout;
|
|
2624
|
+
}
|
|
2625
|
+
return DEFAULT_LOGIN_LAYOUT;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
1250
2628
|
// src/PlatformSettingsProtocol.ts
|
|
1251
2629
|
var PlatformSettingsVersionConflictError = class extends Error {
|
|
1252
2630
|
constructor(expectedVersion, actualVersion) {
|
|
@@ -1272,7 +2650,38 @@ var DEFAULT_PLATFORM_BRANDING = {
|
|
|
1272
2650
|
brandName: "AlphaFina",
|
|
1273
2651
|
logoUrl: "/logo.png",
|
|
1274
2652
|
primaryColor: "#5b50c6",
|
|
1275
|
-
backgroundColor: "#ffffff"
|
|
2653
|
+
backgroundColor: "#ffffff",
|
|
2654
|
+
loginLayout: DEFAULT_LOGIN_LAYOUT,
|
|
2655
|
+
cardStyle: "card",
|
|
2656
|
+
cardPosition: "center",
|
|
2657
|
+
surfaceColor: "#ffffff",
|
|
2658
|
+
textColor: "#101828",
|
|
2659
|
+
textSecondaryColor: "#667085",
|
|
2660
|
+
borderColor: "#e4e7ec",
|
|
2661
|
+
radius: 12,
|
|
2662
|
+
fontFamily: "system",
|
|
2663
|
+
fieldStyle: "soft",
|
|
2664
|
+
logoSize: 64,
|
|
2665
|
+
titleSize: 24,
|
|
2666
|
+
bodySize: 16,
|
|
2667
|
+
pagePadding: 16,
|
|
2668
|
+
cardPadding: 24,
|
|
2669
|
+
cardWidth: 400,
|
|
2670
|
+
cardShadow: "soft",
|
|
2671
|
+
cardEffect: "none",
|
|
2672
|
+
backgroundPattern: "none",
|
|
2673
|
+
backgroundTreatment: "none",
|
|
2674
|
+
imageFit: "cover",
|
|
2675
|
+
imagePosition: "center",
|
|
2676
|
+
imageTreatment: "none",
|
|
2677
|
+
logoStyle: "plain",
|
|
2678
|
+
formDensity: "comfortable",
|
|
2679
|
+
ssoLayout: "stack",
|
|
2680
|
+
panelPosition: "left",
|
|
2681
|
+
panelContentAlign: "left",
|
|
2682
|
+
panelVisual: "orbit",
|
|
2683
|
+
backgroundOverlayColor: "#000000",
|
|
2684
|
+
backgroundOverlayOpacity: 40
|
|
1276
2685
|
};
|
|
1277
2686
|
function normalizeBrandingHost(raw) {
|
|
1278
2687
|
let host = raw.trim().toLowerCase();
|
|
@@ -1433,6 +2842,41 @@ function validateCustomCss(value) {
|
|
|
1433
2842
|
// src/AuthCssContract.ts
|
|
1434
2843
|
var AUTH_CSS_CONTRACT_PARTS = [
|
|
1435
2844
|
"page",
|
|
2845
|
+
"auth-layout",
|
|
2846
|
+
"brand-panel",
|
|
2847
|
+
"story-panel",
|
|
2848
|
+
"story-panel-content",
|
|
2849
|
+
"story-eyebrow",
|
|
2850
|
+
"story-stats",
|
|
2851
|
+
"story-stat",
|
|
2852
|
+
"story-stat-value",
|
|
2853
|
+
"story-stat-label",
|
|
2854
|
+
"story-testimonial",
|
|
2855
|
+
"story-quote",
|
|
2856
|
+
"story-author",
|
|
2857
|
+
"story-role",
|
|
2858
|
+
"story-trust",
|
|
2859
|
+
"story-trust-logo",
|
|
2860
|
+
"showcase-panel",
|
|
2861
|
+
"showcase-panel-content",
|
|
2862
|
+
"showcase-panel-heading",
|
|
2863
|
+
"showcase-eyebrow",
|
|
2864
|
+
"product-frame",
|
|
2865
|
+
"product-shot",
|
|
2866
|
+
"brand-panel-content",
|
|
2867
|
+
"brand-name",
|
|
2868
|
+
"panel-title",
|
|
2869
|
+
"panel-description",
|
|
2870
|
+
"panel-points",
|
|
2871
|
+
"panel-point",
|
|
2872
|
+
"panel-image",
|
|
2873
|
+
"panel-video",
|
|
2874
|
+
"panel-graphic",
|
|
2875
|
+
"background",
|
|
2876
|
+
"background-image",
|
|
2877
|
+
"background-video",
|
|
2878
|
+
"background-overlay",
|
|
2879
|
+
"auth-panel",
|
|
1436
2880
|
"card",
|
|
1437
2881
|
"header",
|
|
1438
2882
|
"logo",
|
|
@@ -1447,6 +2891,7 @@ var AUTH_CSS_CONTRACT_PARTS = [
|
|
|
1447
2891
|
"sso-button",
|
|
1448
2892
|
"alert",
|
|
1449
2893
|
"footer",
|
|
2894
|
+
"footer-note",
|
|
1450
2895
|
"link",
|
|
1451
2896
|
"cancel",
|
|
1452
2897
|
"tenant-list",
|
|
@@ -1465,6 +2910,19 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
|
|
|
1465
2910
|
"--axiom-auth-text-secondary",
|
|
1466
2911
|
"--axiom-auth-border",
|
|
1467
2912
|
"--axiom-auth-radius",
|
|
2913
|
+
"--axiom-auth-font-family",
|
|
2914
|
+
"--axiom-auth-title-size",
|
|
2915
|
+
"--axiom-auth-body-size",
|
|
2916
|
+
"--axiom-auth-form-gap",
|
|
2917
|
+
"--axiom-auth-field-bg",
|
|
2918
|
+
"--axiom-auth-field-border-width",
|
|
2919
|
+
"--axiom-auth-field-border-color",
|
|
2920
|
+
"--axiom-auth-field-radius",
|
|
2921
|
+
"--axiom-auth-image-fit",
|
|
2922
|
+
"--axiom-auth-image-position",
|
|
2923
|
+
"--axiom-auth-image-filter",
|
|
2924
|
+
"--axiom-auth-overlay-color",
|
|
2925
|
+
"--axiom-auth-overlay-opacity",
|
|
1468
2926
|
"--axiom-auth-page-padding",
|
|
1469
2927
|
"--axiom-auth-card-width",
|
|
1470
2928
|
"--axiom-auth-card-padding",
|
|
@@ -1478,15 +2936,34 @@ export {
|
|
|
1478
2936
|
AFFINITY_MISS_CODE,
|
|
1479
2937
|
AGENT_AFFINITY_HEADER,
|
|
1480
2938
|
ASR_DEFAULT_KEY,
|
|
2939
|
+
AUTH_BRANDING_CASES,
|
|
2940
|
+
AUTH_BRANDING_CASE_IDS,
|
|
2941
|
+
AUTH_BRANDING_PRESETS,
|
|
2942
|
+
AUTH_BRANDING_PRESET_IDS,
|
|
2943
|
+
AUTH_BRANDING_PRESET_RESET_FIELDS,
|
|
1481
2944
|
AUTH_CSS_CONTRACT_PARTS,
|
|
1482
2945
|
AUTH_CSS_CONTRACT_VARIABLES,
|
|
2946
|
+
AUTH_FONT_FAMILIES,
|
|
2947
|
+
AUTH_FONT_FAMILY_IDS,
|
|
2948
|
+
AUTH_SLOT_IDS,
|
|
2949
|
+
AUTH_SLOT_REGISTRY,
|
|
2950
|
+
AUTH_SURFACE_KINDS,
|
|
1483
2951
|
AgentType,
|
|
1484
2952
|
AuthError,
|
|
2953
|
+
BRANDING_ASSET_URL_KEYS,
|
|
2954
|
+
BRANDING_COLOR_KEYS,
|
|
2955
|
+
BRANDING_CSS_KEYS,
|
|
2956
|
+
BRANDING_ENUM_KEYS,
|
|
2957
|
+
BRANDING_INTEGER_KEYS,
|
|
2958
|
+
BRANDING_PERCENT_KEYS,
|
|
2959
|
+
BRANDING_TEXT_KEYS,
|
|
2960
|
+
BRANDING_VIDEO_URL_KEYS,
|
|
1485
2961
|
CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT,
|
|
1486
2962
|
CHANNEL_REPLY_JOB_LIST_LIMIT_MAX,
|
|
1487
2963
|
CHANNEL_REPLY_JOB_LIST_LIMIT_MIN,
|
|
1488
2964
|
COLLECTION_ENTRY_BATCH_MAX,
|
|
1489
2965
|
ChannelBindingMigrationConflictError,
|
|
2966
|
+
DEFAULT_LOGIN_LAYOUT,
|
|
1490
2967
|
DEFAULT_MODEL_KEY,
|
|
1491
2968
|
DEFAULT_PLATFORM_BRANDING,
|
|
1492
2969
|
DuplicateChannelBindingSubjectError,
|
|
@@ -1498,6 +2975,8 @@ export {
|
|
|
1498
2975
|
ExternalIdentityPersistError,
|
|
1499
2976
|
InvalidProjectCapabilityBundleConfigError,
|
|
1500
2977
|
LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION,
|
|
2978
|
+
LOGIN_LAYOUTS,
|
|
2979
|
+
LOGIN_LAYOUT_IDS,
|
|
1501
2980
|
LoggerType,
|
|
1502
2981
|
MAX_CUSTOM_CSS_LENGTH,
|
|
1503
2982
|
MAX_PENDING_EXECUTION_RESULTS_LIMIT,
|
|
@@ -1507,6 +2986,10 @@ export {
|
|
|
1507
2986
|
OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX,
|
|
1508
2987
|
OidcIdentityClaimConflictError,
|
|
1509
2988
|
OidcProviderConfigConflictError,
|
|
2989
|
+
PLATFORM_BRANDING_FIELDS,
|
|
2990
|
+
PLATFORM_BRANDING_FIELD_GROUPS,
|
|
2991
|
+
PLATFORM_BRANDING_FIELD_GROUP_ORDER,
|
|
2992
|
+
PLATFORM_BRANDING_FIELD_KEYS,
|
|
1510
2993
|
PLATFORM_MODEL_TENANT_ID,
|
|
1511
2994
|
PLATFORM_OPS_AGENT_ID,
|
|
1512
2995
|
PLATFORM_OPS_PROJECT_ID,
|
|
@@ -1551,14 +3034,18 @@ export {
|
|
|
1551
3034
|
hasTools,
|
|
1552
3035
|
interruptAnswerKeySchema,
|
|
1553
3036
|
isA2ARemoteAgentConfig,
|
|
3037
|
+
isAuthFontFamilyId,
|
|
1554
3038
|
isDeepAgentConfig,
|
|
1555
3039
|
isExecutionResultEventKey,
|
|
3040
|
+
isLoginLayoutId,
|
|
1556
3041
|
isMcpUiRef,
|
|
1557
3042
|
isPersonalMcpServerConfigStore,
|
|
1558
3043
|
isPlatformTenantId,
|
|
1559
3044
|
isProjectRoomEventId,
|
|
1560
3045
|
isWorkflowAgentConfig,
|
|
1561
3046
|
isWorkspacePublicRoomProjectId,
|
|
3047
|
+
layoutSpecificFields,
|
|
3048
|
+
layoutSupportsSurface,
|
|
1562
3049
|
normalizeAllowedPrivateHosts,
|
|
1563
3050
|
normalizeBrandingHost,
|
|
1564
3051
|
normalizeChannelReplyJobListLimit,
|
|
@@ -1578,6 +3065,7 @@ export {
|
|
|
1578
3065
|
projectRoomUserEventScope,
|
|
1579
3066
|
replaceTaskBeliefState,
|
|
1580
3067
|
requireProjectTaskWorkItemStore,
|
|
3068
|
+
resolveLoginLayout,
|
|
1581
3069
|
resolveRunScope,
|
|
1582
3070
|
runCancelSignalSchema,
|
|
1583
3071
|
snapshotExactArray,
|