@assistant-ui/react 0.12.7 → 0.12.9

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 (65) hide show
  1. package/dist/client/ChainOfThoughtClient.d.ts +15 -0
  2. package/dist/client/ChainOfThoughtClient.d.ts.map +1 -0
  3. package/dist/client/ChainOfThoughtClient.js +21 -0
  4. package/dist/client/ChainOfThoughtClient.js.map +1 -0
  5. package/dist/client/index.d.ts +1 -0
  6. package/dist/client/index.d.ts.map +1 -1
  7. package/dist/client/index.js +1 -0
  8. package/dist/client/index.js.map +1 -1
  9. package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts +6 -0
  10. package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -0
  11. package/dist/context/providers/ChainOfThoughtByIndicesProvider.js +21 -0
  12. package/dist/context/providers/ChainOfThoughtByIndicesProvider.js.map +1 -0
  13. package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts +5 -0
  14. package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -0
  15. package/dist/context/providers/ChainOfThoughtPartByIndexProvider.js +14 -0
  16. package/dist/context/providers/ChainOfThoughtPartByIndexProvider.js.map +1 -0
  17. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +28 -0
  18. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -0
  19. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +27 -0
  20. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -0
  21. package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts +39 -0
  22. package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -0
  23. package/dist/primitives/chainOfThought/ChainOfThoughtParts.js +40 -0
  24. package/dist/primitives/chainOfThought/ChainOfThoughtParts.js.map +1 -0
  25. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +28 -0
  26. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -0
  27. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +25 -0
  28. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js.map +1 -0
  29. package/dist/primitives/chainOfThought/index.d.ts +4 -0
  30. package/dist/primitives/chainOfThought/index.d.ts.map +1 -0
  31. package/dist/primitives/chainOfThought/index.js +4 -0
  32. package/dist/primitives/chainOfThought/index.js.map +1 -0
  33. package/dist/primitives/index.d.ts +1 -0
  34. package/dist/primitives/index.d.ts.map +1 -1
  35. package/dist/primitives/index.js +1 -0
  36. package/dist/primitives/index.js.map +1 -1
  37. package/dist/primitives/message/MessageParts.d.ts +145 -109
  38. package/dist/primitives/message/MessageParts.d.ts.map +1 -1
  39. package/dist/primitives/message/MessageParts.js +48 -23
  40. package/dist/primitives/message/MessageParts.js.map +1 -1
  41. package/dist/types/scopes/chainOfThought.d.ts +40 -0
  42. package/dist/types/scopes/chainOfThought.d.ts.map +1 -0
  43. package/dist/types/scopes/chainOfThought.js +2 -0
  44. package/dist/types/scopes/chainOfThought.js.map +1 -0
  45. package/dist/types/scopes/index.d.ts +1 -0
  46. package/dist/types/scopes/index.d.ts.map +1 -1
  47. package/dist/types/scopes/part.d.ts +6 -0
  48. package/dist/types/scopes/part.d.ts.map +1 -1
  49. package/dist/types/store-augmentation.d.ts +2 -0
  50. package/dist/types/store-augmentation.d.ts.map +1 -1
  51. package/package.json +7 -7
  52. package/src/client/ChainOfThoughtClient.ts +43 -0
  53. package/src/client/index.ts +1 -0
  54. package/src/context/providers/ChainOfThoughtByIndicesProvider.tsx +36 -0
  55. package/src/context/providers/ChainOfThoughtPartByIndexProvider.tsx +20 -0
  56. package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx +51 -0
  57. package/src/primitives/chainOfThought/ChainOfThoughtParts.tsx +89 -0
  58. package/src/primitives/chainOfThought/ChainOfThoughtRoot.tsx +36 -0
  59. package/src/primitives/chainOfThought/index.ts +14 -0
  60. package/src/primitives/index.ts +1 -0
  61. package/src/primitives/message/MessageParts.tsx +214 -142
  62. package/src/types/scopes/chainOfThought.ts +42 -0
  63. package/src/types/scopes/index.ts +7 -0
  64. package/src/types/scopes/part.ts +11 -6
  65. package/src/types/store-augmentation.ts +2 -0
