@wise/dynamic-flow-types 2.18.4 → 2.20.0

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.
@@ -473,7 +473,9 @@ export const alertLayoutCallToActionSchema = z.object({
473
473
 
474
474
  export const pollingSchema = z.object({
475
475
  url: z.string(),
476
- interval: z.number(),
476
+ interval: z.number().optional(),
477
+ delay: z.number().optional(),
478
+ timeout: z.number().optional(),
477
479
  maxAttempts: z.number(),
478
480
  onError: pollingOnErrorSchema,
479
481
  });
@@ -602,6 +604,7 @@ export const modalLayoutSchema: z.ZodSchema<ModalLayout> = z.lazy(() =>
602
604
 
603
605
  export const modalLayoutContentSchema: z.ZodSchema<ModalLayoutContent> = z.lazy(() =>
604
606
  z.object({
607
+ title: z.string().optional(),
605
608
  components: z.array(layoutSchema),
606
609
  }),
607
610
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.18.4",
3
+ "version": "2.20.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,7 +35,6 @@
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "pnpm tsc --noEmit --watch",
38
- "test": "pnpm tsc --noEmit",
39
38
  "build": "rm -rf build && npm-run-all build:*",
40
39
  "build:types": "pnpm tsc --emitDeclarationOnly",
41
40
  "build:js": "node ./scripts/build.mjs",