@openpeepshq/common 0.5.12 → 0.6.0
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/dist/types/api.d.ts +1 -0
- package/dist/types/config.d.ts +3 -0
- package/dist/types/config.js +6 -0
- package/package.json +1 -1
- package/src/types/config.ts +6 -0
package/dist/types/api.d.ts
CHANGED
|
@@ -38309,6 +38309,7 @@ export declare const serverInfoSchema: z.ZodObject<{
|
|
|
38309
38309
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
38310
38310
|
privacyPolicy: z.ZodOptional<z.ZodString>;
|
|
38311
38311
|
termsAndConditions: z.ZodOptional<z.ZodString>;
|
|
38312
|
+
bugReportUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodURL]>>;
|
|
38312
38313
|
}, z.core.$strip>;
|
|
38313
38314
|
content: z.ZodObject<{
|
|
38314
38315
|
aboutPage: z.ZodOptional<z.ZodString>;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -687,6 +687,7 @@ export declare const communityConfigSchemaFactory: (_sanitize?: boolean) => z.Zo
|
|
|
687
687
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
688
688
|
privacyPolicy: z.ZodOptional<z.ZodString>;
|
|
689
689
|
termsAndConditions: z.ZodOptional<z.ZodString>;
|
|
690
|
+
bugReportUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodURL]>>;
|
|
690
691
|
}, z.core.$strip>;
|
|
691
692
|
content: z.ZodObject<{
|
|
692
693
|
aboutPage: z.ZodOptional<z.ZodString>;
|
|
@@ -768,6 +769,7 @@ export declare const communityConfigSchema: z.ZodObject<{
|
|
|
768
769
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
769
770
|
privacyPolicy: z.ZodOptional<z.ZodString>;
|
|
770
771
|
termsAndConditions: z.ZodOptional<z.ZodString>;
|
|
772
|
+
bugReportUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodURL]>>;
|
|
771
773
|
}, z.core.$strip>;
|
|
772
774
|
content: z.ZodObject<{
|
|
773
775
|
aboutPage: z.ZodOptional<z.ZodString>;
|
|
@@ -849,6 +851,7 @@ export declare const communityConfigSanitizedSchema: z.ZodObject<{
|
|
|
849
851
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
850
852
|
privacyPolicy: z.ZodOptional<z.ZodString>;
|
|
851
853
|
termsAndConditions: z.ZodOptional<z.ZodString>;
|
|
854
|
+
bugReportUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodURL]>>;
|
|
852
855
|
}, z.core.$strip>;
|
|
853
856
|
content: z.ZodObject<{
|
|
854
857
|
aboutPage: z.ZodOptional<z.ZodString>;
|
package/dist/types/config.js
CHANGED
|
@@ -326,6 +326,12 @@ export const communityConfigSchemaFactory = (_sanitize) => z.object({
|
|
|
326
326
|
contactEmail: z.string().email().optional(),
|
|
327
327
|
privacyPolicy: z.string().optional(),
|
|
328
328
|
termsAndConditions: z.string().optional(),
|
|
329
|
+
/** External bug report form; a "Report a bug" link is shown when set.
|
|
330
|
+
* `''` is the cleared value — pruneEmptyConfigStrings drops it on save.
|
|
331
|
+
* Only http(s) URLs are accepted; the render side re-checks as well. */
|
|
332
|
+
bugReportUrl: z
|
|
333
|
+
.union([z.literal(''), z.url({ protocol: /^https?$/ })])
|
|
334
|
+
.optional(),
|
|
329
335
|
}),
|
|
330
336
|
content: z.object({
|
|
331
337
|
aboutPage: z.string().optional(),
|
package/package.json
CHANGED
package/src/types/config.ts
CHANGED
|
@@ -395,6 +395,12 @@ export const communityConfigSchemaFactory = (_sanitize?: boolean) =>
|
|
|
395
395
|
contactEmail: z.string().email().optional(),
|
|
396
396
|
privacyPolicy: z.string().optional(),
|
|
397
397
|
termsAndConditions: z.string().optional(),
|
|
398
|
+
/** External bug report form; a "Report a bug" link is shown when set.
|
|
399
|
+
* `''` is the cleared value — pruneEmptyConfigStrings drops it on save.
|
|
400
|
+
* Only http(s) URLs are accepted; the render side re-checks as well. */
|
|
401
|
+
bugReportUrl: z
|
|
402
|
+
.union([z.literal(''), z.url({ protocol: /^https?$/ })])
|
|
403
|
+
.optional(),
|
|
398
404
|
}),
|
|
399
405
|
content: z.object({
|
|
400
406
|
aboutPage: z.string().optional(),
|