@lars_hagemann/mediaserver-frontend-plugin-types 1.1.0-beta → 1.1.2-beta

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/plugin.d.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lars_hagemann/mediaserver-frontend-plugin-types",
3
- "version": "1.1.0-beta",
3
+ "version": "1.1.2-beta",
4
4
  "files": [
5
5
  "types"
6
6
  ],
package/types/plugin.d.ts CHANGED
@@ -10004,6 +10004,7 @@ export type DiashowContext = RenderContext & {
10004
10004
  nextDocument: () => void;
10005
10005
  defaultTimeout: number;
10006
10006
  };
10007
+ export type ThemeTokens = Record<string, string>;
10007
10008
  export type FileTypePlugin = {
10008
10009
  matcher: (fileType: string) => boolean;
10009
10010
  icon: (ReactIcons: ReactIcons) => IconType;
@@ -10011,4 +10012,14 @@ export type FileTypePlugin = {
10011
10012
  Diashow: React.FC<DiashowContext>;
10012
10013
  description: string;
10013
10014
  fetchMode?: "download" | "stream";
10015
+ theme?: ThemeTokens;
10016
+ };
10017
+ export type ThemePlugin = {
10018
+ name: string;
10019
+ description: string;
10020
+ tokens: ThemeTokens;
10021
+ preview?: {
10022
+ accent: string;
10023
+ background: string;
10024
+ };
10014
10025
  };