@openmrs/esm-framework 6.3.1-pre.2961 → 6.3.1-pre.2986
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 +3 -25
- package/dist/index.d.ts +17 -0
- package/dist/internal.d.ts +17 -0
- package/dist/openmrs-esm-framework.js +1 -2
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +369 -283
- package/docs/classes/OpenmrsFetchError.md +10 -10
- package/docs/enums/VisitMode.md +3 -3
- package/docs/enums/VisitStatus.md +2 -2
- package/docs/interfaces/AssignedExtension.md +1 -1
- package/docs/interfaces/Attachment.md +7 -7
- package/docs/interfaces/AttachmentResponse.md +6 -6
- package/docs/interfaces/CloseWorkspaceOptions.md +3 -3
- package/docs/interfaces/ConfigurableLinkProps.md +474 -317
- package/docs/interfaces/ConnectedExtension.md +1 -1
- package/docs/interfaces/ConnectivityChangedEvent.md +1 -1
- package/docs/interfaces/CurrentPatientOptions.md +1 -1
- package/docs/interfaces/DefaultWorkspaceProps.md +4 -4
- package/docs/interfaces/Diagnosis.md +25 -25
- package/docs/interfaces/EmrApiConfigurationResponse.md +596 -0
- package/docs/interfaces/Encounter.md +24 -24
- package/docs/interfaces/EncounterProvider.md +16 -16
- package/docs/interfaces/EncounterRole.md +16 -16
- package/docs/interfaces/EncounterType.md +16 -16
- package/docs/interfaces/ExtensionSlotBaseProps.md +3 -3
- package/docs/interfaces/FHIRCode.md +3 -3
- package/docs/interfaces/FHIRLocationResource.md +30 -0
- package/docs/interfaces/FHIRResource.md +1 -1
- package/docs/interfaces/FeatureFlagDefinition.md +3 -3
- package/docs/interfaces/FetchConfig.md +13 -13
- package/docs/interfaces/FetchError.md +2 -2
- package/docs/interfaces/FetchResponse.md +15 -15
- package/docs/interfaces/ImportMap.md +1 -1
- package/docs/interfaces/Location.md +370 -3
- package/docs/interfaces/LoggedInUserFetchResponse.md +15 -15
- package/docs/interfaces/NewVisitPayload.md +7 -7
- package/docs/interfaces/NotificationDescriptor.md +20 -2
- package/docs/interfaces/Obs.md +36 -36
- package/docs/interfaces/OldExtensionSlotBaseProps.md +3 -3
- package/docs/interfaces/OnlyThePatient.md +1 -1
- package/docs/interfaces/OpenWorkspace.md +29 -29
- package/docs/interfaces/OpenmrsAppRoutes.md +9 -9
- package/docs/interfaces/OpenmrsDatePickerProps.md +1 -1
- package/docs/interfaces/OpenmrsResource.md +0 -12
- package/docs/interfaces/OpenmrsResourceStrict.md +0 -6
- package/docs/interfaces/Patient.md +17 -17
- package/docs/interfaces/PatientIdentifier.md +18 -18
- package/docs/interfaces/PatientIdentifierType.md +22 -22
- package/docs/interfaces/PatientPhotoProps.md +0 -11
- package/docs/interfaces/PatientWithFullResponse.md +1 -1
- package/docs/interfaces/Prompt.md +5 -5
- package/docs/interfaces/ResourceLoader.md +1 -1
- package/docs/interfaces/RetryOptions.md +3 -3
- package/docs/interfaces/ShowActionableNotificationEvent.md +6 -6
- package/docs/interfaces/ShowNotificationEvent.md +5 -5
- package/docs/interfaces/ShowSnackbarEvent.md +8 -8
- package/docs/interfaces/ShowToastEvent.md +5 -5
- package/docs/interfaces/SpaConfig.md +5 -5
- package/docs/interfaces/StyleguideConfigObject.md +2 -2
- package/docs/interfaces/UploadedFile.md +7 -7
- package/docs/interfaces/UseConfigOptions.md +22 -0
- package/docs/interfaces/UseServerFetchAllOptions.md +5 -5
- package/docs/interfaces/UseServerInfiniteOptions.md +5 -5
- package/docs/interfaces/UseServerPaginationOptions.md +2 -2
- package/docs/interfaces/Visit.md +11 -11
- package/docs/interfaces/VisitItem.md +4 -4
- package/docs/interfaces/VisitReturnType.md +2 -2
- package/docs/interfaces/VisitStoreState.md +3 -3
- package/docs/interfaces/VisitType.md +3 -3
- package/docs/interfaces/WorkspaceGroupDefinition.md +2 -2
- package/docs/interfaces/WorkspaceRegistration.md +0 -6
- package/docs/interfaces/WorkspacesInfo.md +5 -5
- package/mock-jest.tsx +125 -0
- package/mock.tsx +44 -42
- package/package.json +58 -31
- package/rspack.config.cjs +96 -0
- package/{src/integration-tests/setup-tests.ts → setup-tests.ts} +6 -1
- package/src/declarations.d.ts +0 -1
- package/src/index.ts +2 -3
- package/src/integration-tests/extension-config.test.tsx +14 -12
- package/src/internal.ts +2 -3
- package/src/mock-test.test.ts +2 -2
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +3 -24
- package/typedoc.json +1 -0
- package/vitest.config.ts +9 -0
- package/dist/278.openmrs-esm-framework.js +0 -2
- package/dist/278.openmrs-esm-framework.js.map +0 -1
- package/dist/530.openmrs-esm-framework.js +0 -2
- package/dist/530.openmrs-esm-framework.js.map +0 -1
- package/dist/588.openmrs-esm-framework.js +0 -2
- package/dist/588.openmrs-esm-framework.js.map +0 -1
- package/dist/619.openmrs-esm-framework.js +0 -2
- package/dist/619.openmrs-esm-framework.js.map +0 -1
- package/dist/645.openmrs-esm-framework.js +0 -2
- package/dist/645.openmrs-esm-framework.js.map +0 -1
- package/dist/735.openmrs-esm-framework.js +0 -3
- package/dist/735.openmrs-esm-framework.js.LICENSE.txt +0 -9
- package/dist/735.openmrs-esm-framework.js.map +0 -1
- package/dist/746.openmrs-esm-framework.js +0 -2
- package/dist/746.openmrs-esm-framework.js.map +0 -1
- package/dist/788.openmrs-esm-framework.js +0 -3
- package/dist/788.openmrs-esm-framework.js.LICENSE.txt +0 -19
- package/dist/788.openmrs-esm-framework.js.map +0 -1
- package/dist/openmrs-esm-framework.js.LICENSE.txt +0 -68
- package/jest.config.js +0 -22
- package/webpack.config.js +0 -80
@@ -1,68 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
3
|
-
Licensed under the MIT License (MIT), see
|
4
|
-
http://jedwatson.github.io/classnames
|
5
|
-
*/
|
6
|
-
|
7
|
-
/*!
|
8
|
-
* Determine if an object is a Buffer
|
9
|
-
*
|
10
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
11
|
-
* @license MIT
|
12
|
-
*/
|
13
|
-
|
14
|
-
/*!
|
15
|
-
* tabbable 6.2.0
|
16
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
17
|
-
*/
|
18
|
-
|
19
|
-
/*! *****************************************************************************
|
20
|
-
Copyright (c) Microsoft Corporation.
|
21
|
-
|
22
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
23
|
-
purpose with or without fee is hereby granted.
|
24
|
-
|
25
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
26
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
27
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
28
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
29
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
30
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
31
|
-
PERFORMANCE OF THIS SOFTWARE.
|
32
|
-
***************************************************************************** */
|
33
|
-
|
34
|
-
/*! For license information please see openmrs-esm-api.js.LICENSE.txt */
|
35
|
-
|
36
|
-
/*! For license information please see openmrs-esm-react-utils.js.LICENSE.txt */
|
37
|
-
|
38
|
-
/*! For license information please see openmrs-esm-utils.js.LICENSE.txt */
|
39
|
-
|
40
|
-
/**
|
41
|
-
* @license React
|
42
|
-
* react-is.production.min.js
|
43
|
-
*
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
45
|
-
*
|
46
|
-
* This source code is licensed under the MIT license found in the
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
48
|
-
*/
|
49
|
-
|
50
|
-
/**
|
51
|
-
* @license React
|
52
|
-
* react-jsx-runtime.production.min.js
|
53
|
-
*
|
54
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
55
|
-
*
|
56
|
-
* This source code is licensed under the MIT license found in the
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
58
|
-
*/
|
59
|
-
|
60
|
-
/**
|
61
|
-
* @license React
|
62
|
-
* use-sync-external-store-shim.production.js
|
63
|
-
*
|
64
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
65
|
-
*
|
66
|
-
* This source code is licensed under the MIT license found in the
|
67
|
-
* LICENSE file in the root directory of this source tree.
|
68
|
-
*/
|
package/jest.config.js
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
clearMocks: true,
|
3
|
-
transform: {
|
4
|
-
'^.+\\.(j|t)sx?$': ['@swc/jest'],
|
5
|
-
},
|
6
|
-
moduleNameMapper: {
|
7
|
-
'\\.(s?css)$': 'identity-obj-proxy',
|
8
|
-
'\\.(svg)$': '<rootDir>/__mocks__/fileMock.js',
|
9
|
-
'lodash-es/(.*)': 'lodash/$1',
|
10
|
-
'lodash-es': 'lodash',
|
11
|
-
// See https://jestjs.io/docs/upgrading-to-jest28#packagejson-exports
|
12
|
-
// which links to https://github.com/microsoft/accessibility-insights-web/pull/5421#issuecomment-1109168149
|
13
|
-
'^dexie$': require.resolve('dexie'),
|
14
|
-
'^uuid$': require.resolve('uuid'),
|
15
|
-
},
|
16
|
-
setupFilesAfterEnv: ['<rootDir>/src/integration-tests/setup-tests.ts'],
|
17
|
-
testEnvironment: 'jsdom',
|
18
|
-
testEnvironmentOptions: {
|
19
|
-
url: 'http://localhost/',
|
20
|
-
},
|
21
|
-
testTimeout: 30000,
|
22
|
-
};
|
package/webpack.config.js
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
2
|
-
const { resolve, basename } = require('path');
|
3
|
-
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
4
|
-
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
5
|
-
const { ModuleFederationPlugin } = require('webpack').container;
|
6
|
-
|
7
|
-
const { name, browser, main, peerDependencies } = require('./package.json');
|
8
|
-
|
9
|
-
/**
|
10
|
-
* @param {*} env
|
11
|
-
* @returns {import("webpack/types").Configuration}
|
12
|
-
*/
|
13
|
-
module.exports = (env) => ({
|
14
|
-
entry: [resolve(__dirname, 'src/index.ts')],
|
15
|
-
output: {
|
16
|
-
filename: 'openmrs-esm-framework.js',
|
17
|
-
path: resolve(__dirname, 'dist'),
|
18
|
-
library: { type: 'system' },
|
19
|
-
},
|
20
|
-
devtool: 'source-map',
|
21
|
-
module: {
|
22
|
-
rules: [
|
23
|
-
{
|
24
|
-
test: /\.m?(js|ts|tsx)$/,
|
25
|
-
exclude: /node_modules/,
|
26
|
-
use: 'swc-loader',
|
27
|
-
},
|
28
|
-
{
|
29
|
-
test: /\.css$/,
|
30
|
-
use: [{ loader: require.resolve('style-loader') }, { loader: require.resolve('css-loader') }],
|
31
|
-
},
|
32
|
-
{
|
33
|
-
test: /\.svg$/,
|
34
|
-
use: 'svgo-loader',
|
35
|
-
type: 'asset/source',
|
36
|
-
},
|
37
|
-
{
|
38
|
-
test: /\.scss$/,
|
39
|
-
use: [
|
40
|
-
{ loader: require.resolve('style-loader') },
|
41
|
-
{ loader: require.resolve('css-loader') },
|
42
|
-
{ loader: require.resolve('sass-loader') },
|
43
|
-
],
|
44
|
-
},
|
45
|
-
],
|
46
|
-
},
|
47
|
-
resolve: {
|
48
|
-
extensions: ['.ts', '.js', '.tsx', '.jsx', '.scss'],
|
49
|
-
},
|
50
|
-
plugins: [
|
51
|
-
new CleanWebpackPlugin(),
|
52
|
-
new ForkTsCheckerWebpackPlugin(),
|
53
|
-
new BundleAnalyzerPlugin({
|
54
|
-
analyzerMode: env && env.analyze ? 'static' : 'disabled',
|
55
|
-
}),
|
56
|
-
new ModuleFederationPlugin({
|
57
|
-
// See `esm-app-shell/src/load-modules.ts` for an explanation of how modules
|
58
|
-
// get loaded into the application.
|
59
|
-
name,
|
60
|
-
library: { type: 'var', name: '_openmrs_esm_framework' },
|
61
|
-
filename: basename(browser || main),
|
62
|
-
shared: [...Object.keys(peerDependencies)].reduce((obj, depName) => {
|
63
|
-
obj[depName] = {
|
64
|
-
requiredVersion: peerDependencies[depName] ?? false,
|
65
|
-
singleton: true,
|
66
|
-
import: depName,
|
67
|
-
shareKey: depName,
|
68
|
-
shareScope: 'default',
|
69
|
-
};
|
70
|
-
return obj;
|
71
|
-
}, {}),
|
72
|
-
}),
|
73
|
-
],
|
74
|
-
devServer: {
|
75
|
-
disableHostCheck: true,
|
76
|
-
headers: {
|
77
|
-
'Access-Control-Allow-Origin': '*',
|
78
|
-
},
|
79
|
-
},
|
80
|
-
});
|