@paroicms/public-server-lib 0.12.0 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/public-server-lib",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Common utilitaries for paroicms plugins (backend side).",
5
5
  "author": "Paroi Team",
6
6
  "repository": {
@@ -1,3 +1,4 @@
1
+ import type { Obj } from "@paroi/data-formatters-lib";
1
2
  import type { ImageSize } from "@paroicms/public-anywhere-lib";
2
3
  import type { Request, Response } from "express";
3
4
  import type { AppLog, PluginSiteContext } from "./plugin-site-context-types";
@@ -21,7 +22,7 @@ export interface PluginInitApi {
21
22
  registerFieldPreprocessor(dataType: string, handler: FieldPreprocessor): void;
22
23
  setPublicApiHandler(handler: PublicApiHandler): void;
23
24
  addHeadTag(...htmlTags: string[]): void;
24
- pluginConf: unknown;
25
+ pluginConf: PluginConf;
25
26
  }
26
27
 
27
28
  export type PublicApiHandler = (
@@ -55,3 +56,12 @@ export interface FieldPreprocessorOptions {
55
56
  absoluteUrls?: boolean;
56
57
  outputType?: "plainText";
57
58
  }
59
+
60
+ export interface PluginConfs {
61
+ [pluginName: string]: PluginConf;
62
+ }
63
+
64
+ export interface PluginConf {
65
+ [key: string]: unknown;
66
+ bo?: Obj;
67
+ }