@octaviaflow/core 3.1.0-beta.68 → 3.1.0-beta.70

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.
Files changed (63) hide show
  1. package/dist/chunk-64R3BAO7.js +2755 -0
  2. package/dist/chunk-64R3BAO7.js.map +1 -0
  3. package/dist/chunk-7S3CSRRV.js +5700 -0
  4. package/dist/chunk-7S3CSRRV.js.map +1 -0
  5. package/dist/chunk-KCA7V5VN.js +5752 -0
  6. package/dist/chunk-KCA7V5VN.js.map +1 -0
  7. package/dist/chunk-KQKD4Z4H.js +1682 -0
  8. package/dist/chunk-KQKD4Z4H.js.map +1 -0
  9. package/dist/chunk-PWCRELX4.js +5700 -0
  10. package/dist/chunk-PWCRELX4.js.map +1 -0
  11. package/dist/chunk-U5T63SPL.js +5695 -0
  12. package/dist/chunk-U5T63SPL.js.map +1 -0
  13. package/dist/chunk-YIPBLM3G.js +2698 -0
  14. package/dist/chunk-YIPBLM3G.js.map +1 -0
  15. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  16. package/dist/index.cjs +5 -0
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.js +4462 -6007
  19. package/dist/index.js.map +1 -1
  20. package/dist/marketing/components/BackedBy/BackedBy.d.ts +17 -0
  21. package/dist/marketing/components/BackedBy/BackedBy.d.ts.map +1 -0
  22. package/dist/marketing/components/BetaAccessForm/BetaAccessForm.d.ts +36 -0
  23. package/dist/marketing/components/BetaAccessForm/BetaAccessForm.d.ts.map +1 -0
  24. package/dist/marketing/components/BlogGrid/BlogGrid.d.ts +32 -0
  25. package/dist/marketing/components/BlogGrid/BlogGrid.d.ts.map +1 -0
  26. package/dist/marketing/components/ContactForm/ContactForm.d.ts +31 -0
  27. package/dist/marketing/components/ContactForm/ContactForm.d.ts.map +1 -0
  28. package/dist/marketing/components/FaqSection/FaqSection.d.ts +13 -0
  29. package/dist/marketing/components/FaqSection/FaqSection.d.ts.map +1 -0
  30. package/dist/marketing/components/IntegrationsFinder/IntegrationsFinder.d.ts +32 -0
  31. package/dist/marketing/components/IntegrationsFinder/IntegrationsFinder.d.ts.map +1 -0
  32. package/dist/marketing/components/IntegrationsWall/IntegrationsWall.d.ts +5 -3
  33. package/dist/marketing/components/IntegrationsWall/IntegrationsWall.d.ts.map +1 -1
  34. package/dist/marketing/components/LiveConsole/LiveConsole.d.ts.map +1 -1
  35. package/dist/marketing/components/LogoMarquee/LogoMarquee.d.ts +18 -0
  36. package/dist/marketing/components/LogoMarquee/LogoMarquee.d.ts.map +1 -0
  37. package/dist/marketing/components/MarketingFooter/MarketingFooter.d.ts +6 -1
  38. package/dist/marketing/components/MarketingFooter/MarketingFooter.d.ts.map +1 -1
  39. package/dist/marketing/components/PageHero/PageHero.d.ts +12 -0
  40. package/dist/marketing/components/PageHero/PageHero.d.ts.map +1 -0
  41. package/dist/marketing/components/PricingTiers/PricingTiers.d.ts +29 -0
  42. package/dist/marketing/components/PricingTiers/PricingTiers.d.ts.map +1 -0
  43. package/dist/marketing/components/TestimonialStrip/TestimonialStrip.d.ts +24 -0
  44. package/dist/marketing/components/TestimonialStrip/TestimonialStrip.d.ts.map +1 -0
  45. package/dist/marketing/components/WorkflowShowcase/ShowcaseScene.d.ts +4 -2
  46. package/dist/marketing/components/WorkflowShowcase/ShowcaseScene.d.ts.map +1 -1
  47. package/dist/marketing/components/WorkflowShowcase/WorkflowShowcase.d.ts +9 -1
  48. package/dist/marketing/components/WorkflowShowcase/WorkflowShowcase.d.ts.map +1 -1
  49. package/dist/marketing/components/WorkflowShowcase/showcaseEngine.d.ts +3 -1
  50. package/dist/marketing/components/WorkflowShowcase/showcaseEngine.d.ts.map +1 -1
  51. package/dist/marketing/index.d.ts +10 -0
  52. package/dist/marketing/index.d.ts.map +1 -1
  53. package/dist/marketing.cjs +5568 -2972
  54. package/dist/marketing.cjs.map +1 -1
  55. package/dist/marketing.js +1650 -717
  56. package/dist/marketing.js.map +1 -1
  57. package/dist/styles.css +1 -1
  58. package/dist/workflow/components/HttpActionPanel/HttpActionPanel.d.ts.map +1 -1
  59. package/dist/workflow.cjs +51 -4
  60. package/dist/workflow.cjs.map +1 -1
  61. package/dist/workflow.js +51 -9
  62. package/dist/workflow.js.map +1 -1
  63. package/package.json +1 -1
