@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.
@@ -1,5 +1,5 @@
1
- import { H as HostOptions, A as AnswerSnapshot, F as FieldValidator } from './validate-DpmBssFk.js';
2
- import { a as FieldBlock, J as Json, F as FormDefinition, e as FormEvent } from './types-C0pUfew3.js';
1
+ import { H as HostOptions, A as AnswerSnapshot, F as FieldValidator } from './validate-BhIx55N7.js';
2
+ import { a as FieldBlock, J as Json, F as FormDefinition, e as FormEvent } from './types-BBDa8oXu.js';
3
3
 
4
4
  /**
5
5
  * The `photo` field type: a respondent attaches up to a few photos, such as a
@@ -295,7 +295,7 @@ interface ClientIpOptions {
295
295
  }
296
296
  /**
297
297
  * How many submits, saves as they go and photo uploads one client may make per scope
298
- * (a practice, an account) in a window.
298
+ * (an organization, an account) in a window.
299
299
  *
300
300
  * - submit: 60 responses per 10 minutes: a class at one gym's Wi-Fi fits.
301
301
  * - progress: saving answers as they go. A visit counts once, against `submit`, at its
@@ -329,7 +329,7 @@ declare function clientIp(headers: Pick<Headers, "get">, options?: readonly stri
329
329
  declare function addressPrefix(ip: string): string;
330
330
  /**
331
331
  * The stored key, `<kind>:<scope>:<hex HMAC-SHA256 of the address prefix>`: what is
332
- * counted (such as `submit`, `progress`, `upload`), whose count it is (a practice id),
332
+ * counted (such as `submit`, `progress`, `upload`), whose count it is (an organization id),
333
333
  * and the client, which is never stored as its address. `secret` is a server secret.
334
334
  */
335
335
  declare function rateLimitKey(input: {
@@ -462,7 +462,7 @@ interface UploadForm {
462
462
  definition: FormDefinition;
463
463
  /** Whether it takes responses now (not paused, closed, full…). */
464
464
  open: boolean;
465
- /** Whose rate-limit count this is: a practice, an account. */
465
+ /** Whose rate-limit count this is: an organization, an account. */
466
466
  scope: string;
467
467
  /** Whether its edit links work. Default false: no uploads for an edit. */
468
468
  allowsEdits?: boolean | undefined;
@@ -1,5 +1,5 @@
1
- import { H as HostOptions, A as AnswerSnapshot, F as FieldValidator } from './validate-U5LoW3eR.cjs';
2
- import { a as FieldBlock, J as Json, F as FormDefinition, e as FormEvent } from './types-C0pUfew3.cjs';
1
+ import { H as HostOptions, A as AnswerSnapshot, F as FieldValidator } from './validate-CocUgR5Q.cjs';
2
+ import { a as FieldBlock, J as Json, F as FormDefinition, e as FormEvent } from './types-BBDa8oXu.cjs';
3
3
 
4
4
  /**
5
5
  * The `photo` field type: a respondent attaches up to a few photos, such as a
@@ -295,7 +295,7 @@ interface ClientIpOptions {
295
295
  }
296
296
  /**
297
297
  * How many submits, saves as they go and photo uploads one client may make per scope
298
- * (a practice, an account) in a window.
298
+ * (an organization, an account) in a window.
299
299
  *
300
300
  * - submit: 60 responses per 10 minutes: a class at one gym's Wi-Fi fits.
301
301
  * - progress: saving answers as they go. A visit counts once, against `submit`, at its
@@ -329,7 +329,7 @@ declare function clientIp(headers: Pick<Headers, "get">, options?: readonly stri
329
329
  declare function addressPrefix(ip: string): string;
330
330
  /**
331
331
  * The stored key, `<kind>:<scope>:<hex HMAC-SHA256 of the address prefix>`: what is
332
- * counted (such as `submit`, `progress`, `upload`), whose count it is (a practice id),
332
+ * counted (such as `submit`, `progress`, `upload`), whose count it is (an organization id),
333
333
  * and the client, which is never stored as its address. `secret` is a server secret.
334
334
  */
335
335
  declare function rateLimitKey(input: {
@@ -462,7 +462,7 @@ interface UploadForm {
462
462
  definition: FormDefinition;
463
463
  /** Whether it takes responses now (not paused, closed, full…). */
464
464
  open: boolean;
465
- /** Whose rate-limit count this is: a practice, an account. */
465
+ /** Whose rate-limit count this is: an organization, an account. */
466
466
  scope: string;
467
467
  /** Whether its edit links work. Default false: no uploads for an edit. */
468
468
  allowsEdits?: boolean | undefined;