@assistant-ui/react 0.5.89 → 0.5.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","../../src/tailwindcss/index.ts"],"names":[],"mappings":"AAAA,izBAA6B;AAC7B;AACA;ACFA,qGAAmB;AA4CnB,IAAM,UAAA,EAAY,kBAAA,CAAO,WAAA;AAAA,EACvB,CAAC,EAAE,WAAA,EAAa,CAAC,iBAAA,EAAmB,QAAQ,CAAA,EAAG,OAAA,EAAS,MAAM,EAAA,EAAI,CAAC,CAAA,EAAA,GACjE,CAAC,EAAE,cAAc,CAAA,EAAA,GAAM;AACrB,IAAA,MAAM,eAAA,EAAiB,UAAA,CAAW,QAAA,CAAS,iBAAiB,CAAA;AAC5D,IAAA,MAAM,OAAA,EAAS,eAAA,GAAkB,UAAA,CAAW,QAAA,CAAS,QAAQ,CAAA;AAC7D,IAAA,MAAM,KAAA,EAAO,OAAA,GAAU,UAAA,CAAW,QAAA,CAAS,MAAM,CAAA;AACjD,IAAA,MAAM,aAAA,EAAe,UAAA,CAAW,QAAA,CAAS,eAAe,CAAA;AAExD,IAAA,GAAA,CAAI,aAAA,GAAgB,MAAA;AAClB,MAAA,MAAM,IAAI,KAAA,CAAM,0CAA0C,CAAA;AAE5D,IAAA,GAAA,CAAI,aAAA,GAAiB,KAAA,GAAQ,CAAC,MAAA,EAAS;AACrC,MAAA,aAAA,CAAc;AAAA,QACZ,yDAAA,EAA2D;AAAA,MAC7D,CAAC,CAAA;AAAA,IACH;AAEA,IAAA,GAAA,CAAI,IAAA,EAAM;AACR,MAAA,aAAA,CAAc;AAAA,QACZ,sEAAA,EACE;AAAA,MACJ,CAAC,CAAA;AAAA,IACH;AAEA,IAAA,GAAA,CAAI,MAAA,EAAQ;AACV,MAAA,aAAA,CAAc;AAAA,QACZ,6DAAA,EAA+D;A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,gBAClD,UAAA,mCACE,MAAA,uBAAO,IAAA,+BAAM,YAAA,UACb,CAAA,QAAA,EAAW,MAAM,CAAA,iBAAA;AAAA,cACrB;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAA;AAAA,EACF;AACF,CAAA;AAEA,IAAO,oBAAA,EAAQ,SAAA;ADhEf;AACE;AACF,sCAAC","file":"/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","sourcesContent":[null,"import plugin from \"tailwindcss/plugin.js\";\n\ntype AssistantTailwindPluginColors = {\n border: string;\n input: string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n};\n\ntype AssisstantTailwindPluginOptions = {\n components?: (\"default-theme\" | \"base\" | \"thread\" | \"assistant-modal\")[];\n colors?: AssistantTailwindPluginColors;\n shadcn?: boolean;\n};\n\nconst auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(\n ({ components = [\"assistant-modal\", \"thread\"], shadcn = false } = {}) =>\n ({ addComponents }) => {\n const assistantModal = components.includes(\"assistant-modal\");\n const thread = assistantModal || components.includes(\"thread\");\n const base = thread || components.includes(\"base\");\n const defaultTheme = components.includes(\"default-theme\");\n\n if (defaultTheme && shadcn)\n throw new Error(\"default-theme cannot be used with shadcn\");\n\n if (defaultTheme || (base && !shadcn)) {\n addComponents({\n '@import \"@assistant-ui/react/styles/themes/default.css\"': \"\",\n });\n }\n\n if (base) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/base-components.css\"':\n \"\",\n });\n }\n\n if (thread) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/thread.css\"': \"\",\n });\n }\n\n if (assistantModal) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/modal.css\"': \"\",\n });\n }\n },\n ({ shadcn = false, colors = {} } = {}) => {\n const prefix = !shadcn ? \"--aui-\" : \"--\";\n return {\n theme: {\n extend: {\n colors: {\n aui: {\n border: colors.border ?? `hsl(var(${prefix}border))`,\n input: colors.input ?? `hsl(var(${prefix}input))`,\n ring: colors.ring ?? `hsl(var(${prefix}ring))`,\n background: colors.background ?? `hsl(var(${prefix}background))`,\n foreground: colors.foreground ?? `hsl(var(${prefix}foreground))`,\n primary: {\n DEFAULT:\n colors.primary?.DEFAULT ?? `hsl(var(${prefix}primary))`,\n foreground:\n colors.primary?.foreground ??\n `hsl(var(${prefix}primary-foreground))`,\n },\n secondary: {\n DEFAULT:\n colors.secondary?.DEFAULT ?? `hsl(var(${prefix}secondary))`,\n foreground:\n colors.secondary?.foreground ??\n `hsl(var(${prefix}secondary-foreground))`,\n },\n destructive: {\n DEFAULT:\n colors.destructive?.DEFAULT ??\n `hsl(var(${prefix}destructive))`,\n foreground: `hsl(var(${prefix}destructive-foreground))`,\n },\n muted: {\n DEFAULT: `hsl(var(${prefix}muted))`,\n foreground:\n colors.muted?.foreground ??\n `hsl(var(${prefix}muted-foreground))`,\n },\n accent: {\n DEFAULT: colors.accent?.DEFAULT ?? `hsl(var(${prefix}accent))`,\n foreground:\n colors.accent?.foreground ??\n `hsl(var(${prefix}accent-foreground))`,\n },\n popover: {\n DEFAULT:\n colors.popover?.DEFAULT ?? `hsl(var(${prefix}popover))`,\n foreground:\n colors.popover?.foreground ??\n `hsl(var(${prefix}popover-foreground))`,\n },\n card: {\n DEFAULT: colors.card?.DEFAULT ?? `hsl(var(${prefix}card))`,\n foreground:\n colors.card?.foreground ??\n `hsl(var(${prefix}card-foreground))`,\n },\n },\n },\n },\n },\n };\n },\n);\n\nexport default auiPlugin;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","../../src/tailwindcss/index.ts","../../src/tailwindcss/data/base-components.css.json","../../src/tailwindcss/data/thread.css.json","../../src/tailwindcss/data/modal.css.json","../../src/tailwindcss/data/default.css.json"],"names":[],"mappings":"AAAA,izBAA6B;AAC7B;AACA;ACFA,qGAAmB;ADInB;AACA;AELA,IAAA,4BAAA,EAAA;AAAA,EACE,WAAA,EAAa;AAAA,IACX,4BAAA,EAA8B,CAAC;AAAA,EACjC,CAAA;AAAA,EACA,aAAA,EAAe;AAAA,IACb,0BAAA,EAA4B,CAAC;AAAA,EAC/B,CAAA;AAAA,EACA,aAAA,EAAe;AAAA,IACb,gPAAA,EAAkP,CAAC;AAAA,EACrP,CAAA;AAAA,EACA,qBAAA,EAAuB;AAAA,IACrB,kFAAA,EAAoF,CAAC;AAAA,EACvF,CAAA;AAAA,EACA,qBAAA,EAAuB;AAAA,IACrB,iHAAA,EAAmH,CAAC;AAAA,EACtH,CAAA;AAAA,EACA,mBAAA,EAAqB;AAAA,IACnB,6DAAA,EAA+D,CAAC;AAAA,EAClE,CAAA;AAAA,EACA,oBAAA,EAAsB;AAAA,IACpB,sBAAA,EAAwB,CAAC;AAAA,EAC3B,CAAA;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,mBAAA,EAAqB,CAAC;AAAA,EACxB,CAAA;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,gBAAA,EAAkB,CAAC;AAAA,EACrB,CAAA;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,sEAAA,EAAwE,CAAC;AAAA,EAC3E,CAAA;AAAA,EACA,mBAAA,EAAqB;AAAA,IACnB,iDAAA,EAAmD,CAAC;AAAA,EACtD,CAAA;AAAA,EACA,sBAAA,EAAwB;AAAA,IACtB,iFAAA,EAAmF,CAAC;AAAA,EACtF,CAAA;AAAA,EACA,sBAAA,EAAwB;AAAA,IACtB,mZAAA,EAAqZ,CAAC;AAAA,EACxZ,CAAA;AAAA,EACA,qBAA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EACF;AACF,CAAA;AAEA,IAAO,oBAAA,EAAQ,SAAA;ADuNf;AACE;AACF,sCAAC","file":"/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","sourcesContent":[null,"import plugin from \"tailwindcss/plugin.js\";\nimport baseComponentsCSS from \"./data/base-components.css.json\";\nimport threadCSS from \"./data/thread.css.json\";\nimport modalCSS from \"./data/modal.css.json\";\nimport defaultThemeCSS from \"./data/default.css.json\";\n\ntype AssistantTailwindPluginColors = {\n border: string;\n input: string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n};\n\ntype AssisstantTailwindPluginOptions = {\n components?: (\"default-theme\" | \"base\" | \"thread\" | \"assistant-modal\")[];\n colors?: AssistantTailwindPluginColors;\n shadcn?: boolean;\n};\n\nconst auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(\n ({ components = [\"assistant-modal\", \"thread\"], shadcn = false } = {}) =>\n ({ addComponents }) => {\n const assistantModal = components.includes(\"assistant-modal\");\n const thread = assistantModal || components.includes(\"thread\");\n const base = thread || components.includes(\"base\");\n const defaultTheme = components.includes(\"default-theme\");\n\n if (defaultTheme && shadcn)\n throw new Error(\"default-theme cannot be used with shadcn\");\n\n if (defaultTheme || (base && !shadcn)) {\n addComponents(defaultThemeCSS);\n }\n\n if (base) {\n addComponents(baseComponentsCSS);\n }\n\n if (thread) {\n addComponents(threadCSS);\n }\n\n if (assistantModal) {\n addComponents(modalCSS);\n }\n },\n ({ shadcn = false, colors = {} } = {}) => {\n const prefix = !shadcn ? \"--aui-\" : \"--\";\n return {\n safelist: [{ pattern: /aui-/ }],\n theme: {\n extend: {\n colors: {\n aui: {\n border: colors.border ?? `hsl(var(${prefix}border))`,\n input: colors.input ?? `hsl(var(${prefix}input))`,\n ring: colors.ring ?? `hsl(var(${prefix}ring))`,\n background: colors.background ?? `hsl(var(${prefix}background))`,\n foreground: colors.foreground ?? `hsl(var(${prefix}foreground))`,\n primary: {\n DEFAULT:\n colors.primary?.DEFAULT ?? `hsl(var(${prefix}primary))`,\n foreground:\n colors.primary?.foreground ??\n `hsl(var(${prefix}primary-foreground))`,\n },\n secondary: {\n DEFAULT:\n colors.secondary?.DEFAULT ?? `hsl(var(${prefix}secondary))`,\n foreground:\n colors.secondary?.foreground ??\n `hsl(var(${prefix}secondary-foreground))`,\n },\n destructive: {\n DEFAULT:\n colors.destructive?.DEFAULT ??\n `hsl(var(${prefix}destructive))`,\n foreground: `hsl(var(${prefix}destructive-foreground))`,\n },\n muted: {\n DEFAULT: `hsl(var(${prefix}muted))`,\n foreground:\n colors.muted?.foreground ??\n `hsl(var(${prefix}muted-foreground))`,\n },\n accent: {\n DEFAULT: colors.accent?.DEFAULT ?? `hsl(var(${prefix}accent))`,\n foreground:\n colors.accent?.foreground ??\n `hsl(var(${prefix}accent-foreground))`,\n },\n popover: {\n DEFAULT:\n colors.popover?.DEFAULT ?? `hsl(var(${prefix}popover))`,\n foreground:\n colors.popover?.foreground ??\n `hsl(var(${prefix}popover-foreground))`,\n },\n card: {\n DEFAULT: colors.card?.DEFAULT ?? `hsl(var(${prefix}card))`,\n foreground:\n colors.card?.foreground ??\n `hsl(var(${prefix}card-foreground))`,\n },\n },\n },\n },\n },\n };\n },\n);\n\nexport default auiPlugin;\n","{\n \".aui-root\": {\n \"@apply text-aui-foreground\": {}\n },\n \".aui-root *\": {\n \"@apply border-aui-border\": {}\n },\n \".aui-button\": {\n \"@apply focus-visible:ring-aui-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\": {}\n },\n \".aui-button-primary\": {\n \"@apply bg-aui-primary text-aui-primary-foreground hover:bg-aui-primary/90 shadow\": {}\n },\n \".aui-button-outline\": {\n \"@apply border-aui-input bg-aui-background hover:bg-aui-accent hover:text-aui-accent-foreground border shadow-sm\": {}\n },\n \".aui-button-ghost\": {\n \"@apply hover:bg-aui-accent hover:text-aui-accent-foreground\": {}\n },\n \".aui-button-medium\": {\n \"@apply h-9 px-4 py-2\": {}\n },\n \".aui-button-icon\": {\n \"@apply size-6 p-1\": {}\n },\n \".aui-sr-only\": {\n \"@apply sr-only\": {}\n },\n \".aui-avatar-root\": {\n \"@apply relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\": {}\n },\n \".aui-avatar-image\": {\n \"@apply aspect-square h-full w-full object-cover\": {}\n },\n \".aui-avatar-fallback\": {\n \"@apply bg-aui-muted flex h-full w-full items-center justify-center rounded-full\": {}\n },\n \".aui-tooltip-content\": {\n \"@apply bg-aui-popover text-aui-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md\": {}\n },\n \".aui-dialog-overlay\": {\n \"@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\": {}\n },\n \".aui-dialog-content\": {\n \"@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50\": {},\n \"@apply grid translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200\": {}\n }\n}","{\n \".aui-thread-root\": {\n \"@apply bg-aui-background box-border h-full\": {},\n \"@apply [&>.aui-thread-viewport]:bg-inherit\": {}\n },\n \".aui-thread-viewport\": {\n \"@apply bg-aui-background flex h-full flex-col items-center overflow-y-scroll scroll-smooth px-4 pt-8\": {}\n },\n \".aui-thread-viewport-footer\": {\n \"@apply sticky bottom-0 mt-3 flex w-full max-w-2xl flex-col items-center justify-end rounded-t-lg bg-inherit pb-4\": {}\n },\n \".aui-thread-scroll-to-bottom\": {\n \"@apply absolute -top-8 rounded-full disabled:invisible\": {}\n },\n \".aui-thread-followup-suggestions\": {\n \"@apply flex min-h-8 items-center justify-center gap-2\": {}\n },\n \".aui-thread-followup-suggestion\": {\n \"@apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in\": {}\n },\n \".aui-thread-welcome-root\": {\n \"@apply flex w-full max-w-2xl flex-grow flex-col\": {}\n },\n \".aui-thread-welcome-center\": {\n \"@apply flex w-full flex-grow flex-col items-center justify-center\": {}\n },\n \".aui-thread-welcome-message\": {\n \"@apply mt-4 font-medium\": {}\n },\n \".aui-thread-welcome-suggestion-container\": {\n \"@apply mt-3 flex w-full items-stretch justify-center gap-4\": {}\n },\n \".aui-thread-welcome-suggestion\": {\n \"@apply hover:bg-aui-muted/80 flex max-w-sm grow basis-0 flex-col items-center justify-center rounded-lg border p-3 transition-colors ease-in\": {}\n },\n \".aui-thread-welcome-suggestion-text\": {\n \"@apply line-clamp-2 text-ellipsis text-sm font-semibold\": {}\n },\n \".aui-composer-root\": {\n \"@apply focus-within:border-aui-ring/20 flex w-full flex-wrap items-end rounded-lg border bg-inherit px-2.5 shadow-sm transition-colors ease-in\": {}\n },\n \".aui-composer-input\": {\n \"@apply placeholder:text-aui-muted-foreground max-h-40 flex-grow resize-none border-none bg-transparent px-2 py-4 text-sm outline-none focus:ring-0 disabled:cursor-not-allowed\": {}\n },\n \".aui-composer-send,\\n.aui-composer-cancel,\\n.aui-composer-attach\": {\n \"@apply my-2.5 size-8 p-2 transition-opacity ease-in\": {}\n },\n \".aui-composer-attachments\": {\n \"@apply flex w-full flex-row gap-3 px-10\": {}\n },\n \".aui-attachment-root\": {\n \"@apply relative mt-3 flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1\": {}\n },\n \".aui-attachment-preview-trigger\": {\n \"@apply hover:bg-aui-accent/50 cursor-pointer transition-colors\": {}\n },\n \".aui-attachment-thumb\": {\n \"@apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm\": {}\n },\n \".aui-attachment-text\": {\n \"@apply flex-grow basis-0\": {}\n },\n \".aui-attachment-name\": {\n \"@apply text-aui-muted-foreground line-clamp-1 text-ellipsis text-xs font-bold\": {}\n },\n \".aui-attachment-type\": {\n \"@apply text-aui-muted-foreground text-xs\": {}\n },\n \".aui-attachment-remove\": {\n \"@apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full\": {}\n },\n \".aui-user-message-root\": {\n \"@apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&>*]:col-start-2\": {},\n \"@apply w-full max-w-2xl py-4\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-action-bar-root\": {\n \"@apply col-start-1 row-start-2 mr-3 mt-2.5\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-message-attachments\": {\n \"@apply col-span-full col-start-1 row-start-1\": {},\n \"@apply justify-end\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-message-content\": {\n \"@apply col-start-2 row-start-2\": {}\n },\n \":where(.aui-user-message-root) > .aui-branch-picker-root\": {\n \"@apply col-span-full col-start-1 row-start-3\": {},\n \"@apply -mr-1 justify-end\": {}\n },\n \".aui-user-message-content\": {\n \"@apply bg-aui-muted text-aui-foreground max-w-xl break-words rounded-3xl px-5 py-2.5\": {}\n },\n \".aui-user-message-attachments\": {\n \"@apply flex w-full flex-row gap-3\": {}\n },\n \".aui-user-action-bar-root\": {\n \"@apply flex flex-col items-end\": {}\n },\n \".aui-edit-composer-root\": {\n \"@apply bg-aui-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl\": {}\n },\n \".aui-edit-composer-input\": {\n \"@apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none\": {}\n },\n \".aui-edit-composer-footer\": {\n \"@apply mx-3 mb-3 flex items-center justify-center gap-2 self-end\": {}\n },\n \".aui-assistant-message-root\": {\n \"@apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr]\": {},\n \"@apply relative w-full max-w-2xl py-4\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-avatar-root\": {\n \"@apply col-start-1 row-span-full row-start-1 mr-4\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-branch-picker-root\": {\n \"@apply col-start-2 row-start-2\": {},\n \"@apply -ml-2 mr-2\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-assistant-action-bar-root\": {\n \"@apply col-start-3 row-start-2\": {},\n \"@apply -ml-1\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-assistant-message-content\": {\n \"@apply col-span-2 col-start-2 row-start-1 my-1.5\": {}\n },\n \".aui-assistant-message-content\": {\n \"@apply text-aui-foreground max-w-xl break-words leading-7\": {}\n },\n \".aui-assistant-action-bar-root\": {\n \"@apply text-aui-muted-foreground flex gap-1\": {}\n },\n \":where(.aui-assistant-action-bar-root)[data-floating]\": {\n \"@apply bg-aui-background absolute rounded-md border p-1 shadow-sm\": {}\n },\n \":where(.aui-assistant-action-bar-feedback-positive)[data-submitted]\": {\n \"@apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400\": {}\n },\n \":where(.aui-assistant-action-bar-feedback-negative)[data-submitted]\": {\n \"@apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400\": {}\n },\n \".aui-branch-picker-root\": {\n \"@apply text-aui-muted-foreground inline-flex items-center text-xs\": {}\n },\n \".aui-branch-picker-state\": {\n \"@apply font-medium\": {}\n },\n \".aui-text\": {\n \"@apply whitespace-pre-line\": {}\n },\n \".aui-text-running::after\": {\n \"@apply animate-pulse font-sans content-['\\\\25CF'] ltr:ml-1 rtl:mr-1\": {}\n }\n}","{\n \".aui-modal-content\": {\n \"@apply bg-aui-popover text-aui-popover-foreground z-50 h-[500px] w-[400px] overflow-clip rounded-xl border p-0 shadow-md outline-none\": {},\n \"@apply [&>.aui-thread-root]:bg-inherit\": {},\n \"@apply data-[state=closed]:animate-out data-[state=open]:animate-in\": {},\n \"@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\": {},\n \"@apply data-[state=closed]:zoom-out data-[state=open]:zoom-in\": {},\n \"@apply data-[state=open]:slide-in-from-bottom-1/2 data-[state=open]:slide-in-from-right-1/2 data-[state=closed]:slide-out-to-bottom-1/2 data-[state=closed]:slide-out-to-right-1/2\": {}\n },\n \".aui-modal-anchor\": {\n \"@apply fixed bottom-4 right-4 size-11\": {}\n },\n \".aui-modal-button\": {\n \"@apply size-full rounded-full shadow transition-transform hover:scale-110 active:scale-90\": {}\n },\n \".aui-modal-button-closed-icon\": {\n \"@apply absolute size-6 transition-all\": {},\n \"@apply data-[state=closed]:rotate-0 data-[state=open]:rotate-90\": {},\n \"@apply data-[state=closed]:scale-100 data-[state=open]:scale-0\": {}\n },\n \".aui-modal-button-open-icon\": {\n \"@apply absolute size-6 transition-all\": {},\n \"@apply data-[state=closed]:-rotate-90 data-[state=open]:rotate-0\": {},\n \"@apply data-[state=closed]:scale-0 data-[state=open]:scale-100\": {}\n }\n}","{\n \":root\": {\n \"--aui-background\": \"0 0% 100%\",\n \"--aui-foreground\": \"240 10% 3.9%\",\n \"--aui-card\": \"0 0% 100%\",\n \"--aui-card-foreground\": \"240 10% 3.9%\",\n \"--aui-popover\": \"0 0% 100%\",\n \"--aui-popover-foreground\": \"240 10% 3.9%\",\n \"--aui-primary\": \"240 5.9% 10%\",\n \"--aui-primary-foreground\": \"0 0% 98%\",\n \"--aui-secondary\": \"240 4.8% 95.9%\",\n \"--aui-secondary-foreground\": \"240 5.9% 10%\",\n \"--aui-muted\": \"240 4.8% 95.9%\",\n \"--aui-muted-foreground\": \"240 3.8% 46.1%\",\n \"--aui-accent\": \"240 4.8% 95.9%\",\n \"--aui-accent-foreground\": \"240 5.9% 10%\",\n \"--aui-destructive\": \"0 84.2% 60.2%\",\n \"--aui-destructive-foreground\": \"0 0% 98%\",\n \"--aui-border\": \"240 5.9% 90%\",\n \"--aui-input\": \"240 5.9% 90%\",\n \"--aui-ring\": \"240 10% 3.9%\",\n \"--aui-radius\": \"0.5rem\"\n },\n \".dark\": {\n \"--aui-background\": \"0 0% 7%\",\n \"--aui-foreground\": \"0 0% 98%\",\n \"--aui-card\": \"240 10% 3.9%\",\n \"--aui-card-foreground\": \"0 0% 98%\",\n \"--aui-popover\": \"240 10% 3.9%\",\n \"--aui-popover-foreground\": \"0 0% 98%\",\n \"--aui-primary\": \"0 0% 98%\",\n \"--aui-primary-foreground\": \"240 5.9% 10%\",\n \"--aui-secondary\": \"240 3.7% 15.9%\",\n \"--aui-secondary-foreground\": \"0 0% 98%\",\n \"--aui-muted\": \"240 3.7% 15.9%\",\n \"--aui-muted-foreground\": \"240 5% 64.9%\",\n \"--aui-accent\": \"240 3.7% 15.9%\",\n \"--aui-accent-foreground\": \"0 0% 98%\",\n \"--aui-destructive\": \"0 62.8% 30.6%\",\n \"--aui-destructive-foreground\": \"0 0% 98%\",\n \"--aui-border\": \"240 3.7% 15.9%\",\n \"--aui-input\": \"240 3.7% 15.9%\",\n \"--aui-ring\": \"240 4.9% 83.9%\"\n }\n}"]}
@@ -3,6 +3,288 @@ import "../chunk-BJPOCE4O.mjs";
3
3
 
