@tangle-network/agent-app 0.42.5 → 0.42.7

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 (53) hide show
  1. package/dist/{DesignCanvas-AOIVN3SJ.js → DesignCanvas-GUTCY763.js} +2 -2
  2. package/dist/{DesignCanvasEditor-QQNAZRJQ.js → DesignCanvasEditor-ZO4V7H6A.js} +4 -4
  3. package/dist/{TimelineEditor-Z7C6BFP5.js → TimelineEditor-SNOAGBV6.js} +2 -2
  4. package/dist/brand/index.d.ts +35 -0
  5. package/dist/brand/index.js +89 -0
  6. package/dist/brand/index.js.map +1 -0
  7. package/dist/{chunk-YYYXGLLQ.js → chunk-6JYDS34Y.js} +184 -54
  8. package/dist/chunk-6JYDS34Y.js.map +1 -0
  9. package/dist/{chunk-FJUOBNIY.js → chunk-A5Z53E3A.js} +3 -3
  10. package/dist/{chunk-V5XZKHCL.js → chunk-AFQXKJAE.js} +132 -2
  11. package/dist/chunk-AFQXKJAE.js.map +1 -0
  12. package/dist/{chunk-S6WS2B32.js → chunk-EX3LD5G6.js} +322 -122
  13. package/dist/chunk-EX3LD5G6.js.map +1 -0
  14. package/dist/{chunk-DTS5TZRN.js → chunk-MFI4ZM7W.js} +2 -2
  15. package/dist/chunk-MFI4ZM7W.js.map +1 -0
  16. package/dist/{chunk-YEWTVDDT.js → chunk-OVUQNKLM.js} +379 -323
  17. package/dist/chunk-OVUQNKLM.js.map +1 -0
  18. package/dist/chunk-ZN5J47UX.js +1 -0
  19. package/dist/chunk-ZN5J47UX.js.map +1 -0
  20. package/dist/{command-stack-CkjelfK_.d.ts → command-stack-CcWi_2bN.d.ts} +15 -0
  21. package/dist/design-canvas-react/engine.d.ts +2 -2
  22. package/dist/design-canvas-react/engine.js +5 -6
  23. package/dist/design-canvas-react/index.d.ts +61 -8
  24. package/dist/design-canvas-react/index.js +10 -9
  25. package/dist/design-canvas-react/lazy.d.ts +2 -2
  26. package/dist/design-canvas-react/lazy.js +1 -1
  27. package/dist/{lazy-BHHqS8-j.d.ts → lazy-2XBVp1_e.d.ts} +6 -2
  28. package/dist/sequences-react/index.d.ts +94 -2
  29. package/dist/sequences-react/index.js +12 -2
  30. package/dist/sequences-react/index.js.map +1 -1
  31. package/dist/studio/index.d.ts +1 -1
  32. package/dist/studio/index.js +1 -1
  33. package/dist/studio-react/index.js +1 -1
  34. package/dist/teams/index.js +5 -5
  35. package/dist/teams/invitations-api.js +1 -1
  36. package/dist/teams/resend.d.ts +36 -0
  37. package/dist/teams/resend.js +38 -0
  38. package/dist/teams/resend.js.map +1 -0
  39. package/dist/web-react/index.d.ts +57 -6
  40. package/dist/web-react/index.js +361 -200
  41. package/dist/web-react/index.js.map +1 -1
  42. package/package.json +25 -10
  43. package/dist/chunk-DTS5TZRN.js.map +0 -1
  44. package/dist/chunk-S6WS2B32.js.map +0 -1
  45. package/dist/chunk-SQV7NUEM.js +0 -136
  46. package/dist/chunk-SQV7NUEM.js.map +0 -1
  47. package/dist/chunk-V5XZKHCL.js.map +0 -1
  48. package/dist/chunk-YEWTVDDT.js.map +0 -1
  49. package/dist/chunk-YYYXGLLQ.js.map +0 -1
  50. /package/dist/{DesignCanvas-AOIVN3SJ.js.map → DesignCanvas-GUTCY763.js.map} +0 -0
  51. /package/dist/{DesignCanvasEditor-QQNAZRJQ.js.map → DesignCanvasEditor-ZO4V7H6A.js.map} +0 -0
  52. /package/dist/{TimelineEditor-Z7C6BFP5.js.map → TimelineEditor-SNOAGBV6.js.map} +0 -0
  53. /package/dist/{chunk-FJUOBNIY.js.map → chunk-A5Z53E3A.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvas,
3
3
  DesignCanvas_default
4
- } from "./chunk-YEWTVDDT.js";
4
+ } from "./chunk-OVUQNKLM.js";
5
5
  import "./chunk-XWJXZ6WE.js";
6
6
  import "./chunk-M2EBUDZ7.js";
7
7
  import "./chunk-HFC4BTWJ.js";
@@ -9,4 +9,4 @@ export {
9
9
  DesignCanvas,
10
10
  DesignCanvas_default as default
11
11
  };
12
- //# sourceMappingURL=DesignCanvas-AOIVN3SJ.js.map
12
+ //# sourceMappingURL=DesignCanvas-GUTCY763.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DesignCanvasEditor
3
- } from "./chunk-YYYXGLLQ.js";
4
- import "./chunk-YEWTVDDT.js";
5
- import "./chunk-V5XZKHCL.js";
3
+ } from "./chunk-6JYDS34Y.js";
4
+ import "./chunk-OVUQNKLM.js";
5
+ import "./chunk-AFQXKJAE.js";
6
6
  import "./chunk-XWJXZ6WE.js";
7
7
  import "./chunk-LVD37K5V.js";
8
8
  import "./chunk-M2EBUDZ7.js";
@@ -10,4 +10,4 @@ import "./chunk-HFC4BTWJ.js";
10
10
  export {
11
11
  DesignCanvasEditor
12
12
  };
