Commit Graph
128 Commits
Author SHA1 Message Date
Alex 08a2c038bc chore(deps): react-widget in-range updates
Babel 7.29.7, React 19.3, styled-components 6.5.3, dompurify 3.4.15,
typescript-eslint 8.70, prettier 3.9.6, svgo 4.1, markdown-it 14.3.

Clears all 5 npm audit advisories, including svgo removeScripts
GHSA-w27v-7q3p-w38r and GHSA-4vpr-x523-8j87 (both high).

Prettier 3.9 changed ternary and union-type wrapping, so two src files are
reformatted by lint-fix. No behavior change.

Build, tsc --noEmit and lint all clean.
2026-09-12 19:25:00 +01:00
Alex 74b4ae30f9 fix(react-widget): drop the stranded 'use client' directive
Parcel's library build concatenates modules, so the directive at the top
of DocsGPTWidget.tsx landed a thousand lines into dist/module.js and
dist/main.js. webpack rejects a 'use client' that is not the first
expression in the file, which broke every Next.js consumer of
docsgpt-react:

  x The "use client" directive must be placed before other expressions.
    1168 | 'use client';

The directive could not do its job from inside a bundle anyway. A React
Server Components boundary has to be declared by the importing module,
so consumers wrap the widget in their own client component instead.
2026-09-12 12:15:08 +01:00
ManishMadan2882 4393197802 fix(widget): address review on the composer changes 2026-09-10 04:30:04 +05:30
ManishMadan2882 7df153a798 feat(widget): attachments and voice input in the composer 2026-09-09 05:13:57 +05:30
ManishMadan2882 595007507f (feat)widget: sleeker interface 2026-09-03 15:24:50 +05:30
ManishMadan2882 1281a040ef fix(react-widget): integrate with current /stream contract 2026-08-30 06:09:38 +05:30
ManishMadan2882 c4968a641e (chore)react-widget: add linter 2026-03-26 02:06:49 +05:30
ManishMadan2882 db5c69ca76 (chore)react widget: build fix 2026-03-25 01:37:09 +05:30
Manish Madan adeefce9aa (fix)widget: since v6 shouldForwardProp is no longer provided by default (#2312) 2026-03-18 15:32:36 +00:00
Mohamed-AbualiandManishMadan2882 909bc421c0 Bugfix/docs gpt widget behavior (#2172)
* style(DocsGPTWidget): improve message bubbles and markdown styling

- Adjust max-width for message bubbles to 90% for answers and 80% for questions
- Add overflow-wrap to prevent text overflow in messages
- Update list styling with proper spacing and positioning
- Add responsive font sizing for headings using clamp()
- Implement custom table styling with proper borders and spacing
- Add custom markdown renderer rules for tables

* feat(widget): replace input with textarea for prompt input

Add support for multi-line input and custom scrollbar styling. Implement Enter key submission handling while allowing Shift+Enter for new lines.

* feat(widget): improve textarea auto-resizing and table styling

- Add auto-resizing functionality for prompt textarea with min/max height constraints
- Fix table cell markup (th/td) and improve scrollbar styling
- Add promptRef to manage textarea state and reset after submission

* fix(widget): correct table cell styling and prevent empty submissions

- Fix swapped td/th elements in markdown renderer
- Adjust font weights for table headers and cells
- Add validation to prevent empty message submissions

* (fix) name mkdwn rule as the returned element

---------

Co-authored-by: ManishMadan2882 <manishmadan321@gmail.com>
2025-12-11 01:35:55 +00:00
ManishMadan2882 d89e78c9ca (feat:search) minor adjust 2025-05-21 02:59:22 +05:30
ManishMadan2882 ec50650dfa (fix/searchwidget) prominent placeholder, sleek spinner 2025-05-21 02:00:47 +05:30
ManishMadan2882 7432e551f9 (fix/loader) drop on empty input 2025-05-21 01:40:03 +05:30
ManishMadan2882 4ee6bd44d1 (feat:glassy) search widget 2025-05-21 01:26:34 +05:30
ManishMadan2882 987ef63e64 (feat:widget) simplify scrolling 2025-02-26 14:52:48 +05:30
ManishMadan2882 554601d674 (fix:feedback) widget can handle feedback 2025-02-26 01:00:38 +05:30
ManishMadan2882 b78d2bd4b1 (feat:widget) add optional sources 2025-02-18 02:09:13 +05:30
Manish Madan 7d0445cc20 Merge branch 'main' into feat/sources-in-react-widget 2025-02-17 15:41:34 +05:30
ManishMadan2882 774cbbf47a (fix/widget) centered the toolkit msg 2025-01-13 18:20:08 +05:30
ManishMadan2882 44399a03c1 (feat:search) add hover states 2025-01-05 01:04:33 +05:30
ManishMadan2882 411115523e (fix:search) ui adjustments 2025-01-03 02:49:40 +05:30
ManishMadan2882 8b206b087c (feat:search) adding buttonTextt prop, minor ui 2025-01-02 19:36:07 +05:30
ManishMadan2882 190f571718 (feat/search) exacting ui 2025-01-01 15:14:03 +05:30
ManishMadan2882 2f33a46e89 (feat:search/UX) enhance function 2024-12-31 17:33:06 +05:30
ManishMadan2882 598c7a5d76 (feat:search) load geist font 2024-12-31 16:25:44 +05:30
ManishMadan2882 8724c12c11 (feat:search) new UI 2024-12-31 15:30:24 +05:30
ManishMadan2882 5ddf9bd7ec (feat:search) handle blockquotes in markdown 2024-12-27 17:40:04 +05:30
ManishMadan2882 2420af3b6d (feat:Search) highlight keywords on searching 2024-12-27 16:20:47 +05:30
ManishMadan2882 b8fade251b (feat: searchResults): adding utility to preprocess markdown 2024-12-24 17:15:17 +05:30
ManishMadan2882 7c3f80f13d (fix: filter search) trim keyword pre processing 2024-12-09 12:47:13 +05:30
ManishMadan2882 ca5eb06de9 (feat:filter results) improve markdown format, add filter 2024-12-09 02:43:26 +05:30
ManishMadan2882 2378548cf1 (feat: filer result) remove iterator; optimisation 2024-12-09 02:41:06 +05:30
ManishMadan2882 fdd265f47f (feat:filter search result) use node iterator 2024-12-09 01:51:06 +05:30
ManishMadan2882 3ce04de161 (feat:highlightSearch) recursively filter the DOM 2024-12-06 03:33:44 +05:30
ManishMadan2882 dae0942d03 (refactor): separate browser ready builds 2024-11-23 02:29:27 +05:30
ManishMadan2882 1595e0210a (fix:search) change toolkit info 2024-11-22 17:55:37 +05:30
ManishMadan2882 9986fce8bf (fix:search) spacing, minor bug 2024-11-22 17:30:50 +05:30
ManishMadan2882 c855896221 (fix:events): enter on pc, tap on mobile 2024-11-22 00:05:07 +05:30
ManishMadan2882 0600f095f5 (feat:widget) append prefilledQuery 2024-11-21 23:54:19 +05:30
ManishMadan2882 e9a8161811 (feat/widget): autofocus input 2024-11-20 17:11:33 +05:30
ManishMadan2882 48f47351ee (feat:keydown): listen cross platform events 2024-11-20 17:04:45 +05:30
ManishMadan2882 e0a3b8004c (fix): minor ui; loading state 2024-11-19 04:41:12 +05:30
ManishMadan2882 91239820e3 (feat/search): debounce and abort previous pending req 2024-11-19 04:25:54 +05:30
ManishMadan2882 8641a91182 (feat-search): adding loader, no-results 2024-11-19 03:38:13 +05:30
ManishMadan2882 4eee10b5d5 (feat/search): redirect to sources 2024-11-18 19:06:41 +05:30
ManishMadan2882 1a9f31174d (search): modal triggers on ctrl k 2024-11-18 17:00:56 +05:30
ManishMadan2882 5ee0f15d94 (feat: search): close on click outside 2024-11-18 03:18:39 +05:30
utin-francis-peter 2c8a2945f0 feat: better sources scroll management 2024-11-17 10:34:22 +01:00
ManishMadan2882 868e59bca0 (fix: css conflict): replace global keyframes 2024-11-17 03:31:09 +05:30
ManishMadan2882 94617c5ef7 (fix:animations) minor fix 2024-11-16 02:13:40 +05:30