@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/contracts/tenant.d.ts +49 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +46 -1
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +33 -0
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +33 -0
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +32 -0
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +33 -0
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +68 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +68 -0
- package/lib/schemas/index.d.ts +25 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +3 -2
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -11273,6 +11273,37 @@ var LoginPageSchema = z9.object({
|
|
|
11273
11273
|
}).strict().optional(),
|
|
11274
11274
|
customCss: z9.string().optional()
|
|
11275
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
|
+
]);
|
|
11276
11307
|
var TenantApplicationConfigSchema = z9.object({
|
|
11277
11308
|
theme: z9.object({
|
|
11278
11309
|
id: z9.string().optional(),
|
|
@@ -11387,6 +11418,7 @@ var TenantApplicationConfigSchema = z9.object({
|
|
|
11387
11418
|
density: z9.enum(["compact", "default", "comfortable"]).optional()
|
|
11388
11419
|
}).strict().optional()
|
|
11389
11420
|
}).strict(),
|
|
11421
|
+
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
11390
11422
|
auth: z9.object({
|
|
11391
11423
|
enabled: z9.array(ContractIdentifierSchema).default([]),
|
|
11392
11424
|
oidc: z9.object({ buttonText: z9.string().optional(), autoSignin: z9.boolean().optional() }).strict().optional(),
|