gentiq 0.10.1 → 0.10.2

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.
@@ -4,8 +4,8 @@ import { useState as T, useMemo as W, useEffect as K, useRef as re, useCallback
4
4
  import { QueryClient as tt, QueryClientProvider as at, useQueryClient as he, useQuery as rt, useInfiniteQuery as nt } from "@tanstack/react-query";
5
5
  import { I18nextProvider as st, useTranslation as ue } from "react-i18next";
6
6
  import { Trans as or, Translation as ir, useTranslation as lr, withTranslation as cr } from "react-i18next";
7
- import { G as be, g as ot, d as it, a as lt, C as je, T as ct, u as ne, b as Oe, c as oe, j as xe, e as ge, f as de, h as He, i as v, k as dt, l as Ue, m as Be, n as Ke, o as Qe, B as ae, p as Ve, q as ye, D as Ge, r as ut, s as We, L as X, I as Y, S as we, t as Ne, v as ke, w as Se, x as fe, y as ht, z as pt, A as Me, E as mt, F as gt, H as ft, J as pe, K as bt, M as yt, N as vt, O as xt, P as wt, Q as Nt } from "./checkbox-DIJkKoC9.js";
8
- import { R as ur, U as hr, V as pr, W as mr, X as gr, Y as fr, Z as br, _ as yr, $ as vr, a0 as xr, a1 as wr, a2 as Nr, a3 as kr, a4 as Sr, a5 as Cr, a6 as _r, a7 as Tr, a8 as Pr, a9 as Er } from "./checkbox-DIJkKoC9.js";
7
+ import { G as be, g as ot, d as it, a as lt, C as je, T as ct, u as ne, b as Oe, c as oe, j as xe, e as ge, f as de, h as He, i as v, k as dt, l as Ue, m as Be, n as Ke, o as Qe, B as ae, p as Ve, q as ye, D as Ge, r as ut, s as We, L as X, I as Y, S as we, t as Ne, v as ke, w as Se, x as fe, y as ht, z as pt, A as Me, E as mt, F as gt, H as ft, J as pe, K as bt, M as yt, N as vt, O as xt, P as wt, Q as Nt } from "./checkbox-Bk6TjhJn.js";
8
+ import { R as ur, U as hr, V as pr, W as mr, X as gr, Y as fr, Z as br, _ as yr, $ as vr, a0 as xr, a1 as wr, a2 as Nr, a3 as kr, a4 as Sr, a5 as Cr, a6 as _r, a7 as Tr, a8 as Pr, a9 as Er } from "./checkbox-Bk6TjhJn.js";
9
9
  import { Loader2Icon as kt, OctagonXIcon as St, TriangleAlertIcon as Ct, InfoIcon as _t, CircleCheckIcon as Tt, XIcon as Pt, PanelLeftIcon as Et, Layers as Ae, User as Mt, ShieldCheck as At, Settings as Ce, Smartphone as It, Lock as Rt, Save as Dt, Sun as $t, Moon as Lt, Monitor as Ft, Zap as Ie, Globe as qt, Coins as zt, LogOut as jt, CirclePlus as Ot, Plus as Ht, Search as Ut, Check as Bt, X as Kt, Pin as Re, MoreVertical as Qt, PinOff as Vt, Share2 as Gt, Pencil as Wt, Trash as Jt } from "lucide-react";
10
10
  import { useTheme as Xt } from "next-themes";
11
11
  import { Toaster as Yt, toast as te } from "sonner";
@@ -2,4 +2,17 @@ import { ChoiceQuestion, ChoiceQuestionPartProps } from '../types';
2
2
  export type { ChoiceQuestionPartProps } from '../types';
3
3
  export declare function normalizeChoiceQuestion(data: unknown): ChoiceQuestion | null;
4
4
  export declare function extractChoiceQuestionFromText(text: string | undefined): ChoiceQuestion | null;
5
+ export type ChoiceQuestionSegment = {
6
+ type: 'text';
7
+ text: string;
8
+ } | {
9
+ type: 'choice-question';
10
+ question: ChoiceQuestion;
11
+ };
12
+ /**
13
+ * Split a text part into an ordered sequence of prose and choice-question
14
+ * segments. Text appearing before, between, and after choice-question markers
15
+ * is preserved so nothing is dropped when a message interleaves prose and cards.
16
+ */
17
+ export declare function splitChoiceQuestionSegments(text: string | undefined): ChoiceQuestionSegment[];
5
18
  export declare function ChoiceQuestionPart({ part, disabled, onAnswer }: ChoiceQuestionPartProps): import("react/jsx-runtime").JSX.Element | null;
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "provenance": true
11
11
  },
12
12
  "description": "React UI library for the Gentiq AI framework.",
13
- "version": "0.10.1",
13
+ "version": "0.10.2",
14
14
  "type": "module",
15
15
  "files": [
16
16
  "dist"