@oods/component-contracts 0.12.0 → 0.13.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/dist/index.d.cts CHANGED
@@ -365,14 +365,23 @@ declare function formatRecordLabel(value: unknown, readableIdentifier?: boolean)
365
365
  *
366
366
  * Only a `*_name` field names a party: `actor` and `actor_id` are ids, and an entry that names no one renders exactly as
367
367
  * it did before, its "Actor: <id>" line included.
368
+ *
369
+ * s245-m01: a change someone approved can also point at its approval and name its level of yes:
370
+ * approval_id the Approval record the yes is kept in: a pointer kept in the record's data, never printed
371
+ * approval_level the level of yes, printed in the words a level is shown in on every screen
372
+ * "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi (level: Approval)". An entry without a level prints exactly
373
+ * what it printed before.
368
374
  */
369
375
  interface HistoryAttribution {
370
- /** "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi"; "Ruth Adeyemi" alone for a person acting for herself. */
376
+ /**
377
+ * "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi"; "Ruth Adeyemi" alone for a person acting for herself;
378
+ * "… · approved by Ruth Adeyemi (level: Approval)" when the entry names its level of yes.
379
+ */
371
380
  text: string;
372
381
  /** True when the entry names who acted, so its actor id is not printed beside the name. */
373
382
  namesActor: boolean;
374
383
  }
375
- /** The phrase for an entry's named parties, or undefined when it names no one. */
384
+ /** The phrase for an entry's named parties and its level of yes, or undefined when it names neither. */
376
385
  declare function historyAttribution(entry: unknown): HistoryAttribution | undefined;
377
386
 
378
387
  /** Preserve generated SVG bytes while admitting only passive, local SVG markup. */
package/dist/index.d.ts CHANGED
@@ -365,14 +365,23 @@ declare function formatRecordLabel(value: unknown, readableIdentifier?: boolean)
365
365
  *
366
366
  * Only a `*_name` field names a party: `actor` and `actor_id` are ids, and an entry that names no one renders exactly as
367
367
  * it did before, its "Actor: <id>" line included.
368
+ *
369
+ * s245-m01: a change someone approved can also point at its approval and name its level of yes:
370
+ * approval_id the Approval record the yes is kept in: a pointer kept in the record's data, never printed
371
+ * approval_level the level of yes, printed in the words a level is shown in on every screen
372
+ * "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi (level: Approval)". An entry without a level prints exactly
373
+ * what it printed before.
368
374
  */
369
375
  interface HistoryAttribution {
370
- /** "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi"; "Ruth Adeyemi" alone for a person acting for herself. */
376
+ /**
377
+ * "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi"; "Ruth Adeyemi" alone for a person acting for herself;
378
+ * "… · approved by Ruth Adeyemi (level: Approval)" when the entry names its level of yes.
379
+ */
371
380
  text: string;
372
381
  /** True when the entry names who acted, so its actor id is not printed beside the name. */
373
382
  namesActor: boolean;
374
383
  }
375
- /** The phrase for an entry's named parties, or undefined when it names no one. */
384
+ /** The phrase for an entry's named parties and its level of yes, or undefined when it names neither. */
376
385
  declare function historyAttribution(entry: unknown): HistoryAttribution | undefined;
377
386
 
378
387
  /** Preserve generated SVG bytes while admitting only passive, local SVG markup. */