@micromerce/formbuilder-react 1.0.964 → 1.0.969

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.
@@ -7,3 +7,14 @@ export interface IExtractMrn {
7
7
  resource?: string;
8
8
  }
9
9
  export declare const extractMrn: (mrn: string) => IExtractMrn | null | undefined;
10
+ export declare const canonicalMrn: <T extends string | null | undefined>(value: T) => T;
11
+ /** Format-independent MRN equality: a legacy MRN equals its eu-central-1 / empty-region twin. */
12
+ export declare const mrnEquals: (a?: string | null, b?: string | null) => boolean;
13
+ /**
14
+ * The mrnSource a value belongs to - the value (an entry MRN) contains the source MRN (its entries MRN).
15
+ * Compared canonically, so a form applied before COP-2782 wave 2 (legacy source MRNs) still finds the
16
+ * source of a region-aware value and vice versa. A source of another region or application never matches.
17
+ */
18
+ export declare const findMrnSource: <S extends {
19
+ mrn?: string;
20
+ }>(mrnSources: S[] | undefined, value: string | null | undefined) => S | undefined;