@voiceflow/base-types 2.42.1 → 2.44.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.
@@ -25,4 +25,5 @@ export interface BaseTraceFrame<Payload = any, TracePath extends BaseTraceFrameP
25
25
  paths?: TracePath[];
26
26
  payload: Payload;
27
27
  defaultPath?: number;
28
+ stop?: boolean;
28
29
  }
@@ -2,5 +2,5 @@ import { PathReference } from '../../utils';
2
2
  import { BaseStepLog } from '../base';
3
3
  import { StepLogKind } from '../kinds';
4
4
  export declare type ConditionStepLog = BaseStepLog<StepLogKind.CONDITION, {
5
- path: PathReference;
5
+ path: PathReference | null;
6
6
  }>;
@@ -1,6 +1,4 @@
1
- import { PathReference } from '../../utils';
1
+ import { FlowReference, ValueChange } from '../../utils';
2
2
  import { BaseStepLog } from '../base';
3
3
  import { StepLogKind } from '../kinds';
4
- export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, {
5
- path: PathReference;
6
- }>;
4
+ export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, ValueChange<FlowReference>>;
@@ -1,5 +1,7 @@
1
+ import { Text as TextNode } from "../../../node";
1
2
  import { BaseStepLog } from '../base';
2
3
  import { StepLogKind } from '../kinds';
3
4
  export declare type TextStepLog = BaseStepLog<StepLogKind.TEXT, {
4
- text: string;
5
+ plainContent: string;
6
+ richContent: TextNode.TextData;
5
7
  }>;
@@ -5,6 +5,11 @@ export interface PathReference {
5
5
  componentName: StepLogKind;
6
6
  stepID: string;
7
7
  }
8
+ /** A reference to a flow (frame) on the canvas. */
9
+ export interface FlowReference {
10
+ name: string | null;
11
+ programID: string;
12
+ }
8
13
  /** A common interface for representing a before & after change of a value. */
9
14
  export interface ValueChange<T> {
10
15
  before: T;
@@ -25,4 +25,5 @@ export interface BaseTraceFrame<Payload = any, TracePath extends BaseTraceFrameP
25
25
  paths?: TracePath[];
26
26
  payload: Payload;
27
27
  defaultPath?: number;
28
+ stop?: boolean;
28
29
  }
@@ -2,5 +2,5 @@ import { PathReference } from '../../utils';
2
2
  import { BaseStepLog } from '../base';
3
3
  import { StepLogKind } from '../kinds';
4
4
  export declare type ConditionStepLog = BaseStepLog<StepLogKind.CONDITION, {
5
- path: PathReference;
5
+ path: PathReference | null;
6
6
  }>;
@@ -1,6 +1,4 @@
1
- import { PathReference } from '../../utils';
1
+ import { FlowReference, ValueChange } from '../../utils';
2
2
  import { BaseStepLog } from '../base';
3
3
  import { StepLogKind } from '../kinds';
4
- export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, {
5
- path: PathReference;
6
- }>;
4
+ export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, ValueChange<FlowReference>>;
@@ -1,5 +1,7 @@
1
+ import { Text as TextNode } from "../../../node";
1
2
  import { BaseStepLog } from '../base';
2
3
  import { StepLogKind } from '../kinds';
3
4
  export declare type TextStepLog = BaseStepLog<StepLogKind.TEXT, {
4
- text: string;
5
+ plainContent: string;
6
+ richContent: TextNode.TextData;
5
7
  }>;
@@ -5,6 +5,11 @@ export interface PathReference {
5
5
  componentName: StepLogKind;
6
6
  stepID: string;
7
7
  }
8
+ /** A reference to a flow (frame) on the canvas. */
9
+ export interface FlowReference {
10
+ name: string | null;
11
+ programID: string;
12
+ }
8
13
  /** A common interface for representing a before & after change of a value. */
9
14
  export interface ValueChange<T> {
10
15
  before: T;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
3
  "description": "Voiceflow base project types",
4
- "version": "2.42.1",
4
+ "version": "2.44.1",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@voiceflow/common": "^7.27.0",
10
+ "@voiceflow/common": "^7.27.1",
11
11
  "slate": "0.73.0"
12
12
  },
13
13
  "files": [
@@ -43,5 +43,5 @@
43
43
  "test:smoke": "exit 0",
44
44
  "test:unit": "exit 0"
45
45
  },
46
- "gitHead": "f57624bb299bcf11ad01cd8588d1fcd2e77dbd7e"
46
+ "gitHead": "70e0982f53503463181d06f2c1ed160b1aa8e0c8"
47
47
  }