4
4
  // src/tailwindcss/index.ts
5
5
  import plugin from "tailwindcss/plugin.js";
6
+
7
+ // src/tailwindcss/data/base-components.css.json
8
+ var base_components_css_default = {
9
+ ".aui-root": {
10
+ "@apply text-aui-foreground": {}
11
+ },
12
+ ".aui-root *": {
13
+ "@apply border-aui-border": {}
14
+ },
15
+ ".aui-button": {
16
+ "@apply focus-visible:ring-aui-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50": {}
17
+ },
18
+ ".aui-button-primary": {
19
+ "@apply bg-aui-primary text-aui-primary-foreground hover:bg-aui-primary/90 shadow": {}
20
+ },
21
+ ".aui-button-outline": {
22
+ "@apply border-aui-input bg-aui-background hover:bg-aui-accent hover:text-aui-accent-foreground border shadow-sm": {}
23
+ },
24
+ ".aui-button-ghost": {
25
+ "@apply hover:bg-aui-accent hover:text-aui-accent-foreground": {}
26
+ },
27
+ ".aui-button-medium": {
28
+ "@apply h-9 px-4 py-2": {}
29
+ },
30
+ ".aui-button-icon": {
31
+ "@apply size-6 p-1": {}
32
+ },
33
+ ".aui-sr-only": {
34
+ "@apply sr-only": {}
35
+ },
36
+ ".aui-avatar-root": {
37
+ "@apply relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full": {}
38
+ },
39
+ ".aui-avatar-image": {
40
+ "@apply aspect-square h-full w-full object-cover": {}
41
+ },
42
+ ".aui-avatar-fallback": {
43
+ "@apply bg-aui-muted flex h-full w-full items-center justify-center rounded-full": {}
44
+ },
45
+ ".aui-tooltip-content": {
46
+ "@apply bg-aui-popover text-aui-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md": {}
47
+ },
48
+ ".aui-dialog-overlay": {
49
+ "@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80": {}
50
+ },
51
+ ".aui-dialog-content": {
52
+ "@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50": {},
53
+ "@apply grid translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200": {}
54
+ }
55
+ };
56
+
57
+ // src/tailwindcss/data/thread.css.json
58
+ var thread_css_default = {
59
+ ".aui-thread-root": {
60
+ "@apply bg-aui-background box-border h-full": {},
61
+ "@apply [&>.aui-thread-viewport]:bg-inherit": {}
62
+ },
63
+ ".aui-thread-viewport": {
64
+ "@apply bg-aui-background flex h-full flex-col items-center overflow-y-scroll scroll-smooth px-4 pt-8": {}
65
+ },
66
+ ".aui-thread-viewport-footer": {
67
+ "@apply sticky bottom-0 mt-3 flex w-full max-w-2xl flex-col items-center justify-end rounded-t-lg bg-inherit pb-4": {}
68
+ },
69
+ ".aui-thread-scroll-to-bottom": {
70
+ "@apply absolute -top-8 rounded-full disabled:invisible": {}
71
+ },
72
+ ".aui-thread-followup-suggestions": {
73
+ "@apply flex min-h-8 items-center justify-center gap-2": {}
74
+ },
75
+ ".aui-thread-followup-suggestion": {
76
+ "@apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in": {}
77
+ },
78
+ ".aui-thread-welcome-root": {
79
+ "@apply flex w-full max-w-2xl flex-grow flex-col": {}
80
+ },
81
+ ".aui-thread-welcome-center": {
82
+ "@apply flex w-full flex-grow flex-col items-center justify-center": {}
83
+ },
84
+ ".aui-thread-welcome-message": {
85
+ "@apply mt-4 font-medium": {}
86
+ },
87
+ ".aui-thread-welcome-suggestion-container": {
88
+ "@apply mt-3 flex w-full items-stretch justify-center gap-4": {}
89
+ },
90
+ ".aui-thread-welcome-suggestion": {
91
+ "@apply hover:bg-aui-muted/80 flex max-w-sm grow basis-0 flex-col items-center justify-center rounded-lg border p-3 transition-colors ease-in": {}
92
+ },
93
+ ".aui-thread-welcome-suggestion-text": {
94
+ "@apply line-clamp-2 text-ellipsis text-sm font-semibold": {}
95
+ },
96
+ ".aui-composer-root": {
97
+ "@apply focus-within:border-aui-ring/20 flex w-full flex-wrap items-end rounded-lg border bg-inherit px-2.5 shadow-sm transition-colors ease-in": {}
98
+ },
99
+ ".aui-composer-input": {
100
+ "@apply placeholder:text-aui-muted-foreground max-h-40 flex-grow resize-none border-none bg-transparent px-2 py-4 text-sm outline-none focus:ring-0 disabled:cursor-not-allowed": {}
101
+ },
102
+ ".aui-composer-send,\n.aui-composer-cancel,\n.aui-composer-attach": {
103
+ "@apply my-2.5 size-8 p-2 transition-opacity ease-in": {}
104
+ },
105
+ ".aui-composer-attachments": {
106
+ "@apply flex w-full flex-row gap-3 px-10": {}
107
+ },
108
+ ".aui-attachment-root": {
109
+ "@apply relative mt-3 flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1": {}
110
+ },
111
+ ".aui-attachment-preview-trigger": {
112
+ "@apply hover:bg-aui-accent/50 cursor-pointer transition-colors": {}
113
+ },
114
+ ".aui-attachment-thumb": {
115
+ "@apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm": {}
116
+ },
117
+ ".aui-attachment-text": {
118
+ "@apply flex-grow basis-0": {}
119
+ },
120
+ ".aui-attachment-name": {
121
+ "@apply text-aui-muted-foreground line-clamp-1 text-ellipsis text-xs font-bold": {}
122
+ },
123
+ ".aui-attachment-type": {
124
+ "@apply text-aui-muted-foreground text-xs": {}
125
+ },
126
+ ".aui-attachment-remove": {
127
+ "@apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full": {}
128
+ },
129
+ ".aui-user-message-root": {
130
+ "@apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&>*]:col-start-2": {},
131
+ "@apply w-full max-w-2xl py-4": {}
132
+ },
133
+ ":where(.aui-user-message-root) > .aui-user-action-bar-root": {
134
+ "@apply col-start-1 row-start-2 mr-3 mt-2.5": {}
135
+ },
136
+ ":where(.aui-user-message-root) > .aui-user-message-attachments": {
137
+ "@apply col-span-full col-start-1 row-start-1": {},
138
+ "@apply justify-end": {}
139
+ },
140
+ ":where(.aui-user-message-root) > .aui-user-message-content": {
141
+ "@apply col-start-2 row-start-2": {}
142
+ },
143
+ ":where(.aui-user-message-root) > .aui-branch-picker-root": {
144
+ "@apply col-span-full col-start-1 row-start-3": {},
145
+ "@apply -mr-1 justify-end": {}
146
+ },
147
+ ".aui-user-message-content": {
148
+ "@apply bg-aui-muted text-aui-foreground max-w-xl break-words rounded-3xl px-5 py-2.5": {}
149
+ },
150
+ ".aui-user-message-attachments": {
151
+ "@apply flex w-full flex-row gap-3": {}
152
+ },
153
+ ".aui-user-action-bar-root": {
154
+ "@apply flex flex-col items-end": {}
155
+ },
156
+ ".aui-edit-composer-root": {
157
+ "@apply bg-aui-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl": {}
158
+ },
159
+ ".aui-edit-composer-input": {
160
+ "@apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none": {}
161
+ },
162
+ ".aui-edit-composer-footer": {
163
+ "@apply mx-3 mb-3 flex items-center justify-center gap-2 self-end": {}
164
+ },
165
+ ".aui-assistant-message-root": {
166
+ "@apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr]": {},
167
+ "@apply relative w-full max-w-2xl py-4": {}
168
+ },
169
+ ":where(.aui-assistant-message-root) > .aui-avatar-root": {
170
+ "@apply col-start-1 row-span-full row-start-1 mr-4": {}
171
+ },
172
+ ":where(.aui-assistant-message-root) > .aui-branch-picker-root": {
173
+ "@apply col-start-2 row-start-2": {},
174
+ "@apply -ml-2 mr-2": {}
175
+ },
176
+ ":where(.aui-assistant-message-root) > .aui-assistant-action-bar-root": {
177
+ "@apply col-start-3 row-start-2": {},
178
+ "@apply -ml-1": {}
179
+ },
180
+ ":where(.aui-assistant-message-root) > .aui-assistant-message-content": {
181
+ "@apply col-span-2 col-start-2 row-start-1 my-1.5": {}
182
+ },
183
+ ".aui-assistant-message-content": {
184
+ "@apply text-aui-foreground max-w-xl break-words leading-7": {}
185
+ },
186
+ ".aui-assistant-action-bar-root": {
187
+ "@apply text-aui-muted-foreground flex gap-1": {}
188
+ },
189
+ ":where(.aui-assistant-action-bar-root)[data-floating]": {
190
+ "@apply bg-aui-background absolute rounded-md border p-1 shadow-sm": {}
191
+ },
192
+ ":where(.aui-assistant-action-bar-feedback-positive)[data-submitted]": {
193
+ "@apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400": {}
194
+ },
195
+ ":where(.aui-assistant-action-bar-feedback-negative)[data-submitted]": {
196
+ "@apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400": {}
197
+ },
198
+ ".aui-branch-picker-root": {
199
+ "@apply text-aui-muted-foreground inline-flex items-center text-xs": {}
200
+ },
201
+ ".aui-branch-picker-state": {
202
+ "@apply font-medium": {}
203
+ },
204
+ ".aui-text": {
205
+ "@apply whitespace-pre-line": {}
206
+ },
207
+ ".aui-text-running::after": {
208
+ "@apply animate-pulse font-sans content-['\\25CF'] ltr:ml-1 rtl:mr-1": {}
209
+ }
210
+ };
211
+
212
+ // src/tailwindcss/data/modal.css.json
213
+ var modal_css_default = {
214
+ ".aui-modal-content": {
215
+ "@apply bg-aui-popover text-aui-popover-foreground z-50 h-[500px] w-[400px] overflow-clip rounded-xl border p-0 shadow-md outline-none": {},
216
+ "@apply [&>.aui-thread-root]:bg-inherit": {},
217
+ "@apply data-[state=closed]:animate-out data-[state=open]:animate-in": {},
218
+ "@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0": {},
219
+ "@apply data-[state=closed]:zoom-out data-[state=open]:zoom-in": {},
220
+ "@apply data-[state=open]:slide-in-from-bottom-1/2 data-[state=open]:slide-in-from-right-1/2 data-[state=closed]:slide-out-to-bottom-1/2 data-[state=closed]:slide-out-to-right-1/2": {}
221
+ },
222
+ ".aui-modal-anchor": {
223
+ "@apply fixed bottom-4 right-4 size-11": {}
224
+ },
225
+ ".aui-modal-button": {
226
+ "@apply size-full rounded-full shadow transition-transform hover:scale-110 active:scale-90": {}
227
+ },
228
+ ".aui-modal-button-closed-icon": {
229
+ "@apply absolute size-6 transition-all": {},
230
+ "@apply data-[state=closed]:rotate-0 data-[state=open]:rotate-90": {},
231
+ "@apply data-[state=closed]:scale-100 data-[state=open]:scale-0": {}
232
+ },
233
+ ".aui-modal-button-open-icon": {
234
+ "@apply absolute size-6 transition-all": {},
235
+ "@apply data-[state=closed]:-rotate-90 data-[state=open]:rotate-0": {},
236
+ "@apply data-[state=closed]:scale-0 data-[state=open]:scale-100": {}
237
+ }
238
+ };
239
+
240
+ // src/tailwindcss/data/default.css.json
241
+ var default_css_default = {
242
+ ":root": {
243
+ "--aui-background": "0 0% 100%",
244
+ "--aui-foreground": "240 10% 3.9%",
245
+ "--aui-card": "0 0% 100%",
246
+ "--aui-card-foreground": "240 10% 3.9%",
247
+ "--aui-popover": "0 0% 100%",
248
+ "--aui-popover-foreground": "240 10% 3.9%",
249
+ "--aui-primary": "240 5.9% 10%",
250
+ "--aui-primary-foreground": "0 0% 98%",
251
+ "--aui-secondary": "240 4.8% 95.9%",
252
+ "--aui-secondary-foreground": "240 5.9% 10%",
253
+ "--aui-muted": "240 4.8% 95.9%",
254
+ "--aui-muted-foreground": "240 3.8% 46.1%",
255
+ "--aui-accent": "240 4.8% 95.9%",
256
+ "--aui-accent-foreground": "240 5.9% 10%",
257
+ "--aui-destructive": "0 84.2% 60.2%",
258
+ "--aui-destructive-foreground": "0 0% 98%",
259
+ "--aui-border": "240 5.9% 90%",
260
+ "--aui-input": "240 5.9% 90%",
261
+ "--aui-ring": "240 10% 3.9%",
262
+ "--aui-radius": "0.5rem"
263
+ },
264
+ ".dark": {
265
+ "--aui-background": "0 0% 7%",
266
+ "--aui-foreground": "0 0% 98%",
267
+ "--aui-card": "240 10% 3.9%",
268
+ "--aui-card-foreground": "0 0% 98%",
269
+ "--aui-popover": "240 10% 3.9%",
270
+ "--aui-popover-foreground": "0 0% 98%",
271
+ "--aui-primary": "0 0% 98%",
272
+ "--aui-primary-foreground": "240 5.9% 10%",
273
+ "--aui-secondary": "240 3.7% 15.9%",
274
+ "--aui-secondary-foreground": "0 0% 98%",
275
+ "--aui-muted": "240 3.7% 15.9%",
276
+ "--aui-muted-foreground": "240 5% 64.9%",
277
+ "--aui-accent": "240 3.7% 15.9%",
278
+ "--aui-accent-foreground": "0 0% 98%",
279
+ "--aui-destructive": "0 62.8% 30.6%",
280
+ "--aui-destructive-foreground": "0 0% 98%",
281
+ "--aui-border": "240 3.7% 15.9%",
282
+ "--aui-input": "240 3.7% 15.9%",
283
+ "--aui-ring": "240 4.9% 83.9%"
284
+ }
285
+ };
286
+
287
+ // src/tailwindcss/index.ts
6
288
  var auiPlugin = plugin.withOptions(
7
289
  ({ components = ["assistant-modal", "thread"], shadcn = false } = {}) => ({ addComponents }) => {
8
290
  const assistantModal = components.includes("assistant-modal");
@@ -12,29 +294,22 @@ var auiPlugin = plugin.withOptions(
12
294
  if (defaultTheme && shadcn)
13
295
  throw new Error("default-theme cannot be used with shadcn");
14
296
  if (defaultTheme || base && !shadcn) {
15
- addComponents({
16
- '@import "@assistant-ui/react/styles/themes/default.css"': ""
17
- });
297
+ addComponents(default_css_default);
18
298
  }
19
299
  if (base) {
20
- addComponents({
21
- '@import "@assistant-ui/react/styles/tailwindcss/base-components.css"': ""
22
- });
300
+ addComponents(base_components_css_default);
23
301
  }
24
302
  if (thread) {
25
- addComponents({
26
- '@import "@assistant-ui/react/styles/tailwindcss/thread.css"': ""
27
- });
303
+ addComponents(thread_css_default);
28
304
  }
29
305
  if (assistantModal) {
30
- addComponents({
31
- '@import "@assistant-ui/react/styles/tailwindcss/modal.css"': ""
32
- });
306
+ addComponents(modal_css_default);
33
307
  }
34
308
  },
35
309
  ({ shadcn = false, colors = {} } = {}) => {
36
310
  const prefix = !shadcn ? "--aui-" : "--";
37
311
  return {
312
+ safelist: [{ pattern: /aui-/ }],
38
313
  theme: {
39
314
  extend: {
40
315
  colors: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/tailwindcss/index.ts"],"sourcesContent":["import plugin from \"tailwindcss/plugin.js\";\n\ntype AssistantTailwindPluginColors = {\n border: string;\n input: string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n};\n\ntype AssisstantTailwindPluginOptions = {\n components?: (\"default-theme\" | \"base\" | \"thread\" | \"assistant-modal\")[];\n colors?: AssistantTailwindPluginColors;\n shadcn?: boolean;\n};\n\nconst auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(\n ({ components = [\"assistant-modal\", \"thread\"], shadcn = false } = {}) =>\n ({ addComponents }) => {\n const assistantModal = components.includes(\"assistant-modal\");\n const thread = assistantModal || components.includes(\"thread\");\n const base = thread || components.includes(\"base\");\n const defaultTheme = components.includes(\"default-theme\");\n\n if (defaultTheme && shadcn)\n throw new Error(\"default-theme cannot be used with shadcn\");\n\n if (defaultTheme || (base && !shadcn)) {\n addComponents({\n '@import \"@assistant-ui/react/styles/themes/default.css\"': \"\",\n });\n }\n\n if (base) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/base-components.css\"':\n \"\",\n });\n }\n\n if (thread) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/thread.css\"': \"\",\n });\n }\n\n if (assistantModal) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/modal.css\"': \"\",\n });\n }\n },\n ({ shadcn = false, colors = {} } = {}) => {\n const prefix = !shadcn ? \"--aui-\" : \"--\";\n return {\n theme: {\n extend: {\n colors: {\n aui: {\n border: colors.border ?? `hsl(var(${prefix}border))`,\n input: colors.input ?? `hsl(var(${prefix}input))`,\n ring: colors.ring ?? `hsl(var(${prefix}ring))`,\n background: colors.background ?? `hsl(var(${prefix}background))`,\n foreground: colors.foreground ?? `hsl(var(${prefix}foreground))`,\n primary: {\n DEFAULT:\n colors.primary?.DEFAULT ?? `hsl(var(${prefix}primary))`,\n foreground:\n colors.primary?.foreground ??\n `hsl(var(${prefix}primary-foreground))`,\n },\n secondary: {\n DEFAULT:\n colors.secondary?.DEFAULT ?? `hsl(var(${prefix}secondary))`,\n foreground:\n colors.secondary?.foreground ??\n `hsl(var(${prefix}secondary-foreground))`,\n },\n destructive: {\n DEFAULT:\n colors.destructive?.DEFAULT ??\n `hsl(var(${prefix}destructive))`,\n foreground: `hsl(var(${prefix}destructive-foreground))`,\n },\n muted: {\n DEFAULT: `hsl(var(${prefix}muted))`,\n foreground:\n colors.muted?.foreground ??\n `hsl(var(${prefix}muted-foreground))`,\n },\n accent: {\n DEFAULT: colors.accent?.DEFAULT ?? `hsl(var(${prefix}accent))`,\n foreground:\n colors.accent?.foreground ??\n `hsl(var(${prefix}accent-foreground))`,\n },\n popover: {\n DEFAULT:\n colors.popover?.DEFAULT ?? `hsl(var(${prefix}popover))`,\n foreground:\n colors.popover?.foreground ??\n `hsl(var(${prefix}popover-foreground))`,\n },\n card: {\n DEFAULT: colors.card?.DEFAULT ?? `hsl(var(${prefix}card))`,\n foreground:\n colors.card?.foreground ??\n `hsl(var(${prefix}card-foreground))`,\n },\n },\n },\n },\n },\n };\n },\n);\n\nexport default auiPlugin;\n"],"mappings":";;;;AAAA,OAAO,YAAY;AA4CnB,IAAM,Y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,cACA,WAAW;AAAA,gBACT,SACE,OAAO,WAAW,WAAW,WAAW,MAAM;AAAA,gBAChD,YACE,OAAO,WAAW,cAClB,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,aAAa;AAAA,gBACX,SACE,OAAO,aAAa,WACpB,WAAW,MAAM;AAAA,gBACnB,YAAY,WAAW,MAAM;AAAA,cAC/B;AAAA,cACA,OAAO;AAAA,gBACL,SAAS,WAAW,MAAM;AAAA,gBAC1B,YACE,OAAO,OAAO,cACd,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,QAAQ;AAAA,gBACN,SAAS,OAAO,QAAQ,WAAW,WAAW,MAAM;AAAA,gBACpD,YACE,OAAO,QAAQ,cACf,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,SAAS;AAAA,gBACP,SACE,OAAO,SAAS,WAAW,WAAW,MAAM;AAAA,gBAC9C,YACE,OAAO,SAAS,cAChB,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,MAAM;AAAA,gBACJ,SAAS,OAAO,MAAM,WAAW,WAAW,MAAM;AAAA,gBAClD,YACE,OAAO,MAAM,cACb,WAAW,MAAM;AAAA,cACrB;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,sBAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/tailwindcss/index.ts","../../src/tailwindcss/data/base-components.css.json","../../src/tailwindcss/data/thread.css.json","../../src/tailwindcss/data/modal.css.json","../../src/tailwindcss/data/default.css.json"],"sourcesContent":["import plugin from \"tailwindcss/plugin.js\";\nimport baseComponentsCSS from \"./data/base-components.css.json\";\nimport threadCSS from \"./data/thread.css.json\";\nimport modalCSS from \"./data/modal.css.json\";\nimport defaultThemeCSS from \"./data/default.css.json\";\n\ntype AssistantTailwindPluginColors = {\n border: string;\n input: string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n};\n\ntype AssisstantTailwindPluginOptions = {\n components?: (\"default-theme\" | \"base\" | \"thread\" | \"assistant-modal\")[];\n colors?: AssistantTailwindPluginColors;\n shadcn?: boolean;\n};\n\nconst auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(\n ({ components = [\"assistant-modal\", \"thread\"], shadcn = false } = {}) =>\n ({ addComponents }) => {\n const assistantModal = components.includes(\"assistant-modal\");\n const thread = assistantModal || components.includes(\"thread\");\n const base = thread || components.includes(\"base\");\n const defaultTheme = components.includes(\"default-theme\");\n\n if (defaultTheme && shadcn)\n throw new Error(\"default-theme cannot be used with shadcn\");\n\n if (defaultTheme || (base && !shadcn)) {\n addComponents(defaultThemeCSS);\n }\n\n if (base) {\n addComponents(baseComponentsCSS);\n }\n\n if (thread) {\n addComponents(threadCSS);\n }\n\n if (assistantModal) {\n addComponents(modalCSS);\n }\n },\n ({ shadcn = false, colors = {} } = {}) => {\n const prefix = !shadcn ? \"--aui-\" : \"--\";\n return {\n safelist: [{ pattern: /aui-/ }],\n theme: {\n extend: {\n colors: {\n aui: {\n border: colors.border ?? `hsl(var(${prefix}border))`,\n input: colors.input ?? `hsl(var(${prefix}input))`,\n ring: colors.ring ?? `hsl(var(${prefix}ring))`,\n background: colors.background ?? `hsl(var(${prefix}background))`,\n foreground: colors.foreground ?? `hsl(var(${prefix}foreground))`,\n primary: {\n DEFAULT:\n colors.primary?.DEFAULT ?? `hsl(var(${prefix}primary))`,\n foreground:\n colors.primary?.foreground ??\n `hsl(var(${prefix}primary-foreground))`,\n },\n secondary: {\n DEFAULT:\n colors.secondary?.DEFAULT ?? `hsl(var(${prefix}secondary))`,\n foreground:\n colors.secondary?.foreground ??\n `hsl(var(${prefix}secondary-foreground))`,\n },\n destructive: {\n DEFAULT:\n colors.destructive?.DEFAULT ??\n `hsl(var(${prefix}destructive))`,\n foreground: `hsl(var(${prefix}destructive-foreground))`,\n },\n muted: {\n DEFAULT: `hsl(var(${prefix}muted))`,\n foreground:\n colors.muted?.foreground ??\n `hsl(var(${prefix}muted-foreground))`,\n },\n accent: {\n DEFAULT: colors.accent?.DEFAULT ?? `hsl(var(${prefix}accent))`,\n foreground:\n colors.accent?.foreground ??\n `hsl(var(${prefix}accent-foreground))`,\n },\n popover: {\n DEFAULT:\n colors.popover?.DEFAULT ?? `hsl(var(${prefix}popover))`,\n foreground:\n colors.popover?.foreground ??\n `hsl(var(${prefix}popover-foreground))`,\n },\n card: {\n DEFAULT: colors.card?.DEFAULT ?? `hsl(var(${prefix}card))`,\n foreground:\n colors.card?.foreground ??\n `hsl(var(${prefix}card-foreground))`,\n },\n },\n },\n },\n },\n };\n },\n);\n\nexport default auiPlugin;\n","{\n \".aui-root\": {\n \"@apply text-aui-foreground\": {}\n },\n \".aui-root *\": {\n \"@apply border-aui-border\": {}\n },\n \".aui-button\": {\n \"@apply focus-visible:ring-aui-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\": {}\n },\n \".aui-button-primary\": {\n \"@apply bg-aui-primary text-aui-primary-foreground hover:bg-aui-primary/90 shadow\": {}\n },\n \".aui-button-outline\": {\n \"@apply border-aui-input bg-aui-background hover:bg-aui-accent hover:text-aui-accent-foreground border shadow-sm\": {}\n },\n \".aui-button-ghost\": {\n \"@apply hover:bg-aui-accent hover:text-aui-accent-foreground\": {}\n },\n \".aui-button-medium\": {\n \"@apply h-9 px-4 py-2\": {}\n },\n \".aui-button-icon\": {\n \"@apply size-6 p-1\": {}\n },\n \".aui-sr-only\": {\n \"@apply sr-only\": {}\n },\n \".aui-avatar-root\": {\n \"@apply relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\": {}\n },\n \".aui-avatar-image\": {\n \"@apply aspect-square h-full w-full object-cover\": {}\n },\n \".aui-avatar-fallback\": {\n \"@apply bg-aui-muted flex h-full w-full items-center justify-center rounded-full\": {}\n },\n \".aui-tooltip-content\": {\n \"@apply bg-aui-popover text-aui-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md\": {}\n },\n \".aui-dialog-overlay\": {\n \"@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\": {}\n },\n \".aui-dialog-content\": {\n \"@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50\": {},\n \"@apply grid translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200\": {}\n }\n}","{\n \".aui-thread-root\": {\n \"@apply bg-aui-background box-border h-full\": {},\n \"@apply [&>.aui-thread-viewport]:bg-inherit\": {}\n },\n \".aui-thread-viewport\": {\n \"@apply bg-aui-background flex h-full flex-col items-center overflow-y-scroll scroll-smooth px-4 pt-8\": {}\n },\n \".aui-thread-viewport-footer\": {\n \"@apply sticky bottom-0 mt-3 flex w-full max-w-2xl flex-col items-center justify-end rounded-t-lg bg-inherit pb-4\": {}\n },\n \".aui-thread-scroll-to-bottom\": {\n \"@apply absolute -top-8 rounded-full disabled:invisible\": {}\n },\n \".aui-thread-followup-suggestions\": {\n \"@apply flex min-h-8 items-center justify-center gap-2\": {}\n },\n \".aui-thread-followup-suggestion\": {\n \"@apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in\": {}\n },\n \".aui-thread-welcome-root\": {\n \"@apply flex w-full max-w-2xl flex-grow flex-col\": {}\n },\n \".aui-thread-welcome-center\": {\n \"@apply flex w-full flex-grow flex-col items-center justify-center\": {}\n },\n \".aui-thread-welcome-message\": {\n \"@apply mt-4 font-medium\": {}\n },\n \".aui-thread-welcome-suggestion-container\": {\n \"@apply mt-3 flex w-full items-stretch justify-center gap-4\": {}\n },\n \".aui-thread-welcome-suggestion\": {\n \"@apply hover:bg-aui-muted/80 flex max-w-sm grow basis-0 flex-col items-center justify-center rounded-lg border p-3 transition-colors ease-in\": {}\n },\n \".aui-thread-welcome-suggestion-text\": {\n \"@apply line-clamp-2 text-ellipsis text-sm font-semibold\": {}\n },\n \".aui-composer-root\": {\n \"@apply focus-within:border-aui-ring/20 flex w-full flex-wrap items-end rounded-lg border bg-inherit px-2.5 shadow-sm transition-colors ease-in\": {}\n },\n \".aui-composer-input\": {\n \"@apply placeholder:text-aui-muted-foreground max-h-40 flex-grow resize-none border-none bg-transparent px-2 py-4 text-sm outline-none focus:ring-0 disabled:cursor-not-allowed\": {}\n },\n \".aui-composer-send,\\n.aui-composer-cancel,\\n.aui-composer-attach\": {\n \"@apply my-2.5 size-8 p-2 transition-opacity ease-in\": {}\n },\n \".aui-composer-attachments\": {\n \"@apply flex w-full flex-row gap-3 px-10\": {}\n },\n \".aui-attachment-root\": {\n \"@apply relative mt-3 flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1\": {}\n },\n \".aui-attachment-preview-trigger\": {\n \"@apply hover:bg-aui-accent/50 cursor-pointer transition-colors\": {}\n },\n \".aui-attachment-thumb\": {\n \"@apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm\": {}\n },\n \".aui-attachment-text\": {\n \"@apply flex-grow basis-0\": {}\n },\n \".aui-attachment-name\": {\n \"@apply text-aui-muted-foreground line-clamp-1 text-ellipsis text-xs font-bold\": {}\n },\n \".aui-attachment-type\": {\n \"@apply text-aui-muted-foreground text-xs\": {}\n },\n \".aui-attachment-remove\": {\n \"@apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full\": {}\n },\n \".aui-user-message-root\": {\n \"@apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&>*]:col-start-2\": {},\n \"@apply w-full max-w-2xl py-4\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-action-bar-root\": {\n \"@apply col-start-1 row-start-2 mr-3 mt-2.5\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-message-attachments\": {\n \"@apply col-span-full col-start-1 row-start-1\": {},\n \"@apply justify-end\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-message-content\": {\n \"@apply col-start-2 row-start-2\": {}\n },\n \":where(.aui-user-message-root) > .aui-branch-picker-root\": {\n \"@apply col-span-full col-start-1 row-start-3\": {},\n \"@apply -mr-1 justify-end\": {}\n },\n \".aui-user-message-content\": {\n \"@apply bg-aui-muted text-aui-foreground max-w-xl break-words rounded-3xl px-5 py-2.5\": {}\n },\n \".aui-user-message-attachments\": {\n \"@apply flex w-full flex-row gap-3\": {}\n },\n \".aui-user-action-bar-root\": {\n \"@apply flex flex-col items-end\": {}\n },\n \".aui-edit-composer-root\": {\n \"@apply bg-aui-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl\": {}\n },\n \".aui-edit-composer-input\": {\n \"@apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none\": {}\n },\n \".aui-edit-composer-footer\": {\n \"@apply mx-3 mb-3 flex items-center justify-center gap-2 self-end\": {}\n },\n \".aui-assistant-message-root\": {\n \"@apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr]\": {},\n \"@apply relative w-full max-w-2xl py-4\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-avatar-root\": {\n \"@apply col-start-1 row-span-full row-start-1 mr-4\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-branch-picker-root\": {\n \"@apply col-start-2 row-start-2\": {},\n \"@apply -ml-2 mr-2\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-assistant-action-bar-root\": {\n \"@apply col-start-3 row-start-2\": {},\n \"@apply -ml-1\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-assistant-message-content\": {\n \"@apply col-span-2 col-start-2 row-start-1 my-1.5\": {}\n },\n \".aui-assistant-message-content\": {\n \"@apply text-aui-foreground max-w-xl break-words leading-7\": {}\n },\n \".aui-assistant-action-bar-root\": {\n \"@apply text-aui-muted-foreground flex gap-1\": {}\n },\n \":where(.aui-assistant-action-bar-root)[data-floating]\": {\n \"@apply bg-aui-background absolute rounded-md border p-1 shadow-sm\": {}\n },\n \":where(.aui-assistant-action-bar-feedback-positive)[data-submitted]\": {\n \"@apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400\": {}\n },\n \":where(.aui-assistant-action-bar-feedback-negative)[data-submitted]\": {\n \"@apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400\": {}\n },\n \".aui-branch-picker-root\": {\n \"@apply text-aui-muted-foreground inline-flex items-center text-xs\": {}\n },\n \".aui-branch-picker-state\": {\n \"@apply font-medium\": {}\n },\n \".aui-text\": {\n \"@apply whitespace-pre-line\": {}\n },\n \".aui-text-running::after\": {\n \"@apply animate-pulse font-sans content-['\\\\25CF'] ltr:ml-1 rtl:mr-1\": {}\n }\n}","{\n \".aui-modal-content\": {\n \"@apply bg-aui-popover text-aui-popover-foreground z-50 h-[500px] w-[400px] overflow-clip rounded-xl border p-0 shadow-md outline-none\": {},\n \"@apply [&>.aui-thread-root]:bg-inherit\": {},\n \"@apply data-[state=closed]:animate-out data-[state=open]:animate-in\": {},\n \"@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\": {},\n \"@apply data-[state=closed]:zoom-out data-[state=open]:zoom-in\": {},\n \"@apply data-[state=open]:slide-in-from-bottom-1/2 data-[state=open]:slide-in-from-right-1/2 data-[state=closed]:slide-out-to-bottom-1/2 data-[state=closed]:slide-out-to-right-1/2\": {}\n },\n \".aui-modal-anchor\": {\n \"@apply fixed bottom-4 right-4 size-11\": {}\n },\n \".aui-modal-button\": {\n \"@apply size-full rounded-full shadow transition-transform hover:scale-110 active:scale-90\": {}\n },\n \".aui-modal-button-closed-icon\": {\n \"@apply absolute size-6 transition-all\": {},\n \"@apply data-[state=closed]:rotate-0 data-[state=open]:rotate-90\": {},\n \"@apply data-[state=closed]:scale-100 data-[state=open]:scale-0\": {}\n },\n \".aui-modal-button-open-icon\": {\n \"@apply absolute size-6 transition-all\": {},\n \"@apply data-[state=closed]:-rotate-90 data-[state=open]:rotate-0\": {},\n \"@apply data-[state=closed]:scale-0 data-[state=open]:scale-100\": {}\n }\n}","{\n \":root\": {\n \"--aui-background\": \"0 0% 100%\",\n \"--aui-foreground\": \"240 10% 3.9%\",\n \"--aui-card\": \"0 0% 100%\",\n \"--aui-card-foreground\": \"240 10% 3.9%\",\n \"--aui-popover\": \"0 0% 100%\",\n \"--aui-popover-foreground\": \"240 10% 3.9%\",\n \"--aui-primary\": \"240 5.9% 10%\",\n \"--aui-primary-foreground\": \"0 0% 98%\",\n \"--aui-secondary\": \"240 4.8% 95.9%\",\n \"--aui-secondary-foreground\": \"240 5.9% 10%\",\n \"--aui-muted\": \"240 4.8% 95.9%\",\n \"--aui-muted-foreground\": \"240 3.8% 46.1%\",\n \"--aui-accent\": \"240 4.8% 95.9%\",\n \"--aui-accent-foreground\": \"240 5.9% 10%\",\n \"--aui-destructive\": \"0 84.2% 60.2%\",\n \"--aui-destructive-foreground\": \"0 0% 98%\",\n \"--aui-border\": \"240 5.9% 90%\",\n \"--aui-input\": \"240 5.9% 90%\",\n \"--aui-ring\": \"240 10% 3.9%\",\n \"--aui-radius\": \"0.5rem\"\n },\n \".dark\": {\n \"--aui-background\": \"0 0% 7%\",\n \"--aui-foreground\": \"0 0% 98%\",\n \"--aui-card\": \"240 10% 3.9%\",\n \"--aui-card-foreground\": \"0 0% 98%\",\n \"--aui-popover\": \"240 10% 3.9%\",\n \"--aui-popover-foreground\": \"0 0% 98%\",\n \"--aui-primary\": \"0 0% 98%\",\n \"--aui-primary-foreground\": \"240 5.9% 10%\",\n \"--aui-secondary\": \"240 3.7% 15.9%\",\n \"--aui-secondary-foreground\": \"0 0% 98%\",\n \"--aui-muted\": \"240 3.7% 15.9%\",\n \"--aui-muted-foreground\": \"240 5% 64.9%\",\n \"--aui-accent\": \"240 3.7% 15.9%\",\n \"--aui-accent-foreground\": \"0 0% 98%\",\n \"--aui-destructive\": \"0 62.8% 30.6%\",\n \"--aui-destructive-foreground\": \"0 0% 98%\",\n \"--aui-border\": \"240 3.7% 15.9%\",\n \"--aui-input\": \"240 3.7% 15.9%\",\n \"--aui-ring\": \"240 4.9% 83.9%\"\n }\n}"],"mappings":";;;;AAAA,OAAO,YAAY;;;ACAnB;AAAA,EACE,aAAa;AAAA,IACX,8BAA8B,CAAC;AAAA,EACjC;AAAA,EACA,eAAe;AAAA,IACb,4BAA4B,CAAC;AAAA,EAC/B;AAAA,EACA,eAAe;AAAA,IACb,kPAAkP,CAAC;AAAA,EACrP;AAAA,EACA,uBAAuB;AAAA,IACrB,oFAAoF,CAAC;AAAA,EACvF;AAAA,EACA,uBAAuB;AAAA,IACrB,mHAAmH,CAAC;AAAA,EACtH;AAAA,EACA,qBAAqB;AAAA,IACnB,+DAA+D,CAAC;AAAA,EAClE;AAAA,EACA,sBAAsB;AAAA,IACpB,wBAAwB,CAAC;AAAA,EAC3B;AAAA,EACA,oBAAoB;AAAA,IAClB,qBAAqB,CAAC;AAAA,EACxB;AAAA,EACA,gBAAgB;AAAA,IACd,kBAAkB,CAAC;AAAA,EACrB;AAAA,EACA,oBAAoB;AAAA,IAClB,wEAAwE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AAAA,cAC/B;AAAA,cACA,OAAO;AAAA,gBACL,SAAS,WAAW,MAAM;AAAA,gBAC1B,YACE,OAAO,OAAO,cACd,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,QAAQ;AAAA,gBACN,SAAS,OAAO,QAAQ,WAAW,WAAW,MAAM;AAAA,gBACpD,YACE,OAAO,QAAQ,cACf,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,SAAS;AAAA,gBACP,SACE,OAAO,SAAS,WAAW,WAAW,MAAM;AAAA,gBAC9C,YACE,OAAO,SAAS,cAChB,WAAW,MAAM;AAAA,cACrB;AAAA,cACA,MAAM;AAAA,gBACJ,SAAS,OAAO,MAAM,WAAW,WAAW,MAAM;AAAA,gBAClD,YACE,OAAO,MAAM,cACb,WAAW,MAAM;AAAA,cACrB;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,sBAAQ;","names":[]}
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "conversational-ui",
30
30
  "conversational-ai"
31
31
  ],
32
- "version": "0.5.89",
32
+ "version": "0.5.91",
33
33
  "license": "MIT",
34
34
  "exports": {
35
35
  ".": {
@@ -93,19 +93,19 @@
93
93
  "class-variance-authority": "^0.7.0",
94
94
  "classnames": "^2.5.1",
95
95
  "json-schema": "^0.4.0",
96
- "lucide-react": "^0.452.0",
96
+ "lucide-react": "^0.453.0",
97
97
  "nanoid": "^5.0.7",
98
98
  "react-textarea-autosize": "^8.5.4",
99
99
  "secure-json-parse": "^2.7.0",
100
100
  "zod": "^3.23.8",
101
101
  "zod-to-json-schema": "^3.23.3",
102
- "zustand": "^4.5.5"
102
+ "zustand": "^5.0.0"
103
103
  },
104
104
  "peerDependencies": {
105
105
  "@types/react": "*",
106
106
  "@types/react-dom": "*",
107
- "react": "^18",
108
- "react-dom": "^18",
107
+ "react": "^18 || ^19",
108
+ "react-dom": "^18 || ^19",
109
109
  "tailwindcss": "^3.4.4"
110
110
  },
111
111
  "peerDependenciesMeta": {
@@ -121,13 +121,14 @@
121
121
  },
122
122
  "devDependencies": {
123
123
  "@types/json-schema": "^7.0.15",
124
- "@types/node": "^22.7.5",
124
+ "@types/node": "^22.7.7",
125
125
  "autoprefixer": "^10.4.20",
126
- "eslint": "^8",
127
- "eslint-config-next": "14.2.15",
126
+ "eslint": "^9",
127
+ "eslint-config-next": "15.0.0",
128
128
  "postcss": "^8.4.47",
129
+ "postcss-js": "^4.0.1",
129
130
  "postcss-nested": "^6.2.0",
130
- "tailwindcss": "^3.4.13",
131
+ "tailwindcss": "^3.4.14",
131
132
  "tailwindcss-animate": "^1.0.7",
132
133
  "tsup": "8.3.0",
133
134
  "tsx": "^4.19.1",