case-editor-tools 1.0.7 → 1.1.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "case-editor-tools",
3
3
  "description": "Javascript tools to simplify survey and study coding for CASE.",
4
- "version": "1.0.7",
4
+ "version": "1.1.0",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "repository": "github:case-framework/case-editor-tools",
@@ -20,6 +20,6 @@
20
20
  "build": "rollup -c"
21
21
  },
22
22
  "dependencies": {
23
- "survey-engine": "^1.1.3"
23
+ "survey-engine": "^1.1.7"
24
24
  }
25
25
  }
@@ -97,6 +97,7 @@ export interface TextInputProps {
97
97
  className?: string;
98
98
  maxLength?: number;
99
99
  disabled?: Expression;
100
+ transformLetterCaseTo?: 'upper' | 'lower';
100
101
  }
101
102
  export declare type TextInputQuestionProps = TextInputProps & GenericQuestionProps;
102
103
  export interface MultiLineTextInput extends GenericQuestionProps {
@@ -69,6 +69,9 @@ const textInput = (props) => {
69
69
  if (props.alignText) {
70
70
  style.push({ key: 'alignInputText', value: props.alignText });
71
71
  }
72
+ if (props.transformLetterCaseTo) {
73
+ style.push({ key: 'transformCase', value: props.transformLetterCaseTo });
74
+ }
72
75
  return {
73
76
  key: props.key,
74
77
  role: 'input',
@@ -1 +1 @@
1
- {"version":3,"file":"optionDefGenerators.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"optionDefGenerators.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { Expression } from "survey-engine/data_types";
2
2
  import { Duration } from "./duration";
3
- export declare type MessageType = 'registration' | 'invitation' | 'verify-email' | 'verification-code' | 'password-reset' | 'password-changed' | 'account-id-changed' | 'weekly' | 'study-reminder' | 'newsletter' | 'account-deleted';
3
+ export declare type MessageType = 'registration' | 'invitation' | 'verify-email' | 'verification-code' | 'password-reset' | 'password-changed' | 'account-id-changed' | 'weekly' | 'study-reminder' | 'researcher-notifications' | 'newsletter' | 'account-deleted';
4
4
  export interface MessageConfig {
5
- sendTo: 'study-participants' | 'all-users' | 'scheduled-participant-messages';
5
+ sendTo: 'study-participants' | 'all-users' | 'scheduled-participant-messages' | 'researcher-notifications';
6
6
  label: string;
7
7
  headerOverrides?: {
8
8
  from: string;
@@ -23,7 +23,7 @@ export interface MessageConfig {
23
23
  }>;
24
24
  }
25
25
  export declare const buildMessageConfig: (props: MessageConfig, studyKey: string) => {
26
- sendTo: "study-participants" | "all-users" | "scheduled-participant-messages";
26
+ sendTo: "researcher-notifications" | "study-participants" | "all-users" | "scheduled-participant-messages";
27
27
  studyKey: string;
28
28
  label: string;
29
29
  headerOverrides: {