@ticketmaster/tm-global-address 0.4.0 → 0.5.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.ts CHANGED
@@ -10,7 +10,14 @@ export type { AddressListProps } from './components/AddressList/AddressList';
10
10
  export type { AddressData, SaveAddressPayload, ActionResult, ActionSuccess, ActionFailure, ActionError, FieldError, } from './types/AddressData';
11
11
  export type { CountryValidationConfig, CountryOption, SubdivisionOption, } from './types/CountryConfig';
12
12
  export type { GlobalAddressProps } from './types/GlobalAddressProps';
13
- export { COUNTRY_OPTIONS, SUBDIVISIONS, COUNTRY_CONFIGS, getCountryConfig, getSubdivisions, getCountryName, } from './data/countryData';
13
+ export type { CountryRecord } from './data/countries';
14
+ export { COUNTRIES, getCountryByCode } from './data/countries';
15
+ export type { SubdivisionRecord } from './data/states';
16
+ export { SUBDIVISIONS, getSubdivisions } from './data/states';
17
+ export type { PostalPattern } from './data/postalPatterns';
18
+ export { POSTAL_PATTERNS, getPostalPattern } from './data/postalPatterns';
19
+ export { STATE_REQUIRED_CODES } from './data/countryConfig';
20
+ export { COUNTRY_OPTIONS, COUNTRY_CONFIGS, getCountryConfig, getCountryName, } from './data/countryData';
14
21
  export type { ValidationErrorCode, ValidationError, FieldValidationResult, FormValidationResult, CharacterPattern, FieldConstraint, } from './validation/types';
15
22
  export { FIELD_CONSTRAINTS } from './validation/constants';
16
23
  export { sanitize, validateTextField, validatePostalCode, validateState, validatePhoneNumber, validateForm, } from './validation/index';
package/dist/index.js CHANGED
@@ -1,36 +1,45 @@
1
1
  import { GlobalAddress as e } from "./components/GlobalAddress/GlobalAddress.js";
2
2
  import { AddressForm as m } from "./components/AddressForm/AddressForm.js";
3
- import { AddressCard as a, formatAddressSummary as s } from "./components/AddressCard/AddressCard.js";
4
- import { AddressSummary as x } from "./components/AddressSummary/AddressSummary.js";
5
- import { AddressList as i } from "./components/AddressList/AddressList.js";
6
- import { COUNTRY_CONFIGS as S, COUNTRY_OPTIONS as C, SUBDIVISIONS as N, getCountryConfig as A, getCountryName as I, getSubdivisions as O } from "./data/countryData.js";
7
- import { FIELD_CONSTRAINTS as u } from "./validation/constants.js";
8
- import { HelloWorld as T } from "./components/HelloWorld/HelloWorld.js";
9
- import { sanitize as g } from "./validation/sanitize.js";
10
- import { validateForm as b } from "./validation/validateForm.js";
11
- import { validatePhoneNumber as R } from "./validation/validatePhoneNumber.js";
12
- import { validatePostalCode as _ } from "./validation/validatePostalCode.js";
13
- import { validateState as G } from "./validation/validateState.js";
14
- import { validateTextField as Y } from "./validation/validateTextField.js";
3
+ import { AddressCard as a, formatAddressSummary as f } from "./components/AddressCard/AddressCard.js";
4
+ import { AddressSummary as p } from "./components/AddressSummary/AddressSummary.js";
5
+ import { AddressList as S } from "./components/AddressList/AddressList.js";
6
+ import { COUNTRIES as l, getCountryByCode as C } from "./data/countries.js";
7
+ import { SUBDIVISIONS as N, getSubdivisions as A } from "./data/states.js";
8
+ import { POSTAL_PATTERNS as I, getPostalPattern as n } from "./data/postalPatterns.js";
9
+ import { STATE_REQUIRED_CODES as E } from "./data/countryConfig.js";
10
+ import { COUNTRY_CONFIGS as R, COUNTRY_OPTIONS as g, getCountryConfig as v, getCountryName as y } from "./data/countryData.js";
11
+ import { FIELD_CONSTRAINTS as F } from "./validation/constants.js";
12
+ import { HelloWorld as D } from "./components/HelloWorld/HelloWorld.js";
13
+ import { sanitize as L } from "./validation/sanitize.js";
14
+ import { validateForm as G } from "./validation/validateForm.js";
15
+ import { validatePhoneNumber as h } from "./validation/validatePhoneNumber.js";
16
+ import { validatePostalCode as H } from "./validation/validatePostalCode.js";
17
+ import { validateState as V } from "./validation/validateState.js";
18
+ import { validateTextField as c } from "./validation/validateTextField.js";
15
19
  export {
16
20
  a as AddressCard,
17
21
  m as AddressForm,
18
- i as AddressList,
19
- x as AddressSummary,
20
- S as COUNTRY_CONFIGS,
21
- C as COUNTRY_OPTIONS,
22
- u as FIELD_CONSTRAINTS,
22
+ S as AddressList,
23
+ p as AddressSummary,
24
+ l as COUNTRIES,
25
+ R as COUNTRY_CONFIGS,
26
+ g as COUNTRY_OPTIONS,
27
+ F as FIELD_CONSTRAINTS,
23
28
  e as GlobalAddress,
24
- T as HelloWorld,
29
+ D as HelloWorld,
30
+ I as POSTAL_PATTERNS,
31
+ E as STATE_REQUIRED_CODES,
25
32
  N as SUBDIVISIONS,
26
- s as formatAddressSummary,
27
- A as getCountryConfig,
28
- I as getCountryName,
29
- O as getSubdivisions,
30
- g as sanitize,
31
- b as validateForm,
32
- R as validatePhoneNumber,
33
- _ as validatePostalCode,
34
- G as validateState,
35
- Y as validateTextField
33
+ f as formatAddressSummary,
34
+ C as getCountryByCode,
35
+ v as getCountryConfig,
36
+ y as getCountryName,
37
+ n as getPostalPattern,
38
+ A as getSubdivisions,
39
+ L as sanitize,
40
+ G as validateForm,
41
+ h as validatePhoneNumber,
42
+ H as validatePostalCode,
43
+ V as validateState,
44
+ c as validateTextField
36
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticketmaster/tm-global-address",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Shared React UI Library for Global Address Management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",