@wise/dynamic-flow-types 2.2.1 → 2.4.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.
Files changed (94) hide show
  1. package/build/next/feature/Action.d.ts +35 -0
  2. package/build/next/feature/ActionType.d.ts +4 -0
  3. package/build/next/feature/External.d.ts +3 -0
  4. package/build/next/feature/Help.d.ts +3 -0
  5. package/build/next/feature/LinkHandler.d.ts +5 -0
  6. package/build/next/feature/Navigation.d.ts +11 -0
  7. package/build/next/feature/NavigationBackBehaviour.d.ts +8 -0
  8. package/build/next/feature/PersistAsync.d.ts +9 -0
  9. package/build/next/feature/Polling.d.ts +7 -0
  10. package/build/next/feature/PollingOnError.d.ts +4 -0
  11. package/build/next/feature/StepError.d.ts +4 -0
  12. package/build/next/feature/Summary.d.ts +3 -0
  13. package/build/next/feature/SummaryProvider.d.ts +6 -0
  14. package/build/next/feature/SummarySummariser.d.ts +12 -0
  15. package/build/next/feature/ValidateAsync.d.ts +6 -0
  16. package/build/next/index.d.ts +2 -0
  17. package/build/next/layout/AlertLayout.d.ts +9 -0
  18. package/build/next/layout/BoxLayout.d.ts +10 -0
  19. package/build/next/layout/ButtonLayout.d.ts +17 -0
  20. package/build/next/layout/ColumnsLayout.d.ts +11 -0
  21. package/build/next/layout/ColumnsLayoutBias.d.ts +1 -0
  22. package/build/next/layout/DecisionLayout.d.ts +8 -0
  23. package/build/next/layout/DecisionLayoutOption.d.ts +11 -0
  24. package/build/next/layout/DividerLayout.d.ts +9 -0
  25. package/build/next/layout/FormLayout.d.ts +7 -0
  26. package/build/next/layout/HeadingLayout.d.ts +10 -0
  27. package/build/next/layout/ImageLayout.d.ts +16 -0
  28. package/build/next/layout/InfoLayout.d.ts +12 -0
  29. package/build/next/layout/InstructionsLayout.d.ts +9 -0
  30. package/build/next/layout/InstructionsLayoutItem.d.ts +5 -0
  31. package/build/next/layout/Layout.d.ts +20 -0
  32. package/build/next/layout/ListLayout.d.ts +12 -0
  33. package/build/next/layout/ListLayoutItem.d.ts +11 -0
  34. package/build/next/layout/ListLayoutStatus.d.ts +4 -0
  35. package/build/next/layout/LoadingIndicatorLayout.d.ts +7 -0
  36. package/build/next/layout/MarkdownLayout.d.ts +9 -0
  37. package/build/next/layout/ModalLayout.d.ts +13 -0
  38. package/build/next/layout/ModalLayoutContent.d.ts +4 -0
  39. package/build/next/layout/ModalLayoutTrigger.d.ts +3 -0
  40. package/build/next/layout/ParagraphLayout.d.ts +9 -0
  41. package/build/next/layout/ReviewLayout.d.ts +20 -0
  42. package/build/next/layout/ReviewLayoutCallToAction.d.ts +5 -0
  43. package/build/next/layout/ReviewLayoutField.d.ts +6 -0
  44. package/build/next/layout/SearchLayout.d.ts +12 -0
  45. package/build/next/layout/StatusListLayout.d.ts +9 -0
  46. package/build/next/layout/StatusListLayoutItem.d.ts +8 -0
  47. package/build/next/layout/StatusListLayoutStatus.d.ts +1 -0
  48. package/build/next/misc/Align.d.ts +1 -0
  49. package/build/next/misc/AutocompleteToken.d.ts +1 -0
  50. package/build/next/misc/Context.d.ts +1 -0
  51. package/build/next/misc/HttpMethod.d.ts +1 -0
  52. package/build/next/misc/Icon.d.ts +3 -0
  53. package/build/next/misc/IconNamed.d.ts +3 -0
  54. package/build/next/misc/IconText.d.ts +3 -0
  55. package/build/next/misc/Size.d.ts +1 -0
  56. package/build/next/responses/action/ActionResponseBody.d.ts +4 -0
  57. package/build/next/responses/error/ErrorResponseBody.d.ts +9 -0
  58. package/build/next/responses/search/SearchResponseBody.d.ts +4 -0
  59. package/build/next/responses/search/SearchResult.d.ts +3 -0
  60. package/build/next/responses/search/SearchResultAction.d.ts +11 -0
  61. package/build/next/responses/search/SearchResultSearch.d.ts +11 -0
  62. package/build/next/responses/search/SearchSearchRequest.d.ts +7 -0
  63. package/build/next/schema/AllOfSchema.d.ts +24 -0
  64. package/build/next/schema/ArraySchema.d.ts +3 -0
  65. package/build/next/schema/ArraySchemaList.d.ts +33 -0
  66. package/build/next/schema/ArraySchemaTuple.d.ts +29 -0
  67. package/build/next/schema/BlobSchema.d.ts +30 -0
  68. package/build/next/schema/BlobSchemaSource.d.ts +1 -0
  69. package/build/next/schema/BooleanSchema.d.ts +48 -0
  70. package/build/next/schema/ConstSchema.d.ts +23 -0
  71. package/build/next/schema/IntegerSchema.d.ts +54 -0
  72. package/build/next/schema/NumberSchema.d.ts +54 -0
  73. package/build/next/schema/ObjectSchema.d.ts +32 -0
  74. package/build/next/schema/OneOfSchema.d.ts +52 -0
  75. package/build/next/schema/Schema.d.ts +11 -0
  76. package/build/next/schema/StringSchema.d.ts +69 -0
  77. package/build/next/schema/StringSchemaFormat.d.ts +1 -0
  78. package/build/next/schema/StringSchemaSource.d.ts +4 -0
  79. package/build/next/step/Step.d.ts +38 -0
  80. package/build/spec/Action.d.ts +1 -1
  81. package/build/spec/FileUploadSchema.d.ts +2 -2
  82. package/build/spec/LayoutComponent.d.ts +21 -6
  83. package/build/spec/Model.d.ts +1 -1
  84. package/build/spec/Navigation.d.ts +1 -1
  85. package/build/spec/PersistAsync.d.ts +1 -1
  86. package/build/spec/Polling.d.ts +1 -1
  87. package/build/spec/Promotion.d.ts +1 -1
  88. package/build/spec/Schema.d.ts +8 -8
  89. package/build/spec/Search.d.ts +2 -2
  90. package/build/spec/Step.d.ts +9 -9
  91. package/build/spec/ValidationAsync.d.ts +1 -1
  92. package/build/spec/core.d.ts +2 -0
  93. package/build/spec/responses.d.ts +3 -3
  94. package/package.json +2 -5
