@xh/hoist 75.0.0-SNAPSHOT.1752159631363 → 75.0.0-SNAPSHOT.1752533177209

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/CHANGELOG.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  * DashCanvas: ensure `allowAdd=false` is not enforced if loadingState
8
8
  and hide `Add` context menu item in views in if `allowAdd=false`
9
+ * DashCanvas: style with `position: relative;` to ensure that the empty state overlay is positioned
10
+ within the canvas, not the next parent container up that has `position: relative;`.
9
11
 
10
12
  ## v74.1.2 - 2025-07-03
11
13
 
@@ -28,6 +28,7 @@
28
28
  }
29
29
 
30
30
  .xh-dash-canvas {
31
+ position: relative;
31
32
  width: 100%;
32
33
  height: 100%;
33
34
  overflow-x: hidden;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "75.0.0-SNAPSHOT.1752159631363",
3
+ "version": "75.0.0-SNAPSHOT.1752533177209",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -14,7 +14,7 @@ import {AccessTokenSpec, TokenMap} from './Types';
14
14
  import {Timer} from '@xh/hoist/utils/async';
15
15
  import {MINUTES, olderThan, ONE_MINUTE, SECONDS} from '@xh/hoist/utils/datetime';
16
16
  import {isJSON, logError, throwIf} from '@xh/hoist/utils/js';
17
- import {find, forEach, isEmpty, isObject, keys, map, pickBy, union} from 'lodash';
17
+ import {compact, find, forEach, head, isEmpty, isObject, keys, map, pickBy, union} from 'lodash';
18
18
  import ShortUniqueId from 'short-unique-id';
19
19
 
20
20
  export type LoginMethod = 'REDIRECT' | 'POPUP';
@@ -260,7 +260,9 @@ export abstract class BaseOAuthClient<
260
260
  }
261
261
 
262
262
  protected get baseUrl() {
263
- return `${window.location.origin}/${XH.clientAppCode}/`;
263
+ const {origin, pathname} = window.location,
264
+ firstSegment = head(compact(pathname.split('/')));
265
+ return firstSegment ? `${origin}/${firstSegment}/` : `${origin}/`;
264
266
  }
265
267
 
266
268
  protected get blankUrl() {