@rslsp1/fa-app-tools 2.0.28 → 2.0.29

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 CHANGED
@@ -638,6 +638,6 @@ declare function findTips(dag: Dag): number[];
638
638
  declare function findForks(dag: Dag): DagFork[];
639
639
  declare function topoSort(events: HFEvent[]): HFEvent[];
640
640
 
641
- declare const LIB_VERSION = "2.0.28";
641
+ declare const LIB_VERSION = "2.0.29";
642
642
 
643
643
  export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, type FaServerEnv, 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, faServerDelete, faServerGet, faServerPost, faServerPut, 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
@@ -638,6 +638,6 @@ declare function findTips(dag: Dag): number[];
638
638
  declare function findForks(dag: Dag): DagFork[];
639
639
  declare function topoSort(events: HFEvent[]): HFEvent[];
640
640
 
641
- declare const LIB_VERSION = "2.0.28";
641
+ declare const LIB_VERSION = "2.0.29";
642
642
 
643
643
  export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, type FaServerEnv, 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, faServerDelete, faServerGet, faServerPost, faServerPut, 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
@@ -4733,7 +4733,7 @@ function ServerTab({ hfToken }) {
4733
4733
  try {
4734
4734
  const [tagsRes, libRes] = await Promise.all([
4735
4735
  faServerGet(`/api/v2/tags?user_id=${user.id}`, env, token),
4736
- faServerGet(`/api/v2/library?user_id=${user.id}&context_id=${ctx.id}&limit=100`, env, token)
4736
+ faServerGet(`/api/v2/user-library?user_id=${user.id}&context_id=${ctx.id}&limit=100`, env, token)
4737
4737
  ]);
4738
4738
  setTags(Array.isArray(tagsRes) ? tagsRes : []);
4739
4739
  const raw = Array.isArray(libRes) ? libRes : libRes.data ?? [];
@@ -4841,7 +4841,7 @@ function ServerTab({ hfToken }) {
4841
4841
  libError && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-red-400 text-[11px] text-center py-8", children: libError }),
4842
4842
  !libLoading && !libError && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex-1 min-h-0 overflow-y-auto p-3 grid grid-cols-2 gap-2 content-start", children: [
4843
4843
  filteredItems.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "col-span-2 text-white/30 text-[11px] text-center py-8", children: "Keine Eintr\xE4ge." }),
4844
- filteredItems.map((item) => {
4844
+ filteredItems.map((item, i) => {
4845
4845
  const imgUrl = item.images?.[0]?.url;
4846
4846
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4847
4847
  "button",
@@ -4856,7 +4856,7 @@ function ServerTab({ hfToken }) {
4856
4856
  ] })
4857
4857
  ]
4858
4858
  },
4859
- item.ref_id
4859
+ item.item_id || item.ref_id || i
4860
4860
  );
4861
4861
  })
4862
4862
  ] })
@@ -6521,7 +6521,7 @@ function FaApp({
6521
6521
  // src/index.ts
6522
6522
  init_hfStateService();
6523
6523
  init_hfStateService();
6524
- var LIB_VERSION = "2.0.28";
6524
+ var LIB_VERSION = "2.0.29";
6525
6525
  // Annotate the CommonJS export names for ESM import in node:
6526
6526
  0 && (module.exports = {
6527
6527
  AvatarArchitectApp,
package/dist/index.mjs CHANGED
@@ -4052,7 +4052,7 @@ function ServerTab({ hfToken }) {
4052
4052
  try {
4053
4053
  const [tagsRes, libRes] = await Promise.all([
4054
4054
  faServerGet(`/api/v2/tags?user_id=${user.id}`, env, token),
4055
- faServerGet(`/api/v2/library?user_id=${user.id}&context_id=${ctx.id}&limit=100`, env, token)
4055
+ faServerGet(`/api/v2/user-library?user_id=${user.id}&context_id=${ctx.id}&limit=100`, env, token)
4056
4056
  ]);
4057
4057
  setTags(Array.isArray(tagsRes) ? tagsRes : []);
4058
4058
  const raw = Array.isArray(libRes) ? libRes : libRes.data ?? [];
@@ -4160,7 +4160,7 @@ function ServerTab({ hfToken }) {
4160
4160
  libError && /* @__PURE__ */ jsx22("p", { className: "text-red-400 text-[11px] text-center py-8", children: libError }),
4161
4161
  !libLoading && !libError && /* @__PURE__ */ jsxs20("div", { className: "flex-1 min-h-0 overflow-y-auto p-3 grid grid-cols-2 gap-2 content-start", children: [
4162
4162
  filteredItems.length === 0 && /* @__PURE__ */ jsx22("p", { className: "col-span-2 text-white/30 text-[11px] text-center py-8", children: "Keine Eintr\xE4ge." }),
4163
- filteredItems.map((item) => {
4163
+ filteredItems.map((item, i) => {
4164
4164
  const imgUrl = item.images?.[0]?.url;
4165
4165
  return /* @__PURE__ */ jsxs20(
4166
4166
  "button",
@@ -4175,7 +4175,7 @@ function ServerTab({ hfToken }) {
4175
4175
  ] })
4176
4176
  ]
4177
4177
  },
4178
- item.ref_id
4178
+ item.item_id || item.ref_id || i
4179
4179
  );
4180
4180
  })
4181
4181
  ] })
@@ -5838,7 +5838,7 @@ function FaApp({
5838
5838
  }
5839
5839
 
5840
5840
  // src/index.ts
5841
- var LIB_VERSION = "2.0.28";
5841
+ var LIB_VERSION = "2.0.29";
5842
5842
  export {
5843
5843
  AvatarArchitectApp,
5844
5844
  CollapsibleCard,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslsp1/fa-app-tools",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "description": "Shared tools and hooks for Fine Art flow apps",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",