@wise/dynamic-flow-client 5.0.1-exp-css-28d60ea → 5.1.1

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 (27) hide show
  1. package/README.md +7 -2
  2. package/build/main.css +1 -1
  3. package/build/main.js +286 -184
  4. package/build/main.mjs +286 -184
  5. package/build/types/domain/components/step/StepDomainComponent.d.ts +4 -2
  6. package/build/types/domain/features/polling/getStepPolling.d.ts +3 -2
  7. package/build/types/domain/mappers/layout/alertLayoutToComponent.d.ts +1 -1
  8. package/build/types/domain/mappers/layout/decisionLayoutToComponent.d.ts +1 -1
  9. package/build/types/domain/mappers/layout/reviewLayoutToComponent.d.ts +1 -1
  10. package/build/types/domain/mappers/layout/searchLayoutToComponent.d.ts +1 -1
  11. package/build/types/domain/mappers/layout/statusListLayoutToComponent.d.ts +1 -1
  12. package/build/types/domain/mappers/mapStepToComponent.d.ts +1 -1
  13. package/build/types/domain/mappers/schema/types.d.ts +2 -1
  14. package/build/types/domain/mappers/utils/behavior-utils.d.ts +5 -2
  15. package/build/types/domain/mappers/utils/call-to-action-utils.d.ts +3 -2
  16. package/build/types/domain/mappers/utils/utils.d.ts +3 -2
  17. package/build/types/domain/prefetching/request-cache.d.ts +9 -0
  18. package/build/types/flow/executeSubmission.d.ts +4 -1
  19. package/build/types/flow/makeSafeHttpClient.d.ts +2 -0
  20. package/build/types/flow/makeSubmissionRequest.d.ts +3 -0
  21. package/package.json +25 -35
  22. package/build/types/domain/mappers/schema/tests/test-utils.d.ts +0 -34
  23. package/build/types/test-utils/NeptuneProviders.d.ts +0 -5
  24. package/build/types/test-utils/getRandomId.d.ts +0 -1
  25. package/build/types/test-utils/index.d.ts +0 -2
  26. package/build/types/test-utils/rtl-utils.d.ts +0 -2
  27. package/build/types/tests/renderers/TextInputRenderer.test.d.ts +0 -1
package/README.md CHANGED
@@ -36,9 +36,14 @@ pnpm install @transferwise/components @transferwise/formatting @transferwise/ico
36
36
  ```
37
37
  **Note:** Keep in mind that some of these dependencies have their own peer dependencies. Don't forget to install those, for instance: `@transferwise/components` needs `@wise/art` and `@wise/components-theming`.
38
38
 
39
+ 3. In addition to the design system styles, you need to import the DynamicFlow styles once into your application. You can do this either via JavaScript or CSS.
40
+
39
41
  ```js
40
- // Should be imported once in your application
41
- import '@wise/dynamic-flow-client/build/main.css';
42
+ import '@wise/dynamic-flow-client/main.css'; // JavaScript
43
+ ```
44
+
45
+ ```css
46
+ @import url('@wise/dynamic-flow-client/build/main.css'); /* CSS */
42
47
  ```
43
48
 
44
49
  The `DynamicFlow` component must be wraped in a Neptune `Provider` to support localisation, a `ThemeProvider` to provide theming, and a `SnackbarProvider` to ensure snackbars display correctly. Translations should be imported from both components and dynamic flows, merged, and passed to the `Provider` component (as below).
package/build/main.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /* We should move to CSS modules when we move this to the Wise layer */
2
2
  .df-box-renderer-border {
3
3
  border: 1px solid var(--color-border-neutral);
4
- border-radius: var(--radius-small);
4
+ border-radius: var(--radius-medium);
5
5
  padding: var(--size-16);
6
6
  }
7
7
  .df-box-renderer-fixed-width {