@stackone/hub 0.2.0 → 0.2.1

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 +1 @@
1
- {".":"0.2.0"}
1
+ {".":"0.2.1"}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1](https://github.com/StackOneHQ/hub/compare/hub-v0.2.0...hub-v0.2.1) (2025-08-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * oauth flow button state ([91b21e0](https://github.com/StackOneHQ/hub/commit/91b21e0f791339fe5285313e50324d61f2fbccc5))
9
+
3
10
  ## [0.2.0](https://github.com/StackOneHQ/hub/compare/hub-v0.1.0...hub-v0.2.0) (2025-08-08)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/hub",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "StackOne HUB",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@stackone/expressions": "^0.16.0",
20
- "@stackone/malachite": "^0.3.1",
20
+ "@stackone/malachite": "^0.3.2",
21
21
  "@tanstack/react-query": "^5.77.2"
22
22
  },
23
23
  "peerDependencies": {
@@ -45,4 +45,4 @@
45
45
  "tslib": "^2.8.1",
46
46
  "typescript": "^5.8.3"
47
47
  }
48
- }
48
+ }
@@ -61,6 +61,7 @@ export const IntegrationPicker: React.FC<IntegrationPickerProps> = ({
61
61
  footer={
62
62
  <CardFooter
63
63
  selectedIntegration={selectedIntegration}
64
+ isLoading={connectionState.loading}
64
65
  onBack={accountData ? undefined : () => setSelectedIntegration(null)}
65
66
  onNext={handleConnect}
66
67
  />
@@ -13,6 +13,7 @@ import { Integration } from '../types';
13
13
  interface CardFooterProps {
14
14
  selectedIntegration: Integration | null;
15
15
  fullWidth?: boolean;
16
+ isLoading?: boolean;
16
17
  onBack?: () => void;
17
18
  onNext: () => void;
18
19
  }
@@ -20,11 +21,14 @@ interface CardFooterProps {
20
21
  const CardFooter: React.FC<CardFooterProps> = ({
21
22
  fullWidth = true,
22
23
  selectedIntegration,
24
+ isLoading,
23
25
  onBack,
24
26
  onNext,
25
27
  }) => {
26
28
  const buttons = useMemo(() => {
27
- if (!selectedIntegration) return [];
29
+ if (!selectedIntegration || isLoading) {
30
+ return [];
31
+ }
28
32
 
29
33
  const buttons: Array<{
30
34
  label: string;
@@ -53,7 +57,7 @@ const CardFooter: React.FC<CardFooterProps> = ({
53
57
  });
54
58
 
55
59
  return buttons;
56
- }, [selectedIntegration, onBack, onNext]);
60
+ }, [selectedIntegration, onBack, onNext, isLoading]);
57
61
 
58
62
  if (buttons.length === 0) {
59
63
  return <FooterLinks fullWidth={fullWidth} />;