@marktiderman/genesis-forms 0.1.1 → 0.2.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.
@@ -57,6 +57,12 @@ interface HiddenInput {
57
57
  source: "url" | "host" | "server";
58
58
  /** Masked in devtools unless revealed, like a sensitive field. */
59
59
  sensitive?: boolean;
60
+ /**
61
+ * Identifies the respondent (a member id, an email). When the form's
62
+ * `settings.anonymous` is true, `validateSubmission` leaves it out of the
63
+ * stored `hidden` and `context`. Logic still reads it.
64
+ */
65
+ identifying?: boolean;
60
66
  }
61
67
  type Operator = "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "contains" | "answered" | "empty";
62
68
  type Operand = {
@@ -99,7 +105,8 @@ interface Ending {
99
105
  interface FormSettings {
100
106
  /**
101
107
  * A per-form admin setting, off by default. When true, fields marked
102
- * `identifying` are not asked or stored, events carry no timestamps, and
108
+ * `identifying` are not asked or stored, identifying hidden inputs are
109
+ * not stored, events carry no timestamps, and
103
110
  * the app's store keeps no identifying metadata with responses.
104
111
  */
105
112
  anonymous?: boolean;
@@ -57,6 +57,12 @@ interface HiddenInput {
57
57
  source: "url" | "host" | "server";
58
58
  /** Masked in devtools unless revealed, like a sensitive field. */
59
59
  sensitive?: boolean;
60
+ /**
61
+ * Identifies the respondent (a member id, an email). When the form's
62
+ * `settings.anonymous` is true, `validateSubmission` leaves it out of the
63
+ * stored `hidden` and `context`. Logic still reads it.
64
+ */
65
+ identifying?: boolean;
60
66
  }
61
67
  type Operator = "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "contains" | "answered" | "empty";
62
68
  type Operand = {
@@ -99,7 +105,8 @@ interface Ending {
99
105
  interface FormSettings {
100
106
  /**
101
107
  * A per-form admin setting, off by default. When true, fields marked
102
- * `identifying` are not asked or stored, events carry no timestamps, and
108
+ * `identifying` are not asked or stored, identifying hidden inputs are
109
+ * not stored, events carry no timestamps, and
103
110
  * the app's store keeps no identifying metadata with responses.
104
111
  */
105
112
  anonymous?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-forms",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [