@lars_hagemann/mediaserver-frontend-plugin-types 1.0.3 → 1.1.1-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.
- package/package.json +2 -1
- package/types/plugin.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lars_hagemann/mediaserver-frontend-plugin-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1-beta",
|
|
4
4
|
"files": [
|
|
5
5
|
"types"
|
|
6
6
|
],
|
|
7
7
|
"type": "module",
|
|
8
8
|
"types": "types/plugin.d.ts",
|
|
9
9
|
"repository": {
|
|
10
|
+
"type": "git",
|
|
10
11
|
"url": "https://github.com/de-treelab/mediaserver"
|
|
11
12
|
},
|
|
12
13
|
"scripts": {
|
package/types/plugin.d.ts
CHANGED
|
@@ -10004,10 +10004,22 @@ 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;
|
|
10010
10011
|
Render: React.FC<RenderContext>;
|
|
10011
10012
|
Diashow: React.FC<DiashowContext>;
|
|
10012
10013
|
description: string;
|
|
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
|
+
};
|
|
10013
10025
|
};
|