@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.
package/lib/esm/index.mjs CHANGED
@@ -10020,12 +10020,25 @@ var AssetVariantsSchema = z11.object({
10020
10020
  dark: z11.string().optional()
10021
10021
  }).strict();
10022
10022
  var ThemeHeadbarSchema = z11.object({
10023
- theme: z11.enum(["fixed", "card", "glassy", "ghost", "bsd-blue"]).optional(),
10023
+ theme: z11.enum(["card", "glassy", "ghost"]).optional(),
10024
10024
  navPosition: z11.enum(["left", "center", "right"]).optional(),
10025
10025
  actions: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional(),
10026
10026
  profile: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional(),
10027
10027
  showTeamQuota: z11.boolean().optional()
10028
10028
  }).strict();
10029
+ var TenantHeadbarModuleLeafSchema = z11.object({
10030
+ id: ContractIdentifierSchema,
10031
+ extraInfo: z11.boolean().optional(),
10032
+ displayName: z11.union([z11.string(), z11.record(LocaleIdentifierSchema, z11.string())]).optional(),
10033
+ visible: z11.boolean().optional(),
10034
+ disabled: z11.boolean().optional(),
10035
+ icon: z11.string().optional(),
10036
+ showQuickSwitcher: z11.boolean().optional(),
10037
+ showSidebar: z11.boolean().optional()
10038
+ }).strict();
10039
+ var TenantHeadbarModuleItemSchema = TenantHeadbarModuleLeafSchema.extend({
10040
+ children: z11.array(TenantHeadbarModuleLeafSchema).optional()
10041
+ }).strict();
10029
10042
  var KernelHeadbarSchema = z11.object({
10030
10043
  theme: z11.literal("card").optional(),
10031
10044
  layoutMode: z11.enum(["boxed", "full-bleed"]).optional(),
@@ -10183,6 +10196,37 @@ var LoginPageSchema = z11.object({
10183
10196
  }).strict().optional(),
10184
10197
  customCss: z11.string().optional()
10185
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
+ ]);
10186
10230
  var TenantApplicationConfigSchema = z11.object({
10187
10231
  theme: z11.object({
10188
10232
  id: z11.string().optional(),
@@ -10221,18 +10265,7 @@ var TenantApplicationConfigSchema = z11.object({
10221
10265
  monkeysSpaceSidebar: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional(),
10222
10266
  monkeysSpaceHeadbar: z11.union([
10223
10267
  z11.literal("*"),
10224
- z11.array(
10225
- z11.object({
10226
- id: ContractIdentifierSchema,
10227
- extraInfo: z11.boolean().optional(),
10228
- displayName: z11.union([z11.string(), z11.record(LocaleIdentifierSchema, z11.string())]).optional(),
10229
- visible: z11.boolean().optional(),
10230
- disabled: z11.boolean().optional(),
10231
- icon: z11.string().optional(),
10232
- showQuickSwitcher: z11.boolean().optional(),
10233
- showSidebar: z11.boolean().optional()
10234
- }).strict()
10235
- )
10268
+ z11.array(TenantHeadbarModuleItemSchema)
10236
10269
  ]).optional(),
10237
10270
  settingsSidebar: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional()
10238
10271
  }).strict().optional(),
@@ -10308,6 +10341,7 @@ var TenantApplicationConfigSchema = z11.object({
10308
10341
  density: z11.enum(["compact", "default", "comfortable"]).optional()
10309
10342
  }).strict().optional()
10310
10343
  }).strict(),
10344
+ landingPage: TenantLandingPageConfigSchema.optional(),
10311
10345
  auth: z11.object({
10312
10346
  enabled: z11.array(ContractIdentifierSchema).default([]),
10313
10347
  oidc: z11.object({ buttonText: z11.string().optional(), autoSignin: z11.boolean().optional() }).strict().optional(),
@@ -12388,12 +12422,15 @@ export {
12388
12422
  TenantDataBindingSchema,
12389
12423
  TenantDataBindingsSchema,
12390
12424
  TenantDesignTokensConfigSchema,
12425
+ TenantHeadbarModuleItemSchema,
12426
+ TenantLandingPageConfigSchema,
12391
12427
  TenantProductConfigSchema,
12392
12428
  TenantRuntimeConfigSchema,
12393
12429
  TenantWorkbenchConfigSchema,
12394
12430
  TenantWorkbenchPageContextSchema,
12395
12431
  TenantWorkbenchPageEnvelopeSchema,
12396
12432
  TenantWorkbenchPageGroupSchema,
12433
+ ThemeHeadbarSchema,
12397
12434
  ThemeTokenGroupSchema,
12398
12435
  ThemeTokenSchema,
12399
12436
  ThemeTokenTypeSchema,