@mittwald/ext-bridge 0.2.0-alpha.648 → 0.2.0-alpha.650

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.
@@ -4,14 +4,15 @@ const baseConfig = z.object({
4
4
  sessionId: z.string(),
5
5
  userId: z.string(),
6
6
  extensionId: z.string(),
7
- extensionInstanceId: z.string()
7
+ extensionInstanceId: z.string(),
8
+ variantKey: z.string().optional().nullable()
8
9
  });
9
10
  const contextParameters = z.object({
10
11
  appInstallationId: z.string().optional(),
11
12
  projectId: z.string().optional(),
12
13
  customerId: z.string().optional()
13
- }).catchall(z.string());
14
- const config = baseConfig.merge(contextParameters);
14
+ });
15
+ const config = baseConfig.extend(contextParameters.shape).catchall(z.string().optional().nullable());
15
16
 
16
17
  export { config };
17
18
  //# 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 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,MAAA,CAAO;AAAA,EAC1B,SAAA,EAAW,EAAE,MAAA,EAAO;AAAA,EACpB,MAAA,EAAQ,EAAE,MAAA,EAAO;AAAA,EACjB,WAAA,EAAa,EAAE,MAAA,EAAO;AAAA,EACtB,mBAAA,EAAqB,EAAE,MAAA;AACzB,CAAC,CAAA;AAED,MAAM,iBAAA,GAAoB,EACvB,MAAA,CAAO;AAAA,EACN,iBAAA,EAAmB,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACvC,SAAA,EAAW,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC/B,UAAA,EAAY,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AACzB,CAAC,CAAA,CACA,QAAA,CAAS,CAAA,CAAE,MAAA,EAAQ,CAAA;AAEf,MAAM,MAAA,GAAS,UAAA,CAAW,KAAA,CAAM,iBAAiB;;;;"}
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 variantKey: z.string().optional().nullable(),\n});\n\nconst contextParameters = z.object({\n appInstallationId: z.string().optional(),\n projectId: z.string().optional(),\n customerId: z.string().optional(),\n});\n\nexport const config = baseConfig\n .extend(contextParameters.shape)\n .catchall(z.string().optional().nullable());\n"],"names":[],"mappings":";;AAEA,MAAM,UAAA,GAAa,EAAE,MAAA,CAAO;AAAA,EAC1B,SAAA,EAAW,EAAE,MAAA,EAAO;AAAA,EACpB,MAAA,EAAQ,EAAE,MAAA,EAAO;AAAA,EACjB,WAAA,EAAa,EAAE,MAAA,EAAO;AAAA,EACtB,mBAAA,EAAqB,EAAE,MAAA,EAAO;AAAA,EAC9B,YAAY,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,GAAW,QAAA;AACpC,CAAC,CAAA;AAED,MAAM,iBAAA,GAAoB,EAAE,MAAA,CAAO;AAAA,EACjC,iBAAA,EAAmB,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACvC,SAAA,EAAW,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC/B,UAAA,EAAY,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AACzB,CAAC,CAAA;AAEM,MAAM,MAAA,GAAS,UAAA,CACnB,MAAA,CAAO,iBAAA,CAAkB,KAAK,CAAA,CAC9B,QAAA,CAAS,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAAE,UAAU;;;;"}
@@ -1,9 +1,10 @@
1
1
  export declare const getConfig: () => Promise<{
2
- [x: string]: string;
2
+ [x: string]: string | null | undefined;
3
3
  sessionId: string;
4
4
  userId: string;
5
5
  extensionId: string;
6
6
  extensionInstanceId: string;
7
+ variantKey?: string | null | undefined;
7
8
  appInstallationId?: string | undefined;
8
9
  projectId?: string | undefined;
9
10
  customerId?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/config/getConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;EAGrB,CAAC"}
1
+ {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/config/getConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;EAGrB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  export declare const parseConfig: (something: unknown) => {
2
- [x: string]: string;
2
+ [x: string]: string | null | undefined;
3
3
  sessionId: string;
4
4
  userId: string;
5
5
  extensionId: string;
6
6
  extensionInstanceId: string;
7
+ variantKey?: string | null | undefined;
7
8
  appInstallationId?: string | undefined;
8
9
  projectId?: string | undefined;
9
10
  customerId?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;CAM7C,CAAC"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;;CAM7C,CAAC"}
@@ -4,8 +4,9 @@ export declare const config: z.ZodObject<{
4
4
  userId: z.ZodString;
5
5
  extensionId: z.ZodString;
6
6
  extensionInstanceId: z.ZodString;
7
+ variantKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
8
  appInstallationId: z.ZodOptional<z.ZodString>;
8
9
  projectId: z.ZodOptional<z.ZodString>;
9
10
  customerId: z.ZodOptional<z.ZodString>;
10
- }, z.core.$catchall<z.ZodString>>;
11
+ }, z.core.$catchall<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
11
12
  //# 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;;;;;;;;iCAAsC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,MAAM;;;;;;;;;+DAE0B,CAAC"}
@@ -1,9 +1,10 @@
1
1
  export declare const useConfig: () => {
2
- [x: string]: string;
2
+ [x: string]: string | null | undefined;
3
3
  sessionId: string;
4
4
  userId: string;
5
5
  extensionId: string;
6
6
  extensionInstanceId: string;
7
+ variantKey?: string | null | undefined;
7
8
  appInstallationId?: string | undefined;
8
9
  projectId?: string | undefined;
9
10
  customerId?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;CAErB,CAAC"}
1
+ {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;CAErB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/ext-bridge",
3
- "version": "0.2.0-alpha.648",
3
+ "version": "0.2.0-alpha.650",
4
4
  "type": "module",
5
5
  "description": "Bridge for mStudio embedded frontend extensions",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -70,5 +70,5 @@
70
70
  "optional": true
71
71
  }
72
72
  },
73
- "gitHead": "09b86cf1bd8fa9401c7074f76d01fa7acfa90736"
73
+ "gitHead": "880dc252f3c82e9effb8630113a75ce8ff0c58f8"
74
74
  }