@@ -0,0 +1,15 @@
1
+ import { type ClientOutput } from "@assistant-ui/store";
2
+ import type { ChainOfThoughtPart } from "../types/scopes/chainOfThought.js";
3
+ import type { PartMethods } from "../types/scopes/part.js";
4
+ export declare const ChainOfThoughtClient: (props: {
5
+ parts: readonly ChainOfThoughtPart[];
6
+ getMessagePart: (selector: {
7
+ index: number;
8
+ }) => PartMethods;
9
+ }) => import("@assistant-ui/tap").ResourceElement<ClientOutput<"chainOfThought">, {
10
+ parts: readonly ChainOfThoughtPart[];
11
+ getMessagePart: (selector: {
12
+ index: number;
13
+ }) => PartMethods;
14
+ }>;
15
+ //# sourceMappingURL=ChainOfThoughtClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtClient.d.ts","sourceRoot":"","sources":["../../src/client/ChainOfThoughtClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAEV,kBAAkB,EACnB,0CAAuC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,gCAA6B;AAMxD,eAAO,MAAM,oBAAoB;WAKtB,SAAS,kBAAkB,EAAE;oBACpB,CAAC,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,WAAW;;WADrD,SAAS,kBAAkB,EAAE;oBACpB,CAAC,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,WAAW;EAuB/D,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { resource, tapMemo, tapState } from "@assistant-ui/tap";
2
+ const COMPLETE_STATUS = Object.freeze({
3
+ type: "complete",
4
+ });
5
+ export const ChainOfThoughtClient = resource(({ parts, getMessagePart, }) => {
6
+ const [collapsed, setCollapsed] = tapState(true);
7
+ const status = tapMemo(() => {
8
+ const lastPart = parts[parts.length - 1];
9
+ return lastPart?.status ?? COMPLETE_STATUS;
10
+ }, [parts]);
11
+ const state = tapMemo(() => ({ parts, collapsed, status }), [parts, collapsed, status]);
12
+ return {
13
+ state,
14
+ methods: {
15
+ getState: () => state,
16
+ setCollapsed,
17
+ part: getMessagePart,
18
+ },
19
+ };
20
+ });
21
+ //# sourceMappingURL=ChainOfThoughtClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtClient.js","sourceRoot":"","sources":["../../src/client/ChainOfThoughtClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAShE,MAAM,eAAe,GAAsB,MAAM,CAAC,MAAM,CAAC;IACvD,IAAI,EAAE,UAAU;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAC1C,CAAC,EACC,KAAK,EACL,cAAc,GAIf,EAAkC,EAAE;IACnC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEjD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1B,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACzC,OAAO,QAAQ,EAAE,MAAM,IAAI,eAAe,CAAC;IAC7C,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EACpC,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAC3B,CAAC;IAEF,OAAO;QACL,KAAK;QACL,OAAO,EAAE;YACP,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK;YACrB,YAAY;YACZ,IAAI,EAAE,cAAc;SACrB;KACF,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -3,4 +3,5 @@ export { Tools } from "./Tools.js";
3
3
  export { Suggestions, type SuggestionConfig } from "./Suggestions.js";
4
4
  export { ExternalThread, type ExternalThreadProps, type ExternalThreadMessage, } from "./ExternalThread.js";
5
5
  export { InMemoryThreadList, type InMemoryThreadListProps, } from "./InMemoryThreadList.js";
6
+ export { ChainOfThoughtClient } from "./ChainOfThoughtClient.js";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,gCAA6B;AAC1E,OAAO,EAAE,KAAK,EAAE,mBAAgB;AAChC,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,yBAAsB;AACnE,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,4BAAyB;AAC1B,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,gCAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,gCAA6B;AAC1E,OAAO,EAAE,KAAK,EAAE,mBAAgB;AAChC,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,yBAAsB;AACnE,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,4BAAyB;AAC1B,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,gCAA6B;AAC9B,OAAO,EAAE,oBAAoB,EAAE,kCAA+B"}
@@ -3,4 +3,5 @@ export { Tools } from "./Tools.js";
3
3
  export { Suggestions } from "./Suggestions.js";
4
4
  export { ExternalThread, } from "./ExternalThread.js";
5
5
  export { InMemoryThreadList, } from "./InMemoryThreadList.js";
