dce-reactkit 3.6.21 → 3.6.23

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,7 @@
1
1
  import LogFunction from '../types/LogFunction';
2
- type MetadataPopulator = () => Promise<{
2
+ type MetadataPopulator = () => {
3
+ [k: string]: any;
4
+ } | Promise<{
3
5
  [k: string]: any;
4
6
  }>;
5
7
  /**
@@ -20,6 +20,7 @@ declare enum LogAction {
20
20
  Peek = "Peek",
21
21
  Halt = "Halt",
22
22
  Resume = "Resume",
23
+ Jump = "Jump",
23
24
  Unknown = "Unknown"
24
25
  }
25
26
  export default LogAction;
package/dist/index.d.ts CHANGED
@@ -933,6 +933,7 @@ declare enum LogAction {
933
933
  Peek = "Peek",
934
934
  Halt = "Halt",
935
935
  Resume = "Resume",
936
+ Jump = "Jump",
936
937
  Unknown = "Unknown"
937
938
  }
938
939
 
@@ -1188,7 +1189,9 @@ declare const onlyKeepLetters: (str: string) => string;
1188
1189
  */
1189
1190
  declare const parallelLimit: (taskFunctions: (() => Promise<any>)[], limit?: number) => Promise<any[]>;
1190
1191
 
1191
- type MetadataPopulator = () => Promise<{
1192
+ type MetadataPopulator = () => {
1193
+ [k: string]: any;
1194
+ } | Promise<{
1192
1195
  [k: string]: any;
1193
1196
  }>;
1194
1197
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.6.21",
3
+ "version": "3.6.23",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -10,7 +10,7 @@ import visitServerEndpoint from './visitServerEndpoint';
10
10
  /* ------- Metadata Populator ------- */
11
11
 
12
12
  // Type of a metadata populator function
13
- type MetadataPopulator = () => Promise<{ [k: string]: any }>;
13
+ type MetadataPopulator = () => { [k: string]: any } | Promise<{ [k: string]: any }>;
14
14
 
15
15
  // Current metadata populator function
16
16
  let metadataPopulator: MetadataPopulator;
@@ -37,6 +37,8 @@ enum LogAction {
37
37
  Halt = 'Halt',
38
38
  // Resume a process (resume a halted process)
39
39
  Resume = 'Resume',
40
+ // Jump to/seek to/reveal/go to/navigate to a target
41
+ Jump = 'Jump',
40
42
  // Unknown action
41
43
  Unknown = 'Unknown',
42
44
  }