@xh/hoist 73.0.0-SNAPSHOT.1747155067044 → 73.0.0-SNAPSHOT.1747181587236

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.
Files changed (22) hide show
  1. package/build/types/core/types/AppState.d.ts +2 -1
  2. package/build/types/{mobile/appcontainer → desktop/appcontainer/suspend}/SuspendPanel.d.ts +1 -1
  3. package/core/types/AppState.ts +2 -1
  4. package/desktop/appcontainer/AppContainer.ts +2 -15
  5. package/desktop/appcontainer/{SuspendPanel.ts → suspend/SuspendPanel.ts} +39 -4
  6. package/mobile/appcontainer/AppContainer.ts +2 -15
  7. package/mobile/appcontainer/suspend/SuspendPanel.ts +94 -0
  8. package/package.json +1 -1
  9. package/security/BaseOAuthClient.ts +17 -8
  10. package/tsconfig.tsbuildinfo +1 -1
  11. package/mobile/appcontainer/SuspendPanel.ts +0 -56
  12. /package/build/types/desktop/appcontainer/{IdlePanel.d.ts → suspend/IdlePanel.d.ts} +0 -0
  13. /package/build/types/mobile/appcontainer/{IdlePanel.d.ts → suspend/IdlePanel.d.ts} +0 -0
  14. /package/build/types/{desktop/appcontainer → mobile/appcontainer/suspend}/SuspendPanel.d.ts +0 -0
  15. /package/desktop/appcontainer/{IdlePanel.scss → suspend/IdlePanel.scss} +0 -0
  16. /package/desktop/appcontainer/{IdlePanel.ts → suspend/IdlePanel.ts} +0 -0
  17. /package/desktop/appcontainer/{IdlePanelImage.png → suspend/IdlePanelImage.png} +0 -0
  18. /package/desktop/appcontainer/{SuspendPanel.scss → suspend/SuspendPanel.scss} +0 -0
  19. /package/mobile/appcontainer/{IdlePanel.scss → suspend/IdlePanel.scss} +0 -0
  20. /package/mobile/appcontainer/{IdlePanel.ts → suspend/IdlePanel.ts} +0 -0
  21. /package/mobile/appcontainer/{IdlePanelImage.png → suspend/IdlePanelImage.png} +0 -0
  22. /package/mobile/appcontainer/{SuspendPanel.scss → suspend/SuspendPanel.scss} +0 -0
@@ -1,56 +0,0 @@
1
- /*
2
- * This file belongs to Hoist, an application development toolkit
3
- * developed by Extremely Heavy Industries (www.xh.io | info@xh.io)
4
- *
5
- * Copyright © 2025 Extremely Heavy Industries Inc.
6
- */
7
-
8
- import {AppContainerModel} from '@xh/hoist/appcontainer/AppContainerModel';
9
- import {XH, hoistCmp} from '@xh/hoist/core';
10
- import {vframe, div, p} from '@xh/hoist/cmp/layout';
11
- import {panel} from '@xh/hoist/mobile/cmp/panel';
12
- import {Icon} from '@xh/hoist/icon';
13
- import {button} from '@xh/hoist/mobile/cmp/button';
14
-
15
- import './SuspendPanel.scss';
16
-
17
- /**
18
- * Generic Panel to display when the app is suspended.
19
- * @internal
20
- */
21
- export const suspendPanel = hoistCmp.factory<AppContainerModel>({
22
- displayName: 'SuspendPanel',
23
-
24
- render({model}) {
25
- const message = model.appStateModel.suspendData?.message;
26
- return panel({
27
- className: 'xh-suspend-panel',
28
- title: `Reload Required`,
29
- icon: Icon.refresh(),
30
- items: [
31
- vframe({
32
- className: 'xh-suspend-panel__content',
33
- items: [
34
- div({
35
- className: 'xh-suspend-panel__text-container',
36
- items: [
37
- p({item: message, omit: !message}),
38
- p(`${XH.clientAppName} must be reloaded to continue.`)
39
- ]
40
- }),
41
- div({
42
- className: 'xh-suspend-panel__button-container',
43
- item: button({
44
- text: 'Reload Now',
45
- icon: Icon.refresh(),
46
- intent: 'primary',
47
- flex: 1,
48
- onClick: () => XH.reloadApp()
49
- })
50
- })
51
- ]
52
- })
53
- ]
54
- });
55
- }
56
- });