@openmrs/esm-framework 3.3.2-pre.2 → 3.3.2-pre.29

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/docs/API.md CHANGED
@@ -2728,7 +2728,7 @@ ___
2728
2728
 
2729
2729
  ### getFullSynchronizationItems
2730
2730
 
2731
- ▸ **getFullSynchronizationItems**<`T`\>(`type`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2731
+ ▸ **getFullSynchronizationItems**<`T`\>(`type?`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2732
2732
 
2733
2733
  Returns all currently queued up sync items of the currently signed in user.
2734
2734
 
@@ -2742,7 +2742,7 @@ Returns all currently queued up sync items of the currently signed in user.
2742
2742
 
2743
2743
  | Name | Type | Description |
2744
2744
  | :------ | :------ | :------ |
2745
- | `type` | `string` | The identifying type of the synchronization items to be returned. |
2745
+ | `type?` | `string` | The identifying type of the synchronization items to be returned. |
2746
2746
 
2747
2747
  #### Returns
2748
2748
 
@@ -2750,13 +2750,13 @@ Returns all currently queued up sync items of the currently signed in user.
2750
2750
 
2751
2751
  #### Defined in
2752
2752
 
2753
- [packages/framework/esm-offline/src/sync.ts:347](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L347)
2753
+ [packages/framework/esm-offline/src/sync.ts:345](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L345)
2754
2754
 
2755
2755
  ___
2756
2756
 
2757
2757
  ### getFullSynchronizationItemsFor
2758
2758
 
2759
- ▸ **getFullSynchronizationItemsFor**<`T`\>(`userId`, `type`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2759
+ ▸ **getFullSynchronizationItemsFor**<`T`\>(`userId`, `type?`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2760
2760
 
2761
2761
  Returns all currently queued up sync items of a given user.
2762
2762
 
@@ -2771,7 +2771,7 @@ Returns all currently queued up sync items of a given user.
2771
2771
  | Name | Type | Description |
2772
2772
  | :------ | :------ | :------ |
2773
2773
  | `userId` | `string` | The ID of the user whose synchronization items should be returned. |
2774
- | `type` | `string` | The identifying type of the synchronization items to be returned.. |
2774
+ | `type?` | `string` | The identifying type of the synchronization items to be returned.. |
2775
2775
 
2776
2776
  #### Returns
2777
2777
 
@@ -2779,7 +2779,7 @@ Returns all currently queued up sync items of a given user.
2779
2779
 
2780
2780
  #### Defined in
2781
2781
 
2782
- [packages/framework/esm-offline/src/sync.ts:320](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L320)
2782
+ [packages/framework/esm-offline/src/sync.ts:321](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L321)
2783
2783
 
2784
2784
  ___
2785
2785
 
@@ -2821,13 +2821,13 @@ Returns a queued sync item with the given ID or `undefined` if no such item exis
2821
2821
 
2822
2822
  #### Defined in
2823
2823
 
2824
- [packages/framework/esm-offline/src/sync.ts:356](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L356)
2824
+ [packages/framework/esm-offline/src/sync.ts:354](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L354)
2825
2825
 
2826
2826
  ___
2827
2827
 
2828
2828
  ### getSynchronizationItems
2829
2829
 
2830
- ▸ **getSynchronizationItems**<`T`\>(`type`): `Promise`<`T`[]\>
2830
+ ▸ **getSynchronizationItems**<`T`\>(`type?`): `Promise`<`T`[]\>
2831
2831
 
2832
2832
  Returns the content of all currently queued up sync items of the currently signed in user.
2833
2833
 
@@ -2841,7 +2841,7 @@ Returns the content of all currently queued up sync items of the currently signe
2841
2841
 
2842
2842
  | Name | Type | Description |
2843
2843
  | :------ | :------ | :------ |
2844
- | `type` | `string` | The identifying type of the synchronization items to be returned. |
2844
+ | `type?` | `string` | The identifying type of the synchronization items to be returned. |
2845
2845
 
2846
2846
  #### Returns
2847
2847
 
@@ -2849,7 +2849,7 @@ Returns the content of all currently queued up sync items of the currently signe
2849
2849
 
2850
2850
  #### Defined in
2851
2851
 
2852
- [packages/framework/esm-offline/src/sync.ts:338](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L338)
2852
+ [packages/framework/esm-offline/src/sync.ts:336](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L336)
2853
2853
 
2854
2854
  ___
2855
2855
 
@@ -2939,7 +2939,7 @@ Enqueues a new item in the sync queue and associates the item with the currently
2939
2939
 
2940
2940
  #### Defined in
2941
2941
 
2942
- [packages/framework/esm-offline/src/sync.ts:293](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L293)
2942
+ [packages/framework/esm-offline/src/sync.ts:294](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L294)
2943
2943
 
2944
2944
  ___
2945
2945
 
package/mock.tsx CHANGED
@@ -10,7 +10,11 @@ export {
10
10
  formatTime,
11
11
  age,
12
12
  } from "@openmrs/esm-utils";
13
- export { interpolateString, interpolateUrl } from "@openmrs/esm-config";
13
+ export {
14
+ interpolateString,
15
+ interpolateUrl,
16
+ validators,
17
+ } from "@openmrs/esm-config";
14
18
 
15
19
  window.i18next = { ...window.i18next, language: "en" };
16
20
 
@@ -149,13 +153,6 @@ export enum Type {
149
153
  UUID = "UUID",
150
154
  }
151
155
 
152
- export const validators = {
153
- isBoolean: jest.fn(),
154
- isString: jest.fn(),
155
- isUuid: jest.fn(),
156
- isObject: jest.fn(),
157
- };
158
-
159
156
  let configSchema = {};
160
157
  function getDefaults(schema) {
161
158
  let tmp = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-framework",
3
- "version": "3.3.2-pre.2",
3
+ "version": "3.3.2-pre.29",
4
4
  "license": "MPL-2.0",
5
5
  "browser": "dist/openmrs-esm-framework.js",
6
6
  "main": "src/index.ts",
@@ -35,18 +35,18 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@openmrs/esm-api": "^3.3.2-pre.2",
39
- "@openmrs/esm-breadcrumbs": "^3.3.2-pre.2",
40
- "@openmrs/esm-config": "^3.3.2-pre.2",
41
- "@openmrs/esm-error-handling": "^3.3.2-pre.2",
42
- "@openmrs/esm-extensions": "^3.3.2-pre.2",
43
- "@openmrs/esm-globals": "^3.3.2-pre.2",
44
- "@openmrs/esm-offline": "^3.3.2-pre.2",
45
- "@openmrs/esm-react-utils": "^3.3.2-pre.2",
46
- "@openmrs/esm-state": "^3.3.2-pre.2",
47
- "@openmrs/esm-styleguide": "^3.3.2-pre.2",
48
- "@openmrs/esm-utils": "^3.3.2-pre.2",
38
+ "@openmrs/esm-api": "^3.3.2-pre.29",
39
+ "@openmrs/esm-breadcrumbs": "^3.3.2-pre.29",
40
+ "@openmrs/esm-config": "^3.3.2-pre.29",
41
+ "@openmrs/esm-error-handling": "^3.3.2-pre.29",
42
+ "@openmrs/esm-extensions": "^3.3.2-pre.29",
43
+ "@openmrs/esm-globals": "^3.3.2-pre.29",
44
+ "@openmrs/esm-offline": "^3.3.2-pre.29",
45
+ "@openmrs/esm-react-utils": "^3.3.2-pre.29",
46
+ "@openmrs/esm-state": "^3.3.2-pre.29",
47
+ "@openmrs/esm-styleguide": "^3.3.2-pre.29",
48
+ "@openmrs/esm-utils": "^3.3.2-pre.29",
49
49
  "dayjs": "^1.10.7"
50
50
  },
51
- "gitHead": "8f4e1fa055baf06145ed3eca47c414eda1282069"
51
+ "gitHead": "8f240e36137efbe9fac05bc2a75e54dd3c1f523d"
52
52
  }