@openmrs/esm-framework 3.4.1-pre.156 → 3.4.1-pre.163
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/.turbo/turbo-build.log +9 -9
- package/dist/openmrs-esm-framework.js +1 -1
- package/dist/openmrs-esm-framework.js.LICENSE.txt +0 -9
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +61 -16
- package/docs/interfaces/DynamicOfflineData.md +78 -0
- package/docs/interfaces/DynamicOfflineDataHandler.md +105 -0
- package/docs/interfaces/DynamicOfflineDataSyncState.md +75 -0
- package/docs/interfaces/ExtensionProps.md +4 -2
- package/docs/interfaces/ExtensionSlotBaseProps.md +4 -4
- package/docs/interfaces/OldExtensionSlotBaseProps.md +4 -4
- package/mock.tsx +0 -6
- package/package.json +13 -13
package/docs/API.md
CHANGED
|
@@ -140,6 +140,10 @@
|
|
|
140
140
|
- [syncOfflinePatientData](API.md#syncofflinepatientdata)
|
|
141
141
|
- [useConnectivity](API.md#useconnectivity)
|
|
142
142
|
|
|
143
|
+
### Other Functions
|
|
144
|
+
|
|
145
|
+
- [ExtensionSlot](API.md#extensionslot)
|
|
146
|
+
|
|
143
147
|
### Store Functions
|
|
144
148
|
|
|
145
149
|
- [createGlobalStore](API.md#createglobalstore)
|
|
@@ -388,11 +392,11 @@ ___
|
|
|
388
392
|
|
|
389
393
|
### ExtensionSlotProps
|
|
390
394
|
|
|
391
|
-
Ƭ **ExtensionSlotProps**: [`OldExtensionSlotBaseProps`](interfaces/OldExtensionSlotBaseProps.md) \| [`ExtensionSlotBaseProps`](interfaces/ExtensionSlotBaseProps.md) & `React.HTMLAttributes`<`HTMLDivElement`\>
|
|
395
|
+
Ƭ **ExtensionSlotProps**: [`OldExtensionSlotBaseProps`](interfaces/OldExtensionSlotBaseProps.md) \| [`ExtensionSlotBaseProps`](interfaces/ExtensionSlotBaseProps.md) & `React.HTMLAttributes`<`HTMLDivElement`\> & { `children?`: `React.ReactNode` \| (`extension`: [`ConnectedExtension`](interfaces/ConnectedExtension.md)) => `React.ReactNode` }
|
|
392
396
|
|
|
393
397
|
#### Defined in
|
|
394
398
|
|
|
395
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
399
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:23](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L23)
|
|
396
400
|
|
|
397
401
|
___
|
|
398
402
|
|
|
@@ -704,17 +708,7 @@ and *must* only be used once within that `<ExtensionSlot>`.
|
|
|
704
708
|
|
|
705
709
|
#### Defined in
|
|
706
710
|
|
|
707
|
-
[packages/framework/esm-react-utils/src/Extension.tsx:
|
|
708
|
-
|
|
709
|
-
___
|
|
710
|
-
|
|
711
|
-
### ExtensionSlot
|
|
712
|
-
|
|
713
|
-
• **ExtensionSlot**: `React.FC`<[`ExtensionSlotProps`](API.md#extensionslotprops)\>
|
|
714
|
-
|
|
715
|
-
#### Defined in
|
|
716
|
-
|
|
717
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:68](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L68)
|
|
711
|
+
[packages/framework/esm-react-utils/src/Extension.tsx:31](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/Extension.tsx#L31)
|
|
718
712
|
|
|
719
713
|
___
|
|
720
714
|
|
|
@@ -2307,7 +2301,7 @@ ___
|
|
|
2307
2301
|
|
|
2308
2302
|
### renderExtension
|
|
2309
2303
|
|
|
2310
|
-
▸ **renderExtension**(`domElement`, `extensionSlotName`, `extensionSlotModuleName`, `extensionId`, `renderFunction?`, `additionalProps?`):
|
|
2304
|
+
▸ **renderExtension**(`domElement`, `extensionSlotName`, `extensionSlotModuleName`, `extensionId`, `renderFunction?`, `additionalProps?`): `Parcel` \| ``null``
|
|
2311
2305
|
|
|
2312
2306
|
Mounts into a DOM node (representing an extension slot)
|
|
2313
2307
|
a lazy-loaded component from *any* frontend module
|
|
@@ -2326,7 +2320,7 @@ that registered an extension component for this slot.
|
|
|
2326
2320
|
|
|
2327
2321
|
#### Returns
|
|
2328
2322
|
|
|
2329
|
-
|
|
2323
|
+
`Parcel` \| ``null``
|
|
2330
2324
|
|
|
2331
2325
|
#### Defined in
|
|
2332
2326
|
|
|
@@ -3428,6 +3422,57 @@ ___
|
|
|
3428
3422
|
|
|
3429
3423
|
___
|
|
3430
3424
|
|
|
3425
|
+
## Other Functions
|
|
3426
|
+
|
|
3427
|
+
### ExtensionSlot
|
|
3428
|
+
|
|
3429
|
+
▸ **ExtensionSlot**(`__namedParameters`): `Element`
|
|
3430
|
+
|
|
3431
|
+
An [extension slot](https://o3-dev.docs.openmrs.org/#/main/extensions).
|
|
3432
|
+
A place with a name. Extensions that get connected to that name
|
|
3433
|
+
will be rendered into this.
|
|
3434
|
+
|
|
3435
|
+
**`example`**
|
|
3436
|
+
Passing a react node as children
|
|
3437
|
+
|
|
3438
|
+
```tsx
|
|
3439
|
+
<ExtensionSlot name="Foo">
|
|
3440
|
+
<div style={{ width: 10rem }}>
|
|
3441
|
+
<Extension />
|
|
3442
|
+
</div>
|
|
3443
|
+
</ExtensionSlot>
|
|
3444
|
+
```
|
|
3445
|
+
|
|
3446
|
+
**`example`**
|
|
3447
|
+
Passing a function as children
|
|
3448
|
+
|
|
3449
|
+
```tsx
|
|
3450
|
+
<ExtensionSlot name="Bar">
|
|
3451
|
+
{(extension) => (
|
|
3452
|
+
<h1>{extension.name}</h1>
|
|
3453
|
+
<div style={{ color: extension.meta.color }}>
|
|
3454
|
+
<Extension />
|
|
3455
|
+
</div>
|
|
3456
|
+
)}
|
|
3457
|
+
</ExtensionSlot>
|
|
3458
|
+
```
|
|
3459
|
+
|
|
3460
|
+
#### Parameters
|
|
3461
|
+
|
|
3462
|
+
| Name | Type |
|
|
3463
|
+
| :------ | :------ |
|
|
3464
|
+
| `__namedParameters` | [`ExtensionSlotProps`](API.md#extensionslotprops) |
|
|
3465
|
+
|
|
3466
|
+
#### Returns
|
|
3467
|
+
|
|
3468
|
+
`Element`
|
|
3469
|
+
|
|
3470
|
+
#### Defined in
|
|
3471
|
+
|
|
3472
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:85](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L85)
|
|
3473
|
+
|
|
3474
|
+
___
|
|
3475
|
+
|
|
3431
3476
|
## Store Functions
|
|
3432
3477
|
|
|
3433
3478
|
### createGlobalStore
|
|
@@ -3774,7 +3819,7 @@ The dispose function to force closing the modal dialog.
|
|
|
3774
3819
|
|
|
3775
3820
|
#### Defined in
|
|
3776
3821
|
|
|
3777
|
-
[packages/framework/esm-styleguide/src/modals/index.tsx:
|
|
3822
|
+
[packages/framework/esm-styleguide/src/modals/index.tsx:165](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-styleguide/src/modals/index.tsx#L165)
|
|
3778
3823
|
|
|
3779
3824
|
___
|
|
3780
3825
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / DynamicOfflineData
|
|
2
|
+
|
|
3
|
+
# Interface: DynamicOfflineData
|
|
4
|
+
|
|
5
|
+
Represents the registration of a single dynamic offline data entry.
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Offline Properties
|
|
10
|
+
|
|
11
|
+
- [id](DynamicOfflineData.md#id)
|
|
12
|
+
- [identifier](DynamicOfflineData.md#identifier)
|
|
13
|
+
- [syncState](DynamicOfflineData.md#syncstate)
|
|
14
|
+
- [type](DynamicOfflineData.md#type)
|
|
15
|
+
- [users](DynamicOfflineData.md#users)
|
|
16
|
+
|
|
17
|
+
## Offline Properties
|
|
18
|
+
|
|
19
|
+
### id
|
|
20
|
+
|
|
21
|
+
• `Optional` **id**: `number`
|
|
22
|
+
|
|
23
|
+
The internal ID of the data entry, as assigned by the IndexedDB where it is stored.
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:48](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L48)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### identifier
|
|
32
|
+
|
|
33
|
+
• **identifier**: `string`
|
|
34
|
+
|
|
35
|
+
The externally provided identifier of the data entry.
|
|
36
|
+
This is typically the ID of the resource as assigned by a remote API.
|
|
37
|
+
|
|
38
|
+
#### Defined in
|
|
39
|
+
|
|
40
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:58](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L58)
|
|
41
|
+
|
|
42
|
+
___
|
|
43
|
+
|
|
44
|
+
### syncState
|
|
45
|
+
|
|
46
|
+
• `Optional` **syncState**: [`DynamicOfflineDataSyncState`](DynamicOfflineDataSyncState.md)
|
|
47
|
+
|
|
48
|
+
If this entry has already been synced, returns the result of that last sync attempt.
|
|
49
|
+
Otherwise this is `undefined`.
|
|
50
|
+
|
|
51
|
+
#### Defined in
|
|
52
|
+
|
|
53
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:67](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L67)
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
57
|
+
### type
|
|
58
|
+
|
|
59
|
+
• **type**: `string`
|
|
60
|
+
|
|
61
|
+
The underlying type used for categorizing the data entry.
|
|
62
|
+
Examples could be `"patient"` or `"form"`.
|
|
63
|
+
|
|
64
|
+
#### Defined in
|
|
65
|
+
|
|
66
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:53](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L53)
|
|
67
|
+
|
|
68
|
+
___
|
|
69
|
+
|
|
70
|
+
### users
|
|
71
|
+
|
|
72
|
+
• **users**: `string`[]
|
|
73
|
+
|
|
74
|
+
The UUIDs of the users who need this data entry available offline.
|
|
75
|
+
|
|
76
|
+
#### Defined in
|
|
77
|
+
|
|
78
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:62](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L62)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / DynamicOfflineDataHandler
|
|
2
|
+
|
|
3
|
+
# Interface: DynamicOfflineDataHandler
|
|
4
|
+
|
|
5
|
+
A handler for synchronizing dynamically declared offline data.
|
|
6
|
+
Can be setup using the [setupDynamicOfflineDataHandler](../API.md#setupdynamicofflinedatahandler) function.
|
|
7
|
+
|
|
8
|
+
## Table of contents
|
|
9
|
+
|
|
10
|
+
### Offline Properties
|
|
11
|
+
|
|
12
|
+
- [displayName](DynamicOfflineDataHandler.md#displayname)
|
|
13
|
+
- [id](DynamicOfflineDataHandler.md#id)
|
|
14
|
+
- [type](DynamicOfflineDataHandler.md#type)
|
|
15
|
+
|
|
16
|
+
### Methods
|
|
17
|
+
|
|
18
|
+
- [isSynced](DynamicOfflineDataHandler.md#issynced)
|
|
19
|
+
- [sync](DynamicOfflineDataHandler.md#sync)
|
|
20
|
+
|
|
21
|
+
## Offline Properties
|
|
22
|
+
|
|
23
|
+
### displayName
|
|
24
|
+
|
|
25
|
+
• `Optional` **displayName**: `string`
|
|
26
|
+
|
|
27
|
+
A human-readable string representing the handler.
|
|
28
|
+
If provided, the handler can be rendered in the UI using that string.
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L24)
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### id
|
|
37
|
+
|
|
38
|
+
• **id**: `string`
|
|
39
|
+
|
|
40
|
+
A string uniquely identifying the handler.
|
|
41
|
+
|
|
42
|
+
#### Defined in
|
|
43
|
+
|
|
44
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L14)
|
|
45
|
+
|
|
46
|
+
___
|
|
47
|
+
|
|
48
|
+
### type
|
|
49
|
+
|
|
50
|
+
• **type**: `string`
|
|
51
|
+
|
|
52
|
+
The type of offline data handled by this handler.
|
|
53
|
+
See [DynamicOfflineData.type](DynamicOfflineData.md#type) for details.
|
|
54
|
+
|
|
55
|
+
#### Defined in
|
|
56
|
+
|
|
57
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:19](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L19)
|
|
58
|
+
|
|
59
|
+
## Methods
|
|
60
|
+
|
|
61
|
+
### isSynced
|
|
62
|
+
|
|
63
|
+
▸ **isSynced**(`identifier`, `abortSignal?`): `Promise`<`boolean`\>
|
|
64
|
+
|
|
65
|
+
Evaluates whether the given offline data is correctly synced at this point in time from the perspective
|
|
66
|
+
of this single handler.
|
|
67
|
+
If `false`, the handler would have to (re-)sync the data in order for offline mode to properly work.
|
|
68
|
+
|
|
69
|
+
#### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description |
|
|
72
|
+
| :------ | :------ | :------ |
|
|
73
|
+
| `identifier` | `string` | The identifier of the offline data. See [DynamicOfflineData](DynamicOfflineData.md) for details. |
|
|
74
|
+
| `abortSignal?` | `AbortSignal` | An {@link AbortSignal} which can be used to cancel the operation. |
|
|
75
|
+
|
|
76
|
+
#### Returns
|
|
77
|
+
|
|
78
|
+
`Promise`<`boolean`\>
|
|
79
|
+
|
|
80
|
+
#### Defined in
|
|
81
|
+
|
|
82
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:32](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L32)
|
|
83
|
+
|
|
84
|
+
___
|
|
85
|
+
|
|
86
|
+
### sync
|
|
87
|
+
|
|
88
|
+
▸ **sync**(`identifier`, `abortSignal?`): `Promise`<`void`\>
|
|
89
|
+
|
|
90
|
+
Synchronizes the given offline data.
|
|
91
|
+
|
|
92
|
+
#### Parameters
|
|
93
|
+
|
|
94
|
+
| Name | Type | Description |
|
|
95
|
+
| :------ | :------ | :------ |
|
|
96
|
+
| `identifier` | `string` | The identifier of the offline data. See [DynamicOfflineData](DynamicOfflineData.md) for details. |
|
|
97
|
+
| `abortSignal?` | `AbortSignal` | An {@link AbortSignal} which can be used to cancel the operation. |
|
|
98
|
+
|
|
99
|
+
#### Returns
|
|
100
|
+
|
|
101
|
+
`Promise`<`void`\>
|
|
102
|
+
|
|
103
|
+
#### Defined in
|
|
104
|
+
|
|
105
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:38](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L38)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / DynamicOfflineDataSyncState
|
|
2
|
+
|
|
3
|
+
# Interface: DynamicOfflineDataSyncState
|
|
4
|
+
|
|
5
|
+
Represents the result of syncing a given [DynamicOfflineData](DynamicOfflineData.md) entry.
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Offline Properties
|
|
10
|
+
|
|
11
|
+
- [erroredHandlers](DynamicOfflineDataSyncState.md#erroredhandlers)
|
|
12
|
+
- [errors](DynamicOfflineDataSyncState.md#errors)
|
|
13
|
+
- [succeededHandlers](DynamicOfflineDataSyncState.md#succeededhandlers)
|
|
14
|
+
- [syncedBy](DynamicOfflineDataSyncState.md#syncedby)
|
|
15
|
+
- [syncedOn](DynamicOfflineDataSyncState.md#syncedon)
|
|
16
|
+
|
|
17
|
+
## Offline Properties
|
|
18
|
+
|
|
19
|
+
### erroredHandlers
|
|
20
|
+
|
|
21
|
+
• **erroredHandlers**: `string`[]
|
|
22
|
+
|
|
23
|
+
The IDs of the handlers which failed to synchronize their data.
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:89](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L89)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### errors
|
|
32
|
+
|
|
33
|
+
• **errors**: { `handlerId`: `string` ; `message`: `string` }[]
|
|
34
|
+
|
|
35
|
+
A collection of the errors caught while synchronizing, per handler.
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:93](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L93)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### succeededHandlers
|
|
44
|
+
|
|
45
|
+
• **succeededHandlers**: `string`[]
|
|
46
|
+
|
|
47
|
+
The IDs of the handlers which successfully synchronized their data.
|
|
48
|
+
|
|
49
|
+
#### Defined in
|
|
50
|
+
|
|
51
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:85](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L85)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### syncedBy
|
|
56
|
+
|
|
57
|
+
• **syncedBy**: `string`
|
|
58
|
+
|
|
59
|
+
The ID of the user who has triggered the data synchronization.
|
|
60
|
+
|
|
61
|
+
#### Defined in
|
|
62
|
+
|
|
63
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:81](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L81)
|
|
64
|
+
|
|
65
|
+
___
|
|
66
|
+
|
|
67
|
+
### syncedOn
|
|
68
|
+
|
|
69
|
+
• **syncedOn**: `Date`
|
|
70
|
+
|
|
71
|
+
The time when the entry has been synced the last time.
|
|
72
|
+
|
|
73
|
+
#### Defined in
|
|
74
|
+
|
|
75
|
+
[packages/framework/esm-offline/src/dynamic-offline-data.ts:77](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/dynamic-offline-data.ts#L77)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
#### Defined in
|
|
22
22
|
|
|
23
|
-
[packages/framework/esm-react-utils/src/Extension.tsx:
|
|
23
|
+
[packages/framework/esm-react-utils/src/Extension.tsx:14](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/Extension.tsx#L14)
|
|
24
24
|
|
|
25
25
|
## Methods
|
|
26
26
|
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
▸ `Optional` **wrap**(`slot`, `extension`): ``null`` \| `ReactElement`<`any`, `any`\>
|
|
30
30
|
|
|
31
|
+
**`deprecated`** Pass a function as the child of `ExtensionSlot` instead.
|
|
32
|
+
|
|
31
33
|
#### Parameters
|
|
32
34
|
|
|
33
35
|
| Name | Type |
|
|
@@ -41,4 +43,4 @@
|
|
|
41
43
|
|
|
42
44
|
#### Defined in
|
|
43
45
|
|
|
44
|
-
[packages/framework/esm-react-utils/src/Extension.tsx:
|
|
46
|
+
[packages/framework/esm-react-utils/src/Extension.tsx:16](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/Extension.tsx#L16)
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
#### Defined in
|
|
26
26
|
|
|
27
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
27
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L10)
|
|
28
28
|
|
|
29
29
|
___
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ ___
|
|
|
34
34
|
|
|
35
35
|
#### Defined in
|
|
36
36
|
|
|
37
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
37
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:8](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L8)
|
|
38
38
|
|
|
39
39
|
___
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ ___
|
|
|
44
44
|
|
|
45
45
|
#### Defined in
|
|
46
46
|
|
|
47
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
47
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L12)
|
|
48
48
|
|
|
49
49
|
## Methods
|
|
50
50
|
|
|
@@ -64,4 +64,4 @@ ___
|
|
|
64
64
|
|
|
65
65
|
#### Defined in
|
|
66
66
|
|
|
67
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
67
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:11](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L11)
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
#### Defined in
|
|
26
26
|
|
|
27
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
27
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:18](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L18)
|
|
28
28
|
|
|
29
29
|
___
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ ___
|
|
|
34
34
|
|
|
35
35
|
#### Defined in
|
|
36
36
|
|
|
37
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
37
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:16](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L16)
|
|
38
38
|
|
|
39
39
|
___
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ ___
|
|
|
44
44
|
|
|
45
45
|
#### Defined in
|
|
46
46
|
|
|
47
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
47
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:20](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L20)
|
|
48
48
|
|
|
49
49
|
## Methods
|
|
50
50
|
|
|
@@ -64,4 +64,4 @@ ___
|
|
|
64
64
|
|
|
65
65
|
#### Defined in
|
|
66
66
|
|
|
67
|
-
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:
|
|
67
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:19](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L19)
|
package/mock.tsx
CHANGED
|
@@ -249,12 +249,6 @@ export const useSession = jest.fn(() => ({
|
|
|
249
249
|
|
|
250
250
|
export const useLayoutType = jest.fn(() => "desktop");
|
|
251
251
|
|
|
252
|
-
export const useExtensionSlot = jest.fn(() => ({
|
|
253
|
-
extensionSlotModuleName: "",
|
|
254
|
-
attachedExtensionSlotName: "",
|
|
255
|
-
extensionIdsToRender: [],
|
|
256
|
-
}));
|
|
257
|
-
|
|
258
252
|
export const useExtensionSlotMeta = jest.fn(() => ({}));
|
|
259
253
|
|
|
260
254
|
export const UserHasAccess = jest.fn().mockImplementation((props: any) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "3.4.1-pre.
|
|
3
|
+
"version": "3.4.1-pre.163",
|
|
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.4.1-pre.
|
|
39
|
-
"@openmrs/esm-breadcrumbs": "^3.4.1-pre.
|
|
40
|
-
"@openmrs/esm-config": "^3.4.1-pre.
|
|
41
|
-
"@openmrs/esm-error-handling": "^3.4.1-pre.
|
|
42
|
-
"@openmrs/esm-extensions": "^3.4.1-pre.
|
|
43
|
-
"@openmrs/esm-globals": "^3.4.1-pre.
|
|
44
|
-
"@openmrs/esm-offline": "^3.4.1-pre.
|
|
45
|
-
"@openmrs/esm-react-utils": "^3.4.1-pre.
|
|
46
|
-
"@openmrs/esm-state": "^3.4.1-pre.
|
|
47
|
-
"@openmrs/esm-styleguide": "^3.4.1-pre.
|
|
48
|
-
"@openmrs/esm-utils": "^3.4.1-pre.
|
|
38
|
+
"@openmrs/esm-api": "^3.4.1-pre.163",
|
|
39
|
+
"@openmrs/esm-breadcrumbs": "^3.4.1-pre.163",
|
|
40
|
+
"@openmrs/esm-config": "^3.4.1-pre.163",
|
|
41
|
+
"@openmrs/esm-error-handling": "^3.4.1-pre.163",
|
|
42
|
+
"@openmrs/esm-extensions": "^3.4.1-pre.163",
|
|
43
|
+
"@openmrs/esm-globals": "^3.4.1-pre.163",
|
|
44
|
+
"@openmrs/esm-offline": "^3.4.1-pre.163",
|
|
45
|
+
"@openmrs/esm-react-utils": "^3.4.1-pre.163",
|
|
46
|
+
"@openmrs/esm-state": "^3.4.1-pre.163",
|
|
47
|
+
"@openmrs/esm-styleguide": "^3.4.1-pre.163",
|
|
48
|
+
"@openmrs/esm-utils": "^3.4.1-pre.163",
|
|
49
49
|
"dayjs": "^1.10.7"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "60f1da32b4611bb9045a78b307cd331070e24151"
|
|
52
52
|
}
|