@rslsp1/fa-app-tools 1.3.11 → 1.3.12
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 +7 -2
- package/dist/index.mjs +7 -2
- 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.12";
|
|
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.12";
|
|
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
|
@@ -4084,9 +4084,14 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4084
4084
|
for (const cat of allCategories) {
|
|
4085
4085
|
const localTags = local.by_category[cat] || [];
|
|
4086
4086
|
const remoteTags = remote.by_category[cat] || [];
|
|
4087
|
+
const remoteMap = new Map(remoteTags.map((t) => [t.value, t]));
|
|
4087
4088
|
const localValues = new Set(localTags.map((t) => t.value));
|
|
4089
|
+
const mergedLocal = localTags.map((t) => {
|
|
4090
|
+
const remote2 = remoteMap.get(t.value);
|
|
4091
|
+
return remote2?.is_deleted ? { ...t, is_deleted: true } : t;
|
|
4092
|
+
});
|
|
4088
4093
|
const onlyInRemote = remoteTags.filter((t) => !localValues.has(t.value));
|
|
4089
|
-
merged[cat] = [...
|
|
4094
|
+
merged[cat] = [...mergedLocal, ...onlyInRemote];
|
|
4090
4095
|
}
|
|
4091
4096
|
const all = Object.entries(merged).flatMap(([cat, tags]) => tags.map((t) => ({ ...t, category: cat })));
|
|
4092
4097
|
return { by_category: merged, all };
|
|
@@ -4903,7 +4908,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4903
4908
|
|
|
4904
4909
|
// src/index.ts
|
|
4905
4910
|
init_hfStateService();
|
|
4906
|
-
var LIB_VERSION = "1.3.
|
|
4911
|
+
var LIB_VERSION = "1.3.12";
|
|
4907
4912
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4908
4913
|
0 && (module.exports = {
|
|
4909
4914
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -3527,9 +3527,14 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
3527
3527
|
for (const cat of allCategories) {
|
|
3528
3528
|
const localTags = local.by_category[cat] || [];
|
|
3529
3529
|
const remoteTags = remote.by_category[cat] || [];
|
|
3530
|
+
const remoteMap = new Map(remoteTags.map((t) => [t.value, t]));
|
|
3530
3531
|
const localValues = new Set(localTags.map((t) => t.value));
|
|
3532
|
+
const mergedLocal = localTags.map((t) => {
|
|
3533
|
+
const remote2 = remoteMap.get(t.value);
|
|
3534
|
+
return remote2?.is_deleted ? { ...t, is_deleted: true } : t;
|
|
3535
|
+
});
|
|
3531
3536
|
const onlyInRemote = remoteTags.filter((t) => !localValues.has(t.value));
|
|
3532
|
-
merged[cat] = [...
|
|
3537
|
+
merged[cat] = [...mergedLocal, ...onlyInRemote];
|
|
3533
3538
|
}
|
|
3534
3539
|
const all = Object.entries(merged).flatMap(([cat, tags]) => tags.map((t) => ({ ...t, category: cat })));
|
|
3535
3540
|
return { by_category: merged, all };
|
|
@@ -4345,7 +4350,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4345
4350
|
}
|
|
4346
4351
|
|
|
4347
4352
|
// src/index.ts
|
|
4348
|
-
var LIB_VERSION = "1.3.
|
|
4353
|
+
var LIB_VERSION = "1.3.12";
|
|
4349
4354
|
export {
|
|
4350
4355
|
AvatarArchitectApp,
|
|
4351
4356
|
CollapsibleCard,
|