@wise/dynamic-flow-types 3.8.0 → 3.9.0-experimental-1c8f72d

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 { ActionBehavior } from './ActionBehavior';
2
2
  import type { ContainerBehavior } from './ContainerBehavior';
3
+ import type { CopyBehavior } from './CopyBehavior';
3
4
  import type { DismissBehavior } from './DismissBehavior';
4
5
  import type { LinkBehavior } from './LinkBehavior';
5
6
  import type { ModalBehavior } from './ModalBehavior';
@@ -7,4 +8,4 @@ import type { RefreshBehavior } from './RefreshBehavior';
7
8
  /**
8
9
  * Describes the result of performing some interaction.
9
10
  */
10
- export type Behavior = ActionBehavior | ContainerBehavior | DismissBehavior | LinkBehavior | ModalBehavior | RefreshBehavior;
11
+ export type Behavior = ActionBehavior | ContainerBehavior | CopyBehavior | DismissBehavior | LinkBehavior | ModalBehavior | RefreshBehavior;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Places the provided contents into the system clipboard when triggered
3
+ */
4
+ export type CopyBehavior = {
5
+ /**
6
+ * It must be `copy`.
7
+ */
8
+ type: 'copy';
9
+ /**
10
+ * The content to be copied to the clipboard.
11
+ */
12
+ content: string;
13
+ };
@@ -7,6 +7,7 @@ export type { Polling } from './feature/Polling';
7
7
  export type { PollingOnError } from './feature/PollingOnError';
8
8
  export type { ValidateAsync } from './feature/ValidateAsync';
9
9
  export type { ActionBehavior } from './feature/ActionBehavior';
10
+ export type { CopyBehavior } from './feature/CopyBehavior';
10
11
  export type { Behavior } from './feature/Behavior';
11
12
  export type { DismissBehavior } from './feature/DismissBehavior';
12
13
  export type { LinkBehavior } from './feature/LinkBehavior';