@mittwald/ext-bridge 0.2.0-alpha.139 → 0.2.0-alpha.146

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.
@@ -7,11 +7,11 @@ const baseConfig = z.object({
7
7
  extensionInstanceId: z.string()
8
8
  });
9
9
  const contextParameters = z.object({
10
- appId: z.string().optional(),
10
+ appInstallationId: z.string().optional(),
11
11
  projectId: z.string().optional(),
12
12
  customerId: z.string().optional()
13
13
  }).catchall(z.string());
14
- const config = z.union([baseConfig, contextParameters]);
14
+ const config = baseConfig.merge(contextParameters);
15
15
 
16
16
  export { config };
17
17
  //# sourceMappingURL=schemas.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.mjs","sources":["../../../src/config/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nconst baseConfig = z.object({\n sessionId: z.string(),\n userId: z.string(),\n extensionId: z.string(),\n extensionInstanceId: z.string(),\n});\n\nconst contextParameters = z\n .object({\n appId: z.string().optional(),\n projectId: z.string().optional(),\n customerId: z.string().optional(),\n })\n .catchall(z.string());\n\nexport const config = z.union([baseConfig, contextParameters]);\n"],"names":[],"mappings":";;AAEA,MAAM,UAAA,GAAa,EAAE,MAAO,CAAA;AAAA,EAC1B,SAAA,EAAW,EAAE,MAAO,EAAA;AAAA,EACpB,MAAA,EAAQ,EAAE,MAAO,EAAA;AAAA,EACjB,WAAA,EAAa,EAAE,MAAO,EAAA;AAAA,EACtB,mBAAA,EAAqB,EAAE,MAAO;AAChC,CAAC,CAAA;AAED,MAAM,iBAAA,GAAoB,EACvB,MAAO,CAAA;AAAA,EACN,KAAO,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS,EAAA;AAAA,EAC3B,SAAW,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS,EAAA;AAAA,EAC/B,UAAY,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS;AAClC,CAAC,CACA,CAAA,QAAA,CAAS,CAAE,CAAA,MAAA,EAAQ,CAAA;AAEf,MAAM,SAAS,CAAE,CAAA,KAAA,CAAM,CAAC,UAAA,EAAY,iBAAiB,CAAC;;;;"}
1
+ {"version":3,"file":"schemas.mjs","sources":["../../../src/config/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nconst baseConfig = z.object({\n sessionId: z.string(),\n userId: z.string(),\n extensionId: z.string(),\n extensionInstanceId: z.string(),\n});\n\nconst contextParameters = z\n .object({\n appInstallationId: z.string().optional(),\n projectId: z.string().optional(),\n customerId: z.string().optional(),\n })\n .catchall(z.string());\n\nexport const config = baseConfig.merge(contextParameters);\n"],"names":[],"mappings":";;AAEA,MAAM,UAAA,GAAa,EAAE,MAAO,CAAA;AAAA,EAC1B,SAAA,EAAW,EAAE,MAAO,EAAA;AAAA,EACpB,MAAA,EAAQ,EAAE,MAAO,EAAA;AAAA,EACjB,WAAA,EAAa,EAAE,MAAO,EAAA;AAAA,EACtB,mBAAA,EAAqB,EAAE,MAAO;AAChC,CAAC,CAAA;AAED,MAAM,iBAAA,GAAoB,EACvB,MAAO,CAAA;AAAA,EACN,iBAAmB,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS,EAAA;AAAA,EACvC,SAAW,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS,EAAA;AAAA,EAC/B,UAAY,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS;AAClC,CAAC,CACA,CAAA,QAAA,CAAS,CAAE,CAAA,MAAA,EAAQ,CAAA;AAET,MAAA,MAAA,GAAS,UAAW,CAAA,KAAA,CAAM,iBAAiB;;;;"}
@@ -1,11 +1,11 @@
1
- export declare const parseConfig: (something: unknown) => {
2
- sessionId: string;
3
- userId: string;
4
- extensionId: string;
5
- extensionInstanceId: string;
6
- } | import('zod').objectOutputType<{
7
- appId: import('zod').ZodOptional<import('zod').ZodString>;
1
+ export declare const parseConfig: (something: unknown) => import('zod').objectOutputType<import("zod").objectUtil.extendShape<{
2
+ sessionId: import('zod').ZodString;
3
+ userId: import('zod').ZodString;
4
+ extensionId: import('zod').ZodString;
5
+ extensionInstanceId: import('zod').ZodString;
6
+ }, {
7
+ appInstallationId: import('zod').ZodOptional<import('zod').ZodString>;
8
8
  projectId: import('zod').ZodOptional<import('zod').ZodString>;
9
9
  customerId: import('zod').ZodOptional<import('zod').ZodString>;
10
- }, import('zod').ZodString, "strip">;
10
+ }>, import('zod').ZodString, "strip">;
11
11
  //# sourceMappingURL=parse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;oCAM7C,CAAC"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;qCAM7C,CAAC"}
