@krak-stack/registry 0.10.20 → 0.11.1
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/CHANGELOG.md +83 -3
- package/README.md +11 -8
- package/dist/components/agent/index.d.ts +454 -0
- package/dist/components/agent/react.d.ts +55 -0
- package/dist/components/agent/react.js +2594 -0
- package/dist/components/agent/schema.d.ts +55 -0
- package/dist/components/animated-list/classes.d.ts +9 -0
- package/dist/components/animated-list/html.d.ts +11 -0
- package/dist/components/animated-list/html.js +533 -0
- package/dist/components/animated-list/index.d.ts +205 -0
- package/dist/components/animated-list/react.d.ts +11 -0
- package/dist/components/animated-list/react.js +711 -0
- package/dist/components/animated-list/schema.d.ts +44 -0
- package/dist/components/animated-number/html.d.ts +19 -0
- package/dist/components/animated-number/html.js +101 -0
- package/dist/components/animated-number/index.d.ts +80 -0
- package/dist/components/{ui/animated-number.d.ts → animated-number/react.d.ts} +2 -7
- package/dist/components/animated-number/react.js +278 -0
- package/dist/components/animated-number/schema.d.ts +9 -0
- package/dist/components/app-brand/classes.d.ts +11 -0
- package/dist/components/app-brand/html.d.ts +26 -0
- package/dist/components/app-brand/html.js +78 -0
- package/dist/components/app-brand/react.d.ts +12 -0
- package/dist/components/app-brand/react.js +86 -0
- package/dist/components/app-brand/schema.d.ts +36 -0
- package/dist/components/app-switcher/classes.d.ts +15 -0
- package/dist/components/app-switcher/html.d.ts +72 -0
- package/dist/components/app-switcher/html.js +327 -0
- package/dist/components/app-switcher/index.d.ts +47 -0
- package/dist/components/app-switcher/react.d.ts +12 -0
- package/dist/components/{ui/app-switcher.js → app-switcher/react.js} +84 -15
- package/dist/components/app-switcher/schema.d.ts +39 -0
- package/dist/components/async-action-button/classes.d.ts +11 -0
- package/dist/components/async-action-button/html.d.ts +46 -0
- package/dist/components/async-action-button/html.js +266 -0
- package/dist/components/async-action-button/index.d.ts +73 -0
- package/dist/components/async-action-button/react.d.ts +10 -0
- package/dist/components/async-action-button/react.js +378 -0
- package/dist/components/async-action-button/schema.d.ts +28 -0
- package/dist/{services/events/client/audit-log-table.d.ts → components/audit-log-table/react.d.ts} +2 -2
- package/dist/{services/events/client/audit-log-table.js → components/audit-log-table/react.js} +2180 -909
- package/dist/components/auto-height/html.d.ts +8 -0
- package/dist/components/auto-height/html.js +81 -0
- package/dist/components/auto-height/index.d.ts +2 -0
- package/dist/components/{ui/auto-height.d.ts → auto-height/react.d.ts} +2 -4
- package/dist/components/auto-height/react.js +75 -0
- package/dist/components/auto-height/schema.d.ts +7 -0
- package/dist/components/bulk-list-input/classes.d.ts +7 -0
- package/dist/components/bulk-list-input/html.d.ts +41 -0
- package/dist/components/bulk-list-input/html.js +265 -0
- package/dist/components/bulk-list-input/index.d.ts +76 -0
- package/dist/components/bulk-list-input/react.d.ts +12 -0
- package/dist/components/{ui/bulk-list-input.js → bulk-list-input/react.js} +71 -4
- package/dist/components/bulk-list-input/schema.d.ts +33 -0
- package/dist/components/choice-cards/classes.d.ts +19 -0
- package/dist/components/choice-cards/html.d.ts +76 -0
- package/dist/components/choice-cards/html.js +237 -0
- package/dist/components/choice-cards/index.d.ts +1 -0
- package/dist/components/choice-cards/react.d.ts +21 -0
- package/dist/components/{ui/choice-cards.js → choice-cards/react.js} +29 -10
- package/dist/components/choice-cards/schema.d.ts +100 -0
- package/dist/components/code-block/classes.d.ts +13 -0
- package/dist/components/code-block/html.d.ts +21 -0
- package/dist/components/code-block/html.js +381 -0
- package/dist/components/code-block/index.d.ts +4 -0
- package/dist/components/code-block/react.d.ts +4 -0
- package/dist/components/code-block/react.js +493 -0
- package/dist/components/code-block/schema.d.ts +29 -0
- package/dist/components/color-input/classes.d.ts +9 -0
- package/dist/components/color-input/html.d.ts +48 -0
- package/dist/components/color-input/html.js +187 -0
- package/dist/components/color-input/index.d.ts +88 -0
- package/dist/components/color-input/react.d.ts +7 -0
- package/dist/components/{ui/color-picker.js → color-input/react.js} +165 -233
- package/dist/components/color-input/schema.d.ts +40 -0
- package/dist/components/copy-button/html.d.ts +48 -0
- package/dist/components/copy-button/html.js +266 -0
- package/dist/components/copy-button/index.d.ts +73 -0
- package/dist/components/copy-button/react.d.ts +12 -0
- package/dist/components/copy-button/react.js +388 -0
- package/dist/components/copy-button/schema.d.ts +37 -0
- package/dist/components/copy-value/html.d.ts +37 -0
- package/dist/components/copy-value/html.js +426 -0
- package/dist/components/copy-value/index.d.ts +57 -0
- package/dist/components/copy-value/react.d.ts +9 -0
- package/dist/components/copy-value/react.js +682 -0
- package/dist/components/copy-value/schema.d.ts +45 -0
- package/dist/components/cron-input/classes.d.ts +25 -0
- package/dist/components/cron-input/html.d.ts +36 -0
- package/dist/components/cron-input/html.js +204 -0
- package/dist/components/cron-input/index.d.ts +59 -0
- package/dist/components/cron-input/react.d.ts +7 -0
- package/dist/components/{ui/cron-expression-editor.js → cron-input/react.js} +126 -54
- package/dist/components/cron-input/schema.d.ts +24 -0
- package/dist/components/danger-confirmation/classes.d.ts +7 -0
- package/dist/components/danger-confirmation/html.d.ts +39 -0
- package/dist/components/danger-confirmation/html.js +227 -0
- package/dist/components/danger-confirmation/index.d.ts +113 -0
- package/dist/components/{ui/danger-confirmation.d.ts → danger-confirmation/react.d.ts} +3 -12
- package/dist/components/danger-confirmation/react.js +550 -0
- package/dist/components/danger-confirmation/schema.d.ts +34 -0
- package/dist/components/data-table/classes.d.ts +63 -0
- package/dist/components/data-table/html.d.ts +1938 -0
- package/dist/components/data-table/html.js +2682 -0
- package/dist/components/data-table/index.d.ts +2686 -0
- package/dist/components/data-table/react.d.ts +578 -0
- package/dist/components/{ui/data-table.js → data-table/react.js} +2174 -897
- package/dist/components/data-table/schema.d.ts +3012 -0
- package/dist/components/date-input/classes.d.ts +17 -0
- package/dist/components/date-input/html.d.ts +60 -0
- package/dist/components/date-input/html.js +418 -0
- package/dist/components/date-input/index.d.ts +91 -0
- package/dist/components/date-input/react.d.ts +10 -0
- package/dist/components/{ui/date-picker.js → date-input/react.js} +233 -79
- package/dist/components/date-input/schema.d.ts +41 -0
- package/dist/components/editable-text/classes.d.ts +17 -0
- package/dist/components/editable-text/html.d.ts +51 -0
- package/dist/components/editable-text/html.js +370 -0
- package/dist/components/editable-text/index.d.ts +143 -0
- package/dist/components/editable-text/react.d.ts +6 -0
- package/dist/components/editable-text/react.js +499 -0
- package/dist/components/editable-text/schema.d.ts +31 -0
- package/dist/components/editing-locale-switcher/classes.d.ts +7 -0
- package/dist/components/editing-locale-switcher/html.d.ts +27 -0
- package/dist/components/editing-locale-switcher/html.js +250 -0
- package/dist/components/editing-locale-switcher/index.d.ts +52 -0
- package/dist/components/editing-locale-switcher/react.d.ts +7 -0
- package/dist/components/{ui/editing-locale-switcher.js → editing-locale-switcher/react.js} +63 -10
- package/dist/components/editing-locale-switcher/schema.d.ts +16 -0
- package/dist/components/{ui/effect-form.d.ts → effect-form/react.d.ts} +2 -2
- package/dist/components/{ui/effect-form.js → effect-form/react.js} +302 -76
- package/dist/components/effectcn/alert-dialog.d.ts +13 -0
- package/dist/components/effectcn/button.d.ts +31 -0
- package/dist/components/effectcn/calendar.d.ts +12 -0
- package/dist/components/effectcn/checkbox.d.ts +10 -0
- package/dist/components/effectcn/combobox.d.ts +25 -0
- package/dist/components/effectcn/dialog.d.ts +19 -0
- package/dist/components/effectcn/field.d.ts +11 -0
- package/dist/components/effectcn/file-drop.d.ts +8 -0
- package/dist/components/effectcn/input.d.ts +26 -0
- package/dist/components/effectcn/menu.d.ts +85 -0
- package/dist/components/effectcn/menubar.d.ts +8 -0
- package/dist/components/effectcn/popover.d.ts +18 -0
- package/dist/components/effectcn/scroll-area.d.ts +12 -0
- package/dist/components/effectcn/select.d.ts +68 -0
- package/dist/components/effectcn/toast.d.ts +29 -0
- package/dist/components/email-composer/index.d.ts +229 -0
- package/dist/components/email-composer/labels.d.ts +12 -0
- package/dist/components/email-composer/react.d.ts +5 -0
- package/dist/components/{ui/email-composer.js → email-composer/react.js} +618 -135
- package/dist/components/email-composer/schema.d.ts +42 -0
- package/dist/components/email-editor/classes.d.ts +21 -0
- package/dist/components/email-editor/html.d.ts +360 -0
- package/dist/components/email-editor/html.js +1706 -0
- package/dist/components/email-editor/index.d.ts +693 -0
- package/dist/components/{ui/email-editor.d.ts → email-editor/labels.d.ts} +1 -21
- package/dist/components/email-editor/legacy-editor.html.d.ts +160 -0
- package/dist/components/email-editor/react.d.ts +11 -0
- package/dist/components/{ui/email-editor.js → email-editor/react.js} +778 -256
- package/dist/components/email-editor/schema.d.ts +162 -0
- package/dist/components/error-component/classes.d.ts +7 -0
- package/dist/components/error-component/html.d.ts +120 -0
- package/dist/components/error-component/html.js +346 -0
- package/dist/components/error-component/index.d.ts +69 -0
- package/dist/components/error-component/react.d.ts +8 -0
- package/dist/components/error-component/react.js +744 -0
- package/dist/components/error-component/schema.d.ts +56 -0
- package/dist/components/file-input/classes.d.ts +7 -0
- package/dist/components/file-input/html.d.ts +95 -0
- package/dist/components/file-input/html.js +368 -0
- package/dist/components/file-input/index.d.ts +99 -0
- package/dist/components/file-input/react.d.ts +11 -0
- package/dist/components/{ui/file-picker.js → file-input/react.js} +122 -19
- package/dist/components/file-input/schema.d.ts +37 -0
- package/dist/components/{ui/form.d.ts → form/react.d.ts} +7 -7
- package/dist/components/{ui/form.js → form/react.js} +300 -74
- package/dist/components/icon-input/html.d.ts +55 -0
- package/dist/components/icon-input/html.js +538 -0
- package/dist/components/icon-input/index.d.ts +143 -0
- package/dist/components/icon-input/react.d.ts +6 -0
- package/dist/components/{ui/icon-input.js → icon-input/react.js} +459 -89
- package/dist/components/icon-input/schema.d.ts +23 -0
- package/dist/components/image-crop-editor/classes.d.ts +19 -0
- package/dist/components/image-crop-editor/html.d.ts +66 -0
- package/dist/components/image-crop-editor/html.js +561 -0
- package/dist/components/image-crop-editor/index.d.ts +183 -0
- package/dist/components/image-crop-editor/react.d.ts +8 -0
- package/dist/components/image-crop-editor/react.js +802 -0
- package/dist/components/image-crop-editor/schema.d.ts +54 -0
- package/dist/components/krakstack-provider/html.d.ts +17 -0
- package/dist/components/krakstack-provider/html.js +37 -0
- package/dist/components/krakstack-provider/index.d.ts +7 -0
- package/dist/components/krakstack-provider/react.d.ts +8 -0
- package/dist/components/{ui/krakstack-provider.js → krakstack-provider/react.js} +14 -5
- package/dist/components/krakstack-provider/schema.d.ts +6 -0
- package/dist/components/loading/classes.d.ts +5 -0
- package/dist/components/loading/html.d.ts +18 -0
- package/dist/components/loading/html.js +166 -0
- package/dist/components/loading/index.d.ts +6 -0
- package/dist/components/loading/react.d.ts +4 -0
- package/dist/components/loading/react.js +51 -0
- package/dist/components/loading/schema.d.ts +23 -0
- package/dist/components/locale-switcher/html.d.ts +22 -0
- package/dist/components/locale-switcher/html.js +264 -0
- package/dist/components/locale-switcher/index.d.ts +50 -0
- package/dist/components/locale-switcher/react.d.ts +7 -0
- package/dist/components/{ui/locale-switcher.js → locale-switcher/react.js} +55 -22
- package/dist/components/locale-switcher/schema.d.ts +12 -0
- package/dist/components/map-menu/classes.d.ts +13 -0
- package/dist/components/map-menu/google-maps.d.ts +80 -0
- package/dist/components/map-menu/google-viewport.d.ts +7 -0
- package/dist/components/map-menu/html.d.ts +274 -0
- package/dist/components/map-menu/html.js +934 -0
- package/dist/components/map-menu/index.d.ts +246 -0
- package/dist/components/map-menu/map.d.ts +47 -0
- package/dist/components/map-menu/react.d.ts +40 -0
- package/dist/components/{ui/map-menu.js → map-menu/react.js} +321 -83
- package/dist/components/map-menu/schema.d.ts +132 -0
- package/dist/components/markdown/classes.d.ts +1 -0
- package/dist/components/markdown/html.d.ts +23 -0
- package/dist/components/markdown/html.js +510 -0
- package/dist/components/markdown/index.d.ts +6 -0
- package/dist/components/markdown/react.d.ts +3 -0
- package/dist/components/markdown/react.js +546 -0
- package/dist/components/markdown/schema.d.ts +20 -0
- package/dist/components/notification-menu/classes.d.ts +11 -0
- package/dist/components/notification-menu/html.d.ts +67 -0
- package/dist/components/notification-menu/html.js +425 -0
- package/dist/components/notification-menu/index.d.ts +132 -0
- package/dist/components/notification-menu/react.d.ts +57 -0
- package/dist/components/notification-menu/react.js +829 -0
- package/dist/components/notification-menu/schema.d.ts +59 -0
- package/dist/components/pagination/classes.d.ts +19 -0
- package/dist/components/pagination/html.d.ts +49 -0
- package/dist/components/pagination/html.js +387 -0
- package/dist/components/pagination/index.d.ts +109 -0
- package/dist/components/pagination/react.d.ts +9 -0
- package/dist/components/{ui/pagination.js → pagination/react.js} +123 -23
- package/dist/components/pagination/schema.d.ts +36 -0
- package/dist/components/phone-number-input/classes.d.ts +17 -0
- package/dist/components/phone-number-input/html.d.ts +52 -0
- package/dist/components/phone-number-input/html.js +655 -0
- package/dist/components/phone-number-input/index.d.ts +59 -0
- package/dist/components/phone-number-input/react.d.ts +11 -0
- package/dist/components/{ui/phone-number-input.js → phone-number-input/react.js} +368 -138
- package/dist/components/phone-number-input/schema.d.ts +31 -0
- package/dist/components/presence-transition/html.d.ts +13 -0
- package/dist/components/presence-transition/html.js +128 -0
- package/dist/components/presence-transition/index.d.ts +57 -0
- package/dist/components/{ui/presence-transition.d.ts → presence-transition/react.d.ts} +3 -5
- package/dist/components/presence-transition/react.js +293 -0
- package/dist/components/presence-transition/schema.d.ts +7 -0
- package/dist/components/registry-previews/component-example.d.ts +31 -0
- package/dist/components/registry-previews/component-example.js +679 -0
- package/dist/components/registry-previews/html-preview.d.ts +17 -0
- package/dist/components/registry-previews/html-preview.js +83 -0
- package/dist/components/rich-text-editor/classes.d.ts +15 -0
- package/dist/components/rich-text-editor/engine.d.ts +9 -0
- package/dist/components/rich-text-editor/html.d.ts +246 -0
- package/dist/components/rich-text-editor/html.js +830 -0
- package/dist/components/rich-text-editor/index.d.ts +453 -0
- package/dist/components/rich-text-editor/labels.d.ts +42 -0
- package/dist/components/rich-text-editor/react.d.ts +19 -0
- package/dist/components/{ui/rich-text-editor.js → rich-text-editor/react.js} +521 -100
- package/dist/components/rich-text-editor/schema.d.ts +116 -0
- package/dist/components/search-menu/classes.d.ts +9 -0
- package/dist/components/search-menu/html.d.ts +127 -0
- package/dist/components/search-menu/html.js +432 -0
- package/dist/components/search-menu/index.d.ts +85 -0
- package/dist/components/search-menu/react.d.ts +18 -0
- package/dist/components/{ui/search-menu.js → search-menu/react.js} +290 -31
- package/dist/components/search-menu/schema.d.ts +78 -0
- package/dist/components/select-with-custom-input/classes.d.ts +17 -0
- package/dist/components/select-with-custom-input/html.d.ts +60 -0
- package/dist/components/select-with-custom-input/html.js +238 -0
- package/dist/components/select-with-custom-input/index.d.ts +114 -0
- package/dist/components/select-with-custom-input/react.d.ts +7 -0
- package/dist/components/{ui/select-with-custom-input.js → select-with-custom-input/react.js} +127 -22
- package/dist/components/select-with-custom-input/schema.d.ts +54 -0
- package/dist/components/sidebar-layout/classes.d.ts +21 -0
- package/dist/components/sidebar-layout/html.d.ts +97 -0
- package/dist/components/sidebar-layout/html.js +361 -0
- package/dist/components/sidebar-layout/index.d.ts +57 -0
- package/dist/components/sidebar-layout/react.d.ts +30 -0
- package/dist/components/{ui/sidebar-layout.js → sidebar-layout/react.js} +353 -39
- package/dist/components/sidebar-layout/schema.d.ts +54 -0
- package/dist/components/stats-card/classes.d.ts +11 -0
- package/dist/components/stats-card/html.d.ts +15 -0
- package/dist/components/stats-card/html.js +55 -0
- package/dist/components/stats-card/react.d.ts +7 -0
- package/dist/components/{ui/stats-card.js → stats-card/react.js} +19 -15
- package/dist/components/stats-card/schema.d.ts +14 -0
- package/dist/components/stepper/classes.d.ts +39 -0
- package/dist/components/stepper/html.d.ts +107 -0
- package/dist/components/stepper/html.js +397 -0
- package/dist/components/stepper/index.d.ts +83 -0
- package/dist/components/stepper/react.d.ts +17 -0
- package/dist/components/{ui/stepper.js → stepper/react.js} +120 -21
- package/dist/components/stepper/schema.d.ts +52 -0
- package/dist/components/support/classes.d.ts +55 -0
- package/dist/components/support/form.d.ts +19 -0
- package/dist/components/support/html.d.ts +266 -0
- package/dist/components/support/html.js +604 -0
- package/dist/components/support/index.d.ts +226 -0
- package/dist/components/support/multipart.d.ts +21 -0
- package/dist/components/support/react.d.ts +54 -0
- package/dist/components/support/react.js +1252 -0
- package/dist/components/support/schema.d.ts +69 -0
- package/dist/components/support.d.ts +1 -66
- package/dist/components/theme-switcher/html.d.ts +28 -0
- package/dist/components/theme-switcher/html.js +288 -0
- package/dist/components/theme-switcher/index.d.ts +59 -0
- package/dist/components/{ui/theme-switcher.d.ts → theme-switcher/react.d.ts} +4 -12
- package/dist/components/{ui/theme-switcher.js → theme-switcher/react.js} +69 -35
- package/dist/components/theme-switcher/schema.d.ts +33 -0
- package/dist/components/time-input/classes.d.ts +23 -0
- package/dist/components/time-input/html.d.ts +75 -0
- package/dist/components/time-input/html.js +571 -0
- package/dist/components/time-input/index.d.ts +164 -0
- package/dist/components/time-input/react.d.ts +7 -0
- package/dist/components/{ui/time-picker.js → time-input/react.js} +286 -114
- package/dist/components/time-input/schema.d.ts +96 -0
- package/dist/components/timezone-input/classes.d.ts +13 -0
- package/dist/components/timezone-input/html.d.ts +58 -0
- package/dist/components/timezone-input/html.js +804 -0
- package/dist/components/timezone-input/index.d.ts +170 -0
- package/dist/components/timezone-input/react.d.ts +9 -0
- package/dist/components/{ui/timezone-select.js → timezone-input/react.js} +493 -106
- package/dist/components/timezone-input/schema.d.ts +43 -0
- package/dist/components/toast/classes.d.ts +7 -0
- package/dist/components/toast/html.d.ts +34 -0
- package/dist/components/toast/html.js +280 -0
- package/dist/components/toast/index.d.ts +10 -0
- package/dist/components/toast/react.d.ts +9 -0
- package/dist/components/{ui/toast.js → toast/react.js} +35 -15
- package/dist/components/toast/schema.d.ts +24 -0
- package/dist/{services/events/client/tracking-notice.d.ts → components/tracking-notice/react.d.ts} +7 -1
- package/dist/{services/events/client/tracking-notice.js → components/tracking-notice/react.js} +13 -7
- package/dist/components/ui/animated-list.d.ts +1 -21
- package/dist/components/ui/app-brand.d.ts +1 -33
- package/dist/components/ui/async-action-button.d.ts +1 -17
- package/dist/components/ui/code-block.d.ts +1 -14
- package/dist/components/ui/copy-button.d.ts +1 -21
- package/dist/components/ui/data-table.d.ts +1 -584
- package/dist/components/ui/krakstack-provider.d.ts +1 -9
- package/dist/components/ui/loading.d.ts +1 -13
- package/dist/components/ui/pagination.d.ts +1 -47
- package/dist/components/ui/rich-text-editor.d.ts +1 -72
- package/dist/components/ui/search-menu.d.ts +1 -36
- package/dist/components/ui/sidebar-layout.d.ts +1 -40
- package/dist/components/ui/virtualized-combobox.d.ts +1 -59
- package/dist/components/unsaved-changes-guard/html.d.ts +34 -0
- package/dist/components/unsaved-changes-guard/html.js +172 -0
- package/dist/components/unsaved-changes-guard/index.d.ts +56 -0
- package/dist/components/unsaved-changes-guard/react.d.ts +4 -0
- package/dist/components/{ui/unsaved-changes-guard.js → unsaved-changes-guard/react.js} +74 -11
- package/dist/components/unsaved-changes-guard/schema.d.ts +37 -0
- package/dist/components/upload-attachment/classes.d.ts +11 -0
- package/dist/components/upload-attachment/html.d.ts +84 -0
- package/dist/components/upload-attachment/html.js +312 -0
- package/dist/components/upload-attachment/index.d.ts +72 -0
- package/dist/components/upload-attachment/react.d.ts +9 -0
- package/dist/components/{ui/upload-attachment.js → upload-attachment/react.js} +114 -17
- package/dist/components/upload-attachment/schema.d.ts +53 -0
- package/dist/components/virtualized-combobox/classes.d.ts +7 -0
- package/dist/components/virtualized-combobox/html.d.ts +97 -0
- package/dist/components/virtualized-combobox/html.js +310 -0
- package/dist/components/virtualized-combobox/index.d.ts +182 -0
- package/dist/components/virtualized-combobox/react.d.ts +31 -0
- package/dist/components/{ui/virtualized-combobox.js → virtualized-combobox/react.js} +160 -40
- package/dist/components/virtualized-combobox/schema.d.ts +92 -0
- package/dist/components/webhook-delivery-table/html.d.ts +216 -0
- package/dist/components/webhook-delivery-table/html.js +3008 -0
- package/dist/components/webhook-delivery-table/index.d.ts +405 -0
- package/dist/components/webhook-delivery-table/react.d.ts +13 -0
- package/dist/{services/webhooks/client/delivery-table.js → components/webhook-delivery-table/react.js} +2461 -948
- package/dist/components/webhook-delivery-table/schema.d.ts +134 -0
- package/dist/lib/docs.d.ts +17 -1
- package/dist/lib/docs.integrations.server.js +358 -73
- package/dist/lib/docs.js +863 -295
- package/dist/lib/docs.server.js +342 -57
- package/dist/lib/documentation-toolkit.d.ts +4 -4
- package/dist/lib/documentation-toolkit.js +354 -69
- package/dist/lib/effect-ui-adapter/model-runtime.d.ts +17 -0
- package/dist/lib/effect-ui-adapter/use-model.d.ts +9 -0
- package/dist/lib/effectcn-form.d.ts +3 -0
- package/dist/lib/effectcn-form.js +54 -0
- package/dist/lib/email-composer/index.d.ts +12 -0
- package/dist/lib/email-composer/schema.d.ts +14 -0
- package/dist/lib/httpapi-toolkit.d.ts +1 -1
- package/dist/lib/lucide-effect.d.ts +39 -0
- package/dist/lib/markdown/content.d.ts +1 -12
- package/dist/lib/rich-text/model.d.ts +5 -0
- package/dist/lib/webfetch-toolkit.d.ts +1 -1
- package/dist/services/agent/client/index.js +697 -181
- package/dist/services/agent/client/widget.d.ts +1 -55
- package/dist/services/notification/client/index.js +138 -27
- package/dist/services/notification/client/notification-menu.d.ts +1 -85
- package/dist/services/notification/public.js +138 -27
- package/dist/services/opentelemetry/browser.js +15 -9
- package/dist/services/webhooks/index.d.ts +4 -3
- package/package.json +181 -142
- package/dist/components/support-dialog.js +0 -881
- package/dist/components/support.js +0 -881
- package/dist/components/ui/animated-list.js +0 -414
- package/dist/components/ui/animated-number.js +0 -75
- package/dist/components/ui/app-brand.js +0 -126
- package/dist/components/ui/app-switcher.d.ts +0 -26
- package/dist/components/ui/async-action-button.js +0 -149
- package/dist/components/ui/auto-height.js +0 -86
- package/dist/components/ui/bulk-list-input.d.ts +0 -25
- package/dist/components/ui/choice-cards.d.ts +0 -33
- package/dist/components/ui/code-block.js +0 -221
- package/dist/components/ui/color-picker.d.ts +0 -31
- package/dist/components/ui/copy-button.js +0 -138
- package/dist/components/ui/copy-value.d.ts +0 -24
- package/dist/components/ui/copy-value.js +0 -352
- package/dist/components/ui/cron-expression-editor.d.ts +0 -16
- package/dist/components/ui/cron-expression-editor.schema.d.ts +0 -7
- package/dist/components/ui/danger-confirmation.js +0 -398
- package/dist/components/ui/date-picker.d.ts +0 -33
- package/dist/components/ui/date-picker.schema.d.ts +0 -9
- package/dist/components/ui/editable-text.d.ts +0 -19
- package/dist/components/ui/editable-text.js +0 -341
- package/dist/components/ui/editing-locale-switcher.d.ts +0 -11
- package/dist/components/ui/error-component.d.ts +0 -34
- package/dist/components/ui/error-component.js +0 -387
- package/dist/components/ui/file-picker.d.ts +0 -37
- package/dist/components/ui/icon-input.d.ts +0 -58
- package/dist/components/ui/image-crop-editor.d.ts +0 -41
- package/dist/components/ui/image-crop-editor.js +0 -417
- package/dist/components/ui/loading.js +0 -39
- package/dist/components/ui/locale-switcher.d.ts +0 -11
- package/dist/components/ui/map-menu-map.d.ts +0 -115
- package/dist/components/ui/map-menu.d.ts +0 -87
- package/dist/components/ui/phone-number-input.d.ts +0 -22
- package/dist/components/ui/phone-number-input.schema.d.ts +0 -7
- package/dist/components/ui/presence-transition.js +0 -94
- package/dist/components/ui/select-with-custom-input.d.ts +0 -36
- package/dist/components/ui/stats-card.d.ts +0 -12
- package/dist/components/ui/stepper.d.ts +0 -37
- package/dist/components/ui/time-picker.d.ts +0 -50
- package/dist/components/ui/time-picker.schema.d.ts +0 -28
- package/dist/components/ui/timezone-select.d.ts +0 -57
- package/dist/components/ui/timezone-select.schema.d.ts +0 -9
- package/dist/components/ui/toast.d.ts +0 -18
- package/dist/components/ui/unsaved-changes-guard.d.ts +0 -16
- package/dist/components/ui/upload-attachment.d.ts +0 -39
- package/dist/services/notification/persistence/drizzle.d.ts +0 -868
- package/dist/services/notification/persistence/drizzle.js +0 -214
- package/dist/services/notification/persistence/index.d.ts +0 -2
- package/dist/services/notification/persistence/index.js +0 -227
- package/dist/services/notification/persistence/schema.d.ts +0 -143
- package/dist/services/notification/persistence/schema.js +0 -118
- package/dist/services/webhooks/client/delivery-table.d.ts +0 -62
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { Effect, Redacted, Schema, type Scope, type Stream } from "effect";
|
|
2
|
+
import { Command, Component, UiSchema } from "effect/ui";
|
|
3
|
+
import { MapMenuHtmlPropsSchema, MapMenuMode, MapMenuPresentation, MapMenuSelectionSchema, type MapMenuMessages, type MapMenuSharedProps, type MapMenuViewport } from "./schema.js";
|
|
4
|
+
export declare const mapMenuSelectionMatches: ({ selectedLocation, input, }: Pick<MapMenuSharedProps, "selectedLocation" | "input">) => boolean;
|
|
5
|
+
export declare const mapMenuRadiiKm: readonly [1, 2, 5, 10, 20, 40, 50, 60, 80, 100, 250, 500];
|
|
6
|
+
/** The HTML renderer acquires this resource against its mounted element. */
|
|
7
|
+
export interface MapViewportHost {
|
|
8
|
+
readonly mount: (container: HTMLElement) => Effect.Effect<MapViewport, MapViewportFailure, Scope.Scope>;
|
|
9
|
+
}
|
|
10
|
+
export interface MapViewport {
|
|
11
|
+
/** Provider loading/errors are reported independently of host address lookup. */
|
|
12
|
+
readonly status: Stream.Stream<"loading" | "ready" | MapViewportFailure>;
|
|
13
|
+
/** Update the pin/circle and fit only when geometry changes. */
|
|
14
|
+
readonly update: (viewport: MapMenuViewport) => Effect.Effect<void>;
|
|
15
|
+
readonly zoom: (direction: "in" | "out") => Effect.Effect<void>;
|
|
16
|
+
readonly fitSelection: Effect.Effect<void>;
|
|
17
|
+
readonly zoomChanges?: Stream.Stream<number>;
|
|
18
|
+
}
|
|
19
|
+
export type MapViewportFailure = {
|
|
20
|
+
readonly _tag: "MapViewportFailure";
|
|
21
|
+
readonly reason: "load" | "configuration";
|
|
22
|
+
};
|
|
23
|
+
export declare const mapMenuMessages: (locale?: string, messages?: MapMenuSharedProps["messages"]) => MapMenuMessages;
|
|
24
|
+
export declare const MapMenuEvent: UiSchema.TaggedEnum<{
|
|
25
|
+
readonly Cancelled: Schema.TaggedStruct<"Cancelled", {}>;
|
|
26
|
+
readonly Confirmed: Schema.TaggedStruct<"Confirmed", {}>;
|
|
27
|
+
readonly CurrentLocationRequested: Schema.TaggedStruct<"CurrentLocationRequested", {}>;
|
|
28
|
+
readonly InputChanged: Schema.TaggedStruct<"InputChanged", {
|
|
29
|
+
readonly input: Schema.String;
|
|
30
|
+
}>;
|
|
31
|
+
readonly LocationSelected: Schema.TaggedStruct<"LocationSelected", {
|
|
32
|
+
readonly location: Schema.Struct<{
|
|
33
|
+
readonly id: Schema.String;
|
|
34
|
+
readonly label: Schema.String;
|
|
35
|
+
readonly title: Schema.optional<Schema.String>;
|
|
36
|
+
readonly details: Schema.optional<Schema.String>;
|
|
37
|
+
readonly center: Schema.Struct<{
|
|
38
|
+
readonly lat: Schema.Finite;
|
|
39
|
+
readonly lng: Schema.Finite;
|
|
40
|
+
}>;
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly OpenChanged: Schema.TaggedStruct<"OpenChanged", {
|
|
44
|
+
readonly open: Schema.Boolean;
|
|
45
|
+
}>;
|
|
46
|
+
readonly RadiusChanged: Schema.TaggedStruct<"RadiusChanged", {
|
|
47
|
+
readonly radiusKm: Schema.Finite;
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const CameraAction: Schema.Literals<readonly ["in", "out", "fit"]>;
|
|
51
|
+
export declare const MapMenuMessage: UiSchema.TaggedEnum<{
|
|
52
|
+
readonly CameraRequested: Schema.TaggedStruct<"CameraRequested", {
|
|
53
|
+
readonly action: Schema.Literals<readonly ["in", "out", "fit"]>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly Cancel: Schema.TaggedStruct<"Cancel", {}>;
|
|
56
|
+
readonly Confirm: Schema.TaggedStruct<"Confirm", {}>;
|
|
57
|
+
readonly Edited: Schema.TaggedStruct<"Edited", {
|
|
58
|
+
readonly input: Schema.String;
|
|
59
|
+
}>;
|
|
60
|
+
readonly Finished: Schema.TaggedStruct<"Finished", {
|
|
61
|
+
readonly success: Schema.Boolean;
|
|
62
|
+
}>;
|
|
63
|
+
readonly Locate: Schema.TaggedStruct<"Locate", {}>;
|
|
64
|
+
readonly MapStatus: Schema.TaggedStruct<"MapStatus", {
|
|
65
|
+
readonly status: Schema.Literals<readonly ["loading", "ready", "configuration", "load"]>;
|
|
66
|
+
}>;
|
|
67
|
+
readonly Picked: Schema.TaggedStruct<"Picked", {
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
}>;
|
|
70
|
+
readonly RadiusPicked: Schema.TaggedStruct<"RadiusPicked", {
|
|
71
|
+
readonly radiusKm: Schema.Finite;
|
|
72
|
+
}>;
|
|
73
|
+
readonly SuggestionsClosed: Schema.TaggedStruct<"SuggestionsClosed", {}>;
|
|
74
|
+
readonly SuggestionsOpened: Schema.TaggedStruct<"SuggestionsOpened", {}>;
|
|
75
|
+
readonly ZoomChanged: Schema.TaggedStruct<"ZoomChanged", {
|
|
76
|
+
readonly zoom: Schema.Finite;
|
|
77
|
+
}>;
|
|
78
|
+
}>;
|
|
79
|
+
declare const SaveMapSelection_base: Command.Service<SaveMapSelection, "map-menu/SaveSelection", {
|
|
80
|
+
readonly selection: Redacted.Redacted<{
|
|
81
|
+
readonly location: {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly label: string;
|
|
84
|
+
readonly title?: string | undefined;
|
|
85
|
+
readonly details?: string | undefined;
|
|
86
|
+
readonly center: {
|
|
87
|
+
readonly lat: number;
|
|
88
|
+
readonly lng: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly radiusKm?: number | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
}, UiSchema.TaggedEnum<{
|
|
94
|
+
readonly CameraRequested: Schema.TaggedStruct<"CameraRequested", {
|
|
95
|
+
readonly action: Schema.Literals<readonly ["in", "out", "fit"]>;
|
|
96
|
+
}>;
|
|
97
|
+
readonly Cancel: Schema.TaggedStruct<"Cancel", {}>;
|
|
98
|
+
readonly Confirm: Schema.TaggedStruct<"Confirm", {}>;
|
|
99
|
+
readonly Edited: Schema.TaggedStruct<"Edited", {
|
|
100
|
+
readonly input: Schema.String;
|
|
101
|
+
}>;
|
|
102
|
+
readonly Finished: Schema.TaggedStruct<"Finished", {
|
|
103
|
+
readonly success: Schema.Boolean;
|
|
104
|
+
}>;
|
|
105
|
+
readonly Locate: Schema.TaggedStruct<"Locate", {}>;
|
|
106
|
+
readonly MapStatus: Schema.TaggedStruct<"MapStatus", {
|
|
107
|
+
readonly status: Schema.Literals<readonly ["loading", "ready", "configuration", "load"]>;
|
|
108
|
+
}>;
|
|
109
|
+
readonly Picked: Schema.TaggedStruct<"Picked", {
|
|
110
|
+
readonly id: Schema.String;
|
|
111
|
+
}>;
|
|
112
|
+
readonly RadiusPicked: Schema.TaggedStruct<"RadiusPicked", {
|
|
113
|
+
readonly radiusKm: Schema.Finite;
|
|
114
|
+
}>;
|
|
115
|
+
readonly SuggestionsClosed: Schema.TaggedStruct<"SuggestionsClosed", {}>;
|
|
116
|
+
readonly SuggestionsOpened: Schema.TaggedStruct<"SuggestionsOpened", {}>;
|
|
117
|
+
readonly ZoomChanged: Schema.TaggedStruct<"ZoomChanged", {
|
|
118
|
+
readonly zoom: Schema.Finite;
|
|
119
|
+
}>;
|
|
120
|
+
}>, false, Schema.Never, never>;
|
|
121
|
+
export declare class SaveMapSelection extends SaveMapSelection_base {
|
|
122
|
+
static layerFromSave: <Failure>(save: (selection: typeof MapMenuSelectionSchema.Type) => Effect.Effect<void, Failure>) => import("effect/Layer").Layer<SaveMapSelection, never, never>;
|
|
123
|
+
}
|
|
124
|
+
declare const CameraRequest: Schema.Struct<{
|
|
125
|
+
readonly action: Schema.Literals<readonly ["in", "out", "fit"]>;
|
|
126
|
+
readonly revision: Schema.Int;
|
|
127
|
+
}>;
|
|
128
|
+
export declare const mapMenuOptions: {
|
|
129
|
+
readonly name: "MapMenu";
|
|
130
|
+
readonly props: Schema.Struct<{
|
|
131
|
+
readonly classes: Schema.optional<Schema.$Record<Schema.Literals<("error" | "resultDescription" | "resultTitle" | "status")[]>, Schema.optionalKey<Schema.String>>>;
|
|
132
|
+
readonly input: Schema.String;
|
|
133
|
+
readonly selectedLocation: Schema.NullOr<Schema.Struct<{
|
|
134
|
+
readonly id: Schema.String;
|
|
135
|
+
readonly label: Schema.String;
|
|
136
|
+
readonly title: Schema.optional<Schema.String>;
|
|
137
|
+
readonly details: Schema.optional<Schema.String>;
|
|
138
|
+
readonly center: Schema.Struct<{
|
|
139
|
+
readonly lat: Schema.Finite;
|
|
140
|
+
readonly lng: Schema.Finite;
|
|
141
|
+
}>;
|
|
142
|
+
}>>;
|
|
143
|
+
readonly suggestions: Schema.$Array<Schema.Struct<{
|
|
144
|
+
readonly id: Schema.String;
|
|
145
|
+
readonly label: Schema.String;
|
|
146
|
+
readonly title: Schema.optional<Schema.String>;
|
|
147
|
+
readonly details: Schema.optional<Schema.String>;
|
|
148
|
+
readonly center: Schema.Struct<{
|
|
149
|
+
readonly lat: Schema.Finite;
|
|
150
|
+
readonly lng: Schema.Finite;
|
|
151
|
+
}>;
|
|
152
|
+
}>>;
|
|
153
|
+
readonly locating: Schema.optional<Schema.Boolean>;
|
|
154
|
+
readonly loadingSuggestions: Schema.optional<Schema.Boolean>;
|
|
155
|
+
readonly suggestionsError: Schema.optional<Schema.String>;
|
|
156
|
+
readonly error: Schema.optional<Schema.String>;
|
|
157
|
+
readonly provenance: Schema.optional<Schema.Literals<readonly ["ip", "browser"]>>;
|
|
158
|
+
readonly overlayColor: Schema.optional<Schema.String>;
|
|
159
|
+
readonly className: Schema.optional<Schema.String>;
|
|
160
|
+
readonly confirmClassName: Schema.optional<Schema.String>;
|
|
161
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
162
|
+
readonly messages: Schema.optional<Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.$Record<Schema.Literals<readonly ["title", "location", "placeholder", "clear", "close", "currentLocation", "searchWithin", "suggestions", "loading", "noResults", "searchHint", "ipNotice", "browserNotice", "radiusHint", "cancel", "confirm", "confirmError"]>, Schema.optionalKey<Schema.String>>>>>;
|
|
163
|
+
readonly apiKey: Schema.optional<Schema.Redacted<Schema.String>>;
|
|
164
|
+
readonly mode: Schema.optional<Schema.Enum<typeof MapMenuMode>>;
|
|
165
|
+
readonly presentation: Schema.optional<Schema.Enum<typeof MapMenuPresentation>>;
|
|
166
|
+
readonly open: Schema.optional<Schema.Boolean>;
|
|
167
|
+
readonly radiusKm: Schema.optional<Schema.Finite>;
|
|
168
|
+
readonly radiusOptions: Schema.optional<Schema.$Array<Schema.Finite>>;
|
|
169
|
+
readonly canUseCurrentLocation: Schema.optional<Schema.Boolean>;
|
|
170
|
+
}>;
|
|
171
|
+
readonly model: Schema.Struct<{
|
|
172
|
+
readonly suggestionsOpen: Schema.Boolean;
|
|
173
|
+
readonly save: Schema.Literals<readonly ["idle", "pending", "failed"]>;
|
|
174
|
+
readonly mapStatus: Schema.Literals<readonly ["loading", "ready", "configuration", "load"]>;
|
|
175
|
+
readonly zoom: Schema.NullOr<Schema.Finite>;
|
|
176
|
+
readonly camera: Schema.NullOr<Schema.Struct<{
|
|
177
|
+
readonly action: Schema.Literals<readonly ["in", "out", "fit"]>;
|
|
178
|
+
readonly revision: Schema.Int;
|
|
179
|
+
}>>;
|
|
180
|
+
}>;
|
|
181
|
+
readonly message: UiSchema.TaggedEnum<{
|
|
182
|
+
readonly CameraRequested: Schema.TaggedStruct<"CameraRequested", {
|
|
183
|
+
readonly action: Schema.Literals<readonly ["in", "out", "fit"]>;
|
|
184
|
+
}>;
|
|
185
|
+
readonly Cancel: Schema.TaggedStruct<"Cancel", {}>;
|
|
186
|
+
readonly Confirm: Schema.TaggedStruct<"Confirm", {}>;
|
|
187
|
+
readonly Edited: Schema.TaggedStruct<"Edited", {
|
|
188
|
+
readonly input: Schema.String;
|
|
189
|
+
}>;
|
|
190
|
+
readonly Finished: Schema.TaggedStruct<"Finished", {
|
|
191
|
+
readonly success: Schema.Boolean;
|
|
192
|
+
}>;
|
|
193
|
+
readonly Locate: Schema.TaggedStruct<"Locate", {}>;
|
|
194
|
+
readonly MapStatus: Schema.TaggedStruct<"MapStatus", {
|
|
195
|
+
readonly status: Schema.Literals<readonly ["loading", "ready", "configuration", "load"]>;
|
|
196
|
+
}>;
|
|
197
|
+
readonly Picked: Schema.TaggedStruct<"Picked", {
|
|
198
|
+
readonly id: Schema.String;
|
|
199
|
+
}>;
|
|
200
|
+
readonly RadiusPicked: Schema.TaggedStruct<"RadiusPicked", {
|
|
201
|
+
readonly radiusKm: Schema.Finite;
|
|
202
|
+
}>;
|
|
203
|
+
readonly SuggestionsClosed: Schema.TaggedStruct<"SuggestionsClosed", {}>;
|
|
204
|
+
readonly SuggestionsOpened: Schema.TaggedStruct<"SuggestionsOpened", {}>;
|
|
205
|
+
readonly ZoomChanged: Schema.TaggedStruct<"ZoomChanged", {
|
|
206
|
+
readonly zoom: Schema.Finite;
|
|
207
|
+
}>;
|
|
208
|
+
}>;
|
|
209
|
+
readonly events: UiSchema.TaggedEnum<{
|
|
210
|
+
readonly Cancelled: Schema.TaggedStruct<"Cancelled", {}>;
|
|
211
|
+
readonly Confirmed: Schema.TaggedStruct<"Confirmed", {}>;
|
|
212
|
+
readonly CurrentLocationRequested: Schema.TaggedStruct<"CurrentLocationRequested", {}>;
|
|
213
|
+
readonly InputChanged: Schema.TaggedStruct<"InputChanged", {
|
|
214
|
+
readonly input: Schema.String;
|
|
215
|
+
}>;
|
|
216
|
+
readonly LocationSelected: Schema.TaggedStruct<"LocationSelected", {
|
|
217
|
+
readonly location: Schema.Struct<{
|
|
218
|
+
readonly id: Schema.String;
|
|
219
|
+
readonly label: Schema.String;
|
|
220
|
+
readonly title: Schema.optional<Schema.String>;
|
|
221
|
+
readonly details: Schema.optional<Schema.String>;
|
|
222
|
+
readonly center: Schema.Struct<{
|
|
223
|
+
readonly lat: Schema.Finite;
|
|
224
|
+
readonly lng: Schema.Finite;
|
|
225
|
+
}>;
|
|
226
|
+
}>;
|
|
227
|
+
}>;
|
|
228
|
+
readonly OpenChanged: Schema.TaggedStruct<"OpenChanged", {
|
|
229
|
+
readonly open: Schema.Boolean;
|
|
230
|
+
}>;
|
|
231
|
+
readonly RadiusChanged: Schema.TaggedStruct<"RadiusChanged", {
|
|
232
|
+
readonly radiusKm: Schema.Finite;
|
|
233
|
+
}>;
|
|
234
|
+
}>;
|
|
235
|
+
readonly restore: false;
|
|
236
|
+
};
|
|
237
|
+
type Model = typeof mapMenuOptions.model.Type;
|
|
238
|
+
type Props = typeof MapMenuHtmlPropsSchema.Type;
|
|
239
|
+
type Msg = typeof MapMenuMessage.Type;
|
|
240
|
+
type Event = typeof MapMenuEvent.Type;
|
|
241
|
+
export declare const mapMenuCanConfirm: (props: Props) => boolean;
|
|
242
|
+
export declare const mapMenuBehaviours: {
|
|
243
|
+
init: () => Model;
|
|
244
|
+
update: (context: Component.Update<Model, Msg, Event, Props>, message: Msg) => Model | Component.Step<Model, Msg, Event, SaveMapSelection>;
|
|
245
|
+
};
|
|
246
|
+
export { CameraRequest };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type { GoogleMapsApi } from "./google-maps.js";
|
|
2
|
+
export type GoogleMapPoint = {
|
|
3
|
+
lat: number;
|
|
4
|
+
lng: number;
|
|
5
|
+
};
|
|
6
|
+
export type GoogleMapMarkerOptions = {
|
|
7
|
+
icon?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type GoogleMapRadiusOptions = {
|
|
10
|
+
radiusMeters: number;
|
|
11
|
+
fillColor?: string | undefined;
|
|
12
|
+
fillOpacity?: number | undefined;
|
|
13
|
+
strokeColor?: string | undefined;
|
|
14
|
+
strokeOpacity?: number | undefined;
|
|
15
|
+
strokeWeight?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type GoogleMapMessages = {
|
|
18
|
+
mapLabel: string;
|
|
19
|
+
loading: string;
|
|
20
|
+
missingKeyTitle: string;
|
|
21
|
+
missingKeyBody: string;
|
|
22
|
+
errorTitle: string;
|
|
23
|
+
errorBody: string;
|
|
24
|
+
zoomIn: string;
|
|
25
|
+
zoomOut: string;
|
|
26
|
+
showArea: string;
|
|
27
|
+
};
|
|
28
|
+
export type GoogleMapMessageTranslations = Partial<Record<string, Partial<GoogleMapMessages>>>;
|
|
29
|
+
export type GoogleMapProps = {
|
|
30
|
+
apiKey: string;
|
|
31
|
+
center: GoogleMapPoint;
|
|
32
|
+
zoom: number;
|
|
33
|
+
marker?: boolean | GoogleMapMarkerOptions | undefined;
|
|
34
|
+
radius?: GoogleMapRadiusOptions | undefined;
|
|
35
|
+
interactive?: boolean | undefined;
|
|
36
|
+
zoomControls?: boolean | undefined;
|
|
37
|
+
fitRadius?: boolean | undefined;
|
|
38
|
+
fitPadding?: number | undefined;
|
|
39
|
+
minZoom?: number | undefined;
|
|
40
|
+
maxZoom?: number | undefined;
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
controlsClassName?: string | undefined;
|
|
43
|
+
messages?: GoogleMapMessageTranslations | undefined;
|
|
44
|
+
locale?: string | undefined;
|
|
45
|
+
};
|
|
46
|
+
/** Internal renderer shipped with MapMenu; not a standalone registry/package entry. */
|
|
47
|
+
export declare const MapMenuMap: ({ apiKey, center, zoom, marker, radius, interactive, zoomControls, fitRadius, fitPadding, minZoom, maxZoom, className, controlsClassName, messages: messageOverrides, locale: localeOverride, }: GoogleMapProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MapMenuMode, MapMenuPresentation, type MapMenuLocation, type MapMenuSharedProps } from "./schema.js";
|
|
2
|
+
export { mapMenuRadiiKm } from "./index.js";
|
|
3
|
+
export { MapMenuMode, MapMenuPresentation } from "./schema.js";
|
|
4
|
+
export type { MapMenuLocation, MapMenuMessages, MapMenuPoint } from "./schema.js";
|
|
5
|
+
type MapMenuCommonProps = MapMenuSharedProps & {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
onInputChange: (input: string) => void;
|
|
8
|
+
onSelectLocation: (location: MapMenuLocation) => void;
|
|
9
|
+
onUseCurrentLocation?: (() => void) | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type MapMenuProps = MapMenuCommonProps & ({
|
|
12
|
+
presentation?: MapMenuPresentation.Dialog | undefined;
|
|
13
|
+
open: boolean;
|
|
14
|
+
onOpenChange: (open: boolean) => void;
|
|
15
|
+
onCancel?: never;
|
|
16
|
+
} | {
|
|
17
|
+
presentation: MapMenuPresentation.Inline;
|
|
18
|
+
open?: never;
|
|
19
|
+
onOpenChange?: never;
|
|
20
|
+
onCancel: () => void;
|
|
21
|
+
}) & ({
|
|
22
|
+
mode: MapMenuMode.Point;
|
|
23
|
+
radiusKm?: never;
|
|
24
|
+
onRadiusChange?: never;
|
|
25
|
+
radiusOptions?: never;
|
|
26
|
+
onConfirm: (selection: {
|
|
27
|
+
location: MapMenuLocation;
|
|
28
|
+
}) => void | Promise<void>;
|
|
29
|
+
} | {
|
|
30
|
+
mode?: MapMenuMode.Radius | undefined;
|
|
31
|
+
radiusKm: number;
|
|
32
|
+
onRadiusChange: (radiusKm: number) => void;
|
|
33
|
+
radiusOptions?: readonly number[] | undefined;
|
|
34
|
+
onConfirm: (selection: {
|
|
35
|
+
location: MapMenuLocation;
|
|
36
|
+
radiusKm: number;
|
|
37
|
+
}) => void | Promise<void>;
|
|
38
|
+
});
|
|
39
|
+
/** Controlled picker: the host owns lookup, location acquisition and persisted state. */
|
|
40
|
+
export declare const MapMenu: (props: MapMenuProps) => import("react").JSX.Element;
|