@rslsp1/fa-app-tools 1.2.3 → 1.2.4
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 +15 -2
- package/dist/index.mjs +15 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -445,6 +445,6 @@ declare function buildLoopInstruction(rounds: Array<{
|
|
|
445
445
|
declare function autoLabel(index: number): string;
|
|
446
446
|
declare function buildReferenceImageMediaIds(images: SelectedLabImage[]): string[];
|
|
447
447
|
|
|
448
|
-
declare const LIB_VERSION = "1.2.
|
|
448
|
+
declare const LIB_VERSION = "1.2.4";
|
|
449
449
|
|
|
450
450
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, 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, groupGenerationsToLabItems, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, useKeyboardNavigation, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -445,6 +445,6 @@ declare function buildLoopInstruction(rounds: Array<{
|
|
|
445
445
|
declare function autoLabel(index: number): string;
|
|
446
446
|
declare function buildReferenceImageMediaIds(images: SelectedLabImage[]): string[];
|
|
447
447
|
|
|
448
|
-
declare const LIB_VERSION = "1.2.
|
|
448
|
+
declare const LIB_VERSION = "1.2.4";
|
|
449
449
|
|
|
450
450
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, 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, groupGenerationsToLabItems, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, useKeyboardNavigation, useOnClickOutside };
|
package/dist/index.js
CHANGED
|
@@ -746,6 +746,7 @@ var PRESET_URLS = [
|
|
|
746
746
|
var SetupPanel = ({ onWorkspaceImport, buildInfo }) => {
|
|
747
747
|
const workspaceInputRef = (0, import_react7.useRef)(null);
|
|
748
748
|
const [urlInput, setUrlInput] = (0, import_react7.useState)("");
|
|
749
|
+
const [tokenInput, setTokenInput] = (0, import_react7.useState)("");
|
|
749
750
|
const [testStatus, setTestStatus] = (0, import_react7.useState)("idle");
|
|
750
751
|
const [result, setResult] = (0, import_react7.useState)(null);
|
|
751
752
|
const [fetchError, setFetchError] = (0, import_react7.useState)(null);
|
|
@@ -756,7 +757,9 @@ var SetupPanel = ({ onWorkspaceImport, buildInfo }) => {
|
|
|
756
757
|
setFetchError(null);
|
|
757
758
|
const t0 = Date.now();
|
|
758
759
|
try {
|
|
759
|
-
const
|
|
760
|
+
const reqHeaders = {};
|
|
761
|
+
if (tokenInput.trim()) reqHeaders["Authorization"] = `Bearer ${tokenInput.trim()}`;
|
|
762
|
+
const res = await fetch(url.trim(), { headers: reqHeaders });
|
|
760
763
|
const durationMs = Date.now() - t0;
|
|
761
764
|
const contentType = res.headers.get("content-type") || "";
|
|
762
765
|
const headers = {};
|
|
@@ -816,6 +819,16 @@ var SetupPanel = ({ onWorkspaceImport, buildInfo }) => {
|
|
|
816
819
|
},
|
|
817
820
|
u
|
|
818
821
|
)) }),
|
|
822
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
823
|
+
"input",
|
|
824
|
+
{
|
|
825
|
+
value: tokenInput,
|
|
826
|
+
onChange: (e) => setTokenInput(e.target.value),
|
|
827
|
+
placeholder: "Bearer Token (optional)",
|
|
828
|
+
type: "password",
|
|
829
|
+
className: "w-full bg-white/5 border border-white/10 rounded-xl px-3 py-2 text-[11px] text-white/60 outline-none focus:border-white/20 placeholder:text-white/20 font-mono"
|
|
830
|
+
}
|
|
831
|
+
),
|
|
819
832
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-2", children: [
|
|
820
833
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
821
834
|
"input",
|
|
@@ -4243,7 +4256,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4243
4256
|
}
|
|
4244
4257
|
|
|
4245
4258
|
// src/index.ts
|
|
4246
|
-
var LIB_VERSION = "1.2.
|
|
4259
|
+
var LIB_VERSION = "1.2.4";
|
|
4247
4260
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4248
4261
|
0 && (module.exports = {
|
|
4249
4262
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -664,6 +664,7 @@ var PRESET_URLS = [
|
|
|
664
664
|
var SetupPanel = ({ onWorkspaceImport, buildInfo }) => {
|
|
665
665
|
const workspaceInputRef = useRef2(null);
|
|
666
666
|
const [urlInput, setUrlInput] = useState2("");
|
|
667
|
+
const [tokenInput, setTokenInput] = useState2("");
|
|
667
668
|
const [testStatus, setTestStatus] = useState2("idle");
|
|
668
669
|
const [result, setResult] = useState2(null);
|
|
669
670
|
const [fetchError, setFetchError] = useState2(null);
|
|
@@ -674,7 +675,9 @@ var SetupPanel = ({ onWorkspaceImport, buildInfo }) => {
|
|
|
674
675
|
setFetchError(null);
|
|
675
676
|
const t0 = Date.now();
|
|
676
677
|
try {
|
|
677
|
-
const
|
|
678
|
+
const reqHeaders = {};
|
|
679
|
+
if (tokenInput.trim()) reqHeaders["Authorization"] = `Bearer ${tokenInput.trim()}`;
|
|
680
|
+
const res = await fetch(url.trim(), { headers: reqHeaders });
|
|
678
681
|
const durationMs = Date.now() - t0;
|
|
679
682
|
const contentType = res.headers.get("content-type") || "";
|
|
680
683
|
const headers = {};
|
|
@@ -734,6 +737,16 @@ var SetupPanel = ({ onWorkspaceImport, buildInfo }) => {
|
|
|
734
737
|
},
|
|
735
738
|
u
|
|
736
739
|
)) }),
|
|
740
|
+
/* @__PURE__ */ jsx7(
|
|
741
|
+
"input",
|
|
742
|
+
{
|
|
743
|
+
value: tokenInput,
|
|
744
|
+
onChange: (e) => setTokenInput(e.target.value),
|
|
745
|
+
placeholder: "Bearer Token (optional)",
|
|
746
|
+
type: "password",
|
|
747
|
+
className: "w-full bg-white/5 border border-white/10 rounded-xl px-3 py-2 text-[11px] text-white/60 outline-none focus:border-white/20 placeholder:text-white/20 font-mono"
|
|
748
|
+
}
|
|
749
|
+
),
|
|
737
750
|
/* @__PURE__ */ jsxs5("div", { className: "flex gap-2", children: [
|
|
738
751
|
/* @__PURE__ */ jsx7(
|
|
739
752
|
"input",
|
|
@@ -4161,7 +4174,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4161
4174
|
}
|
|
4162
4175
|
|
|
4163
4176
|
// src/index.ts
|
|
4164
|
-
var LIB_VERSION = "1.2.
|
|
4177
|
+
var LIB_VERSION = "1.2.4";
|
|
4165
4178
|
export {
|
|
4166
4179
|
AvatarArchitectApp,
|
|
4167
4180
|
CollapsibleCard,
|