@@ -1,30 +1,30 @@
1
1
  import { z } from 'zod';
2
- export declare const config: z.ZodUnion<[z.ZodObject<{
2
+ export declare const config: z.ZodObject<z.objectUtil.extendShape<{
3
3
  sessionId: z.ZodString;
4
4
  userId: z.ZodString;
5
5
  extensionId: z.ZodString;
6
6
  extensionInstanceId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- sessionId: string;
9
- userId: string;
10
- extensionId: string;
11
- extensionInstanceId: string;
12
7
  }, {
13
- sessionId: string;
14
- userId: string;
15
- extensionId: string;
16
- extensionInstanceId: string;
17
- }>, z.ZodObject<{
18
- appId: z.ZodOptional<z.ZodString>;
8
+ appInstallationId: z.ZodOptional<z.ZodString>;
19
9
  projectId: z.ZodOptional<z.ZodString>;
20
10
  customerId: z.ZodOptional<z.ZodString>;
21
- }, "strip", z.ZodString, z.objectOutputType<{
22
- appId: z.ZodOptional<z.ZodString>;
11
+ }>, "strip", z.ZodString, z.objectOutputType<z.objectUtil.extendShape<{
12
+ sessionId: z.ZodString;
13
+ userId: z.ZodString;
14
+ extensionId: z.ZodString;
15
+ extensionInstanceId: z.ZodString;
16
+ }, {
17
+ appInstallationId: z.ZodOptional<z.ZodString>;
23
18
  projectId: z.ZodOptional<z.ZodString>;
24
19
  customerId: z.ZodOptional<z.ZodString>;
25
- }, z.ZodString, "strip">, z.objectInputType<{
26
- appId: z.ZodOptional<z.ZodString>;
20
+ }>, z.ZodString, "strip">, z.objectInputType<z.objectUtil.extendShape<{
21
+ sessionId: z.ZodString;
22
+ userId: z.ZodString;
23
+ extensionId: z.ZodString;
24
+ extensionInstanceId: z.ZodString;
25
+ }, {
26
+ appInstallationId: z.ZodOptional<z.ZodString>;
27
27
  projectId: z.ZodOptional<z.ZodString>;
28
28
  customerId: z.ZodOptional<z.ZodString>;
29
- }, z.ZodString, "strip">>]>;
29
+ }>, z.ZodString, "strip">>;
30
30
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA2C,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=schemas.test-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.test-types.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.test-types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/ext-bridge",
3
- "version": "0.2.0-alpha.139",
3
+ "version": "0.2.0-alpha.146",
4
4
  "type": "module",
5
5
  "description": "Bridge for mStudio embedded frontend extensions",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -49,7 +49,8 @@
49
49
  "vite": "^6.2.1",
50
50
  "vite-plugin-checker": "^0.9.0",
51
51
  "vite-plugin-dts": "^4.5.3",
52
- "vite-plugin-externalize-deps": "^0.9.0"
52
+ "vite-plugin-externalize-deps": "^0.9.0",
53
+ "vitest": "^3.1.1"
53
54
  },
54
55
  "peerDependencies": {
55
56
  "react": "^19",
@@ -63,5 +64,5 @@
63
64
  "optional": true
64
65
  }
65
66
  },
66
- "gitHead": "1dd82b2361b7040fde444e53e2d36b56c6daee45"
67
+ "gitHead": "9f021c5f88a4597c2ca9550777c110e485bd1690"
67
68
  }