@wise/dynamic-flow-types 4.0.0-experimental-feace93 → 4.0.0-experimental-c979470

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.
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { Context, Media } from '.';
3
+ import type { Action, Step } from '../spec';
3
4
  import { BaseRendererProps, RendererProps } from './RendererProps';
4
5
  export type AnalyticsEventDispatcher = (eventName: string, properties?: Record<string, unknown>) => void;
5
6
  export type LoadingState = 'idle' | 'initial' | 'submitting' | 'refreshing';
@@ -30,6 +31,15 @@ export type StepRendererProps = BaseRendererProps & {
30
31
  tags?: string[];
31
32
  children: ReactNode;
32
33
  childrenProps: RendererProps[];
34
+ /**
35
+ *
36
+ * @deprecated DO NOT USE! This will be removed in the next major release. Please use childrenProps instead.
37
+ */
38
+ __rawStep?: Step;
39
+ /**
40
+ * @deprecated DO NOT USE! This will be removed in the next major release. Please use childrenProps instead.
41
+ */
42
+ __onAction?: (action: Action) => void | Promise<void>;
33
43
  };
34
44
  type Toolbar = {
35
45
  type: 'toolbar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "4.0.0-experimental-feace93",
3
+ "version": "4.0.0-experimental-c979470",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -19,6 +19,14 @@
19
19
  },
20
20
  "./renderers": {
21
21
  "types": "./build/renderers/index.d.ts"
22
+ },
23
+ "./build/spec": {
24
+ "types": "./build/spec/index.d.ts",
25
+ "import": "./build/spec/main.mjs",
26
+ "require": "./build/spec/main.js"
27
+ },
28
+ "./build/renderers": {
29
+ "types": "./build/renderers/index.d.ts"
22
30
  }
23
31
  },
24
32
  "files": [