@paroicms/server 1.13.0 → 1.14.1
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/context.d.ts +1 -1
- package/dist/helpers/url.helpers.d.ts +1 -1
- package/dist/modules/core/fields/quill-delta.js +1 -0
- package/dist/modules/core/fields/quill-delta.js.map +1 -1
- package/dist/modules/core/media/media.d.ts +2 -1
- package/dist/modules/core/media/media.js.map +1 -1
- package/dist/modules/core/site-info/site-info.resolver.js +3 -1
- package/dist/modules/core/site-info/site-info.resolver.js.map +1 -1
- package/dist/modules/core/site-info/site-info.schema.d.ts +6 -1
- package/dist/modules/core/site-info/site-info.schema.js +23 -2
- package/dist/modules/core/site-info/site-info.schema.js.map +1 -1
- package/dist/modules/core/unprotected/unprotected.resolver.js.map +1 -1
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +1 -1
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +12 -1
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +1 -1
- package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +1 -1
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +1 -1
- package/dist/modules/public-site/media-serve/media-serve.controller.js +1 -1
- package/dist/modules/public-site/media-serve/media-serve.controller.js.map +1 -1
- package/dist/public-payload/make-image-available.d.ts +1 -1
- package/dist/public-payload/make-image-available.js.map +1 -1
- package/dist/site-context/site-context.types.d.ts +1 -2
- package/dist/site-context/theme-conf-reader.d.ts +1 -1
- package/dist/site-context/theme-conf-reader.js +14 -3
- package/dist/site-context/theme-conf-reader.js.map +1 -1
- package/dist/types.to.json +1 -1
- package/package.json +3 -3
- package/schema.gql +7 -1
- package/dist/site-context/theme-conf-types.d.ts +0 -4
- package/dist/site-context/theme-conf-types.js +0 -3
- package/dist/site-context/theme-conf-types.js.map +0 -1
package/dist/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VariantName } from "@paroicms/
|
|
1
|
+
import type { VariantName } from "@paroicms/anywhere-lib";
|
|
2
2
|
import { type SimpleTranslator } from "./helpers/simple-i18n";
|
|
3
3
|
import type { SiteConf } from "./site-context/site-conf";
|
|
4
4
|
import type { SiteSchemaLibrary } from "./site-schema/site-schema-lib-reader";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompleteVariantName } from "@paroicms/
|
|
1
|
+
import type { CompleteVariantName } from "@paroicms/anywhere-lib";
|
|
2
2
|
import type { SiteConf } from "../site-context/site-conf";
|
|
3
3
|
import type { SiteContext } from "../site-context/site-context.types";
|
|
4
4
|
export declare function getBoUrl(siteConf: SiteConf, path?: string): string;
|
|
@@ -31,6 +31,7 @@ function imgBlotProcessing(value) {
|
|
|
31
31
|
const attributes = [];
|
|
32
32
|
attributes.push(`src="${(0, html_helpers_1.escapeHtml)(src)}"`);
|
|
33
33
|
attributes.push(`class="Img${align ? ` ${(0, html_helpers_1.escapeHtml)(align)}` : ""}"`);
|
|
34
|
+
attributes.push(`loading="lazy"`);
|
|
34
35
|
if (width !== undefined)
|
|
35
36
|
attributes.push(`width="${width}"`);
|
|
36
37
|
if (height !== undefined)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quill-delta.js","sourceRoot":"","sources":["../../../../src/modules/core/fields/quill-delta.ts"],"names":[],"mappings":";;;AAAA,oEAAyE;AAEzE,6DAAgE;AAChE,oEAA+D;AAC/D,8CAA+C;AAE/C,SAAgB,uBAAuB,CAAC,KAAU;IAChD,MAAM,SAAS,GAAG,IAAI,+CAAyB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3D,SAAS,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,EAAE;QACtC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC;QACxC,IAAI,IAAI,KAAK,KAAK;YAAE,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACpD,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Q,IAAA,yBAAU,EAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5C,UAAU,CAAC,IAAI,CAAC,aAAa,KAAK,CAAC,CAAC,CAAC,IAAI,IAAA,yBAAU,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACtE,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAClC,IAAI,KAAK,KAAK,SAAS;QAAE,UAAU,CAAC,IAAI,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC;IAC7D,IAAI,MAAM,KAAK,SAAS;QAAE,UAAU,CAAC,IAAI,CAAC,WAAW,MAAM,GAAG,CAAC,CAAC;IAEhE,OAAO,QAAQ,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACzC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import
|
|
2
|
+
import type { VariantName } from "@paroicms/anywhere-lib";
|
|
3
|
+
import { type ImageRef } from "@paroicms/server-image-cache-engine";
|
|
3
4
|
import type { SiteContext } from "../../../site-context/site-context.types";
|
|
4
5
|
export interface RegisteredImageVariant {
|
|
5
6
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.ts"],"names":[],"mappings":";;;AACA,mFAA4F;AAC5F,iFAAiF;AACjF,8DAAqE;AAU9D,KAAK,UAAU,oBAAoB,CACxC,WAAwD,EACxD,EACE,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,QAAQ,GAAG,KAAK,EAChB,YAAY,EACZ,WAAW,EACX,gBAAgB,GASjB;IAED,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAAE,GACtE,MAAM,WAAW,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAC9C,QAAQ;QACR,WAAW;QACX,QAAQ;QACR,gBAAgB;QAChB,IAAI;KACL,CAAC,CAAC;IAEL,OAAO;QACL,GAAG,EAAE,IAAA,mCAAqB,EAAC,WAAW,EAAE;YACtC,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,SAAS;YACT,mBAAmB;YACnB,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;YAC3D,IAAI;YACJ,WAAW;SACZ,CAAC;QACF,KAAK;QACL,MAAM;QACN,SAAS;KACV,CAAC;AACJ,CAAC;AA1CD,oDA0CC;AAEM,KAAK,UAAU,mBAAmB,CAAC,WAAwB,EAAE,UAAkB;IACpF,MAAM,MAAM,GAAG,MAAM,IAAA,kDAAsB,EAAC,UAAU,CAAC,CAAC;IACxD,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC;QACtC,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,MAAM,EAAE,IAAA,gDAAwB,GAAE;QAClC,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,MAAM;YACX,CAAC,CAAC;gBACE,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;aAC1B;YACH,CAAC,CAAC,SAAS;QACb,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU;KACvC,CAAC,CAAC;AACL,CAAC;AAlBD,kDAkBC"}
|
|
@@ -21,9 +21,11 @@ const site_info_schema_1 = require("./site-info.schema");
|
|
|
21
21
|
let SiteInfoResolver = class SiteInfoResolver {
|
|
22
22
|
async siteInfo({ fqdn }) {
|
|
23
23
|
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
24
|
+
const themeConf = siteContext.themeConf;
|
|
24
25
|
return {
|
|
25
26
|
currentThemeConf: {
|
|
26
|
-
|
|
27
|
+
pixelRatio: themeConf.pixelRatio,
|
|
28
|
+
fTextImages: themeConf.fTextImages,
|
|
27
29
|
},
|
|
28
30
|
};
|
|
29
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-info.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA2D;AAC3D,qEAAoE;AAEpE,2DAAsD;AACtD,yDAAwD;AAIjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAGrB,AAAN,KAAK,CAAC,QAAQ,CAAY,EAAE,IAAI,EAAkB;QAChD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO;YACL,gBAAgB,EAAE;gBAChB,
|
|
1
|
+
{"version":3,"file":"site-info.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA2D;AAC3D,qEAAoE;AAEpE,2DAAsD;AACtD,yDAAwD;AAIjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAGrB,AAAN,KAAK,CAAC,QAAQ,CAAY,EAAE,IAAI,EAAkB;QAChD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACxC,OAAO;YACL,gBAAgB,EAAE;gBAChB,UAAU,EAAE,SAAS,CAAC,UAAU;gBAChC,WAAW,EAAE,SAAS,CAAC,WAAW;aACnC;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAbY,4CAAgB;AAGrB;IAFL,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAChB,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;gDASxB;2BAZU,gBAAgB;IAF5B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;GACtB,gBAAgB,CAa5B"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export declare class CurrentThemeConfObjectType {
|
|
2
|
-
|
|
2
|
+
pixelRatio: number;
|
|
3
|
+
fTextImages: FTextImageObjectType[];
|
|
3
4
|
}
|
|
4
5
|
export declare class SiteInfoObjectType {
|
|
5
6
|
currentThemeConf: CurrentThemeConfObjectType;
|
|
6
7
|
}
|
|
8
|
+
export declare class FTextImageObjectType {
|
|
9
|
+
displaySize: string;
|
|
10
|
+
realSize: string;
|
|
11
|
+
}
|
|
@@ -9,14 +9,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SiteInfoObjectType = exports.CurrentThemeConfObjectType = void 0;
|
|
12
|
+
exports.FTextImageObjectType = exports.SiteInfoObjectType = exports.CurrentThemeConfObjectType = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
let CurrentThemeConfObjectType = class CurrentThemeConfObjectType {
|
|
15
|
+
pixelRatio;
|
|
15
16
|
fTextImages;
|
|
16
17
|
};
|
|
17
18
|
exports.CurrentThemeConfObjectType = CurrentThemeConfObjectType;
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(() =>
|
|
20
|
+
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], CurrentThemeConfObjectType.prototype, "pixelRatio", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, graphql_1.Field)(() => [FTextImageObjectType]),
|
|
20
25
|
__metadata("design:type", Array)
|
|
21
26
|
], CurrentThemeConfObjectType.prototype, "fTextImages", void 0);
|
|
22
27
|
exports.CurrentThemeConfObjectType = CurrentThemeConfObjectType = __decorate([
|
|
@@ -33,4 +38,20 @@ __decorate([
|
|
|
33
38
|
exports.SiteInfoObjectType = SiteInfoObjectType = __decorate([
|
|
34
39
|
(0, graphql_1.ObjectType)("SiteInfo")
|
|
35
40
|
], SiteInfoObjectType);
|
|
41
|
+
let FTextImageObjectType = class FTextImageObjectType {
|
|
42
|
+
displaySize;
|
|
43
|
+
realSize;
|
|
44
|
+
};
|
|
45
|
+
exports.FTextImageObjectType = FTextImageObjectType;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, graphql_1.Field)(() => String),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], FTextImageObjectType.prototype, "displaySize", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, graphql_1.Field)(() => String),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], FTextImageObjectType.prototype, "realSize", void 0);
|
|
54
|
+
exports.FTextImageObjectType = FTextImageObjectType = __decorate([
|
|
55
|
+
(0, graphql_1.ObjectType)("FTextImage")
|
|
56
|
+
], FTextImageObjectType);
|
|
36
57
|
//# sourceMappingURL=site-info.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-info.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"site-info.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2D;AAGpD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAErC,UAAU,CAAU;IAGpB,WAAW,CAA0B;CACtC,CAAA;AANY,gEAA0B;AAErC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;8DACC;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC;;+DACC;qCAL1B,0BAA0B;IADtC,IAAA,oBAAU,EAAC,kBAAkB,CAAC;GAClB,0BAA0B,CAMtC;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,gBAAgB,CAA8B;CAC/C,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BACrB,0BAA0B;4DAAC;6BAFnC,kBAAkB;IAD9B,IAAA,oBAAU,EAAC,UAAU,CAAC;GACV,kBAAkB,CAG9B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,WAAW,CAAU;IAGrB,QAAQ,CAAU;CACnB,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACF;+BALP,oBAAoB;IADhC,IAAA,oBAAU,EAAC,YAAY,CAAC;GACZ,oBAAoB,CAMhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unprotected.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/unprotected/unprotected.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAyE;
|
|
1
|
+
{"version":3,"file":"unprotected.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/unprotected/unprotected.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAyE;AAEzE,mFAAwE;AACxE,iFAG+C;AAC/C,8CAA0E;AAC1E,qEAAoE;AAGpE,0CAAsD;AACtD,6DAI8B;AAGvB,IAAM,mBAAmB,GAAzB,MAA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EAAE,UAAU,CAAC,KAAK;QACvB,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Context,
|
|
1
|
+
import { Hash, type Context, type Liquid, type TagToken, type TopLevelToken } from "liquidjs";
|
|
2
2
|
import type { SiteContext } from "../../../site-context/site-context.types";
|
|
3
3
|
export declare function createUseImageLiquidJsTag(siteContext: SiteContext): {
|
|
4
4
|
new (tagToken: TagToken, remainTokens: TopLevelToken[], liquid: Liquid): {
|
|
@@ -26,7 +26,18 @@ function createUseImageLiquidJsTag(siteContext) {
|
|
|
26
26
|
ctx.bottom()[this.#varName] = cacheVal.val;
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const realSize = (0, server_image_cache_engine_1.applyRatioToVariantName)(options.size, siteContext.themeConf.pixelRatio);
|
|
30
|
+
const image = (yield (0, make_image_available_1.makeImageAvailable)(siteContext, renderingContext, {
|
|
31
|
+
...options,
|
|
32
|
+
size: realSize,
|
|
33
|
+
}));
|
|
34
|
+
if (!image)
|
|
35
|
+
throw new Error("useImage: missing image");
|
|
36
|
+
const val = {
|
|
37
|
+
...image,
|
|
38
|
+
width: Math.round(image.width / siteContext.themeConf.pixelRatio),
|
|
39
|
+
height: Math.round(image.height / siteContext.themeConf.pixelRatio),
|
|
40
|
+
};
|
|
30
41
|
renderingContext.setValueIntoCache(cacheKey, val);
|
|
31
42
|
ctx.bottom()[this.#varName] = val;
|
|
32
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-image-tag.js","sourceRoot":"","sources":["../../../../src/modules/public-site/liquidjs-tags/use-image-tag.ts"],"names":[],"mappings":";;;AAAA,oEAAmF;AACnF,
|
|
1
|
+
{"version":3,"file":"use-image-tag.js","sourceRoot":"","sources":["../../../../src/modules/public-site/liquidjs-tags/use-image-tag.ts"],"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AA0C,IAAI,EAAE,CAAC,CAAC;IAE5F,MAAM,GAAG,GAAG,IAAA,mCAAa,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,IAAA,mCAAa,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAA,oCAAc,EAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEjD,IAAI,GAAG;QAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACtD,IAAI,MAAM;QAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC5D,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_media-serve-helpers.js","sourceRoot":"","sources":["../../../../src/modules/public-site/media-serve/_media-serve-helpers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"_media-serve-helpers.js","sourceRoot":"","sources":["../../../../src/modules/public-site/media-serve/_media-serve-helpers.ts"],"names":[],"mappings":";;;AACA,mFAA4E;AAE5E,SAAgB,eAAe,CAC7B,UAAkB;IAElB,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC7C,IAAI,QAAQ,KAAK,CAAC,CAAC;QAAE,OAAO;IAC5B,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACnD,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,MAAM,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC;IACpC,IAAI,CAAC,IAAA,iDAAqB,EAAC,WAAW,CAAC;QAAE,OAAO;IAChD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAC/B,CAAC;AAXD,0CAWC"}
|
|
@@ -212,7 +212,7 @@ async function tryToCreateImageVariant(siteContext, options) {
|
|
|
212
212
|
width: media.width,
|
|
213
213
|
height: media.height,
|
|
214
214
|
}, {
|
|
215
|
-
authorisedVariantNames: siteContext.themeConf.fTextImages,
|
|
215
|
+
authorisedVariantNames: siteContext.themeConf.fTextImages.map((val) => val.realSize),
|
|
216
216
|
variantName,
|
|
217
217
|
slug: (0, server_image_cache_engine_1.generateImageSlug)(media.originalName),
|
|
218
218
|
dependsOnUsedKey: "themeConf.fTextImages",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-serve.controller.js","sourceRoot":"","sources":["../../../../src/modules/public-site/media-serve/media-serve.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;
|
|
1
|
+
{"version":3,"file":"media-serve.controller.js","sourceRoot":"","sources":["../../../../src/modules/public-site/media-serve/media-serve.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AAGxB,mFAA+F;AAE/F,oEAA+D;AAC/D,gEAAsF;AACtF,8DAAyF;AACzF,qEAAoE;AAEpE,iEAAyD;AAIlD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAEzB,AAAN,KAAK,CAAC,SAAS,CACM,QAAgB,EACd,UAAkB,EAChC,GAAa,EACb,GAAY;QAEnB,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACvD,MAAM,YAAY,GAAG,UAAU,CAAC;QAEhC,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,WAAW,EAAE;YAC5C,QAAQ;YACR,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC;SAC1C,CAAC,CAAC;QAEH,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE,CA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liquidjs-tools/liquidjs-rendering/rendering-context";
|
|
3
3
|
import type { SiteContext } from "../site-context/site-context.types";
|
|
4
4
|
export interface PublicImage {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-image-available.js","sourceRoot":"","sources":["../../src/public-payload/make-image-available.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"make-image-available.js","sourceRoot":"","sources":["../../src/public-payload/make-image-available.ts"],"names":[],"mappings":";;;AACA,mFAAwE;AACxE,wDAA+D;AAsCxD,KAAK,UAAU,kBAAkB,CACtC,WAAwB,EACxB,gBAAkC,EAClC,EACE,QAAQ,EACR,IAAI,EACJ,QAAQ,GAAG,KAAK,GACmD;IAErE,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEhE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,IAAI,QAAQ,IAAI,QAAQ;YAAE,OAAO;QACjC,MAAM,IAAI,KAAK,CAAC,kBAAkB,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,GAAG,sBAAsB,CAAC,CAAC;IAEvF,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,GAC5E,MAAM,WAAW,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAC9C,QAAQ,EAAE;YACR,QAAQ,EAAE,KAAK,CAAC,GAAG;YACnB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,SAAS,EAAE,KAAK,CAAC,SAAS;SAC3B;QACD,WAAW,EAAE,IAAI;QACjB,QAAQ;QACR,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ;QAC3C,IAAI,EAAE,IAAA,6CAAiB,EAAC,KAAK,CAAC,YAAY,CAAC;KAC5C,CAAC,CAAC;IAEL,OAAO;QACL,GAAG,EAAE,IAAA,mCAAqB,EAAC,WAAW,EAAE;YACtC,QAAQ,EAAE,KAAK,CAAC,GAAG;YACnB,SAAS;YACT,mBAAmB,EAAE,mBAAmB;YACxC,eAAe;YACf,IAAI;SACL,CAAC;QACF,KAAK;QACL,MAAM;QACN,SAAS;KACV,CAAC;AACJ,CAAC;AA3CD,gDA2CC;AAED,SAAS,gBAAgB,CAAC,QAA8C;IACtE,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;AAC5D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SiteSchema } from "@paroicms/anywhere-lib";
|
|
1
|
+
import type { SiteSchema, ThemeConf } from "@paroicms/anywhere-lib";
|
|
2
2
|
import type { MediaStorage } from "@paroicms/server-database-media-storage";
|
|
3
3
|
import type { ImageCacheEngine } from "@paroicms/server-image-cache-engine";
|
|
4
4
|
import type { TextCacheSystem } from "@paroicms/server-text-cache-system";
|
|
@@ -7,7 +7,6 @@ import type { DataSource } from "typeorm";
|
|
|
7
7
|
import type { SimpleTranslator } from "../helpers/simple-i18n";
|
|
8
8
|
import type { Plugin } from "../plugins/plugin-loader";
|
|
9
9
|
import type { AppLog } from "../share/pino-app-log";
|
|
10
|
-
import type { ThemeConf } from "./theme-conf-types";
|
|
11
10
|
export interface SiteContext {
|
|
12
11
|
fqdn: string;
|
|
13
12
|
siteName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { type ThemeConf } from "@paroicms/anywhere-lib";
|
|
1
2
|
import type { JsonOfThemeConf } from "../typeonly/theme-json-types";
|
|
2
|
-
import type { ThemeConf } from "./theme-conf-types";
|
|
3
3
|
export declare function readThemeConfFile(themeDir: string): Promise<ThemeConf>;
|
|
4
4
|
export declare function formatThemeConf(val: JsonOfThemeConf): ThemeConf;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatThemeConf = exports.readThemeConfFile = void 0;
|
|
4
|
-
const promises_1 = require("node:fs/promises");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
4
|
const anywhere_lib_1 = require("@paroicms/anywhere-lib");
|
|
7
5
|
const server_image_cache_engine_1 = require("@paroicms/server-image-cache-engine");
|
|
6
|
+
const promises_1 = require("node:fs/promises");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
8
|
const context_1 = require("../context");
|
|
9
9
|
async function readThemeConfFile(themeDir) {
|
|
10
10
|
const themeFile = (0, node_path_1.join)(themeDir, "theme.json");
|
|
@@ -23,7 +23,18 @@ async function readThemeConfFile(themeDir) {
|
|
|
23
23
|
exports.readThemeConfFile = readThemeConfFile;
|
|
24
24
|
function formatThemeConf(val) {
|
|
25
25
|
val.fTextImages.forEach(checkVariantName);
|
|
26
|
-
|
|
26
|
+
const pixelRatio = val.pixelRatio ?? 1;
|
|
27
|
+
const fTextImages = val.fTextImages.map((value) => {
|
|
28
|
+
checkVariantName(value);
|
|
29
|
+
return {
|
|
30
|
+
displaySize: value,
|
|
31
|
+
realSize: (0, server_image_cache_engine_1.applyRatioToVariantName)(value, pixelRatio),
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
fTextImages,
|
|
36
|
+
pixelRatio,
|
|
37
|
+
};
|
|
27
38
|
}
|
|
28
39
|
exports.formatThemeConf = formatThemeConf;
|
|
29
40
|
function checkVariantName(val) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-conf-reader.js","sourceRoot":"","sources":["../../src/site-context/theme-conf-reader.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,yCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"theme-conf-reader.js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CAAC,CAAC;IAEH,OAAO;QACL,WAAW;QACX,UAAU;KACX,CAAC;AACJ,CAAC;AAfD,0CAeC;AAED,SAAS,gBAAgB,CAAC,GAAW;IACnC,IAAI,CAAC,IAAA,yCAAa,EAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,GAAG,CAAC,CAAC;AACvE,CAAC"}
|
package/dist/types.to.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultiSiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"}},{"name":"log","type":{"kind":"localRef","refName":"LogConf"}},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"graphqlDevTools","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"generateMissingDatabases","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuth"},"optional":true},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"},"optional":true},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"},"optional":true},{"name":"imageProcessor","type":{"kind":"localRef","refName":"ImageProcessorConf"},"optional":true},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultiSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platform","type":{"kind":"interface","properties":[{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}}]}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"boPublicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"ModernizedSitePackConf"},{"kind":"localRef","refName":"LegacyFqdnSitePackConf"},{"kind":"localRef","refName":"LegacySubDomainSitePackConf"}]}]},{"name":"ModernizedSitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"LegacyFqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"LegacySubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuth","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"docComment":"The common schema is currently an internal file. Here is its typing.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes that can be used in the websites.\n\n@example [\"en\", \"fr\"]`"},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"docComment":"This properties are part of a site schema, and part of the internal library as well.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes of the website. The first language is the default language.\n\n@example `[\"en\", \"fr\"]`"},{"name":"usePlugins","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"List of plugins that are used in the schema.\n@example [\"site:video\"]"},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Allows you to load other configuration schema in module form\n@example [\"media-policies\", \"simple-page\"]"},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true,"docComment":"The different parts that can be used in documents."},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"Media policies"},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true,"docComment":"We can set the image compression quality here. The list must be ordered from the lowest area\nto the highest.\n@example\n```json\n{\n \"areaLimitPx\": 120000,\n \"quality\": 90\n},\n{\n \"areaLimitPx\": 750000,\n \"quality\": 80\n},\n{\n \"quality\": 70\n}\n```"}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The fields of the site. They will be added to the required fields `[\"title\", \"contactEmail\", \"favicon\", \"ogImage\"]`.\n\n@example `[\"logo\", \"slogan\", \"phone\"]`"}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"docComment":"The site schema module","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields to add as site properties.\n\nParoiCMS is a dynamic CMS; then it does not impose a structure regarding the\nsite configuration values. As an example of configuration data, we have the\ntitle, logo, slogan, contacts etc...\n\n@see {@link JsonOfFieldType}"},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields of a document\n\nThe structure of a document is not imposed. You can choose to\nhave for your document to have the following fields: title, content, media gallery.\n@see {@link JsonOfFieldType}\n@see {@link JsonOfModuleDocumentType}"},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true,"docComment":"Allows you to add the different types of documents that will be handled on the site.\n@see {@link JsonOfModuleDocumentType}"}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"docComment":"A document is a web page. For example, a block article, a service, or a contact page is\na document. What all these elements have in common is that they can be edited in the back-office\nand published on the public site.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the document type."},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"lang","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true,"docComment":"@example\n```json\n \"route\": {\n \"en\": \"posts\",\n \"fr\": \"articles\"\n },\n```"},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true,"docComment":"@example `[\"default\", 6]`"},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Types of children that are allowed for the document."},{"name":"childOrdering","type":{"kind":"localRef","refName":"JsonOfChildOrdering"},"optional":true,"docComment":"We define how to order the children here."},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The maximum number of children."},{"name":"partLists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartListSchema"}},"optional":true,"docComment":"The lists of parts in the document."},{"name":"useTaxonomies","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true,"docComment":"The list of taxonomies used in the document."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `false` means that the document is just a hierarchy parent for other documents. But it\nhas no content itself."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the document."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"The name of the media policy."},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@see[Open Graph Protocol](https://ogp.me/)\n@example `\"article\"`"},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `true` means that the document will be automatically published without being a\ndraft before."}]},{"name":"JsonOfChildOrdering","exported":true,"docComment":"Child odering method.\n@default \"manual\"","kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"docComment":"Document type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfPartListSchema","exported":true,"docComment":"This is the definition of a list of parts.","kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part list."},{"name":"orderBy","type":{"kind":"literal","literal":"manual"},"docComment":"Only `\"manual\"` is currently supported."},{"name":"partLeafTypes","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Part types that can be in the list."},{"name":"partLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum number of parts in the list."}]},{"name":"JsonOfPartSchema","exported":true,"docComment":"This is part schema","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part type."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"docComment":"Always `true`."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the part."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Give the name of the media policy, if there is one."}]},{"name":"JsonOfUseTaxonomy","exported":true,"docComment":"This object reprensents a link to a taxonomy. A taxonomy is a document type.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the taxonomy's document type."},{"name":"relation","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"docComment":"A _single_ relation means that the document can only have one term. A _multiple_ relation\nmeans that the document can have multiple terms."},{"name":"withLeadTerm","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"optional":true,"docComment":"A _lead term_ is a term that is shown first."}]},{"name":"JsonOfFieldType","exported":true,"docComment":"This is field type. It can be varchar, text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]}]},{"name":"JsonOfFieldTypeBase","exported":true,"docComment":"This is the base type for other types: varchar text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]},"docComment":"The field value can be attached to\n- `leaf`: all the translations of the same document will share the same value\n- `section`: each translation will have its own value."},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The field name."},{"name":"plugin","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]},{"name":"JsonOfVarcharFieldType","exported":true,"docComment":"This is the base type for data varchar types: stringVarchar, numberVarchar, booleanVarchar\n@see {@link JsonOfStringVarcharFieldType}\n@see {@link JsonOfNumberVarcharFieldType}\n@see {@link JsonOfBooleanVarcharFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"docComment":"This is string type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"docComment":"This is number type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@example `\"EUR\"`"}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"docComment":"This is boolean type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"docComment":"@see {@link JsonOfFTextFieldType}\n@see {@link JsonOfJsonFieldType}","kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"docComment":"Formatted Text field (with HTML content).","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"\n@example"},{"name":"backOffice","type":{"kind":"localRef","refName":"JsonOfFTextFieldBackOffice"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfJsonFieldType","exported":true,"docComment":"This is JSON type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfFTextFieldBackOffice","exported":true,"docComment":"This is the back office properties of a formatted text field (ie. a text editor).","kind":"interface","properties":[{"name":"editorRows","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"},"docComment":"\n@example"},{"name":"dataType","type":{"kind":"literal","literal":"media"},"docComment":"\n@example"},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"\n@example"},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaPolicy","exported":true,"docComment":"These properties define the rules that are applied to medias.","kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The internal name of the policy.\n@example `\"myPolicyName\"`"},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a document.\n@example `10`"},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a part.\n@example `10`"},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true,"docComment":"Rules about non-image medias (like PDF files)."},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true,"docComment":"Rules about images."}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"docComment":"These properties define the rules that are applied to\ndocument uploaded in document and document part","kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"}]},{"name":"JsonOfImagePolicy","exported":true,"docComment":"These properties define the rules that are applied to\nimages contained in document and document part","kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum area (width × height, in pixels) of an image.\n@example `2000000`"}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"docComment":"These properties define the rules applied to image\ncompression across all sites","kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The quality will apply for image with area smaller than this value.\n@example `600000`"},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"},"docComment":"Webp quality loss, in percents.\n@example `80`"}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}
|
|
1
|
+
{"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultiSiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"}},{"name":"log","type":{"kind":"localRef","refName":"LogConf"}},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"graphqlDevTools","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"generateMissingDatabases","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuth"},"optional":true},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"},"optional":true},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"},"optional":true},{"name":"imageProcessor","type":{"kind":"localRef","refName":"ImageProcessorConf"},"optional":true},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultiSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platform","type":{"kind":"interface","properties":[{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}}]}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"boPublicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"ModernizedSitePackConf"},{"kind":"localRef","refName":"LegacyFqdnSitePackConf"},{"kind":"localRef","refName":"LegacySubDomainSitePackConf"}]}]},{"name":"ModernizedSitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"LegacyFqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"LegacySubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuth","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"docComment":"The common schema is currently an internal file. Here is its typing.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes that can be used in the websites.\n\n@example [\"en\", \"fr\"]`"},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"docComment":"This properties are part of a site schema, and part of the internal library as well.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes of the website. The first language is the default language.\n\n@example `[\"en\", \"fr\"]`"},{"name":"usePlugins","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"List of plugins that are used in the schema.\n@example [\"site:video\"]"},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Allows you to load other configuration schema in module form\n@example [\"media-policies\", \"simple-page\"]"},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true,"docComment":"The different parts that can be used in documents."},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"Media policies"},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true,"docComment":"We can set the image compression quality here. The list must be ordered from the lowest area\nto the highest.\n@example\n```json\n{\n \"areaLimitPx\": 120000,\n \"quality\": 90\n},\n{\n \"areaLimitPx\": 750000,\n \"quality\": 80\n},\n{\n \"quality\": 70\n}\n```"}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The fields of the site. They will be added to the required fields `[\"title\", \"contactEmail\", \"favicon\", \"ogImage\"]`.\n\n@example `[\"logo\", \"slogan\", \"phone\"]`"}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"docComment":"The site schema module","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields to add as site properties.\n\nParoiCMS is a dynamic CMS; then it does not impose a structure regarding the\nsite configuration values. As an example of configuration data, we have the\ntitle, logo, slogan, contacts etc...\n\n@see {@link JsonOfFieldType}"},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields of a document\n\nThe structure of a document is not imposed. You can choose to\nhave for your document to have the following fields: title, content, media gallery.\n@see {@link JsonOfFieldType}\n@see {@link JsonOfModuleDocumentType}"},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true,"docComment":"Allows you to add the different types of documents that will be handled on the site.\n@see {@link JsonOfModuleDocumentType}"}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"docComment":"A document is a web page. For example, a block article, a service, or a contact page is\na document. What all these elements have in common is that they can be edited in the back-office\nand published on the public site.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the document type."},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"lang","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true,"docComment":"@example\n```json\n \"route\": {\n \"en\": \"posts\",\n \"fr\": \"articles\"\n },\n```"},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true,"docComment":"@example `[\"default\", 6]`"},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Types of children that are allowed for the document."},{"name":"childOrdering","type":{"kind":"localRef","refName":"JsonOfChildOrdering"},"optional":true,"docComment":"We define how to order the children here."},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The maximum number of children."},{"name":"partLists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartListSchema"}},"optional":true,"docComment":"The lists of parts in the document."},{"name":"useTaxonomies","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true,"docComment":"The list of taxonomies used in the document."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `false` means that the document is just a hierarchy parent for other documents. But it\nhas no content itself."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the document."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"The name of the media policy."},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@see[Open Graph Protocol](https://ogp.me/)\n@example `\"article\"`"},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `true` means that the document will be automatically published without being a\ndraft before."}]},{"name":"JsonOfChildOrdering","exported":true,"docComment":"Child odering method.\n@default \"manual\"","kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"docComment":"Document type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfPartListSchema","exported":true,"docComment":"This is the definition of a list of parts.","kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part list."},{"name":"orderBy","type":{"kind":"literal","literal":"manual"},"docComment":"Only `\"manual\"` is currently supported."},{"name":"partLeafTypes","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Part types that can be in the list."},{"name":"partLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum number of parts in the list."}]},{"name":"JsonOfPartSchema","exported":true,"docComment":"This is part schema","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part type."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"docComment":"Always `true`."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the part."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Give the name of the media policy, if there is one."}]},{"name":"JsonOfUseTaxonomy","exported":true,"docComment":"This object reprensents a link to a taxonomy. A taxonomy is a document type.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the taxonomy's document type."},{"name":"relation","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"docComment":"A _single_ relation means that the document can only have one term. A _multiple_ relation\nmeans that the document can have multiple terms."},{"name":"withLeadTerm","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"optional":true,"docComment":"A _lead term_ is a term that is shown first."}]},{"name":"JsonOfFieldType","exported":true,"docComment":"This is field type. It can be varchar, text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]}]},{"name":"JsonOfFieldTypeBase","exported":true,"docComment":"This is the base type for other types: varchar text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]},"docComment":"The field value can be attached to\n- `leaf`: all the translations of the same document will share the same value\n- `section`: each translation will have its own value."},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The field name."},{"name":"plugin","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]},{"name":"JsonOfVarcharFieldType","exported":true,"docComment":"This is the base type for data varchar types: stringVarchar, numberVarchar, booleanVarchar\n@see {@link JsonOfStringVarcharFieldType}\n@see {@link JsonOfNumberVarcharFieldType}\n@see {@link JsonOfBooleanVarcharFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"docComment":"This is string type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"docComment":"This is number type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@example `\"EUR\"`"}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"docComment":"This is boolean type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"docComment":"@see {@link JsonOfFTextFieldType}\n@see {@link JsonOfJsonFieldType}","kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"docComment":"Formatted Text field (with HTML content).","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"\n@example"},{"name":"backOffice","type":{"kind":"localRef","refName":"JsonOfFTextFieldBackOffice"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfJsonFieldType","exported":true,"docComment":"This is JSON type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfFTextFieldBackOffice","exported":true,"docComment":"This is the back office properties of a formatted text field (ie. a text editor).","kind":"interface","properties":[{"name":"editorRows","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"},"docComment":"\n@example"},{"name":"dataType","type":{"kind":"literal","literal":"media"},"docComment":"\n@example"},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"\n@example"},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaPolicy","exported":true,"docComment":"These properties define the rules that are applied to medias.","kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The internal name of the policy.\n@example `\"myPolicyName\"`"},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a document.\n@example `10`"},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a part.\n@example `10`"},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true,"docComment":"Rules about non-image medias (like PDF files)."},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true,"docComment":"Rules about images."}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"docComment":"These properties define the rules that are applied to\ndocument uploaded in document and document part","kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"}]},{"name":"JsonOfImagePolicy","exported":true,"docComment":"These properties define the rules that are applied to\nimages contained in document and document part","kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum area (width × height, in pixels) of an image.\n@example `2000000`"}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"docComment":"These properties define the rules applied to image\ncompression across all sites","kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The quality will apply for image with area smaller than this value.\n@example `600000`"},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"},"docComment":"Webp quality loss, in percents.\n@example `80`"}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"pixelRatio","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Default value is `1`."},{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "The ParoiCMS server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@paroi/async-lib": "~0.1.2",
|
|
49
49
|
"@paroi/data-formatters-lib": "~0.1.2",
|
|
50
50
|
"@paroicms/anywhere-lib": "1.4.0",
|
|
51
|
-
"@paroicms/bo": "1.
|
|
51
|
+
"@paroicms/bo": "1.12.1",
|
|
52
52
|
"@paroicms/plugin-lib": "0.3.0",
|
|
53
53
|
"@paroicms/server-database-media-storage": "1.3.0",
|
|
54
|
-
"@paroicms/server-image-cache-engine": "1.
|
|
54
|
+
"@paroicms/server-image-cache-engine": "1.3.0",
|
|
55
55
|
"@paroicms/server-lib": "1.2.0",
|
|
56
56
|
"@paroicms/server-text-cache-system": "1.2.0",
|
|
57
57
|
"@paroicms/site-app": "1.4.0",
|
package/schema.gql
CHANGED
|
@@ -63,7 +63,8 @@ input CreateLeafWithDocumentValues {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
type CurrentThemeConf {
|
|
66
|
-
fTextImages: [
|
|
66
|
+
fTextImages: [FTextImage!]!
|
|
67
|
+
pixelRatio: Float!
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
"""
|
|
@@ -84,6 +85,11 @@ type Document {
|
|
|
84
85
|
url: String!
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
type FTextImage {
|
|
89
|
+
displaySize: String!
|
|
90
|
+
realSize: String!
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
type FaviconThumb {
|
|
88
94
|
height: Int!
|
|
89
95
|
mediaType: String!
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-conf-types.js","sourceRoot":"","sources":["../../src/site-context/theme-conf-types.ts"],"names":[],"mappings":""}
|