dce-reactkit 3.6.23 → 3.6.25

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.
@@ -21,6 +21,7 @@ declare enum LogAction {
21
21
  Halt = "Halt",
22
22
  Resume = "Resume",
23
23
  Jump = "Jump",
24
+ Post = "Post",
24
25
  Unknown = "Unknown"
25
26
  }
26
27
  export default LogAction;
package/dist/index.d.ts CHANGED
@@ -934,6 +934,7 @@ declare enum LogAction {
934
934
  Halt = "Halt",
935
935
  Resume = "Resume",
936
936
  Jump = "Jump",
937
+ Post = "Post",
937
938
  Unknown = "Unknown"
938
939
  }
939
940
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.6.23",
3
+ "version": "3.6.25",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -346,6 +346,14 @@ const genRouteHandler = (
346
346
  ? launchInfo.userEmail
347
347
  : undefined
348
348
  );
349
+ output.userAvatarURL = (
350
+ launchInfo
351
+ ? (
352
+ launchInfo.userImage
353
+ ?? 'http://www.gravatar.com/avatar/?d=identicon'
354
+ )
355
+ : undefined
356
+ );
349
357
  output.isLearner = (
350
358
  launchInfo
351
359
  ? !!launchInfo.isLearner
@@ -39,6 +39,8 @@ enum LogAction {
39
39
  Resume = 'Resume',
40
40
  // Jump to/seek to/reveal/go to/navigate to a target
41
41
  Jump = 'Jump',
42
+ // Post a submission/message/etc. into the target
43
+ Post = 'Post',
42
44
  // Unknown action
43
45
  Unknown = 'Unknown',
44
46
  }