@@ -1,4 +1,4 @@
1
- import { HttpMethod } from './core';
1
+ import type { HttpMethod } from './core';
2
2
  export type ValidationAsync = {
3
3
  param: string;
4
4
  url: string;
@@ -1,4 +1,5 @@
1
1
  export type Image = {
2
+ type?: 'image';
2
3
  url: string;
3
4
  text?: string;
4
5
  name?: string;
@@ -22,6 +23,7 @@ export type Reference = {
22
23
  /** @deprecated Prefer Context */
23
24
  export type LegacyContext = 'success' | 'failure' | 'info' | 'primary';
24
25
  export type Alert = {
26
+ type?: 'alert';
25
27
  markdown: string;
26
28
  context?: Context | LegacyContext;
27
29
  margin?: Margin;
@@ -1,6 +1,6 @@
1
- import { Action } from './Action';
2
- import { SearchResult } from './Search';
3
- import { FormErrors, GlobalError } from './Step';
1
+ import type { Action } from './Action';
2
+ import type { SearchResult } from './Search';
3
+ import type { FormErrors, GlobalError } from './Step';
4
4
  export type ActionResponseBody = {
5
5
  action: Action;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,14 +13,11 @@
13
13
  "build"
14
14
  ],
15
15
  "devDependencies": {
16
- "@formatjs/cli": "^6.2.3",
17
- "eslint": "8.53.0",
18
- "prettier": "3.1.0",
16
+ "@formatjs/cli": "^6.2.4",
19
17
  "typescript": "4.9.5"
20
18
  },
21
19
  "peerDependencies": {},
22
20
  "dependencies": {},
23
- "prettier": "@transferwise/eslint-config/.prettierrc.js",
24
21
  "scripts": {
25
22
  "dev": "pnpm tsc --noEmit --watch",
26
23
  "test": "pnpm tsc --noEmit",