@tangle-network/sandbox-ui 0.24.1 → 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
@@ -132,6 +132,22 @@ interface SshAccessConfig {
132
132
  inlinePublicKeys: string;
133
133
  onSelectedKeyIdsChange: (keyIds: string[]) => void;
134
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>;
135
151
  }
136
152
  interface ProvisioningWizardProps {
137
153
  environments?: EnvironmentOption[];
@@ -139,12 +155,19 @@ interface ProvisioningWizardProps {
139
155
  onSubmit?: (config: ProvisioningConfig) => void | Promise<void>;
140
156
  onBack?: () => void;
141
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
+ */
142
162
  variant?: "flat" | "multistep";
143
163
  /** Pre-select an environment by ID (e.g. from a template link) */
144
164
  defaultEnvironment?: string;
145
165
  /** Pre-fill all form fields from a template preset */
146
166
  defaultConfig?: Partial<ProvisioningConfig>;
147
- /** 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
+ */
148
171
  skipToReview?: boolean;
149
172
  /** Load user's startup scripts for the advanced options selector */
150
173
  onLoadStartupScripts?: () => Promise<StartupScriptEntry[]>;
@@ -183,7 +206,7 @@ interface ProvisioningConfig {
183
206
  startupScriptIds?: string[];
184
207
  }
185
208
  declare function resolveEnvironment(env: EnvironmentEntry): EnvironmentOption;
186
- 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;
187
210
 
188
211
  type ProductVariant = "sandbox";
189
212
  interface StandalonePricingPageProps {