6
+ export { ChainOfThoughtClient } from "./ChainOfThoughtClient.js";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,gCAA6B;AAC1E,OAAO,EAAE,KAAK,EAAE,mBAAgB;AAChC,OAAO,EAAE,WAAW,EAAyB,yBAAsB;AACnE,OAAO,EACL,cAAc,GAGf,4BAAyB;AAC1B,OAAO,EACL,kBAAkB,GAEnB,gCAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,gCAA6B;AAC1E,OAAO,EAAE,KAAK,EAAE,mBAAgB;AAChC,OAAO,EAAE,WAAW,EAAyB,yBAAsB;AACnE,OAAO,EACL,cAAc,GAGf,4BAAyB;AAC1B,OAAO,EACL,kBAAkB,GAEnB,gCAA6B;AAC9B,OAAO,EAAE,oBAAoB,EAAE,kCAA+B"}
@@ -0,0 +1,6 @@
1
+ import { type FC, type PropsWithChildren } from "react";
2
+ export declare const ChainOfThoughtByIndicesProvider: FC<PropsWithChildren<{
3
+ startIndex: number;
4
+ endIndex: number;
5
+ }>>;
6
+ //# sourceMappingURL=ChainOfThoughtByIndicesProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtByIndicesProvider.d.ts","sourceRoot":"","sources":["../../../src/context/providers/ChainOfThoughtByIndicesProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKxD,eAAO,MAAM,+BAA+B,EAAE,EAAE,CAC9C,iBAAiB,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAwBH,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useAui, useAuiState, AuiProvider } from "@assistant-ui/store";
4
+ import { ChainOfThoughtClient } from "../../client/ChainOfThoughtClient.js";
5
+ export const ChainOfThoughtByIndicesProvider = ({ startIndex, endIndex, children }) => {
6
+ const parts = useAuiState(({ message }) => message.parts).slice(startIndex, endIndex + 1);
7
+ const parentAui = useAui();
8
+ const aui = useAui({
9
+ chainOfThought: ChainOfThoughtClient({
10
+ parts,
11
+ getMessagePart: ({ index }) => {
12
+ if (index < 0 || index >= parts.length) {
13
+ throw new Error(`ChainOfThought part index ${index} is out of bounds (0..${parts.length - 1})`);
14
+ }
15
+ return parentAui.message().part({ index: startIndex + index });
16
+ },
17
+ }),
18
+ });
19
+ return _jsx(AuiProvider, { value: aui, children: children });
20
+ };
21
+ //# sourceMappingURL=ChainOfThoughtByIndicesProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtByIndicesProvider.js","sourceRoot":"","sources":["../../../src/context/providers/ChainOfThoughtByIndicesProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,6CAA0C;AAGzE,MAAM,CAAC,MAAM,+BAA+B,GAKxC,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzC,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAC7D,UAAU,EACV,QAAQ,GAAG,CAAC,CACW,CAAC;IAE1B,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;IAE3B,MAAM,GAAG,GAAG,MAAM,CAAC;QACjB,cAAc,EAAE,oBAAoB,CAAC;YACnC,KAAK;YACL,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;gBAC5B,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;oBACvC,MAAM,IAAI,KAAK,CACb,6BAA6B,KAAK,yBAAyB,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,CAC/E,CAAC;gBACJ,CAAC;gBACD,OAAO,SAAS,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,GAAG,KAAK,EAAE,CAAC,CAAC;YACjE,CAAC;SACF,CAAC;KACH,CAAC,CAAC;IAEH,OAAO,KAAC,WAAW,IAAC,KAAK,EAAE,GAAG,YAAG,QAAQ,GAAe,CAAC;AAC3D,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type FC, type PropsWithChildren } from "react";
2
+ export declare const ChainOfThoughtPartByIndexProvider: FC<PropsWithChildren<{
3
+ index: number;
4
+ }>>;
5
+ //# sourceMappingURL=ChainOfThoughtPartByIndexProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtPartByIndexProvider.d.ts","sourceRoot":"","sources":["../../../src/context/providers/ChainOfThoughtPartByIndexProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGxD,eAAO,MAAM,iCAAiC,EAAE,EAAE,CAChD,iBAAiB,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAWH,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useAui, AuiProvider, Derived } from "@assistant-ui/store";
4
+ export const ChainOfThoughtPartByIndexProvider = ({ index, children }) => {
5
+ const aui = useAui({
6
+ part: Derived({
7
+ source: "chainOfThought",
8
+ query: { type: "index", index },
9
+ get: (aui) => aui.chainOfThought().part({ index }),
10
+ }),
11
+ });
12
+ return _jsx(AuiProvider, { value: aui, children: children });
13
+ };
14
+ //# sourceMappingURL=ChainOfThoughtPartByIndexProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtPartByIndexProvider.js","sourceRoot":"","sources":["../../../src/context/providers/ChainOfThoughtPartByIndexProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1B,MAAM,GAAG,GAAG,MAAM,CAAC;QACjB,IAAI,EAAE,OAAO,CAAC;YACZ,MAAM,EAAE,gBAAgB;YACxB,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;YAC/B,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;SACnD,CAAC;KACH,CAAC,CAAC;IAEH,OAAO,KAAC,WAAW,IAAC,KAAK,EAAE,GAAG,YAAG,QAAQ,GAAe,CAAC;AAC3D,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
2
+ declare const useChainOfThoughtAccordionTrigger: () => () => void;
3
+ export declare namespace ChainOfThoughtPrimitiveAccordionTrigger {
4
+ type Element = ActionButtonElement;
5
+ /**
6
+ * Props for the ChainOfThoughtPrimitive.AccordionTrigger component.
7
+ * Inherits all button element props and action button functionality.
8
+ */
9
+ type Props = ActionButtonProps<typeof useChainOfThoughtAccordionTrigger>;
10
+ }
11
+ /**
12
+ * A button component that toggles the collapsed state of the chain of thought accordion.
13
+ *
14
+ * This component automatically handles the toggle functionality, expanding or collapsing
15
+ * the chain of thought parts when clicked.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <ChainOfThoughtPrimitive.AccordionTrigger>
20
+ * Toggle Reasoning
21
+ * </ChainOfThoughtPrimitive.AccordionTrigger>
22
+ * ```
23
+ */
24
+ export declare const ChainOfThoughtPrimitiveAccordionTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
25
+ asChild?: boolean;
26
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
27
+ export {};
28
+ //# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAIxC,QAAA,MAAM,iCAAiC,kBAWtC,CAAC;AAEF,yBAAiB,uCAAuC,CAAC;IACvD,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CACnC,OAAO,iCAAiC,CACzC,CAAC;CACH;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC;;6DAGnD,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { createActionButton, } from "../../utils/createActionButton.js";
3
+ import { useCallback } from "react";
4
+ import { useAuiState, useAui } from "@assistant-ui/store";
5
+ const useChainOfThoughtAccordionTrigger = () => {
6
+ const aui = useAui();
7
+ const collapsed = useAuiState(({ chainOfThought }) => chainOfThought.collapsed);
8
+ const callback = useCallback(() => {
9
+ aui.chainOfThought().setCollapsed(!collapsed);
10
+ }, [aui, collapsed]);
11
+ return callback;
12
+ };
13
+ /**
14
+ * A button component that toggles the collapsed state of the chain of thought accordion.
15
+ *
16
+ * This component automatically handles the toggle functionality, expanding or collapsing
17
+ * the chain of thought parts when clicked.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * <ChainOfThoughtPrimitive.AccordionTrigger>
22
+ * Toggle Reasoning
23
+ * </ChainOfThoughtPrimitive.AccordionTrigger>
24
+ * ```
25
+ */
26
+ export const ChainOfThoughtPrimitiveAccordionTrigger = createActionButton("ChainOfThoughtPrimitive.AccordionTrigger", useChainOfThoughtAccordionTrigger);
27
+ //# sourceMappingURL=ChainOfThoughtAccordionTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAGL,kBAAkB,GACnB,0CAAuC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAC7C,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,SAAS,GAAG,WAAW,CAC3B,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CACjD,CAAC;IAEF,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QAChC,GAAG,CAAC,cAAc,EAAE,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC;IAErB,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,kBAAkB,CACvE,0CAA0C,EAC1C,iCAAiC,CAClC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { type ComponentType, type FC, type PropsWithChildren } from "react";
2
+ import type { ReasoningMessagePartComponent, ToolCallMessagePartComponent } from "../../types/MessagePartComponentTypes.js";
3
+ export declare namespace ChainOfThoughtPrimitiveParts {
4
+ type Props = {
5
+ /**
6
+ * Component configuration for rendering chain of thought parts.
7
+ */
8
+ components?: {
9
+ /** Component for rendering reasoning parts */
10
+ Reasoning?: ReasoningMessagePartComponent | undefined;
11
+ /** Fallback component for tool-call parts */
12
+ tools?: {
13
+ Fallback?: ToolCallMessagePartComponent | undefined;
14
+ };
15
+ /** Layout component to wrap the rendered parts when expanded */
16
+ Layout?: ComponentType<PropsWithChildren> | undefined;
17
+ };
18
+ };
19
+ }
20
+ /**
21
+ * Renders the parts within a chain of thought, with support for collapsed/expanded states.
22
+ *
23
+ * When collapsed, no parts are shown. When expanded, all parts are rendered
24
+ * using the provided component configuration through the part scope mechanism.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <ChainOfThoughtPrimitive.Parts
29
+ * components={{
30
+ * Reasoning: ({ text }) => <p className="reasoning">{text}</p>,
31
+ * tools: {
32
+ * Fallback: ({ toolName }) => <div>Tool: {toolName}</div>
33
+ * }
34
+ * }}
35
+ * />
36
+ * ```
37
+ */
38
+ export declare const ChainOfThoughtPrimitiveParts: FC<ChainOfThoughtPrimitiveParts.Props>;
39
+ //# sourceMappingURL=ChainOfThoughtParts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtParts.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtParts.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,EACP,KAAK,iBAAiB,EAEvB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC7B,iDAA8C;AAE/C,yBAAiB,4BAA4B,CAAC;IAC5C,KAAY,KAAK,GAAG;QAClB;;WAEG;QACH,UAAU,CAAC,EAAE;YACX,8CAA8C;YAC9C,SAAS,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;YACtD,6CAA6C;YAC7C,KAAK,CAAC,EAAE;gBACN,QAAQ,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;aACrD,CAAC;YACF,gEAAgE;YAChE,MAAM,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;SACvD,CAAC;KACH,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAC3C,4BAA4B,CAAC,KAAK,CAiCnC,CAAC"}
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useMemo, } from "react";
4
+ import { useAuiState } from "@assistant-ui/store";
5
+ import { ChainOfThoughtPartByIndexProvider } from "../../context/providers/ChainOfThoughtPartByIndexProvider.js";
6
+ import { MessagePartComponent } from "../message/MessageParts.js";
7
+ /**
8
+ * Renders the parts within a chain of thought, with support for collapsed/expanded states.
9
+ *
10
+ * When collapsed, no parts are shown. When expanded, all parts are rendered
11
+ * using the provided component configuration through the part scope mechanism.
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <ChainOfThoughtPrimitive.Parts
16
+ * components={{
17
+ * Reasoning: ({ text }) => <p className="reasoning">{text}</p>,
18
+ * tools: {
19
+ * Fallback: ({ toolName }) => <div>Tool: {toolName}</div>
20
+ * }
21
+ * }}
22
+ * />
23
+ * ```
24
+ */
25
+ export const ChainOfThoughtPrimitiveParts = ({ components }) => {
26
+ const partsLength = useAuiState(({ chainOfThought }) => chainOfThought.parts.length);
27
+ const messageComponents = useMemo(() => ({
28
+ Reasoning: components?.Reasoning,
29
+ tools: {
30
+ Fallback: components?.tools?.Fallback,
31
+ },
32
+ }), [components?.Reasoning, components?.tools?.Fallback]);
33
+ const Layout = components?.Layout;
34
+ const elements = useMemo(() => {
35
+ return Array.from({ length: partsLength }, (_, index) => (_jsx(ChainOfThoughtPartByIndexProvider, { index: index, children: Layout ? (_jsx(Layout, { children: _jsx(MessagePartComponent, { components: messageComponents }) })) : (_jsx(MessagePartComponent, { components: messageComponents })) }, index)));
36
+ }, [partsLength, messageComponents, Layout]);
37
+ return _jsx(_Fragment, { children: elements });
38
+ };
39
+ ChainOfThoughtPrimitiveParts.displayName = "ChainOfThoughtPrimitive.Parts";
40
+ //# sourceMappingURL=ChainOfThoughtParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtParts.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtParts.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAIL,OAAO,GACR,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iCAAiC,EAAE,qEAAkE;AAC9G,OAAO,EAAE,oBAAoB,EAAE,mCAAgC;AAwB/D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IACrB,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CACpD,CAAC;IAEF,MAAM,iBAAiB,GAAG,OAAO,CAC/B,GAAG,EAAE,CAAC,CAAC;QACL,SAAS,EAAE,UAAU,EAAE,SAAS;QAChC,KAAK,EAAE;YACL,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ;SACtC;KACF,CAAC,EACF,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,CACrD,CAAC;IAEF,MAAM,MAAM,GAAG,UAAU,EAAE,MAAM,CAAC;IAElC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACvD,KAAC,iCAAiC,IAAa,KAAK,EAAE,KAAK,YACxD,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,MAAM,cACL,KAAC,oBAAoB,IAAC,UAAU,EAAE,iBAAiB,GAAI,GAChD,CACV,CAAC,CAAC,CAAC,CACF,KAAC,oBAAoB,IAAC,UAAU,EAAE,iBAAiB,GAAI,CACxD,IAPqC,KAAK,CAQT,CACrC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;IAE7C,OAAO,4BAAG,QAAQ,GAAI,CAAC;AACzB,CAAC,CAAC;AAEF,4BAA4B,CAAC,WAAW,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { Primitive } from "@radix-ui/react-primitive";
2
+ import { type ComponentRef, ComponentPropsWithoutRef } from "react";
3
+ type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
4
+ export declare namespace ChainOfThoughtPrimitiveRoot {
5
+ type Element = ComponentRef<typeof Primitive.div>;
6
+ type Props = PrimitiveDivProps;
7
+ }
8
+ /**
9
+ * The root container for chain of thought components.
10
+ *
11
+ * This component provides a wrapper for chain of thought content,
12
+ * including reasoning and tool-call parts that can be collapsed in an accordion.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <ChainOfThoughtPrimitive.Root>
17
+ * <ChainOfThoughtPrimitive.AccordionTrigger>
18
+ * Toggle reasoning
19
+ * </ChainOfThoughtPrimitive.AccordionTrigger>
20
+ * <ChainOfThoughtPrimitive.Parts />
21
+ * </ChainOfThoughtPrimitive.Root>
22
+ * ```
23
+ */
24
+ export declare const ChainOfThoughtPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
25
+ asChild?: boolean;
26
+ }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
27
+ export {};
28
+ //# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEhF,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B;;0DAKtC,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { forwardRef } from "react";
5
+ /**
6
+ * The root container for chain of thought components.
7
+ *
8
+ * This component provides a wrapper for chain of thought content,
9
+ * including reasoning and tool-call parts that can be collapsed in an accordion.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <ChainOfThoughtPrimitive.Root>
14
+ * <ChainOfThoughtPrimitive.AccordionTrigger>
15
+ * Toggle reasoning
16
+ * </ChainOfThoughtPrimitive.AccordionTrigger>
17
+ * <ChainOfThoughtPrimitive.Parts />
18
+ * </ChainOfThoughtPrimitive.Root>
19
+ * ```
20
+ */
21
+ export const ChainOfThoughtPrimitiveRoot = forwardRef((props, ref) => {
22
+ return _jsx(Primitive.div, { ...props, ref: ref });
23
+ });
24
+ ChainOfThoughtPrimitiveRoot.displayName = "ChainOfThoughtPrimitive.Root";
25
+ //# sourceMappingURL=ChainOfThoughtRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThoughtRoot.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAShF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAGnD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,OAAO,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,2BAA2B,CAAC,WAAW,GAAG,8BAA8B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { ChainOfThoughtPrimitiveRoot as Root, type ChainOfThoughtPrimitiveRoot as RootPrimitive, } from "./ChainOfThoughtRoot.js";
2
+ export { ChainOfThoughtPrimitiveAccordionTrigger as AccordionTrigger, type ChainOfThoughtPrimitiveAccordionTrigger as AccordionTriggerPrimitive, } from "./ChainOfThoughtAccordionTrigger.js";
3
+ export { ChainOfThoughtPrimitiveParts as Parts, type ChainOfThoughtPrimitiveParts as PartsPrimitive, } from "./ChainOfThoughtParts.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,IAAI,IAAI,EACnC,KAAK,2BAA2B,IAAI,aAAa,GAClD,gCAA6B;AAE9B,OAAO,EACL,uCAAuC,IAAI,gBAAgB,EAC3D,KAAK,uCAAuC,IAAI,yBAAyB,GAC1E,4CAAyC;AAE1C,OAAO,EACL,4BAA4B,IAAI,KAAK,EACrC,KAAK,4BAA4B,IAAI,cAAc,GACpD,iCAA8B"}
@@ -0,0 +1,4 @@
1
+ export { ChainOfThoughtPrimitiveRoot as Root, } from "./ChainOfThoughtRoot.js";
2
+ export { ChainOfThoughtPrimitiveAccordionTrigger as AccordionTrigger, } from "./ChainOfThoughtAccordionTrigger.js";
3
+ export { ChainOfThoughtPrimitiveParts as Parts, } from "./ChainOfThoughtParts.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,IAAI,IAAI,GAEpC,gCAA6B;AAE9B,OAAO,EACL,uCAAuC,IAAI,gBAAgB,GAE5D,4CAAyC;AAE1C,OAAO,EACL,4BAA4B,IAAI,KAAK,GAEtC,iCAA8B"}
@@ -3,6 +3,7 @@ export * as ActionBarMorePrimitive from "./actionBarMore/index.js";
3
3
  export * as AssistantModalPrimitive from "./assistantModal/index.js";
