@rslsp1/fa-app-tools 1.3.14 → 1.3.16
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.mts +42 -3
- package/dist/index.d.ts +42 -3
- package/dist/index.js +46 -5
- package/dist/index.mjs +45 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -309,12 +309,51 @@ interface AvatarArchitectAppProps {
|
|
|
309
309
|
onDownload: (base64: string, mimeType: string, filename: string) => Promise<void>;
|
|
310
310
|
onSelectMedia: () => Promise<MediaItem[]>;
|
|
311
311
|
buildInfo?: string;
|
|
312
|
+
initialHfToken?: string;
|
|
312
313
|
onFetchServerProjects?: () => Promise<ProjectMeta[]>;
|
|
313
314
|
onServerSave?: (zipBase64: string, name: string) => Promise<ProjectMeta>;
|
|
314
315
|
onServerLoad?: (id: string) => Promise<File>;
|
|
315
316
|
onServerDelete?: (id: string) => Promise<void>;
|
|
316
317
|
}
|
|
317
|
-
declare function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }: AvatarArchitectAppProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
declare function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, initialHfToken, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }: AvatarArchitectAppProps): react_jsx_runtime.JSX.Element;
|
|
319
|
+
|
|
320
|
+
interface FaAppProps {
|
|
321
|
+
onGenerateImage: (params: Record<string, any>) => Promise<{
|
|
322
|
+
base64: string;
|
|
323
|
+
mediaId?: string;
|
|
324
|
+
}>;
|
|
325
|
+
onGeneratePrompt: (prompt: string, options?: {
|
|
326
|
+
images?: {
|
|
327
|
+
base64: string;
|
|
328
|
+
mimeType: string;
|
|
329
|
+
}[];
|
|
330
|
+
systemInstruction?: string;
|
|
331
|
+
}) => Promise<{
|
|
332
|
+
text: string;
|
|
333
|
+
}>;
|
|
334
|
+
onGenerateVideo?: (params: Record<string, any>) => Promise<{
|
|
335
|
+
base64: string;
|
|
336
|
+
mimeType: string;
|
|
337
|
+
}>;
|
|
338
|
+
onDownload: (base64: string, mimeType: string, filename: string) => Promise<void>;
|
|
339
|
+
onSelectMedia: () => Promise<MediaItem[]>;
|
|
340
|
+
onFlowSave?: (base64: string, mimeType: string, name: string) => Promise<{
|
|
341
|
+
mediaId: string;
|
|
342
|
+
}>;
|
|
343
|
+
onFlowUpload?: (base64: string, mimeType: string, name: string) => Promise<{
|
|
344
|
+
mediaId: string;
|
|
345
|
+
}>;
|
|
346
|
+
onFlowMediaUpload?: (base64: string, mimeType: string, name: string) => Promise<{
|
|
347
|
+
mediaId: string;
|
|
348
|
+
}>;
|
|
349
|
+
libToken?: string;
|
|
350
|
+
onFetchServerProjects?: () => Promise<ProjectMeta[]>;
|
|
351
|
+
onServerSave?: (zipBase64: string, name: string) => Promise<ProjectMeta>;
|
|
352
|
+
onServerLoad?: (id: string) => Promise<File>;
|
|
353
|
+
onServerDelete?: (id: string) => Promise<void>;
|
|
354
|
+
buildInfo?: string;
|
|
355
|
+
}
|
|
356
|
+
declare function FaApp({ onGenerateImage, onGeneratePrompt, onGenerateVideo: _onGenerateVideo, onDownload, onSelectMedia, onFlowSave: _onFlowSave, onFlowUpload: _onFlowUpload, onFlowMediaUpload: _onFlowMediaUpload, libToken, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete, buildInfo, }: FaAppProps): react_jsx_runtime.JSX.Element;
|
|
318
357
|
|
|
319
358
|
interface CollapsibleCardProps {
|
|
320
359
|
title: string;
|
|
@@ -479,6 +518,6 @@ declare function hfLoadMetadata(token: string): Promise<any[]>;
|
|
|
479
518
|
declare function hfUploadImage(base64: string, id: string, token: string, mimeType?: string): Promise<void>;
|
|
480
519
|
declare function hfLoadImageAsBase64(id: string, token: string): Promise<string | null>;
|
|
481
520
|
|
|
482
|
-
declare const LIB_VERSION = "1.3.
|
|
521
|
+
declare const LIB_VERSION = "1.3.16";
|
|
483
522
|
|
|
484
|
-
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFMetadataEntry, HistoryPanel, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type WorkspaceTags, autoLabel, buildBlendInstruction, buildCompareInstruction, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, groupGenerationsToLabItems, hfDeleteProject, hfDownloadProject, hfListProjects, hfLoadImageAsBase64, hfLoadMetadata, hfLoadTags, hfSaveMetadata, hfSaveTags, hfUploadImage, hfUploadProjectForm, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, setHFToken, useKeyboardNavigation, useOnClickOutside };
|
|
523
|
+
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaApp, type FaAppProps, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFMetadataEntry, HistoryPanel, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type WorkspaceTags, autoLabel, buildBlendInstruction, buildCompareInstruction, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, groupGenerationsToLabItems, hfDeleteProject, hfDownloadProject, hfListProjects, hfLoadImageAsBase64, hfLoadMetadata, hfLoadTags, hfSaveMetadata, hfSaveTags, hfUploadImage, hfUploadProjectForm, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, setHFToken, useKeyboardNavigation, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -309,12 +309,51 @@ interface AvatarArchitectAppProps {
|
|
|
309
309
|
onDownload: (base64: string, mimeType: string, filename: string) => Promise<void>;
|
|
310
310
|
onSelectMedia: () => Promise<MediaItem[]>;
|
|
311
311
|
buildInfo?: string;
|
|
312
|
+
initialHfToken?: string;
|
|
312
313
|
onFetchServerProjects?: () => Promise<ProjectMeta[]>;
|
|
313
314
|
onServerSave?: (zipBase64: string, name: string) => Promise<ProjectMeta>;
|
|
314
315
|
onServerLoad?: (id: string) => Promise<File>;
|
|
315
316
|
onServerDelete?: (id: string) => Promise<void>;
|
|
316
317
|
}
|
|
317
|
-
declare function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }: AvatarArchitectAppProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
declare function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, initialHfToken, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }: AvatarArchitectAppProps): react_jsx_runtime.JSX.Element;
|
|
319
|
+
|
|
320
|
+
interface FaAppProps {
|
|
321
|
+
onGenerateImage: (params: Record<string, any>) => Promise<{
|
|
322
|
+
base64: string;
|
|
323
|
+
mediaId?: string;
|
|
324
|
+
}>;
|
|
325
|
+
onGeneratePrompt: (prompt: string, options?: {
|
|
326
|
+
images?: {
|
|
327
|
+
base64: string;
|
|
328
|
+
mimeType: string;
|
|
329
|
+
}[];
|
|
330
|
+
systemInstruction?: string;
|
|
331
|
+
}) => Promise<{
|
|
332
|
+
text: string;
|
|
333
|
+
}>;
|
|
334
|
+
onGenerateVideo?: (params: Record<string, any>) => Promise<{
|
|
335
|
+
base64: string;
|
|
336
|
+
mimeType: string;
|
|
337
|
+
}>;
|
|
338
|
+
onDownload: (base64: string, mimeType: string, filename: string) => Promise<void>;
|
|
339
|
+
onSelectMedia: () => Promise<MediaItem[]>;
|
|
340
|
+
onFlowSave?: (base64: string, mimeType: string, name: string) => Promise<{
|
|
341
|
+
mediaId: string;
|
|
342
|
+
}>;
|
|
343
|
+
onFlowUpload?: (base64: string, mimeType: string, name: string) => Promise<{
|
|
344
|
+
mediaId: string;
|
|
345
|
+
}>;
|
|
346
|
+
onFlowMediaUpload?: (base64: string, mimeType: string, name: string) => Promise<{
|
|
347
|
+
mediaId: string;
|
|
348
|
+
}>;
|
|
349
|
+
libToken?: string;
|
|
350
|
+
onFetchServerProjects?: () => Promise<ProjectMeta[]>;
|
|
351
|
+
onServerSave?: (zipBase64: string, name: string) => Promise<ProjectMeta>;
|
|
352
|
+
onServerLoad?: (id: string) => Promise<File>;
|
|
353
|
+
onServerDelete?: (id: string) => Promise<void>;
|
|
354
|
+
buildInfo?: string;
|
|
355
|
+
}
|
|
356
|
+
declare function FaApp({ onGenerateImage, onGeneratePrompt, onGenerateVideo: _onGenerateVideo, onDownload, onSelectMedia, onFlowSave: _onFlowSave, onFlowUpload: _onFlowUpload, onFlowMediaUpload: _onFlowMediaUpload, libToken, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete, buildInfo, }: FaAppProps): react_jsx_runtime.JSX.Element;
|
|
318
357
|
|
|
319
358
|
interface CollapsibleCardProps {
|
|
320
359
|
title: string;
|
|
@@ -479,6 +518,6 @@ declare function hfLoadMetadata(token: string): Promise<any[]>;
|
|
|
479
518
|
declare function hfUploadImage(base64: string, id: string, token: string, mimeType?: string): Promise<void>;
|
|
480
519
|
declare function hfLoadImageAsBase64(id: string, token: string): Promise<string | null>;
|
|
481
520
|
|
|
482
|
-
declare const LIB_VERSION = "1.3.
|
|
521
|
+
declare const LIB_VERSION = "1.3.16";
|
|
483
522
|
|
|
484
|
-
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFMetadataEntry, HistoryPanel, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type WorkspaceTags, autoLabel, buildBlendInstruction, buildCompareInstruction, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, groupGenerationsToLabItems, hfDeleteProject, hfDownloadProject, hfListProjects, hfLoadImageAsBase64, hfLoadMetadata, hfLoadTags, hfSaveMetadata, hfSaveTags, hfUploadImage, hfUploadProjectForm, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, setHFToken, useKeyboardNavigation, useOnClickOutside };
|
|
523
|
+
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaApp, type FaAppProps, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFMetadataEntry, HistoryPanel, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type WorkspaceTags, autoLabel, buildBlendInstruction, buildCompareInstruction, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, groupGenerationsToLabItems, hfDeleteProject, hfDownloadProject, hfListProjects, hfLoadImageAsBase64, hfLoadMetadata, hfLoadTags, hfSaveMetadata, hfSaveTags, hfUploadImage, hfUploadProjectForm, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, setHFToken, useKeyboardNavigation, useOnClickOutside };
|
package/dist/index.js
CHANGED
|
@@ -504,6 +504,7 @@ __export(index_exports, {
|
|
|
504
504
|
AvatarArchitectApp: () => AvatarArchitectApp,
|
|
505
505
|
CollapsibleCard: () => CollapsibleCard,
|
|
506
506
|
CompactDropdown: () => CompactDropdown,
|
|
507
|
+
FaApp: () => FaApp,
|
|
507
508
|
FaToolsBadge: () => FaToolsBadge,
|
|
508
509
|
GLOBAL_STYLES: () => GLOBAL_STYLES,
|
|
509
510
|
HistoryPanel: () => HistoryPanel,
|
|
@@ -3450,7 +3451,7 @@ function TagManagerPanel({ workspaceTags, onTagCreate, onTagUpdate, onTagDelete,
|
|
|
3450
3451
|
|
|
3451
3452
|
// src/components/AvatarArchitectApp.tsx
|
|
3452
3453
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3453
|
-
function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }) {
|
|
3454
|
+
function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, initialHfToken, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }) {
|
|
3454
3455
|
(0, import_react21.useEffect)(() => {
|
|
3455
3456
|
const id = "flow-styles";
|
|
3456
3457
|
if (!document.getElementById(id)) {
|
|
@@ -3469,8 +3470,8 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
3469
3470
|
}
|
|
3470
3471
|
});
|
|
3471
3472
|
const [projectLoaded, setProjectLoaded] = (0, import_react21.useState)(false);
|
|
3472
|
-
const [hfToken, setHfToken] = (0, import_react21.useState)("");
|
|
3473
|
-
const [hfTokenInput, setHfTokenInput] = (0, import_react21.useState)("");
|
|
3473
|
+
const [hfToken, setHfToken] = (0, import_react21.useState)(initialHfToken || "");
|
|
3474
|
+
const [hfTokenInput, setHfTokenInput] = (0, import_react21.useState)(initialHfToken || "");
|
|
3474
3475
|
const [isLoadingFromHF, setIsLoadingFromHF] = (0, import_react21.useState)(false);
|
|
3475
3476
|
const [hfMetadata, setHfMetadata] = (0, import_react21.useState)([]);
|
|
3476
3477
|
const hfTagSaveTimer = (0, import_react21.useRef)(null);
|
|
@@ -4254,7 +4255,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4254
4255
|
!projectLoaded && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-white/20 text-[10px] text-center", children: "Baum, Bilder und Einstellungen wiederherstellen" })
|
|
4255
4256
|
] }),
|
|
4256
4257
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col items-center gap-2 w-full max-w-[280px]", children: [
|
|
4257
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex gap-2 w-full", children: [
|
|
4258
|
+
!initialHfToken && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex gap-2 w-full", children: [
|
|
4258
4259
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
4259
4260
|
"input",
|
|
4260
4261
|
{
|
|
@@ -4952,14 +4953,54 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4952
4953
|
] });
|
|
4953
4954
|
}
|
|
4954
4955
|
|
|
4956
|
+
// src/components/FaApp.tsx
|
|
4957
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
4958
|
+
function FaApp({
|
|
4959
|
+
onGenerateImage,
|
|
4960
|
+
onGeneratePrompt,
|
|
4961
|
+
onGenerateVideo: _onGenerateVideo,
|
|
4962
|
+
onDownload,
|
|
4963
|
+
onSelectMedia,
|
|
4964
|
+
onFlowSave: _onFlowSave,
|
|
4965
|
+
onFlowUpload: _onFlowUpload,
|
|
4966
|
+
onFlowMediaUpload: _onFlowMediaUpload,
|
|
4967
|
+
libToken,
|
|
4968
|
+
onFetchServerProjects,
|
|
4969
|
+
onServerSave,
|
|
4970
|
+
onServerLoad,
|
|
4971
|
+
onServerDelete,
|
|
4972
|
+
buildInfo
|
|
4973
|
+
}) {
|
|
4974
|
+
const wrappedPrompt = async (text, options) => {
|
|
4975
|
+
const result = await onGeneratePrompt(text, options);
|
|
4976
|
+
return result.text;
|
|
4977
|
+
};
|
|
4978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
4979
|
+
AvatarArchitectApp,
|
|
4980
|
+
{
|
|
4981
|
+
onGenerateImage,
|
|
4982
|
+
onGeneratePrompt: wrappedPrompt,
|
|
4983
|
+
onDownload,
|
|
4984
|
+
onSelectMedia,
|
|
4985
|
+
initialHfToken: libToken,
|
|
4986
|
+
onFetchServerProjects,
|
|
4987
|
+
onServerSave,
|
|
4988
|
+
onServerLoad,
|
|
4989
|
+
onServerDelete,
|
|
4990
|
+
buildInfo
|
|
4991
|
+
}
|
|
4992
|
+
);
|
|
4993
|
+
}
|
|
4994
|
+
|
|
4955
4995
|
// src/index.ts
|
|
4956
4996
|
init_hfStateService();
|
|
4957
|
-
var LIB_VERSION = "1.3.
|
|
4997
|
+
var LIB_VERSION = "1.3.16";
|
|
4958
4998
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4959
4999
|
0 && (module.exports = {
|
|
4960
5000
|
AvatarArchitectApp,
|
|
4961
5001
|
CollapsibleCard,
|
|
4962
5002
|
CompactDropdown,
|
|
5003
|
+
FaApp,
|
|
4963
5004
|
FaToolsBadge,
|
|
4964
5005
|
GLOBAL_STYLES,
|
|
4965
5006
|
HistoryPanel,
|
package/dist/index.mjs
CHANGED
|
@@ -2893,7 +2893,7 @@ function TagManagerPanel({ workspaceTags, onTagCreate, onTagUpdate, onTagDelete,
|
|
|
2893
2893
|
|
|
2894
2894
|
// src/components/AvatarArchitectApp.tsx
|
|
2895
2895
|
import { Fragment as Fragment9, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2896
|
-
function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }) {
|
|
2896
|
+
function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, initialHfToken, onFetchServerProjects, onServerSave, onServerLoad, onServerDelete }) {
|
|
2897
2897
|
useEffect5(() => {
|
|
2898
2898
|
const id = "flow-styles";
|
|
2899
2899
|
if (!document.getElementById(id)) {
|
|
@@ -2912,8 +2912,8 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
2912
2912
|
}
|
|
2913
2913
|
});
|
|
2914
2914
|
const [projectLoaded, setProjectLoaded] = useState14(false);
|
|
2915
|
-
const [hfToken, setHfToken] = useState14("");
|
|
2916
|
-
const [hfTokenInput, setHfTokenInput] = useState14("");
|
|
2915
|
+
const [hfToken, setHfToken] = useState14(initialHfToken || "");
|
|
2916
|
+
const [hfTokenInput, setHfTokenInput] = useState14(initialHfToken || "");
|
|
2917
2917
|
const [isLoadingFromHF, setIsLoadingFromHF] = useState14(false);
|
|
2918
2918
|
const [hfMetadata, setHfMetadata] = useState14([]);
|
|
2919
2919
|
const hfTagSaveTimer = useRef6(null);
|
|
@@ -3697,7 +3697,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
3697
3697
|
!projectLoaded && /* @__PURE__ */ jsx20("span", { className: "text-white/20 text-[10px] text-center", children: "Baum, Bilder und Einstellungen wiederherstellen" })
|
|
3698
3698
|
] }),
|
|
3699
3699
|
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col items-center gap-2 w-full max-w-[280px]", children: [
|
|
3700
|
-
/* @__PURE__ */ jsxs18("div", { className: "flex gap-2 w-full", children: [
|
|
3700
|
+
!initialHfToken && /* @__PURE__ */ jsxs18("div", { className: "flex gap-2 w-full", children: [
|
|
3701
3701
|
/* @__PURE__ */ jsx20(
|
|
3702
3702
|
"input",
|
|
3703
3703
|
{
|
|
@@ -4395,12 +4395,52 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4395
4395
|
] });
|
|
4396
4396
|
}
|
|
4397
4397
|
|
|
4398
|
+
// src/components/FaApp.tsx
|
|
4399
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
4400
|
+
function FaApp({
|
|
4401
|
+
onGenerateImage,
|
|
4402
|
+
onGeneratePrompt,
|
|
4403
|
+
onGenerateVideo: _onGenerateVideo,
|
|
4404
|
+
onDownload,
|
|
4405
|
+
onSelectMedia,
|
|
4406
|
+
onFlowSave: _onFlowSave,
|
|
4407
|
+
onFlowUpload: _onFlowUpload,
|
|
4408
|
+
onFlowMediaUpload: _onFlowMediaUpload,
|
|
4409
|
+
libToken,
|
|
4410
|
+
onFetchServerProjects,
|
|
4411
|
+
onServerSave,
|
|
4412
|
+
onServerLoad,
|
|
4413
|
+
onServerDelete,
|
|
4414
|
+
buildInfo
|
|
4415
|
+
}) {
|
|
4416
|
+
const wrappedPrompt = async (text, options) => {
|
|
4417
|
+
const result = await onGeneratePrompt(text, options);
|
|
4418
|
+
return result.text;
|
|
4419
|
+
};
|
|
4420
|
+
return /* @__PURE__ */ jsx21(
|
|
4421
|
+
AvatarArchitectApp,
|
|
4422
|
+
{
|
|
4423
|
+
onGenerateImage,
|
|
4424
|
+
onGeneratePrompt: wrappedPrompt,
|
|
4425
|
+
onDownload,
|
|
4426
|
+
onSelectMedia,
|
|
4427
|
+
initialHfToken: libToken,
|
|
4428
|
+
onFetchServerProjects,
|
|
4429
|
+
onServerSave,
|
|
4430
|
+
onServerLoad,
|
|
4431
|
+
onServerDelete,
|
|
4432
|
+
buildInfo
|
|
4433
|
+
}
|
|
4434
|
+
);
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4398
4437
|
// src/index.ts
|
|
4399
|
-
var LIB_VERSION = "1.3.
|
|
4438
|
+
var LIB_VERSION = "1.3.16";
|
|
4400
4439
|
export {
|
|
4401
4440
|
AvatarArchitectApp,
|
|
4402
4441
|
CollapsibleCard,
|
|
4403
4442
|
CompactDropdown,
|
|
4443
|
+
FaApp,
|
|
4404
4444
|
FaToolsBadge,
|
|
4405
4445
|
GLOBAL_STYLES,
|
|
4406
4446
|
HistoryPanel,
|