@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.
- package/dist/js/config/schemas.mjs +4 -3
- package/dist/js/config/schemas.mjs.map +1 -1
- package/dist/types/config/getConfig.d.ts +2 -1
- package/dist/types/config/getConfig.d.ts.map +1 -1
- package/dist/types/config/parse.d.ts +2 -1
- package/dist/types/config/parse.d.ts.map +1 -1
- package/dist/types/config/schemas.d.ts +2 -1
- package/dist/types/config/schemas.d.ts.map +1 -1
- package/dist/types/react/hooks/useConfig.d.ts +2 -1
- 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().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
|
|
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
|
|
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
|
|
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;
|
|
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
|
|
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.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": "
|
|
73
|
+
"gitHead": "880dc252f3c82e9effb8630113a75ce8ff0c58f8"
|
|
74
74
|
}
|