4
4
  export * as AttachmentPrimitive from "./attachment/index.js";
5
5
  export * as BranchPickerPrimitive from "./branchPicker/index.js";
6
+ export * as ChainOfThoughtPrimitive from "./chainOfThought/index.js";
6
7
  export * as ComposerPrimitive from "./composer/index.js";
7
8
  export * as MessagePartPrimitive from "./messagePart/index.js";
8
9
  export * as ErrorPrimitive from "./error/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,6BAAoB;AAClD,OAAO,KAAK,sBAAsB,iCAAwB;AAC1D,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,qBAAqB,gCAAuB;AACxD,OAAO,KAAK,iBAAiB,4BAAmB;AAChD,OAAO,KAAK,oBAAoB,+BAAsB;AACtD,OAAO,KAAK,cAAc,yBAAgB;AAC1C,OAAO,KAAK,gBAAgB,2BAAkB;AAC9C,OAAO,KAAK,eAAe,0BAAiB;AAC5C,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,2BAA2B,sCAA6B;AAEpE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,6BAAoB;AAClD,OAAO,KAAK,sBAAsB,iCAAwB;AAC1D,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,qBAAqB,gCAAuB;AACxD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,iBAAiB,4BAAmB;AAChD,OAAO,KAAK,oBAAoB,+BAAsB;AACtD,OAAO,KAAK,cAAc,yBAAgB;AAC1C,OAAO,KAAK,gBAAgB,2BAAkB;AAC9C,OAAO,KAAK,eAAe,0BAAiB;AAC5C,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,2BAA2B,sCAA6B;AAEpE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}