package/dist/workflow.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import {
2
- Accordion,
3
2
  ActionNode,
4
3
  Badge,
5
4
  Banner,
@@ -26,7 +25,6 @@ import {
26
25
  ParallelNode,
27
26
  PasswordInput,
28
27
  SegmentedControl,
29
- Spinner,
30
28
  StickyNode,
31
29
  Switch,
32
30
  Tabs,
@@ -64,12 +62,14 @@ import {
64
62
  useSelection,
65
63
  useViewport,
66
64
  useViewportOrNull
67
- } from "./chunk-S4LE4BFQ.js";
65
+ } from "./chunk-7S3CSRRV.js";
68
66
  import {
67
+ Accordion,
69
68
  Button,
70
69
  Input,
71
- Select
72
- } from "./chunk-KZP2MNBO.js";
70
+ Select,
71
+ Spinner
72
+ } from "./chunk-64R3BAO7.js";
73
73
  import {
74
74
  cn
75
75
  } from "./chunk-ZAUUGK2Y.js";
@@ -1066,6 +1066,7 @@ function HttpActionPanel({
1066
1066
  const [curlError, setCurlError] = useState4();
1067
1067
  const [copiedCurl, setCopiedCurl] = useState4(false);
1068
1068
  const [copiedResult, setCopiedResult] = useState4(false);
1069
+ const [copiedSection, setCopiedSection] = useState4(null);
1069
1070
  const applyCurl = () => {
1070
1071
  const patch = parseCurl(curlText);
1071
1072
  if (!patch) {
@@ -1114,6 +1115,28 @@ function HttpActionPanel({
1114
1115
  } catch {
1115
1116
  }
1116
1117
  };
1118
+ const copySection = async (text, key) => {
1119
+ try {
1120
+ await navigator.clipboard?.writeText(text);
1121
+ setCopiedSection(key);
1122
+ setTimeout(() => setCopiedSection(null), 1600);
1123
+ } catch {
1124
+ }
1125
+ };
1126
+ const sectionCopyButton = (text, key, label) => /* @__PURE__ */ jsx2(
1127
+ Button,
1128
+ {
1129
+ variant: "ghost",
1130
+ size: "sm",
1131
+ "aria-label": copiedSection === key ? `${label} copied` : `Copy ${label}`,
1132
+ leftIcon: copiedSection === key ? /* @__PURE__ */ jsx2(CheckmarkIcon, { size: "sm" }) : /* @__PURE__ */ jsx2(CopyIcon, { size: "sm" }),
1133
+ className: cn(copiedSection === key && "ods-http-panel__copy-done"),
1134
+ onClick: (e) => {
1135
+ e.stopPropagation();
1136
+ void copySection(text, key);
1137
+ }
1138
+ }
1139
+ );
1117
1140
  const validateUrl = (nextUrl, nextBase, hasConnection) => {
1118
1141
  if (!nextUrl && !nextBase && !hasConnection) {
1119
1142
  setUrlError("URL is required");
@@ -1214,7 +1237,7 @@ function HttpActionPanel({
1214
1237
  KeyValueEditor,
1215
1238
  {
1216
1239
  pairs: toPairs(rows),
1217
- onChange: (pairs) => emit({ [key]: serializeKeyValues(pairs) }),
1240
+ onChange: (pairs) => emit({ [key]: pairs }),
1218
1241
  rowToggle: true,
1219
1242
  showDescription: true,
1220
1243
  keyPlaceholder,
@@ -1361,7 +1384,11 @@ function HttpActionPanel({
1361
1384
  KeyValueEditor,
1362
1385
  {
1363
1386
  pairs: toPairs(formData),
1364
- onChange: (pairs) => emit({ formData: serializeKeyValues(pairs), bodyType: "form-data" }),
1387
+ onChange: (pairs) => (
1388
+ // Raw rows — see the params/headers note; serializing here ate
1389
+ // the blank row that Add appends.
1390
+ emit({ formData: pairs, bodyType: "form-data" })
1391
+ ),
1365
1392
  rowToggle: true,
1366
1393
  keyPlaceholder: "field name",
1367
1394
  valuePlaceholder: "value or {{var}}",
@@ -2047,6 +2074,7 @@ function HttpActionPanel({
2047
2074
  }
2048
2075
  ),
2049
2076
  /* @__PURE__ */ jsx2("code", { className: "ods-http-panel__console-url", children: connectionId ? `${selectedConnection?.name ?? connectionId} \xB7 ${url || "\u2014"}` : fullUrl || "\u2014" }),
2077
+ sectionCopyButton(fullUrl || url, "url", "request URL"),
2050
2078
  preview.phase === "success" && /* @__PURE__ */ jsx2(
2051
2079
  Button,
2052
2080
  {
@@ -2104,7 +2132,14 @@ function HttpActionPanel({
2104
2132
  {
2105
2133
  id: "res-headers",
2106
2134
  label: "Response headers",
2107
- trailing: /* @__PURE__ */ jsx2(Badge, { size: "sm", variant: "neutral", children: Object.keys(preview.response.headers).length }),
2135
+ trailing: /* @__PURE__ */ jsxs2(Fragment2, { children: [
2136
+ sectionCopyButton(
2137
+ Object.entries(preview.response.headers).map(([k, v]) => `${k}: ${v}`).join("\n"),
2138
+ "res-headers",
2139
+ "response headers"
2140
+ ),
2141
+ /* @__PURE__ */ jsx2(Badge, { size: "sm", variant: "neutral", children: Object.keys(preview.response.headers).length })
2142
+ ] }),
2108
2143
  content: /* @__PURE__ */ jsx2("div", { className: "ods-http-panel__res-headers", children: Object.entries(preview.response.headers).map(([k, v]) => /* @__PURE__ */ jsxs2("div", { className: "ods-http-panel__res-header", children: [
2109
2144
  /* @__PURE__ */ jsx2("span", { className: "ods-http-panel__res-header-key", children: k }),
2110
2145
  /* @__PURE__ */ jsx2("span", { className: "ods-http-panel__res-header-val", children: v })
@@ -2113,7 +2148,14 @@ function HttpActionPanel({
2113
2148
  {
2114
2149
  id: "res-body",
2115
2150
  label: "Response body",
2116
- trailing: !preview.response.ok ? /* @__PURE__ */ jsx2(Badge, { size: "sm", variant: "error", children: "Error" }) : null,
2151
+ trailing: /* @__PURE__ */ jsxs2(Fragment2, { children: [
2152
+ sectionCopyButton(
2153
+ typeof preview.response.body === "object" ? JSON.stringify(preview.response.body, null, 2) : String(preview.response.bodyRaw ?? preview.response.body ?? ""),
2154
+ "res-body",
2155
+ "response body"
2156
+ ),
2157
+ !preview.response.ok && /* @__PURE__ */ jsx2(Badge, { size: "sm", variant: "error", children: "Error" })
2158
+ ] }),
2117
2159
  content: (
2118
2160
  // Size guard: the tree view renders recursively (no
2119
2161
  // virtualization) — very large bodies fall back to text.