@nevuto/novi 0.0.0-stage → 0.3.49

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 (92) hide show
  1. package/COMPONENTS.md +579 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +32 -0
  4. package/README.md +35 -2
  5. package/dist/AiAssistant/AiAssistantActionCard.d.ts +39 -0
  6. package/dist/AiAssistant/AiAssistantActionCard.d.ts.map +1 -0
  7. package/dist/AiAssistant/AiAssistantAnswer.d.ts +54 -0
  8. package/dist/AiAssistant/AiAssistantAnswer.d.ts.map +1 -0
  9. package/dist/AiAssistant/AiAssistantBottom.d.ts +22 -0
  10. package/dist/AiAssistant/AiAssistantBottom.d.ts.map +1 -0
  11. package/dist/AiAssistant/AiAssistantHeader.d.ts +34 -0
  12. package/dist/AiAssistant/AiAssistantHeader.d.ts.map +1 -0
  13. package/dist/AiAssistant/AiAssistantImageGroup.d.ts +21 -0
  14. package/dist/AiAssistant/AiAssistantImageGroup.d.ts.map +1 -0
  15. package/dist/AiAssistant/AiAssistantInput.d.ts +70 -0
  16. package/dist/AiAssistant/AiAssistantInput.d.ts.map +1 -0
  17. package/dist/AiAssistant/AiAssistantLauncher.d.ts +41 -0
  18. package/dist/AiAssistant/AiAssistantLauncher.d.ts.map +1 -0
  19. package/dist/AiAssistant/AiAssistantLink.d.ts +27 -0
  20. package/dist/AiAssistant/AiAssistantLink.d.ts.map +1 -0
  21. package/dist/AiAssistant/AiAssistantMenu.d.ts +13 -0
  22. package/dist/AiAssistant/AiAssistantMenu.d.ts.map +1 -0
  23. package/dist/AiAssistant/AiAssistantModal.d.ts +39 -0
  24. package/dist/AiAssistant/AiAssistantModal.d.ts.map +1 -0
  25. package/dist/AiAssistant/AiAssistantQuestion.d.ts +34 -0
  26. package/dist/AiAssistant/AiAssistantQuestion.d.ts.map +1 -0
  27. package/dist/AiAssistant/AiAssistantQuestionCard.d.ts +46 -0
  28. package/dist/AiAssistant/AiAssistantQuestionCard.d.ts.map +1 -0
  29. package/dist/AiAssistant/AiAssistantReasoning.d.ts +34 -0
  30. package/dist/AiAssistant/AiAssistantReasoning.d.ts.map +1 -0
  31. package/dist/AiAssistant/AiAssistantRecommendation.d.ts +26 -0
  32. package/dist/AiAssistant/AiAssistantRecommendation.d.ts.map +1 -0
  33. package/dist/AiAssistant/AiAssistantReference.d.ts +42 -0
  34. package/dist/AiAssistant/AiAssistantReference.d.ts.map +1 -0
  35. package/dist/AiAssistant/AiAssistantReferencePanel.d.ts +28 -0
  36. package/dist/AiAssistant/AiAssistantReferencePanel.d.ts.map +1 -0
  37. package/dist/AiAssistant/AiAssistantSecretField.d.ts +21 -0
  38. package/dist/AiAssistant/AiAssistantSecretField.d.ts.map +1 -0
  39. package/dist/AiAssistant/AiAssistantSuggestions.d.ts +21 -0
  40. package/dist/AiAssistant/AiAssistantSuggestions.d.ts.map +1 -0
  41. package/dist/AiAssistant/AiAssistantTask.d.ts +21 -0
  42. package/dist/AiAssistant/AiAssistantTask.d.ts.map +1 -0
  43. package/dist/AiAssistant/AiAssistantThinking.d.ts +22 -0
  44. package/dist/AiAssistant/AiAssistantThinking.d.ts.map +1 -0
  45. package/dist/AiAssistant/AiAssistantTitle.d.ts +13 -0
  46. package/dist/AiAssistant/AiAssistantTitle.d.ts.map +1 -0
  47. package/dist/AiAssistant/AiAssistantToolCall.d.ts +30 -0
  48. package/dist/AiAssistant/AiAssistantToolCall.d.ts.map +1 -0
  49. package/dist/AiAssistant/AiAssistantToolCallGroup.d.ts +22 -0
  50. package/dist/AiAssistant/AiAssistantToolCallGroup.d.ts.map +1 -0
  51. package/dist/AiAssistant/index.d.ts +46 -0
  52. package/dist/AiAssistant/index.d.ts.map +1 -0
  53. package/dist/AiAssistant/useControlled.d.ts +14 -0
  54. package/dist/AiAssistant/useControlled.d.ts.map +1 -0
  55. package/dist/AiAssistant/usePaper.d.ts +9 -0
  56. package/dist/AiAssistant/usePaper.d.ts.map +1 -0
  57. package/dist/Novi/Novi.d.ts +55 -0
  58. package/dist/Novi/Novi.d.ts.map +1 -0
  59. package/dist/Novi/useResolvedColor.d.ts +3 -0
  60. package/dist/Novi/useResolvedColor.d.ts.map +1 -0
  61. package/dist/NoviTile/NoviTile.d.ts +22 -0
  62. package/dist/NoviTile/NoviTile.d.ts.map +1 -0
  63. package/dist/engine/decor.d.ts +115 -0
  64. package/dist/engine/decor.d.ts.map +1 -0
  65. package/dist/engine/engine.d.ts +210 -0
  66. package/dist/engine/engine.d.ts.map +1 -0
  67. package/dist/engine/expressions.d.ts +26 -0
  68. package/dist/engine/expressions.d.ts.map +1 -0
  69. package/dist/engine/eyefit.d.ts +35 -0
  70. package/dist/engine/eyefit.d.ts.map +1 -0
  71. package/dist/engine/face.d.ts +63 -0
  72. package/dist/engine/face.d.ts.map +1 -0
  73. package/dist/engine/frame.d.ts +26 -0
  74. package/dist/engine/frame.d.ts.map +1 -0
  75. package/dist/engine/gaze.d.ts +108 -0
  76. package/dist/engine/gaze.d.ts.map +1 -0
  77. package/dist/engine/math.d.ts +21 -0
  78. package/dist/engine/math.d.ts.map +1 -0
  79. package/dist/engine/profiles.d.ts +8 -0
  80. package/dist/engine/profiles.d.ts.map +1 -0
  81. package/dist/engine/shape.d.ts +79 -0
  82. package/dist/engine/shape.d.ts.map +1 -0
  83. package/dist/engine/skins.d.ts +44 -0
  84. package/dist/engine/skins.d.ts.map +1 -0
  85. package/dist/engine/states.d.ts +85 -0
  86. package/dist/engine/states.d.ts.map +1 -0
  87. package/dist/index.css +1 -0
  88. package/dist/index.d.ts +17 -0
  89. package/dist/index.d.ts.map +1 -0
  90. package/dist/index.js +1 -0
  91. package/dist/index.mjs +2940 -0
  92. package/package.json +48 -3
