@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.
@@ -9950,12 +9950,25 @@ var AssetVariantsSchema = z11.object({
9950
9950
  dark: z11.string().optional()
9951
9951
  }).strict();
9952
9952
  var ThemeHeadbarSchema = z11.object({
9953
- theme: z11.enum(["fixed", "card", "glassy", "ghost", "bsd-blue"]).optional(),
9953
+ theme: z11.enum(["card", "glassy", "ghost"]).optional(),
9954
9954
  navPosition: z11.enum(["left", "center", "right"]).optional(),
9955
9955
  actions: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional(),
9956
9956
  profile: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional(),
9957
9957
  showTeamQuota: z11.boolean().optional()
9958
9958
  }).strict();
9959
+ var TenantHeadbarModuleLeafSchema = z11.object({
9960
+ id: ContractIdentifierSchema,
9961
+ extraInfo: z11.boolean().optional(),
9962
+ displayName: z11.union([z11.string(), z11.record(LocaleIdentifierSchema, z11.string())]).optional(),
9963
+ visible: z11.boolean().optional(),
9964
+ disabled: z11.boolean().optional(),
9965
+ icon: z11.string().optional(),
9966
+ showQuickSwitcher: z11.boolean().optional(),
9967
+ showSidebar: z11.boolean().optional()
9968
+ }).strict();
9969
+ var TenantHeadbarModuleItemSchema = TenantHeadbarModuleLeafSchema.extend({
9970
+ children: z11.array(TenantHeadbarModuleLeafSchema).optional()
9971
+ }).strict();
9959
9972
  var KernelHeadbarSchema = z11.object({
9960
9973
  theme: z11.literal("card").optional(),
9961
9974
  layoutMode: z11.enum(["boxed", "full-bleed"]).optional(),
@@ -10113,6 +10126,37 @@ var LoginPageSchema = z11.object({
10113
10126
  }).strict().optional(),
10114
10127
  customCss: z11.string().optional()
10115
10128
  }).strict();
10129
+ var LandingPageDefaultConfigSchema = z11.object({
10130
+ mode: z11.literal("default")
10131
+ }).strict();
10132
+ var LandingPageMarkdownConfigSchema = z11.object({
10133
+ mode: z11.literal("markdown"),
10134
+ content: z11.string()
10135
+ }).strict();
10136
+ var LandingPageHtmlConfigSchema = z11.object({
10137
+ mode: z11.literal("html"),
10138
+ content: z11.string()
10139
+ }).strict();
10140
+ var LandingPageIframeConfigSchema = z11.object({
10141
+ mode: z11.literal("iframe"),
10142
+ url: z11.string().refine((value) => {
10143
+ if (/^\/(?!\/)/.test(value)) {
10144
+ return !value.includes("\\");
10145
+ }
10146
+ try {
10147
+ const url = new URL(value);
10148
+ return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password;
10149
+ } catch {
10150
+ return false;
10151
+ }
10152
+ }, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
10153
+ }).strict();
10154
+ var TenantLandingPageConfigSchema = z11.discriminatedUnion("mode", [
10155
+ LandingPageDefaultConfigSchema,
10156
+ LandingPageMarkdownConfigSchema,
10157
+ LandingPageHtmlConfigSchema,
10158
+ LandingPageIframeConfigSchema
10159
+ ]);
10116
10160
  var TenantApplicationConfigSchema = z11.object({
10117
10161
  theme: z11.object({
10118
10162
  id: z11.string().optional(),
@@ -10151,18 +10195,7 @@ var TenantApplicationConfigSchema = z11.object({
10151
10195
  monkeysSpaceSidebar: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional(),
10152
10196
  monkeysSpaceHeadbar: z11.union([
10153
10197
  z11.literal("*"),
10154
- z11.array(
10155
- z11.object({
10156
- id: ContractIdentifierSchema,
10157
- extraInfo: z11.boolean().optional(),
10158
- displayName: z11.union([z11.string(), z11.record(LocaleIdentifierSchema, z11.string())]).optional(),
10159
- visible: z11.boolean().optional(),
10160
- disabled: z11.boolean().optional(),
10161
- icon: z11.string().optional(),
10162
- showQuickSwitcher: z11.boolean().optional(),
10163
- showSidebar: z11.boolean().optional()
10164
- }).strict()
10165
- )
10198
+ z11.array(TenantHeadbarModuleItemSchema)
10166
10199
  ]).optional(),
10167
10200
  settingsSidebar: z11.union([z11.literal("*"), z11.array(ContractIdentifierSchema)]).optional()
10168
10201
  }).strict().optional(),
@@ -10238,6 +10271,7 @@ var TenantApplicationConfigSchema = z11.object({
10238
10271
  density: z11.enum(["compact", "default", "comfortable"]).optional()
10239
10272
  }).strict().optional()
10240
10273
  }).strict(),
10274
+ landingPage: TenantLandingPageConfigSchema.optional(),
10241
10275
  auth: z11.object({
10242
10276
  enabled: z11.array(ContractIdentifierSchema).default([]),
10243
10277
  oidc: z11.object({ buttonText: z11.string().optional(), autoSignin: z11.boolean().optional() }).strict().optional(),
@@ -11158,6 +11192,7 @@ export {
11158
11192
  SourceRecordRefSchema,
11159
11193
  StorageLocatorSchema,
11160
11194
  TenantApplicationConfigSchema,
11195
+ TenantLandingPageConfigSchema,
11161
11196
  TenantProductConfigSchema,
11162
11197
  TenantRuntimeConfigSchema,
11163
11198
  TenantWorkbenchConfigSchema,