@inf-monkeys-tech/monkeys 1.0.6 → 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.
package/lib/esm/index.mjs CHANGED
@@ -10196,6 +10196,37 @@ var LoginPageSchema = z11.object({
10196
10196
  }).strict().optional(),
10197
10197
  customCss: z11.string().optional()
10198
10198
  }).strict();
10199
+ var LandingPageDefaultConfigSchema = z11.object({
10200
+ mode: z11.literal("default")
10201
+ }).strict();
10202
+ var LandingPageMarkdownConfigSchema = z11.object({
10203
+ mode: z11.literal("markdown"),
10204
+ content: z11.string()
10205
+ }).strict();
10206
+ var LandingPageHtmlConfigSchema = z11.object({
10207
+ mode: z11.literal("html"),
10208
+ content: z11.string()
10209
+ }).strict();
10210
+ var LandingPageIframeConfigSchema = z11.object({
10211
+ mode: z11.literal("iframe"),
10212
+ url: z11.string().refine((value) => {
10213
+ if (/^\/(?!\/)/.test(value)) {
10214
+ return !value.includes("\\");
10215
+ }
10216
+ try {
10217
+ const url = new URL(value);
10218
+ return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password;
10219
+ } catch {
10220
+ return false;
10221
+ }
10222
+ }, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
10223
+ }).strict();
10224
+ var TenantLandingPageConfigSchema = z11.discriminatedUnion("mode", [
10225
+ LandingPageDefaultConfigSchema,
10226
+ LandingPageMarkdownConfigSchema,
10227
+ LandingPageHtmlConfigSchema,
10228
+ LandingPageIframeConfigSchema
10229
+ ]);
10199
10230
  var TenantApplicationConfigSchema = z11.object({
10200
10231
  theme: z11.object({
10201
10232
  id: z11.string().optional(),
@@ -10310,6 +10341,7 @@ var TenantApplicationConfigSchema = z11.object({
10310
10341
  density: z11.enum(["compact", "default", "comfortable"]).optional()
10311
10342
  }).strict().optional()
10312
10343
  }).strict(),
10344
+ landingPage: TenantLandingPageConfigSchema.optional(),
10313
10345
  auth: z11.object({
10314
10346
  enabled: z11.array(ContractIdentifierSchema).default([]),
10315
10347
  oidc: z11.object({ buttonText: z11.string().optional(), autoSignin: z11.boolean().optional() }).strict().optional(),
@@ -12391,6 +12423,7 @@ export {
12391
12423
  TenantDataBindingsSchema,
12392
12424
  TenantDesignTokensConfigSchema,
12393
12425
  TenantHeadbarModuleItemSchema,
12426
+ TenantLandingPageConfigSchema,
12394
12427
  TenantProductConfigSchema,
12395
12428
  TenantRuntimeConfigSchema,
12396
12429
  TenantWorkbenchConfigSchema,