@krak-stack/registry 0.10.20 → 0.11.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/CHANGELOG.md +89 -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 +2440 -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/{ui/animated-list.js → animated-list/react.js} +199 -54
- 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 +124 -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 +224 -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} +1964 -847
- 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/{ui/code-block.js → code-block/react.js} +168 -50
- 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 +234 -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/{ui/copy-value.js → copy-value/react.js} +243 -65
- 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/{ui/danger-confirmation.js → danger-confirmation/react.js} +203 -205
- 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} +1958 -835
- 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 +345 -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} +461 -127
- 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} +600 -230
- 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/{ui/error-component.js → error-component/react.js} +281 -78
- 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} +305 -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 +648 -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 +392 -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 +139 -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 +525 -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} +365 -96
- 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} +128 -23
- 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} +199 -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 +1098 -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} +337 -104
- 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} +2278 -917
- 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 +341 -75
- package/dist/lib/docs.js +715 -299
- package/dist/lib/docs.server.js +325 -59
- package/dist/lib/documentation-toolkit.d.ts +4 -4
- package/dist/lib/documentation-toolkit.js +337 -71
- 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/effect-ui-adapter/use-model.js +158 -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 +530 -168
- 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 +185 -142
- package/dist/components/support-dialog.js +0 -881
- package/dist/components/support.js +0 -881
- 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/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/cron-expression-editor.d.ts +0 -16
- package/dist/components/ui/cron-expression-editor.schema.d.ts +0 -7
- 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/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
package/dist/lib/docs.js
CHANGED
|
@@ -1,139 +1,98 @@
|
|
|
1
1
|
// ../../src/lib/docs.tsx
|
|
2
2
|
import { createIsomorphicFn } from "@tanstack/react-start";
|
|
3
3
|
import { getCookie } from "@tanstack/react-start/server";
|
|
4
|
-
import { Option as Option2, Schema as
|
|
4
|
+
import { Option as Option2, Schema as Schema8 } from "effect";
|
|
5
5
|
import { Cookies as Cookies2 } from "effect/http";
|
|
6
6
|
import {
|
|
7
7
|
forwardRef,
|
|
8
8
|
useDeferredValue,
|
|
9
|
-
useEffect as
|
|
10
|
-
useState as
|
|
9
|
+
useEffect as useEffect3,
|
|
10
|
+
useState as useState4
|
|
11
11
|
} from "react";
|
|
12
12
|
|
|
13
|
-
// ../../src/components/ui/app-brand.tsx
|
|
14
|
-
import { Link } from "@tanstack/react-router";
|
|
15
|
-
|
|
16
13
|
// ../../src/lib/utils.ts
|
|
17
14
|
import { cn } from "cn";
|
|
18
15
|
|
|
19
|
-
// ../../src/components/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
// ../../src/components/app-brand/classes.ts
|
|
17
|
+
var appBrandClasses = ({ className, classNames, classes, variant }, hasImage) => {
|
|
18
|
+
const sidebar = variant === "sidebar";
|
|
19
|
+
return {
|
|
20
|
+
root: [
|
|
21
|
+
classes?.root ?? [
|
|
22
|
+
"flex min-w-0 items-center gap-2 text-foreground hover:text-foreground",
|
|
23
|
+
sidebar && "p-2 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0"
|
|
24
|
+
].filter(Boolean).join(" "),
|
|
25
|
+
className
|
|
26
|
+
].filter(Boolean).join(" "),
|
|
27
|
+
visual: cn(classes?.visual ?? cn("flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md", hasImage ? "bg-background border" : sidebar ? "bg-sidebar-primary" : "bg-primary"), classNames?.visual),
|
|
28
|
+
image: cn(classes?.image ?? "size-full object-cover", classNames?.image),
|
|
29
|
+
icon: cn(classes?.icon ?? "size-4", classNames?.icon),
|
|
30
|
+
iconColor: sidebar ? "var(--sidebar-primary-foreground)" : "var(--primary-foreground)",
|
|
31
|
+
content: cn(classes?.content ?? cn("flex min-w-0 flex-col leading-tight", sidebar && "group-data-[collapsible=icon]:hidden"), classNames?.content),
|
|
32
|
+
label: cn(classes?.label ?? "truncate font-semibold tracking-tight", classNames?.label),
|
|
33
|
+
subtitle: cn(classes?.subtitle ?? "text-muted-foreground truncate text-xs", classNames?.subtitle)
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// ../../src/components/app-brand/react.tsx
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
function AppBrand({
|
|
40
|
+
label,
|
|
41
|
+
subtitle,
|
|
42
|
+
icon: Icon,
|
|
43
|
+
imageSrc,
|
|
44
|
+
className,
|
|
45
|
+
classNames,
|
|
46
|
+
classes: classOverrides,
|
|
47
|
+
variant,
|
|
48
|
+
...props
|
|
49
|
+
}) {
|
|
50
|
+
const classes = appBrandClasses({
|
|
27
51
|
label,
|
|
28
52
|
subtitle,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
53
|
+
className,
|
|
54
|
+
classNames,
|
|
55
|
+
classes: classOverrides,
|
|
56
|
+
variant
|
|
57
|
+
}, Boolean(imageSrc));
|
|
58
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
59
|
+
"data-slot": "app-brand",
|
|
60
|
+
className: classes.root,
|
|
61
|
+
...props,
|
|
37
62
|
children: [
|
|
38
63
|
/* @__PURE__ */ jsx("div", {
|
|
39
64
|
"data-slot": "app-brand-visual",
|
|
40
|
-
className:
|
|
65
|
+
className: classes.visual,
|
|
41
66
|
children: imageSrc ? /* @__PURE__ */ jsx("img", {
|
|
42
67
|
"data-slot": "app-brand-image",
|
|
43
68
|
src: imageSrc,
|
|
44
69
|
alt: label,
|
|
45
|
-
className:
|
|
70
|
+
className: classes.image
|
|
46
71
|
}) : Icon ? /* @__PURE__ */ jsx(Icon, {
|
|
47
72
|
"data-slot": "app-brand-icon",
|
|
48
|
-
className:
|
|
49
|
-
color: iconColor
|
|
73
|
+
className: classes.icon,
|
|
74
|
+
color: classes.iconColor
|
|
50
75
|
}) : null
|
|
51
76
|
}),
|
|
52
77
|
/* @__PURE__ */ jsxs("div", {
|
|
53
78
|
"data-slot": "app-brand-content",
|
|
54
|
-
className:
|
|
79
|
+
className: classes.content,
|
|
55
80
|
children: [
|
|
56
81
|
/* @__PURE__ */ jsx("span", {
|
|
57
82
|
"data-slot": "app-brand-label",
|
|
58
|
-
className:
|
|
83
|
+
className: classes.label,
|
|
59
84
|
children: label
|
|
60
85
|
}),
|
|
61
86
|
subtitle ? /* @__PURE__ */ jsx("span", {
|
|
62
87
|
"data-slot": "app-brand-subtitle",
|
|
63
|
-
className:
|
|
88
|
+
className: classes.subtitle,
|
|
64
89
|
children: subtitle
|
|
65
90
|
}) : null
|
|
66
91
|
]
|
|
67
92
|
})
|
|
68
93
|
]
|
|
69
94
|
});
|
|
70
|
-
const brandClassName = [
|
|
71
|
-
"flex min-w-0 items-center gap-2 text-foreground hover:text-foreground",
|
|
72
|
-
variant === "sidebar" ? "p-2 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0" : "",
|
|
73
|
-
className
|
|
74
|
-
].filter(Boolean).join(" ");
|
|
75
|
-
if (isStaticBrand(brandProps)) {
|
|
76
|
-
const {
|
|
77
|
-
className: _className,
|
|
78
|
-
classNames: _classNames,
|
|
79
|
-
label: _label,
|
|
80
|
-
subtitle: _subtitle,
|
|
81
|
-
icon: _icon,
|
|
82
|
-
imageSrc: _imageSrc,
|
|
83
|
-
variant: _variant,
|
|
84
|
-
to: _to,
|
|
85
|
-
href: _href,
|
|
86
|
-
...props
|
|
87
|
-
} = brandProps;
|
|
88
|
-
return /* @__PURE__ */ jsx("div", {
|
|
89
|
-
"data-slot": "app-brand",
|
|
90
|
-
className: brandClassName,
|
|
91
|
-
...props,
|
|
92
|
-
children: content
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
if (isAnchorBrand(brandProps)) {
|
|
96
|
-
const {
|
|
97
|
-
className: _className,
|
|
98
|
-
classNames: _classNames,
|
|
99
|
-
label: _label,
|
|
100
|
-
subtitle: _subtitle,
|
|
101
|
-
icon: _icon,
|
|
102
|
-
imageSrc: _imageSrc,
|
|
103
|
-
variant: _variant,
|
|
104
|
-
to: _to,
|
|
105
|
-
href,
|
|
106
|
-
...props
|
|
107
|
-
} = brandProps;
|
|
108
|
-
return /* @__PURE__ */ jsx("a", {
|
|
109
|
-
"data-slot": "app-brand",
|
|
110
|
-
className: brandClassName,
|
|
111
|
-
href,
|
|
112
|
-
...props,
|
|
113
|
-
children: content
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
const {
|
|
117
|
-
className: _className,
|
|
118
|
-
classNames: _classNames,
|
|
119
|
-
label: _label,
|
|
120
|
-
subtitle: _subtitle,
|
|
121
|
-
icon: _icon,
|
|
122
|
-
imageSrc: _imageSrc,
|
|
123
|
-
variant: _variant,
|
|
124
|
-
href: _href,
|
|
125
|
-
to,
|
|
126
|
-
...props
|
|
127
|
-
} = brandProps;
|
|
128
|
-
return /* @__PURE__ */ jsx(Link, {
|
|
129
|
-
"data-slot": "app-brand",
|
|
130
|
-
to: to ?? "/",
|
|
131
|
-
className: brandClassName,
|
|
132
|
-
...props,
|
|
133
|
-
children: content
|
|
134
|
-
});
|
|
135
95
|
}
|
|
136
|
-
|
|
137
96
|
// ../../src/components/ui/badge.tsx
|
|
138
97
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
139
98
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -215,20 +174,111 @@ function Button({
|
|
|
215
174
|
});
|
|
216
175
|
}
|
|
217
176
|
|
|
218
|
-
// ../../src/components/
|
|
177
|
+
// ../../src/components/copy-button/react.tsx
|
|
219
178
|
import { Check, Copy, TriangleAlert } from "lucide-react";
|
|
220
|
-
import {
|
|
221
|
-
import {
|
|
222
|
-
import {
|
|
223
|
-
|
|
179
|
+
import { Redacted as Redacted2 } from "effect";
|
|
180
|
+
import { Component as Component2 } from "effect/ui";
|
|
181
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
182
|
+
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
|
|
183
|
+
import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
|
|
184
|
+
|
|
185
|
+
// ../../src/components/copy-button/index.ts
|
|
186
|
+
import { Effect, Redacted, Schema as Schema2 } from "effect";
|
|
187
|
+
import { Command, Component, UiSchema, View } from "effect/ui";
|
|
188
|
+
|
|
189
|
+
// ../../src/components/copy-button/schema.ts
|
|
190
|
+
import { Schema } from "effect";
|
|
191
|
+
var MessageOverrides = Schema.Struct({
|
|
192
|
+
copy: Schema.optional(Schema.String),
|
|
193
|
+
copied: Schema.optional(Schema.String),
|
|
194
|
+
copyFailed: Schema.optional(Schema.String)
|
|
195
|
+
}).annotate({ identifier: "CopyButtonMessageOverrides" });
|
|
196
|
+
var CopyButtonTranslations = Schema.Record(Schema.String, Schema.UndefinedOr(MessageOverrides));
|
|
197
|
+
var copyButtonVariants = [
|
|
198
|
+
"default",
|
|
199
|
+
"secondary",
|
|
200
|
+
"outline",
|
|
201
|
+
"ghost",
|
|
202
|
+
"destructive",
|
|
203
|
+
"link"
|
|
204
|
+
];
|
|
205
|
+
var CopyButtonModelProps = Schema.Struct({
|
|
206
|
+
value: Schema.Redacted(Schema.String, { disallowJsonEncode: true }),
|
|
207
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
208
|
+
resetDelay: Schema.optional(Schema.Finite)
|
|
209
|
+
}).annotate({ identifier: "CopyButtonModelProps" });
|
|
210
|
+
var copyButtonSharedProps = Schema.Struct({
|
|
211
|
+
...CopyButtonModelProps.fields,
|
|
212
|
+
valueDescription: Schema.optional(Schema.String),
|
|
213
|
+
copyVariant: Schema.optional(Schema.Literals(["default", "sm", "large"])),
|
|
214
|
+
variant: Schema.optional(Schema.Literals(copyButtonVariants)),
|
|
215
|
+
locale: Schema.optional(Schema.String),
|
|
216
|
+
messages: Schema.optional(CopyButtonTranslations)
|
|
217
|
+
}).annotate({ identifier: "CopyButtonSharedProps" });
|
|
218
|
+
|
|
219
|
+
// ../../src/components/copy-button/index.ts
|
|
220
|
+
var labels = {
|
|
224
221
|
en: { copy: "Copy", copied: "Copied", copyFailed: "Copy failed" },
|
|
225
222
|
fr: { copy: "Copier", copied: "Copié", copyFailed: "Échec de la copie" }
|
|
226
223
|
};
|
|
227
224
|
var copyButtonMessages = (locale = "en", translations) => ({
|
|
228
|
-
...locale.startsWith("fr") ?
|
|
225
|
+
...locale.startsWith("fr") ? labels.fr : labels.en,
|
|
229
226
|
...translations?.[locale.split("-")[0] ?? locale],
|
|
230
227
|
...translations?.[locale]
|
|
231
228
|
});
|
|
229
|
+
var copyButtonLabel = (copy, description) => description ? `${copy} ${description}` : copy;
|
|
230
|
+
var CopyButtonMessage = UiSchema.TaggedEnum({
|
|
231
|
+
Pressed: {},
|
|
232
|
+
Finished: { success: Schema2.Boolean },
|
|
233
|
+
Reset: {}
|
|
234
|
+
}).annotate({ identifier: "CopyButtonMessage" });
|
|
235
|
+
|
|
236
|
+
class WriteClipboard extends Command.Service()("copy-button/WriteClipboard", {
|
|
237
|
+
args: {
|
|
238
|
+
value: Schema2.Redacted(Schema2.String, { disallowJsonEncode: true })
|
|
239
|
+
},
|
|
240
|
+
success: CopyButtonMessage
|
|
241
|
+
}) {
|
|
242
|
+
static layerFromWrite = (write) => WriteClipboard.toLayer(({ value }) => Effect.tryPromise(() => write(Redacted.value(value))).pipe(Effect.match({
|
|
243
|
+
onSuccess: () => CopyButtonMessage.Finished({ success: true }),
|
|
244
|
+
onFailure: () => CopyButtonMessage.Finished({ success: false })
|
|
245
|
+
})));
|
|
246
|
+
static browser = WriteClipboard.layerFromWrite((value) => navigator.clipboard.writeText(value));
|
|
247
|
+
}
|
|
248
|
+
var ResetClipboardFeedback = Command.make("copy-button/ResetFeedback", { args: { delay: Schema2.Number }, mode: "switch" }, ({ delay }) => Effect.sleep(Math.max(0, delay)).pipe(Effect.as(CopyButtonMessage.Reset())));
|
|
249
|
+
var copyButtonOptions = {
|
|
250
|
+
name: "CopyButton",
|
|
251
|
+
props: CopyButtonModelProps,
|
|
252
|
+
model: Schema2.Struct({
|
|
253
|
+
status: Schema2.Literals(["idle", "copied", "failed"])
|
|
254
|
+
}).annotate({ identifier: "CopyButtonModel" }),
|
|
255
|
+
message: CopyButtonMessage,
|
|
256
|
+
restore: false
|
|
257
|
+
};
|
|
258
|
+
var Definition = Component.define(copyButtonOptions);
|
|
259
|
+
var update = Definition.update({
|
|
260
|
+
Pressed: ($) => $.props.disabled ? $.model : $.run(WriteClipboard.make({ value: $.props.value })),
|
|
261
|
+
Finished: ($, { success }) => $.evolve({ status: success ? "copied" : "failed" }).run(ResetClipboardFeedback.make({ delay: $.props.resetDelay ?? 1500 })),
|
|
262
|
+
Reset: ($) => $.evolve({ status: "idle" })
|
|
263
|
+
});
|
|
264
|
+
var copyButtonBehaviours = {
|
|
265
|
+
init: () => ({ status: "idle" }),
|
|
266
|
+
update
|
|
267
|
+
};
|
|
268
|
+
var CopyButtonModel = Definition.make({
|
|
269
|
+
...copyButtonBehaviours,
|
|
270
|
+
view: () => View.text("")
|
|
271
|
+
});
|
|
272
|
+
var copyButtonStatus = (status, copy, description) => {
|
|
273
|
+
if (status === "idle")
|
|
274
|
+
return "";
|
|
275
|
+
const text = status === "copied" ? copy.copied : copy.copyFailed;
|
|
276
|
+
return description ? `${text}: ${description}` : text;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
// ../../src/components/copy-button/react.tsx
|
|
280
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
281
|
+
"use client";
|
|
232
282
|
function CopyButton({
|
|
233
283
|
value,
|
|
234
284
|
valueDescription,
|
|
@@ -244,39 +294,44 @@ function CopyButton({
|
|
|
244
294
|
...props
|
|
245
295
|
}) {
|
|
246
296
|
const locale = useKrakstackLocale(localeOverride);
|
|
247
|
-
const [copyState, setCopyState] = useState("idle");
|
|
248
|
-
const copyTimeout = useRef(undefined);
|
|
249
297
|
const labels = copyButtonMessages(locale, messages);
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
298
|
+
const callbacks = useRef({
|
|
299
|
+
onCopied,
|
|
300
|
+
onCopyError,
|
|
301
|
+
failureLabel: labels.copyFailed
|
|
302
|
+
});
|
|
303
|
+
useLayoutEffect(() => {
|
|
304
|
+
callbacks.current = {
|
|
305
|
+
onCopied,
|
|
306
|
+
onCopyError,
|
|
307
|
+
failureLabel: labels.copyFailed
|
|
257
308
|
};
|
|
258
|
-
}, []);
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
};
|
|
264
|
-
const copy = () => {
|
|
265
|
-
Promise.resolve().then(() => navigator.clipboard.writeText(value)).then(() => {
|
|
266
|
-
setCopyState("copied");
|
|
309
|
+
}, [onCopied, onCopyError, labels.copyFailed]);
|
|
310
|
+
const [component] = useState(() => CopyButtonModel.pipe(Component2.provide(WriteClipboard.layerFromWrite(async (text) => {
|
|
311
|
+
const { onCopied, onCopyError, failureLabel } = callbacks.current;
|
|
312
|
+
try {
|
|
313
|
+
await navigator.clipboard.writeText(text);
|
|
267
314
|
onCopied?.();
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
315
|
+
} catch (cause) {
|
|
316
|
+
onCopyError?.(cause instanceof Error ? cause : new Error(failureLabel, { cause }));
|
|
317
|
+
throw cause;
|
|
318
|
+
}
|
|
319
|
+
}))));
|
|
320
|
+
const {
|
|
321
|
+
model: { status },
|
|
322
|
+
send
|
|
323
|
+
} = useModel(component, {
|
|
324
|
+
value: Redacted2.make(value),
|
|
325
|
+
disabled: disabled ?? false,
|
|
326
|
+
resetDelay
|
|
327
|
+
});
|
|
328
|
+
const accessibleLabel = ariaLabel ?? copyButtonLabel(labels.copy, valueDescription);
|
|
329
|
+
const isLarge = copyVariant === "large";
|
|
330
|
+
const defaultSize = copyVariant === "sm" ? "icon-xs" : isLarge ? "sm" : "icon-sm";
|
|
276
331
|
return /* @__PURE__ */ jsxs2(Button, {
|
|
277
332
|
"aria-label": accessibleLabel,
|
|
278
333
|
disabled,
|
|
279
|
-
onClick:
|
|
334
|
+
onClick: () => send(CopyButtonMessage.Pressed()),
|
|
280
335
|
size: size ?? defaultSize,
|
|
281
336
|
...props,
|
|
282
337
|
children: [
|
|
@@ -284,15 +339,15 @@ function CopyButton({
|
|
|
284
339
|
"aria-live": "polite",
|
|
285
340
|
className: "sr-only",
|
|
286
341
|
role: "status",
|
|
287
|
-
children: status
|
|
342
|
+
children: copyButtonStatus(status, labels, valueDescription)
|
|
288
343
|
}),
|
|
289
|
-
|
|
344
|
+
status === "copied" ? /* @__PURE__ */ jsx3(Check, {
|
|
290
345
|
"aria-hidden": "true"
|
|
291
346
|
}) : null,
|
|
292
|
-
|
|
347
|
+
status === "failed" ? /* @__PURE__ */ jsx3(TriangleAlert, {
|
|
293
348
|
"aria-hidden": "true"
|
|
294
349
|
}) : null,
|
|
295
|
-
|
|
350
|
+
status === "idle" ? /* @__PURE__ */ jsx3(Copy, {
|
|
296
351
|
"aria-hidden": "true"
|
|
297
352
|
}) : null,
|
|
298
353
|
isLarge ? /* @__PURE__ */ jsx3("span", {
|
|
@@ -302,14 +357,30 @@ function CopyButton({
|
|
|
302
357
|
});
|
|
303
358
|
}
|
|
304
359
|
|
|
305
|
-
// ../../src/components/ui/
|
|
360
|
+
// ../../src/components/ui/copy-button.tsx
|
|
361
|
+
"use client";
|
|
362
|
+
|
|
363
|
+
// ../../src/components/code-block/react.tsx
|
|
306
364
|
import { highlight } from "@tanstack/highlight";
|
|
365
|
+
import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
|
|
366
|
+
|
|
367
|
+
// ../../src/components/code-block/classes.ts
|
|
368
|
+
var codeBlockClasses = {
|
|
369
|
+
root: "not-prose bg-muted overflow-hidden rounded-md border text-[var(--th-token)]",
|
|
370
|
+
header: "bg-background border-border/60 flex items-center justify-between border-b px-3 py-2",
|
|
371
|
+
language: "text-muted-foreground font-mono text-xs",
|
|
372
|
+
viewport: "max-h-full overflow-auto font-mono text-[0.875rem] leading-[1.625]"
|
|
373
|
+
};
|
|
374
|
+
var resolveCodeBlockClasses = (overrides) => ({
|
|
375
|
+
...codeBlockClasses,
|
|
376
|
+
...overrides
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
// ../../src/components/code-block/index.ts
|
|
307
380
|
import { createThemeCss } from "@tanstack/highlight/theme";
|
|
308
381
|
import { githubDarkTheme } from "@tanstack/highlight/themes/github-dark";
|
|
309
382
|
import { githubLightTheme } from "@tanstack/highlight/themes/github-light";
|
|
310
|
-
|
|
311
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
312
|
-
var themeCss = `${createThemeCss({
|
|
383
|
+
var codeThemeCss = `${createThemeCss({
|
|
313
384
|
light: githubLightTheme,
|
|
314
385
|
dark: githubDarkTheme,
|
|
315
386
|
lightSelector: "[data-code-theme]",
|
|
@@ -325,7 +396,7 @@ var themeCss = `${createThemeCss({
|
|
|
325
396
|
color: inherit;
|
|
326
397
|
}
|
|
327
398
|
[data-code-theme] pre.th-code code { font: inherit; }`;
|
|
328
|
-
var
|
|
399
|
+
var messages = {
|
|
329
400
|
en: {
|
|
330
401
|
codeDescription: (language) => `${language} code`,
|
|
331
402
|
copy: "Copy",
|
|
@@ -340,54 +411,82 @@ var messages2 = {
|
|
|
340
411
|
}
|
|
341
412
|
};
|
|
342
413
|
var codeBlockMessages = (locale = "en", translations) => ({
|
|
343
|
-
...locale.startsWith("fr") ?
|
|
414
|
+
...locale.startsWith("fr") ? messages.fr : messages.en,
|
|
344
415
|
...translations?.[locale.split("-")[0] ?? locale],
|
|
345
416
|
...translations?.[locale]
|
|
346
417
|
});
|
|
418
|
+
var codeLanguage = (language = "text") => language.toLowerCase() || "text";
|
|
419
|
+
|
|
420
|
+
// ../../src/components/code-block/react.tsx
|
|
421
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
347
422
|
function CodeBlock({
|
|
423
|
+
classes: classOverrides,
|
|
348
424
|
code,
|
|
349
425
|
language = "text",
|
|
350
426
|
locale: localeOverride,
|
|
351
427
|
messages
|
|
352
428
|
}) {
|
|
429
|
+
const codeBlockClasses = resolveCodeBlockClasses(classOverrides);
|
|
353
430
|
const locale = useKrakstackLocale2(localeOverride);
|
|
354
|
-
const normalizedLanguage = language
|
|
431
|
+
const normalizedLanguage = codeLanguage(language);
|
|
355
432
|
const highlighted = highlight(code, { lang: normalizedLanguage });
|
|
356
433
|
const labels = codeBlockMessages(locale, messages);
|
|
357
434
|
return /* @__PURE__ */ jsxs3("div", {
|
|
358
|
-
className:
|
|
435
|
+
className: codeBlockClasses.root,
|
|
359
436
|
"data-code-theme": true,
|
|
360
437
|
children: [
|
|
361
438
|
/* @__PURE__ */ jsx4("style", {
|
|
362
|
-
children:
|
|
439
|
+
children: codeThemeCss
|
|
363
440
|
}),
|
|
364
441
|
/* @__PURE__ */ jsxs3("div", {
|
|
365
|
-
className:
|
|
442
|
+
className: codeBlockClasses.header,
|
|
366
443
|
children: [
|
|
367
444
|
/* @__PURE__ */ jsx4("span", {
|
|
368
|
-
className:
|
|
445
|
+
className: codeBlockClasses.language,
|
|
369
446
|
children: highlighted.lang
|
|
370
447
|
}),
|
|
371
448
|
/* @__PURE__ */ jsx4(CopyButton, {
|
|
372
449
|
value: code,
|
|
373
450
|
valueDescription: labels.codeDescription(highlighted.lang),
|
|
374
|
-
variant: "
|
|
451
|
+
variant: "ghost",
|
|
375
452
|
locale,
|
|
376
453
|
messages: { [locale]: labels }
|
|
377
454
|
})
|
|
378
455
|
]
|
|
379
456
|
}),
|
|
380
457
|
/* @__PURE__ */ jsx4("div", {
|
|
381
|
-
className:
|
|
458
|
+
className: codeBlockClasses.viewport,
|
|
382
459
|
dangerouslySetInnerHTML: { __html: highlighted.html }
|
|
383
460
|
})
|
|
384
461
|
]
|
|
385
462
|
});
|
|
386
463
|
}
|
|
464
|
+
// ../../src/components/markdown/classes.ts
|
|
465
|
+
var markdownClass = "[&_a:hover]:text-primary [&_a]:decoration-border [&_blockquote]:border-primary/40 [&_blockquote]:bg-muted/40 [&_h2_a]:text-muted-foreground [&_h3_a]:text-muted-foreground [&_[data-inline-code]]:bg-muted text-[0.98rem] leading-7 [&_[data-inline-code]]:rounded [&_[data-inline-code]]:px-1.5 [&_[data-inline-code]]:py-0.5 [&_[data-inline-code]]:font-mono [&_[data-inline-code]]:text-[0.875em] [&_[data-markdown-table]]:overflow-x-auto [&_a]:font-medium [&_a]:underline [&_a]:decoration-1 [&_a]:underline-offset-4 [&_a]:transition-colors [&_blockquote]:my-5 [&_blockquote]:rounded-r-lg [&_blockquote]:border-l-4 [&_blockquote]:px-5 [&_blockquote]:py-1 [&_h2]:mt-12 [&_h2]:scroll-mt-20 [&_h2]:border-t [&_h2]:pt-8 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:tracking-tight [&_h2_a]:ml-2 [&_h2_a]:no-underline [&_h2:first-of-type]:mt-0 [&_h2:first-of-type]:border-t-0 [&_h2:first-of-type]:pt-0 [&_h3]:mt-8 [&_h3]:scroll-mt-20 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:tracking-tight [&_h3_a]:ml-2 [&_h3_a]:no-underline [&_ol]:my-5 [&_p]:my-5 [&_table]:w-full [&_table]:text-sm [&_td]:border-b [&_td]:p-2 [&_th]:border-b [&_th]:p-2 [&_th]:text-left [&_ul]:my-5 [&_li]:my-1 [&_li>ol]:my-2 [&_li>p]:my-2 [&_li>ul]:my-2 [&_ol]:list-decimal [&_ol]:ps-6 [&_ul]:list-disc [&_ul]:ps-6";
|
|
387
466
|
|
|
388
|
-
// ../../src/
|
|
467
|
+
// ../../src/components/markdown/index.ts
|
|
468
|
+
var markdownSegments = ({
|
|
469
|
+
html,
|
|
470
|
+
codeBlocks
|
|
471
|
+
}) => {
|
|
472
|
+
let remainingHtml = html;
|
|
473
|
+
const segments = [];
|
|
474
|
+
codeBlocks.forEach((block, index) => {
|
|
475
|
+
const marker = `<markdown-code-block data-index="${index}"></markdown-code-block>`;
|
|
476
|
+
const at = remainingHtml.indexOf(marker);
|
|
477
|
+
if (at === -1)
|
|
478
|
+
return;
|
|
479
|
+
segments.push({ html: remainingHtml.slice(0, at), index, block });
|
|
480
|
+
remainingHtml = remainingHtml.slice(at + marker.length);
|
|
481
|
+
});
|
|
482
|
+
segments.push({ html: remainingHtml, index: codeBlocks.length });
|
|
483
|
+
return segments;
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// ../../src/components/markdown/react.tsx
|
|
389
487
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
390
488
|
var MarkdownContent = ({
|
|
489
|
+
classes,
|
|
391
490
|
className,
|
|
392
491
|
codeBlocks,
|
|
393
492
|
html,
|
|
@@ -395,36 +494,27 @@ var MarkdownContent = ({
|
|
|
395
494
|
messages
|
|
396
495
|
}) => {
|
|
397
496
|
const content = [];
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
const marker = `<markdown-code-block data-index="${index}"></markdown-code-block>`;
|
|
401
|
-
const markerIndex = remainingHtml.indexOf(marker);
|
|
402
|
-
if (markerIndex === -1)
|
|
403
|
-
return;
|
|
497
|
+
for (const segment of markdownSegments({ html, codeBlocks })) {
|
|
498
|
+
const { block, index } = segment;
|
|
404
499
|
content.push(/* @__PURE__ */ jsx5("div", {
|
|
405
|
-
dangerouslySetInnerHTML: {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
});
|
|
419
|
-
content.push(/* @__PURE__ */ jsx5("div", {
|
|
420
|
-
dangerouslySetInnerHTML: { __html: remainingHtml }
|
|
421
|
-
}, "html-final"));
|
|
500
|
+
dangerouslySetInnerHTML: { __html: segment.html }
|
|
501
|
+
}, `html-${index}`));
|
|
502
|
+
if (block)
|
|
503
|
+
content.push(/* @__PURE__ */ jsx5("div", {
|
|
504
|
+
className: "my-5",
|
|
505
|
+
children: /* @__PURE__ */ jsx5(CodeBlock, {
|
|
506
|
+
code: block.code,
|
|
507
|
+
language: block.language,
|
|
508
|
+
locale,
|
|
509
|
+
messages
|
|
510
|
+
})
|
|
511
|
+
}, `code-${index}`));
|
|
512
|
+
}
|
|
422
513
|
return /* @__PURE__ */ jsx5("div", {
|
|
423
|
-
className: cn(
|
|
514
|
+
className: cn(classes?.root ?? markdownClass, className),
|
|
424
515
|
children: content
|
|
425
516
|
});
|
|
426
517
|
};
|
|
427
|
-
|
|
428
518
|
// ../../src/components/ui/collapsible.tsx
|
|
429
519
|
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
430
520
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
@@ -447,9 +537,9 @@ function CollapsibleContent({ ...props }) {
|
|
|
447
537
|
});
|
|
448
538
|
}
|
|
449
539
|
|
|
450
|
-
// ../../src/components/
|
|
540
|
+
// ../../src/components/search-menu/react.tsx
|
|
451
541
|
import { SearchIcon as SearchIcon2, XIcon as XIcon2 } from "lucide-react";
|
|
452
|
-
import { useCallback, useEffect
|
|
542
|
+
import { useCallback, useEffect, useRef as useRef2, useState as useState2 } from "react";
|
|
453
543
|
|
|
454
544
|
// ../../src/components/ui/command.tsx
|
|
455
545
|
import { Command as CommandPrimitive } from "cmdk";
|
|
@@ -544,7 +634,7 @@ function DialogDescription({
|
|
|
544
634
|
|
|
545
635
|
// ../../src/components/ui/command.tsx
|
|
546
636
|
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
547
|
-
function
|
|
637
|
+
function Command2({
|
|
548
638
|
className,
|
|
549
639
|
...props
|
|
550
640
|
}) {
|
|
@@ -655,10 +745,70 @@ function CommandShortcut({
|
|
|
655
745
|
});
|
|
656
746
|
}
|
|
657
747
|
|
|
658
|
-
// ../../src/components/
|
|
659
|
-
import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider";
|
|
660
|
-
import {
|
|
661
|
-
|
|
748
|
+
// ../../src/components/search-menu/react.tsx
|
|
749
|
+
import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider/react";
|
|
750
|
+
import { Component as Component4, View as View2 } from "effect/ui";
|
|
751
|
+
import { useModel as useModel2 } from "@krak-stack/registry/effect-ui-adapter/react";
|
|
752
|
+
|
|
753
|
+
// ../../src/components/search-menu/classes.ts
|
|
754
|
+
var searchMenuClasses = {
|
|
755
|
+
resultTitle: "truncate font-medium",
|
|
756
|
+
resultDescription: "text-muted-foreground truncate text-xs"
|
|
757
|
+
};
|
|
758
|
+
var resolveSearchMenuClasses = (overrides) => ({
|
|
759
|
+
...searchMenuClasses,
|
|
760
|
+
...overrides
|
|
761
|
+
});
|
|
762
|
+
|
|
763
|
+
// ../../src/components/search-menu/index.ts
|
|
764
|
+
import { Schema as Schema4 } from "effect";
|
|
765
|
+
import { Component as Component3, UiSchema as UiSchema2 } from "effect/ui";
|
|
766
|
+
|
|
767
|
+
// ../../src/components/search-menu/schema.ts
|
|
768
|
+
import { Schema as Schema3, Struct } from "effect";
|
|
769
|
+
var text = Schema3.optional(Schema3.String);
|
|
770
|
+
var Messages = Schema3.Struct({
|
|
771
|
+
title: text,
|
|
772
|
+
description: text,
|
|
773
|
+
placeholder: text,
|
|
774
|
+
inputPlaceholder: text,
|
|
775
|
+
emptyMessage: text,
|
|
776
|
+
clearSearch: text
|
|
777
|
+
});
|
|
778
|
+
var Translations = Schema3.Record(Schema3.String, Schema3.UndefinedOr(Messages));
|
|
779
|
+
var SearchMenuItemSchema = Schema3.Struct({
|
|
780
|
+
id: Schema3.String,
|
|
781
|
+
label: Schema3.String,
|
|
782
|
+
description: text,
|
|
783
|
+
keywords: Schema3.optional(Schema3.Array(Schema3.String)),
|
|
784
|
+
shortcut: text,
|
|
785
|
+
disabled: Schema3.optional(Schema3.Boolean)
|
|
786
|
+
}).annotate({ identifier: "SearchMenuItem" });
|
|
787
|
+
var Group = Schema3.Struct({
|
|
788
|
+
heading: Schema3.String,
|
|
789
|
+
items: Schema3.Array(SearchMenuItemSchema)
|
|
790
|
+
});
|
|
791
|
+
var SearchMenuClassesOverridesSchema = Schema3.Record(Schema3.Literals(Struct.keys(searchMenuClasses)), Schema3.optionalKey(Schema3.String)).annotate({ identifier: "SearchMenuClassesOverrides" });
|
|
792
|
+
var SearchMenuPropsSchema = Schema3.Struct({
|
|
793
|
+
classes: Schema3.optional(SearchMenuClassesOverridesSchema),
|
|
794
|
+
title: text,
|
|
795
|
+
description: text,
|
|
796
|
+
placeholder: text,
|
|
797
|
+
inputPlaceholder: text,
|
|
798
|
+
emptyMessage: text,
|
|
799
|
+
groups: Schema3.Array(Group),
|
|
800
|
+
locale: text,
|
|
801
|
+
messages: Schema3.optional(Translations),
|
|
802
|
+
shortcutLabel: text,
|
|
803
|
+
className: text,
|
|
804
|
+
query: text,
|
|
805
|
+
enableShortcut: Schema3.optional(Schema3.Boolean),
|
|
806
|
+
open: Schema3.optional(Schema3.Boolean),
|
|
807
|
+
shouldFilter: Schema3.optional(Schema3.Boolean)
|
|
808
|
+
}).annotate({ identifier: "SearchMenuProps" });
|
|
809
|
+
|
|
810
|
+
// ../../src/components/search-menu/index.ts
|
|
811
|
+
var defaults = {
|
|
662
812
|
en: {
|
|
663
813
|
title: "Search",
|
|
664
814
|
description: "Search for an item to open.",
|
|
@@ -676,12 +826,55 @@ var messages3 = {
|
|
|
676
826
|
clearSearch: "Effacer la recherche"
|
|
677
827
|
}
|
|
678
828
|
};
|
|
679
|
-
var searchMenuMessages = (locale, translations) => ({
|
|
680
|
-
...locale.startsWith("fr") ?
|
|
829
|
+
var searchMenuMessages = (locale = "en", translations) => ({
|
|
830
|
+
...locale.startsWith("fr") ? defaults.fr : defaults.en,
|
|
681
831
|
...translations?.[locale.split("-")[0] ?? locale],
|
|
682
832
|
...translations?.[locale]
|
|
683
833
|
});
|
|
834
|
+
var SearchMenuMessage = UiSchema2.TaggedEnum({
|
|
835
|
+
SetOpen: { open: Schema4.Boolean },
|
|
836
|
+
Reset: {},
|
|
837
|
+
SetQuery: { query: Schema4.String },
|
|
838
|
+
Picked: { id: Schema4.String }
|
|
839
|
+
}).annotate({ identifier: "SearchMenuMessage" });
|
|
840
|
+
var searchMenuOptions = {
|
|
841
|
+
name: "SearchMenu",
|
|
842
|
+
props: SearchMenuPropsSchema,
|
|
843
|
+
model: Schema4.Struct({ open: Schema4.Boolean, query: Schema4.String }).annotate({ identifier: "SearchMenuModel" }),
|
|
844
|
+
message: SearchMenuMessage,
|
|
845
|
+
restore: false
|
|
846
|
+
};
|
|
847
|
+
var updateSearchMenu = (model, props, message) => {
|
|
848
|
+
switch (message._tag) {
|
|
849
|
+
case "SetOpen":
|
|
850
|
+
return props.open === undefined ? { open: message.open, query: message.open ? model.query : "" } : model;
|
|
851
|
+
case "Reset":
|
|
852
|
+
return model.query === "" ? model : { ...model, query: "" };
|
|
853
|
+
case "SetQuery":
|
|
854
|
+
return props.query === undefined ? { ...model, query: message.query } : model;
|
|
855
|
+
case "Picked":
|
|
856
|
+
return props.open === undefined ? { open: false, query: "" } : model;
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
var update2 = Component3.define(searchMenuOptions).update({
|
|
860
|
+
SetOpen: ($, message) => updateSearchMenu($.model, $.props, message),
|
|
861
|
+
Reset: ($, message) => updateSearchMenu($.model, $.props, message),
|
|
862
|
+
SetQuery: ($, message) => updateSearchMenu($.model, $.props, message),
|
|
863
|
+
Picked: ($, message) => updateSearchMenu($.model, $.props, message)
|
|
864
|
+
});
|
|
865
|
+
var searchMenuBehaviours = {
|
|
866
|
+
init: () => ({ open: false, query: "" }),
|
|
867
|
+
update: update2
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
// ../../src/components/search-menu/react.tsx
|
|
871
|
+
import { jsx as jsx9, jsxs as jsxs6, Fragment } from "react/jsx-runtime";
|
|
872
|
+
var SearchModel = Component4.define(searchMenuOptions).make({
|
|
873
|
+
...searchMenuBehaviours,
|
|
874
|
+
view: () => View2.text("")
|
|
875
|
+
});
|
|
684
876
|
function SearchMenu({
|
|
877
|
+
classes: classOverrides,
|
|
685
878
|
groups,
|
|
686
879
|
locale: localeOverride,
|
|
687
880
|
title,
|
|
@@ -691,6 +884,7 @@ function SearchMenu({
|
|
|
691
884
|
emptyMessage,
|
|
692
885
|
messages,
|
|
693
886
|
shortcutLabel = "⌘K",
|
|
887
|
+
enableShortcut = true,
|
|
694
888
|
className,
|
|
695
889
|
open,
|
|
696
890
|
onOpenChange,
|
|
@@ -699,6 +893,7 @@ function SearchMenu({
|
|
|
699
893
|
onQueryChange,
|
|
700
894
|
shouldFilter
|
|
701
895
|
}) {
|
|
896
|
+
const searchMenuClasses = resolveSearchMenuClasses(classOverrides);
|
|
702
897
|
const locale = useKrakstackLocale3(localeOverride);
|
|
703
898
|
const labels = searchMenuMessages(locale, messages);
|
|
704
899
|
const resolvedTitle = title ?? labels.title;
|
|
@@ -706,11 +901,9 @@ function SearchMenu({
|
|
|
706
901
|
const resolvedPlaceholder = placeholder ?? labels.placeholder;
|
|
707
902
|
const resolvedInputPlaceholder = inputPlaceholder ?? labels.inputPlaceholder;
|
|
708
903
|
const resolvedEmptyMessage = emptyMessage ?? labels.emptyMessage;
|
|
709
|
-
const
|
|
710
|
-
const
|
|
711
|
-
const
|
|
712
|
-
const isOpen = open ?? uncontrolledOpen;
|
|
713
|
-
const searchQuery = query ?? uncontrolledQuery;
|
|
904
|
+
const { model, send } = useModel2(SearchModel, { groups, open, query });
|
|
905
|
+
const isOpen = open ?? model.open;
|
|
906
|
+
const searchQuery = query ?? model.query;
|
|
714
907
|
const externalGroups = shouldFilter === false ? groups : undefined;
|
|
715
908
|
const [selection, setSelection] = useState2();
|
|
716
909
|
const externalItems = externalGroups?.flatMap(({ items }) => items.filter(({ disabled }) => !disabled));
|
|
@@ -719,16 +912,16 @@ function SearchMenu({
|
|
|
719
912
|
const listRef = useRef2(null);
|
|
720
913
|
const setQuery = (value) => {
|
|
721
914
|
if (query === undefined)
|
|
722
|
-
|
|
915
|
+
send(SearchMenuMessage.SetQuery({ query: value }));
|
|
723
916
|
onQueryChange?.(value);
|
|
724
917
|
};
|
|
725
|
-
|
|
918
|
+
useEffect(() => {
|
|
726
919
|
if (!isOpen) {
|
|
727
|
-
|
|
920
|
+
send(SearchMenuMessage.Reset());
|
|
728
921
|
setSelection(undefined);
|
|
729
922
|
}
|
|
730
|
-
}, [isOpen]);
|
|
731
|
-
|
|
923
|
+
}, [isOpen, send]);
|
|
924
|
+
useEffect(() => {
|
|
732
925
|
const list = listRef.current;
|
|
733
926
|
if (!isOpen || !list)
|
|
734
927
|
return;
|
|
@@ -738,11 +931,13 @@ function SearchMenu({
|
|
|
738
931
|
return () => cancelAnimationFrame(frame);
|
|
739
932
|
}, [isOpen, searchQuery, externalGroups]);
|
|
740
933
|
const setOpen = useCallback((value) => {
|
|
741
|
-
if (
|
|
742
|
-
|
|
934
|
+
if (open === undefined)
|
|
935
|
+
send(SearchMenuMessage.SetOpen({ open: value }));
|
|
743
936
|
onOpenChange?.(value);
|
|
744
|
-
}, [
|
|
745
|
-
|
|
937
|
+
}, [open, onOpenChange, send]);
|
|
938
|
+
useEffect(() => {
|
|
939
|
+
if (!enableShortcut)
|
|
940
|
+
return;
|
|
746
941
|
const onKeyDown = (event) => {
|
|
747
942
|
if (event.key.toLowerCase() !== "k")
|
|
748
943
|
return;
|
|
@@ -753,8 +948,8 @@ function SearchMenu({
|
|
|
753
948
|
};
|
|
754
949
|
document.addEventListener("keydown", onKeyDown);
|
|
755
950
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
756
|
-
}, [isOpen, setOpen]);
|
|
757
|
-
return /* @__PURE__ */ jsxs6(
|
|
951
|
+
}, [enableShortcut, isOpen, setOpen]);
|
|
952
|
+
return /* @__PURE__ */ jsxs6(Fragment, {
|
|
758
953
|
children: [
|
|
759
954
|
/* @__PURE__ */ jsxs6(Button, {
|
|
760
955
|
"aria-label": resolvedPlaceholder,
|
|
@@ -771,10 +966,10 @@ function SearchMenu({
|
|
|
771
966
|
className: "text-muted-foreground hidden min-w-0 flex-1 truncate text-left font-normal sm:block",
|
|
772
967
|
children: resolvedPlaceholder
|
|
773
968
|
}),
|
|
774
|
-
/* @__PURE__ */ jsx9("kbd", {
|
|
969
|
+
enableShortcut ? /* @__PURE__ */ jsx9("kbd", {
|
|
775
970
|
className: "bg-muted text-muted-foreground pointer-events-none hidden h-5 items-center rounded border px-1.5 font-mono text-[10px] font-medium sm:inline-flex",
|
|
776
971
|
children: shortcutLabel
|
|
777
|
-
})
|
|
972
|
+
}) : null
|
|
778
973
|
]
|
|
779
974
|
}),
|
|
780
975
|
/* @__PURE__ */ jsx9(CommandDialog, {
|
|
@@ -783,7 +978,7 @@ function SearchMenu({
|
|
|
783
978
|
title: resolvedTitle,
|
|
784
979
|
description: resolvedDescription,
|
|
785
980
|
className: "[&>[data-slot=dialog-close]]:hidden",
|
|
786
|
-
children: /* @__PURE__ */ jsxs6(
|
|
981
|
+
children: /* @__PURE__ */ jsxs6(Command2, {
|
|
787
982
|
...shouldFilter === undefined ? {} : { shouldFilter },
|
|
788
983
|
...externalGroups && {
|
|
789
984
|
value: selectedValue,
|
|
@@ -848,11 +1043,11 @@ function SearchMenu({
|
|
|
848
1043
|
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
849
1044
|
children: [
|
|
850
1045
|
/* @__PURE__ */ jsx9("span", {
|
|
851
|
-
className:
|
|
1046
|
+
className: searchMenuClasses.resultTitle,
|
|
852
1047
|
children: item.label
|
|
853
1048
|
}),
|
|
854
1049
|
item.description ? /* @__PURE__ */ jsx9("span", {
|
|
855
|
-
className:
|
|
1050
|
+
className: searchMenuClasses.resultDescription,
|
|
856
1051
|
children: item.description
|
|
857
1052
|
}) : null
|
|
858
1053
|
]
|
|
@@ -871,12 +1066,10 @@ function SearchMenu({
|
|
|
871
1066
|
]
|
|
872
1067
|
});
|
|
873
1068
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
import {
|
|
877
|
-
import {
|
|
878
|
-
import { Cookies } from "effect/http";
|
|
879
|
-
import { useState as useState4 } from "react";
|
|
1069
|
+
// ../../src/components/sidebar-layout/react.tsx
|
|
1070
|
+
import { Link, Outlet } from "@tanstack/react-router";
|
|
1071
|
+
import { Component as Component6, View as View3 } from "effect/ui";
|
|
1072
|
+
import { useModel as useModel3 } from "@krak-stack/registry/effect-ui-adapter/react";
|
|
880
1073
|
|
|
881
1074
|
// ../../src/components/ui/sidebar.tsx
|
|
882
1075
|
import * as React2 from "react";
|
|
@@ -1039,7 +1232,7 @@ function TooltipContent({
|
|
|
1039
1232
|
|
|
1040
1233
|
// ../../src/components/ui/sidebar.tsx
|
|
1041
1234
|
import { PanelLeftIcon } from "lucide-react";
|
|
1042
|
-
import { Schema } from "effect";
|
|
1235
|
+
import { Schema as Schema5 } from "effect";
|
|
1043
1236
|
import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1044
1237
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
1045
1238
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -1363,7 +1556,7 @@ function SidebarMenuButton({
|
|
|
1363
1556
|
if (!tooltip) {
|
|
1364
1557
|
return comp;
|
|
1365
1558
|
}
|
|
1366
|
-
const tooltipProps =
|
|
1559
|
+
const tooltipProps = Schema5.is(Schema5.String)(tooltip) ? { children: tooltip } : tooltip;
|
|
1367
1560
|
return /* @__PURE__ */ jsxs9(Tooltip, {
|
|
1368
1561
|
children: [
|
|
1369
1562
|
comp,
|
|
@@ -1376,16 +1569,145 @@ function SidebarMenuButton({
|
|
|
1376
1569
|
]
|
|
1377
1570
|
});
|
|
1378
1571
|
}
|
|
1572
|
+
function SidebarMenuSub({ className, ...props }) {
|
|
1573
|
+
return /* @__PURE__ */ jsx12("ul", {
|
|
1574
|
+
"data-slot": "sidebar-menu-sub",
|
|
1575
|
+
"data-sidebar": "menu-sub",
|
|
1576
|
+
className: cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", className),
|
|
1577
|
+
...props
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
function SidebarMenuSubItem({
|
|
1581
|
+
className,
|
|
1582
|
+
...props
|
|
1583
|
+
}) {
|
|
1584
|
+
return /* @__PURE__ */ jsx12("li", {
|
|
1585
|
+
"data-slot": "sidebar-menu-sub-item",
|
|
1586
|
+
"data-sidebar": "menu-sub-item",
|
|
1587
|
+
className: cn("group/menu-sub-item relative", className),
|
|
1588
|
+
...props
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
function SidebarMenuSubButton({
|
|
1592
|
+
render,
|
|
1593
|
+
size = "md",
|
|
1594
|
+
isActive = false,
|
|
1595
|
+
className,
|
|
1596
|
+
...props
|
|
1597
|
+
}) {
|
|
1598
|
+
return useRender2({
|
|
1599
|
+
defaultTagName: "a",
|
|
1600
|
+
props: mergeProps2({
|
|
1601
|
+
className: cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", className)
|
|
1602
|
+
}, props),
|
|
1603
|
+
render,
|
|
1604
|
+
state: {
|
|
1605
|
+
slot: "sidebar-menu-sub-button",
|
|
1606
|
+
sidebar: "menu-sub-button",
|
|
1607
|
+
size,
|
|
1608
|
+
active: isActive
|
|
1609
|
+
}
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1379
1612
|
|
|
1380
|
-
// ../../src/components/
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1613
|
+
// ../../src/components/sidebar-layout/classes.ts
|
|
1614
|
+
var sidebarLayoutClasses = {
|
|
1615
|
+
header: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
1616
|
+
headerMain: "flex flex-col gap-2",
|
|
1617
|
+
headerText: "flex flex-col gap-1",
|
|
1618
|
+
title: "text-3xl font-bold tracking-tight",
|
|
1619
|
+
description: "text-muted-foreground max-w-2xl text-sm",
|
|
1620
|
+
toolbar: "ml-auto flex items-center gap-2",
|
|
1621
|
+
content: "isolate",
|
|
1622
|
+
desktopViewport: "xl:h-svh xl:min-h-0 xl:overflow-hidden"
|
|
1623
|
+
};
|
|
1624
|
+
var resolveSidebarLayoutClasses = (overrides) => ({
|
|
1625
|
+
...sidebarLayoutClasses,
|
|
1626
|
+
...overrides
|
|
1627
|
+
});
|
|
1628
|
+
|
|
1629
|
+
// ../../src/components/sidebar-layout/index.ts
|
|
1630
|
+
import { Option, Schema as Schema7 } from "effect";
|
|
1631
|
+
import { Cookies } from "effect/http";
|
|
1632
|
+
import { Component as Component5, UiSchema as UiSchema3 } from "effect/ui";
|
|
1633
|
+
|
|
1634
|
+
// ../../src/components/sidebar-layout/schema.ts
|
|
1635
|
+
import { Schema as Schema6, Struct as Struct2 } from "effect";
|
|
1636
|
+
var SidebarCollapsibleSchema = Schema6.Literals([
|
|
1637
|
+
"icon",
|
|
1638
|
+
"offcanvas",
|
|
1639
|
+
"none"
|
|
1640
|
+
]);
|
|
1641
|
+
var NavItemSchema = Schema6.Struct({
|
|
1642
|
+
label: Schema6.String,
|
|
1643
|
+
href: Schema6.String,
|
|
1644
|
+
exact: Schema6.optional(Schema6.Boolean),
|
|
1645
|
+
badge: Schema6.optional(Schema6.String),
|
|
1646
|
+
external: Schema6.optional(Schema6.Boolean)
|
|
1647
|
+
}).annotate({ identifier: "SidebarNavItem" });
|
|
1648
|
+
var NavGroupSchema = Schema6.Struct({
|
|
1649
|
+
label: Schema6.String,
|
|
1650
|
+
items: Schema6.Array(NavItemSchema)
|
|
1651
|
+
}).annotate({ identifier: "SidebarNavGroup" });
|
|
1652
|
+
var layoutSlots = ["toolbar", "content", "desktopViewport"];
|
|
1653
|
+
var SidebarLayoutClassesOverridesSchema = Schema6.Record(Schema6.Literals(Struct2.keys(Struct2.pick(sidebarLayoutClasses, layoutSlots))), Schema6.optionalKey(Schema6.String)).annotate({ identifier: "SidebarLayoutClassesOverrides" });
|
|
1654
|
+
var SidebarPageHeaderClassesOverridesSchema = Schema6.Record(Schema6.Literals(Struct2.keys(Struct2.omit(sidebarLayoutClasses, layoutSlots))), Schema6.optionalKey(Schema6.String)).annotate({ identifier: "SidebarPageHeaderClassesOverrides" });
|
|
1655
|
+
var SidebarLayoutPropsSchema = Schema6.Struct({
|
|
1656
|
+
classes: Schema6.optional(SidebarLayoutClassesOverridesSchema),
|
|
1657
|
+
groups: Schema6.Array(NavGroupSchema),
|
|
1658
|
+
contentClassName: Schema6.optional(Schema6.String),
|
|
1659
|
+
fullPage: Schema6.optional(Schema6.Boolean),
|
|
1660
|
+
sidebarCollapsible: Schema6.optional(SidebarCollapsibleSchema),
|
|
1661
|
+
defaultOpen: Schema6.optional(Schema6.Boolean)
|
|
1662
|
+
}).annotate({ identifier: "SidebarLayoutProps" });
|
|
1663
|
+
var SidebarPageHeaderPropsSchema = Schema6.Struct({
|
|
1664
|
+
classes: Schema6.optional(SidebarPageHeaderClassesOverridesSchema),
|
|
1665
|
+
title: Schema6.String,
|
|
1666
|
+
description: Schema6.optional(Schema6.String),
|
|
1667
|
+
badge: Schema6.optional(Schema6.Struct({
|
|
1668
|
+
label: Schema6.String,
|
|
1669
|
+
variant: Schema6.optional(Schema6.Literals(["default", "secondary", "outline", "destructive"]))
|
|
1670
|
+
}))
|
|
1671
|
+
}).annotate({ identifier: "SidebarPageHeaderProps" });
|
|
1672
|
+
|
|
1673
|
+
// ../../src/components/sidebar-layout/index.ts
|
|
1674
|
+
var cookieName = "sidebar_state";
|
|
1675
|
+
var SidebarOpenCookie = Schema7.Literals(["true", "false"]).annotate({
|
|
1384
1676
|
identifier: "SidebarOpenCookie"
|
|
1385
1677
|
});
|
|
1386
|
-
var getSidebarDefaultOpen = (defaultOpen) =>
|
|
1387
|
-
|
|
1678
|
+
var getSidebarDefaultOpen = (defaultOpen) => Schema7.decodeUnknownOption(SidebarOpenCookie)(Cookies.parseHeader(globalThis.document?.cookie ?? "")[cookieName]).pipe(Option.map((value) => value === "true"), Option.getOrElse(() => defaultOpen));
|
|
1679
|
+
var SidebarLayoutMessage = UiSchema3.TaggedEnum({
|
|
1680
|
+
SetOpen: { open: Schema7.Boolean },
|
|
1681
|
+
SetMobileOpen: { open: Schema7.Boolean }
|
|
1682
|
+
}).annotate({ identifier: "SidebarLayoutMessage" });
|
|
1683
|
+
var sidebarLayoutOptions = {
|
|
1684
|
+
name: "SidebarLayout",
|
|
1685
|
+
props: SidebarLayoutPropsSchema,
|
|
1686
|
+
model: Schema7.Struct({
|
|
1687
|
+
open: Schema7.Boolean,
|
|
1688
|
+
mobileOpen: Schema7.Boolean
|
|
1689
|
+
}).annotate({ identifier: "SidebarLayoutModel" }),
|
|
1690
|
+
message: SidebarLayoutMessage,
|
|
1691
|
+
restore: false
|
|
1388
1692
|
};
|
|
1693
|
+
var update3 = Component5.define(sidebarLayoutOptions).update({
|
|
1694
|
+
SetOpen: ($, { open }) => ({ ...$.model, open }),
|
|
1695
|
+
SetMobileOpen: ($, { open }) => ({ ...$.model, mobileOpen: open })
|
|
1696
|
+
});
|
|
1697
|
+
var sidebarLayoutBehaviours = {
|
|
1698
|
+
init: ({ props }) => ({
|
|
1699
|
+
open: getSidebarDefaultOpen(props.defaultOpen ?? true),
|
|
1700
|
+
mobileOpen: false
|
|
1701
|
+
}),
|
|
1702
|
+
update: update3
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
// ../../src/components/sidebar-layout/react.tsx
|
|
1706
|
+
import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1707
|
+
var SidebarModel = Component6.define(sidebarLayoutOptions).make({
|
|
1708
|
+
...sidebarLayoutBehaviours,
|
|
1709
|
+
view: () => View3.text("")
|
|
1710
|
+
});
|
|
1389
1711
|
function AppSidebar({ collapsible, footer, groups, header }) {
|
|
1390
1712
|
const { isMobile, setOpenMobile } = useSidebar();
|
|
1391
1713
|
const closeMobileSidebar = () => {
|
|
@@ -1407,12 +1729,13 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1407
1729
|
}),
|
|
1408
1730
|
/* @__PURE__ */ jsx13(SidebarGroupContent, {
|
|
1409
1731
|
children: /* @__PURE__ */ jsx13(SidebarMenu, {
|
|
1732
|
+
"aria-label": group.label(),
|
|
1410
1733
|
children: group.items.map((item) => {
|
|
1411
1734
|
const render = item.external ? /* @__PURE__ */ jsx13("a", {
|
|
1412
1735
|
href: item.href,
|
|
1413
1736
|
target: "_blank",
|
|
1414
1737
|
rel: "noreferrer"
|
|
1415
|
-
}) : /* @__PURE__ */ jsx13(
|
|
1738
|
+
}) : /* @__PURE__ */ jsx13(Link, {
|
|
1416
1739
|
to: item.href,
|
|
1417
1740
|
activeOptions: {
|
|
1418
1741
|
exact: item.exact ?? false,
|
|
@@ -1420,24 +1743,45 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1420
1743
|
},
|
|
1421
1744
|
activeProps: { "data-active": "" }
|
|
1422
1745
|
});
|
|
1423
|
-
return /* @__PURE__ */
|
|
1424
|
-
children:
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1746
|
+
return /* @__PURE__ */ jsxs10(SidebarMenuItem, {
|
|
1747
|
+
children: [
|
|
1748
|
+
/* @__PURE__ */ jsxs10(SidebarMenuButton, {
|
|
1749
|
+
className: "h-auto min-h-8",
|
|
1750
|
+
onClick: closeMobileSidebar,
|
|
1751
|
+
render,
|
|
1752
|
+
tooltip: item.label(),
|
|
1753
|
+
children: [
|
|
1754
|
+
item.icon ? /* @__PURE__ */ jsx13(item.icon, {}) : null,
|
|
1755
|
+
/* @__PURE__ */ jsx13("span", {
|
|
1756
|
+
children: item.label()
|
|
1757
|
+
}),
|
|
1758
|
+
item.badge ? /* @__PURE__ */ jsx13(Badge, {
|
|
1759
|
+
className: "ml-auto",
|
|
1760
|
+
variant: "secondary",
|
|
1761
|
+
children: item.badge()
|
|
1762
|
+
}) : null
|
|
1763
|
+
]
|
|
1764
|
+
}),
|
|
1765
|
+
item.children?.length ? /* @__PURE__ */ jsx13(SidebarMenuSub, {
|
|
1766
|
+
"aria-label": item.label(),
|
|
1767
|
+
children: item.children.map((child) => /* @__PURE__ */ jsx13(SidebarMenuSubItem, {
|
|
1768
|
+
children: /* @__PURE__ */ jsx13(SidebarMenuSubButton, {
|
|
1769
|
+
onClick: closeMobileSidebar,
|
|
1770
|
+
render: /* @__PURE__ */ jsx13(Link, {
|
|
1771
|
+
to: child.href,
|
|
1772
|
+
activeOptions: {
|
|
1773
|
+
exact: true,
|
|
1774
|
+
includeSearch: false
|
|
1775
|
+
},
|
|
1776
|
+
activeProps: { "data-active": "" }
|
|
1777
|
+
}),
|
|
1778
|
+
children: /* @__PURE__ */ jsx13("span", {
|
|
1779
|
+
children: child.label()
|
|
1780
|
+
})
|
|
1781
|
+
})
|
|
1782
|
+
}, child.href))
|
|
1783
|
+
}) : null
|
|
1784
|
+
]
|
|
1441
1785
|
}, item.href);
|
|
1442
1786
|
})
|
|
1443
1787
|
})
|
|
@@ -1453,6 +1797,7 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
1453
1797
|
});
|
|
1454
1798
|
}
|
|
1455
1799
|
function SidebarLayout({
|
|
1800
|
+
classes: classOverrides,
|
|
1456
1801
|
groups,
|
|
1457
1802
|
children,
|
|
1458
1803
|
sidebarFooter,
|
|
@@ -1463,11 +1808,18 @@ function SidebarLayout({
|
|
|
1463
1808
|
sidebarCollapsible = "icon",
|
|
1464
1809
|
defaultOpen = true
|
|
1465
1810
|
}) {
|
|
1466
|
-
const
|
|
1811
|
+
const sidebarLayoutClasses = resolveSidebarLayoutClasses(classOverrides);
|
|
1812
|
+
const {
|
|
1813
|
+
model: { open: sidebarOpen },
|
|
1814
|
+
send
|
|
1815
|
+
} = useModel3(SidebarModel, {
|
|
1816
|
+
groups: [],
|
|
1817
|
+
defaultOpen
|
|
1818
|
+
});
|
|
1467
1819
|
return /* @__PURE__ */ jsxs10(SidebarProvider, {
|
|
1468
1820
|
open: sidebarOpen,
|
|
1469
|
-
onOpenChange:
|
|
1470
|
-
className: cn(fullPage &&
|
|
1821
|
+
onOpenChange: (open) => send(SidebarLayoutMessage.SetOpen({ open })),
|
|
1822
|
+
className: cn(fullPage && sidebarLayoutClasses.desktopViewport),
|
|
1471
1823
|
children: [
|
|
1472
1824
|
/* @__PURE__ */ jsx13(AppSidebar, {
|
|
1473
1825
|
collapsible: sidebarCollapsible,
|
|
@@ -1476,7 +1828,7 @@ function SidebarLayout({
|
|
|
1476
1828
|
header: sidebarHeader
|
|
1477
1829
|
}),
|
|
1478
1830
|
/* @__PURE__ */ jsxs10(SidebarInset, {
|
|
1479
|
-
className: cn("min-w-0 overflow-x-clip", fullPage &&
|
|
1831
|
+
className: cn("min-w-0 overflow-x-clip", fullPage && sidebarLayoutClasses.desktopViewport),
|
|
1480
1832
|
children: [
|
|
1481
1833
|
/* @__PURE__ */ jsx13("div", {
|
|
1482
1834
|
className: "h-14 shrink-0",
|
|
@@ -1485,14 +1837,14 @@ function SidebarLayout({
|
|
|
1485
1837
|
children: [
|
|
1486
1838
|
/* @__PURE__ */ jsx13(SidebarTrigger, {}),
|
|
1487
1839
|
/* @__PURE__ */ jsx13("div", {
|
|
1488
|
-
className:
|
|
1840
|
+
className: sidebarLayoutClasses.toolbar,
|
|
1489
1841
|
children: headerActions
|
|
1490
1842
|
})
|
|
1491
1843
|
]
|
|
1492
1844
|
})
|
|
1493
1845
|
}),
|
|
1494
1846
|
/* @__PURE__ */ jsx13("div", {
|
|
1495
|
-
className: cn(
|
|
1847
|
+
className: cn(sidebarLayoutClasses.content, contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8"),
|
|
1496
1848
|
children: children ?? /* @__PURE__ */ jsx13(Outlet, {})
|
|
1497
1849
|
})
|
|
1498
1850
|
]
|
|
@@ -1500,7 +1852,6 @@ function SidebarLayout({
|
|
|
1500
1852
|
]
|
|
1501
1853
|
});
|
|
1502
1854
|
}
|
|
1503
|
-
|
|
1504
1855
|
// ../../src/lib/seo.ts
|
|
1505
1856
|
var localizedUrl = (origin, locale, path) => `${origin.replace(/\/$/, "")}/${locale}${path === "/" ? "/" : path}`;
|
|
1506
1857
|
var seo = ({
|
|
@@ -1615,13 +1966,13 @@ var createSeo = (defaults) => (options) => seo({
|
|
|
1615
1966
|
});
|
|
1616
1967
|
|
|
1617
1968
|
// ../../src/lib/docs.tsx
|
|
1618
|
-
import { jsx as jsx14, jsxs as jsxs11, Fragment as
|
|
1619
|
-
var
|
|
1620
|
-
var SidebarOpenCookie2 =
|
|
1969
|
+
import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
1970
|
+
var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
|
|
1971
|
+
var SidebarOpenCookie2 = Schema8.Literals(["true", "false"]).annotate({
|
|
1621
1972
|
identifier: "SidebarOpenCookie"
|
|
1622
1973
|
});
|
|
1623
|
-
var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(
|
|
1624
|
-
var getSidebarDefaultOpen2 = () =>
|
|
1974
|
+
var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME2)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME2]);
|
|
1975
|
+
var getSidebarDefaultOpen2 = () => Schema8.decodeUnknownOption(SidebarOpenCookie2)(getSidebarOpenCookie()).pipe(Option2.map((value) => value === "true"), Option2.getOrElse(() => true));
|
|
1625
1976
|
var makeIcon = (name, paths) => {
|
|
1626
1977
|
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx14("svg", {
|
|
1627
1978
|
"aria-hidden": "true",
|
|
@@ -1640,7 +1991,7 @@ var makeIcon = (name, paths) => {
|
|
|
1640
1991
|
Icon.displayName = name;
|
|
1641
1992
|
return Icon;
|
|
1642
1993
|
};
|
|
1643
|
-
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(
|
|
1994
|
+
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment2, {
|
|
1644
1995
|
children: [
|
|
1645
1996
|
/* @__PURE__ */ jsx14("path", {
|
|
1646
1997
|
d: "m12 19-7-7 7-7"
|
|
@@ -1650,7 +2001,7 @@ var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
|
1650
2001
|
})
|
|
1651
2002
|
]
|
|
1652
2003
|
}));
|
|
1653
|
-
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(
|
|
2004
|
+
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment2, {
|
|
1654
2005
|
children: [
|
|
1655
2006
|
/* @__PURE__ */ jsx14("path", {
|
|
1656
2007
|
d: "M5 12h14"
|
|
@@ -1660,7 +2011,7 @@ var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
|
1660
2011
|
})
|
|
1661
2012
|
]
|
|
1662
2013
|
}));
|
|
1663
|
-
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(
|
|
2014
|
+
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment2, {
|
|
1664
2015
|
children: [
|
|
1665
2016
|
/* @__PURE__ */ jsx14("path", {
|
|
1666
2017
|
d: "M12 7v14"
|
|
@@ -1673,7 +2024,7 @@ var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
|
1673
2024
|
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx14("path", {
|
|
1674
2025
|
d: "m6 9 6 6 6-6"
|
|
1675
2026
|
}));
|
|
1676
|
-
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(
|
|
2027
|
+
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment2, {
|
|
1677
2028
|
children: [
|
|
1678
2029
|
/* @__PURE__ */ jsx14("path", {
|
|
1679
2030
|
d: "M15 3h6v6"
|
|
@@ -1686,17 +2037,17 @@ var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment3, {
|
|
|
1686
2037
|
})
|
|
1687
2038
|
]
|
|
1688
2039
|
}));
|
|
1689
|
-
var DocsSection =
|
|
2040
|
+
var DocsSection = Schema8.String.annotate({
|
|
1690
2041
|
identifier: "DocsSection"
|
|
1691
2042
|
});
|
|
1692
|
-
var DocsPageType =
|
|
2043
|
+
var DocsPageType = Schema8.Literals([
|
|
1693
2044
|
"concept",
|
|
1694
2045
|
"tutorial",
|
|
1695
2046
|
"how-to",
|
|
1696
2047
|
"reference",
|
|
1697
2048
|
"runbook"
|
|
1698
2049
|
]).annotate({ identifier: "DocsPageType" });
|
|
1699
|
-
var DocsDate =
|
|
2050
|
+
var DocsDate = Schema8.String.pipe(Schema8.check(Schema8.makeFilter((date) => Number.isNaN(new Date(date).getTime()) ? "Expected a valid date" : undefined)));
|
|
1700
2051
|
var NEW_DOCS_PAGE_DAYS = 14;
|
|
1701
2052
|
var isDocsPageNew = (createdAt, now = new Date) => {
|
|
1702
2053
|
if (!createdAt)
|
|
@@ -1704,38 +2055,38 @@ var isDocsPageNew = (createdAt, now = new Date) => {
|
|
|
1704
2055
|
const age = now.getTime() - new Date(createdAt).getTime();
|
|
1705
2056
|
return age >= 0 && age < NEW_DOCS_PAGE_DAYS * 24 * 60 * 60 * 1000;
|
|
1706
2057
|
};
|
|
1707
|
-
var DocsFrontmatter =
|
|
1708
|
-
slug:
|
|
1709
|
-
path:
|
|
1710
|
-
title:
|
|
1711
|
-
description:
|
|
1712
|
-
icon:
|
|
1713
|
-
order:
|
|
1714
|
-
locale:
|
|
2058
|
+
var DocsFrontmatter = Schema8.Struct({
|
|
2059
|
+
slug: Schema8.String,
|
|
2060
|
+
path: Schema8.String,
|
|
2061
|
+
title: Schema8.String,
|
|
2062
|
+
description: Schema8.String,
|
|
2063
|
+
icon: Schema8.optional(Schema8.String),
|
|
2064
|
+
order: Schema8.Finite,
|
|
2065
|
+
locale: Schema8.String,
|
|
1715
2066
|
section: DocsSection,
|
|
1716
2067
|
type: DocsPageType,
|
|
1717
|
-
createdAt:
|
|
1718
|
-
updatedAt:
|
|
1719
|
-
legacySlugs:
|
|
1720
|
-
tags:
|
|
2068
|
+
createdAt: Schema8.optional(DocsDate),
|
|
2069
|
+
updatedAt: Schema8.optional(DocsDate),
|
|
2070
|
+
legacySlugs: Schema8.optional(Schema8.Array(Schema8.String)),
|
|
2071
|
+
tags: Schema8.optional(Schema8.Array(Schema8.NonEmptyString))
|
|
1721
2072
|
}).annotate({ identifier: "DocsFrontmatter" });
|
|
1722
|
-
var DocsHeadingSchema =
|
|
1723
|
-
depth:
|
|
1724
|
-
id:
|
|
1725
|
-
title:
|
|
2073
|
+
var DocsHeadingSchema = Schema8.Struct({
|
|
2074
|
+
depth: Schema8.Literals([2, 3]),
|
|
2075
|
+
id: Schema8.String,
|
|
2076
|
+
title: Schema8.String
|
|
1726
2077
|
}).annotate({ identifier: "DocsHeading" });
|
|
1727
|
-
var DocsCodeBlockSchema =
|
|
1728
|
-
code:
|
|
1729
|
-
language:
|
|
2078
|
+
var DocsCodeBlockSchema = Schema8.Struct({
|
|
2079
|
+
code: Schema8.String,
|
|
2080
|
+
language: Schema8.String
|
|
1730
2081
|
}).annotate({ identifier: "DocsCodeBlock" });
|
|
1731
|
-
var DocsPageSchema =
|
|
2082
|
+
var DocsPageSchema = Schema8.Struct({
|
|
1732
2083
|
...DocsFrontmatter.fields,
|
|
1733
|
-
codeBlocks:
|
|
1734
|
-
headings:
|
|
1735
|
-
html:
|
|
1736
|
-
searchText:
|
|
1737
|
-
sourceFile:
|
|
1738
|
-
source:
|
|
2084
|
+
codeBlocks: Schema8.Array(DocsCodeBlockSchema),
|
|
2085
|
+
headings: Schema8.Array(DocsHeadingSchema),
|
|
2086
|
+
html: Schema8.String,
|
|
2087
|
+
searchText: Schema8.String,
|
|
2088
|
+
sourceFile: Schema8.String,
|
|
2089
|
+
source: Schema8.String
|
|
1739
2090
|
}).annotate({ identifier: "DocsPage" });
|
|
1740
2091
|
var slugifyDocsHeading = (value) => value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[`*_~]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
1741
2092
|
var validateDocsPages = (pages, config) => {
|
|
@@ -1806,7 +2157,7 @@ var createDocsSource = (config) => {
|
|
|
1806
2157
|
if (new Set(config.locales).size !== config.locales.length) {
|
|
1807
2158
|
throw new Error("Documentation source locales must be unique");
|
|
1808
2159
|
}
|
|
1809
|
-
const pages = validateDocsPages(config.pages.map((page) =>
|
|
2160
|
+
const pages = validateDocsPages(config.pages.map((page) => Schema8.decodeUnknownSync(DocsPageSchema)(page)), config);
|
|
1810
2161
|
const getPage = (slug, locale) => pages.find((page) => page.slug === slug && page.locale === locale);
|
|
1811
2162
|
const resolvePage = (slug, locale) => pages.find((page) => page.locale === locale && (page.slug === slug || page.legacySlugs?.includes(slug)));
|
|
1812
2163
|
const getPages = (locale) => pages.filter((page) => page.locale === locale).sort((left, right) => left.order - right.order);
|
|
@@ -1953,6 +2304,7 @@ var makeDocs = (config) => {
|
|
|
1953
2304
|
origin,
|
|
1954
2305
|
resources: config.resources,
|
|
1955
2306
|
sidebarGroups: config.sidebarGroups,
|
|
2307
|
+
sidebarParents: config.sidebarParents,
|
|
1956
2308
|
source,
|
|
1957
2309
|
pages,
|
|
1958
2310
|
resolve,
|
|
@@ -1999,7 +2351,7 @@ var docsPageTypeMessages = {
|
|
|
1999
2351
|
}
|
|
2000
2352
|
};
|
|
2001
2353
|
var defaultSectionLabel = (locale, section) => Object.entries(docsSectionMessages[locale]).find(([key]) => key === section)?.[1] ?? humanizeDocsValue(section);
|
|
2002
|
-
var
|
|
2354
|
+
var messages2 = {
|
|
2003
2355
|
en: {
|
|
2004
2356
|
title: "Documentation",
|
|
2005
2357
|
description: "Guides and technical reference.",
|
|
@@ -2062,7 +2414,7 @@ var messages4 = {
|
|
|
2062
2414
|
}
|
|
2063
2415
|
};
|
|
2064
2416
|
var getDocsMessages = (locale, overrides) => ({
|
|
2065
|
-
...locale.startsWith("fr") ?
|
|
2417
|
+
...locale.startsWith("fr") ? messages2.fr : messages2.en,
|
|
2066
2418
|
...overrides
|
|
2067
2419
|
});
|
|
2068
2420
|
var iconFor = (icons, name) => name ? icons[name] : undefined;
|
|
@@ -2086,8 +2438,8 @@ var DocsArticle = ({
|
|
|
2086
2438
|
});
|
|
2087
2439
|
};
|
|
2088
2440
|
var useActiveDocsHeading = (headings) => {
|
|
2089
|
-
const [activeHeadingId, setActiveHeadingId] =
|
|
2090
|
-
|
|
2441
|
+
const [activeHeadingId, setActiveHeadingId] = useState4();
|
|
2442
|
+
useEffect3(() => {
|
|
2091
2443
|
const elements = headings.flatMap((heading) => {
|
|
2092
2444
|
const element = document.getElementById(heading.id);
|
|
2093
2445
|
return element ? [element] : [];
|
|
@@ -2198,7 +2550,7 @@ var DocsSearch = ({
|
|
|
2198
2550
|
locale,
|
|
2199
2551
|
messages
|
|
2200
2552
|
}) => {
|
|
2201
|
-
const [query, setQuery] =
|
|
2553
|
+
const [query, setQuery] = useState4("");
|
|
2202
2554
|
const deferredQuery = useDeferredValue(query);
|
|
2203
2555
|
const results = docs.search(deferredQuery, locale);
|
|
2204
2556
|
const isSearching = deferredQuery.trim().length > 0;
|
|
@@ -2254,13 +2606,17 @@ var DocsLayout = ({
|
|
|
2254
2606
|
}) => {
|
|
2255
2607
|
const { brand, resources, sidebarGroups } = docs;
|
|
2256
2608
|
const resolvedMessages = docs.getMessages(locale);
|
|
2257
|
-
const
|
|
2609
|
+
const sections = docs.sections(locale);
|
|
2610
|
+
const visiblePages = sections.flatMap((section) => section.pages);
|
|
2611
|
+
const parentOf = (page) => visiblePages.find(({ slug }) => slug === docs.sidebarParents?.[page.slug]);
|
|
2612
|
+
const groups = sections.map((section) => ({
|
|
2258
2613
|
label: () => resolvedMessages.sectionLabel(section.id),
|
|
2259
|
-
items: section.pages.map((item) => {
|
|
2614
|
+
items: section.pages.filter((page) => !parentOf(page)).map((item) => {
|
|
2260
2615
|
const navItem = {
|
|
2261
2616
|
label: () => item.title,
|
|
2262
2617
|
href: item.path,
|
|
2263
|
-
exact: true
|
|
2618
|
+
exact: true,
|
|
2619
|
+
children: visiblePages.filter((child) => parentOf(child) === item).map((child) => ({ label: () => child.title, href: child.path }))
|
|
2264
2620
|
};
|
|
2265
2621
|
const ItemIcon = iconFor(docs.icons, item.icon);
|
|
2266
2622
|
if (ItemIcon)
|
|
@@ -2270,7 +2626,7 @@ var DocsLayout = ({
|
|
|
2270
2626
|
}
|
|
2271
2627
|
return navItem;
|
|
2272
2628
|
})
|
|
2273
|
-
}));
|
|
2629
|
+
})).filter(({ items }) => items.length > 0);
|
|
2274
2630
|
if (sidebarGroups) {
|
|
2275
2631
|
groups.push(...sidebarGroups.map((group) => ({
|
|
2276
2632
|
label: group.label,
|
|
@@ -2306,14 +2662,16 @@ var DocsLayout = ({
|
|
|
2306
2662
|
defaultOpen: getSidebarDefaultOpen2(),
|
|
2307
2663
|
groups,
|
|
2308
2664
|
sidebarCollapsible,
|
|
2309
|
-
sidebarHeader: /* @__PURE__ */ jsx14(
|
|
2310
|
-
label: brand.label,
|
|
2311
|
-
subtitle: brand.subtitle(),
|
|
2312
|
-
icon: brand.icon,
|
|
2665
|
+
sidebarHeader: /* @__PURE__ */ jsx14("a", {
|
|
2313
2666
|
href: brand.href,
|
|
2314
|
-
|
|
2667
|
+
children: /* @__PURE__ */ jsx14(AppBrand, {
|
|
2668
|
+
label: brand.label,
|
|
2669
|
+
subtitle: brand.subtitle(),
|
|
2670
|
+
icon: brand.icon,
|
|
2671
|
+
variant: "sidebar"
|
|
2672
|
+
})
|
|
2315
2673
|
}),
|
|
2316
|
-
headerActions: /* @__PURE__ */ jsxs11(
|
|
2674
|
+
headerActions: /* @__PURE__ */ jsxs11(Fragment2, {
|
|
2317
2675
|
children: [
|
|
2318
2676
|
docs.githubUrl ? /* @__PURE__ */ jsxs11("a", {
|
|
2319
2677
|
className: "text-muted-foreground hover:text-foreground hidden items-center gap-1.5 text-sm lg:flex",
|
|
@@ -2377,15 +2735,20 @@ var DocsHeader = ({ docs, resolution }) => {
|
|
|
2377
2735
|
]
|
|
2378
2736
|
});
|
|
2379
2737
|
};
|
|
2380
|
-
var DocsContent = ({
|
|
2738
|
+
var DocsContent = ({
|
|
2739
|
+
children,
|
|
2740
|
+
docs,
|
|
2741
|
+
resolution
|
|
2742
|
+
}) => {
|
|
2381
2743
|
const { page } = resolution;
|
|
2382
2744
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2383
|
-
return /* @__PURE__ */ jsxs11(
|
|
2745
|
+
return /* @__PURE__ */ jsxs11(Fragment2, {
|
|
2384
2746
|
children: [
|
|
2385
2747
|
/* @__PURE__ */ jsx14(DocsMobileTableOfContents, {
|
|
2386
2748
|
headings: page.headings,
|
|
2387
2749
|
label: resolvedMessages.onThisPage
|
|
2388
2750
|
}),
|
|
2751
|
+
children,
|
|
2389
2752
|
/* @__PURE__ */ jsx14(DocsArticle, {
|
|
2390
2753
|
locale: page.locale,
|
|
2391
2754
|
messages: resolvedMessages,
|
|
@@ -2469,10 +2832,62 @@ var DocsFooter = ({ docs, resolution }) => {
|
|
|
2469
2832
|
]
|
|
2470
2833
|
});
|
|
2471
2834
|
};
|
|
2835
|
+
var ComponentDocsPage = ({
|
|
2836
|
+
docs,
|
|
2837
|
+
resolution,
|
|
2838
|
+
example,
|
|
2839
|
+
installation,
|
|
2840
|
+
dependencies,
|
|
2841
|
+
afterFooter,
|
|
2842
|
+
labels
|
|
2843
|
+
}) => {
|
|
2844
|
+
const heading = (id, title) => ({
|
|
2845
|
+
id,
|
|
2846
|
+
title,
|
|
2847
|
+
depth: 2
|
|
2848
|
+
});
|
|
2849
|
+
const { page } = resolution;
|
|
2850
|
+
const withHeadings = {
|
|
2851
|
+
...resolution,
|
|
2852
|
+
page: {
|
|
2853
|
+
...page,
|
|
2854
|
+
headings: [
|
|
2855
|
+
...example ? [heading("preview", labels.preview), heading("usage", labels.usage)] : [],
|
|
2856
|
+
...installation ? [heading("installation", labels.installation)] : [],
|
|
2857
|
+
...page.headings,
|
|
2858
|
+
...dependencies && labels.dependencies ? [heading("dependencies", labels.dependencies)] : []
|
|
2859
|
+
]
|
|
2860
|
+
}
|
|
2861
|
+
};
|
|
2862
|
+
return /* @__PURE__ */ jsxs11(DocsPage, {
|
|
2863
|
+
docs,
|
|
2864
|
+
resolution: withHeadings,
|
|
2865
|
+
children: [
|
|
2866
|
+
/* @__PURE__ */ jsx14(DocsHeader, {
|
|
2867
|
+
docs,
|
|
2868
|
+
resolution
|
|
2869
|
+
}),
|
|
2870
|
+
/* @__PURE__ */ jsxs11(DocsContent, {
|
|
2871
|
+
docs,
|
|
2872
|
+
resolution: withHeadings,
|
|
2873
|
+
children: [
|
|
2874
|
+
example,
|
|
2875
|
+
installation
|
|
2876
|
+
]
|
|
2877
|
+
}),
|
|
2878
|
+
dependencies,
|
|
2879
|
+
/* @__PURE__ */ jsx14(DocsFooter, {
|
|
2880
|
+
docs,
|
|
2881
|
+
resolution
|
|
2882
|
+
}),
|
|
2883
|
+
afterFooter
|
|
2884
|
+
]
|
|
2885
|
+
});
|
|
2886
|
+
};
|
|
2472
2887
|
var DocsPage = ({ children, docs, resolution }) => {
|
|
2473
2888
|
const { page } = resolution;
|
|
2474
2889
|
const resolvedMessages = docs.getMessages(page.locale);
|
|
2475
|
-
const content = children ?? /* @__PURE__ */ jsxs11(
|
|
2890
|
+
const content = children ?? /* @__PURE__ */ jsxs11(Fragment2, {
|
|
2476
2891
|
children: [
|
|
2477
2892
|
/* @__PURE__ */ jsx14(DocsHeader, {
|
|
2478
2893
|
docs,
|
|
@@ -2488,7 +2903,7 @@ var DocsPage = ({ children, docs, resolution }) => {
|
|
|
2488
2903
|
})
|
|
2489
2904
|
]
|
|
2490
2905
|
});
|
|
2491
|
-
return /* @__PURE__ */ jsxs11(
|
|
2906
|
+
return /* @__PURE__ */ jsxs11(Fragment2, {
|
|
2492
2907
|
children: [
|
|
2493
2908
|
/* @__PURE__ */ jsx14("a", {
|
|
2494
2909
|
className: "bg-background focus:ring-ring fixed top-2 left-2 z-50 -translate-y-20 rounded-md border px-3 py-2 text-sm shadow-sm focus:translate-y-0 focus:ring-2",
|
|
@@ -2545,6 +2960,7 @@ var DocsNotFound = ({
|
|
|
2545
2960
|
});
|
|
2546
2961
|
};
|
|
2547
2962
|
export {
|
|
2963
|
+
ComponentDocsPage,
|
|
2548
2964
|
DocsCodeBlockSchema,
|
|
2549
2965
|
DocsContent,
|
|
2550
2966
|
DocsFooter,
|