@burdenoff/fluidgrids-fe-sdk 2026.930.5 → 2026.930.6

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.
@@ -1,5 +1,5 @@
1
- export { WorkflowBuilder } from './chunk-35ECHQXZ.js';
2
- import './chunk-FGNN6MVA.js';
1
+ export { WorkflowBuilder } from './chunk-A3ERNBEE.js';
2
+ import './chunk-434R5LKW.js';
3
3
  import './chunk-XQP33UJR.js';
4
4
  import './chunk-P5PKRQAO.js';
5
5
  import './chunk-NH5YCY37.js';
@@ -16,5 +16,5 @@ import './chunk-3P4YQ7DO.js';
16
16
  import './chunk-LMO5ASOE.js';
17
17
  import './chunk-7YWBH2A5.js';
18
18
  import './chunk-5BDQNSP3.js';
19
- //# sourceMappingURL=WorkflowBuilder-ZJTQWDID.js.map
20
- //# sourceMappingURL=WorkflowBuilder-ZJTQWDID.js.map
19
+ //# sourceMappingURL=WorkflowBuilder-BY6N5AMU.js.map
20
+ //# sourceMappingURL=WorkflowBuilder-BY6N5AMU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-ZJTQWDID.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-BY6N5AMU.js"}
@@ -2310,6 +2310,16 @@ function SchemaConnectionForm({
2310
2310
  useEffect(() => {
2311
2311
  setValues(initialValuesFromSchema(schema));
2312
2312
  }, [schema]);
2313
+ const collectsOwnClientId = Boolean(
2314
+ schema && Object.prototype.hasOwnProperty.call(schema.properties, "clientId")
2315
+ );
2316
+ const oauthCallbackUrl = useMemo(() => getOAuthCallbackUrl(), []);
2317
+ const [redirectCopied, setRedirectCopied] = useState(false);
2318
+ useEffect(() => {
2319
+ if (!redirectCopied) return;
2320
+ const timer = window.setTimeout(() => setRedirectCopied(false), 2e3);
2321
+ return () => window.clearTimeout(timer);
2322
+ }, [redirectCopied]);
2313
2323
  const scopeSource = selectedMethod?.availableScopes ?? provider.availableScopes;
2314
2324
  const defaultScopes = selectedMethod?.defaultScopes ?? [];
2315
2325
  const canSubmit = connectionName.trim().length > 0 && !isSubmitting && // An unconfigured method cannot succeed; blocking here beats a connection
@@ -2451,6 +2461,36 @@ function SchemaConnectionForm({
2451
2461
  idPrefix: "fg-credential"
2452
2462
  }
2453
2463
  ),
2464
+ flow === "oauth2" && collectsOwnClientId && /* @__PURE__ */ jsxs("div", { className: "space-y-1.5 rounded-md border border-border-subtle bg-bg-surface px-3 py-2", children: [
2465
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
2466
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-text-primary", children: tr(
2467
+ "fluidgrids.connections.schemaForm.redirectUriLabel",
2468
+ "Redirect URL to register in your app"
2469
+ ) }),
2470
+ /* @__PURE__ */ jsxs(
2471
+ "button",
2472
+ {
2473
+ type: "button",
2474
+ onClick: () => {
2475
+ void navigator.clipboard?.writeText(oauthCallbackUrl).then(() => setRedirectCopied(true));
2476
+ },
2477
+ className: "inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",
2478
+ children: [
2479
+ /* @__PURE__ */ jsx(Icon, { icon: "mdi:content-copy", className: "h-3 w-3" }),
2480
+ redirectCopied ? tr("fluidgrids.connections.schemaForm.copied", "Copied") : tr("fluidgrids.connections.schemaForm.copy", "Copy")
2481
+ ]
2482
+ }
2483
+ )
2484
+ ] }),
2485
+ /* @__PURE__ */ jsx(
2486
+ "code",
2487
+ {
2488
+ "data-testid": "oauth-redirect-url",
2489
+ className: "block break-all text-xs text-text-secondary",
2490
+ children: oauthCallbackUrl
2491
+ }
2492
+ )
2493
+ ] }),
2454
2494
  flow === "oauth2" && /* @__PURE__ */ jsxs(Fragment, { children: [
2455
2495
  /* @__PURE__ */ jsx(
2456
2496
  ScopePicker,
@@ -26714,5 +26754,5 @@ var FlowBuilderPage = ({
26714
26754
  };
26715
26755
 
26716
26756
  export { Card2 as Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConnectionFormDialog, ConnectionSelector, EntityTagPicker, FLUIDGRIDS_ENTITY_TYPES, FlowBuilderPage, FluidGridsMark, FluidGridsProvider, ProviderPicker, SchemaConnectionForm, ScopePicker, TemplateCard, buildNodeCheck, buildRequiredNodeTypes, listCustomBlocks, mergeStickyNotes, refetchStoreNodes, registerCustomBlock, resolveUiSpec, stripSubmitActions, tagLabel, useAvailableTags, useConnection, useConnectionDialog, useConnections, useConnectionsByProvider, useCreateConnection, useCreateTag, useDraftEntityTags, useEntityTags, useFluidGridsContext, useImportWorkflowTemplate, useInitiateOAuth, useInstalledNodes, useNodeExecution, useProviderByKey, useProviderCatalog, useProviders, useReplaceEntityTags, useSearchTags, useTagEntity, useUntagEntity, useWorkflowTemplates };
26717
- //# sourceMappingURL=chunk-FGNN6MVA.js.map
26718
- //# sourceMappingURL=chunk-FGNN6MVA.js.map
26757
+ //# sourceMappingURL=chunk-434R5LKW.js.map
26758
+ //# sourceMappingURL=chunk-434R5LKW.js.map