@alfadocs/ui-kit 0.30.5 → 0.31.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/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
- package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
- package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
- package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
- package/dist/_chunks/ar-CEpIJtcO.js +399 -0
- package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
- package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
- package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
- package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
- package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
- package/dist/_chunks/{booking-Cw92aqo3.js → booking-BIZ9GSer.js} +149 -160
- package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
- package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
- package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
- package/dist/_chunks/calendar-clock-CYkcqdwl.js +19 -0
- package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
- package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
- package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
- package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
- package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
- package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
- package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
- package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
- package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
- package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
- package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
- package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
- package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
- package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
- package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
- package/dist/_chunks/de-Dfbeau59.js +477 -0
- package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
- package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-CztRy_21.js → editable-currency-cell-renderer-BpicmolK.js} +308 -322
- package/dist/_chunks/el-Dro3J7CP.js +373 -0
- package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
- package/dist/_chunks/es-Dvg8u70B.js +373 -0
- package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
- package/dist/_chunks/fr-VOGjBSPP.js +338 -0
- package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
- package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
- package/dist/_chunks/hi-BSDxWU_y.js +433 -0
- package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
- package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
- package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
- package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
- package/dist/_chunks/it-CuonvcI_.js +401 -0
- package/dist/_chunks/ja-DO57gIOT.js +366 -0
- package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
- package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
- package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
- package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
- package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
- package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
- package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
- package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
- package/dist/_chunks/nl-DjPaaWaW.js +326 -0
- package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
- package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
- package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
- package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
- package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
- package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
- package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
- package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
- package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
- package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
- package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
- package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
- package/dist/_chunks/practice-results-JQunxBIg.js +1618 -0
- package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
- package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
- package/dist/_chunks/pt-D7qO5CzD.js +370 -0
- package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
- package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
- package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
- package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
- package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
- package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
- package/dist/_chunks/refresh-cw-CC8jSKMr.js +17 -0
- package/dist/_chunks/registry-nPAVE19X.js +21 -0
- package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
- package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
- package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
- package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
- package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
- package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
- package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
- package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
- package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
- package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
- package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
- package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
- package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
- package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
- package/dist/_chunks/smile-BSYLAHy6.js +17 -0
- package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
- package/dist/_chunks/sq-AQvefouo.js +355 -0
- package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
- package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
- package/dist/_chunks/sv-zkx9eBtD.js +376 -0
- package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
- package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
- package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
- package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
- package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
- package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
- package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
- package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
- package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
- package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
- package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
- package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
- package/dist/_chunks/tr-Dmr412Ac.js +378 -0
- package/dist/_chunks/{transaction-chip-z9ENE50O.js → transaction-chip-B8ujzowA.js} +47 -60
- package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
- package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
- package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
- package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
- package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
- package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
- package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
- package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
- package/dist/agent/registry.d.ts +1 -6
- package/dist/agent-catalog.json +42 -1
- package/dist/components/_shared/date-locale.d.ts +7 -2
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +6 -6
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +10 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.d.ts +4 -0
- package/dist/components/practice-results/index.js +6 -0
- package/dist/components/practice-results/practice-results.agent.d.ts +4 -0
- package/dist/components/practice-results/practice-results.d.ts +159 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +69 -66
- package/dist/i18n/locales/ar.d.ts +92 -0
- package/dist/i18n/locales/ar.js +82 -0
- package/dist/i18n/locales/de.d.ts +92 -0
- package/dist/i18n/locales/de.js +81 -0
- package/dist/i18n/locales/el.d.ts +92 -0
- package/dist/i18n/locales/el.js +82 -0
- package/dist/i18n/locales/en.d.ts +92 -0
- package/dist/i18n/locales/en.js +92 -0
- package/dist/i18n/locales/es.d.ts +92 -0
- package/dist/i18n/locales/es.js +81 -0
- package/dist/i18n/locales/fr.d.ts +92 -0
- package/dist/i18n/locales/fr.js +81 -0
- package/dist/i18n/locales/hi.d.ts +92 -0
- package/dist/i18n/locales/hi.js +82 -0
- package/dist/i18n/locales/it.d.ts +92 -0
- package/dist/i18n/locales/it.js +81 -0
- package/dist/i18n/locales/ja.d.ts +92 -0
- package/dist/i18n/locales/ja.js +82 -0
- package/dist/i18n/locales/nl.d.ts +92 -0
- package/dist/i18n/locales/nl.js +81 -0
- package/dist/i18n/locales/pl.d.ts +92 -0
- package/dist/i18n/locales/pl.js +82 -0
- package/dist/i18n/locales/pt.d.ts +92 -0
- package/dist/i18n/locales/pt.js +83 -0
- package/dist/i18n/locales/ro.d.ts +92 -0
- package/dist/i18n/locales/ro.js +82 -0
- package/dist/i18n/locales/ru.d.ts +92 -0
- package/dist/i18n/locales/ru.js +82 -0
- package/dist/i18n/locales/sq.d.ts +92 -0
- package/dist/i18n/locales/sq.js +82 -0
- package/dist/i18n/locales/sv.d.ts +92 -0
- package/dist/i18n/locales/sv.js +82 -0
- package/dist/i18n/locales/tr.d.ts +92 -0
- package/dist/i18n/locales/tr.js +82 -0
- package/dist/i18n/locales/zh.d.ts +92 -0
- package/dist/i18n/locales/zh.js +82 -0
- package/dist/index.js +532 -528
- package/dist/locales/ar.json +92 -0
- package/dist/locales/de.json +92 -0
- package/dist/locales/el.json +92 -0
- package/dist/locales/en.json +92 -0
- package/dist/locales/es.json +92 -0
- package/dist/locales/fr.json +92 -0
- package/dist/locales/hi.json +92 -0
- package/dist/locales/it.json +92 -0
- package/dist/locales/ja.json +92 -0
- package/dist/locales/nl.json +92 -0
- package/dist/locales/pl.json +92 -0
- package/dist/locales/pt.json +92 -0
- package/dist/locales/ro.json +92 -0
- package/dist/locales/ru.json +92 -0
- package/dist/locales/sq.json +92 -0
- package/dist/locales/sv.json +92 -0
- package/dist/locales/tr.json +92 -0
- package/dist/locales/zh.json +92 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -2
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
- package/dist/_chunks/registry-C9nwlNyL.js +0 -21
- package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -311,6 +311,10 @@
|
|
|
311
311
|
"types": "./dist/components/patient-search/index.d.ts",
|
|
312
312
|
"import": "./dist/components/patient-search/index.js"
|
|
313
313
|
},
|
|
314
|
+
"./practice-results": {
|
|
315
|
+
"types": "./dist/components/practice-results/index.d.ts",
|
|
316
|
+
"import": "./dist/components/practice-results/index.js"
|
|
317
|
+
},
|
|
314
318
|
"./payment-form": {
|
|
315
319
|
"types": "./dist/components/payment-form/index.d.ts",
|
|
316
320
|
"import": "./dist/components/payment-form/index.js"
|
|
@@ -701,7 +705,6 @@
|
|
|
701
705
|
}
|
|
702
706
|
},
|
|
703
707
|
"dependencies": {
|
|
704
|
-
"@alfadocs/ui-kit": "^0.17.1",
|
|
705
708
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
706
709
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
707
710
|
"@radix-ui/react-aspect-ratio": "^1.1.8",
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { jsxs as C, jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as U, useRef as i, useState as _, useEffect as b, useMemo as $, useId as G } from "react";
|
|
3
|
-
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as J } from "react-i18next";
|
|
5
|
-
const K = H(
|
|
6
|
-
[
|
|
7
|
-
"ds:relative ds:inline-flex ds:items-end ds:justify-center",
|
|
8
|
-
// 2px gap is a visual-tuning value (sub-token): the bars need a pixel
|
|
9
|
-
// comma between them that would look like padding at --spacing-xs (4px).
|
|
10
|
-
"ds:gap-[2px]",
|
|
11
|
-
"ds:rounded-[var(--radius-sm)]",
|
|
12
|
-
"ds:bg-transparent",
|
|
13
|
-
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
14
|
-
].join(" "),
|
|
15
|
-
{
|
|
16
|
-
variants: {
|
|
17
|
-
size: {
|
|
18
|
-
sm: "ds:h-6 ds:min-w-[120px] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
19
|
-
md: "ds:h-10 ds:min-w-[160px] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
20
|
-
lg: "ds:h-14 ds:min-w-[220px] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: { size: "md" }
|
|
24
|
-
}
|
|
25
|
-
), O = U(
|
|
26
|
-
({
|
|
27
|
-
stream: p,
|
|
28
|
-
size: T = "md",
|
|
29
|
-
barCount: t = 32,
|
|
30
|
-
deviceName: A,
|
|
31
|
-
label: V,
|
|
32
|
-
className: k,
|
|
33
|
-
...q
|
|
34
|
-
}, B) => {
|
|
35
|
-
const { t: M } = J(), o = i([]), c = i(null), f = i(null), l = i(null), h = i(null), v = i(null), [R, j] = _(!1);
|
|
36
|
-
b(() => {
|
|
37
|
-
var n;
|
|
38
|
-
if (typeof window > "u") return;
|
|
39
|
-
const e = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
40
|
-
j(e.matches);
|
|
41
|
-
const r = () => j(e.matches);
|
|
42
|
-
return (n = e.addEventListener) == null || n.call(e, "change", r), () => {
|
|
43
|
-
var d;
|
|
44
|
-
return (d = e.removeEventListener) == null ? void 0 : d.call(e, "change", r);
|
|
45
|
-
};
|
|
46
|
-
}, []), b(() => {
|
|
47
|
-
if (!p) {
|
|
48
|
-
o.current.forEach((s) => {
|
|
49
|
-
s == null || s.style.setProperty("--bar-height", "10%");
|
|
50
|
-
});
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const e = window.AudioContext || window.webkitAudioContext;
|
|
54
|
-
if (!e) return;
|
|
55
|
-
const r = new e(), n = r.createAnalyser();
|
|
56
|
-
n.fftSize = 256;
|
|
57
|
-
const d = r.createMediaStreamSource(p);
|
|
58
|
-
d.connect(n), f.current = r, l.current = n, h.current = d, v.current = new Uint8Array(n.frequencyBinCount);
|
|
59
|
-
let z = 0;
|
|
60
|
-
const x = (s) => {
|
|
61
|
-
var E;
|
|
62
|
-
if (R && s - z < 250) {
|
|
63
|
-
c.current = requestAnimationFrame(x);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
z = s;
|
|
67
|
-
const a = v.current, u = l.current;
|
|
68
|
-
if (!a || !u) return;
|
|
69
|
-
u.getByteFrequencyData(
|
|
70
|
-
a
|
|
71
|
-
);
|
|
72
|
-
const y = Math.max(1, Math.floor(a.length / t));
|
|
73
|
-
for (let m = 0; m < t; m += 1) {
|
|
74
|
-
let L = 0;
|
|
75
|
-
for (let w = 0; w < y; w += 1)
|
|
76
|
-
L += a[m * y + w] ?? 0;
|
|
77
|
-
const D = L / y, I = Math.max(8, Math.min(100, D / 255 * 100));
|
|
78
|
-
(E = o.current[m]) == null || E.style.setProperty("--bar-height", `${I}%`);
|
|
79
|
-
}
|
|
80
|
-
c.current = requestAnimationFrame(x);
|
|
81
|
-
};
|
|
82
|
-
return c.current = requestAnimationFrame(x), () => {
|
|
83
|
-
var s, a, u;
|
|
84
|
-
c.current !== null && cancelAnimationFrame(c.current), c.current = null;
|
|
85
|
-
try {
|
|
86
|
-
(s = h.current) == null || s.disconnect();
|
|
87
|
-
} catch {
|
|
88
|
-
}
|
|
89
|
-
try {
|
|
90
|
-
(a = l.current) == null || a.disconnect();
|
|
91
|
-
} catch {
|
|
92
|
-
}
|
|
93
|
-
(u = f.current) == null || u.close().catch(() => {
|
|
94
|
-
}), f.current = null, l.current = null, h.current = null, v.current = null;
|
|
95
|
-
};
|
|
96
|
-
}, [p, t, R]);
|
|
97
|
-
const N = $(() => Array.from({ length: t }), [t]);
|
|
98
|
-
b(() => {
|
|
99
|
-
o.current.length > t && (o.current.length = t);
|
|
100
|
-
}, [t]);
|
|
101
|
-
const P = V ?? M("chat.audio.visualiserLabel"), g = A ? M("chat.audio.device", { name: A }) : null, F = G();
|
|
102
|
-
return /* @__PURE__ */ C(
|
|
103
|
-
"div",
|
|
104
|
-
{
|
|
105
|
-
ref: B,
|
|
106
|
-
role: "img",
|
|
107
|
-
"aria-label": P,
|
|
108
|
-
"aria-describedby": g ? F : void 0,
|
|
109
|
-
"data-component": "audio-visualiser",
|
|
110
|
-
className: K({ size: T, className: k }),
|
|
111
|
-
...q,
|
|
112
|
-
children: [
|
|
113
|
-
N.map((e, r) => /* @__PURE__ */ S(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
ref: (n) => {
|
|
117
|
-
o.current[r] = n;
|
|
118
|
-
},
|
|
119
|
-
"aria-hidden": "true",
|
|
120
|
-
className: [
|
|
121
|
-
"ds:inline-block ds:w-[3px] ds:min-w-[3px]",
|
|
122
|
-
"ds:bg-[color:var(--primary)]",
|
|
123
|
-
"ds:forced-colors:bg-[CanvasText]",
|
|
124
|
-
"ds:rounded-[1px]",
|
|
125
|
-
"ds:transition-[height] ds:duration-[var(--duration-fast)] ds:motion-reduce:transition-none",
|
|
126
|
-
// Height is runtime-computed — applied via --bar-height CSS var
|
|
127
|
-
// set on the element (inline style is limited to --bar-height; the
|
|
128
|
-
// element never receives a position/size class via style).
|
|
129
|
-
"ds:[block-size:var(--bar-height,10%)]"
|
|
130
|
-
].join(" "),
|
|
131
|
-
style: { "--bar-height": "10%" }
|
|
132
|
-
},
|
|
133
|
-
r
|
|
134
|
-
)),
|
|
135
|
-
g ? /* @__PURE__ */ S("span", { id: F, className: "ds:sr-only", children: g }) : null
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
O.displayName = "AudioVisualiser";
|
|
142
|
-
export {
|
|
143
|
-
O as A
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=audio-visualiser-I-T4Z7EU.js.map
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { jsxs as U, jsx as L } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as q, useRef as u, useState as E, useEffect as G, useMemo as J, useImperativeHandle as K } from "react";
|
|
3
|
-
import { useTranslation as Q } from "react-i18next";
|
|
4
|
-
import { u as X } from "./form-field-context-B3APVHKx.js";
|
|
5
|
-
import { u as Y } from "./use-theme-C2dHKUAN.js";
|
|
6
|
-
import { u as Z } from "./registry-C9nwlNyL.js";
|
|
7
|
-
const z = {
|
|
8
|
-
id: "recaptcha-widget",
|
|
9
|
-
capabilities: ["submit"],
|
|
10
|
-
state: {
|
|
11
|
-
hasToken: {
|
|
12
|
-
type: "boolean",
|
|
13
|
-
descriptionKey: "ui.agent.recaptchaWidget.state.hasToken",
|
|
14
|
-
description: "True when the widget currently holds a valid verification token.",
|
|
15
|
-
read: (t) => t.getResponse().length > 0
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
actions: {
|
|
19
|
-
execute: {
|
|
20
|
-
safety: "write",
|
|
21
|
-
descriptionKey: "ui.agent.recaptchaWidget.actions.execute",
|
|
22
|
-
description: "Programmatically trigger the captcha challenge. Issues a token via the callback.",
|
|
23
|
-
invoke: (t) => {
|
|
24
|
-
t.execute();
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
reset: {
|
|
28
|
-
safety: "destructive",
|
|
29
|
-
descriptionKey: "ui.agent.recaptchaWidget.actions.reset",
|
|
30
|
-
description: "Clear the current token and re-roll the captcha. Irreversible.",
|
|
31
|
-
invoke: (t) => {
|
|
32
|
-
t.reset();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
domHooks: {
|
|
37
|
-
root: {
|
|
38
|
-
attr: "data-component",
|
|
39
|
-
value: "recaptcha-widget",
|
|
40
|
-
description: "Marks the RecaptchaWidget wrapper."
|
|
41
|
-
},
|
|
42
|
-
instanceId: {
|
|
43
|
-
attr: "data-component-id",
|
|
44
|
-
sourceProp: "id",
|
|
45
|
-
description: "Sourced from the id prop (or the surrounding FormField id)."
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}, C = "https://www.google.com/recaptcha/api.js", j = "alfadocs-ui-recaptcha-loader";
|
|
49
|
-
let f = null;
|
|
50
|
-
function ee(t) {
|
|
51
|
-
return typeof window > "u" ? Promise.reject(new Error("recaptcha: window is not available")) : window.grecaptcha && typeof window.grecaptcha.render == "function" ? Promise.resolve(window.grecaptcha) : f || (f = new Promise((d, g) => {
|
|
52
|
-
const b = document.getElementById(
|
|
53
|
-
j
|
|
54
|
-
), i = () => {
|
|
55
|
-
window.grecaptcha && typeof window.grecaptcha.render == "function" ? d(window.grecaptcha) : g(new Error("recaptcha: grecaptcha global missing after load"));
|
|
56
|
-
};
|
|
57
|
-
if (window.___grecaptchaOnLoad___ = i, b)
|
|
58
|
-
return;
|
|
59
|
-
const p = new URLSearchParams({
|
|
60
|
-
onload: "___grecaptchaOnLoad___",
|
|
61
|
-
render: "explicit"
|
|
62
|
-
});
|
|
63
|
-
t && p.set("hl", t);
|
|
64
|
-
const r = document.createElement("script");
|
|
65
|
-
r.id = j, r.src = `${C}?${p.toString()}`, r.async = !0, r.defer = !0, r.onerror = () => {
|
|
66
|
-
f = null, g(new Error("recaptcha: script failed to load"));
|
|
67
|
-
}, document.head.appendChild(r);
|
|
68
|
-
}), f);
|
|
69
|
-
}
|
|
70
|
-
const oe = q(function({
|
|
71
|
-
siteKey: d,
|
|
72
|
-
theme: g,
|
|
73
|
-
locale: b,
|
|
74
|
-
size: i = "normal",
|
|
75
|
-
onChange: p,
|
|
76
|
-
onExpired: r,
|
|
77
|
-
onError: T,
|
|
78
|
-
error: k,
|
|
79
|
-
id: B,
|
|
80
|
-
className: F
|
|
81
|
-
}, M) {
|
|
82
|
-
const { t: S, i18n: H } = Q(), _ = X(), { resolvedTheme: N } = Y(), w = u(null), a = u(null), c = u(null), [$, h] = E(""), v = B ?? _.id, A = k ? `${v}-error` : void 0, O = [_.describedBy, A].filter(Boolean).join(" ") || void 0, x = g ?? (N.startsWith("dark") ? "dark" : "light"), I = b ?? H.language, e = u(p), y = u(r), o = u(T);
|
|
83
|
-
e.current = p, y.current = r, o.current = T;
|
|
84
|
-
const W = S(
|
|
85
|
-
"inputs.recaptcha.expired",
|
|
86
|
-
"Verification expired — please retry."
|
|
87
|
-
), P = S(
|
|
88
|
-
"inputs.recaptcha.error",
|
|
89
|
-
"Verification failed — please retry."
|
|
90
|
-
);
|
|
91
|
-
G(() => {
|
|
92
|
-
if (!d || !w.current) return;
|
|
93
|
-
let l = !1;
|
|
94
|
-
return ee(I).then((m) => {
|
|
95
|
-
l || !w.current || (c.current = m, a.current = m.render(w.current, {
|
|
96
|
-
sitekey: d,
|
|
97
|
-
theme: x,
|
|
98
|
-
size: i,
|
|
99
|
-
hl: I,
|
|
100
|
-
callback: (s) => {
|
|
101
|
-
var n;
|
|
102
|
-
h(""), (n = e.current) == null || n.call(e, s);
|
|
103
|
-
},
|
|
104
|
-
"expired-callback": () => {
|
|
105
|
-
var s, n;
|
|
106
|
-
h(W), (s = e.current) == null || s.call(e, null), (n = y.current) == null || n.call(y);
|
|
107
|
-
},
|
|
108
|
-
"error-callback": () => {
|
|
109
|
-
var s, n;
|
|
110
|
-
h(P), (s = e.current) == null || s.call(e, null), (n = o.current) == null || n.call(o);
|
|
111
|
-
}
|
|
112
|
-
}));
|
|
113
|
-
}).catch(() => {
|
|
114
|
-
var m;
|
|
115
|
-
l || (h(P), (m = o.current) == null || m.call(o));
|
|
116
|
-
}), () => {
|
|
117
|
-
if (l = !0, c.current && a.current !== null)
|
|
118
|
-
try {
|
|
119
|
-
c.current.reset(a.current);
|
|
120
|
-
} catch {
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}, [
|
|
124
|
-
d,
|
|
125
|
-
x,
|
|
126
|
-
I,
|
|
127
|
-
i,
|
|
128
|
-
W,
|
|
129
|
-
P
|
|
130
|
-
]);
|
|
131
|
-
const R = J(
|
|
132
|
-
() => ({
|
|
133
|
-
reset: () => {
|
|
134
|
-
var l;
|
|
135
|
-
c.current && a.current !== null && (c.current.reset(a.current), h(""), (l = e.current) == null || l.call(e, null));
|
|
136
|
-
},
|
|
137
|
-
getResponse: () => c.current && a.current !== null ? c.current.getResponse(a.current) : "",
|
|
138
|
-
execute: () => {
|
|
139
|
-
c.current && a.current !== null && c.current.execute(a.current);
|
|
140
|
-
}
|
|
141
|
-
}),
|
|
142
|
-
[]
|
|
143
|
-
);
|
|
144
|
-
K(M, () => R, [R]), Z(z, R, v);
|
|
145
|
-
const V = k || $, D = i === "invisible" ? "presentation" : void 0;
|
|
146
|
-
return /* @__PURE__ */ U(
|
|
147
|
-
"div",
|
|
148
|
-
{
|
|
149
|
-
className: [
|
|
150
|
-
"ds:inline-block",
|
|
151
|
-
// Keep the iframe inside the wrapper's stacking context so
|
|
152
|
-
// popovers etc. above the form continue to overlay correctly.
|
|
153
|
-
"ds:relative ds:isolate",
|
|
154
|
-
F
|
|
155
|
-
].filter(Boolean).join(" "),
|
|
156
|
-
"data-component": "recaptcha-widget",
|
|
157
|
-
"data-component-id": v,
|
|
158
|
-
"data-size": i,
|
|
159
|
-
role: D,
|
|
160
|
-
children: [
|
|
161
|
-
/* @__PURE__ */ L(
|
|
162
|
-
"div",
|
|
163
|
-
{
|
|
164
|
-
ref: w,
|
|
165
|
-
id: v,
|
|
166
|
-
className: "g-recaptcha",
|
|
167
|
-
"data-sitekey": d,
|
|
168
|
-
"data-theme": x,
|
|
169
|
-
"data-size": i,
|
|
170
|
-
"aria-describedby": O,
|
|
171
|
-
"aria-invalid": k || _.invalid ? !0 : void 0
|
|
172
|
-
}
|
|
173
|
-
),
|
|
174
|
-
/* @__PURE__ */ L(
|
|
175
|
-
"div",
|
|
176
|
-
{
|
|
177
|
-
role: "status",
|
|
178
|
-
"aria-live": "polite",
|
|
179
|
-
"aria-atomic": "true",
|
|
180
|
-
className: "ds:sr-only",
|
|
181
|
-
children: V
|
|
182
|
-
}
|
|
183
|
-
)
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
);
|
|
187
|
-
});
|
|
188
|
-
export {
|
|
189
|
-
oe as R,
|
|
190
|
-
z as r
|
|
191
|
-
};
|
|
192
|
-
//# sourceMappingURL=recaptcha-widget-BtBNb6tB.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useEffect as u } from "react";
|
|
2
|
-
function n(r, t, i) {
|
|
3
|
-
u(() => {
|
|
4
|
-
if (typeof window > "u") return;
|
|
5
|
-
const o = window.__alfadocs_agent;
|
|
6
|
-
if (!o || !i || t == null) return;
|
|
7
|
-
const e = {
|
|
8
|
-
id: r.id,
|
|
9
|
-
instanceId: i,
|
|
10
|
-
handle: t,
|
|
11
|
-
adapter: r
|
|
12
|
-
};
|
|
13
|
-
return o.register(e), () => {
|
|
14
|
-
o.unregister(r.id, i);
|
|
15
|
-
};
|
|
16
|
-
}, [r, t, i]);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
n as u
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=registry-C9nwlNyL.js.map
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as y, useState as v, useEffect as b, Fragment as h } from "react";
|
|
3
|
-
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
|
-
const g = x(
|
|
5
|
-
"type-body ds:block ds:whitespace-pre-wrap ds:break-words",
|
|
6
|
-
{
|
|
7
|
-
variants: {
|
|
8
|
-
// Family, weight, tracking, line-height all come from `.type-body` on the base.
|
|
9
|
-
// Size variants override --type-body-size to shift the ramp step.
|
|
10
|
-
size: {
|
|
11
|
-
sm: "ds:[--type-body-size:var(--font-size-sm)]",
|
|
12
|
-
md: "",
|
|
13
|
-
lg: "ds:[--type-body-size:var(--font-size-lg)]"
|
|
14
|
-
},
|
|
15
|
-
density: {
|
|
16
|
-
default: "",
|
|
17
|
-
compact: "ds:[--type-body-size:var(--font-size-sm)] ds:leading-snug"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: { size: "md", density: "default" }
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
function z(a) {
|
|
24
|
-
const e = [];
|
|
25
|
-
let s = a;
|
|
26
|
-
const r = /\*\*([^*]+)\*\*|`([^`]+)`|\n/;
|
|
27
|
-
for (; s.length > 0; ) {
|
|
28
|
-
const t = r.exec(s);
|
|
29
|
-
if (!t) {
|
|
30
|
-
e.push({ type: "text", value: s });
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
t.index > 0 && e.push({ type: "text", value: s.slice(0, t.index) }), t[1] !== void 0 ? e.push({ type: "bold", value: t[1] }) : t[2] !== void 0 ? e.push({ type: "code", value: t[2] }) : e.push({ type: "br" }), s = s.slice(t.index + t[0].length);
|
|
34
|
-
}
|
|
35
|
-
return e;
|
|
36
|
-
}
|
|
37
|
-
function T(a) {
|
|
38
|
-
return z(a).map((e, s) => e.type === "bold" ? /* @__PURE__ */ n("strong", { children: e.value }, s) : e.type === "code" ? /* @__PURE__ */ n(
|
|
39
|
-
"code",
|
|
40
|
-
{
|
|
41
|
-
dir: "ltr",
|
|
42
|
-
className: "ds:rounded-[var(--radius-sm)] ds:bg-muted/20 ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:font-[family-name:var(--font-mono)] ds:text-[length:0.95em]",
|
|
43
|
-
children: e.value
|
|
44
|
-
},
|
|
45
|
-
s
|
|
46
|
-
) : e.type === "br" ? /* @__PURE__ */ n("br", {}, s) : /* @__PURE__ */ n(h, { children: e.value }, s));
|
|
47
|
-
}
|
|
48
|
-
const w = y(
|
|
49
|
-
({
|
|
50
|
-
content: a,
|
|
51
|
-
isStreaming: e,
|
|
52
|
-
renderMarkdown: s = !1,
|
|
53
|
-
ariaLive: r = "polite",
|
|
54
|
-
size: t = "md",
|
|
55
|
-
density: o = "default",
|
|
56
|
-
className: l,
|
|
57
|
-
...c
|
|
58
|
-
}, p) => {
|
|
59
|
-
const [i, d] = v(a);
|
|
60
|
-
b(() => {
|
|
61
|
-
if (!e) {
|
|
62
|
-
d(a);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const m = setTimeout(() => d(a), 100);
|
|
66
|
-
return () => clearTimeout(m);
|
|
67
|
-
}, [a, e]);
|
|
68
|
-
const u = s ? T(i) : i;
|
|
69
|
-
return /* @__PURE__ */ f(
|
|
70
|
-
"span",
|
|
71
|
-
{
|
|
72
|
-
ref: p,
|
|
73
|
-
"aria-live": r,
|
|
74
|
-
"aria-busy": e || void 0,
|
|
75
|
-
"data-component": "streaming-text",
|
|
76
|
-
className: g({ size: t, density: o, className: l }),
|
|
77
|
-
...c,
|
|
78
|
-
children: [
|
|
79
|
-
u,
|
|
80
|
-
e ? /* @__PURE__ */ n(
|
|
81
|
-
"span",
|
|
82
|
-
{
|
|
83
|
-
"aria-hidden": "true",
|
|
84
|
-
className: [
|
|
85
|
-
"ds:inline-block ds:align-baseline",
|
|
86
|
-
"ds:text-[color:var(--primary)]",
|
|
87
|
-
"ds:motion-safe:animate-[streaming-cursor-blink_1s_step-end_infinite]",
|
|
88
|
-
"ds:motion-reduce:opacity-100",
|
|
89
|
-
"ds:[.theme-accessible_&]:animate-none",
|
|
90
|
-
"ds:forced-colors:text-[CanvasText]",
|
|
91
|
-
"ds:ms-[1px]"
|
|
92
|
-
].join(" "),
|
|
93
|
-
children: "▍"
|
|
94
|
-
}
|
|
95
|
-
) : null
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
w.displayName = "StreamingText";
|
|
102
|
-
export {
|
|
103
|
-
w as S
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=streaming-text-BgjCTVOw.js.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { useState as h, useEffect as w, useRef as m } from "react";
|
|
2
|
-
function v(e) {
|
|
3
|
-
const [i, r] = h(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(e).matches);
|
|
4
|
-
return w(() => {
|
|
5
|
-
if (typeof window > "u" || typeof window.matchMedia != "function")
|
|
6
|
-
return;
|
|
7
|
-
const n = window.matchMedia(e);
|
|
8
|
-
r(n.matches);
|
|
9
|
-
const t = (u) => r(u.matches);
|
|
10
|
-
return typeof n.addEventListener == "function" ? (n.addEventListener("change", t), () => n.removeEventListener("change", t)) : (n.addListener(t), () => n.removeListener(t));
|
|
11
|
-
}, [e]), i;
|
|
12
|
-
}
|
|
13
|
-
function p(e) {
|
|
14
|
-
return e != null && e.current ? e.current : typeof document > "u" ? null : document;
|
|
15
|
-
}
|
|
16
|
-
function S(e, i) {
|
|
17
|
-
const r = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : (
|
|
18
|
-
// SSR / jsdom fallback — drop every character that's
|
|
19
|
-
// significant in a CSS attribute selector. Conservative but
|
|
20
|
-
// robust enough for the test environment.
|
|
21
|
-
e.replace(/["'\\[\]]/g, "")
|
|
22
|
-
), n = `[data-error-anchor="${r}"], [name="${r}"], [name$="[${r}]"]`, t = Array.from(i.querySelectorAll(n));
|
|
23
|
-
return t.length === 0 ? null : t.find((f) => f.offsetParent !== null) ?? t[0];
|
|
24
|
-
}
|
|
25
|
-
function E(e, i, r = {}) {
|
|
26
|
-
const {
|
|
27
|
-
scope: n,
|
|
28
|
-
scrollOptions: t = { behavior: "smooth", block: "center" },
|
|
29
|
-
focus: u = !0,
|
|
30
|
-
skipInitialMount: f = !0
|
|
31
|
-
} = r, l = m(!0), c = m(null), o = i.find((s) => !!e[s]) ?? null;
|
|
32
|
-
w(() => {
|
|
33
|
-
if (l.current && (l.current = !1, f)) {
|
|
34
|
-
c.current = o;
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (!o) {
|
|
38
|
-
c.current = null;
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (o === c.current || typeof window > "u") return;
|
|
42
|
-
const s = window.requestAnimationFrame(() => {
|
|
43
|
-
const d = p(n);
|
|
44
|
-
if (!d) return;
|
|
45
|
-
const a = S(o, d);
|
|
46
|
-
a && (a.scrollIntoView(t), u && a.focus({ preventScroll: !0 }), c.current = o);
|
|
47
|
-
});
|
|
48
|
-
return () => window.cancelAnimationFrame(s);
|
|
49
|
-
}, [o]);
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
E as a,
|
|
53
|
-
v as u
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=use-scroll-to-first-error-BrK7dKB_.js.map
|