13
- //# sourceMappingURL=DesignCanvasEditor-QQNAZRJQ.js.map
13
+ //# sourceMappingURL=DesignCanvasEditor-ZO4V7H6A.js.map
@@ -2,11 +2,11 @@ import {
2
2
  SEQUENCE_MEDIA_DRAG_TYPE,
3
3
  TimelineEditor,
4
4
  TimelineEditor_default
5
- } from "./chunk-S6WS2B32.js";
5
+ } from "./chunk-EX3LD5G6.js";
6
6
  import "./chunk-ZYBWGSAZ.js";
7
7
  export {
8
8
  SEQUENCE_MEDIA_DRAG_TYPE,
9
9
  TimelineEditor,
10
10
  TimelineEditor_default as default
11
11
  };
12
- //# sourceMappingURL=TimelineEditor-Z7C6BFP5.js.map
12
+ //# sourceMappingURL=TimelineEditor-SNOAGBV6.js.map
@@ -0,0 +1,35 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface LogoProps {
5
+ /** Reserved for future lockups; only the default ('sandbox') exists today. */
6
+ variant?: 'sandbox';
7
+ size?: 'sm' | 'md' | 'lg' | 'xl';
8
+ className?: string;
9
+ /** Render the knot mark alone, without the wordmark. */
10
+ iconOnly?: boolean;
11
+ }
12
+ /** Icon-only Tangle knot, brand gradient, theme-independent. `size` is the
13
+ * rendered square in px. */
14
+ declare function TangleKnot({ size, className }: {
15
+ size?: number;
16
+ className?: string;
17
+ }): react.JSX.Element;
18
+ /** Full Tangle lockup (knot + wordmark) or, with `iconOnly`, just the knot. The
19
+ * wordmark paints with `currentColor` so it inherits the surrounding text color
20
+ * and adapts to light/dark automatically. */
21
+ declare function Logo({ variant, size, className, iconOnly }: LogoProps): react.JSX.Element;
22
+ interface BrandHeaderProps {
23
+ /** Product name rendered next to the knot. Omit for a mark-only header. */
24
+ title?: string;
25
+ /** Right-aligned slot for nav, actions, theme toggles. */
26
+ children?: ReactNode;
27
+ className?: string;
28
+ }
29
+ /**
30
+ * Shared app-shell header: icon-only Tangle knot + optional product title on
31
+ * the left, caller-supplied nav/actions on the right. Token-styled only.
32
+ */
33
+ declare function BrandHeader({ title, children, className }: BrandHeaderProps): react.JSX.Element;
34
+
35
+ export { BrandHeader, type BrandHeaderProps, Logo, type LogoProps, TangleKnot };
@@ -0,0 +1,89 @@
1
+ // src/brand/index.tsx
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ var KNOT_PATH_A = "M170.74 150.082C170.747 142.848 167.464 135.908 161.612 130.784C155.76 125.66 147.818 122.772 139.528 122.754L104.921 122.754C104.704 119.939 104.567 117.062 104.567 114.078C104.567 111.095 104.429 108.231 104.236 105.403L139.528 105.403C147.746 105.288 155.582 102.359 161.347 97.2467C167.112 92.135 170.343 85.2506 170.343 78.0787C170.343 70.9069 167.112 64.0225 161.347 58.9107C155.582 53.799 147.746 50.8696 139.528 50.7545L56.817 50.7545C48.5993 50.8696 40.7628 53.799 34.9981 58.9107C29.2334 64.0225 26.0025 70.9069 26.0025 78.0787C26.0025 85.2506 29.2334 92.135 34.9981 97.2467C40.7628 102.359 48.5993 105.288 56.817 105.403L89.3238 106.163C91.5854 106.163 91.7785 111.095 91.7785 114.078C91.7785 117.062 91.9156 119.925 92.1091 122.754L56.817 122.754C48.5993 122.869 40.7628 125.798 34.9981 130.91C29.2334 136.022 26.0025 142.906 26.0025 150.078C26.0025 157.25 29.2334 164.134 34.9981 169.246C40.7628 174.358 48.5993 177.287 56.817 177.402L139.528 177.402C147.816 177.384 155.757 174.497 161.609 169.374C167.461 164.252 170.745 157.314 170.74 150.082ZM157.952 78.0752C157.954 82.3443 156.016 86.4397 152.562 89.463C149.108 92.4863 144.42 94.1905 139.528 94.2017L102.881 94.2017C101.554 86.2073 99.0244 78.4005 95.3585 70.9829C93.7421 67.7691 91.6728 64.7438 89.1983 61.9769L139.528 61.9769C144.415 61.988 149.097 63.6884 152.55 66.7056C156.003 69.7228 157.946 73.811 157.952 78.0752ZM56.817 94.2017C51.9157 94.2017 47.2151 92.5027 43.7493 89.4784C40.2835 86.4541 38.3364 82.3522 38.3364 78.0752C38.3364 73.7982 40.2835 69.6964 43.7493 66.6721C47.2151 63.6478 51.9157 61.9487 56.817 61.9487L65.1139 61.9487C72.4433 61.9487 79.3856 67.0146 83.7074 75.5071C86.6658 81.491 88.77 87.7697 89.9724 94.2017L56.817 94.2017ZM38.3929 150.082C38.3907 145.812 40.3293 141.717 43.7834 138.694C47.2374 135.67 51.9248 133.966 56.817 133.955L93.4637 133.955C94.7912 141.949 97.3206 149.756 100.987 157.174C102.603 160.388 104.672 163.413 107.147 166.18L56.817 166.18C51.9304 166.169 47.2479 164.468 43.7948 161.451C40.3416 158.434 38.3993 154.346 38.3929 150.082ZM112.686 152.65C109.728 146.666 107.623 140.387 106.421 133.955L139.528 133.955C144.429 133.955 149.13 135.654 152.596 138.678C156.062 141.703 158.009 145.804 158.009 150.082C158.009 154.359 156.062 158.46 152.596 161.485C149.13 164.509 144.429 166.208 139.528 166.208L131.231 166.208C123.934 166.208 116.992 161.142 112.686 152.65Z";
4
+ var KNOT_PATH_B = "M170.74 78.0752C170.747 85.3089 167.463 92.2492 161.612 97.3727C155.76 102.496 147.817 105.384 139.527 105.403L104.92 105.403C104.702 108.217 104.565 111.095 104.565 114.078C104.565 117.062 104.428 119.925 104.235 122.754L139.527 122.754C147.745 122.869 155.582 125.798 161.347 130.91C167.112 136.022 170.342 142.906 170.342 150.078C170.342 157.25 167.112 164.134 161.347 169.246C155.582 174.358 147.745 177.287 139.527 177.402L56.8149 177.402C48.597 177.287 40.7604 174.358 34.9956 169.246C29.2307 164.134 25.9998 157.25 25.9998 150.078C25.9998 142.906 29.2307 136.022 34.9956 130.91C40.7604 125.798 48.597 122.869 56.8149 122.754L89.3223 121.994C91.5839 121.994 91.777 117.062 91.777 114.078C91.777 111.095 91.9141 108.231 92.1076 105.403L56.8149 105.403C48.597 105.288 40.7604 102.358 34.9956 97.2467C29.2307 92.135 25.9998 85.2506 25.9998 78.0787C25.9998 70.9069 29.2307 64.0225 34.9956 58.9107C40.7604 53.799 48.597 50.8695 56.8149 50.7545L139.527 50.7545C147.816 50.7731 155.757 53.6602 161.609 58.7822C167.46 63.9042 170.744 70.8428 170.74 78.0752ZM157.952 150.081C157.954 145.812 156.015 141.717 152.561 138.694C149.107 135.67 144.42 133.966 139.527 133.955L102.88 133.955C101.552 141.949 99.023 149.756 95.3571 157.174C93.7406 160.388 91.6712 163.413 89.1968 166.18L139.527 166.18C144.414 166.169 149.097 164.468 152.55 161.451C156.003 158.434 157.945 154.346 157.952 150.081ZM56.8149 133.955C51.9134 133.955 47.2127 135.654 43.7469 138.678C40.2811 141.703 38.334 145.804 38.334 150.081C38.334 154.358 40.2811 158.46 43.7469 161.485C47.2127 164.509 51.9134 166.208 56.8149 166.208L65.1119 166.208C72.4414 166.208 79.3838 161.142 83.7057 152.65C86.6642 146.666 88.7684 140.387 89.9708 133.955L56.8149 133.955ZM38.3904 78.0752C38.3883 82.3443 40.3269 86.4397 43.781 89.463C47.2351 92.4863 51.9226 94.1905 56.8149 94.2017L93.4622 94.2017C94.7898 86.2073 97.3192 78.4004 100.985 70.9829C102.602 67.7691 104.671 64.7438 107.145 61.9769L56.8149 61.9769C51.9282 61.988 47.2456 63.6884 43.7924 66.7056C40.3392 69.7228 38.3968 73.811 38.3904 78.0752ZM112.685 75.5071C109.726 81.491 107.622 87.7696 106.42 94.2017L139.527 94.2017C144.429 94.2017 149.13 92.5026 152.595 89.4783C156.061 86.454 158.008 82.3522 158.008 78.0752C158.008 73.7982 156.061 69.6964 152.595 66.6721C149.13 63.6478 144.429 61.9487 139.527 61.9487L131.23 61.9487C123.933 61.9487 116.991 67.0146 112.685 75.5071Z";
5
+ var WORDMARK_PATH = "M244.353 87.6978V150.578H228.965V87.6978H244.353ZM209.018 94.5367V80.2889H264.3V94.5367H209.018ZM283.224 151.813C278.221 151.813 274.232 150.452 271.255 147.729C268.342 144.943 266.886 141.238 266.886 136.615C266.886 132.246 268.374 128.763 271.35 126.167C274.39 123.571 278.759 122.051 284.458 121.608L297.756 120.563V119.803C297.756 118.22 297.44 116.922 296.807 115.909C296.173 114.832 295.255 114.04 294.052 113.534C292.912 112.964 291.456 112.679 289.683 112.679C286.58 112.679 284.205 113.249 282.559 114.389C280.976 115.529 280.184 117.175 280.184 119.328H268.026C268.026 115.719 268.944 112.584 270.78 109.924C272.617 107.265 275.213 105.207 278.569 103.75C281.989 102.294 285.947 101.566 290.443 101.566C295.065 101.566 298.96 102.389 302.126 104.035C305.355 105.682 307.793 108.088 309.44 111.254C311.149 114.42 312.004 118.283 312.004 122.843V150.578H299.086L298.136 144.309C297.376 146.462 295.572 148.267 292.722 149.723C289.936 151.117 286.77 151.813 283.224 151.813ZM288.353 140.985C291.139 140.985 293.419 140.32 295.192 138.99C296.965 137.597 297.851 135.539 297.851 132.816V130.251L290.443 130.916C287.276 131.17 285.028 131.708 283.699 132.531C282.432 133.291 281.799 134.431 281.799 135.951C281.799 137.66 282.337 138.927 283.414 139.75C284.49 140.573 286.136 140.985 288.353 140.985ZM342.823 150.578H328.195V103.085H341.968L342.918 108.025C344.374 105.998 346.369 104.415 348.902 103.275C351.498 102.136 354.348 101.566 357.451 101.566C363.086 101.566 367.456 103.307 370.559 106.79C373.725 110.209 375.308 115.022 375.308 121.228V150.578H360.68V124.742C360.68 121.766 359.92 119.391 358.4 117.618C356.881 115.782 354.854 114.864 352.321 114.864C349.408 114.864 347.097 115.75 345.387 117.523C343.678 119.233 342.823 121.576 342.823 124.552V150.578ZM389.123 125.977C389.123 121.164 390.073 116.922 391.973 113.249C393.936 109.576 396.627 106.695 400.047 104.605C403.529 102.516 407.487 101.471 411.92 101.471C415.656 101.471 418.854 102.231 421.513 103.75C424.236 105.27 426.104 107.265 427.117 109.734L425.693 110.684L426.833 103.085H440.605V147.539C440.605 153.175 439.561 158.019 437.471 162.072C435.381 166.188 432.405 169.322 428.542 171.475C424.679 173.692 420.025 174.8 414.579 174.8C407.297 174.8 401.376 172.837 396.817 168.911C392.258 165.048 389.63 159.76 388.933 153.048H403.751C403.878 155.708 404.891 157.766 406.79 159.222C408.69 160.742 411.255 161.502 414.484 161.502C418.03 161.502 420.817 160.52 422.843 158.557C424.933 156.594 425.978 153.935 425.978 150.578V140.51L427.592 141.745C426.579 144.214 424.616 146.209 421.703 147.729C418.79 149.249 415.434 150.008 411.635 150.008C407.202 150.008 403.276 148.995 399.857 146.969C396.5 144.943 393.872 142.125 391.973 138.515C390.073 134.906 389.123 130.726 389.123 125.977ZM403.846 125.597C403.846 127.877 404.321 129.903 405.271 131.676C406.221 133.386 407.519 134.747 409.165 135.761C410.812 136.774 412.711 137.28 414.864 137.28C417.081 137.28 419.012 136.805 420.658 135.856C422.368 134.842 423.666 133.481 424.553 131.771C425.503 129.998 425.978 127.94 425.978 125.597C425.978 123.254 425.503 121.259 424.553 119.613C423.666 117.903 422.368 116.573 420.658 115.624C419.012 114.674 417.049 114.199 414.769 114.199C412.616 114.199 410.717 114.674 409.07 115.624C407.424 116.573 406.126 117.903 405.176 119.613C404.289 121.323 403.846 123.317 403.846 125.597ZM471.933 150.578H457.305V78.9591H471.933V150.578ZM510.643 151.813C505.893 151.813 501.651 150.737 497.915 148.584C494.242 146.431 491.329 143.486 489.176 139.75C487.086 135.951 486.041 131.613 486.041 126.737C486.041 121.798 487.055 117.46 489.081 113.724C491.171 109.924 494.052 106.948 497.725 104.795C501.397 102.642 505.608 101.566 510.358 101.566C515.36 101.566 519.666 102.611 523.276 104.7C526.885 106.727 529.671 109.639 531.635 113.439C533.598 117.175 534.579 121.639 534.579 126.832V130.536L493.735 130.726L493.925 121.703H520.046C520.046 119.17 519.191 117.175 517.482 115.719C515.772 114.199 513.429 113.439 510.453 113.439C507.983 113.439 505.957 113.914 504.374 114.864C502.854 115.814 501.714 117.302 500.954 119.328C500.194 121.291 499.814 123.824 499.814 126.927C499.814 131.36 500.701 134.652 502.474 136.805C504.31 138.895 507.128 139.94 510.928 139.94C513.714 139.94 516.025 139.465 517.862 138.515C519.698 137.565 520.869 136.236 521.376 134.526H534.769C533.946 139.782 531.35 143.993 526.98 147.159C522.611 150.262 517.165 151.813 510.643 151.813Z";
6
+ function KnotDefs() {
7
+ return /* @__PURE__ */ jsxs("defs", { children: [
8
+ /* @__PURE__ */ jsxs("linearGradient", { id: "tangleKnotA", x1: "36.79", y1: "58.78", x2: "145.99", y2: "183.59", gradientUnits: "userSpaceOnUse", children: [
9
+ /* @__PURE__ */ jsx("stop", { stopColor: "#8E59FF" }),
10
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#6888F9" })
11
+ ] }),
12
+ /* @__PURE__ */ jsxs("linearGradient", { id: "tangleKnotB", x1: "36.78", y1: "169.38", x2: "145.99", y2: "44.57", gradientUnits: "userSpaceOnUse", children: [
13
+ /* @__PURE__ */ jsx("stop", { stopColor: "#8E59FF" }),
14
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#6888F9" })
15
+ ] }),
16
+ /* @__PURE__ */ jsx("clipPath", { id: "tangleKnotClip", children: /* @__PURE__ */ jsx("rect", { width: "126.648", height: "144.74", fill: "white", transform: "translate(170.74 50.7545) rotate(90)" }) })
17
+ ] });
18
+ }
19
+ function KnotPaths() {
20
+ return /* @__PURE__ */ jsxs("g", { clipPath: "url(#tangleKnotClip)", children: [
21
+ /* @__PURE__ */ jsx("path", { d: KNOT_PATH_A, fill: "url(#tangleKnotA)" }),
22
+ /* @__PURE__ */ jsx("path", { opacity: "0.8", d: KNOT_PATH_B, fill: "url(#tangleKnotB)" })
23
+ ] });
24
+ }
25
+ function TangleKnot({ size = 24, className }) {
26
+ return /* @__PURE__ */ jsxs(
27
+ "svg",
28
+ {
29
+ width: size,
30
+ height: size,
31
+ viewBox: "22 46 152 136",
32
+ fill: "none",
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ className,
35
+ role: "img",
36
+ "aria-label": "Tangle",
37
+ children: [
38
+ /* @__PURE__ */ jsx(KnotPaths, {}),
39
+ /* @__PURE__ */ jsx(KnotDefs, {})
40
+ ]
41
+ }
42
+ );
43
+ }
44
+ var WORDMARK_HEIGHTS = { sm: 16, md: 20, lg: 28, xl: 40 };
45
+ var LOCKUP_RATIO = 564 / 228;
46
+ function Logo({ variant = "sandbox", size = "md", className, iconOnly = false }) {
47
+ void variant;
48
+ const height = WORDMARK_HEIGHTS[size];
49
+ if (iconOnly) return /* @__PURE__ */ jsx(TangleKnot, { size: height, className });
50
+ return /* @__PURE__ */ jsxs(
51
+ "svg",
52
+ {
53
+ width: Math.round(height * LOCKUP_RATIO),
54
+ height,
55
+ viewBox: "0 0 564 228",
56
+ fill: "none",
57
+ xmlns: "http://www.w3.org/2000/svg",
58
+ className,
59
+ role: "img",
60
+ "aria-label": "Tangle",
61
+ children: [
62
+ /* @__PURE__ */ jsx(KnotPaths, {}),
63
+ /* @__PURE__ */ jsx("path", { d: WORDMARK_PATH, fill: "currentColor" }),
64
+ /* @__PURE__ */ jsx(KnotDefs, {})
65
+ ]
66
+ }
67
+ );
68
+ }
69
+ function BrandHeader({ title, children, className }) {
70
+ return /* @__PURE__ */ jsxs(
71
+ "header",
72
+ {
73
+ className: `flex shrink-0 items-center gap-3 border-b border-border bg-card px-4 py-2${className ? ` ${className}` : ""}`,
74
+ children: [
75
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
76
+ /* @__PURE__ */ jsx(TangleKnot, { size: 24, className: "shrink-0" }),
77
+ title ? /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: title }) : null
78
+ ] }),
79
+ children ? /* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-end gap-1", children }) : null
80
+ ]
81
+ }
82
+ );
83
+ }
84
+ export {
85
+ BrandHeader,
86
+ Logo,
87
+ TangleKnot
88
+ };
89
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/brand/index.tsx"],"sourcesContent":["/**\n * Tangle brand spine — the single place that supplies the Tangle logotype to\n * every agent-app React surface, so products stop fork-duplicating the mark.\n *\n * import { Logo, TangleKnot, BrandHeader } from '@tangle-network/agent-app/brand'\n *\n * The mark is vendored as dependency-free inline SVG — the SAME asset the\n * sandbox product ships (web/public/tangle-logo.svg) — rather than re-exported\n * from `@tangle-network/sandbox-ui`. sandbox-ui's logo drags a heavy, opt-in\n * peer chain (`@tangle-network/ui` → `@tangle-network/brand` → `@nanostores/*`)\n * that a dependency-light shell must not require to render its own logo; the SVG\n * IS the brand, so vendoring it keeps `/brand` importable anywhere (browser,\n * edge, tests, SSR) with no peers. The knot keeps the brand gradient; the\n * wordmark paints with `currentColor` so it adapts to light/dark automatically.\n *\n * `LogoProps` mirrors sandbox-ui's signature so `Logo` is a drop-in.\n */\nimport type { ReactNode } from 'react'\n\nexport interface LogoProps {\n /** Reserved for future lockups; only the default ('sandbox') exists today. */\n variant?: 'sandbox'\n size?: 'sm' | 'md' | 'lg' | 'xl'\n className?: string\n /** Render the knot mark alone, without the wordmark. */\n iconOnly?: boolean\n}\n\n// Absolute path data lifted verbatim from the canonical tangle-logo.svg (the\n// 564×228 lockup). The two knot paths and the wordmark share that coordinate\n// space, so the icon and the full lockup reuse the same geometry + gradients.\nconst KNOT_PATH_A =\n 'M170.74 150.082C170.747 142.848 167.464 135.908 161.612 130.784C155.76 125.66 147.818 122.772 139.528 122.754L104.921 122.754C104.704 119.939 104.567 117.062 104.567 114.078C104.567 111.095 104.429 108.231 104.236 105.403L139.528 105.403C147.746 105.288 155.582 102.359 161.347 97.2467C167.112 92.135 170.343 85.2506 170.343 78.0787C170.343 70.9069 167.112 64.0225 161.347 58.9107C155.582 53.799 147.746 50.8696 139.528 50.7545L56.817 50.7545C48.5993 50.8696 40.7628 53.799 34.9981 58.9107C29.2334 64.0225 26.0025 70.9069 26.0025 78.0787C26.0025 85.2506 29.2334 92.135 34.9981 97.2467C40.7628 102.359 48.5993 105.288 56.817 105.403L89.3238 106.163C91.5854 106.163 91.7785 111.095 91.7785 114.078C91.7785 117.062 91.9156 119.925 92.1091 122.754L56.817 122.754C48.5993 122.869 40.7628 125.798 34.9981 130.91C29.2334 136.022 26.0025 142.906 26.0025 150.078C26.0025 157.25 29.2334 164.134 34.9981 169.246C40.7628 174.358 48.5993 177.287 56.817 177.402L139.528 177.402C147.816 177.384 155.757 174.497 161.609 169.374C167.461 164.252 170.745 157.314 170.74 150.082ZM157.952 78.0752C157.954 82.3443 156.016 86.4397 152.562 89.463C149.108 92.4863 144.42 94.1905 139.528 94.2017L102.881 94.2017C101.554 86.2073 99.0244 78.4005 95.3585 70.9829C93.7421 67.7691 91.6728 64.7438 89.1983 61.9769L139.528 61.9769C144.415 61.988 149.097 63.6884 152.55 66.7056C156.003 69.7228 157.946 73.811 157.952 78.0752ZM56.817 94.2017C51.9157 94.2017 47.2151 92.5027 43.7493 89.4784C40.2835 86.4541 38.3364 82.3522 38.3364 78.0752C38.3364 73.7982 40.2835 69.6964 43.7493 66.6721C47.2151 63.6478 51.9157 61.9487 56.817 61.9487L65.1139 61.9487C72.4433 61.9487 79.3856 67.0146 83.7074 75.5071C86.6658 81.491 88.77 87.7697 89.9724 94.2017L56.817 94.2017ZM38.3929 150.082C38.3907 145.812 40.3293 141.717 43.7834 138.694C47.2374 135.67 51.9248 133.966 56.817 133.955L93.4637 133.955C94.7912 141.949 97.3206 149.756 100.987 157.174C102.603 160.388 104.672 163.413 107.147 166.18L56.817 166.18C51.9304 166.169 47.2479 164.468 43.7948 161.451C40.3416 158.434 38.3993 154.346 38.3929 150.082ZM112.686 152.65C109.728 146.666 107.623 140.387 106.421 133.955L139.528 133.955C144.429 133.955 149.13 135.654 152.596 138.678C156.062 141.703 158.009 145.804 158.009 150.082C158.009 154.359 156.062 158.46 152.596 161.485C149.13 164.509 144.429 166.208 139.528 166.208L131.231 166.208C123.934 166.208 116.992 161.142 112.686 152.65Z'\nconst KNOT_PATH_B =\n 'M170.74 78.0752C170.747 85.3089 167.463 92.2492 161.612 97.3727C155.76 102.496 147.817 105.384 139.527 105.403L104.92 105.403C104.702 108.217 104.565 111.095 104.565 114.078C104.565 117.062 104.428 119.925 104.235 122.754L139.527 122.754C147.745 122.869 155.582 125.798 161.347 130.91C167.112 136.022 170.342 142.906 170.342 150.078C170.342 157.25 167.112 164.134 161.347 169.246C155.582 174.358 147.745 177.287 139.527 177.402L56.8149 177.402C48.597 177.287 40.7604 174.358 34.9956 169.246C29.2307 164.134 25.9998 157.25 25.9998 150.078C25.9998 142.906 29.2307 136.022 34.9956 130.91C40.7604 125.798 48.597 122.869 56.8149 122.754L89.3223 121.994C91.5839 121.994 91.777 117.062 91.777 114.078C91.777 111.095 91.9141 108.231 92.1076 105.403L56.8149 105.403C48.597 105.288 40.7604 102.358 34.9956 97.2467C29.2307 92.135 25.9998 85.2506 25.9998 78.0787C25.9998 70.9069 29.2307 64.0225 34.9956 58.9107C40.7604 53.799 48.597 50.8695 56.8149 50.7545L139.527 50.7545C147.816 50.7731 155.757 53.6602 161.609 58.7822C167.46 63.9042 170.744 70.8428 170.74 78.0752ZM157.952 150.081C157.954 145.812 156.015 141.717 152.561 138.694C149.107 135.67 144.42 133.966 139.527 133.955L102.88 133.955C101.552 141.949 99.023 149.756 95.3571 157.174C93.7406 160.388 91.6712 163.413 89.1968 166.18L139.527 166.18C144.414 166.169 149.097 164.468 152.55 161.451C156.003 158.434 157.945 154.346 157.952 150.081ZM56.8149 133.955C51.9134 133.955 47.2127 135.654 43.7469 138.678C40.2811 141.703 38.334 145.804 38.334 150.081C38.334 154.358 40.2811 158.46 43.7469 161.485C47.2127 164.509 51.9134 166.208 56.8149 166.208L65.1119 166.208C72.4414 166.208 79.3838 161.142 83.7057 152.65C86.6642 146.666 88.7684 140.387 89.9708 133.955L56.8149 133.955ZM38.3904 78.0752C38.3883 82.3443 40.3269 86.4397 43.781 89.463C47.2351 92.4863 51.9226 94.1905 56.8149 94.2017L93.4622 94.2017C94.7898 86.2073 97.3192 78.4004 100.985 70.9829C102.602 67.7691 104.671 64.7438 107.145 61.9769L56.8149 61.9769C51.9282 61.988 47.2456 63.6884 43.7924 66.7056C40.3392 69.7228 38.3968 73.811 38.3904 78.0752ZM112.685 75.5071C109.726 81.491 107.622 87.7696 106.42 94.2017L139.527 94.2017C144.429 94.2017 149.13 92.5026 152.595 89.4783C156.061 86.454 158.008 82.3522 158.008 78.0752C158.008 73.7982 156.061 69.6964 152.595 66.6721C149.13 63.6478 144.429 61.9487 139.527 61.9487L131.23 61.9487C123.933 61.9487 116.991 67.0146 112.685 75.5071Z'\nconst WORDMARK_PATH =\n 'M244.353 87.6978V150.578H228.965V87.6978H244.353ZM209.018 94.5367V80.2889H264.3V94.5367H209.018ZM283.224 151.813C278.221 151.813 274.232 150.452 271.255 147.729C268.342 144.943 266.886 141.238 266.886 136.615C266.886 132.246 268.374 128.763 271.35 126.167C274.39 123.571 278.759 122.051 284.458 121.608L297.756 120.563V119.803C297.756 118.22 297.44 116.922 296.807 115.909C296.173 114.832 295.255 114.04 294.052 113.534C292.912 112.964 291.456 112.679 289.683 112.679C286.58 112.679 284.205 113.249 282.559 114.389C280.976 115.529 280.184 117.175 280.184 119.328H268.026C268.026 115.719 268.944 112.584 270.78 109.924C272.617 107.265 275.213 105.207 278.569 103.75C281.989 102.294 285.947 101.566 290.443 101.566C295.065 101.566 298.96 102.389 302.126 104.035C305.355 105.682 307.793 108.088 309.44 111.254C311.149 114.42 312.004 118.283 312.004 122.843V150.578H299.086L298.136 144.309C297.376 146.462 295.572 148.267 292.722 149.723C289.936 151.117 286.77 151.813 283.224 151.813ZM288.353 140.985C291.139 140.985 293.419 140.32 295.192 138.99C296.965 137.597 297.851 135.539 297.851 132.816V130.251L290.443 130.916C287.276 131.17 285.028 131.708 283.699 132.531C282.432 133.291 281.799 134.431 281.799 135.951C281.799 137.66 282.337 138.927 283.414 139.75C284.49 140.573 286.136 140.985 288.353 140.985ZM342.823 150.578H328.195V103.085H341.968L342.918 108.025C344.374 105.998 346.369 104.415 348.902 103.275C351.498 102.136 354.348 101.566 357.451 101.566C363.086 101.566 367.456 103.307 370.559 106.79C373.725 110.209 375.308 115.022 375.308 121.228V150.578H360.68V124.742C360.68 121.766 359.92 119.391 358.4 117.618C356.881 115.782 354.854 114.864 352.321 114.864C349.408 114.864 347.097 115.75 345.387 117.523C343.678 119.233 342.823 121.576 342.823 124.552V150.578ZM389.123 125.977C389.123 121.164 390.073 116.922 391.973 113.249C393.936 109.576 396.627 106.695 400.047 104.605C403.529 102.516 407.487 101.471 411.92 101.471C415.656 101.471 418.854 102.231 421.513 103.75C424.236 105.27 426.104 107.265 427.117 109.734L425.693 110.684L426.833 103.085H440.605V147.539C440.605 153.175 439.561 158.019 437.471 162.072C435.381 166.188 432.405 169.322 428.542 171.475C424.679 173.692 420.025 174.8 414.579 174.8C407.297 174.8 401.376 172.837 396.817 168.911C392.258 165.048 389.63 159.76 388.933 153.048H403.751C403.878 155.708 404.891 157.766 406.79 159.222C408.69 160.742 411.255 161.502 414.484 161.502C418.03 161.502 420.817 160.52 422.843 158.557C424.933 156.594 425.978 153.935 425.978 150.578V140.51L427.592 141.745C426.579 144.214 424.616 146.209 421.703 147.729C418.79 149.249 415.434 150.008 411.635 150.008C407.202 150.008 403.276 148.995 399.857 146.969C396.5 144.943 393.872 142.125 391.973 138.515C390.073 134.906 389.123 130.726 389.123 125.977ZM403.846 125.597C403.846 127.877 404.321 129.903 405.271 131.676C406.221 133.386 407.519 134.747 409.165 135.761C410.812 136.774 412.711 137.28 414.864 137.28C417.081 137.28 419.012 136.805 420.658 135.856C422.368 134.842 423.666 133.481 424.553 131.771C425.503 129.998 425.978 127.94 425.978 125.597C425.978 123.254 425.503 121.259 424.553 119.613C423.666 117.903 422.368 116.573 420.658 115.624C419.012 114.674 417.049 114.199 414.769 114.199C412.616 114.199 410.717 114.674 409.07 115.624C407.424 116.573 406.126 117.903 405.176 119.613C404.289 121.323 403.846 123.317 403.846 125.597ZM471.933 150.578H457.305V78.9591H471.933V150.578ZM510.643 151.813C505.893 151.813 501.651 150.737 497.915 148.584C494.242 146.431 491.329 143.486 489.176 139.75C487.086 135.951 486.041 131.613 486.041 126.737C486.041 121.798 487.055 117.46 489.081 113.724C491.171 109.924 494.052 106.948 497.725 104.795C501.397 102.642 505.608 101.566 510.358 101.566C515.36 101.566 519.666 102.611 523.276 104.7C526.885 106.727 529.671 109.639 531.635 113.439C533.598 117.175 534.579 121.639 534.579 126.832V130.536L493.735 130.726L493.925 121.703H520.046C520.046 119.17 519.191 117.175 517.482 115.719C515.772 114.199 513.429 113.439 510.453 113.439C507.983 113.439 505.957 113.914 504.374 114.864C502.854 115.814 501.714 117.302 500.954 119.328C500.194 121.291 499.814 123.824 499.814 126.927C499.814 131.36 500.701 134.652 502.474 136.805C504.31 138.895 507.128 139.94 510.928 139.94C513.714 139.94 516.025 139.465 517.862 138.515C519.698 137.565 520.869 136.236 521.376 134.526H534.769C533.946 139.782 531.35 143.993 526.98 147.159C522.611 150.262 517.165 151.813 510.643 151.813Z'\n\n/** Brand gradient + clip shared by the icon and the full lockup. Static ids are\n * fine: every instance defines the identical gradient, so a duplicate id in the\n * document resolves to an identical paint. */\nfunction KnotDefs() {\n return (\n <defs>\n <linearGradient id=\"tangleKnotA\" x1=\"36.79\" y1=\"58.78\" x2=\"145.99\" y2=\"183.59\" gradientUnits=\"userSpaceOnUse\">\n <stop stopColor=\"#8E59FF\" />\n <stop offset=\"1\" stopColor=\"#6888F9\" />\n </linearGradient>\n <linearGradient id=\"tangleKnotB\" x1=\"36.78\" y1=\"169.38\" x2=\"145.99\" y2=\"44.57\" gradientUnits=\"userSpaceOnUse\">\n <stop stopColor=\"#8E59FF\" />\n <stop offset=\"1\" stopColor=\"#6888F9\" />\n </linearGradient>\n <clipPath id=\"tangleKnotClip\">\n <rect width=\"126.648\" height=\"144.74\" fill=\"white\" transform=\"translate(170.74 50.7545) rotate(90)\" />\n </clipPath>\n </defs>\n )\n}\n\nfunction KnotPaths() {\n return (\n <g clipPath=\"url(#tangleKnotClip)\">\n <path d={KNOT_PATH_A} fill=\"url(#tangleKnotA)\" />\n <path opacity=\"0.8\" d={KNOT_PATH_B} fill=\"url(#tangleKnotB)\" />\n </g>\n )\n}\n\n/** Icon-only Tangle knot, brand gradient, theme-independent. `size` is the\n * rendered square in px. */\nexport function TangleKnot({ size = 24, className }: { size?: number; className?: string }) {\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"22 46 152 136\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={className}\n role=\"img\"\n aria-label=\"Tangle\"\n >\n <KnotPaths />\n <KnotDefs />\n </svg>\n )\n}\n\nconst WORDMARK_HEIGHTS: Record<NonNullable<LogoProps['size']>, number> = { sm: 16, md: 20, lg: 28, xl: 40 }\nconst LOCKUP_RATIO = 564 / 228\n\n/** Full Tangle lockup (knot + wordmark) or, with `iconOnly`, just the knot. The\n * wordmark paints with `currentColor` so it inherits the surrounding text color\n * and adapts to light/dark automatically. */\nexport function Logo({ variant = 'sandbox', size = 'md', className, iconOnly = false }: LogoProps) {\n void variant\n const height = WORDMARK_HEIGHTS[size]\n if (iconOnly) return <TangleKnot size={height} className={className} />\n return (\n <svg\n width={Math.round(height * LOCKUP_RATIO)}\n height={height}\n viewBox=\"0 0 564 228\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={className}\n role=\"img\"\n aria-label=\"Tangle\"\n >\n <KnotPaths />\n <path d={WORDMARK_PATH} fill=\"currentColor\" />\n <KnotDefs />\n </svg>\n )\n}\n\nexport interface BrandHeaderProps {\n /** Product name rendered next to the knot. Omit for a mark-only header. */\n title?: string\n /** Right-aligned slot for nav, actions, theme toggles. */\n children?: ReactNode\n className?: string\n}\n\n/**\n * Shared app-shell header: icon-only Tangle knot + optional product title on\n * the left, caller-supplied nav/actions on the right. Token-styled only.\n */\nexport function BrandHeader({ title, children, className }: BrandHeaderProps) {\n return (\n <header\n className={`flex shrink-0 items-center gap-3 border-b border-border bg-card px-4 py-2${\n className ? ` ${className}` : ''\n }`}\n >\n <span className=\"flex items-center gap-2\">\n <TangleKnot size={24} className=\"shrink-0\" />\n {title ? <span className=\"text-sm font-semibold text-foreground\">{title}</span> : null}\n </span>\n {children ? <div className=\"flex flex-1 items-center justify-end gap-1\">{children}</div> : null}\n </header>\n )\n}\n"],"mappings":";AA4CM,SACE,KADF;AAbN,IAAM,cACJ;AACF,IAAM,cACJ;AACF,IAAM,gBACJ;AAKF,SAAS,WAAW;AAClB,SACE,qBAAC,UACC;AAAA,yBAAC,oBAAe,IAAG,eAAc,IAAG,SAAQ,IAAG,SAAQ,IAAG,UAAS,IAAG,UAAS,eAAc,kBAC3F;AAAA,0BAAC,UAAK,WAAU,WAAU;AAAA,MAC1B,oBAAC,UAAK,QAAO,KAAI,WAAU,WAAU;AAAA,OACvC;AAAA,IACA,qBAAC,oBAAe,IAAG,eAAc,IAAG,SAAQ,IAAG,UAAS,IAAG,UAAS,IAAG,SAAQ,eAAc,kBAC3F;AAAA,0BAAC,UAAK,WAAU,WAAU;AAAA,MAC1B,oBAAC,UAAK,QAAO,KAAI,WAAU,WAAU;AAAA,OACvC;AAAA,IACA,oBAAC,cAAS,IAAG,kBACX,8BAAC,UAAK,OAAM,WAAU,QAAO,UAAS,MAAK,SAAQ,WAAU,wCAAuC,GACtG;AAAA,KACF;AAEJ;AAEA,SAAS,YAAY;AACnB,SACE,qBAAC,OAAE,UAAS,wBACV;AAAA,wBAAC,UAAK,GAAG,aAAa,MAAK,qBAAoB;AAAA,IAC/C,oBAAC,UAAK,SAAQ,OAAM,GAAG,aAAa,MAAK,qBAAoB;AAAA,KAC/D;AAEJ;AAIO,SAAS,WAAW,EAAE,OAAO,IAAI,UAAU,GAA0C;AAC1F,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MACN;AAAA,MACA,MAAK;AAAA,MACL,cAAW;AAAA,MAEX;AAAA,4BAAC,aAAU;AAAA,QACX,oBAAC,YAAS;AAAA;AAAA;AAAA,EACZ;AAEJ;AAEA,IAAM,mBAAmE,EAAE,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG;AAC1G,IAAM,eAAe,MAAM;AAKpB,SAAS,KAAK,EAAE,UAAU,WAAW,OAAO,MAAM,WAAW,WAAW,MAAM,GAAc;AACjG,OAAK;AACL,QAAM,SAAS,iBAAiB,IAAI;AACpC,MAAI,SAAU,QAAO,oBAAC,cAAW,MAAM,QAAQ,WAAsB;AACrE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,KAAK,MAAM,SAAS,YAAY;AAAA,MACvC;AAAA,MACA,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MACN;AAAA,MACA,MAAK;AAAA,MACL,cAAW;AAAA,MAEX;AAAA,4BAAC,aAAU;AAAA,QACX,oBAAC,UAAK,GAAG,eAAe,MAAK,gBAAe;AAAA,QAC5C,oBAAC,YAAS;AAAA;AAAA;AAAA,EACZ;AAEJ;AAcO,SAAS,YAAY,EAAE,OAAO,UAAU,UAAU,GAAqB;AAC5E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,4EACT,YAAY,IAAI,SAAS,KAAK,EAChC;AAAA,MAEA;AAAA,6BAAC,UAAK,WAAU,2BACd;AAAA,8BAAC,cAAW,MAAM,IAAI,WAAU,YAAW;AAAA,UAC1C,QAAQ,oBAAC,UAAK,WAAU,yCAAyC,iBAAM,IAAU;AAAA,WACpF;AAAA,QACC,WAAW,oBAAC,SAAI,WAAU,8CAA8C,UAAS,IAAS;AAAA;AAAA;AAAA,EAC7F;AAEJ;","names":[]}