@embeddable.com/sdk-core 3.9.8 → 3.9.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.9.8",
3
+ "version": "3.9.10",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
package/src/validate.ts CHANGED
@@ -247,15 +247,21 @@ const viewModelSchema = z.object({
247
247
  });
248
248
 
249
249
  const securityContextSchema = z.array(
250
- z.object({
251
- name: z.string(),
252
- securityContext: z.object({}), // can be any object
253
- }),
250
+ z
251
+ .object({
252
+ name: z.string(),
253
+ securityContext: z.object({}), // can be any object
254
+ environment: z.string().optional(),
255
+ })
256
+ .strict(),
254
257
  );
255
258
 
256
259
  const clientContextSchema = z.array(
257
- z.object({
258
- name: z.string(),
259
- clientContext: z.object({}), // can be any object
260
- }),
260
+ z
261
+ .object({
262
+ name: z.string(),
263
+ clientContext: z.object({}), // can be any object
264
+ canvas: z.object({}).optional(),
265
+ })
266
+ .strict(),
261
267
  );