@sampleapp.ai/sdk 1.0.31 → 1.0.32
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/index.d.ts
CHANGED
|
@@ -1,32 +1,444 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
declare
|
|
32
|
-
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare interface AiChatSettings {
|
|
6
|
+
aiAssistantAvatar?: string;
|
|
7
|
+
exampleQuestions?: string[];
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare interface BaseSettings {
|
|
12
|
+
apiKey: string;
|
|
13
|
+
primaryBrandColor: string;
|
|
14
|
+
organizationDisplayName: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Builds a nested GuardianConfig from use cases with nested frameworks.
|
|
20
|
+
* Returns a structure where config[useCaseId].frameworks[frameworkKey] gives you the full config.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const config = buildGuardianConfig(USE_CASES, options);
|
|
24
|
+
* // Access via: config["full-stack-auth"].frameworks["nextjs"]
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildGuardianConfig(useCases: GuardianUseCase[], options: BuildGuardianConfigOptions): GuardianNestedConfig;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Options for building a Guardian config from use cases.
|
|
30
|
+
*/
|
|
31
|
+
export declare interface BuildGuardianConfigOptions {
|
|
32
|
+
/** Playground unique identifier */
|
|
33
|
+
playgroundUid: string;
|
|
34
|
+
/** Playground logo component */
|
|
35
|
+
playgroundLogo: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Optional map of framework keys to human-readable labels.
|
|
38
|
+
* If not provided, the shared FrameworkLabel map is used.
|
|
39
|
+
*/
|
|
40
|
+
frameworkLabels?: Partial<Record<Framework, string>>;
|
|
41
|
+
/** Optional variant (defaults to undefined) */
|
|
42
|
+
variant?: GuardianComponentProps["variant"];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export declare const ChatBar: React_2.FC<ChatBarProps>;
|
|
46
|
+
|
|
47
|
+
export declare interface ChatBarProps {
|
|
48
|
+
playgroundUid: string;
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
onSubmit?: (e: default_2.FormEvent) => void;
|
|
51
|
+
height: string;
|
|
52
|
+
onCancel?: () => void;
|
|
53
|
+
isSubmitting?: boolean;
|
|
54
|
+
typingTexts?: string[];
|
|
55
|
+
shouldFocusOnMount?: boolean;
|
|
56
|
+
showModelSelector?: boolean;
|
|
57
|
+
projectUid?: string | null | undefined;
|
|
58
|
+
theme?: ThemeName;
|
|
59
|
+
deepgramApiKey?: string;
|
|
60
|
+
apiBaseUrl?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export declare const ChatButton: default_2.FC<ChatButtonProps>;
|
|
64
|
+
|
|
65
|
+
declare interface ChatButtonProps {
|
|
66
|
+
settings: SDKSettings;
|
|
67
|
+
onClick?: () => void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare enum CodeLanguage {
|
|
71
|
+
JAVASCRIPT = "javascript",
|
|
72
|
+
TYPESCRIPT = "typescript",
|
|
73
|
+
HTML = "html",
|
|
74
|
+
CSS = "css",
|
|
75
|
+
SCSS = "scss",
|
|
76
|
+
MARKDOWN = "markdown",
|
|
77
|
+
TOML = "toml",
|
|
78
|
+
C = "c",
|
|
79
|
+
DOCKERFILE = "dockerfile",
|
|
80
|
+
PYTHON = "python",
|
|
81
|
+
JAVA = "java",
|
|
82
|
+
CSHARP = "csharp",
|
|
83
|
+
CPP = "cpp",
|
|
84
|
+
RUBY = "ruby",
|
|
85
|
+
GO = "go",
|
|
86
|
+
RUST = "rust",
|
|
87
|
+
SWIFT = "swift",
|
|
88
|
+
KOTLIN = "kotlin",
|
|
89
|
+
PHP = "php",
|
|
90
|
+
BASH = "bash",
|
|
91
|
+
POWERSHELL = "powershell",
|
|
92
|
+
SQL = "sql",
|
|
93
|
+
PLSQL = "plsql",
|
|
94
|
+
XML = "xml",
|
|
95
|
+
YAML = "yaml",
|
|
96
|
+
R = "r",
|
|
97
|
+
SCALA = "scala",
|
|
98
|
+
PERL = "perl",
|
|
99
|
+
HASKELL = "haskell",
|
|
100
|
+
MATLAB = "matlab",
|
|
101
|
+
ASSEMBLY = "assembly",
|
|
102
|
+
DART = "dart",
|
|
103
|
+
ELIXIR = "elixir",
|
|
104
|
+
LUA = "lua",
|
|
105
|
+
OBJECTIVEC = "objectivec",
|
|
106
|
+
TEXT = "text",
|
|
107
|
+
JSON = "json"
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare interface CodeOutput {
|
|
111
|
+
response_type: "CodeOutput";
|
|
112
|
+
file_path: string;
|
|
113
|
+
code_file_name: string;
|
|
114
|
+
code_language: CodeLanguage;
|
|
115
|
+
dependencies_to_install: string[];
|
|
116
|
+
framework: string | null;
|
|
117
|
+
full_code: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Creates sandbox URL configs for preloading from a framework's urlsToPreload.
|
|
122
|
+
* Only includes URLs that need VM preloading (useVm: true).
|
|
123
|
+
* Uses the same sandboxUid for all configs since caching is done by sandboxUid + browserUrl.
|
|
124
|
+
*/
|
|
125
|
+
export declare function createSandboxUrlConfigs(sandboxUid: string, urlsToPreload?: UrlToPreload[]): SandboxUrlConfig[];
|
|
126
|
+
|
|
127
|
+
export declare const DEFAULT_THEME: ThemeName;
|
|
128
|
+
|
|
129
|
+
export declare enum Framework {
|
|
130
|
+
FLASK = "flask",
|
|
131
|
+
EXPRESS = "express",
|
|
132
|
+
NEXTJS_YARN = "nextjsy",
|
|
133
|
+
VITE = "vite",
|
|
134
|
+
NEXTJS = "nextjs",
|
|
135
|
+
FASTAPI = "fastapi",
|
|
136
|
+
FASTMCP = "fastmcp"
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare const getTheme: (themeName?: ThemeName) => ThemeColors;
|
|
140
|
+
|
|
141
|
+
export declare function GuardianComponent({ demoOptions, frameworkOptions, firstFrameworkByUseCase, currentFramework, currentUseCase, CustomConsole, GuideView, playgroundLogo, playgroundUid, browserUrl, useVm, sandboxUid, codeZipFile, consoleUrlConfigs, completeCodeZipFile, variant, themeColor, hasPreview, isFrame, apiKey, env, chatUid, hideHeader, // Hardcoded to true by default, not exposed in Sandbox.tsx
|
|
142
|
+
gitUrl, }: GuardianComponentProps): default_2.JSX.Element;
|
|
143
|
+
|
|
144
|
+
export declare interface GuardianComponentProps {
|
|
145
|
+
name: string;
|
|
146
|
+
description: string;
|
|
147
|
+
demoOptions: {
|
|
148
|
+
label: string;
|
|
149
|
+
value: string;
|
|
150
|
+
}[];
|
|
151
|
+
frameworkOptions: {
|
|
152
|
+
label: string;
|
|
153
|
+
value: string;
|
|
154
|
+
}[];
|
|
155
|
+
CustomConsole: default_2.ComponentType<{
|
|
156
|
+
onReloadPreview: () => void;
|
|
157
|
+
onStageChange: (stage: "hidden" | "error" | "rebuilding") => void;
|
|
158
|
+
themeColor: string;
|
|
159
|
+
}> | string;
|
|
160
|
+
/** Maps use case ID to first available framework key */
|
|
161
|
+
firstFrameworkByUseCase?: Record<string, string>;
|
|
162
|
+
/** The current framework key for this sandbox */
|
|
163
|
+
currentFramework: string;
|
|
164
|
+
/** The current use case ID (for nested config navigation) */
|
|
165
|
+
currentUseCase?: string;
|
|
166
|
+
GuideView?: default_2.ComponentType | string;
|
|
167
|
+
playgroundLogo: default_2.ReactNode;
|
|
168
|
+
playgroundUid: string;
|
|
169
|
+
browserUrl: string;
|
|
170
|
+
useVm: boolean;
|
|
171
|
+
sandboxUid: string;
|
|
172
|
+
codeZipFile: string | UpdateContainerCodebaseType;
|
|
173
|
+
/**
|
|
174
|
+
* Optional console URL configs to preload.
|
|
175
|
+
* These are URLs used in the CustomConsole component.
|
|
176
|
+
*/
|
|
177
|
+
completeCodeZipFile: string;
|
|
178
|
+
consoleUrlConfigs?: SandboxUrlConfig[];
|
|
179
|
+
variant?: "panel" | "top-down";
|
|
180
|
+
/**
|
|
181
|
+
* Hex color (e.g. "#3b82f6") used to theme Guardian UI elements.
|
|
182
|
+
*/
|
|
183
|
+
themeColor: string;
|
|
184
|
+
/**
|
|
185
|
+
* Whether there is a preview available for the sandbox
|
|
186
|
+
*/
|
|
187
|
+
hasPreview?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Whether to render in frame mode (just the right view, no console/header)
|
|
190
|
+
*/
|
|
191
|
+
isFrame?: boolean;
|
|
192
|
+
/** API key for starting sandbox */
|
|
193
|
+
apiKey?: string;
|
|
194
|
+
/** Environment variables for sandbox */
|
|
195
|
+
env?: Record<string, string>;
|
|
196
|
+
/** Chat UID for starting sandbox */
|
|
197
|
+
chatUid?: string;
|
|
198
|
+
/* Excluded from this release type: hideHeader */
|
|
199
|
+
/** Optional Git URL for opening the project in VSCode */
|
|
200
|
+
gitUrl?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Represents a single framework variant within a use case.
|
|
205
|
+
* Only contains the fields that differ per framework.
|
|
206
|
+
*/
|
|
207
|
+
export declare interface GuardianFramework {
|
|
208
|
+
/** Framework identifier key (e.g., "nextjs", "express", "fastapi") */
|
|
209
|
+
key: Framework;
|
|
210
|
+
/** Live browser URL for this framework variant */
|
|
211
|
+
browserUrl: string;
|
|
212
|
+
/** Unique sandbox identifier for this framework variant */
|
|
213
|
+
sandboxUid: string;
|
|
214
|
+
/** Path to the code zip file OR generated_code object (backward compatible) */
|
|
215
|
+
codeZipFile: string | UpdateContainerCodebaseType;
|
|
216
|
+
/** Download endpoint URL for the complete code zip file (e.g., `${baseUrl}/fileshare?container_id=${containerId}`) */
|
|
217
|
+
completeCodeZipFile: string;
|
|
218
|
+
/** Whether to use VM for this framework */
|
|
219
|
+
useVm: boolean;
|
|
220
|
+
/** Custom console component/string for this framework */
|
|
221
|
+
CustomConsole: GuardianComponentProps["CustomConsole"];
|
|
222
|
+
/** Optional custom guide view for this framework */
|
|
223
|
+
GuideView?: GuardianComponentProps["GuideView"];
|
|
224
|
+
/** Optional theme color override for this framework */
|
|
225
|
+
themeColor?: string;
|
|
226
|
+
/** Optional URLs to preload for this specific framework */
|
|
227
|
+
urlsToPreload?: UrlToPreload[];
|
|
228
|
+
/** Optional Git URL for opening the project in VSCode */
|
|
229
|
+
gitUrl?: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Individual framework configuration within a use case
|
|
234
|
+
*/
|
|
235
|
+
declare interface GuardianFrameworkConfig extends GuardianComponentProps {
|
|
236
|
+
frameworkKey: Framework;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Nested config structure: use case → framework → config
|
|
241
|
+
* This is the new recommended structure for Guardian playgrounds
|
|
242
|
+
*/
|
|
243
|
+
export declare type GuardianNestedConfig = Record<string, GuardianUseCaseConfig>;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Guardian Playground component with nested config structure.
|
|
247
|
+
* Expects config[useCaseId].frameworks[frameworkKey] structure.
|
|
248
|
+
*
|
|
249
|
+
* When isFrame=true, reads framework from URL params client-side.
|
|
250
|
+
*/
|
|
251
|
+
export declare function GuardianPlayground({ nestedConfig, useCase, framework: serverFramework, isFrame, apiKey, env, chatUid, }: {
|
|
252
|
+
/** Nested config structure (use case → framework → config) */
|
|
253
|
+
nestedConfig: GuardianNestedConfig;
|
|
254
|
+
/** Current use case ID */
|
|
255
|
+
useCase: string;
|
|
256
|
+
/** Current framework key (from server-side props) */
|
|
257
|
+
framework: string;
|
|
258
|
+
/** Whether to render in frame mode (just the right view) */
|
|
259
|
+
isFrame?: boolean;
|
|
260
|
+
/** API key for starting sandbox */
|
|
261
|
+
apiKey?: string;
|
|
262
|
+
/** Environment variables for sandbox */
|
|
263
|
+
env?: Record<string, string>;
|
|
264
|
+
/** Chat UID for starting sandbox */
|
|
265
|
+
chatUid?: string;
|
|
266
|
+
}): default_2.JSX.Element;
|
|
267
|
+
|
|
268
|
+
export declare function GuardianProvider({ children }: {
|
|
269
|
+
children: ReactNode;
|
|
270
|
+
}): default_2.JSX.Element;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Represents a use case with multiple framework implementations.
|
|
274
|
+
* Contains shared fields across all frameworks.
|
|
275
|
+
*/
|
|
276
|
+
export declare interface GuardianUseCase {
|
|
277
|
+
/** Unique identifier for this use case (e.g., "scalekit-fsa") */
|
|
278
|
+
id: string;
|
|
279
|
+
/** Display name for this use case */
|
|
280
|
+
name: string;
|
|
281
|
+
/** Description of what this use case demonstrates */
|
|
282
|
+
description: string;
|
|
283
|
+
/** Default theme color for all frameworks */
|
|
284
|
+
themeColor: string;
|
|
285
|
+
/** Whether to show the preview for this use case */
|
|
286
|
+
hasPreview?: boolean;
|
|
287
|
+
/** List of framework implementations for this use case */
|
|
288
|
+
frameworks: GuardianFramework[];
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* A single use case with its framework implementations
|
|
293
|
+
*/
|
|
294
|
+
export declare interface GuardianUseCaseConfig {
|
|
295
|
+
/** Unique identifier for this use case (e.g., "full-stack-auth") */
|
|
296
|
+
id: string;
|
|
297
|
+
/** Display name for this use case */
|
|
298
|
+
name: string;
|
|
299
|
+
/** Description of what this use case demonstrates */
|
|
300
|
+
description: string;
|
|
301
|
+
/** Default theme color for all frameworks */
|
|
302
|
+
themeColor: string;
|
|
303
|
+
/** Whether to show the preview for this use case */
|
|
304
|
+
hasPreview?: boolean;
|
|
305
|
+
/** Map of framework key to its complete configuration */
|
|
306
|
+
frameworks: Record<string, GuardianFrameworkConfig>;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export declare const ModalSearchAndChat: default_2.FC<ModalSearchAndChatProps>;
|
|
310
|
+
|
|
311
|
+
declare interface ModalSearchAndChatProps {
|
|
312
|
+
settings: SDKSettings;
|
|
313
|
+
onClose?: () => void;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare class SampleAppSDK {
|
|
317
|
+
ModalSearchAndChat: (settings: SDKSettings, container?: HTMLElement) => {
|
|
318
|
+
unmount: () => void;
|
|
319
|
+
show: () => void;
|
|
320
|
+
hide: () => void;
|
|
321
|
+
};
|
|
322
|
+
ChatButton: (settings: SDKSettings, container?: HTMLElement) => {
|
|
323
|
+
unmount: () => void;
|
|
324
|
+
};
|
|
325
|
+
private createButtonContainer;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Sandbox component - simplified API for embedding sandboxes
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* ```tsx
|
|
333
|
+
* <Sandbox
|
|
334
|
+
* apiKey={process.env.NEXT_PUBLIC_SAMPLEAPP_API_KEY!}
|
|
335
|
+
* sandboxId="launchdarkly-feature-flags"
|
|
336
|
+
* env={{
|
|
337
|
+
* LAUNCHDARKLY_SDK_KEY: "sdk-xxx",
|
|
338
|
+
* }}
|
|
339
|
+
* />
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
342
|
+
export declare function Sandbox({ apiKey, sandboxId, env, themeColor, }: SandboxProps): default_2.JSX.Element | null;
|
|
343
|
+
|
|
344
|
+
export declare const SandboxHome: React_2.FC<SandboxHomeProps>;
|
|
345
|
+
|
|
346
|
+
export declare interface SandboxHomeProps {
|
|
347
|
+
apiKey: string;
|
|
348
|
+
orgid: string;
|
|
349
|
+
sandboxes?: SandboxItem[];
|
|
350
|
+
basePath?: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export declare interface SandboxItem {
|
|
354
|
+
id: string;
|
|
355
|
+
title: string;
|
|
356
|
+
description: string;
|
|
357
|
+
sandboxId?: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Props for the Sandbox component
|
|
362
|
+
*/
|
|
363
|
+
export declare interface SandboxProps {
|
|
364
|
+
/** API key for container technology - required */
|
|
365
|
+
apiKey: string;
|
|
366
|
+
/** Sandbox ID to fetch configuration - required */
|
|
367
|
+
sandboxId: string;
|
|
368
|
+
/** Environment variables to pass to the sandbox - required */
|
|
369
|
+
env: Record<string, string>;
|
|
370
|
+
/** Optional theme color override */
|
|
371
|
+
themeColor?: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare interface SandboxUrlConfig {
|
|
375
|
+
sandboxUid: string;
|
|
376
|
+
browserUrl: string;
|
|
377
|
+
useVm: boolean;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare const sdk: SampleAppSDK;
|
|
381
|
+
export default sdk;
|
|
382
|
+
|
|
383
|
+
export declare interface SDKSettings {
|
|
384
|
+
baseSettings: BaseSettings;
|
|
385
|
+
aiChatSettings?: AiChatSettings;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export declare const TailwindExample: React_2.FC<TailwindExampleProps>;
|
|
389
|
+
|
|
390
|
+
export declare interface TailwindExampleProps {
|
|
391
|
+
title?: string;
|
|
392
|
+
description?: string;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export declare interface ThemeColors {
|
|
396
|
+
primary: string;
|
|
397
|
+
shadow: {
|
|
398
|
+
light: string;
|
|
399
|
+
dark: string;
|
|
400
|
+
};
|
|
401
|
+
gradient: string;
|
|
402
|
+
placeholderText: {
|
|
403
|
+
light: string;
|
|
404
|
+
dark: string;
|
|
405
|
+
};
|
|
406
|
+
tabHint: {
|
|
407
|
+
text: {
|
|
408
|
+
light: string;
|
|
409
|
+
dark: string;
|
|
410
|
+
};
|
|
411
|
+
bg: {
|
|
412
|
+
light: string;
|
|
413
|
+
dark: string;
|
|
414
|
+
};
|
|
415
|
+
border: {
|
|
416
|
+
light: string;
|
|
417
|
+
dark: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export declare type ThemeName = "ocean" | "autumn" | "mint" | "sunset" | "lavender" | "forest" | "coral";
|
|
423
|
+
|
|
424
|
+
export declare const themes: Record<ThemeName, ThemeColors>;
|
|
425
|
+
|
|
426
|
+
declare type UpdateContainerCodebaseType = Record<string, CodeOutput>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Configuration for a single URL to preload in the sandbox
|
|
430
|
+
*/
|
|
431
|
+
declare interface UrlToPreload {
|
|
432
|
+
/** Browser URL to load */
|
|
433
|
+
browserUrl: string;
|
|
434
|
+
/** Whether to use VM for this URL */
|
|
435
|
+
useVm: boolean;
|
|
436
|
+
/** Suffix for the sandboxUid (e.g., "main", "abc", "def") */
|
|
437
|
+
suffix?: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export declare const VmProvider: ({ children }: {
|
|
441
|
+
children: ReactNode;
|
|
442
|
+
}) => default_2.JSX.Element;
|
|
443
|
+
|
|
444
|
+
export { }
|
package/dist/index.es.js
CHANGED
|
@@ -1682,7 +1682,7 @@ function GW(e) {
|
|
|
1682
1682
|
return null;
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
|
-
const Jte = () => "
|
|
1685
|
+
const Jte = () => "https://api.sampleapp.ai";
|
|
1686
1686
|
class $te {
|
|
1687
1687
|
constructor(t) {
|
|
1688
1688
|
this.sandboxContent = {
|
|
@@ -84699,7 +84699,7 @@ const LXe = ({
|
|
|
84699
84699
|
const [a, n] = Le.useState(!1), [i, s] = Le.useState(!1), c = Le.useMemo(() => {
|
|
84700
84700
|
if (!o) return null;
|
|
84701
84701
|
const y = GW(o);
|
|
84702
|
-
return y ? `
|
|
84702
|
+
return y ? `https://api.sampleapp.ai/api/v1/sdk/download-code?container_id=${encodeURIComponent(
|
|
84703
84703
|
y
|
|
84704
84704
|
)}` : null;
|
|
84705
84705
|
}, [o]), d = Le.useMemo(() => {
|
|
@@ -90720,7 +90720,7 @@ function cet({
|
|
|
90720
90720
|
const C = h.isFrame && h.theme ? h.theme : n, x = gt(() => {
|
|
90721
90721
|
if (!r) return null;
|
|
90722
90722
|
const k = GW(r);
|
|
90723
|
-
return k ? `
|
|
90723
|
+
return k ? `https://api.sampleapp.ai/api/v1/sdk/download-code?container_id=${encodeURIComponent(k)}` : null;
|
|
90724
90724
|
}, [r]);
|
|
90725
90725
|
return gt(() => {
|
|
90726
90726
|
const k = [];
|