@burdenoff/fe-libs 2026.715.1 → 2026.715.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.
- package/dist/button/Button.d.ts +1 -1
- package/dist/node_modules/{.bun/@capacitor_core@8.3.1/node_modules/@capacitor → @capacitor}/core/dist/index.js +1 -1
- package/dist/node_modules/{.bun/@ungap_structured-clone@1.3.0/node_modules/@ungap → @ungap}/structured-clone/esm/deserialize.js +1 -1
- package/dist/node_modules/{.bun/@ungap_structured-clone@1.3.0/node_modules/@ungap → @ungap}/structured-clone/esm/index.js +1 -1
- package/dist/node_modules/{.bun/@ungap_structured-clone@1.3.0/node_modules/@ungap → @ungap}/structured-clone/esm/serialize.js +1 -1
- package/dist/node_modules/{.bun/bail@2.0.2/node_modules/bail → bail}/index.js +1 -1
- package/dist/node_modules/{.bun/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens → comma-separated-tokens}/index.js +1 -1
- package/dist/node_modules/{.bun/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.js +1 -1
- package/dist/node_modules/{.bun/devlop@1.1.0/node_modules/devlop → devlop}/lib/default.js +1 -1
- package/dist/node_modules/{.bun/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name → estree-util-is-identifier-name}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/extend@3.0.2/node_modules/extend → extend}/index.js +2 -2
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/client.js +1 -1
- package/dist/node_modules/{.bun/graphql-ws@6.0.8_796ebe57c2b0ffe0/node_modules/graphql-ws → graphql-ws}/dist/common-CGW11Fyb.js +1 -1
- package/dist/node_modules/{.bun/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime → hast-util-to-jsx-runtime}/lib/index.js +13 -13
- package/dist/node_modules/{.bun/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace → hast-util-whitespace}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/html-url-attributes@3.0.1/node_modules/html-url-attributes → html-url-attributes}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/inline-style-parser@0.2.7/node_modules/inline-style-parser → inline-style-parser}/cjs/index.js +2 -2
- package/dist/node_modules/{.bun/is-plain-obj@4.1.0/node_modules/is-plain-obj → is-plain-obj}/index.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown → mdast-util-from-markdown}/lib/index.js +10 -10
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/footer.js +3 -3
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/blockquote.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/break.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/code.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/delete.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/emphasis.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/footnote-reference.js +2 -2
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/heading.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/html.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/image-reference.js +2 -2
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/image.js +2 -2
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/index.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/inline-code.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/link-reference.js +2 -2
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/link.js +2 -2
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/list-item.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/list.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/paragraph.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/root.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/strong.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/table-cell.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/table-row.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/table.js +2 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +11 -0
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/handlers/thematic-break.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/index.js +2 -2
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/revert.js +1 -1
- package/dist/node_modules/{.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast → mdast-util-to-hast}/lib/state.js +4 -4
- package/dist/node_modules/{.bun/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string → mdast-util-to-string}/lib/index.js +1 -1
- package/dist/node_modules/micromark/lib/constructs.js +80 -0
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/create-tokenizer.js +4 -4
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/initialize/content.js +3 -3
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/initialize/document.js +4 -4
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/initialize/flow.js +4 -4
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/initialize/text.js +1 -1
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/parse.js +2 -2
- package/dist/node_modules/micromark/lib/postprocess.js +8 -0
- package/dist/node_modules/{.bun/micromark@4.0.2/node_modules/micromark → micromark}/lib/preprocess.js +1 -1
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.js +4 -4
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.js +2 -2
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.js +2 -2
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.js +2 -2
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.js +4 -4
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.js +8 -8
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.js +2 -2
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.js +4 -4
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.js +9 -9
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.js +1 -1
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.js +1 -1
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.js +3 -3
- package/dist/node_modules/{.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.js +3 -3
- package/dist/node_modules/{.bun/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination → micromark-factory-destination}/index.js +2 -2
- package/dist/node_modules/{.bun/micromark-factory-label@2.0.1/node_modules/micromark-factory-label → micromark-factory-label}/index.js +2 -2
- package/dist/node_modules/{.bun/micromark-factory-space@2.0.1/node_modules/micromark-factory-space → micromark-factory-space}/index.js +2 -2
- package/dist/node_modules/{.bun/micromark-factory-title@2.0.1/node_modules/micromark-factory-title → micromark-factory-title}/index.js +3 -3
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/{.bun/micromark-util-character@2.1.1/node_modules/micromark-util-character → micromark-util-character}/index.js +1 -1
- package/dist/node_modules/{.bun/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked → micromark-util-chunked}/index.js +1 -1
- package/dist/node_modules/micromark-util-classify-character/index.js +8 -0
- package/dist/node_modules/{.bun/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.js +2 -2
- package/dist/node_modules/{.bun/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.js +1 -1
- package/dist/node_modules/micromark-util-decode-string/index.js +17 -0
- package/dist/node_modules/{.bun/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.js +1 -1
- package/dist/node_modules/{.bun/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.js +1 -1
- package/dist/node_modules/{.bun/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.js +1 -1
- package/dist/node_modules/{.bun/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.js +2 -2
- package/dist/node_modules/{.bun/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.js +2 -2
- package/dist/node_modules/{.bun/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/index.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/aria.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/find.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/hast-to-react.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/html.js +1 -1
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/svg.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/case-insensitive-transform.js +1 -1
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/create.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/defined-info.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/info.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/merge.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/schema.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/util/types.js +2 -2
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/xlink.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/xml.js +1 -1
- package/dist/node_modules/{.bun/property-information@7.1.0/node_modules/property-information → property-information}/lib/xmlns.js +1 -1
- package/dist/node_modules/{.bun/react-error-boundary@6.1.1_3f10a4be4e334a9b/node_modules/react-error-boundary → react-error-boundary}/dist/react-error-boundary.js +1 -1
- package/dist/node_modules/{.bun/react-markdown@10.1.0_b2e33729a97476bf/node_modules/react-markdown → react-markdown}/lib/index.js +9 -9
- package/dist/node_modules/{.bun/remark-parse@11.0.0/node_modules/remark-parse → remark-parse}/lib/index.js +2 -2
- package/dist/node_modules/{.bun/remark-rehype@11.1.2/node_modules/remark-rehype → remark-rehype}/lib/index.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/{.bun/style-to-js@1.1.21/node_modules/style-to-js → style-to-js}/cjs/index.js +3 -3
- package/dist/node_modules/{.bun/style-to-js@1.1.21/node_modules/style-to-js → style-to-js}/cjs/utilities.js +2 -2
- package/dist/node_modules/{.bun/style-to-object@1.0.14/node_modules/style-to-object → style-to-object}/cjs/index.js +3 -3
- package/dist/node_modules/{.bun/trim-lines@3.0.1/node_modules/trim-lines → trim-lines}/index.js +1 -1
- package/dist/node_modules/{.bun/trough@2.2.0/node_modules/trough → trough}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/unified@11.0.5/node_modules/unified → unified}/lib/callable-instance.js +1 -1
- package/dist/node_modules/{.bun/unified@11.0.5/node_modules/unified → unified}/lib/index.js +8 -8
- package/dist/node_modules/{.bun/unist-util-is@6.0.1/node_modules/unist-util-is → unist-util-is}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/unist-util-position@5.0.0/node_modules/unist-util-position → unist-util-position}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position → unist-util-stringify-position}/lib/index.js +1 -1
- package/dist/node_modules/{.bun/unist-util-visit@5.1.0/node_modules/unist-util-visit → unist-util-visit}/lib/index.js +2 -2
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/{.bun/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents → unist-util-visit-parents}/lib/index.js +2 -2
- package/dist/node_modules/{.bun/vfile@6.0.3/node_modules/vfile → vfile}/lib/index.js +2 -2
- package/dist/node_modules/{.bun/vfile@6.0.3/node_modules/vfile → vfile}/lib/minpath.browser.js +1 -1
- package/dist/node_modules/{.bun/vfile@6.0.3/node_modules/vfile → vfile}/lib/minproc.browser.js +1 -1
- package/dist/node_modules/{.bun/vfile@6.0.3/node_modules/vfile → vfile}/lib/minurl.browser.js +1 -1
- package/dist/node_modules/{.bun/vfile@6.0.3/node_modules/vfile → vfile}/lib/minurl.shared.js +1 -1
- package/dist/node_modules/{.bun/vfile-message@4.0.3/node_modules/vfile-message → vfile-message}/lib/index.js +2 -2
- package/dist/node_modules/{.bun/web-vitals@4.2.4/node_modules/web-vitals → web-vitals}/dist/web-vitals.js +1 -1
- package/dist/shared/components/MicrofrontendErrorBoundary.js +1 -1
- package/dist/shared/components/assistantWidget/AssistantWidget.d.ts +6 -0
- package/dist/shared/components/assistantWidget/AssistantWidget.d.ts.map +1 -1
- package/dist/shared/components/assistantWidget/AssistantWidget.js +185 -144
- package/dist/shared/config/gatewayUrls.d.ts.map +1 -1
- package/dist/shared/config/gatewayUrls.js +1 -1
- package/dist/shared/graphql/links/ws-link.js +1 -1
- package/dist/shared/native/purchases.js +1 -1
- package/dist/shared/pages/LegalPage.js +1 -1
- package/dist/shared/providers/AppShellProvider.js +2 -2
- package/dist/shared/providers/shell/ObservabilityProvider.js +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/package.json +1 -1
- package/dist/node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -11
- package/dist/node_modules/.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
- package/dist/node_modules/.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
- package/dist/node_modules/.bun/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js +0 -12
- package/dist/node_modules/.bun/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js +0 -8
- package/dist/node_modules/.bun/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js +0 -17
- package/dist/node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/constructs.js +0 -80
- package/dist/node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/postprocess.js +0 -8
- package/dist/node_modules/.bun/property-information@7.1.0/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/.bun/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/.bun/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +0 -6
- package/dist/node_modules/.bun/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +0 -6
|
@@ -1,128 +1,146 @@
|
|
|
1
1
|
import { cn as e } from "../../utils/cn.js";
|
|
2
2
|
import { useVoiceInput as t } from "./useVoiceInput.js";
|
|
3
3
|
import { MessageContent as n } from "./MessageContent.js";
|
|
4
|
-
import { useCallback as r, useEffect as i, useMemo as
|
|
5
|
-
import { History as
|
|
6
|
-
import { Fragment as
|
|
4
|
+
import { useCallback as r, useEffect as i, useMemo as ee, useRef as a, useState as o } from "react";
|
|
5
|
+
import { History as s, Loader2 as c, MessageCircle as l, Mic as te, PanelLeftClose as ne, PanelLeftOpen as re, Plus as ie, Send as ae, Sparkles as u, Trash2 as oe, X as d } from "lucide-react";
|
|
6
|
+
import { Fragment as se, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
//#region src/shared/components/assistantWidget/AssistantWidget.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
8
|
+
var m = "bf:toggle-assistant-widget", h = "bf:assistant-widget:isOpen", g = "bf:assistant-widget:railOpen";
|
|
9
|
+
function ce() {
|
|
10
|
+
if (typeof window > "u") return !0;
|
|
11
|
+
try {
|
|
12
|
+
return window.sessionStorage.getItem(g) !== "0";
|
|
13
|
+
} catch {
|
|
14
|
+
return !0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function le(e) {
|
|
18
|
+
if (!(typeof window > "u")) try {
|
|
19
|
+
window.sessionStorage.setItem(g, e ? "1" : "0");
|
|
20
|
+
} catch {}
|
|
21
|
+
}
|
|
22
|
+
function ue() {
|
|
10
23
|
if (typeof window > "u") return !1;
|
|
11
24
|
try {
|
|
12
|
-
return window.sessionStorage.getItem(
|
|
25
|
+
return window.sessionStorage.getItem(h) === "1";
|
|
13
26
|
} catch {
|
|
14
27
|
return !1;
|
|
15
28
|
}
|
|
16
29
|
}
|
|
17
|
-
function
|
|
30
|
+
function _(e) {
|
|
18
31
|
if (!(typeof window > "u")) try {
|
|
19
|
-
window.sessionStorage.setItem(
|
|
32
|
+
window.sessionStorage.setItem(h, e ? "1" : "0");
|
|
20
33
|
} catch {}
|
|
21
34
|
}
|
|
22
|
-
function
|
|
35
|
+
function v() {
|
|
23
36
|
return `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
24
37
|
}
|
|
25
|
-
var
|
|
26
|
-
let [
|
|
27
|
-
|
|
28
|
-
}, [g]), Y = r(() => {
|
|
29
|
-
v(!1), D(!1), g.suspend?.();
|
|
30
|
-
}, [g]), X = r(() => {
|
|
31
|
-
D((e) => {
|
|
38
|
+
var y = ({ transport: h, title: g = "AI Assistant", subtitle: y = "Ask me to do things on this screen — I can run them for you.", placeholder: de = "Ask anything, or describe what to create…", launcherClassName: b, voiceLang: x = "en-US", layout: S = "floating", showSessionPanel: fe = !1, onNavigate: pe, topOffsetPx: C = 0 }) => {
|
|
39
|
+
let [w, T] = o(() => ue()), [E, D] = o([]), [O, k] = o(""), [A, j] = o(!1), [me, M] = o(!1), [N, P] = o([]), [F, I] = o(!1), [L, R] = o(!1), [z, he] = o(() => ce()), B = a(null), V = a(null), H = a(null), U = a(!1), W = S === "sidebar", G = fe && !!h.newSession, K = r(() => {
|
|
40
|
+
he((e) => {
|
|
32
41
|
let t = !e;
|
|
33
|
-
return
|
|
42
|
+
return le(t), t;
|
|
34
43
|
});
|
|
35
|
-
}, [
|
|
44
|
+
}, []), q = t(x), J = r(() => {
|
|
45
|
+
_(!0), T(!0), h.prewarm?.("full");
|
|
46
|
+
}, [h]), Y = r(() => {
|
|
47
|
+
_(!1), T(!1), h.suspend?.();
|
|
48
|
+
}, [h]), X = r(() => {
|
|
49
|
+
T((e) => {
|
|
50
|
+
let t = !e;
|
|
51
|
+
return _(t), t ? h.prewarm?.("full") : h.suspend?.(), t;
|
|
52
|
+
});
|
|
53
|
+
}, [h]);
|
|
36
54
|
i(() => {
|
|
37
55
|
let e = (e) => {
|
|
38
56
|
let t = e.detail;
|
|
39
57
|
t?.open === !0 ? J() : t?.open === !1 ? Y() : X();
|
|
40
58
|
};
|
|
41
|
-
return window.addEventListener(
|
|
59
|
+
return window.addEventListener(m, e), () => window.removeEventListener(m, e);
|
|
42
60
|
}, [
|
|
43
61
|
J,
|
|
44
62
|
Y,
|
|
45
63
|
X
|
|
46
64
|
]), i(() => {
|
|
47
|
-
q.isListening && q.transcript &&
|
|
65
|
+
q.isListening && q.transcript && k(q.transcript);
|
|
48
66
|
}, [q.transcript, q.isListening]), i(() => {
|
|
49
|
-
if (!
|
|
50
|
-
let e =
|
|
67
|
+
if (!w || U.current) return;
|
|
68
|
+
let e = h.loadHistory;
|
|
51
69
|
if (!e) {
|
|
52
|
-
|
|
70
|
+
U.current = !0;
|
|
53
71
|
return;
|
|
54
72
|
}
|
|
55
|
-
|
|
73
|
+
U.current = !0;
|
|
56
74
|
let t = !1;
|
|
57
|
-
return
|
|
75
|
+
return M(!0), (async () => {
|
|
58
76
|
try {
|
|
59
77
|
let n = await e();
|
|
60
|
-
!t && n.length > 0 &&
|
|
78
|
+
!t && n.length > 0 && D((e) => e.length === 0 ? n : e);
|
|
61
79
|
} catch {} finally {
|
|
62
|
-
t ||
|
|
80
|
+
t || M(!1);
|
|
63
81
|
}
|
|
64
82
|
})(), () => {
|
|
65
83
|
t = !0;
|
|
66
84
|
};
|
|
67
|
-
}, [
|
|
68
|
-
|
|
69
|
-
}, [
|
|
85
|
+
}, [w, h]), i(() => {
|
|
86
|
+
w && V.current && (V.current.scrollTop = V.current.scrollHeight);
|
|
87
|
+
}, [E, w]);
|
|
70
88
|
let Z = r((e, t) => {
|
|
71
|
-
|
|
89
|
+
D((n) => n.map((n) => n.id === e ? {
|
|
72
90
|
...n,
|
|
73
91
|
...t
|
|
74
92
|
} : n));
|
|
75
93
|
}, []), Q = r(async () => {
|
|
76
|
-
if (
|
|
77
|
-
|
|
94
|
+
if (h.listSessions) {
|
|
95
|
+
R(!0);
|
|
78
96
|
try {
|
|
79
|
-
|
|
97
|
+
P(await h.listSessions());
|
|
80
98
|
} catch {
|
|
81
|
-
|
|
99
|
+
P([]);
|
|
82
100
|
} finally {
|
|
83
|
-
|
|
101
|
+
R(!1);
|
|
84
102
|
}
|
|
85
103
|
}
|
|
86
|
-
}, [
|
|
87
|
-
!
|
|
88
|
-
}, [
|
|
89
|
-
if (!(!
|
|
90
|
-
|
|
104
|
+
}, [h]), ge = r(async () => {
|
|
105
|
+
!h.newSession || A || (D([]), k(""), I(!1), await h.newSession());
|
|
106
|
+
}, [h, A]), _e = r(async (e, t) => {
|
|
107
|
+
if (!(!h.deleteSession || A)) {
|
|
108
|
+
P((t) => t.filter((t) => t.id !== e)), t && (D([]), k(""));
|
|
91
109
|
try {
|
|
92
|
-
await
|
|
110
|
+
await h.deleteSession(e);
|
|
93
111
|
} finally {
|
|
94
112
|
Q();
|
|
95
113
|
}
|
|
96
114
|
}
|
|
97
115
|
}, [
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
h,
|
|
117
|
+
A,
|
|
100
118
|
Q
|
|
101
|
-
]),
|
|
102
|
-
|
|
103
|
-
}, [Q]),
|
|
104
|
-
if (!(!
|
|
105
|
-
|
|
119
|
+
]), ve = r(() => {
|
|
120
|
+
I((e) => (e || Q(), !e));
|
|
121
|
+
}, [Q]), ye = r(async (e) => {
|
|
122
|
+
if (!(!h.selectSession || A)) {
|
|
123
|
+
M(!0);
|
|
106
124
|
try {
|
|
107
|
-
|
|
125
|
+
D(await h.selectSession(e)), I(!1), Q();
|
|
108
126
|
} catch {} finally {
|
|
109
|
-
|
|
127
|
+
M(!1);
|
|
110
128
|
}
|
|
111
129
|
}
|
|
112
130
|
}, [
|
|
113
|
-
|
|
114
|
-
|
|
131
|
+
h,
|
|
132
|
+
A,
|
|
115
133
|
Q
|
|
116
134
|
]), $ = r(async () => {
|
|
117
|
-
let e =
|
|
118
|
-
if (!e ||
|
|
119
|
-
q.isListening && q.stop(), q.reset(),
|
|
135
|
+
let e = O.trim();
|
|
136
|
+
if (!e || A) return;
|
|
137
|
+
q.isListening && q.stop(), q.reset(), k(""), B.current && (B.current.style.height = "auto");
|
|
120
138
|
let t = {
|
|
121
|
-
id:
|
|
139
|
+
id: v(),
|
|
122
140
|
role: "user",
|
|
123
141
|
content: e
|
|
124
|
-
}, n =
|
|
125
|
-
|
|
142
|
+
}, n = v();
|
|
143
|
+
D((e) => [
|
|
126
144
|
...e,
|
|
127
145
|
t,
|
|
128
146
|
{
|
|
@@ -131,11 +149,11 @@ var b = ({ transport: g, title: b = "AI Assistant", subtitle: x = "Ask me to do
|
|
|
131
149
|
content: "",
|
|
132
150
|
pending: !0
|
|
133
151
|
}
|
|
134
|
-
]),
|
|
152
|
+
]), j(!0);
|
|
135
153
|
let r = new AbortController();
|
|
136
|
-
|
|
154
|
+
H.current = r;
|
|
137
155
|
try {
|
|
138
|
-
let { text: t } = await
|
|
156
|
+
let { text: t } = await h.sendPrompt({
|
|
139
157
|
prompt: e,
|
|
140
158
|
signal: r.signal,
|
|
141
159
|
onProgress: (e) => Z(n, { content: e })
|
|
@@ -151,188 +169,211 @@ var b = ({ transport: g, title: b = "AI Assistant", subtitle: x = "Ask me to do
|
|
|
151
169
|
error: !0
|
|
152
170
|
});
|
|
153
171
|
} finally {
|
|
154
|
-
|
|
172
|
+
j(!1), H.current = null, F && Q();
|
|
155
173
|
}
|
|
156
174
|
}, [
|
|
175
|
+
O,
|
|
157
176
|
A,
|
|
158
|
-
M,
|
|
159
177
|
Z,
|
|
160
|
-
|
|
178
|
+
h,
|
|
161
179
|
q,
|
|
162
|
-
|
|
180
|
+
F,
|
|
163
181
|
Q
|
|
164
|
-
]),
|
|
182
|
+
]), be = r((e) => {
|
|
165
183
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
|
|
166
|
-
}, [$]),
|
|
167
|
-
let e =
|
|
184
|
+
}, [$]), xe = r(() => {
|
|
185
|
+
let e = B.current;
|
|
168
186
|
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 120)}px`);
|
|
169
|
-
}, []),
|
|
187
|
+
}, []), Se = r(() => {
|
|
170
188
|
q.isListening ? q.stop() : q.start();
|
|
171
189
|
}, [q]);
|
|
172
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ p(se, { children: [ee(() => /* @__PURE__ */ f("button", {
|
|
173
191
|
type: "button",
|
|
174
192
|
onClick: X,
|
|
175
|
-
onMouseEnter: () => !
|
|
176
|
-
onFocus: () => !
|
|
177
|
-
"aria-label":
|
|
178
|
-
"aria-expanded":
|
|
193
|
+
onMouseEnter: () => !w && h.prewarm?.("probe"),
|
|
194
|
+
onFocus: () => !w && h.prewarm?.("probe"),
|
|
195
|
+
"aria-label": w ? "Close AI assistant" : "Open AI assistant",
|
|
196
|
+
"aria-expanded": w,
|
|
179
197
|
"data-testid": "assistant-widget-launcher",
|
|
180
|
-
className: e("fixed bottom-6 right-6 z-[100] inline-flex size-14 items-center justify-center rounded-full", "bg-action-primary-bg text-action-primary-text shadow-xl transition-transform duration-200", "hover:scale-105 hover:bg-action-primary-bg-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong cursor-pointer",
|
|
181
|
-
children:
|
|
198
|
+
className: e("fixed bottom-6 right-6 z-[100] inline-flex size-14 items-center justify-center rounded-full", "bg-action-primary-bg text-action-primary-text shadow-xl transition-transform duration-200", "hover:scale-105 hover:bg-action-primary-bg-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong cursor-pointer", b),
|
|
199
|
+
children: f(w ? d : u, { className: "size-6" })
|
|
182
200
|
}), [
|
|
183
|
-
|
|
201
|
+
w,
|
|
184
202
|
X,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
]),
|
|
203
|
+
b,
|
|
204
|
+
h
|
|
205
|
+
]), w ? /* @__PURE__ */ p("div", {
|
|
188
206
|
role: "dialog",
|
|
189
|
-
"aria-label":
|
|
207
|
+
"aria-label": g,
|
|
190
208
|
"data-testid": "assistant-widget-window",
|
|
191
|
-
"data-layout":
|
|
192
|
-
|
|
193
|
-
|
|
209
|
+
"data-layout": S,
|
|
210
|
+
style: W ? {
|
|
211
|
+
top: C,
|
|
212
|
+
height: `calc(100vh - ${String(C)}px)`
|
|
213
|
+
} : void 0,
|
|
214
|
+
className: e("fixed z-[100] flex overflow-hidden border-border-default bg-bg-surface shadow-2xl", W ? "bottom-0 right-0 w-full border-l sm:w-[480px] lg:w-[560px] animate-in slide-in-from-right duration-200" : "flex-col rounded-xl border bottom-24 right-6 h-[560px] max-h-[calc(100vh-7rem)] w-[calc(100vw-3rem)] sm:w-[400px] animate-in slide-in-from-bottom-2 fade-in duration-200"),
|
|
215
|
+
children: [W && G && z ? /* @__PURE__ */ p("aside", {
|
|
194
216
|
"data-testid": "assistant-session-panel",
|
|
195
217
|
className: "flex w-[168px] shrink-0 flex-col gap-1 border-r border-border-subtle bg-bg-sunken p-2",
|
|
196
218
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ p("button", {
|
|
220
|
+
type: "button",
|
|
221
|
+
onClick: K,
|
|
222
|
+
"aria-label": "Hide chats",
|
|
223
|
+
"aria-expanded": !0,
|
|
224
|
+
title: "Hide chats",
|
|
225
|
+
"data-testid": "assistant-rail-toggle",
|
|
226
|
+
className: "mb-1 flex items-center gap-2 rounded-md px-2 py-2 text-xs font-medium text-text-secondary transition-colors hover:bg-bg-surface hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong cursor-pointer",
|
|
227
|
+
children: [/* @__PURE__ */ f(ne, { className: "size-4 shrink-0" }), "Hide chats"]
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ p("button", {
|
|
198
230
|
type: "button",
|
|
199
|
-
onClick: () => void
|
|
200
|
-
disabled:
|
|
231
|
+
onClick: () => void ge(),
|
|
232
|
+
disabled: A,
|
|
201
233
|
"data-testid": "assistant-new-chat",
|
|
202
234
|
className: "flex items-center gap-2 rounded-md px-2 py-2 text-xs font-medium text-text-primary transition-colors hover:bg-bg-surface disabled:opacity-50 cursor-pointer",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ f(ie, { className: "size-4 shrink-0" }), "New chat"]
|
|
204
236
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ p("button", {
|
|
206
238
|
type: "button",
|
|
207
|
-
onClick:
|
|
208
|
-
"aria-expanded":
|
|
239
|
+
onClick: ve,
|
|
240
|
+
"aria-expanded": F,
|
|
209
241
|
"data-testid": "assistant-history-toggle",
|
|
210
242
|
className: "flex items-center gap-2 rounded-md px-2 py-2 text-xs font-medium text-text-primary transition-colors hover:bg-bg-surface cursor-pointer",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ f(s, { className: "size-4 shrink-0" }), "History"]
|
|
212
244
|
}),
|
|
213
|
-
|
|
245
|
+
F ? /* @__PURE__ */ f("div", {
|
|
214
246
|
"data-testid": "assistant-history-list",
|
|
215
247
|
className: "mt-1 flex-1 space-y-0.5 overflow-y-auto border-t border-border-subtle pt-2",
|
|
216
|
-
children:
|
|
248
|
+
children: L && N.length === 0 ? /* @__PURE__ */ p("p", {
|
|
217
249
|
className: "flex items-center gap-1.5 px-2 py-1 text-[11px] text-text-muted",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
219
|
-
}) :
|
|
250
|
+
children: [/* @__PURE__ */ f(c, { className: "size-3 animate-spin" }), "Loading…"]
|
|
251
|
+
}) : N.length === 0 ? /* @__PURE__ */ f("p", {
|
|
220
252
|
className: "px-2 py-1 text-[11px] leading-relaxed text-text-muted",
|
|
221
253
|
children: "No past chats yet."
|
|
222
|
-
}) :
|
|
254
|
+
}) : N.map((t) => /* @__PURE__ */ p("div", {
|
|
223
255
|
"data-testid": "assistant-history-row",
|
|
224
256
|
className: e("group flex items-center gap-1 rounded pr-1 transition-colors", t.active ? "bg-bg-surface" : "hover:bg-bg-surface"),
|
|
225
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ f("button", {
|
|
226
258
|
type: "button",
|
|
227
|
-
onClick: () => void
|
|
259
|
+
onClick: () => void ye(t.id),
|
|
228
260
|
title: t.title,
|
|
229
261
|
"data-testid": "assistant-history-item",
|
|
230
262
|
className: e("min-w-0 flex-1 truncate rounded px-2 py-1.5 text-left text-[11px] leading-relaxed cursor-pointer", t.active ? "font-medium text-text-primary" : "text-text-secondary group-hover:text-text-primary"),
|
|
231
263
|
children: t.title
|
|
232
|
-
}),
|
|
264
|
+
}), h.deleteSession ? /* @__PURE__ */ f("button", {
|
|
233
265
|
type: "button",
|
|
234
|
-
onClick: () => void
|
|
235
|
-
disabled:
|
|
266
|
+
onClick: () => void _e(t.id, !!t.active),
|
|
267
|
+
disabled: A,
|
|
236
268
|
"aria-label": `Delete chat: ${t.title}`,
|
|
237
269
|
title: "Delete this chat",
|
|
238
270
|
"data-testid": "assistant-delete-chat",
|
|
239
271
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded text-text-muted opacity-0 transition-opacity hover:text-status-error-bg focus-visible:opacity-100 group-hover:opacity-100 disabled:opacity-30 cursor-pointer",
|
|
240
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ f(oe, { className: "size-3.5" })
|
|
241
273
|
}) : null]
|
|
242
274
|
}, t.id))
|
|
243
275
|
}) : null
|
|
244
276
|
]
|
|
245
|
-
}) : null, /* @__PURE__ */
|
|
277
|
+
}) : null, /* @__PURE__ */ p("div", {
|
|
246
278
|
className: "flex min-w-0 flex-1 flex-col",
|
|
247
279
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ p("div", {
|
|
249
281
|
className: "flex items-center justify-between gap-2 border-b border-border-subtle bg-bg-surface px-4 py-3",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ p("div", {
|
|
251
283
|
className: "flex min-w-0 items-center gap-2",
|
|
252
|
-
children: [/* @__PURE__ */ p("
|
|
284
|
+
children: [W && G && !z ? /* @__PURE__ */ p("button", {
|
|
285
|
+
type: "button",
|
|
286
|
+
onClick: K,
|
|
287
|
+
"aria-label": "Show chats",
|
|
288
|
+
"aria-expanded": !1,
|
|
289
|
+
title: "Show chats",
|
|
290
|
+
"data-testid": "assistant-rail-toggle",
|
|
291
|
+
className: "inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border-subtle px-2 py-1.5 text-xs font-medium text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong cursor-pointer",
|
|
292
|
+
children: [/* @__PURE__ */ f(re, { className: "size-4" }), "Chats"]
|
|
293
|
+
}) : /* @__PURE__ */ f("span", {
|
|
253
294
|
className: "inline-flex size-7 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-action-primary-bg",
|
|
254
|
-
children: /* @__PURE__ */
|
|
255
|
-
}), /* @__PURE__ */
|
|
295
|
+
children: /* @__PURE__ */ f(u, { className: "size-4" })
|
|
296
|
+
}), /* @__PURE__ */ f("h2", {
|
|
256
297
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
257
|
-
children:
|
|
298
|
+
children: g
|
|
258
299
|
})]
|
|
259
|
-
}), /* @__PURE__ */
|
|
300
|
+
}), /* @__PURE__ */ f("button", {
|
|
260
301
|
type: "button",
|
|
261
302
|
onClick: Y,
|
|
262
303
|
"aria-label": "Close AI assistant",
|
|
263
304
|
"data-testid": "assistant-widget-close",
|
|
264
305
|
className: "inline-flex size-8 shrink-0 items-center justify-center rounded-md text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong cursor-pointer",
|
|
265
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ f(d, { className: "size-4" })
|
|
266
307
|
})]
|
|
267
308
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
ref:
|
|
309
|
+
/* @__PURE__ */ f("div", {
|
|
310
|
+
ref: V,
|
|
270
311
|
className: "flex-1 space-y-3 overflow-y-auto px-4 py-4",
|
|
271
312
|
"data-testid": "assistant-widget-messages",
|
|
272
|
-
children:
|
|
313
|
+
children: E.length === 0 && me ? /* @__PURE__ */ p("div", {
|
|
273
314
|
"data-testid": "assistant-widget-restoring",
|
|
274
315
|
className: "flex h-full flex-col items-center justify-center gap-3 text-center",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ f(c, { className: "size-5 animate-spin text-text-secondary" }), /* @__PURE__ */ f("p", {
|
|
276
317
|
className: "text-xs leading-relaxed text-text-secondary",
|
|
277
318
|
children: "Restoring your conversation…"
|
|
278
319
|
})]
|
|
279
|
-
}) :
|
|
320
|
+
}) : E.length === 0 ? /* @__PURE__ */ p("div", {
|
|
280
321
|
className: "flex h-full flex-col items-center justify-center gap-3 text-center",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ f("span", {
|
|
282
323
|
className: "inline-flex size-12 items-center justify-center rounded-full bg-bg-sunken text-action-primary-bg",
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
}), /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ f(l, { className: "size-6" })
|
|
325
|
+
}), /* @__PURE__ */ f("p", {
|
|
285
326
|
className: "max-w-[16rem] text-xs leading-relaxed text-text-secondary",
|
|
286
|
-
children:
|
|
327
|
+
children: y
|
|
287
328
|
})]
|
|
288
|
-
}) :
|
|
329
|
+
}) : E.map((t) => /* @__PURE__ */ f("div", {
|
|
289
330
|
className: e("flex", t.role === "user" ? "justify-end" : "justify-start"),
|
|
290
|
-
children: /* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ p("div", {
|
|
291
332
|
"data-testid": `assistant-widget-message-${t.role}`,
|
|
292
|
-
className: e("whitespace-pre-wrap break-words rounded-lg px-3 py-2 text-xs leading-relaxed",
|
|
293
|
-
children: [t.content ? /* @__PURE__ */
|
|
333
|
+
className: e("whitespace-pre-wrap break-words rounded-lg px-3 py-2 text-xs leading-relaxed", W ? "max-w-[92%]" : "max-w-[85%]", t.role === "user" ? "bg-action-primary-bg text-action-primary-text" : t.error ? "bg-status-error-bg/10 text-status-error-bg" : "bg-bg-sunken text-text-primary"),
|
|
334
|
+
children: [t.content ? /* @__PURE__ */ f(n, {
|
|
294
335
|
content: t.content,
|
|
295
|
-
onNavigate:
|
|
296
|
-
}) : null, t.pending ? /* @__PURE__ */
|
|
336
|
+
onNavigate: pe
|
|
337
|
+
}) : null, t.pending ? /* @__PURE__ */ p("span", {
|
|
297
338
|
"data-testid": "assistant-widget-working",
|
|
298
339
|
className: e("inline-flex items-center gap-1 text-text-secondary", t.content ? "mt-1" : ""),
|
|
299
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ f(c, { className: "size-3 animate-spin" }), t.content ? null : /* @__PURE__ */ f("span", { children: "Working on it…" })]
|
|
300
341
|
}) : null]
|
|
301
342
|
})
|
|
302
343
|
}, t.id))
|
|
303
344
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ p("div", {
|
|
305
346
|
className: "flex items-end gap-2 border-t border-border-default bg-bg-surface px-3 py-2.5",
|
|
306
347
|
children: [
|
|
307
|
-
q.isSupported ? /* @__PURE__ */
|
|
348
|
+
q.isSupported ? /* @__PURE__ */ f("button", {
|
|
308
349
|
type: "button",
|
|
309
|
-
onClick:
|
|
350
|
+
onClick: Se,
|
|
310
351
|
"aria-label": q.isListening ? "Stop voice input" : "Start voice input",
|
|
311
352
|
"aria-pressed": q.isListening,
|
|
312
353
|
"data-testid": "assistant-widget-mic",
|
|
313
354
|
className: e("flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong cursor-pointer", q.isListening ? "animate-pulse bg-status-error-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"),
|
|
314
|
-
children: /* @__PURE__ */
|
|
355
|
+
children: /* @__PURE__ */ f(te, { className: "size-4" })
|
|
315
356
|
}) : null,
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
ref:
|
|
318
|
-
value:
|
|
319
|
-
onChange: (e) =>
|
|
320
|
-
onKeyDown:
|
|
321
|
-
onInput:
|
|
357
|
+
/* @__PURE__ */ f("textarea", {
|
|
358
|
+
ref: B,
|
|
359
|
+
value: O,
|
|
360
|
+
onChange: (e) => k(e.target.value),
|
|
361
|
+
onKeyDown: be,
|
|
362
|
+
onInput: xe,
|
|
322
363
|
rows: 1,
|
|
323
|
-
placeholder:
|
|
364
|
+
placeholder: de,
|
|
324
365
|
"aria-label": "Message the assistant",
|
|
325
366
|
"data-testid": "assistant-widget-input",
|
|
326
367
|
className: "flex-1 resize-none rounded-lg border border-border-default bg-bg-sunken px-3 py-2 text-xs leading-relaxed text-text-primary placeholder:text-text-muted focus:border-action-primary-bg focus:outline-none"
|
|
327
368
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ f("button", {
|
|
329
370
|
type: "button",
|
|
330
371
|
onClick: () => void $(),
|
|
331
|
-
disabled:
|
|
372
|
+
disabled: A || O.trim().length === 0,
|
|
332
373
|
"aria-label": "Send message",
|
|
333
374
|
"data-testid": "assistant-widget-send",
|
|
334
375
|
className: "flex size-9 shrink-0 items-center justify-center rounded-lg bg-action-primary-bg text-action-primary-text transition-colors hover:bg-action-primary-bg-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong disabled:opacity-50 cursor-pointer",
|
|
335
|
-
children:
|
|
376
|
+
children: A ? /* @__PURE__ */ f(c, { className: "size-4 animate-spin" }) : /* @__PURE__ */ f(ae, { className: "size-4" })
|
|
336
377
|
})
|
|
337
378
|
]
|
|
338
379
|
})
|
|
@@ -341,4 +382,4 @@ var b = ({ transport: g, title: b = "AI Assistant", subtitle: x = "Ask me to do
|
|
|
341
382
|
}) : null] });
|
|
342
383
|
};
|
|
343
384
|
//#endregion
|
|
344
|
-
export {
|
|
385
|
+
export { m as ASSISTANT_WIDGET_TOGGLE_EVENT, y as AssistantWidget };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gatewayUrls.d.ts","sourceRoot":"","sources":["../../../src/shared/config/gatewayUrls.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAoBD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"gatewayUrls.d.ts","sourceRoot":"","sources":["../../../src/shared/config/gatewayUrls.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAoBD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAiD/B,CAAC;AAEF,eAAO,MAAM,UAAU,aAGrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW,aAOtB,CAAC;AAEH,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AA8BD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,IAAI,kBAAkB,CA6BvD"}
|
|
@@ -11,7 +11,7 @@ var e = {
|
|
|
11
11
|
workspaceBaseUrl: "https://gw-wspace.local.burdenoff.com",
|
|
12
12
|
globalBaseUrl: "https://gw-global.local.burdenoff.com",
|
|
13
13
|
publicStoreBaseUrl: "https://gw-global.local.burdenoff.com"
|
|
14
|
-
}, r = /* @__PURE__ */ "burdenoff.com,vibecontrols.com,fluidgrids.com,botlit.ai,bigconsole.com,gethealthybowl.com,headshotmarketing.com,timecampus.com,ggnomad.com,movethewheels.com,crewfoundry.com,planmagnet.com,eventfullymanaged.com,kadaikodi.com,assethandler.com,technospam.com,semanticfed.com,manufacturedops.com,theglobalfuel.com,housingvista.com,proserviceworld.com,mybodyshield.com,artistrybase.com,collabkin.com,brainyrich.com,theculturepost.com,comradecircle.com,cosmicintersection.com,govcitizenhub.com,intelwatchtower.com,ecoimpacthub.com,buildmyiq.com,fluidgrids.ai,atheletebridge.com,adaptercloud.com,coolandlovely.com,subscriberbot.com,labsofscience.com,hookmovies.com".split(","), i = new Set([...r.map((e) => `app.${e}`), "admin.burdenoff.com"]), a = new Set([...r.map((e) => `alphaapp.${e}`), "alphaadmin.burdenoff.com"]);
|
|
14
|
+
}, r = /* @__PURE__ */ "burdenoff.com,vibecontrols.com,fluidgrids.com,fluidgrids.ai,botlit.ai,bigconsole.com,gethealthybowl.com,headshotmarketing.com,timecampus.com,ggnomad.com,movethewheels.com,crewfoundry.com,planmagnet.com,eventfullymanaged.com,kadaikodi.com,assethandler.com,technospam.com,semanticfed.com,manufacturedops.com,theglobalfuel.com,housingvista.com,proserviceworld.com,mybodyshield.com,artistrybase.com,collabkin.com,brainyrich.com,theculturepost.com,comradecircle.com,cosmicintersection.com,govcitizenhub.com,intelwatchtower.com,ecoimpacthub.com,buildmyiq.com,fluidgrids.ai,atheletebridge.com,adaptercloud.com,coolandlovely.com,subscriberbot.com,labsofscience.com,hookmovies.com".split(","), i = new Set([...r.map((e) => `app.${e}`), "admin.burdenoff.com"]), a = new Set([...r.map((e) => `alphaapp.${e}`), "alphaadmin.burdenoff.com"]);
|
|
15
15
|
function o() {
|
|
16
16
|
return typeof window > "u" ? "" : window.location.hostname.toLowerCase();
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createClient as e } from "../../../node_modules
|
|
1
|
+
import { createClient as e } from "../../../node_modules/graphql-ws/dist/client.js";
|
|
2
2
|
import { ApolloLink as t, Observable as n } from "@apollo/client";
|
|
3
3
|
import { print as r } from "graphql";
|
|
4
4
|
//#region src/shared/graphql/links/ws-link.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Capacitor as e } from "../../node_modules
|
|
1
|
+
import { Capacitor as e } from "../../node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
//#region src/shared/native/purchases.ts
|
|
3
3
|
function t() {
|
|
4
4
|
return e.isNativePlatform();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGatewayClient as e } from "../graphql/GatewayContext.js";
|
|
2
2
|
import "../../shared-graphql.js";
|
|
3
|
-
import { Markdown as t } from "../../node_modules
|
|
3
|
+
import { Markdown as t } from "../../node_modules/react-markdown/lib/index.js";
|
|
4
4
|
import { useEffect as n, useState as r } from "react";
|
|
5
5
|
import { ArrowLeft as i, Clock as a, FileText as o, Shield as s } from "lucide-react";
|
|
6
6
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -10,7 +10,7 @@ import { LogManager as ee } from "../logger/LogManager.js";
|
|
|
10
10
|
import { ConsoleTransport as te } from "../logger/ConsoleTransport.js";
|
|
11
11
|
import { ThemeProvider as m } from "./shell/ThemeProvider.js";
|
|
12
12
|
import { ErrorFallback as ne } from "../components/ErrorFallback.js";
|
|
13
|
-
import { m as h } from "../../node_modules
|
|
13
|
+
import { m as h } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
|
|
14
14
|
import { PWAInstallBanner as g } from "../components/PWAInstallBanner.js";
|
|
15
15
|
import { FeatureFlagsProvider as _ } from "./shell/FeatureFlagsProvider.js";
|
|
16
16
|
import { FeatureFlagProvider as v } from "../feature-flags/FeatureFlagProvider.js";
|
|
@@ -19,7 +19,7 @@ import { ShellUiProvider as b } from "./shell/ShellUiProvider.js";
|
|
|
19
19
|
import { ContextManagerProvider as re } from "./shell/ContextManagerProvider.js";
|
|
20
20
|
import { AuthTokenProvider as ie } from "./shell/AuthTokenProvider.js";
|
|
21
21
|
import { MultiGatewayProvider as ae } from "./shell/MultiGatewayProvider.js";
|
|
22
|
-
import { G as x, j as S, w as C } from "../../node_modules
|
|
22
|
+
import { G as x, j as S, w as C } from "../../node_modules/web-vitals/dist/web-vitals.js";
|
|
23
23
|
import { ProfileI18nBridge as oe } from "./shell/ProfileI18nBridge.js";
|
|
24
24
|
import { ProfileGeographyBridge as w } from "./shell/ProfileGeographyBridge.js";
|
|
25
25
|
import { DevtoolsSink as se } from "../events/sinks/DevtoolsSink.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { G as e, j as t, w as n } from "../../../node_modules
|
|
2
|
+
import { G as e, j as t, w as n } from "../../../node_modules/web-vitals/dist/web-vitals.js";
|
|
3
3
|
import { useEffect as r } from "react";
|
|
4
4
|
import { Fragment as i, jsx as a } from "react/jsx-runtime";
|
|
5
5
|
//#region src/shared/providers/shell/ObservabilityProvider.tsx
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { trimLines as e } from "../../../../../trim-lines@3.0.1/node_modules/trim-lines/index.js";
|
|
2
|
-
//#region ../node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
let r = {
|
|
5
|
-
type: "text",
|
|
6
|
-
value: e(String(n.value))
|
|
7
|
-
};
|
|
8
|
-
return t.patch(n, r), t.applyData(n, r);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t as text };
|