@tangle-network/sandbox-ui 0.24.0 → 0.24.2

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/dist/globals.css CHANGED
@@ -744,6 +744,9 @@
744
744
  .max-h-60 {
745
745
  max-height: calc(var(--spacing) * 60);
746
746
  }
747
+ .max-h-64 {
748
+ max-height: calc(var(--spacing) * 64);
749
+ }
747
750
  .max-h-72 {
748
751
  max-height: calc(var(--spacing) * 72);
749
752
  }
@@ -837,6 +840,9 @@
837
840
  .w-1\/4 {
838
841
  width: calc(1 / 4 * 100%);
839
842
  }
843
+ .w-1\/5 {
844
+ width: calc(1 / 5 * 100%);
845
+ }
840
846
  .w-2 {
841
847
  width: calc(var(--spacing) * 2);
842
848
  }
@@ -846,6 +852,9 @@
846
852
  .w-2\/3 {
847
853
  width: calc(2 / 3 * 100%);
848
854
  }
855
+ .w-2\/5 {
856
+ width: calc(2 / 5 * 100%);
857
+ }
849
858
  .w-3 {
850
859
  width: calc(var(--spacing) * 3);
851
860
  }
@@ -1514,6 +1523,9 @@
1514
1523
  .rounded-\[2px\] {
1515
1524
  border-radius: 2px;
1516
1525
  }
1526
+ .rounded-\[4px\] {
1527
+ border-radius: 4px;
1528
+ }
1517
1529
  .rounded-\[18px\] {
1518
1530
  border-radius: 18px;
1519
1531
  }
@@ -3672,21 +3684,11 @@
3672
3684
  display: none;
3673
3685
  }
3674
3686
  }
3675
- .sm\:mx-3 {
3676
- @media (width >= 40rem) {
3677
- margin-inline: calc(var(--spacing) * 3);
3678
- }
3679
- }
3680
3687
  .sm\:inline {
3681
3688
  @media (width >= 40rem) {
3682
3689
  display: inline;
3683
3690
  }
3684
3691
  }
3685
- .sm\:w-8 {
3686
- @media (width >= 40rem) {
3687
- width: calc(var(--spacing) * 8);
3688
- }
3689
- }
3690
3692
  .sm\:grid-cols-2 {
3691
3693
  @media (width >= 40rem) {
3692
3694
  grid-template-columns: repeat(2, minmax(0, 1fr));
package/dist/pages.d.ts CHANGED
@@ -37,9 +37,15 @@ interface AuthPageProps {
37
37
  /**
38
38
  * Email/password handler. Return an error message to show, or null on success
39
39
  * (the caller handles navigation). If omitted, the email form is hidden —
40
- * SSO/social only.
40
+ * SSO/social only. In signup mode the third arg is the entered display name
41
+ * (empty string when name collection is disabled).
41
42
  */
42
- onEmailSubmit?: (email: string, password: string) => Promise<string | null>;
43
+ onEmailSubmit?: (email: string, password: string, name: string) => Promise<string | null>;
44
+ /**
45
+ * Collect a display name in the email form. Defaults to true in signup mode,
46
+ * false in signin. Set false to suppress it even on signup.
47
+ */
48
+ collectName?: boolean;
43
49
  /** Footer link target for the opposite mode (signup from signin, vice versa). */
44
50
  altHref?: string;
45
51
  /** Primary (Tangle) button background. Default Tangle ink `#0f172a`. */
@@ -55,7 +61,7 @@ interface AuthPageProps {
55
61
  /** Optional node rendered above the footer (legal copy, SSO notice, etc.). */
56
62
  children?: ReactNode;
57
63
  }
58
- declare function AuthPage({ product, tagline, mode, tangleAuthUrl, providers, socialHref, onEmailSubmit, altHref, accent, accentHover, logoSize, className, style, children, }: AuthPageProps): react_jsx_runtime.JSX.Element;
64
+ declare function AuthPage({ product, tagline, mode, tangleAuthUrl, providers, socialHref, onEmailSubmit, collectName, altHref, accent, accentHover, logoSize, className, style, children, }: AuthPageProps): react_jsx_runtime.JSX.Element;
59
65
 
60
66
  type ProductVariant$1 = "sandbox";
61
67
  interface BillingPageData {
@@ -126,6 +132,22 @@ interface SshAccessConfig {
126
132
  inlinePublicKeys: string;
127
133
  onSelectedKeyIdsChange: (keyIds: string[]) => void;
128
134
  onInlinePublicKeysChange: (publicKeys: string) => void;
135
+ /**
136
+ * When provided, the SSH step renders an "Add SSH key" action that
137
+ * opens a dialog for saving a new public key. The host owns the
138
+ * persistence (POST) — this package only exposes the UI and reports
139
+ * the draft. Omit to hide the add-key action entirely.
140
+ */
141
+ onCreateKey?: (input: {
142
+ name: string;
143
+ publicKey: string;
144
+ }) => Promise<SshKeyOption | void>;
145
+ /**
146
+ * Optional refresh of the host's key list, called after a successful
147
+ * create so the parent re-syncs its `keys` prop before the new key is
148
+ * selected.
149
+ */
150
+ onRefreshKeys?: () => Promise<SshKeyOption[] | void>;
129
151
  }
130
152
  interface ProvisioningWizardProps {
131
153
  environments?: EnvironmentOption[];
@@ -133,12 +155,19 @@ interface ProvisioningWizardProps {
133
155
  onSubmit?: (config: ProvisioningConfig) => void | Promise<void>;
134
156
  onBack?: () => void;
135
157
  className?: string;
158
+ /**
159
+ * @deprecated The wizard now always renders as a single scrolling page.
160
+ * Kept for backwards compatibility — no longer changes the layout.
161
+ */
136
162
  variant?: "flat" | "multistep";
137
163
  /** Pre-select an environment by ID (e.g. from a template link) */
138
164
  defaultEnvironment?: string;
139
165
  /** Pre-fill all form fields from a template preset */
140
166
  defaultConfig?: Partial<ProvisioningConfig>;
141
- /** When true and defaultConfig is provided, start on the final step */
167
+ /**
168
+ * @deprecated No-op. The wizard no longer uses steps. Kept for
169
+ * backwards compatibility.
170
+ */
142
171
  skipToReview?: boolean;
143
172
  /** Load user's startup scripts for the advanced options selector */
144
173
  onLoadStartupScripts?: () => Promise<StartupScriptEntry[]>;
@@ -177,7 +206,7 @@ interface ProvisioningConfig {
177
206
  startupScriptIds?: string[];
178
207
  }
179
208
  declare function resolveEnvironment(env: EnvironmentEntry): EnvironmentOption;
180
- declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, variant, defaultEnvironment, defaultConfig, skipToReview, onLoadStartupScripts, resourceLimits, sshAccess, pricingRates, planTiers, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
209
+ declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, defaultEnvironment, defaultConfig, onLoadStartupScripts, resourceLimits, sshAccess, pricingRates, planTiers, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
181
210
 
182
211
  type ProductVariant = "sandbox";
183
212
  interface StandalonePricingPageProps {