@inf-monkeys-tech/monkeys 1.0.5 → 1.0.7

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.
@@ -11097,12 +11097,25 @@ var AssetVariantsSchema = z9.object({
11097
11097
  dark: z9.string().optional()
11098
11098
  }).strict();
11099
11099
  var ThemeHeadbarSchema = z9.object({
11100
- theme: z9.enum(["fixed", "card", "glassy", "ghost", "bsd-blue"]).optional(),
11100
+ theme: z9.enum(["card", "glassy", "ghost"]).optional(),
11101
11101
  navPosition: z9.enum(["left", "center", "right"]).optional(),
11102
11102
  actions: z9.union([z9.literal("*"), z9.array(ContractIdentifierSchema)]).optional(),
11103
11103
  profile: z9.union([z9.literal("*"), z9.array(ContractIdentifierSchema)]).optional(),
11104
11104
  showTeamQuota: z9.boolean().optional()
11105
11105
  }).strict();
11106
+ var TenantHeadbarModuleLeafSchema = z9.object({
11107
+ id: ContractIdentifierSchema,
11108
+ extraInfo: z9.boolean().optional(),
11109
+ displayName: z9.union([z9.string(), z9.record(LocaleIdentifierSchema, z9.string())]).optional(),
11110
+ visible: z9.boolean().optional(),
11111
+ disabled: z9.boolean().optional(),
11112
+ icon: z9.string().optional(),
11113
+ showQuickSwitcher: z9.boolean().optional(),
11114
+ showSidebar: z9.boolean().optional()
11115
+ }).strict();
11116
+ var TenantHeadbarModuleItemSchema = TenantHeadbarModuleLeafSchema.extend({
11117
+ children: z9.array(TenantHeadbarModuleLeafSchema).optional()
11118
+ }).strict();
11106
11119
  var KernelHeadbarSchema = z9.object({
11107
11120
  theme: z9.literal("card").optional(),
11108
11121
  layoutMode: z9.enum(["boxed", "full-bleed"]).optional(),
@@ -11260,6 +11273,37 @@ var LoginPageSchema = z9.object({
11260
11273
  }).strict().optional(),
11261
11274
  customCss: z9.string().optional()
11262
11275
  }).strict();
11276
+ var LandingPageDefaultConfigSchema = z9.object({
11277
+ mode: z9.literal("default")
11278
+ }).strict();
11279
+ var LandingPageMarkdownConfigSchema = z9.object({
11280
+ mode: z9.literal("markdown"),
11281
+ content: z9.string()
11282
+ }).strict();
11283
+ var LandingPageHtmlConfigSchema = z9.object({
11284
+ mode: z9.literal("html"),
11285
+ content: z9.string()
11286
+ }).strict();
11287
+ var LandingPageIframeConfigSchema = z9.object({
11288
+ mode: z9.literal("iframe"),
11289
+ url: z9.string().refine((value) => {
11290
+ if (/^\/(?!\/)/.test(value)) {
11291
+ return !value.includes("\\");
11292
+ }
11293
+ try {
11294
+ const url = new URL(value);
11295
+ return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password;
11296
+ } catch {
11297
+ return false;
11298
+ }
11299
+ }, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
11300
+ }).strict();
11301
+ var TenantLandingPageConfigSchema = z9.discriminatedUnion("mode", [
11302
+ LandingPageDefaultConfigSchema,
11303
+ LandingPageMarkdownConfigSchema,
11304
+ LandingPageHtmlConfigSchema,
11305
+ LandingPageIframeConfigSchema
11306
+ ]);
11263
11307
  var TenantApplicationConfigSchema = z9.object({
11264
11308
  theme: z9.object({
11265
11309
  id: z9.string().optional(),
@@ -11298,18 +11342,7 @@ var TenantApplicationConfigSchema = z9.object({
11298
11342
  monkeysSpaceSidebar: z9.union([z9.literal("*"), z9.array(ContractIdentifierSchema)]).optional(),
11299
11343
  monkeysSpaceHeadbar: z9.union([
11300
11344
  z9.literal("*"),
11301
- z9.array(
11302
- z9.object({
11303
- id: ContractIdentifierSchema,
11304
- extraInfo: z9.boolean().optional(),
11305
- displayName: z9.union([z9.string(), z9.record(LocaleIdentifierSchema, z9.string())]).optional(),
11306
- visible: z9.boolean().optional(),
11307
- disabled: z9.boolean().optional(),
11308
- icon: z9.string().optional(),
11309
- showQuickSwitcher: z9.boolean().optional(),
11310
- showSidebar: z9.boolean().optional()
11311
- }).strict()
11312
- )
11345
+ z9.array(TenantHeadbarModuleItemSchema)
11313
11346
  ]).optional(),
11314
11347
  settingsSidebar: z9.union([z9.literal("*"), z9.array(ContractIdentifierSchema)]).optional()
11315
11348
  }).strict().optional(),
@@ -11385,6 +11418,7 @@ var TenantApplicationConfigSchema = z9.object({
11385
11418
  density: z9.enum(["compact", "default", "comfortable"]).optional()
11386
11419
  }).strict().optional()
11387
11420
  }).strict(),
11421
+ landingPage: TenantLandingPageConfigSchema.optional(),
11388
11422
  auth: z9.object({
11389
11423
  enabled: z9.array(ContractIdentifierSchema).default([]),
11390
11424
  oidc: z9.object({ buttonText: z9.string().optional(), autoSignin: z9.boolean().optional() }).strict().optional(),