@openmrs/esm-framework 5.8.1-pre.2272 → 5.8.1-pre.2279

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.
@@ -22,4 +22,4 @@ Entrypoints:
22
22
  main (1.87 MiB)
23
23
  openmrs-esm-framework.js
24
24
 
25
- webpack 5.88.0 compiled with 2 warnings in 29990 ms
25
+ webpack 5.88.0 compiled with 2 warnings in 32549 ms
package/docs/API.md CHANGED
@@ -7214,7 +7214,9 @@ with the key "webservices.rest.maxResultsDefault". See: https://openmrs.atlassia
7214
7214
 
7215
7215
  This hook fetches data from a paginated rest endpoint, initially by fetching the first page of the results.
7216
7216
  It provides a callback to load data from subsequent pages as needed. This hook is intended to serve UIs that
7217
- provide infinite loading / scrolling of results.
7217
+ provide infinite loading / scrolling of results. Unlike `useOpenmrsPagination`, this hook does not allow random access
7218
+ (and lazy-loading) of any arbitrary page; rather, it fetches pages sequentially starting form the initial page, and the next page
7219
+ is fetched by calling `loadMore`. See: https://swr.vercel.app/docs/pagination#useswrinfinite
7218
7220
 
7219
7221
  **`see`** `useOpenmrsPagination`
7220
7222
 
@@ -7243,7 +7245,7 @@ a UseServerInfiniteReturnObject object
7243
7245
 
7244
7246
  #### Defined in
7245
7247
 
7246
- [packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:97](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts#L97)
7248
+ [packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:99](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts#L99)
7247
7249
 
7248
7250
  ___
7249
7251
 
@@ -7385,7 +7387,7 @@ ___
7385
7387
 
7386
7388
  ### age
7387
7389
 
7388
- ▸ **age**(`birthDate`, `currentDate?`): `string`
7390
+ ▸ **age**(`birthDate`, `currentDate?`): `string` \| ``null``
7389
7391
 
7390
7392
  Gets a human readable and locale supported representation of a person's age, given their birthDate,
7391
7393
  The representation logic follows the guideline here:
@@ -7396,12 +7398,12 @@ https://webarchive.nationalarchives.gov.uk/ukgwa/20160921162509mp_/http://system
7396
7398
 
7397
7399
  | Name | Type | Description |
7398
7400
  | :------ | :------ | :------ |
7399
- | `birthDate` | `undefined` \| ``null`` \| `string` \| `number` \| `Date` \| `Dayjs` | The birthDate. |
7401
+ | `birthDate` | `undefined` \| ``null`` \| `string` \| `number` \| `Date` \| `Dayjs` | The birthDate. If birthDate is null, returns null. |
7400
7402
  | `currentDate` | `undefined` \| ``null`` \| `string` \| `number` \| `Date` \| `Dayjs` | Optional. If provided, calculates the age of the person at the provided currentDate (instead of now). |
7401
7403
 
7402
7404
  #### Returns
7403
7405
 
7404
- `string`
7406
+ `string` \| ``null``
7405
7407
 
7406
7408
  A human-readable string version of the age.
7407
7409
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-framework",
3
- "version": "5.8.1-pre.2272",
3
+ "version": "5.8.1-pre.2279",
4
4
  "license": "MPL-2.0",
5
5
  "browser": "dist/openmrs-esm-framework.js",
6
6
  "main": "src/index.ts",
@@ -37,23 +37,23 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@openmrs/esm-api": "5.8.1-pre.2272",
41
- "@openmrs/esm-config": "5.8.1-pre.2272",
42
- "@openmrs/esm-context": "5.8.1-pre.2272",
43
- "@openmrs/esm-dynamic-loading": "5.8.1-pre.2272",
44
- "@openmrs/esm-error-handling": "5.8.1-pre.2272",
45
- "@openmrs/esm-expression-evaluator": "5.8.1-pre.2272",
46
- "@openmrs/esm-extensions": "5.8.1-pre.2272",
47
- "@openmrs/esm-feature-flags": "5.8.1-pre.2272",
48
- "@openmrs/esm-globals": "5.8.1-pre.2272",
49
- "@openmrs/esm-navigation": "5.8.1-pre.2272",
50
- "@openmrs/esm-offline": "5.8.1-pre.2272",
51
- "@openmrs/esm-react-utils": "5.8.1-pre.2272",
52
- "@openmrs/esm-routes": "5.8.1-pre.2272",
53
- "@openmrs/esm-state": "5.8.1-pre.2272",
54
- "@openmrs/esm-styleguide": "5.8.1-pre.2272",
55
- "@openmrs/esm-translations": "5.8.1-pre.2272",
56
- "@openmrs/esm-utils": "5.8.1-pre.2272",
40
+ "@openmrs/esm-api": "5.8.1-pre.2279",
41
+ "@openmrs/esm-config": "5.8.1-pre.2279",
42
+ "@openmrs/esm-context": "5.8.1-pre.2279",
43
+ "@openmrs/esm-dynamic-loading": "5.8.1-pre.2279",
44
+ "@openmrs/esm-error-handling": "5.8.1-pre.2279",
45
+ "@openmrs/esm-expression-evaluator": "5.8.1-pre.2279",
46
+ "@openmrs/esm-extensions": "5.8.1-pre.2279",
47
+ "@openmrs/esm-feature-flags": "5.8.1-pre.2279",
48
+ "@openmrs/esm-globals": "5.8.1-pre.2279",
49
+ "@openmrs/esm-navigation": "5.8.1-pre.2279",
50
+ "@openmrs/esm-offline": "5.8.1-pre.2279",
51
+ "@openmrs/esm-react-utils": "5.8.1-pre.2279",
52
+ "@openmrs/esm-routes": "5.8.1-pre.2279",
53
+ "@openmrs/esm-state": "5.8.1-pre.2279",
54
+ "@openmrs/esm-styleguide": "5.8.1-pre.2279",
55
+ "@openmrs/esm-translations": "5.8.1-pre.2279",
56
+ "@openmrs/esm-utils": "5.8.1-pre.2279",
57
57
  "dayjs": "^1.10.7"
58
58
  },
59
59
  "peerDependencies": {