@openmrs/esm-react-utils 9.0.3-pre.4114 → 9.0.3-pre.4128
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 +1 -1
- package/dist/getLifecycle.d.ts +4 -4
- package/dist/getLifecycle.d.ts.map +1 -1
- package/package.json +14 -14
package/.turbo/turbo-build.log
CHANGED
package/dist/getLifecycle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @module @category Framework */
|
|
2
2
|
import type { ComponentType } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { type ReactAppOrParcel } from 'single-spa-react';
|
|
4
4
|
import type { ComponentDecoratorOptions } from './openmrsComponentDecorator';
|
|
5
5
|
/**
|
|
6
6
|
* Creates a single-spa lifecycle object for a React component. The component is
|
|
@@ -18,7 +18,7 @@ import type { ComponentDecoratorOptions } from './openmrsComponentDecorator';
|
|
|
18
18
|
* export const lifecycle = getLifecycle(MyComponent, { featureName: 'my-feature', moduleName: '@openmrs/esm-my-app' });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare function getLifecycle<T>(Component: ComponentType<T>, options: ComponentDecoratorOptions):
|
|
21
|
+
export declare function getLifecycle<T>(Component: ComponentType<T>, options: ComponentDecoratorOptions): ReactAppOrParcel<T>;
|
|
22
22
|
/**
|
|
23
23
|
* Creates a lazy-loading single-spa lifecycle for a React component. The component
|
|
24
24
|
* is loaded asynchronously via dynamic import only when it's needed, which helps
|
|
@@ -39,7 +39,7 @@ export declare function getLifecycle<T>(Component: ComponentType<T>, options: Co
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function getAsyncLifecycle<T>(lazy: () => Promise<{
|
|
41
41
|
default: ComponentType<T>;
|
|
42
|
-
}>, options: ComponentDecoratorOptions): () => Promise<
|
|
42
|
+
}>, options: ComponentDecoratorOptions): () => Promise<ReactAppOrParcel<T>>;
|
|
43
43
|
/**
|
|
44
44
|
* Creates a single-spa lifecycle for a React component that is already loaded.
|
|
45
45
|
* Unlike {@link getAsyncLifecycle}, this wraps a synchronously-available component
|
|
@@ -58,7 +58,7 @@ export declare function getAsyncLifecycle<T>(lazy: () => Promise<{
|
|
|
58
58
|
* export const myExtension = getSyncLifecycle(MyComponent, options);
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
|
-
export declare function getSyncLifecycle<T>(Component: ComponentType<T>, options: ComponentDecoratorOptions): () => Promise<
|
|
61
|
+
export declare function getSyncLifecycle<T>(Component: ComponentType<T>, options: ComponentDecoratorOptions): () => Promise<ReactAppOrParcel<T>>;
|
|
62
62
|
/**
|
|
63
63
|
* @deprecated Use getAsyncLifecycle instead.
|
|
64
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLifecycle.d.ts","sourceRoot":"","sources":["../src/getLifecycle.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,
|
|
1
|
+
{"version":3,"file":"getLifecycle.d.ts","sourceRoot":"","sources":["../src/getLifecycle.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAuB,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAG7E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,yBAAyB,uBAM9F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,IAAI,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,EAClD,OAAO,EAAE,yBAAyB,sCAGnC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,yBAAyB,sCAElG;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,0BAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-react-utils",
|
|
3
|
-
"version": "9.0.3-pre.
|
|
3
|
+
"version": "9.0.3-pre.4128",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "React utilities for OpenMRS.",
|
|
6
6
|
"type": "module",
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
"swr": "2.x"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@openmrs/esm-api": "9.0.3-pre.
|
|
83
|
-
"@openmrs/esm-config": "9.0.3-pre.
|
|
84
|
-
"@openmrs/esm-context": "9.0.3-pre.
|
|
85
|
-
"@openmrs/esm-emr-api": "9.0.3-pre.
|
|
86
|
-
"@openmrs/esm-error-handling": "9.0.3-pre.
|
|
87
|
-
"@openmrs/esm-extensions": "9.0.3-pre.
|
|
88
|
-
"@openmrs/esm-feature-flags": "9.0.3-pre.
|
|
89
|
-
"@openmrs/esm-globals": "9.0.3-pre.
|
|
90
|
-
"@openmrs/esm-navigation": "9.0.3-pre.
|
|
91
|
-
"@openmrs/esm-state": "9.0.3-pre.
|
|
92
|
-
"@openmrs/esm-utils": "9.0.3-pre.
|
|
93
|
-
"@swc/cli": "
|
|
94
|
-
"@swc/core": "
|
|
82
|
+
"@openmrs/esm-api": "9.0.3-pre.4128",
|
|
83
|
+
"@openmrs/esm-config": "9.0.3-pre.4128",
|
|
84
|
+
"@openmrs/esm-context": "9.0.3-pre.4128",
|
|
85
|
+
"@openmrs/esm-emr-api": "9.0.3-pre.4128",
|
|
86
|
+
"@openmrs/esm-error-handling": "9.0.3-pre.4128",
|
|
87
|
+
"@openmrs/esm-extensions": "9.0.3-pre.4128",
|
|
88
|
+
"@openmrs/esm-feature-flags": "9.0.3-pre.4128",
|
|
89
|
+
"@openmrs/esm-globals": "9.0.3-pre.4128",
|
|
90
|
+
"@openmrs/esm-navigation": "9.0.3-pre.4128",
|
|
91
|
+
"@openmrs/esm-state": "9.0.3-pre.4128",
|
|
92
|
+
"@openmrs/esm-utils": "9.0.3-pre.4128",
|
|
93
|
+
"@swc/cli": "0.8.0",
|
|
94
|
+
"@swc/core": "1.15.18",
|
|
95
95
|
"@vitest/coverage-v8": "^4.0.18",
|
|
96
96
|
"concurrently": "^9.1.2",
|
|
97
97
|
"cross-env": "^7.0.3",
|