@rslsp1/fa-app-tools 1.3.7 → 1.3.8
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -479,6 +479,6 @@ declare function hfLoadMetadata(token: string): Promise<any[]>;
|
|
|
479
479
|
declare function hfUploadImage(base64: string, id: string, token: string, mimeType?: string): Promise<void>;
|
|
480
480
|
declare function hfLoadImageAsBase64(id: string, token: string): Promise<string | null>;
|
|
481
481
|
|
|
482
|
-
declare const LIB_VERSION = "1.3.
|
|
482
|
+
declare const LIB_VERSION = "1.3.8";
|
|
483
483
|
|
|
484
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -479,6 +479,6 @@ declare function hfLoadMetadata(token: string): Promise<any[]>;
|
|
|
479
479
|
declare function hfUploadImage(base64: string, id: string, token: string, mimeType?: string): Promise<void>;
|
|
480
480
|
declare function hfLoadImageAsBase64(id: string, token: string): Promise<string | null>;
|
|
481
481
|
|
|
482
|
-
declare const LIB_VERSION = "1.3.
|
|
482
|
+
declare const LIB_VERSION = "1.3.8";
|
|
483
483
|
|
|
484
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 };
|
package/dist/index.js
CHANGED
|
@@ -4044,6 +4044,8 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4044
4044
|
status: "done"
|
|
4045
4045
|
}));
|
|
4046
4046
|
setGalleryItems(skeletons);
|
|
4047
|
+
setHistory(skeletons);
|
|
4048
|
+
if (skeletons.length > 0) setCurrentResult(skeletons[0]);
|
|
4047
4049
|
for (const entry of entries) {
|
|
4048
4050
|
hfLoadImageAsBase64(entry.id, hfToken).then((b64) => {
|
|
4049
4051
|
if (!b64) return;
|
|
@@ -4051,6 +4053,9 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4051
4053
|
setGalleryItems((prev) => prev.map(
|
|
4052
4054
|
(g) => g.id === entry.id ? { ...g, base64: prefix + b64 } : g
|
|
4053
4055
|
));
|
|
4056
|
+
setHistory((prev) => prev.map(
|
|
4057
|
+
(g) => g.id === entry.id ? { ...g, base64: prefix + b64 } : g
|
|
4058
|
+
));
|
|
4054
4059
|
}).catch(() => {
|
|
4055
4060
|
});
|
|
4056
4061
|
}
|
|
@@ -4860,7 +4865,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4860
4865
|
|
|
4861
4866
|
// src/index.ts
|
|
4862
4867
|
init_hfStateService();
|
|
4863
|
-
var LIB_VERSION = "1.3.
|
|
4868
|
+
var LIB_VERSION = "1.3.8";
|
|
4864
4869
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4865
4870
|
0 && (module.exports = {
|
|
4866
4871
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -3487,6 +3487,8 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
3487
3487
|
status: "done"
|
|
3488
3488
|
}));
|
|
3489
3489
|
setGalleryItems(skeletons);
|
|
3490
|
+
setHistory(skeletons);
|
|
3491
|
+
if (skeletons.length > 0) setCurrentResult(skeletons[0]);
|
|
3490
3492
|
for (const entry of entries) {
|
|
3491
3493
|
hfLoadImageAsBase64(entry.id, hfToken).then((b64) => {
|
|
3492
3494
|
if (!b64) return;
|
|
@@ -3494,6 +3496,9 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
3494
3496
|
setGalleryItems((prev) => prev.map(
|
|
3495
3497
|
(g) => g.id === entry.id ? { ...g, base64: prefix + b64 } : g
|
|
3496
3498
|
));
|
|
3499
|
+
setHistory((prev) => prev.map(
|
|
3500
|
+
(g) => g.id === entry.id ? { ...g, base64: prefix + b64 } : g
|
|
3501
|
+
));
|
|
3497
3502
|
}).catch(() => {
|
|
3498
3503
|
});
|
|
3499
3504
|
}
|
|
@@ -4302,7 +4307,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4302
4307
|
}
|
|
4303
4308
|
|
|
4304
4309
|
// src/index.ts
|
|
4305
|
-
var LIB_VERSION = "1.3.
|
|
4310
|
+
var LIB_VERSION = "1.3.8";
|
|
4306
4311
|
export {
|
|
4307
4312
|
AvatarArchitectApp,
|
|
4308
4313
|
CollapsibleCard,
|