@@ -0,0 +1,42 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ export interface AiAssistantReferenceProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'prefix'> {
3
+ /** What was picked: a file, a folder, an element, a template, a person. */
4
+ children: ReactNode;
5
+ /** The target's own mark. Coloured interactive by default; `tone` or a coloured node overrides it. */
6
+ icon?: ReactNode;
7
+ /**
8
+ * An attached image, shown as a thumbnail in place of the icon. Image and file
9
+ * attachments are the same chip as a mention — one row, one way to remove them.
10
+ */
11
+ thumbnail?: string;
12
+ thumbnailAlt?: string;
13
+ /**
14
+ * Renders the chip as a remove button. Without it the chip is inert — the mark
15
+ * never turns into an ✕. Ignored by the `plain` variant, which is a record.
16
+ */
17
+ onRemove?: () => void;
18
+ /** Screen-reader name for the remove action; the visible label is `children`. */
19
+ removeLabel?: string;
20
+ /**
21
+ * `chip` is the composer's pill, with its outline and its remove. `plain` is the
22
+ * same reference once the message is sent: a filled pill, nothing to remove.
23
+ */
24
+ variant?: 'chip' | 'plain';
25
+ /** A muted lead-in before the mark, e.g. "Target:". */
26
+ prefix?: ReactNode;
27
+ /** `error` reddens the mark. */
28
+ tone?: 'default' | 'error';
29
+ /** The label is code — a selector, a commit — so it is set in the code face. */
30
+ mono?: boolean;
31
+ }
32
+ /**
33
+ * What a mention, a target picker or an attachment leaves behind — in the composer
34
+ * before the message is sent, and in the thread afterwards.
35
+ *
36
+ * In the composer, hovering swaps the target's mark for an ✕ in the same square
37
+ * rather than adding a second control: the chip is small, a separate remove button
38
+ * beside a truncated label would take the room the label needs, and there is only
39
+ * one thing to do to a chip once it is there.
40
+ */
41
+ export declare function AiAssistantReference({ children, icon, thumbnail, thumbnailAlt, onRemove, removeLabel, variant, prefix, tone, mono, className, onClick, ...props }: AiAssistantReferenceProps): import("react").JSX.Element;
42
+ //# sourceMappingURL=AiAssistantReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantReference.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5D,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACrD,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,QAAQ,CACtB;IACC,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAA;IACnB,sGAAsG;IACtG,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC1B,uDAAuD;IACvD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,gCAAgC;IAChC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B,gFAAgF;IAChF,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,YAAiB,EACjB,QAAQ,EACR,WAAsB,EACtB,OAAgB,EAChB,MAAM,EACN,IAAgB,EAChB,IAAY,EACZ,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,yBAAyB,+BAsE3B"}
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface AiAssistantReferencePanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
3
+ /** What is being referenced: "Storefront error", "3 answers", "4 secrets". */
4
+ title: ReactNode;
5
+ /** The reference itself: console output, answers, a list of keys. */
6
+ children: ReactNode;
7
+ icon?: ReactNode;
8
+ /** The muted lead-in on the collapsed pill. */
9
+ prefix?: ReactNode;
10
+ /** `error` reddens the mark, in both states. */
11
+ tone?: 'default' | 'error';
12
+ open?: boolean;
13
+ defaultOpen?: boolean;
14
+ onOpenChange?: (open: boolean) => void;
15
+ /** Where the body stops growing and starts scrolling. */
16
+ maxBodyHeight?: string;
17
+ expandLabel?: string;
18
+ collapseLabel?: string;
19
+ }
20
+ /**
21
+ * A reference with something inside it.
22
+ *
23
+ * Collapsed, it is the same pill as any other reference — that is the point: a
24
+ * console dump and a target element read as one row in a thread until the reader
25
+ * asks for one of them. Opened, the pill becomes the panel it always was.
26
+ */
27
+ export declare function AiAssistantReferencePanel({ title, children, icon, prefix, tone, open, defaultOpen, onOpenChange, maxBodyHeight, expandLabel, collapseLabel, className, ...props }: AiAssistantReferencePanelProps): import("react").JSX.Element;
28
+ //# sourceMappingURL=AiAssistantReferencePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantReferencePanel.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantReferencePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtD,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAC1D,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,GAAG,QAAQ,CACnB;IACC,8EAA8E;IAC9E,KAAK,EAAE,SAAS,CAAA;IAChB,qEAAqE;IACrE,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,gDAAgD;IAChD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,IAAgB,EAChB,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,aAAa,EACb,WAAoB,EACpB,aAA0B,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,8BAA8B,+BAiDhC"}
@@ -0,0 +1,21 @@
1
+ import { LabelHTMLAttributes, ReactNode } from 'react';
2
+ export interface AiAssistantSecretFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
3
+ /** What the value is, in the app's words: "Sentry DSN". */
4
+ label: ReactNode;
5
+ /** The key it is stored under, shown beside the label: `sentry_dsn`. */
6
+ name?: ReactNode;
7
+ /** The control — an `Input`, a `PasswordInput`, whatever the value needs. */
8
+ children: ReactNode;
9
+ /** Guidance under the label, before the control. */
10
+ description?: ReactNode;
11
+ }
12
+ /**
13
+ * One value the assistant is asking for, with the key it will be stored under
14
+ * beside its name — the label is what a person recognises, the key is what they
15
+ * will see again in their environment, and both matter when handing over a secret.
16
+ *
17
+ * The whole field is the `<label>`, so the control inside it is associated by
18
+ * nesting: the app brings its own input and never has to thread an id through.
19
+ */
20
+ export declare function AiAssistantSecretField({ label, name, children, description, className, ...props }: AiAssistantSecretFieldProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=AiAssistantSecretField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantSecretField.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantSecretField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3D,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IACxF,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,CAAA;IACnB,oDAAoD;IACpD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,2BAA2B,+BAW7B"}
@@ -0,0 +1,21 @@
1
+ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
+ export interface AiAssistantSuggestionsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
3
+ /** The suggestions, usually `AiAssistantSuggestion` pills. */
4
+ children: ReactNode;
5
+ /** A quiet lead-in above the row: "Ask next", "Related". */
6
+ label?: ReactNode;
7
+ }
8
+ /**
9
+ * What the assistant thinks you might ask next, under the answer it just gave.
10
+ *
11
+ * Pills that wrap rather than rows that stack: a follow-up is an offer, and an
12
+ * offer should not take the vertical room an answer takes.
13
+ */
14
+ export declare function AiAssistantSuggestions({ children, label, className, ...props }: AiAssistantSuggestionsProps): import("react").JSX.Element;
15
+ export interface AiAssistantSuggestionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
16
+ children: ReactNode;
17
+ icon?: ReactNode;
18
+ }
19
+ /** One follow-up. A button, never a link: it fills the composer, it does not navigate. */
20
+ export declare function AiAssistantSuggestion({ children, icon, className, type, ...props }: AiAssistantSuggestionProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=AiAssistantSuggestions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantSuggestions.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantSuggestions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG5E,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CACvD,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,8DAA8D;IAC9D,QAAQ,EAAE,SAAS,CAAA;IACnB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,2BAA2B,+BAO7B;AAED,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACzF,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACT,EAAE,0BAA0B,+BAO5B"}
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type AiAssistantTaskState = 'pending' | 'running' | 'done' | 'error';
3
+ export interface AiAssistantTaskProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** What the task is. Tense is the app's, as everywhere else. */
5
+ children: ReactNode;
6
+ /** The thing acted on, as a monospace chip. */
7
+ code?: ReactNode;
8
+ state?: AiAssistantTaskState;
9
+ /** Replaces the state mark. */
10
+ marker?: ReactNode;
11
+ /** Announced while the task is running. */
12
+ runningLabel?: string;
13
+ }
14
+ /**
15
+ * A line in a to-do list the assistant is working through.
16
+ *
17
+ * Only the mark and the strike carry the state — the wording never changes as a
18
+ * task completes, so the list reads as the same list throughout.
19
+ */
20
+ export declare function AiAssistantTask({ children, code, state, marker, runningLabel, className, ...props }: AiAssistantTaskProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=AiAssistantTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantTask.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantTask.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAE3E,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1E,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAA;IACnB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,oBAAoB,CAAA;IAC5B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,IAAI,EACJ,KAAiB,EACjB,MAAM,EACN,YAA4B,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAoBtB"}
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { ColorId, ShapeId } from '../engine/skins';
3
+ export interface AiAssistantThinkingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
+ /** What Novi is doing. Announced to screen readers, so keep it a real sentence. */
5
+ label?: ReactNode;
6
+ /** Novi's rendered size in px. */
7
+ size?: number;
8
+ shape?: ShapeId | string;
9
+ color?: ColorId | string;
10
+ /**
11
+ * What shows through Novi's eyes. Defaults to the page's own background token,
12
+ * so only pass this when the row sits on some other surface.
13
+ */
14
+ paper?: string;
15
+ }
16
+ /**
17
+ * Novi thinking. It is the mascot itself rather than a spinner, because the wait
18
+ * is the one moment the assistant has nothing to say and the avatar has to carry
19
+ * the whole conversation on its own.
20
+ */
21
+ export declare function AiAssistantThinking({ label, size, shape, color, paper, className, ...props }: AiAssistantThinkingProps): import("react").JSX.Element;
22
+ //# sourceMappingURL=AiAssistantThinking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantThinking.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantThinking.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAIvD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAChG,mFAAmF;IACnF,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAmB,EACnB,IAAS,EACT,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAgB1B"}
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface AiAssistantTitleProps extends HTMLAttributes<HTMLDivElement> {
3
+ children: ReactNode;
4
+ /** Right-hand slot: a timestamp, a count, a "clear" control. */
5
+ action?: ReactNode;
6
+ }
7
+ /**
8
+ * The quiet label that separates one stretch of the conversation from the next —
9
+ * a topic, a day, a session. Deliberately not a heading level: the modal already
10
+ * has one, and screen readers should not hear a second title for a separator.
11
+ */
12
+ export declare function AiAssistantTitle({ children, action, className, ...props }: AiAssistantTitleProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=AiAssistantTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantTitle.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtD,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,SAAS,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAOhG"}
@@ -0,0 +1,30 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type AiAssistantToolCallState = 'running' | 'done' | 'error';
3
+ export interface AiAssistantToolCallProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * What the tool is doing, or did. The wording is the app's: "Reading" and "Read"
6
+ * are the same row in two tenses, and tense is a translation matter, not a state
7
+ * this package can conjugate.
8
+ */
9
+ children: ReactNode;
10
+ /** The tool's own mark. This package ships no catalogue of tools or their icons. */
11
+ icon?: ReactNode;
12
+ /** The thing acted on: a path, a query, a commit. Rendered as a monospace chip. */
13
+ code?: ReactNode;
14
+ /** `error` reddens the row and replaces the mark; `running` and `done` differ only in the app's wording. */
15
+ state?: AiAssistantToolCallState;
16
+ /** Nested content — a task list, a summary — indented under the row. */
17
+ details?: ReactNode;
18
+ /** Replaces the mark shown in the error state. */
19
+ errorIcon?: ReactNode;
20
+ }
21
+ /**
22
+ * One line of what the assistant did.
23
+ *
24
+ * Deliberately empty of tool knowledge: no map of tool names to icons, no tense
25
+ * table, no per-tool layout. The app knows its own tools and hands over an icon, a
26
+ * label and a chip; this renders the line and its three states. A new tool on the
27
+ * backend needs no release here.
28
+ */
29
+ export declare function AiAssistantToolCall({ children, icon, code, state, details, errorIcon, className, ...props }: AiAssistantToolCallProps): import("react").JSX.Element;
30
+ //# sourceMappingURL=AiAssistantToolCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantToolCall.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantToolCall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAEnE,MAAM,WAAW,wBAAyB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9E;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB,oFAAoF;IACpF,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mFAAmF;IACnF,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,4GAA4G;IAC5G,KAAK,CAAC,EAAE,wBAAwB,CAAA;IAChC,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAe1B"}
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface AiAssistantToolCallGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
3
+ /**
4
+ * The summary the fold stands for — "4 edits made". Counting and wording are the
5
+ * app's: it knows what it grouped and in which language it says so.
6
+ */
7
+ title: ReactNode;
8
+ /** The calls themselves, usually `AiAssistantToolCall` rows. */
9
+ children: ReactNode;
10
+ open?: boolean;
11
+ defaultOpen?: boolean;
12
+ onOpenChange?: (open: boolean) => void;
13
+ }
14
+ /**
15
+ * A run of tool calls folded into one line.
16
+ *
17
+ * A turn that touched four files is four lines of noise until something goes wrong
18
+ * in one of them, so the group states what happened and keeps the calls one click
19
+ * away — with the same rule down the side that nests a to-do list under its row.
20
+ */
21
+ export declare function AiAssistantToolCallGroup({ title, children, open, defaultOpen, onOpenChange, className, ...props }: AiAssistantToolCallGroupProps): import("react").JSX.Element;
22
+ //# sourceMappingURL=AiAssistantToolCallGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiAssistantToolCallGroup.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantToolCallGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlE,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CACzD,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,CACR;IACC;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,6BAA6B,+BA0B/B"}
@@ -0,0 +1,46 @@
1
+ export { AiAssistantModal } from './AiAssistantModal';
2
+ export type { AiAssistantModalProps } from './AiAssistantModal';
3
+ export { AiAssistantHeader } from './AiAssistantHeader';
4
+ export type { AiAssistantHeaderProps } from './AiAssistantHeader';
5
+ export { AiAssistantTitle } from './AiAssistantTitle';
6
+ export type { AiAssistantTitleProps } from './AiAssistantTitle';
7
+ export { AiAssistantBottom } from './AiAssistantBottom';
8
+ export type { AiAssistantBottomProps } from './AiAssistantBottom';
9
+ export { AiAssistantLink } from './AiAssistantLink';
10
+ export type { AiAssistantLinkProps } from './AiAssistantLink';
11
+ export { AiAssistantInput } from './AiAssistantInput';
12
+ export type { AiAssistantInputProps } from './AiAssistantInput';
13
+ export { AiAssistantLauncher } from './AiAssistantLauncher';
14
+ export type { AiAssistantLauncherProps } from './AiAssistantLauncher';
15
+ export { AiAssistantImageGroup } from './AiAssistantImageGroup';
16
+ export type { AiAssistantImageGroupProps, AiAssistantImage } from './AiAssistantImageGroup';
17
+ export { AiAssistantReferencePanel } from './AiAssistantReferencePanel';
18
+ export type { AiAssistantReferencePanelProps } from './AiAssistantReferencePanel';
19
+ export { AiAssistantActionCard } from './AiAssistantActionCard';
20
+ export type { AiAssistantActionCardProps } from './AiAssistantActionCard';
21
+ export { AiAssistantQuestionCard } from './AiAssistantQuestionCard';
22
+ export type { AiAssistantQuestionCardProps } from './AiAssistantQuestionCard';
23
+ export { AiAssistantSecretField } from './AiAssistantSecretField';
24
+ export type { AiAssistantSecretFieldProps } from './AiAssistantSecretField';
25
+ export { AiAssistantReference } from './AiAssistantReference';
26
+ export type { AiAssistantReferenceProps } from './AiAssistantReference';
27
+ export { AiAssistantQuestion } from './AiAssistantQuestion';
28
+ export type { AiAssistantQuestionProps, AiAssistantQuestionImage } from './AiAssistantQuestion';
29
+ export { AiAssistantAnswer } from './AiAssistantAnswer';
30
+ export type { AiAssistantAnswerProps, AiAssistantSource, AiAssistantFeedback, } from './AiAssistantAnswer';
31
+ export { AiAssistantSuggestions, AiAssistantSuggestion } from './AiAssistantSuggestions';
32
+ export type { AiAssistantSuggestionsProps, AiAssistantSuggestionProps, } from './AiAssistantSuggestions';
33
+ export { AiAssistantRecommendation } from './AiAssistantRecommendation';
34
+ export type { AiAssistantRecommendationProps } from './AiAssistantRecommendation';
35
+ export { AiAssistantToolCall } from './AiAssistantToolCall';
36
+ export type { AiAssistantToolCallProps, AiAssistantToolCallState } from './AiAssistantToolCall';
37
+ export { AiAssistantToolCallGroup } from './AiAssistantToolCallGroup';
38
+ export type { AiAssistantToolCallGroupProps } from './AiAssistantToolCallGroup';
39
+ export { AiAssistantTask } from './AiAssistantTask';
40
+ export type { AiAssistantTaskProps, AiAssistantTaskState } from './AiAssistantTask';
41
+ export { AiAssistantReasoning } from './AiAssistantReasoning';
42
+ export type { AiAssistantReasoningProps } from './AiAssistantReasoning';
43
+ export { AiAssistantThinking } from './AiAssistantThinking';
44
+ export type { AiAssistantThinkingProps } from './AiAssistantThinking';
45
+ export { usePaper } from './usePaper';
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The controlled/uncontrolled pattern, once.
3
+ *
4
+ * Four of these components hold a fold or a vote that the app may or may not want
5
+ * to own, and each was re-implementing the same six lines — with the same chance of
6
+ * getting one of them subtly wrong. `controlled` winning whenever it is not
7
+ * `undefined` is the rule the whole library follows.
8
+ *
9
+ * Which mode a value is in is latched on the first render: React warns about a
10
+ * field that switches, and silently swapping modes mid-life is how a fold starts
11
+ * ignoring its own handler.
12
+ */
13
+ export declare function useControlled<T>(controlled: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, (next: T) => void];
14
+ //# sourceMappingURL=useControlled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useControlled.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/useControlled.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,UAAU,EAAE,CAAC,GAAG,SAAS,EACzB,YAAY,EAAE,CAAC,EACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAC5B,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAcxB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Novi's eyes are holes punched through its body, so it has to be told what shows
3
+ * through them. Hard-coding white leaves two bright slots on a dark theme, so this
4
+ * reads the page's own background token and re-reads it when the theme flips.
5
+ *
6
+ * Pass `override` when the avatar sits on a surface that is not the page ground.
7
+ */
8
+ export declare function usePaper(override?: string, fallback?: string): string;
9
+ //# sourceMappingURL=usePaper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaper.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/usePaper.ts"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,SAAqB,GAAG,MAAM,CAqBjF"}
@@ -0,0 +1,55 @@
1
+ import { ExpressionId } from '../engine/expressions';
2
+ import { GazeScript } from '../engine/gaze';
3
+ import { ColorId, ShapeId } from '../engine/skins';
4
+ import { StateId } from '../engine/states';
5
+ export interface NoviProps {
6
+ /** rendered width and height in px */
7
+ size?: number;
8
+ /** body shape id from the catalogue; an unknown value falls back to the circle */
9
+ shape?: ShapeId | string;
10
+ /** colour id from the catalogue */
11
+ color?: ColorId | string;
12
+ /** resting expression id */
13
+ expression?: ExpressionId | string;
14
+ /**
15
+ * The page's background colour. The eyes are holes in the body, so this is what
16
+ * shows through them, and it is also what the burst's particles fade into. Give it
17
+ * the real background or the eyes read as lighter than the page.
18
+ */
19
+ paper?: string;
20
+ /** the animation state to play; changing it morphs, it does not jump */
21
+ state?: StateId;
22
+ /**
23
+ * Freezes the render at this local time, in seconds since the state began. The
24
+ * engine is a pure function of time, so this gives a reproducible image with no
25
+ * animation loop at all — what thumbnails want.
26
+ */
27
+ frozenAt?: number;
28
+ /** the gaze follows the pointer */
29
+ follow?: boolean;
30
+ /**
31
+ * Resting yaw the head holds when the pointer is centred, in degrees. Positive
32
+ * turns Novi towards screen right. Use it to make Novi face what matters on the
33
+ * page; 0 keeps it looking straight ahead.
34
+ */
35
+ turn?: number;
36
+ /**
37
+ * A scripted gaze, evaluated every frame with the time elapsed since it was set.
38
+ * Independent of `follow`, which aims at the pointer — here the script decides
39
+ * everything, including its own duration.
40
+ */
41
+ gaze?: GazeScript | null;
42
+ /** accessible label; omit to mark the avatar decorative */
43
+ label?: string;
44
+ className?: string;
45
+ }
46
+ /**
47
+ * Novi, Nevuto's mascot: one filled shape that morphs between states, with two eyes
48
+ * cut out of it as holes.
49
+ *
50
+ * Fully controlled by props — it holds no opinion about what it should look like.
51
+ * Whatever picks the shape, the colour and the expression (a server, a form, a
52
+ * preference) lives outside.
53
+ */
54
+ export declare function Novi({ size, shape, color, expression, paper, state, frozenAt, follow, turn, gaze, label, className, }: NoviProps): import("react").JSX.Element;
55
+ //# sourceMappingURL=Novi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Novi.d.ts","sourceRoot":"","sources":["../../src/Novi/Novi.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAE/F,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEvE,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG5D,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,mCAAmC;IACnC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAwBD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,EACnB,IAAU,EACV,KAAqB,EACrB,KAAqB,EACrB,UAA+B,EAC/B,KAAoC,EACpC,KAAc,EACd,QAAQ,EACR,MAAc,EACd,IAAQ,EACR,IAAW,EACX,KAAK,EACL,SAAS,GACV,EAAE,SAAS,+BA4SX"}
@@ -0,0 +1,3 @@
1
+ /** Resolves nested CSS variables for the engine's numeric colour interpolation. */
2
+ export declare function useResolvedColor(value: string, fallback: string): string;
3
+ //# sourceMappingURL=useResolvedColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedColor.d.ts","sourceRoot":"","sources":["../../src/Novi/useResolvedColor.ts"],"names":[],"mappings":"AAwBA,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAexE"}
@@ -0,0 +1,22 @@
1
+ import { NoviProps } from '../Novi/Novi';
2
+ export interface NoviTileProps extends Omit<NoviProps, 'frozenAt' | 'follow' | 'gaze' | 'size'> {
3
+ size?: number;
4
+ /** overrides the canonical time; by default the state's most legible pose */
5
+ frozenAt?: number;
6
+ }
7
+ /**
8
+ * A frozen Novi, held at the moment its state reads best.
9
+ *
10
+ * What a picker grid wants. Freezing is not a detail: an animated thumbnail would
11
+ * run one rAF loop per cell, so a grid of sixteen expressions would run sixteen. The
12
+ * engine being a pure function of time, a frozen render costs one `sample()` and
13
+ * nothing after it.
14
+ *
15
+ * The canonical time comes from `POSES`, so no caller has to guess which instant
16
+ * shows a state off — and every grid in every screen shows the same image.
17
+ *
18
+ * Bare on purpose: the selected outline, the label and the button live in whatever
19
+ * renders the grid, which owns the design system this sits in.
20
+ */
21
+ export declare function NoviTile({ size, state, frozenAt, ...rest }: NoviTileProps): import("react").JSX.Element;
22
+ //# sourceMappingURL=NoviTile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoviTile.d.ts","sourceRoot":"","sources":["../../src/NoviTile/NoviTile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAGnD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAc,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BAIvF"}
@@ -0,0 +1,115 @@
1
+ export interface DotRender {
2
+ x: number;
3
+ y: number;
4
+ r: number;
5
+ opacity: number;
6
+ /** explicit colour; by default the renderer takes the body's */
7
+ color?: string;
8
+ /**
9
+ * Depth haze: 0 = melted into the background, 1 = full body colour. The mixing
10
+ * happens at render time, which alone knows the chosen colour.
11
+ */
12
+ depth?: number;
13
+ /**
14
+ * Non-circular shape, in ball-radius units and centred on the origin (the dot of
15
+ * the leaning "!" is a droplet, not a disk). When given, `r` is no longer used
16
+ * for the outline.
17
+ */
18
+ d?: string;
19
+ /** rotation applied to `d`, in degrees */
20
+ rot?: number;
21
+ }
22
+ /**
23
+ * What a state declares: the arc's geometry stays in ball-radius units, and the
24
+ * engine — the only one that knows the viewBox scale — rasterises it. States declare
25
+ * `ArcSpec`; they must not call `arcRender` themselves.
26
+ */
27
+ export interface ArcSpec {
28
+ id: string;
29
+ seed: ArcSeed;
30
+ t: number;
31
+ opacity: number;
32
+ }
33
+ export interface ArcRender {
34
+ id: string;
35
+ /** the portion in front of the body */
36
+ front: string;
37
+ /** the portion behind the body (drawn first, so hidden by the silhouette) */
38
+ back: string;
39
+ width: number;
40
+ opacity: number;
41
+ /** hue gradient along the stroke */
42
+ grad: {
43
+ x1: number;
44
+ y1: number;
45
+ x2: number;
46
+ y2: number;
47
+ stops: string[];
48
+ };
49
+ }
50
+ export interface ArcSeed {
51
+ /** semi-major axis, in ball-radius units */
52
+ a: number;
53
+ /** flattening b/a: measured <= 0.45, the orbit planes are seen nearly edge on */
54
+ k: number;
55
+ /** tilt of the major axis on screen, radians */
56
+ tilt: number;
57
+ /** turns per second */
58
+ speed: number;
59
+ phase: number;
60
+ /** fraction of the turn actually stroked */
61
+ sweep: number;
62
+ hue: number;
63
+ hueSpan: number;
64
+ width: number;
65
+ cx: number;
66
+ cy: number;
67
+ }
68
+ /**
69
+ * Projects a tilted 3D circle orthographically.
70
+ *
71
+ * The circle lives in the plane spanned by u (in the screen) and v (which dives into
72
+ * depth). The z component cuts the arc in two: the back half is drawn before the
73
+ * body, so the body hides it. That real depth sorting is what makes the rings read
74
+ * as orbits rather than as a flat drawing.
75
+ */
76
+ export declare function arcRender(seed: ArcSeed, t: number, scale: number, id: string, opacity?: number): ArcRender;
77
+ /**
78
+ * 6 rings, semi-major axis 1.30-1.40 (so clearly larger than the ball), flattening
79
+ * always <= 0.45, thickness 0.055, ~3.3 turns/s.
80
+ *
81
+ * Hand-tuned to stay under HALF_VIEWBOX: nothing bounds them at runtime.
82
+ */
83
+ export declare const RINGS: ArcSeed[];
84
+ /**
85
+ * A nested bundle of arcs that sweeps the triangle just before the orbits. Seen
86
+ * almost edge on (hence the hairpin shape), rmax 1.37.
87
+ */
88
+ export declare const SWOOSH: ArcSeed[];
89
+ /** measured x: -0.557 / -0.013 / +0.532, y = 0. */
90
+ export declare const DOT_X: readonly [-0.557, -0.013, 0.532];
91
+ export declare const DOT_R = 0.165;
92
+ export declare const DOT_PEAK = 1.25;
93
+ /**
94
+ * The particles do not fly off in a straight line: they spiral inwards (radius x0.75
95
+ * per frame, angle +100 deg/s) while growing, and pass behind the core where they
96
+ * are swallowed.
97
+ */
98
+ export declare function particles(t: number, scale: number): DotRender[];
99
+ export declare const COMET_RIBBONS: ArcSeed[];
100
+ /** Radius of the comet's dot, measured at 0.129. */
101
+ export declare const COMET_DOT = 0.129;
102
+ /** Shared interactive blue keeps the notification pip in the product palette. */
103
+ export declare const NOTIF_BLUE = "var(--backgrounds-bg-interactive)";
104
+ /** The pip sits exactly on the circumference, at -42deg. */
105
+ export declare const NOTIF_ANGLE = -42;
106
+ export declare const NOTIF_DIST = 1.003;
107
+ /** Radius at rest; the pop peaks 14% above it — the one spring in the engine. */
108
+ export declare const NOTIF_R = 0.15;
109
+ export declare const NOTIF_POP = 1.14;
110
+ /**
111
+ * The notch is a disk concentric with the pip, subtracted from the body. The margin
112
+ * is constant (0.054 R) and follows the body's scale.
113
+ */
114
+ export declare const NOTIF_MARGIN = 0.054;
115
+ //# sourceMappingURL=decor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decor.d.ts","sourceRoot":"","sources":["../../src/engine/decor.ts"],"names":[],"mappings":"AAmCA,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;IACf,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,CAAA;IACb,CAAC,EAAE,MAAM,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAC1E;AAID,MAAM,WAAW,OAAO;IACtB,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAA;IACT,iFAAiF;IACjF,CAAC,EAAE,MAAM,CAAA;IACT,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,EACb,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,OAAO,SAAI,GACV,SAAS,CAkDX;AAMD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,EAYxB,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,EAYzB,CAAA;AAIH,mDAAmD;AACnD,eAAO,MAAM,KAAK,kCAAmC,CAAA;AACrD,eAAO,MAAM,KAAK,QAAQ,CAAA;AAC1B,eAAO,MAAM,QAAQ,OAAO,CAAA;AAa5B;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CAgB/D;AAUD,eAAO,MAAM,aAAa,EAAE,OAAO,EAiBjC,CAAA;AAEF,oDAAoD;AACpD,eAAO,MAAM,SAAS,QAAQ,CAAA;AAI9B,iFAAiF;AACjF,eAAO,MAAM,UAAU,sCAAsC,CAAA;AAC7D,4DAA4D;AAC5D,eAAO,MAAM,WAAW,MAAM,CAAA;AAC9B,eAAO,MAAM,UAAU,QAAQ,CAAA;AAC/B,iFAAiF;AACjF,eAAO,MAAM,OAAO,OAAO,CAAA;AAC3B,eAAO,MAAM,SAAS,OAAO,CAAA;AAC7B;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAQ,CAAA"}