@veltrixsecops/app-sdk 3.2.0 → 3.5.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.
- package/README.md +68 -1
- package/dist/byol/index.cjs +3802 -0
- package/dist/byol/index.cjs.map +1 -0
- package/dist/byol/index.d.cts +578 -0
- package/dist/byol/index.d.ts +578 -0
- package/dist/byol/index.js +2587 -0
- package/dist/byol/index.js.map +1 -0
- package/dist/chunk-3WK4EVQ3.js +842 -0
- package/dist/chunk-3WK4EVQ3.js.map +1 -0
- package/dist/{chunk-EOOEHZGC.js → chunk-HIL6RIDG.js} +107 -3
- package/dist/chunk-HIL6RIDG.js.map +1 -0
- package/dist/{chunk-VWFTOFTI.js → chunk-Y6XBNZGR.js} +8 -2
- package/dist/chunk-Y6XBNZGR.js.map +1 -0
- package/dist/client/index.cjs +112 -2
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +118 -6
- package/dist/client/index.d.ts +118 -6
- package/dist/client/index.js +13 -1
- package/dist/connections/index.cjs +1787 -0
- package/dist/connections/index.cjs.map +1 -0
- package/dist/connections/index.d.cts +78 -0
- package/dist/connections/index.d.ts +78 -0
- package/dist/connections/index.js +754 -0
- package/dist/connections/index.js.map +1 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/opentofu/index.cjs +138 -0
- package/dist/opentofu/index.cjs.map +1 -0
- package/dist/opentofu/index.d.cts +131 -0
- package/dist/opentofu/index.d.ts +131 -0
- package/dist/opentofu/index.js +109 -0
- package/dist/opentofu/index.js.map +1 -0
- package/dist/pipeline/index.cjs +7 -0
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.d.cts +9 -2
- package/dist/pipeline/index.d.ts +9 -2
- package/dist/pipeline/index.js +3 -1
- package/dist/pipeline-beeT8dje.d.cts +408 -0
- package/dist/pipeline-beeT8dje.d.ts +408 -0
- package/dist/ui/index.cjs +136 -0
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +109 -1
- package/dist/ui/index.d.ts +109 -1
- package/dist/ui/index.js +35 -677
- package/dist/ui/index.js.map +1 -1
- package/dist/{use-app-context-OQlcmq7t.d.cts → use-app-context-Byv_fam0.d.cts} +206 -4
- package/dist/{use-app-context-OQlcmq7t.d.ts → use-app-context-Byv_fam0.d.ts} +206 -4
- package/opentofu/README.md +114 -0
- package/opentofu/modules/aws/main.tf +1008 -0
- package/opentofu/modules/aws/outputs.tf +90 -0
- package/opentofu/modules/aws/variables.tf +437 -0
- package/opentofu/modules/aws/versions.tf +23 -0
- package/opentofu/modules/azure/main.tf +920 -0
- package/opentofu/modules/azure/outputs.tf +72 -0
- package/opentofu/modules/azure/variables.tf +498 -0
- package/opentofu/modules/azure/versions.tf +27 -0
- package/opentofu/modules/gcp/main.tf +645 -0
- package/opentofu/modules/gcp/outputs.tf +73 -0
- package/opentofu/modules/gcp/variables.tf +428 -0
- package/opentofu/modules/gcp/versions.tf +27 -0
- package/opentofu/modules/hetzner/main.tf +432 -0
- package/opentofu/modules/hetzner/outputs.tf +72 -0
- package/opentofu/modules/hetzner/variables.tf +423 -0
- package/opentofu/modules/hetzner/versions.tf +26 -0
- package/package.json +33 -1
- package/dist/chunk-EOOEHZGC.js.map +0 -1
- package/dist/chunk-VWFTOFTI.js.map +0 -1
- package/dist/pipeline-A-gSsPRR.d.cts +0 -189
- package/dist/pipeline-A-gSsPRR.d.ts +0 -189
package/dist/ui/index.d.ts
CHANGED
|
@@ -452,6 +452,114 @@ interface FormDialogProps {
|
|
|
452
452
|
* </FormDialog>
|
|
453
453
|
*/
|
|
454
454
|
declare const FormDialog: React.FC<FormDialogProps>;
|
|
455
|
+
type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
456
|
+
interface ModalProps {
|
|
457
|
+
/** Controls visibility. Renders nothing when `false`. */
|
|
458
|
+
isOpen: boolean;
|
|
459
|
+
/** Called on backdrop click (unless disabled), Escape, and the X button. */
|
|
460
|
+
onClose: () => void;
|
|
461
|
+
/** Heading rendered at the top of the modal. */
|
|
462
|
+
title?: React.ReactNode;
|
|
463
|
+
/** Secondary line rendered under the title. */
|
|
464
|
+
subtitle?: React.ReactNode;
|
|
465
|
+
/** Modal body. */
|
|
466
|
+
children: React.ReactNode;
|
|
467
|
+
/** Optional footer content (e.g. action buttons), rendered in a tinted bar. */
|
|
468
|
+
footer?: React.ReactNode;
|
|
469
|
+
size?: ModalSize;
|
|
470
|
+
/** When true, clicking the backdrop no longer closes the modal. */
|
|
471
|
+
disableBackdropClose?: boolean;
|
|
472
|
+
/** When true, Escape no longer closes the modal. */
|
|
473
|
+
disableEscapeClose?: boolean;
|
|
474
|
+
/** Hide the top-right close (X) button. */
|
|
475
|
+
hideCloseButton?: boolean;
|
|
476
|
+
/** Accessible label for the close button. Defaults to "Close". */
|
|
477
|
+
closeLabel?: string;
|
|
478
|
+
className?: string;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Modal — delegates to the platform's real Modal at render time: a coordinated
|
|
482
|
+
* overlay shell with a `title` + `subtitle` header, a scrollable body, and an
|
|
483
|
+
* optional `footer` action bar. The general-purpose sibling of {@link FormDialog}
|
|
484
|
+
* (form) and the confirm dialog (yes/no) — use it for detail/wizard/picker
|
|
485
|
+
* overlays. Selects and other popovers rendered inside it float above the body,
|
|
486
|
+
* so their menus are never clipped. The fallback is a minimal, accessible,
|
|
487
|
+
* non-throwing shell for local dev / tests.
|
|
488
|
+
*
|
|
489
|
+
* @example
|
|
490
|
+
* <Modal isOpen={open} onClose={close} title="Choose a region" subtitle="Where should this live?"
|
|
491
|
+
* footer={<Button onClick={close}>Done</Button>}>
|
|
492
|
+
* <Select label="Region" options={regions} value={region} onChange={setRegion} />
|
|
493
|
+
* </Modal>
|
|
494
|
+
*/
|
|
495
|
+
declare const Modal: React.FC<ModalProps>;
|
|
496
|
+
type AlertVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
497
|
+
interface AlertProps {
|
|
498
|
+
/** Severity — drives color and default icon. Defaults to `info`. */
|
|
499
|
+
variant?: AlertVariant;
|
|
500
|
+
/** Optional bold heading above the message. */
|
|
501
|
+
title?: React.ReactNode;
|
|
502
|
+
/** The message body. */
|
|
503
|
+
children?: React.ReactNode;
|
|
504
|
+
/** Override the default icon, or pass `false` to hide it. */
|
|
505
|
+
icon?: React.ReactNode | false;
|
|
506
|
+
/** When provided, renders a dismiss (X) button that calls this. */
|
|
507
|
+
onDismiss?: () => void;
|
|
508
|
+
/** Optional trailing action (e.g. a link or button). */
|
|
509
|
+
action?: React.ReactNode;
|
|
510
|
+
className?: string;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Alert — delegates to the platform's real Alert at render time: an inline,
|
|
514
|
+
* static severity banner for warnings, errors, tips and success notices in the
|
|
515
|
+
* page/form body. For transient pop-up notifications use {@link useToast}
|
|
516
|
+
* instead (its `variant` supports the same `warning`/`error`/`success`/`info`).
|
|
517
|
+
* The fallback is a minimal, accessible colored banner for local dev / tests.
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* <Alert variant="warning" title="Heads up">
|
|
521
|
+
* Distributed deployments need at least 3 indexers.
|
|
522
|
+
* </Alert>
|
|
523
|
+
*/
|
|
524
|
+
declare const Alert: React.FC<AlertProps>;
|
|
525
|
+
type MultiSelectSize = 'sm' | 'md' | 'lg';
|
|
526
|
+
interface MultiSelectOption {
|
|
527
|
+
value: string;
|
|
528
|
+
label: string;
|
|
529
|
+
disabled?: boolean;
|
|
530
|
+
}
|
|
531
|
+
interface MultiSelectProps {
|
|
532
|
+
options: MultiSelectOption[];
|
|
533
|
+
/** Currently selected values. */
|
|
534
|
+
value?: string[];
|
|
535
|
+
/** Called with the new list of selected values. */
|
|
536
|
+
onChange?: (values: string[]) => void;
|
|
537
|
+
placeholder?: string;
|
|
538
|
+
label?: string;
|
|
539
|
+
error?: string;
|
|
540
|
+
helperText?: string;
|
|
541
|
+
size?: MultiSelectSize;
|
|
542
|
+
disabled?: boolean;
|
|
543
|
+
fullWidth?: boolean;
|
|
544
|
+
/** Show a filter box inside the dropdown. Defaults to true. */
|
|
545
|
+
searchable?: boolean;
|
|
546
|
+
/** How many chips to show in the trigger before "+N more". Defaults to 3. */
|
|
547
|
+
maxTagCount?: number;
|
|
548
|
+
className?: string;
|
|
549
|
+
name?: string;
|
|
550
|
+
'aria-label'?: string;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* MultiSelect — delegates to the platform's real searchable multi-selection
|
|
554
|
+
* dropdown at render time (selected values as removable chips, a filter box,
|
|
555
|
+
* select-all / clear). The fallback is a native `<select multiple>` for local
|
|
556
|
+
* dev / tests. Use for any multi-value picker (environments, tags, targets…).
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* <MultiSelect label="Environments" value={ids} onChange={setIds}
|
|
560
|
+
* options={envs.map(e => ({ value: e.id, label: e.name }))} />
|
|
561
|
+
*/
|
|
562
|
+
declare const MultiSelect: React.FC<MultiSelectProps>;
|
|
455
563
|
type ToastVariant = 'success' | 'error' | 'warning' | 'info';
|
|
456
564
|
interface ToastOptions {
|
|
457
565
|
variant?: ToastVariant;
|
|
@@ -519,4 +627,4 @@ interface ConfirmationDialogContextValue {
|
|
|
519
627
|
*/
|
|
520
628
|
declare function useConfirmDialog(): ConfirmationDialogContextValue;
|
|
521
629
|
|
|
522
|
-
export { Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ConfirmationDialogContextValue, type ConfirmationOptions, type ConfirmationVariant, DataTable, type DataTableAlign, type DataTableColumn, type DataTableEmptyState, type DataTablePaginationState, type DataTableProps, type DataTableSort, type DataTableSortOrder, EmptyState, type EmptyStateProps, FilterBar, type FilterBarProps, type FilterBarSearchProps, type FilterDefinition, type FilterOption, FormDialog, type FormDialogProps, type FormDialogSize, FormField, type FormFieldProps, Input, type InputProps, type InputSize, type InputVariant, Pagination, type PaginationProps, SearchBox, type SearchBoxProps, type SearchBoxSize, Select, type SelectOption, type SelectProps, type SelectSize, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SkeletonVariant, type SortDirection, type SortOption, SortSelect, type SortSelectProps, Spinner, type SpinnerProps, type SpinnerSize, StatsCard, type StatsCardDelta, type StatsCardProps, type StatsCardVariant, type TabItem, Tabs, type TabsProps, Textarea, type TextareaProps, type Toast, type ToastContextValue, type ToastOptions, type ToastVariant, Tooltip, type TooltipPlacement, type TooltipProps, useConfirmDialog, useToast };
|
|
630
|
+
export { Alert, type AlertProps, type AlertVariant, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ConfirmationDialogContextValue, type ConfirmationOptions, type ConfirmationVariant, DataTable, type DataTableAlign, type DataTableColumn, type DataTableEmptyState, type DataTablePaginationState, type DataTableProps, type DataTableSort, type DataTableSortOrder, EmptyState, type EmptyStateProps, FilterBar, type FilterBarProps, type FilterBarSearchProps, type FilterDefinition, type FilterOption, FormDialog, type FormDialogProps, type FormDialogSize, FormField, type FormFieldProps, Input, type InputProps, type InputSize, type InputVariant, Modal, type ModalProps, type ModalSize, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectSize, Pagination, type PaginationProps, SearchBox, type SearchBoxProps, type SearchBoxSize, Select, type SelectOption, type SelectProps, type SelectSize, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SkeletonVariant, type SortDirection, type SortOption, SortSelect, type SortSelectProps, Spinner, type SpinnerProps, type SpinnerSize, StatsCard, type StatsCardDelta, type StatsCardProps, type StatsCardVariant, type TabItem, Tabs, type TabsProps, Textarea, type TextareaProps, type Toast, type ToastContextValue, type ToastOptions, type ToastVariant, Tooltip, type TooltipPlacement, type TooltipProps, useConfirmDialog, useToast };
|