@@ -3,6 +3,7 @@ export * as ActionBarMorePrimitive from "./actionBarMore/index.js";
3
3
  export * as AssistantModalPrimitive from "./assistantModal/index.js";
4
4
  export * as AttachmentPrimitive from "./attachment/index.js";
5
5
  export * as BranchPickerPrimitive from "./branchPicker/index.js";
6
+ export * as ChainOfThoughtPrimitive from "./chainOfThought/index.js";
6
7
  export * as ComposerPrimitive from "./composer/index.js";
7
8
  export * as MessagePartPrimitive from "./messagePart/index.js";
8
9
  export * as ErrorPrimitive from "./error/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,6BAAoB;AAClD,OAAO,KAAK,sBAAsB,iCAAwB;AAC1D,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,qBAAqB,gCAAuB;AACxD,OAAO,KAAK,iBAAiB,4BAAmB;AAChD,OAAO,KAAK,oBAAoB,+BAAsB;AACtD,OAAO,KAAK,cAAc,yBAAgB;AAC1C,OAAO,KAAK,gBAAgB,2BAAkB;AAC9C,OAAO,KAAK,eAAe,0BAAiB;AAC5C,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,2BAA2B,sCAA6B;AAEpE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,6BAAoB;AAClD,OAAO,KAAK,sBAAsB,iCAAwB;AAC1D,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,qBAAqB,gCAAuB;AACxD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,iBAAiB,4BAAmB;AAChD,OAAO,KAAK,oBAAoB,+BAAsB;AACtD,OAAO,KAAK,cAAc,yBAAgB;AAC1C,OAAO,KAAK,gBAAgB,2BAAkB;AAC9C,OAAO,KAAK,eAAe,0BAAiB;AAC5C,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,2BAA2B,sCAA6B;AAEpE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}