@marktiderman/genesis-forms 0.9.1 → 0.9.2

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.
@@ -37,7 +37,7 @@ interface FieldBlock {
37
37
  * options from, as `props.optionsFrom`. `source: "host"`: the app showing the
38
38
  * form supplies the list named `key` when the form opens and again when a
39
39
  * response is checked (`hostOptions` on `createForm` and `validateSubmission`),
40
- * such as a practice's current coaches. They follow the field's own
40
+ * such as an organization's current staff. They follow the field's own
41
41
  * `props.options`, if it has any.
42
42
  */
43
43
  interface OptionsSource {
@@ -37,7 +37,7 @@ interface FieldBlock {
37
37
  * options from, as `props.optionsFrom`. `source: "host"`: the app showing the
38
38
  * form supplies the list named `key` when the form opens and again when a
39
39
  * response is checked (`hostOptions` on `createForm` and `validateSubmission`),
40
- * such as a practice's current coaches. They follow the field's own
40
+ * such as an organization's current staff. They follow the field's own
41
41
  * `props.options`, if it has any.
42
42
  */
43
43
  interface OptionsSource {
@@ -1,4 +1,4 @@
1
- import { J as Json, e as FormEvent, F as FormDefinition, a as FieldBlock, b as ContentBlock, g as Operator, B as Block, O as OptionsSource } from './types-C0pUfew3.js';
1
+ import { J as Json, e as FormEvent, F as FormDefinition, a as FieldBlock, b as ContentBlock, g as Operator, B as Block, O as OptionsSource } from './types-BBDa8oXu.js';
2
2
 
3
3
  /**
4
4
  * Checking a block's `props` for `parseForm`: the shared helpers every content and field kind's
@@ -125,7 +125,7 @@ type LinkParams = {
125
125
  * option calls this). Each choice question with `props.prefill: { param }` takes the parameter's
126
126
  * value when it is one of the options the question shows (`visibleOptions`, so a filtered list is
127
127
  * respected); anything else is ignored. A multiple choice takes every matching value, from
128
- * repeated parameters (`?coach=a&coach=b`) or one comma-separated value. Questions are filled in
128
+ * repeated parameters (`?staff=a&staff=b`) or one comma-separated value. Questions are filled in
129
129
  * form order, so a filtered question sees what the link picked before it. A question `values`
130
130
  * already answers (the host's own prefill) is left alone. The server checks these like any answer.
131
131
  */
@@ -323,7 +323,7 @@ interface ChoiceOption {
323
323
  image?: string;
324
324
  /**
325
325
  * Facts about the option for filtering and recall, such as `{ location: ["riverside", "hilltop"] }`
326
- * for a coach who works at two locations (see `props.optionsFrom.filter`). Names and values are
326
+ * for someone who works at two locations (see `props.optionsFrom.filter`). Names and values are
327
327
  * text; a value is one text or a list of them.
328
328
  */
329
329
  attributes?: Record<string, string | string[]>;
@@ -371,7 +371,7 @@ declare function isOtherValue(field: FieldBlock, value: unknown): value is strin
371
371
  declare function choiceOptions(field: FieldBlock): ChoiceOption[];
372
372
  /**
373
373
  * Option lists the app showing a form supplies, by key (`OptionsSource.key`):
374
- * `{ coaches: [{ value: "8c1…", label: "Ada Lovelace" }] }`.
374
+ * `{ staff: [{ value: "8c1…", label: "Ada Lovelace" }] }`.
375
375
  */
376
376
  type HostOptions = Readonly<Record<string, readonly ChoiceOption[]>>;
377
377
  /**
@@ -1,4 +1,4 @@
1
- import { J as Json, e as FormEvent, F as FormDefinition, a as FieldBlock, b as ContentBlock, g as Operator, B as Block, O as OptionsSource } from './types-C0pUfew3.cjs';
1
+ import { J as Json, e as FormEvent, F as FormDefinition, a as FieldBlock, b as ContentBlock, g as Operator, B as Block, O as OptionsSource } from './types-BBDa8oXu.cjs';
2
2
 
3
3
  /**
4
4
  * Checking a block's `props` for `parseForm`: the shared helpers every content and field kind's
@@ -125,7 +125,7 @@ type LinkParams = {
125
125
  * option calls this). Each choice question with `props.prefill: { param }` takes the parameter's
126
126
  * value when it is one of the options the question shows (`visibleOptions`, so a filtered list is
127
127
  * respected); anything else is ignored. A multiple choice takes every matching value, from
128
- * repeated parameters (`?coach=a&coach=b`) or one comma-separated value. Questions are filled in
128
+ * repeated parameters (`?staff=a&staff=b`) or one comma-separated value. Questions are filled in
129
129
  * form order, so a filtered question sees what the link picked before it. A question `values`
130
130
  * already answers (the host's own prefill) is left alone. The server checks these like any answer.
131
131
  */
@@ -323,7 +323,7 @@ interface ChoiceOption {
323
323
  image?: string;
324
324
  /**
325
325
  * Facts about the option for filtering and recall, such as `{ location: ["riverside", "hilltop"] }`
326
- * for a coach who works at two locations (see `props.optionsFrom.filter`). Names and values are
326
+ * for someone who works at two locations (see `props.optionsFrom.filter`). Names and values are
327
327
  * text; a value is one text or a list of them.
328
328
  */
329
329
  attributes?: Record<string, string | string[]>;
@@ -371,7 +371,7 @@ declare function isOtherValue(field: FieldBlock, value: unknown): value is strin
371
371
  declare function choiceOptions(field: FieldBlock): ChoiceOption[];
372
372
  /**
373
373
  * Option lists the app showing a form supplies, by key (`OptionsSource.key`):
374
- * `{ coaches: [{ value: "8c1…", label: "Ada Lovelace" }] }`.
374
+ * `{ staff: [{ value: "8c1…", label: "Ada Lovelace" }] }`.
375
375
  */
376
376
  type HostOptions = Readonly<Record<string, readonly ChoiceOption[]>>;
377
377
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-forms",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -78,7 +78,7 @@
78
78
  ],
79
79
  "devDependencies": {
80
80
  "@fast-check/vitest": "^0.2.4",
81
- "@marktiderman/genesis-notifications": "^0.1.1",
81
+ "@marktiderman/genesis-notifications": "^0.1.2",
82
82
  "fast-check": "^4.10.2",
83
83
  "tsup": "^8.3.0",
84
84
  "typescript": "~6.0.3",