@mittwald/ext-bridge 0.2.0-alpha.1020 → 0.2.0-alpha.1022
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/js/config/extractHostConfig.mjs.map +1 -1
- package/dist/types/config/extractHostConfig.d.ts +1 -2
- package/dist/types/config/extractHostConfig.d.ts.map +1 -1
- package/dist/types/config/types.d.ts +13 -1
- package/dist/types/config/types.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractHostConfig.mjs","sources":["../../../src/config/extractHostConfig.ts"],"sourcesContent":["import type { HostConfig } from \"
|
|
1
|
+
{"version":3,"file":"extractHostConfig.mjs","sources":["../../../src/config/extractHostConfig.ts"],"sourcesContent":["import type { ExtBridgeConfigInput, HostConfig } from \"./types\";\n\nexport const extractHostConfig = (\n config: ExtBridgeConfigInput,\n): HostConfig => ({\n language: config.language,\n theme: config.theme,\n});\n"],"names":[],"mappings":"AAEO,MAAM,iBAAA,GAAoB,CAC/B,MAAA,MACgB;AAAA,EAChB,UAAU,MAAA,CAAO,QAAA;AAAA,EACjB,OAAO,MAAA,CAAO;AAChB,CAAA;;;;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HostConfig } from '
|
|
2
|
-
import { ExtBridgeConfigInput } from './types';
|
|
1
|
+
import { ExtBridgeConfigInput, HostConfig } from './types';
|
|
3
2
|
export declare const extractHostConfig: (config: ExtBridgeConfigInput) => HostConfig;
|
|
4
3
|
//# sourceMappingURL=extractHostConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractHostConfig.d.ts","sourceRoot":"","sources":["../../../src/config/extractHostConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"extractHostConfig.d.ts","sourceRoot":"","sources":["../../../src/config/extractHostConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhE,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,oBAAoB,KAC3B,UAGD,CAAC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { config } from './schemas';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Configuration the mStudio host contributes to the extension config, on top of
|
|
5
|
+
* the values parsed from the environment.
|
|
6
|
+
*
|
|
7
|
+
* Breaking Change warning: Do not remove/rename/modify existing properties of
|
|
8
|
+
* this interface, as they might be used by existing extensions.
|
|
9
|
+
*
|
|
10
|
+
* When addding properties, make sure to release the host before all clients.
|
|
11
|
+
*/
|
|
12
|
+
export interface HostConfig {
|
|
13
|
+
language: string;
|
|
14
|
+
theme: "dark" | "light";
|
|
15
|
+
}
|
|
4
16
|
export type ExtBridgeConfig = z.infer<typeof config> & HostConfig;
|
|
5
17
|
export type ExtBridgeConfigInput = z.input<typeof config> & HostConfig;
|
|
6
18
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,GAAG,UAAU,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,GAAG,UAAU,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtBridgeConfig, ExtBridgeConfigInput } from './config/types';
|
|
2
2
|
import { readinessApi } from './readiness';
|
|
3
|
-
export type { ExtBridgeConfig, ExtBridgeConfigInput } from './config/types';
|
|
3
|
+
export type { ExtBridgeConfig, ExtBridgeConfigInput, HostConfig, } from './config/types';
|
|
4
4
|
type ReadinessApi = typeof readinessApi;
|
|
5
5
|
export interface ExtBridgeConnectionApi {
|
|
6
6
|
getSessionToken: () => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,GACX,MAAM,gBAAgB,CAAC;AAExB,KAAK,YAAY,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,UAAU,EAAE,sBAAsB,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,WAAW,EAAE,SAAS,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/ext-bridge",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1022",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bridge for mStudio embedded frontend extensions",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
"zod": "^4.4.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@mittwald/
|
|
49
|
-
"@mittwald/typescript-config": "0.2.0-alpha.1020",
|
|
48
|
+
"@mittwald/typescript-config": "0.2.0-alpha.1022",
|
|
50
49
|
"@types/node": "^25.9.3",
|
|
51
50
|
"@types/react": "^19.2",
|
|
52
51
|
"@types/react-dom": "^19.2",
|
|
@@ -79,5 +78,5 @@
|
|
|
79
78
|
"optional": true
|
|
80
79
|
}
|
|
81
80
|
},
|
|
82
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "6a929a24a2540a2e0cb4b993a57b8408efc23f8b"
|
|
83
82
|
}
|