@rslsp1/fa-app-tools 2.0.66 → 2.0.68
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 +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -645,6 +645,6 @@ declare function findTips(dag: Dag): number[];
|
|
|
645
645
|
declare function findForks(dag: Dag): DagFork[];
|
|
646
646
|
declare function topoSort(events: HFEvent[]): HFEvent[];
|
|
647
647
|
|
|
648
|
-
declare const LIB_VERSION = "2.0.
|
|
648
|
+
declare const LIB_VERSION = "2.0.68";
|
|
649
649
|
|
|
650
650
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFEvent, type HFEventVersion, type HFFileInfo$1 as HFFileInfo, type HFMetadataEntry, type HFStateMeta, type HFStateResult, type HFStateSnapshot, HistoryPanel, type ImageAddedPayload, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, type MetadataUpdatedPayload, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, ServerTab, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type TagUpsertedPayload, type WorkspaceTags, applyEvent, applyEvents, autoLabel, buildBlendInstruction, buildCompareInstruction, buildDag, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, findForks, findTips, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hfBatchArchive, hfBootstrapFromLegacy, hfDeleteProject, hfDownloadProject, hfListDir, hfListProjects, hfLoadImageAsBase64, hfUploadImage, hfUploadProjectForm, hfUploadSmallFile, importProjectFromZip, injectXMPMetadata, interpretSdkError, loadHFState, loadPendingEvents, parsePromptFile, parsePromptResponse, setHFToken, topoSort, tsFromEventPath, useHFState, useKeyboardNavigation, useOnClickOutside, writeHFEvent };
|
package/dist/index.d.ts
CHANGED
|
@@ -645,6 +645,6 @@ declare function findTips(dag: Dag): number[];
|
|
|
645
645
|
declare function findForks(dag: Dag): DagFork[];
|
|
646
646
|
declare function topoSort(events: HFEvent[]): HFEvent[];
|
|
647
647
|
|
|
648
|
-
declare const LIB_VERSION = "2.0.
|
|
648
|
+
declare const LIB_VERSION = "2.0.68";
|
|
649
649
|
|
|
650
650
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFEvent, type HFEventVersion, type HFFileInfo$1 as HFFileInfo, type HFMetadataEntry, type HFStateMeta, type HFStateResult, type HFStateSnapshot, HistoryPanel, type ImageAddedPayload, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, type MetadataUpdatedPayload, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, ServerTab, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type TagUpsertedPayload, type WorkspaceTags, applyEvent, applyEvents, autoLabel, buildBlendInstruction, buildCompareInstruction, buildDag, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, findForks, findTips, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hfBatchArchive, hfBootstrapFromLegacy, hfDeleteProject, hfDownloadProject, hfListDir, hfListProjects, hfLoadImageAsBase64, hfUploadImage, hfUploadProjectForm, hfUploadSmallFile, importProjectFromZip, injectXMPMetadata, interpretSdkError, loadHFState, loadPendingEvents, parsePromptFile, parsePromptResponse, setHFToken, topoSort, tsFromEventPath, useHFState, useKeyboardNavigation, useOnClickOutside, writeHFEvent };
|
package/dist/index.js
CHANGED
|
@@ -2979,8 +2979,8 @@ var MODEL_OPTIONS = [
|
|
|
2979
2979
|
var COUNT_OPTIONS = [
|
|
2980
2980
|
{ label: "1 Bild", value: "1" },
|
|
2981
2981
|
{ label: "2 Bilder", value: "2" },
|
|
2982
|
-
{ label: "
|
|
2983
|
-
{ label: "
|
|
2982
|
+
{ label: "3 Bilder", value: "3" },
|
|
2983
|
+
{ label: "4 Bilder", value: "4" }
|
|
2984
2984
|
];
|
|
2985
2985
|
var GenerationControls = ({
|
|
2986
2986
|
aspectRatio,
|
|
@@ -3037,7 +3037,7 @@ function useGenerationSettings() {
|
|
|
3037
3037
|
const [imageCount, setImageCount] = (0, import_react16.useState)(() => {
|
|
3038
3038
|
try {
|
|
3039
3039
|
const v = parseInt(localStorage.getItem("aa-image-count") || "", 10);
|
|
3040
|
-
return v >= 1 && v <=
|
|
3040
|
+
return v >= 1 && v <= 4 ? v : 4;
|
|
3041
3041
|
} catch {
|
|
3042
3042
|
return 4;
|
|
3043
3043
|
}
|
|
@@ -3057,7 +3057,7 @@ function useGenerationSettings() {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
};
|
|
3059
3059
|
const updateImageCount = (v) => {
|
|
3060
|
-
const n = Math.max(1, Math.min(
|
|
3060
|
+
const n = Math.max(1, Math.min(4, parseInt(v, 10) || 4));
|
|
3061
3061
|
setImageCount(n);
|
|
3062
3062
|
try {
|
|
3063
3063
|
localStorage.setItem("aa-image-count", String(n));
|
|
@@ -3111,7 +3111,7 @@ var LabRemix = ({ services, onResult }) => {
|
|
|
3111
3111
|
};
|
|
3112
3112
|
const handleGenerateBatch = async () => {
|
|
3113
3113
|
if (!generatedPrompt) return;
|
|
3114
|
-
const count = Math.max(1, Math.min(
|
|
3114
|
+
const count = Math.max(1, Math.min(4, imageCount));
|
|
3115
3115
|
const refIds = buildReferenceImageMediaIds(selected ? [selected] : []);
|
|
3116
3116
|
const options = {
|
|
3117
3117
|
prompt: generatedPrompt,
|
|
@@ -3322,7 +3322,7 @@ var LabBlend = ({ services, onResult }) => {
|
|
|
3322
3322
|
};
|
|
3323
3323
|
const handleGenerateBatch = async () => {
|
|
3324
3324
|
if (!generatedPrompt) return;
|
|
3325
|
-
const count = Math.max(1, Math.min(
|
|
3325
|
+
const count = Math.max(1, Math.min(4, imageCount));
|
|
3326
3326
|
const filled = selectedImages.filter(Boolean);
|
|
3327
3327
|
const refIds = buildReferenceImageMediaIds(filled);
|
|
3328
3328
|
const options = {
|
|
@@ -5281,13 +5281,13 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
5281
5281
|
const [imageCount, setImageCount] = (0, import_react26.useState)(() => {
|
|
5282
5282
|
try {
|
|
5283
5283
|
const v = parseInt(localStorage.getItem("aa-image-count") || "", 10);
|
|
5284
|
-
return v >= 1 && v <=
|
|
5284
|
+
return v >= 1 && v <= 4 ? v : 4;
|
|
5285
5285
|
} catch {
|
|
5286
5286
|
return 4;
|
|
5287
5287
|
}
|
|
5288
5288
|
});
|
|
5289
5289
|
const updateImageCount = (val) => {
|
|
5290
|
-
const n = Math.max(1, Math.min(
|
|
5290
|
+
const n = Math.max(1, Math.min(4, parseInt(val, 10) || 4));
|
|
5291
5291
|
setImageCount(n);
|
|
5292
5292
|
try {
|
|
5293
5293
|
localStorage.setItem("aa-image-count", String(n));
|
|
@@ -5297,8 +5297,8 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
5297
5297
|
const imageCountOptions = [
|
|
5298
5298
|
{ label: "1 Bild", value: "1" },
|
|
5299
5299
|
{ label: "2 Bilder", value: "2" },
|
|
5300
|
-
{ label: "
|
|
5301
|
-
{ label: "
|
|
5300
|
+
{ label: "3 Bilder", value: "3" },
|
|
5301
|
+
{ label: "4 Bilder", value: "4" }
|
|
5302
5302
|
];
|
|
5303
5303
|
const [isLeftCollapsed, setIsLeftCollapsed] = (0, import_react26.useState)(false);
|
|
5304
5304
|
const [isRightCollapsed, setIsRightCollapsed] = (0, import_react26.useState)(false);
|
|
@@ -6928,7 +6928,7 @@ function FaApp({
|
|
|
6928
6928
|
// src/index.ts
|
|
6929
6929
|
init_hfStateService();
|
|
6930
6930
|
init_hfStateService();
|
|
6931
|
-
var LIB_VERSION = "2.0.
|
|
6931
|
+
var LIB_VERSION = "2.0.68";
|
|
6932
6932
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6933
6933
|
0 && (module.exports = {
|
|
6934
6934
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -2290,8 +2290,8 @@ var MODEL_OPTIONS = [
|
|
|
2290
2290
|
var COUNT_OPTIONS = [
|
|
2291
2291
|
{ label: "1 Bild", value: "1" },
|
|
2292
2292
|
{ label: "2 Bilder", value: "2" },
|
|
2293
|
-
{ label: "
|
|
2294
|
-
{ label: "
|
|
2293
|
+
{ label: "3 Bilder", value: "3" },
|
|
2294
|
+
{ label: "4 Bilder", value: "4" }
|
|
2295
2295
|
];
|
|
2296
2296
|
var GenerationControls = ({
|
|
2297
2297
|
aspectRatio,
|
|
@@ -2348,7 +2348,7 @@ function useGenerationSettings() {
|
|
|
2348
2348
|
const [imageCount, setImageCount] = useState9(() => {
|
|
2349
2349
|
try {
|
|
2350
2350
|
const v = parseInt(localStorage.getItem("aa-image-count") || "", 10);
|
|
2351
|
-
return v >= 1 && v <=
|
|
2351
|
+
return v >= 1 && v <= 4 ? v : 4;
|
|
2352
2352
|
} catch {
|
|
2353
2353
|
return 4;
|
|
2354
2354
|
}
|
|
@@ -2368,7 +2368,7 @@ function useGenerationSettings() {
|
|
|
2368
2368
|
}
|
|
2369
2369
|
};
|
|
2370
2370
|
const updateImageCount = (v) => {
|
|
2371
|
-
const n = Math.max(1, Math.min(
|
|
2371
|
+
const n = Math.max(1, Math.min(4, parseInt(v, 10) || 4));
|
|
2372
2372
|
setImageCount(n);
|
|
2373
2373
|
try {
|
|
2374
2374
|
localStorage.setItem("aa-image-count", String(n));
|
|
@@ -2422,7 +2422,7 @@ var LabRemix = ({ services, onResult }) => {
|
|
|
2422
2422
|
};
|
|
2423
2423
|
const handleGenerateBatch = async () => {
|
|
2424
2424
|
if (!generatedPrompt) return;
|
|
2425
|
-
const count = Math.max(1, Math.min(
|
|
2425
|
+
const count = Math.max(1, Math.min(4, imageCount));
|
|
2426
2426
|
const refIds = buildReferenceImageMediaIds(selected ? [selected] : []);
|
|
2427
2427
|
const options = {
|
|
2428
2428
|
prompt: generatedPrompt,
|
|
@@ -2633,7 +2633,7 @@ var LabBlend = ({ services, onResult }) => {
|
|
|
2633
2633
|
};
|
|
2634
2634
|
const handleGenerateBatch = async () => {
|
|
2635
2635
|
if (!generatedPrompt) return;
|
|
2636
|
-
const count = Math.max(1, Math.min(
|
|
2636
|
+
const count = Math.max(1, Math.min(4, imageCount));
|
|
2637
2637
|
const filled = selectedImages.filter(Boolean);
|
|
2638
2638
|
const refIds = buildReferenceImageMediaIds(filled);
|
|
2639
2639
|
const options = {
|
|
@@ -4592,13 +4592,13 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4592
4592
|
const [imageCount, setImageCount] = useState19(() => {
|
|
4593
4593
|
try {
|
|
4594
4594
|
const v = parseInt(localStorage.getItem("aa-image-count") || "", 10);
|
|
4595
|
-
return v >= 1 && v <=
|
|
4595
|
+
return v >= 1 && v <= 4 ? v : 4;
|
|
4596
4596
|
} catch {
|
|
4597
4597
|
return 4;
|
|
4598
4598
|
}
|
|
4599
4599
|
});
|
|
4600
4600
|
const updateImageCount = (val) => {
|
|
4601
|
-
const n = Math.max(1, Math.min(
|
|
4601
|
+
const n = Math.max(1, Math.min(4, parseInt(val, 10) || 4));
|
|
4602
4602
|
setImageCount(n);
|
|
4603
4603
|
try {
|
|
4604
4604
|
localStorage.setItem("aa-image-count", String(n));
|
|
@@ -4608,8 +4608,8 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4608
4608
|
const imageCountOptions = [
|
|
4609
4609
|
{ label: "1 Bild", value: "1" },
|
|
4610
4610
|
{ label: "2 Bilder", value: "2" },
|
|
4611
|
-
{ label: "
|
|
4612
|
-
{ label: "
|
|
4611
|
+
{ label: "3 Bilder", value: "3" },
|
|
4612
|
+
{ label: "4 Bilder", value: "4" }
|
|
4613
4613
|
];
|
|
4614
4614
|
const [isLeftCollapsed, setIsLeftCollapsed] = useState19(false);
|
|
4615
4615
|
const [isRightCollapsed, setIsRightCollapsed] = useState19(false);
|
|
@@ -6237,7 +6237,7 @@ function FaApp({
|
|
|
6237
6237
|
}
|
|
6238
6238
|
|
|
6239
6239
|
// src/index.ts
|
|
6240
|
-
var LIB_VERSION = "2.0.
|
|
6240
|
+
var LIB_VERSION = "2.0.68";
|
|
6241
6241
|
export {
|
|
6242
6242
|
AvatarArchitectApp,
|
|
6243
6243
|
CollapsibleCard,
|