@mittwald/ext-bridge 0.2.0-alpha.647 → 0.2.0-alpha.649
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/schemas.mjs +4 -3
- package/dist/js/config/schemas.mjs.map +1 -1
- package/dist/types/config/getConfig.d.ts +1 -0
- package/dist/types/config/getConfig.d.ts.map +1 -1
- package/dist/types/config/parse.d.ts +1 -0
- package/dist/types/config/parse.d.ts.map +1 -1
- package/dist/types/config/schemas.d.ts +1 -0
- package/dist/types/config/schemas.d.ts.map +1 -1
- package/dist/types/react/hooks/useConfig.d.ts +1 -0
- package/dist/types/react/hooks/useConfig.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
})
|
|
14
|
-
const config = baseConfig.
|
|
14
|
+
});
|
|
15
|
+
const config = baseConfig.extend(contextParameters.shape).catchall(z.string());
|
|
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
|
|
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());\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,WACnB,MAAA,CAAO,iBAAA,CAAkB,KAAK,CAAA,CAC9B,QAAA,CAAS,CAAA,CAAE,MAAA,EAAQ;;;;"}
|
|
@@ -4,6 +4,7 @@ export declare const getConfig: () => Promise<{
|
|
|
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
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/config/getConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;EAGrB,CAAC"}
|
|
@@ -4,6 +4,7 @@ export declare const parseConfig: (something: unknown) => {
|
|
|
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
|
|
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,6 +4,7 @@ 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>;
|
|
@@ -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;
|
|
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;;;;;;;;;iCAEI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS
|
|
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.
|
|
3
|
+
"version": "0.2.0-alpha.649",
|
|
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": "
|
|
73
|
+
"gitHead": "11d6e00f15b039bb27abeb2158bcc237d1b9e99b"
|
|
74
74
|
}
|