@burdenoff/microfe-sandbox 2026.703.1 → 2026.715.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/dev/Dashboard.d.ts +2 -0
- package/dist/dev/Dashboard.d.ts.map +1 -0
- package/dist/dev/SandboxApp.d.ts +2 -0
- package/dist/dev/SandboxApp.d.ts.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +23527 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +1852 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57921 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/sandbox/AdminRoutes.d.ts +12 -0
- package/dist/sandbox/AdminRoutes.d.ts.map +1 -0
- package/dist/sandbox/SandboxAdminRoot.d.ts +21 -0
- package/dist/sandbox/SandboxAdminRoot.d.ts.map +1 -0
- package/dist/sandbox/SandboxRoot.d.ts +31 -0
- package/dist/sandbox/SandboxRoot.d.ts.map +1 -0
- package/dist/sandbox/UserRoutes.d.ts +11 -0
- package/dist/sandbox/UserRoutes.d.ts.map +1 -0
- package/dist/sandbox/components/ContainerImagePicker.d.ts +24 -0
- package/dist/sandbox/components/ContainerImagePicker.d.ts.map +1 -0
- package/dist/sandbox/components/CountdownTimer.d.ts +9 -0
- package/dist/sandbox/components/CountdownTimer.d.ts.map +1 -0
- package/dist/sandbox/components/ExportSandboxesDialog.d.ts +8 -0
- package/dist/sandbox/components/ExportSandboxesDialog.d.ts.map +1 -0
- package/dist/sandbox/components/ExtendTTLModal.d.ts +10 -0
- package/dist/sandbox/components/ExtendTTLModal.d.ts.map +1 -0
- package/dist/sandbox/components/FilesFolderPicker.d.ts +22 -0
- package/dist/sandbox/components/FilesFolderPicker.d.ts.map +1 -0
- package/dist/sandbox/components/PageLayout.d.ts +48 -0
- package/dist/sandbox/components/PageLayout.d.ts.map +1 -0
- package/dist/sandbox/components/ResourceDisplay.d.ts +17 -0
- package/dist/sandbox/components/ResourceDisplay.d.ts.map +1 -0
- package/dist/sandbox/components/RouteUtils.d.ts +28 -0
- package/dist/sandbox/components/RouteUtils.d.ts.map +1 -0
- package/dist/sandbox/components/SandboxActivityTab.d.ts +14 -0
- package/dist/sandbox/components/SandboxActivityTab.d.ts.map +1 -0
- package/dist/sandbox/components/SandboxAgentAppPanel.d.ts +16 -0
- package/dist/sandbox/components/SandboxAgentAppPanel.d.ts.map +1 -0
- package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts +14 -0
- package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts.map +1 -0
- package/dist/sandbox/components/SandboxTypeIcon.d.ts +15 -0
- package/dist/sandbox/components/SandboxTypeIcon.d.ts.map +1 -0
- package/dist/sandbox/components/SandboxTypeSelector.d.ts +35 -0
- package/dist/sandbox/components/SandboxTypeSelector.d.ts.map +1 -0
- package/dist/sandbox/components/SandboxUsageBanner.d.ts +16 -0
- package/dist/sandbox/components/SandboxUsageBanner.d.ts.map +1 -0
- package/dist/sandbox/components/StatusBadge.d.ts +15 -0
- package/dist/sandbox/components/StatusBadge.d.ts.map +1 -0
- package/dist/sandbox/components/TagsInput.d.ts +14 -0
- package/dist/sandbox/components/TagsInput.d.ts.map +1 -0
- package/dist/sandbox/components/ui.d.ts +7 -0
- package/dist/sandbox/components/ui.d.ts.map +1 -0
- package/dist/sandbox/hooks/useIsSuperAdmin.d.ts +12 -0
- package/dist/sandbox/hooks/useIsSuperAdmin.d.ts.map +1 -0
- package/dist/sandbox/hooks/useRemainingSeconds.d.ts +12 -0
- package/dist/sandbox/hooks/useRemainingSeconds.d.ts.map +1 -0
- package/dist/sandbox/index.d.ts +30 -0
- package/dist/sandbox/index.d.ts.map +1 -0
- package/dist/sandbox/pages/AdminLandingPage.d.ts +9 -0
- package/dist/sandbox/pages/AdminLandingPage.d.ts.map +1 -0
- package/dist/sandbox/pages/AdminPage.d.ts +2 -0
- package/dist/sandbox/pages/AdminPage.d.ts.map +1 -0
- package/dist/sandbox/pages/AdminPage.js.map +1 -1
- package/dist/sandbox/pages/AdminTemplatesPage.d.ts +7 -0
- package/dist/sandbox/pages/AdminTemplatesPage.d.ts.map +1 -0
- package/dist/sandbox/pages/SandboxCreatePage.d.ts +2 -0
- package/dist/sandbox/pages/SandboxCreatePage.d.ts.map +1 -0
- package/dist/sandbox/pages/SandboxCreatePage.js.map +1 -1
- package/dist/sandbox/pages/SandboxDetailPage.d.ts +6 -0
- package/dist/sandbox/pages/SandboxDetailPage.d.ts.map +1 -0
- package/dist/sandbox/pages/SandboxDetailPage.js.map +1 -1
- package/dist/sandbox/pages/SandboxListPage.d.ts +6 -0
- package/dist/sandbox/pages/SandboxListPage.d.ts.map +1 -0
- package/dist/sandbox/pages/TemplateDetailPage.d.ts +6 -0
- package/dist/sandbox/pages/TemplateDetailPage.d.ts.map +1 -0
- package/dist/sandbox/pages/UserLandingPage.d.ts +9 -0
- package/dist/sandbox/pages/UserLandingPage.d.ts.map +1 -0
- package/dist/sandbox/pages/UserTemplatesPage.d.ts +8 -0
- package/dist/sandbox/pages/UserTemplatesPage.d.ts.map +1 -0
- package/dist/sandbox/providers/SandboxProvider.d.ts +13 -0
- package/dist/sandbox/providers/SandboxProvider.d.ts.map +1 -0
- package/dist/sandbox/store/sandboxStore.d.ts +16 -0
- package/dist/sandbox/store/sandboxStore.d.ts.map +1 -0
- package/dist/sandbox/types/index.d.ts +238 -0
- package/dist/sandbox/types/index.d.ts.map +1 -0
- package/dist/sandbox/utils/cn.d.ts +8 -0
- package/dist/sandbox/utils/cn.d.ts.map +1 -0
- package/dist/sandbox/utils/formatters.d.ts +7 -0
- package/dist/sandbox/utils/formatters.d.ts.map +1 -0
- package/dist/sandbox/utils/i18n.d.ts +6 -0
- package/dist/sandbox/utils/i18n.d.ts.map +1 -0
- package/dist/sandbox/utils/imageRegistry.d.ts +21 -0
- package/dist/sandbox/utils/imageRegistry.d.ts.map +1 -0
- package/dist/sandbox/utils/navigation.d.ts +5 -0
- package/dist/sandbox/utils/navigation.d.ts.map +1 -0
- package/dist/sandbox/utils/sandboxEvents.d.ts +13 -0
- package/dist/sandbox/utils/sandboxEvents.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation item for shell integration
|
|
3
|
+
*/
|
|
4
|
+
export interface NavItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
path: string;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
badge?: number;
|
|
10
|
+
order?: number;
|
|
11
|
+
group?: string;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
/** Nested children items for dropdown menus */
|
|
14
|
+
children?: NavItem[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Footer item for shell integration
|
|
18
|
+
*/
|
|
19
|
+
export interface FooterItem {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
type: 'status' | 'action';
|
|
23
|
+
order?: number;
|
|
24
|
+
section: 'left' | 'center' | 'right';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Base microfrontend root props
|
|
28
|
+
* TODO: Import from '@burdenoff/fe-libs/shared/types' when fe-libs is built
|
|
29
|
+
*/
|
|
30
|
+
export interface MicrofrontendRootProps {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Props for the SandboxRoot component
|
|
34
|
+
*/
|
|
35
|
+
export interface SandboxRootProps extends MicrofrontendRootProps {
|
|
36
|
+
/**
|
|
37
|
+
* Base path for the sandbox microfrontend
|
|
38
|
+
*/
|
|
39
|
+
basePath?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Workspace ID for scoping operations
|
|
42
|
+
*/
|
|
43
|
+
workspaceId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* API Gateway URL for GraphQL requests
|
|
46
|
+
*/
|
|
47
|
+
apiGatewayUrl?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Authentication token for API requests (platform identity JWT)
|
|
50
|
+
*/
|
|
51
|
+
authToken?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Workspace token for workspace-scoped API requests (workspace access JWT).
|
|
54
|
+
* The gateway requires both authToken (Authorization) and workspaceToken
|
|
55
|
+
* (X-Workspace-Authorization) for workspace operations.
|
|
56
|
+
*/
|
|
57
|
+
workspaceToken?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Navigation function provided by the shell
|
|
60
|
+
*/
|
|
61
|
+
navigate?: (path: string) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Current user information
|
|
64
|
+
*/
|
|
65
|
+
currentUser?: {
|
|
66
|
+
id: string;
|
|
67
|
+
email: string;
|
|
68
|
+
firstName?: string;
|
|
69
|
+
lastName?: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Optional function to register navigation items with the shell
|
|
73
|
+
* Injected by the shell app
|
|
74
|
+
*/
|
|
75
|
+
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Optional function to register footer items with the shell
|
|
78
|
+
* Injected by the shell app
|
|
79
|
+
*/
|
|
80
|
+
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
81
|
+
}
|
|
82
|
+
/** Props for SandboxAdminRoot — identical shape to SandboxRootProps */
|
|
83
|
+
export type SandboxAdminRootProps = SandboxRootProps;
|
|
84
|
+
/**
|
|
85
|
+
* Sandbox execution mode
|
|
86
|
+
*/
|
|
87
|
+
export type SandboxMode = 'DEPLOYMENT' | 'JOB';
|
|
88
|
+
export type SandboxKind = 'USER' | 'INTERNAL';
|
|
89
|
+
export type SandboxSource = 'MANUAL' | 'AI_ASSISTANT' | 'DOCS_BUILDER' | 'SYSTEM';
|
|
90
|
+
/**
|
|
91
|
+
* Sandbox template type - the purpose/category of the sandbox
|
|
92
|
+
*/
|
|
93
|
+
export type SandboxTemplateType = 'AI_BUILDER' | 'WORKFLOW_MULTI_NODE' | 'MISC_SHELL' | 'CUSTOM' | 'VIBECONTROLS' | 'DOCS_BUILDER';
|
|
94
|
+
/**
|
|
95
|
+
* Sandbox lifecycle status
|
|
96
|
+
*/
|
|
97
|
+
export type SandboxStatus = 'PENDING' | 'PROVISIONING' | 'RUNNING' | 'STOPPING' | 'STOPPED' | 'ERROR' | 'EXPIRED' | 'FAILED';
|
|
98
|
+
/**
|
|
99
|
+
* Container port configuration
|
|
100
|
+
*/
|
|
101
|
+
export interface ContainerPort {
|
|
102
|
+
containerPort: number;
|
|
103
|
+
name?: string;
|
|
104
|
+
protocol?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Environment variable for a container
|
|
108
|
+
*/
|
|
109
|
+
export interface EnvVar {
|
|
110
|
+
name: string;
|
|
111
|
+
value: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Per-container resource limits
|
|
115
|
+
*/
|
|
116
|
+
export interface ContainerResources {
|
|
117
|
+
requestsCpu?: string;
|
|
118
|
+
requestsMemory?: string;
|
|
119
|
+
limitsCpu?: string;
|
|
120
|
+
limitsMemory?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Container specification for a sandbox pod
|
|
124
|
+
*/
|
|
125
|
+
export interface ContainerSpec {
|
|
126
|
+
name: string;
|
|
127
|
+
image: string;
|
|
128
|
+
ports?: ContainerPort[];
|
|
129
|
+
env?: EnvVar[];
|
|
130
|
+
command?: string[];
|
|
131
|
+
args?: string[];
|
|
132
|
+
resources?: ContainerResources;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Runtime status of a container within a sandbox pod
|
|
136
|
+
*/
|
|
137
|
+
export interface ContainerStatus {
|
|
138
|
+
name: string;
|
|
139
|
+
ready: boolean;
|
|
140
|
+
port?: number;
|
|
141
|
+
restartCount?: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Sandbox-level resource requests and limits (Kubernetes style)
|
|
145
|
+
*/
|
|
146
|
+
export interface SandboxResources {
|
|
147
|
+
cpuRequest: string;
|
|
148
|
+
cpuLimit: string;
|
|
149
|
+
memoryRequest: string;
|
|
150
|
+
memoryLimit: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Storage configuration for a sandbox
|
|
154
|
+
*/
|
|
155
|
+
export interface SandboxStorage {
|
|
156
|
+
mode: 'NONE' | 'EPHEMERAL' | 'PERSISTENT';
|
|
157
|
+
sizeGi?: number;
|
|
158
|
+
mountPath?: string;
|
|
159
|
+
retainOnDelete: boolean;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Network configuration for a sandbox
|
|
163
|
+
*/
|
|
164
|
+
export interface SandboxNetwork {
|
|
165
|
+
exposeService: boolean;
|
|
166
|
+
internalUrl?: string;
|
|
167
|
+
/** Per-container URLs: { "node-a": "http://host:3001", "node-b": "http://host:3002" } */
|
|
168
|
+
containerUrls?: Record<string, string>;
|
|
169
|
+
serviceName?: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Sandbox entity (Kubernetes-native)
|
|
173
|
+
*/
|
|
174
|
+
export interface Sandbox {
|
|
175
|
+
id: string;
|
|
176
|
+
name: string;
|
|
177
|
+
description?: string;
|
|
178
|
+
kind: SandboxKind;
|
|
179
|
+
source: SandboxSource;
|
|
180
|
+
agentEnabled: boolean;
|
|
181
|
+
template: SandboxTemplateType;
|
|
182
|
+
mode: SandboxMode;
|
|
183
|
+
status: SandboxStatus;
|
|
184
|
+
crdName?: string;
|
|
185
|
+
podName?: string;
|
|
186
|
+
namespace: string;
|
|
187
|
+
runtimeClass: string;
|
|
188
|
+
containers: ContainerSpec[];
|
|
189
|
+
containerStatuses?: ContainerStatus[];
|
|
190
|
+
resources: SandboxResources;
|
|
191
|
+
storage: SandboxStorage;
|
|
192
|
+
network: SandboxNetwork;
|
|
193
|
+
ttlSeconds: number;
|
|
194
|
+
expiresAt?: string;
|
|
195
|
+
metadata?: Record<string, unknown>;
|
|
196
|
+
errorMessage?: string;
|
|
197
|
+
workspaceId: string;
|
|
198
|
+
createdBy: string;
|
|
199
|
+
createdAt: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
stoppedAt?: string;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Sandbox template for quick provisioning (Kubernetes-native)
|
|
205
|
+
*/
|
|
206
|
+
export interface SandboxTemplate {
|
|
207
|
+
id: string;
|
|
208
|
+
name: string;
|
|
209
|
+
description?: string;
|
|
210
|
+
template: SandboxTemplateType;
|
|
211
|
+
isDefault: boolean;
|
|
212
|
+
containers: ContainerSpec[];
|
|
213
|
+
resources: SandboxResources;
|
|
214
|
+
storage: SandboxStorage;
|
|
215
|
+
allowedImages?: string[];
|
|
216
|
+
ttlSeconds: number;
|
|
217
|
+
config?: Record<string, unknown>;
|
|
218
|
+
metadata?: Record<string, unknown>;
|
|
219
|
+
workspaceId: string;
|
|
220
|
+
createdBy: string;
|
|
221
|
+
createdAt: string;
|
|
222
|
+
updatedAt: string;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Sandbox filter options
|
|
226
|
+
*/
|
|
227
|
+
export interface SandboxFilter {
|
|
228
|
+
search: string;
|
|
229
|
+
kind?: SandboxKind | 'all';
|
|
230
|
+
source?: SandboxSource | 'all';
|
|
231
|
+
template?: SandboxTemplateType | 'all';
|
|
232
|
+
status?: SandboxStatus | 'all';
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* View mode for the sandbox UI
|
|
236
|
+
*/
|
|
237
|
+
export type SandboxView = 'list' | 'templates' | 'admin';
|
|
238
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sandbox/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED;;;GAGG;AAEH,MAAM,WAAW,sBAAsB;CAAG;AAE1C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,EAAE,E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;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;IAC3B,MAAM,CAAC,EAAE,aAAa,GAAG,KAAK,CAAC;IAC/B,QAAQ,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC;IACvC,MAAM,CAAC,EAAE,aAAa,GAAG,KAAK,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Utility function to merge Tailwind CSS classes
|
|
5
|
+
* Combines clsx for conditional classes and tailwind-merge for deduplication
|
|
6
|
+
*/
|
|
7
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
8
|
+
//# sourceMappingURL=cn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/sandbox/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/sandbox/utils/formatters.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAOpE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
|
|
2
|
+
|
|
3
|
+
type TranslationParams = Record<string, string | number>;
|
|
4
|
+
export declare function tWithFallback(t: I18nContextValue['t'], key: string, fallback: string, params?: TranslationParams): string;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/sandbox/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAazD,wBAAgB,aAAa,CAC3B,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAGR"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Burdenoff container-registry prefix helpers for the create-sandbox form.
|
|
3
|
+
*
|
|
4
|
+
* In "Burdenoff repositories" mode the registry is rendered as a fixed prefix
|
|
5
|
+
* and the editable field holds only the path-after-registry; on submit the
|
|
6
|
+
* registry is re-added to produce the FQDN that sandbox-svc's registry
|
|
7
|
+
* allowlist requires. Keeping these as pure, separately-tested functions makes
|
|
8
|
+
* the round-trip impossible to get subtly wrong — most importantly, it
|
|
9
|
+
* guarantees a value that already carries the registry is never double-prefixed
|
|
10
|
+
* (`burdenoffregistry.azurecr.io/burdenoffregistry.azurecr.io/…`).
|
|
11
|
+
*/
|
|
12
|
+
export declare const BURDENOFF_REGISTRY = "burdenoffregistry.azurecr.io";
|
|
13
|
+
/** Drop the leading `burdenoffregistry.azurecr.io/` if present, else return as-is. */
|
|
14
|
+
export declare function stripBurdenoffRegistry(image: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Prepend the Burdenoff registry, but never double it: a value that already
|
|
17
|
+
* starts with the registry (a loaded template, an edited sandbox, or a pasted
|
|
18
|
+
* FQDN) is returned unchanged. Empty/whitespace input returns empty.
|
|
19
|
+
*/
|
|
20
|
+
export declare function withBurdenoffRegistry(image: string): string;
|
|
21
|
+
//# sourceMappingURL=imageRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageRegistry.d.ts","sourceRoot":"","sources":["../../../src/sandbox/utils/imageRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,iCAAiC,CAAC;AAEjE,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/sandbox/utils/navigation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAI3D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SandboxCreatedPayload, SandboxStartedPayload, SandboxExtendedPayload, SandboxExpiredPayload, SandboxDeletedPayload, SandboxTemplateCreatedPayload, SandboxTemplateDeletedPayload, SandboxExportRequestedPayload } from '@burdenoff/fe-libs/shared/events';
|
|
2
|
+
|
|
3
|
+
export declare function useSandboxEvents(): {
|
|
4
|
+
sandboxCreated: (p: SandboxCreatedPayload) => void;
|
|
5
|
+
sandboxStarted: (p: SandboxStartedPayload) => void;
|
|
6
|
+
sandboxExtended: (p: SandboxExtendedPayload) => void;
|
|
7
|
+
sandboxExpired: (p: SandboxExpiredPayload) => void;
|
|
8
|
+
sandboxDeleted: (p: SandboxDeletedPayload) => void;
|
|
9
|
+
sandboxTemplateCreated: (p: SandboxTemplateCreatedPayload) => void;
|
|
10
|
+
sandboxTemplateDeleted: (p: SandboxTemplateDeletedPayload) => void;
|
|
11
|
+
sandboxExportRequested: (p: SandboxExportRequestedPayload) => void;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=sandboxEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandboxEvents.d.ts","sourceRoot":"","sources":["../../../src/sandbox/utils/sandboxEvents.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EACnC,MAAM,kCAAkC,CAAC;AAE1C,wBAAgB,gBAAgB;wBAIN,qBAAqB;wBACrB,qBAAqB;yBACpB,sBAAsB;wBACvB,qBAAqB;wBACrB,qBAAqB;gCACb,6BAA6B;gCAE7B,6BAA6B;gCAE7B,6BAA6B;EAK9D"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
+
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
|
3
|
+
//# sourceMappingURL=nativeBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeBridge.d.ts","sourceRoot":"","sources":["../../src/utils/nativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-sandbox",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.715.2",
|
|
4
4
|
"description": "Burdenoff Sandbox Microfrontend - Manage ephemeral sandbox environments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite",
|
|
25
|
-
"build": "tsc && vite build",
|
|
25
|
+
"build": "tsc && MFE_DTS=1 vite build",
|
|
26
26
|
"lint": "eslint .",
|
|
27
27
|
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
28
28
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|