@openmrs/esm-globals 7.0.1-pre.3256 → 7.0.1-pre.3259

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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 4 files with swc (236.35ms)
1
+ [0] Successfully compiled: 4 files with swc (251.75ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
package/dist/types.d.ts CHANGED
@@ -127,9 +127,9 @@ export type PageDefinition = {
127
127
  */
128
128
  offline?: boolean;
129
129
  /**
130
- * Determines the order in which this page is rendered in the app-shell, which is useful for situations where DOM ordering matters.
130
+ * If supplied, the page will be rendered within the DOM element with the specified ID. Defaults to "omrs-apps-container" if not supplied.
131
131
  */
132
- order?: number;
132
+ containerDomId?: string;
133
133
  } & ({
134
134
  /**
135
135
  * Either a string or a boolean.
@@ -161,9 +161,7 @@ export type PageDefinition = {
161
161
  * @internal
162
162
  * A definition of a page after the app has been registered.
163
163
  */
164
- export type RegisteredPageDefinition = Omit<PageDefinition, 'order'> & AppComponent & {
165
- order: number;
166
- };
164
+ export type RegisteredPageDefinition = PageDefinition & AppComponent;
167
165
  /**
168
166
  * A definition of an extension as extracted from an app's routes.json
169
167
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-globals",
3
- "version": "7.0.1-pre.3256",
3
+ "version": "7.0.1-pre.3259",
4
4
  "license": "MPL-2.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
package/src/types.ts CHANGED
@@ -136,9 +136,9 @@ export type PageDefinition = {
136
136
  */
137
137
  offline?: boolean;
138
138
  /**
139
- * Determines the order in which this page is rendered in the app-shell, which is useful for situations where DOM ordering matters.
139
+ * If supplied, the page will be rendered within the DOM element with the specified ID. Defaults to "omrs-apps-container" if not supplied.
140
140
  */
141
- order?: number;
141
+ containerDomId?: string;
142
142
  } & (
143
143
  | {
144
144
  /**
@@ -174,7 +174,7 @@ export type PageDefinition = {
174
174
  * @internal
175
175
  * A definition of a page after the app has been registered.
176
176
  */
177
- export type RegisteredPageDefinition = Omit<PageDefinition, 'order'> & AppComponent & { order: number };
177
+ export type RegisteredPageDefinition = PageDefinition & AppComponent;
178
178
 
179
179
  /**
180
180
  * A definition of an extension as extracted from an app's routes.json