@wakastellar/ui 4.0.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -14
- package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
- package/dist/{chunk-BJivcVNn.mjs → _virtual/_rolldown/runtime.es.js} +4 -11
- package/dist/blocks/_shared/identity/InviteUserPanel.cjs.js +1 -0
- package/dist/blocks/_shared/identity/InviteUserPanel.d.ts +13 -0
- package/dist/blocks/_shared/identity/InviteUserPanel.es.js +93 -0
- package/dist/blocks/_shared/identity/RoleSelect.cjs.js +1 -0
- package/dist/blocks/_shared/identity/RoleSelect.d.ts +24 -0
- package/dist/blocks/_shared/identity/RoleSelect.es.js +24 -0
- package/dist/blocks/_shared/identity/SidePushLayout.cjs.js +1 -0
- package/dist/blocks/_shared/identity/SidePushLayout.d.ts +10 -0
- package/dist/blocks/_shared/identity/SidePushLayout.es.js +93 -0
- package/dist/blocks/_shared/identity/index.d.ts +3 -0
- package/dist/blocks/_shared/identity/types.d.ts +26 -0
- package/dist/blocks/activity-timeline/index.cjs.js +1 -0
- package/dist/blocks/activity-timeline/index.es.js +428 -0
- package/dist/blocks/antivirus-dashboard/index.cjs.js +1 -0
- package/dist/blocks/antivirus-dashboard/index.es.js +462 -0
- package/dist/blocks/api-keys-manager/index.cjs.js +1 -0
- package/dist/blocks/api-keys-manager/index.d.ts +37 -0
- package/dist/blocks/api-keys-manager/index.es.js +367 -0
- package/dist/blocks/apm-overview/index.cjs.js +1 -0
- package/dist/blocks/apm-overview/index.es.js +597 -0
- package/dist/blocks/auth-2fa/index.cjs.js +3 -0
- package/dist/blocks/auth-2fa/index.es.js +466 -0
- package/dist/blocks/avatar-upload/index.cjs.js +1 -0
- package/dist/blocks/avatar-upload/index.d.ts +22 -0
- package/dist/blocks/avatar-upload/index.es.js +191 -0
- package/dist/blocks/calendar-view/index.cjs.js +1 -0
- package/dist/blocks/calendar-view/index.es.js +455 -0
- package/dist/blocks/chat/index.cjs.js +1 -0
- package/dist/blocks/chat/index.es.js +534 -0
- package/dist/blocks/chat/widget.cjs.js +1 -0
- package/dist/blocks/chat/widget.es.js +236 -0
- package/dist/blocks/chat-interface/index.cjs.js +1 -0
- package/dist/blocks/chat-interface/index.es.js +446 -0
- package/dist/blocks/checkout-flow/index.cjs.js +1 -0
- package/dist/blocks/checkout-flow/index.es.js +640 -0
- package/dist/blocks/cicd-builder/index.cjs.js +1 -0
- package/dist/blocks/cicd-builder/index.es.js +616 -0
- package/dist/blocks/clamav-service-status/index.cjs.js +1 -0
- package/dist/blocks/clamav-service-status/index.es.js +392 -0
- package/dist/blocks/cloud-cost-dashboard/index.cjs.js +1 -0
- package/dist/blocks/cloud-cost-dashboard/index.es.js +593 -0
- package/dist/blocks/container-orchestrator/index.cjs.js +1 -0
- package/dist/blocks/container-orchestrator/index.es.js +674 -0
- package/dist/blocks/dashboard/index.cjs.js +1 -0
- package/dist/blocks/dashboard/index.es.js +273 -0
- package/dist/blocks/dashboard-kpi/index.cjs.js +1 -0
- package/dist/blocks/dashboard-kpi/index.es.js +345 -0
- package/dist/blocks/database-admin/index.cjs.js +1 -0
- package/dist/blocks/database-admin/index.es.js +662 -0
- package/dist/blocks/deployment-dashboard/index.cjs.js +1 -0
- package/dist/blocks/deployment-dashboard/index.es.js +523 -0
- package/dist/blocks/empty-states/index.cjs.js +1 -0
- package/dist/blocks/empty-states/index.es.js +306 -0
- package/dist/blocks/error-pages/index.cjs.js +1 -0
- package/dist/blocks/error-pages/index.es.js +249 -0
- package/dist/blocks/faq/index.cjs.js +1 -0
- package/dist/blocks/faq/index.es.js +266 -0
- package/dist/blocks/file-manager/index.cjs.js +1 -0
- package/dist/blocks/file-manager/index.es.js +498 -0
- package/dist/blocks/file-scan-uploader/index.cjs.js +1 -0
- package/dist/blocks/file-scan-uploader/index.es.js +257 -0
- package/dist/blocks/footer/index.cjs.js +1 -0
- package/dist/blocks/footer/index.es.js +87 -0
- package/dist/blocks/gitops-sync-status/index.cjs.js +1 -0
- package/dist/blocks/gitops-sync-status/index.es.js +580 -0
- package/dist/blocks/header/index.cjs.js +1 -0
- package/dist/blocks/header/index.es.js +170 -0
- package/dist/blocks/headtab/index.cjs.js +1 -0
- package/dist/blocks/headtab/index.es.js +58 -0
- package/dist/blocks/i18n-editor/index.cjs.js +1 -0
- package/dist/blocks/i18n-editor/index.es.js +719 -0
- package/dist/blocks/incident-manager/index.cjs.js +1 -0
- package/dist/blocks/incident-manager/index.es.js +608 -0
- package/dist/blocks/index.d.ts +6 -0
- package/dist/blocks/infrastructure-map/index.cjs.js +1 -0
- package/dist/blocks/infrastructure-map/index.es.js +573 -0
- package/dist/blocks/kanban-board/index.cjs.js +1 -0
- package/dist/blocks/kanban-board/index.es.js +474 -0
- package/dist/blocks/landing/index.cjs.js +1 -0
- package/dist/blocks/landing/index.es.js +390 -0
- package/dist/blocks/language-selector/index.cjs.js +1 -0
- package/dist/blocks/language-selector/index.es.js +57 -0
- package/dist/blocks/layout/index.cjs.js +1 -0
- package/dist/blocks/layout/index.es.js +85 -0
- package/dist/blocks/login/index.cjs.js +1 -0
- package/dist/blocks/login/index.es.js +246 -0
- package/dist/blocks/on-call-schedule/index.cjs.js +1 -0
- package/dist/blocks/on-call-schedule/index.es.js +496 -0
- package/dist/blocks/player-profile/index.cjs.js +1 -0
- package/dist/blocks/player-profile/index.es.js +529 -0
- package/dist/blocks/pricing/index.cjs.js +1 -0
- package/dist/blocks/pricing/index.es.js +405 -0
- package/dist/blocks/profile/index.cjs.js +1 -0
- package/dist/blocks/profile/index.es.js +450 -0
- package/dist/blocks/profile-list/index.cjs.js +1 -0
- package/dist/blocks/profile-list/index.d.ts +26 -0
- package/dist/blocks/profile-list/index.es.js +148 -0
- package/dist/blocks/quarantine-manager/index.cjs.js +1 -0
- package/dist/blocks/quarantine-manager/index.es.js +429 -0
- package/dist/blocks/release-notes/index.cjs.js +1 -0
- package/dist/blocks/release-notes/index.es.js +632 -0
- package/dist/blocks/scan-history-log/index.cjs.js +1 -0
- package/dist/blocks/scan-history-log/index.es.js +357 -0
- package/dist/blocks/scan-policy-editor/index.cjs.js +1 -0
- package/dist/blocks/scan-policy-editor/index.es.js +409 -0
- package/dist/blocks/scan-report-generator/index.cjs.js +1 -0
- package/dist/blocks/scan-report-generator/index.es.js +581 -0
- package/dist/blocks/settings/index.cjs.js +1 -0
- package/dist/blocks/settings/index.es.js +348 -0
- package/dist/blocks/sidebar/index.cjs.js +1 -0
- package/dist/blocks/sidebar/index.es.js +348 -0
- package/dist/blocks/signature-database-manager/index.cjs.js +1 -0
- package/dist/blocks/signature-database-manager/index.es.js +423 -0
- package/dist/blocks/team-form/index.cjs.js +1 -0
- package/dist/blocks/team-form/index.d.ts +26 -0
- package/dist/blocks/team-form/index.es.js +179 -0
- package/dist/blocks/threat-alert-banner/index.cjs.js +1 -0
- package/dist/blocks/threat-alert-banner/index.d.ts +1 -1
- package/dist/blocks/threat-alert-banner/index.es.js +265 -0
- package/dist/blocks/user-management/index.cjs.js +1 -0
- package/dist/blocks/user-management/index.d.ts +19 -92
- package/dist/blocks/user-management/index.es.js +241 -0
- package/dist/blocks/waka-doc-shell/index.cjs.js +2 -0
- package/dist/blocks/waka-doc-shell/index.es.js +139 -0
- package/dist/blocks/wizard/index.cjs.js +1 -0
- package/dist/blocks/wizard/index.es.js +342 -0
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +12 -2
- package/dist/cli/index.cjs +1940 -908
- package/dist/components/DataTable/DataTable.cjs.js +1 -0
- package/dist/components/DataTable/DataTable.es.js +217 -0
- package/dist/components/DataTable/DataTableAdvanced.cjs.js +1 -0
- package/dist/components/DataTable/DataTableAdvanced.es.js +356 -0
- package/dist/components/DataTable/DataTableColumnResizer.cjs.js +1 -0
- package/dist/components/DataTable/DataTableColumnResizer.d.ts +4 -3
- package/dist/components/DataTable/DataTableColumnResizer.es.js +28 -0
- package/dist/components/DataTable/DataTableContextMenu.cjs.js +2 -0
- package/dist/components/DataTable/DataTableContextMenu.es.js +93 -0
- package/dist/components/DataTable/DataTableEditCell.cjs.js +1 -0
- package/dist/components/DataTable/DataTableEditCell.d.ts +2 -2
- package/dist/components/DataTable/DataTableEditCell.es.js +165 -0
- package/dist/components/DataTable/DataTableFilters.cjs.js +1 -0
- package/dist/components/DataTable/DataTableFilters.d.ts +3 -3
- package/dist/components/DataTable/DataTableFilters.es.js +461 -0
- package/dist/components/DataTable/DataTableGrouping.cjs.js +1 -0
- package/dist/components/DataTable/DataTableGrouping.d.ts +17 -6
- package/dist/components/DataTable/DataTableGrouping.es.js +88 -0
- package/dist/components/DataTable/DataTablePagination.cjs.js +1 -0
- package/dist/components/DataTable/DataTablePagination.d.ts +3 -1
- package/dist/components/DataTable/DataTablePagination.es.js +135 -0
- package/dist/components/DataTable/DataTableSelection.cjs.js +1 -0
- package/dist/components/DataTable/DataTableSelection.d.ts +18 -12
- package/dist/components/DataTable/DataTableSelection.es.js +157 -0
- package/dist/components/DataTable/DataTableToolbar.cjs.js +1 -0
- package/dist/components/DataTable/DataTableToolbar.es.js +178 -0
- package/dist/components/DataTable/hooks/useDataTable.cjs.js +1 -0
- package/dist/components/DataTable/hooks/useDataTable.d.ts +2 -2
- package/dist/components/DataTable/hooks/useDataTable.es.js +87 -0
- package/dist/components/DataTable/hooks/useDataTableAdvanced.cjs.js +1 -0
- package/dist/components/DataTable/hooks/useDataTableAdvanced.es.js +191 -0
- package/dist/components/DataTable/hooks/useDataTableEdit.cjs.js +1 -0
- package/dist/components/DataTable/hooks/useDataTableEdit.d.ts +2 -2
- package/dist/components/DataTable/hooks/useDataTableEdit.es.js +86 -0
- package/dist/components/DataTable/hooks/useDataTableExport.cjs.js +6 -0
- package/dist/components/DataTable/hooks/useDataTableExport.d.ts +13 -1
- package/dist/{useDataTableImport-z5avsB21.mjs → components/DataTable/hooks/useDataTableExport.es.js} +3 -136
- package/dist/components/DataTable/hooks/useDataTableImport.cjs.js +2 -0
- package/dist/components/DataTable/hooks/useDataTableImport.es.js +138 -0
- package/dist/components/DataTable/hooks/useDataTableTheme.cjs.js +1 -0
- package/dist/components/DataTable/hooks/useDataTableTheme.es.js +142 -0
- package/dist/components/DataTable/hooks/useDataTableVirtualization.cjs.js +1 -0
- package/dist/components/DataTable/hooks/useDataTableVirtualization.d.ts +2 -2
- package/dist/components/DataTable/hooks/useDataTableVirtualization.es.js +50 -0
- package/dist/components/DataTable/hooks/useTableLayout.cjs.js +1 -0
- package/dist/components/DataTable/hooks/useTableLayout.es.js +52 -0
- package/dist/components/DataTable/types.d.ts +15 -15
- package/dist/components/DataTable/utils.cjs.js +4 -0
- package/dist/components/DataTable/utils.d.ts +10 -7
- package/dist/components/DataTable/utils.es.js +62 -0
- package/dist/components/accordion/index.cjs.js +1 -0
- package/dist/components/accordion/index.es.js +35 -0
- package/dist/components/alert/index.cjs.js +1 -0
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/index.es.js +34 -0
- package/dist/components/alert-dialog/index.cjs.js +1 -0
- package/dist/components/alert-dialog/index.es.js +54 -0
- package/dist/components/aspect-ratio/index.cjs.js +1 -0
- package/dist/components/aspect-ratio/index.es.js +6 -0
- package/dist/components/avatar/index.cjs.js +1 -0
- package/dist/components/avatar/index.es.js +26 -0
- package/dist/components/badge/index.cjs.js +1 -0
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/{badge-BvqcaobM.mjs → components/badge/index.es.js} +3 -2
- package/dist/components/button/index.cjs.js +1 -0
- package/dist/components/button/index.d.ts +4 -4
- package/dist/{separator-DDQs13_a.mjs → components/button/index.es.js} +8 -18
- package/dist/components/calendar/index.cjs.js +1 -0
- package/dist/components/calendar/index.es.js +45 -0
- package/dist/components/card/index.cjs.js +1 -0
- package/dist/components/card/index.es.js +44 -0
- package/dist/components/checkbox/index.cjs.js +1 -0
- package/dist/components/checkbox/index.es.js +19 -0
- package/dist/components/code/index.cjs.js +2 -0
- package/dist/components/code/index.d.ts +4 -4
- package/dist/components/code/index.es.js +139 -0
- package/dist/components/collapsible/index.cjs.js +1 -0
- package/dist/components/collapsible/index.es.js +6 -0
- package/dist/components/command/index.cjs.js +1 -0
- package/dist/components/command/index.es.js +73 -0
- package/dist/components/context-menu/index.cjs.js +1 -0
- package/dist/components/context-menu/index.es.js +72 -0
- package/dist/components/dialog/index.cjs.js +1 -0
- package/dist/components/dialog/index.es.js +50 -0
- package/dist/components/dropdown-menu/index.cjs.js +1 -0
- package/dist/components/dropdown-menu/index.es.js +73 -0
- package/dist/components/editor/blocks/index.cjs.js +1 -0
- package/dist/components/editor/blocks/index.es.js +29 -0
- package/dist/components/editor/blocks/waka-acceptance-criteria-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-acceptance-criteria-block.es.js +221 -0
- package/dist/components/editor/blocks/waka-ai-assist-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-ai-assist-block.es.js +212 -0
- package/dist/components/editor/blocks/waka-api-endpoint-block.cjs.js +11 -0
- package/dist/components/editor/blocks/waka-api-endpoint-block.es.js +324 -0
- package/dist/components/editor/blocks/waka-code-playground-block.cjs.js +3 -0
- package/dist/components/editor/blocks/waka-code-playground-block.es.js +279 -0
- package/dist/components/editor/blocks/waka-comment-thread-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-comment-thread-block.es.js +269 -0
- package/dist/components/editor/blocks/waka-diagram-block.cjs.js +9 -0
- package/dist/components/editor/blocks/waka-diagram-block.es.js +262 -0
- package/dist/components/editor/blocks/waka-embed-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-embed-block.es.js +301 -0
- package/dist/components/editor/blocks/waka-slash-menu-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-slash-menu-block.es.js +296 -0
- package/dist/components/editor/blocks/waka-user-story-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-user-story-block.es.js +200 -0
- package/dist/components/editor/blocks/waka-version-diff-block.cjs.js +1 -0
- package/dist/components/editor/blocks/waka-version-diff-block.es.js +371 -0
- package/dist/components/editor/waka-ai-writer.cjs.js +27 -0
- package/dist/components/editor/waka-ai-writer.es.js +302 -0
- package/dist/components/editor/waka-collaborative-editor.cjs.js +1 -0
- package/dist/components/editor/waka-collaborative-editor.es.js +238 -0
- package/dist/components/editor/waka-diff-viewer.cjs.js +1 -0
- package/dist/components/editor/waka-diff-viewer.es.js +255 -0
- package/dist/components/editor/waka-dnd-editor.cjs.js +1 -0
- package/dist/components/editor/waka-dnd-editor.es.js +161 -0
- package/dist/components/editor/waka-document-editor.cjs.js +1 -0
- package/dist/components/editor/waka-document-editor.es.js +276 -0
- package/dist/components/editor/waka-editor-elements.cjs.js +1 -0
- package/dist/components/editor/waka-editor-elements.es.js +168 -0
- package/dist/components/editor/waka-editor-leaves.cjs.js +1 -0
- package/dist/components/editor/waka-editor-leaves.es.js +72 -0
- package/dist/components/editor/waka-editor-plugins.cjs.js +1 -0
- package/dist/{waka-editor-plugins-_0WFrkKK.mjs → components/editor/waka-editor-plugins.es.js} +20 -38
- package/dist/components/editor/waka-editor-toolbar.cjs.js +1 -0
- package/dist/components/editor/waka-editor-toolbar.es.js +253 -0
- package/dist/components/editor/waka-editor.cjs.js +2 -0
- package/dist/components/editor/waka-editor.es.js +174 -0
- package/dist/components/editor/waka-floating-toolbar.cjs.js +1 -0
- package/dist/components/editor/waka-floating-toolbar.es.js +159 -0
- package/dist/components/editor/waka-markdown-editor.cjs.js +1 -0
- package/dist/components/editor/waka-markdown-editor.es.js +212 -0
- package/dist/components/editor/waka-mention-editor.cjs.js +1 -0
- package/dist/components/editor/waka-mention-editor.es.js +234 -0
- package/dist/components/editor/waka-slash-menu.cjs.js +1 -0
- package/dist/components/editor/waka-slash-menu.es.js +302 -0
- package/dist/components/editor/waka-spec-editor.cjs.js +1 -0
- package/dist/components/editor/waka-spec-editor.es.js +1099 -0
- package/dist/components/error-boundary/ErrorBoundary.d.ts +1 -1
- package/dist/components/form/index.cjs.js +1 -0
- package/dist/components/form/index.es.js +79 -0
- package/dist/components/hover-card/index.cjs.js +1 -0
- package/dist/components/hover-card/index.es.js +16 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/input/index.cjs.js +1 -0
- package/dist/{input-B8pxqKEs.mjs → components/input/index.es.js} +3 -2
- package/dist/components/input-otp/index.cjs.js +1 -0
- package/dist/components/input-otp/index.es.js +94 -0
- package/dist/components/label/index.cjs.js +1 -0
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/label/index.es.js +15 -0
- package/dist/components/language-selector/index.cjs.js +1 -0
- package/dist/components/language-selector/index.es.js +200 -0
- package/dist/components/menubar/index.cjs.js +1 -0
- package/dist/components/menubar/index.es.js +87 -0
- package/dist/components/navigation-menu/index.cjs.js +1 -0
- package/dist/components/navigation-menu/index.d.ts +1 -1
- package/dist/components/navigation-menu/index.es.js +59 -0
- package/dist/components/popover/index.cjs.js +1 -0
- package/dist/components/popover/index.es.js +16 -0
- package/dist/components/progress/index.cjs.js +1 -0
- package/dist/components/progress/index.es.js +19 -0
- package/dist/components/radio-group/index.cjs.js +1 -0
- package/dist/components/radio-group/index.es.js +25 -0
- package/dist/components/resizable/index.cjs.js +1 -0
- package/dist/components/resizable/index.d.ts +24 -0
- package/dist/components/resizable/index.es.js +27 -0
- package/dist/components/scroll-area/index.cjs.js +1 -0
- package/dist/components/scroll-area/index.es.js +30 -0
- package/dist/components/select/index.cjs.js +1 -0
- package/dist/components/select/index.es.js +70 -0
- package/dist/components/separator/index.cjs.js +1 -0
- package/dist/components/separator/index.es.js +16 -0
- package/dist/components/sheet/index.cjs.js +1 -0
- package/dist/components/sheet/index.d.ts +3 -3
- package/dist/components/sheet/index.es.js +59 -0
- package/dist/components/skeleton/index.cjs.js +1 -0
- package/dist/components/skeleton/index.es.js +12 -0
- package/dist/components/slider/index.cjs.js +1 -0
- package/dist/components/slider/index.es.js +21 -0
- package/dist/components/switch/index.cjs.js +1 -0
- package/dist/components/switch/index.es.js +15 -0
- package/dist/components/table/index.cjs.js +1 -0
- package/dist/components/table/index.es.js +58 -0
- package/dist/components/tabs/index.cjs.js +1 -0
- package/dist/components/tabs/index.es.js +26 -0
- package/dist/components/textarea/index.cjs.js +1 -0
- package/dist/components/textarea/index.es.js +13 -0
- package/dist/components/theme-selector/index.cjs.js +1 -0
- package/dist/components/theme-selector/index.es.js +220 -0
- package/dist/components/toast/index.cjs.js +1 -0
- package/dist/components/toast/index.d.ts +3 -3
- package/dist/components/toast/index.es.js +54 -0
- package/dist/components/toaster/index.cjs.js +1 -0
- package/dist/components/toaster/index.es.js +23 -0
- package/dist/components/toggle/index.cjs.js +1 -0
- package/dist/components/toggle/index.d.ts +8 -8
- package/dist/components/toggle/index.es.js +35 -0
- package/dist/components/toggle-group/index.cjs.js +1 -0
- package/dist/components/toggle-group/index.d.ts +12 -0
- package/dist/components/toggle-group/index.es.js +39 -0
- package/dist/components/tooltip/index.cjs.js +1 -0
- package/dist/components/tooltip/index.es.js +15 -0
- package/dist/components/typography/index.cjs.js +1 -0
- package/dist/components/typography/index.d.ts +20 -20
- package/dist/components/typography/index.es.js +138 -0
- package/dist/components/waka-3d-pie-chart/index.cjs.js +1 -0
- package/dist/components/waka-3d-pie-chart/index.d.ts +4 -4
- package/dist/components/waka-3d-pie-chart/index.es.js +197 -0
- package/dist/components/waka-achievement-unlock/index.cjs.js +77 -0
- package/dist/components/waka-achievement-unlock/index.d.ts +2 -2
- package/dist/components/waka-achievement-unlock/index.es.js +349 -0
- package/dist/components/waka-activity-feed/index.cjs.js +15 -0
- package/dist/components/waka-activity-feed/index.es.js +315 -0
- package/dist/components/waka-ad-banner/index.cjs.js +1 -0
- package/dist/components/waka-ad-banner/index.es.js +183 -0
- package/dist/components/waka-ad-fallback/index.cjs.js +1 -0
- package/dist/components/waka-ad-fallback/index.es.js +99 -0
- package/dist/components/waka-ad-inline/index.cjs.js +1 -0
- package/dist/components/waka-ad-inline/index.es.js +57 -0
- package/dist/components/waka-ad-interstitial/index.cjs.js +1 -0
- package/dist/components/waka-ad-interstitial/index.d.ts +1 -1
- package/dist/components/waka-ad-interstitial/index.es.js +192 -0
- package/dist/components/waka-ad-placeholder/index.cjs.js +7 -0
- package/dist/components/waka-ad-placeholder/index.es.js +50 -0
- package/dist/components/waka-ad-provider/index.cjs.js +1 -0
- package/dist/components/waka-ad-provider/index.d.ts +2 -2
- package/dist/components/waka-ad-provider/index.es.js +173 -0
- package/dist/components/waka-ad-sidebar/index.cjs.js +1 -0
- package/dist/components/waka-ad-sidebar/index.es.js +61 -0
- package/dist/components/waka-ad-sticky-footer/index.cjs.js +1 -0
- package/dist/components/waka-ad-sticky-footer/index.d.ts +1 -1
- package/dist/components/waka-ad-sticky-footer/index.es.js +52 -0
- package/dist/components/waka-address-autocomplete/index.cjs.js +60 -0
- package/dist/components/waka-address-autocomplete/index.es.js +563 -0
- package/dist/components/waka-admincrumb/index.cjs.js +1 -0
- package/dist/components/waka-admincrumb/index.d.ts +9 -7
- package/dist/components/waka-admincrumb/index.es.js +193 -0
- package/dist/components/waka-alert-panel/index.cjs.js +1 -0
- package/dist/components/waka-alert-panel/index.es.js +420 -0
- package/dist/components/waka-alert-stack/index.cjs.js +1 -0
- package/dist/components/waka-alert-stack/index.es.js +410 -0
- package/dist/components/waka-allocation-matrix/index.cjs.js +19 -0
- package/dist/components/waka-allocation-matrix/index.es.js +735 -0
- package/dist/components/waka-approval-chain/index.cjs.js +1 -0
- package/dist/components/waka-approval-chain/index.es.js +357 -0
- package/dist/components/waka-artifact-list/index.cjs.js +1 -0
- package/dist/components/waka-artifact-list/index.es.js +302 -0
- package/dist/components/waka-audit-log/index.cjs.js +2 -0
- package/dist/components/waka-audit-log/index.es.js +829 -0
- package/dist/components/waka-autocomplete/index.cjs.js +1 -0
- package/dist/components/waka-autocomplete/index.es.js +171 -0
- package/dist/components/waka-badge-showcase/index.cjs.js +50 -0
- package/dist/components/waka-badge-showcase/index.es.js +395 -0
- package/dist/components/waka-barcode/index.cjs.js +1 -0
- package/dist/components/waka-barcode/index.es.js +205 -0
- package/dist/components/waka-biometric-prompt/index.cjs.js +52 -0
- package/dist/components/waka-biometric-prompt/index.es.js +334 -0
- package/dist/components/waka-bottom-sheet/index.cjs.js +1 -0
- package/dist/components/waka-bottom-sheet/index.d.ts +3 -3
- package/dist/components/waka-bottom-sheet/index.es.js +242 -0
- package/dist/components/waka-breadcrumb/index.cjs.js +1 -0
- package/dist/components/waka-breadcrumb/index.es.js +179 -0
- package/dist/components/waka-breadcrumb-path/index.cjs.js +1 -0
- package/dist/components/waka-breadcrumb-path/index.es.js +247 -0
- package/dist/components/waka-budget-burn/index.cjs.js +20 -0
- package/dist/components/waka-budget-burn/index.es.js +746 -0
- package/dist/components/waka-build-matrix/index.cjs.js +1 -0
- package/dist/components/waka-build-matrix/index.es.js +349 -0
- package/dist/components/waka-capacity-planner/index.cjs.js +28 -0
- package/dist/components/waka-capacity-planner/index.es.js +559 -0
- package/dist/components/waka-carousel/index.cjs.js +1 -0
- package/dist/components/waka-carousel/index.es.js +380 -0
- package/dist/components/waka-cart-summary/index.cjs.js +1 -0
- package/dist/components/waka-cart-summary/index.es.js +498 -0
- package/dist/components/waka-challenge-timer/index.cjs.js +38 -0
- package/dist/components/waka-challenge-timer/index.es.js +633 -0
- package/dist/components/waka-charts/WakaAreaChart.cjs.js +1 -0
- package/dist/components/waka-charts/WakaAreaChart.es.js +146 -0
- package/dist/components/waka-charts/WakaBarChart.cjs.js +1 -0
- package/dist/components/waka-charts/WakaBarChart.es.js +113 -0
- package/dist/components/waka-charts/WakaChart.cjs.js +1 -0
- package/dist/components/waka-charts/WakaChart.es.js +99 -0
- package/dist/components/waka-charts/WakaLineChart.cjs.js +1 -0
- package/dist/components/waka-charts/WakaLineChart.es.js +119 -0
- package/dist/components/waka-charts/WakaMiniChart.cjs.js +1 -0
- package/dist/components/waka-charts/WakaMiniChart.es.js +60 -0
- package/dist/components/waka-charts/WakaPieChart.cjs.js +1 -0
- package/dist/components/waka-charts/WakaPieChart.es.js +84 -0
- package/dist/components/waka-charts/WakaSparkline.cjs.js +1 -0
- package/dist/components/waka-charts/WakaSparkline.es.js +170 -0
- package/dist/components/waka-charts/dataTableHelpers.cjs.js +1 -0
- package/dist/components/waka-charts/dataTableHelpers.d.ts +1 -1
- package/dist/components/waka-charts/dataTableHelpers.es.js +50 -0
- package/dist/components/waka-charts/hooks/useChartTheme.cjs.js +1 -0
- package/dist/components/waka-charts/hooks/useChartTheme.es.js +67 -0
- package/dist/components/waka-charts/hooks/useRechartsLoader.cjs.js +1 -0
- package/dist/components/waka-charts/hooks/useRechartsLoader.es.js +45 -0
- package/dist/components/waka-charts/types.cjs.js +1 -0
- package/dist/components/waka-charts/types.es.js +32 -0
- package/dist/components/waka-chat-bubble/index.cjs.js +1 -0
- package/dist/components/waka-chat-bubble/index.d.ts +5 -5
- package/dist/components/waka-chat-bubble/index.es.js +472 -0
- package/dist/components/waka-checklist/index.cjs.js +40 -0
- package/dist/components/waka-checklist/index.es.js +543 -0
- package/dist/components/waka-checkout-stepper/index.cjs.js +1 -0
- package/dist/components/waka-checkout-stepper/index.es.js +379 -0
- package/dist/components/waka-cohort-table/index.cjs.js +2 -0
- package/dist/components/waka-cohort-table/index.d.ts +3 -3
- package/dist/components/waka-cohort-table/index.es.js +459 -0
- package/dist/components/waka-color-picker/index.cjs.js +5 -0
- package/dist/components/waka-color-picker/index.es.js +283 -0
- package/dist/components/waka-combo-counter/index.cjs.js +134 -0
- package/dist/components/waka-combo-counter/index.es.js +372 -0
- package/dist/components/waka-combobox/index.cjs.js +1 -0
- package/dist/components/waka-combobox/index.d.ts +2 -2
- package/dist/components/waka-combobox/index.es.js +234 -0
- package/dist/components/waka-command-bar/index.cjs.js +1 -0
- package/dist/components/waka-command-bar/index.d.ts +1 -1
- package/dist/components/waka-command-bar/index.es.js +240 -0
- package/dist/components/waka-compare-period/index.cjs.js +16 -0
- package/dist/components/waka-compare-period/index.es.js +684 -0
- package/dist/components/waka-config-comparator/index.cjs.js +1 -0
- package/dist/components/waka-config-comparator/index.es.js +336 -0
- package/dist/components/waka-connection-matrix/index.cjs.js +1 -0
- package/dist/components/waka-connection-matrix/index.d.ts +4 -4
- package/dist/components/waka-connection-matrix/index.es.js +739 -0
- package/dist/components/waka-container-list/index.cjs.js +1 -0
- package/dist/components/waka-container-list/index.es.js +330 -0
- package/dist/components/waka-content-recommendation/index.cjs.js +1 -0
- package/dist/components/waka-content-recommendation/index.d.ts +1 -1
- package/dist/components/waka-content-recommendation/index.es.js +194 -0
- package/dist/components/waka-contribution-graph/index.cjs.js +1 -0
- package/dist/components/waka-contribution-graph/index.es.js +323 -0
- package/dist/components/waka-cost-breakdown/index.cjs.js +1 -0
- package/dist/components/waka-cost-breakdown/index.d.ts +2 -2
- package/dist/components/waka-cost-breakdown/index.es.js +555 -0
- package/dist/components/waka-coupon-input/index.cjs.js +36 -0
- package/dist/components/waka-coupon-input/index.es.js +231 -0
- package/dist/components/waka-credit-activity-feed/index.cjs.js +17 -0
- package/dist/components/waka-credit-activity-feed/index.es.js +170 -0
- package/dist/components/waka-credit-alert/index.cjs.js +1 -0
- package/dist/components/waka-credit-alert/index.es.js +98 -0
- package/dist/components/waka-credit-balance/index.cjs.js +1 -0
- package/dist/components/waka-credit-balance/index.es.js +225 -0
- package/dist/components/waka-credit-breakdown/index.cjs.js +1 -0
- package/dist/components/waka-credit-breakdown/index.es.js +249 -0
- package/dist/components/waka-credit-burn-rate/index.cjs.js +1 -0
- package/dist/components/waka-credit-burn-rate/index.es.js +252 -0
- package/dist/components/waka-credit-card-input/index.cjs.js +1 -0
- package/dist/components/waka-credit-card-input/index.es.js +807 -0
- package/dist/components/waka-credit-history/index.cjs.js +1 -0
- package/dist/components/waka-credit-history/index.es.js +425 -0
- package/dist/components/waka-credit-meter/index.cjs.js +11 -0
- package/dist/components/waka-credit-meter/index.es.js +305 -0
- package/dist/components/waka-credit-pricing-pack/index.cjs.js +1 -0
- package/dist/components/waka-credit-pricing-pack/index.es.js +105 -0
- package/dist/components/waka-credit-projection/index.cjs.js +1 -0
- package/dist/components/waka-credit-projection/index.es.js +212 -0
- package/dist/components/waka-credit-quota/index.cjs.js +1 -0
- package/dist/components/waka-credit-quota/index.es.js +232 -0
- package/dist/components/waka-credit-receipt/index.cjs.js +1 -0
- package/dist/components/waka-credit-receipt/index.es.js +158 -0
- package/dist/components/waka-credit-top-up/index.cjs.js +1 -0
- package/dist/components/waka-credit-top-up/index.es.js +255 -0
- package/dist/components/waka-credit-transaction/index.cjs.js +1 -0
- package/dist/components/waka-credit-transaction/index.es.js +147 -0
- package/dist/components/waka-credit-transfer-form/index.cjs.js +1 -0
- package/dist/components/waka-credit-transfer-form/index.es.js +226 -0
- package/dist/components/waka-credit-usage-chart/index.cjs.js +1 -0
- package/dist/components/waka-credit-usage-chart/index.es.js +204 -0
- package/dist/components/waka-daily-reward/index.cjs.js +44 -0
- package/dist/components/waka-daily-reward/index.d.ts +2 -2
- package/dist/components/waka-daily-reward/index.es.js +404 -0
- package/dist/components/waka-database-card/index.cjs.js +1 -0
- package/dist/components/waka-database-card/index.es.js +390 -0
- package/dist/components/waka-date-range-picker/index.cjs.js +1 -0
- package/dist/components/waka-date-range-picker/index.d.ts +5 -5
- package/dist/components/waka-date-range-picker/index.es.js +203 -0
- package/dist/components/waka-datetime-picker/index.cjs.js +1 -0
- package/dist/components/waka-datetime-picker/index.es.js +359 -0
- package/dist/components/waka-datetime-picker.form-integration/index.cjs.js +1 -0
- package/dist/components/waka-datetime-picker.form-integration/index.d.ts +4 -4
- package/dist/components/waka-datetime-picker.form-integration/index.es.js +36 -0
- package/dist/components/waka-dependency-tree/index.cjs.js +1 -0
- package/dist/components/waka-dependency-tree/index.es.js +368 -0
- package/dist/components/waka-deployment-lane/index.cjs.js +1 -0
- package/dist/components/waka-deployment-lane/index.es.js +295 -0
- package/dist/components/waka-device-trust/index.cjs.js +13 -0
- package/dist/components/waka-device-trust/index.d.ts +3 -3
- package/dist/components/waka-device-trust/index.es.js +683 -0
- package/dist/components/waka-doc-breadcrumb/index.cjs.js +1 -0
- package/dist/components/waka-doc-breadcrumb/index.d.ts +1 -1
- package/dist/components/waka-doc-breadcrumb/index.es.js +22 -0
- package/dist/components/waka-doc-callout/index.cjs.js +1 -0
- package/dist/components/waka-doc-callout/index.es.js +58 -0
- package/dist/components/waka-doc-code-block/index.cjs.js +2 -0
- package/dist/components/waka-doc-code-block/index.es.js +72 -0
- package/dist/components/waka-doc-nav/index.cjs.js +1 -0
- package/dist/components/waka-doc-nav/index.es.js +74 -0
- package/dist/components/waka-doc-renderer/index.cjs.js +2 -0
- package/dist/components/waka-doc-renderer/index.es.js +163 -0
- package/dist/components/waka-doc-search/index.cjs.js +1 -0
- package/dist/components/waka-doc-search/index.es.js +96 -0
- package/dist/components/waka-doc-table/index.cjs.js +1 -0
- package/dist/components/waka-doc-table/index.es.js +17 -0
- package/dist/components/waka-doc-toc/index.cjs.js +1 -0
- package/dist/components/waka-doc-toc/index.d.ts +1 -1
- package/dist/components/waka-doc-toc/index.es.js +49 -0
- package/dist/components/waka-doc-toolbar/index.cjs.js +1 -0
- package/dist/components/waka-doc-toolbar/index.es.js +82 -0
- package/dist/components/waka-doc-version/index.cjs.js +1 -0
- package/dist/components/waka-doc-version/index.es.js +56 -0
- package/dist/components/waka-dock/index.cjs.js +1 -0
- package/dist/components/waka-dock/index.es.js +111 -0
- package/dist/components/waka-drawer/index.cjs.js +1 -0
- package/dist/components/waka-drawer/index.es.js +137 -0
- package/dist/components/waka-empty-state/index.cjs.js +30 -0
- package/dist/components/waka-empty-state/index.es.js +185 -0
- package/dist/components/waka-env-var-editor/index.cjs.js +2 -0
- package/dist/components/waka-env-var-editor/index.es.js +289 -0
- package/dist/components/waka-error-shake/index.cjs.js +62 -0
- package/dist/components/waka-error-shake/index.d.ts +1 -1
- package/dist/components/waka-error-shake/index.es.js +167 -0
- package/dist/components/waka-feature-announcement/index.cjs.js +57 -0
- package/dist/components/waka-feature-announcement/index.d.ts +1 -1
- package/dist/components/waka-feature-announcement/index.es.js +429 -0
- package/dist/components/waka-feature-flag-row/index.cjs.js +1 -0
- package/dist/components/waka-feature-flag-row/index.es.js +305 -0
- package/dist/components/waka-file-upload/index.cjs.js +1 -0
- package/dist/components/waka-file-upload/index.es.js +201 -0
- package/dist/components/waka-floating-nav/index.cjs.js +1 -0
- package/dist/components/waka-floating-nav/index.es.js +139 -0
- package/dist/components/waka-flow-diagram/index.cjs.js +13 -0
- package/dist/components/waka-flow-diagram/index.d.ts +3 -3
- package/dist/components/waka-flow-diagram/index.es.js +272 -0
- package/dist/components/waka-funnel-chart/index.cjs.js +13 -0
- package/dist/components/waka-funnel-chart/index.es.js +347 -0
- package/dist/components/waka-glow-card/index.cjs.js +1 -0
- package/dist/components/waka-glow-card/index.es.js +146 -0
- package/dist/components/waka-goal-progress/index.cjs.js +35 -0
- package/dist/components/waka-goal-progress/index.es.js +473 -0
- package/dist/components/waka-haptic-button/index.cjs.js +15 -0
- package/dist/components/waka-haptic-button/index.d.ts +5 -5
- package/dist/components/waka-haptic-button/index.es.js +199 -0
- package/dist/components/waka-health-pulse/index.cjs.js +84 -0
- package/dist/components/waka-health-pulse/index.es.js +326 -0
- package/dist/components/waka-heatmap/index.cjs.js +1 -0
- package/dist/components/waka-heatmap/index.es.js +607 -0
- package/dist/components/waka-hotspot/index.cjs.js +1 -0
- package/dist/components/waka-hotspot/index.d.ts +2 -2
- package/dist/components/waka-hotspot/index.es.js +281 -0
- package/dist/components/waka-image/index.cjs.js +1 -0
- package/dist/components/waka-image/index.es.js +189 -0
- package/dist/components/waka-incident-timeline/index.cjs.js +1 -0
- package/dist/components/waka-incident-timeline/index.es.js +372 -0
- package/dist/components/waka-invoice-preview/index.cjs.js +1 -0
- package/dist/components/waka-invoice-preview/index.es.js +514 -0
- package/dist/components/waka-kanban/index.cjs.js +1 -0
- package/dist/components/waka-kanban/index.es.js +326 -0
- package/dist/components/waka-kpi-dashboard/index.cjs.js +1 -0
- package/dist/components/waka-kpi-dashboard/index.es.js +386 -0
- package/dist/components/waka-kubernetes-overview/index.cjs.js +1 -0
- package/dist/components/waka-kubernetes-overview/index.es.js +725 -0
- package/dist/components/waka-leaderboard/index.cjs.js +17 -0
- package/dist/components/waka-leaderboard/index.d.ts +3 -3
- package/dist/components/waka-leaderboard/index.es.js +361 -0
- package/dist/components/waka-level-progress/index.cjs.js +57 -0
- package/dist/components/waka-level-progress/index.es.js +359 -0
- package/dist/components/waka-liquid-button/index.cjs.js +36 -0
- package/dist/components/waka-liquid-button/index.d.ts +5 -5
- package/dist/components/waka-liquid-button/index.es.js +312 -0
- package/dist/components/waka-loading-orbit/index.cjs.js +21 -0
- package/dist/components/waka-loading-orbit/index.d.ts +3 -3
- package/dist/components/waka-loading-orbit/index.es.js +298 -0
- package/dist/components/waka-log-viewer/index.cjs.js +4 -0
- package/dist/components/waka-log-viewer/index.es.js +318 -0
- package/dist/components/waka-loot-box/index.cjs.js +137 -0
- package/dist/components/waka-loot-box/index.es.js +511 -0
- package/dist/components/waka-magic-link/index.cjs.js +9 -0
- package/dist/components/waka-magic-link/index.es.js +191 -0
- package/dist/components/waka-magnetic-button/index.cjs.js +29 -0
- package/dist/components/waka-magnetic-button/index.d.ts +5 -5
- package/dist/components/waka-magnetic-button/index.es.js +281 -0
- package/dist/components/waka-mention-input/index.cjs.js +1 -0
- package/dist/components/waka-mention-input/index.es.js +448 -0
- package/dist/components/waka-metric-sparkline/index.cjs.js +1 -0
- package/dist/components/waka-metric-sparkline/index.d.ts +1 -1
- package/dist/components/waka-metric-sparkline/index.es.js +327 -0
- package/dist/components/waka-migration-list/index.cjs.js +35 -0
- package/dist/components/waka-migration-list/index.es.js +337 -0
- package/dist/components/waka-milestone-road/index.cjs.js +45 -0
- package/dist/components/waka-milestone-road/index.es.js +646 -0
- package/dist/components/waka-modal/index.cjs.js +1 -0
- package/dist/components/waka-modal/index.es.js +148 -0
- package/dist/components/waka-morph-button/index.cjs.js +42 -0
- package/dist/components/waka-morph-button/index.d.ts +6 -6
- package/dist/components/waka-morph-button/index.es.js +264 -0
- package/dist/components/waka-network-topology/index.cjs.js +1 -0
- package/dist/components/waka-network-topology/index.es.js +550 -0
- package/dist/components/waka-notifications/index.cjs.js +1 -0
- package/dist/components/waka-notifications/index.es.js +282 -0
- package/dist/components/waka-number-input/index.cjs.js +1 -0
- package/dist/components/waka-number-input/index.d.ts +4 -4
- package/dist/components/waka-number-input/index.es.js +178 -0
- package/dist/components/waka-orbital-menu/index.cjs.js +1 -0
- package/dist/components/waka-orbital-menu/index.es.js +243 -0
- package/dist/components/waka-order-tracker/index.cjs.js +1 -0
- package/dist/components/waka-order-tracker/index.es.js +538 -0
- package/dist/components/waka-outstream-video/index.cjs.js +1 -0
- package/dist/components/waka-outstream-video/index.d.ts +1 -1
- package/dist/components/waka-outstream-video/index.es.js +132 -0
- package/dist/components/waka-pagination/index.cjs.js +1 -0
- package/dist/components/waka-pagination/index.es.js +183 -0
- package/dist/components/waka-password-strength/index.cjs.js +25 -0
- package/dist/components/waka-password-strength/index.d.ts +1 -1
- package/dist/components/waka-password-strength/index.es.js +345 -0
- package/dist/components/waka-payment-method-picker/index.cjs.js +1 -0
- package/dist/components/waka-payment-method-picker/index.d.ts +3 -3
- package/dist/components/waka-payment-method-picker/index.es.js +520 -0
- package/dist/components/waka-permission-matrix/index.cjs.js +20 -0
- package/dist/components/waka-permission-matrix/index.es.js +597 -0
- package/dist/components/waka-phone-input/index.cjs.js +1 -0
- package/dist/components/waka-phone-input/index.es.js +707 -0
- package/dist/components/waka-pipeline-view/index.cjs.js +18 -0
- package/dist/components/waka-pipeline-view/index.es.js +272 -0
- package/dist/components/waka-player-card/index.cjs.js +27 -0
- package/dist/components/waka-player-card/index.es.js +451 -0
- package/dist/components/waka-pod-card/index.cjs.js +1 -0
- package/dist/components/waka-pod-card/index.es.js +431 -0
- package/dist/components/waka-points-popup/index.cjs.js +1 -0
- package/dist/components/waka-points-popup/index.d.ts +3 -3
- package/dist/components/waka-points-popup/index.es.js +168 -0
- package/dist/components/waka-power-up/index.cjs.js +82 -0
- package/dist/components/waka-power-up/index.es.js +477 -0
- package/dist/components/waka-presence-indicator/index.cjs.js +15 -0
- package/dist/components/waka-presence-indicator/index.es.js +533 -0
- package/dist/components/waka-pricing-table/index.cjs.js +15 -0
- package/dist/components/waka-pricing-table/index.d.ts +1 -1
- package/dist/components/waka-pricing-table/index.es.js +445 -0
- package/dist/components/waka-product-card/index.cjs.js +25 -0
- package/dist/components/waka-product-card/index.es.js +337 -0
- package/dist/components/waka-progress-onboarding/index.cjs.js +32 -0
- package/dist/components/waka-progress-onboarding/index.d.ts +1 -1
- package/dist/components/waka-progress-onboarding/index.es.js +375 -0
- package/dist/components/waka-pull-to-refresh/index.cjs.js +1 -0
- package/dist/components/waka-pull-to-refresh/index.d.ts +3 -3
- package/dist/components/waka-pull-to-refresh/index.es.js +224 -0
- package/dist/components/waka-qrcode/index.cjs.js +1 -0
- package/dist/components/waka-qrcode/index.es.js +105 -0
- package/dist/components/waka-query-explain/index.cjs.js +7 -0
- package/dist/components/waka-query-explain/index.es.js +519 -0
- package/dist/components/waka-quest-card/index.cjs.js +40 -0
- package/dist/components/waka-quest-card/index.es.js +562 -0
- package/dist/components/waka-quota-bar/index.cjs.js +11 -0
- package/dist/components/waka-quota-bar/index.d.ts +1 -1
- package/dist/components/waka-quota-bar/index.es.js +387 -0
- package/dist/components/waka-radar-score/index.cjs.js +1 -0
- package/dist/components/waka-radar-score/index.d.ts +4 -4
- package/dist/components/waka-radar-score/index.es.js +213 -0
- package/dist/components/waka-rank-badge/index.cjs.js +49 -0
- package/dist/components/waka-rank-badge/index.es.js +394 -0
- package/dist/components/waka-rating-input/index.cjs.js +16 -0
- package/dist/components/waka-rating-input/index.es.js +223 -0
- package/dist/components/waka-reaction-picker/index.cjs.js +1 -0
- package/dist/components/waka-reaction-picker/index.es.js +2351 -0
- package/dist/components/waka-region-map/index.cjs.js +1 -0
- package/dist/components/waka-region-map/index.es.js +572 -0
- package/dist/components/waka-resource-gauge/index.cjs.js +6 -0
- package/dist/components/waka-resource-gauge/index.es.js +344 -0
- package/dist/components/waka-resource-pool/index.cjs.js +54 -0
- package/dist/components/waka-resource-pool/index.d.ts +2 -2
- package/dist/components/waka-resource-pool/index.es.js +604 -0
- package/dist/components/waka-rich-text-editor/index.cjs.js +1 -0
- package/dist/components/waka-rich-text-editor/index.es.js +337 -0
- package/dist/components/waka-rollback-slider/index.cjs.js +13 -0
- package/dist/components/waka-rollback-slider/index.es.js +451 -0
- package/dist/components/waka-sankey-diagram/index.cjs.js +31 -0
- package/dist/components/waka-sankey-diagram/index.es.js +494 -0
- package/dist/components/waka-schedule-picker/index.cjs.js +1 -0
- package/dist/components/waka-schedule-picker/index.es.js +527 -0
- package/dist/components/waka-scratch-card/index.cjs.js +61 -0
- package/dist/components/waka-scratch-card/index.es.js +373 -0
- package/dist/components/waka-season-pass/index.cjs.js +60 -0
- package/dist/components/waka-season-pass/index.d.ts +1 -1
- package/dist/components/waka-season-pass/index.es.js +463 -0
- package/dist/components/waka-secret-card/index.cjs.js +1 -0
- package/dist/components/waka-secret-card/index.es.js +291 -0
- package/dist/components/waka-security-scan-result/index.cjs.js +1 -0
- package/dist/components/waka-security-scan-result/index.es.js +446 -0
- package/dist/components/waka-security-score/index.cjs.js +10 -0
- package/dist/components/waka-security-score/index.es.js +650 -0
- package/dist/components/waka-segmented-control/index.cjs.js +1 -0
- package/dist/components/waka-segmented-control/index.d.ts +2 -2
- package/dist/components/waka-segmented-control/index.es.js +96 -0
- package/dist/components/waka-server-rack/index.cjs.js +11 -0
- package/dist/components/waka-server-rack/index.es.js +579 -0
- package/dist/components/waka-service-graph/index.cjs.js +1 -0
- package/dist/components/waka-service-graph/index.es.js +444 -0
- package/dist/components/waka-session-manager/index.cjs.js +1 -0
- package/dist/components/waka-session-manager/index.d.ts +3 -3
- package/dist/components/waka-session-manager/index.es.js +401 -0
- package/dist/components/waka-signature-pad/index.cjs.js +1 -0
- package/dist/components/waka-signature-pad/index.es.js +376 -0
- package/dist/components/waka-skeleton-wave/index.cjs.js +15 -0
- package/dist/components/waka-skeleton-wave/index.d.ts +3 -3
- package/dist/components/waka-skeleton-wave/index.es.js +254 -0
- package/dist/components/waka-skill-tree/index.cjs.js +65 -0
- package/dist/components/waka-skill-tree/index.es.js +630 -0
- package/dist/components/waka-sla-tracker/index.cjs.js +1 -0
- package/dist/components/waka-sla-tracker/index.es.js +471 -0
- package/dist/components/waka-slider-range/index.cjs.js +1 -0
- package/dist/components/waka-slider-range/index.es.js +382 -0
- package/dist/components/waka-spin-wheel/index.cjs.js +24 -0
- package/dist/components/waka-spin-wheel/index.es.js +267 -0
- package/dist/components/waka-spinner/index.cjs.js +18 -0
- package/dist/components/waka-spinner/index.d.ts +3 -3
- package/dist/components/waka-spinner/index.es.js +171 -0
- package/dist/components/waka-sponsored-badge/index.cjs.js +1 -0
- package/dist/components/waka-sponsored-badge/index.es.js +52 -0
- package/dist/components/waka-sponsored-card/index.cjs.js +1 -0
- package/dist/components/waka-sponsored-card/index.d.ts +1 -1
- package/dist/components/waka-sponsored-card/index.es.js +198 -0
- package/dist/components/waka-sponsored-feed/index.cjs.js +1 -0
- package/dist/components/waka-sponsored-feed/index.es.js +48 -0
- package/dist/components/waka-spotlight/index.cjs.js +1 -0
- package/dist/components/waka-spotlight/index.d.ts +1 -1
- package/dist/components/waka-spotlight/index.es.js +291 -0
- package/dist/components/waka-stat/index.cjs.js +1 -0
- package/dist/components/waka-stat/index.d.ts +1 -1
- package/dist/components/waka-stat/index.es.js +243 -0
- package/dist/components/waka-stats-hexagon/index.cjs.js +1 -0
- package/dist/components/waka-stats-hexagon/index.d.ts +1 -1
- package/dist/components/waka-stats-hexagon/index.es.js +565 -0
- package/dist/components/waka-status-matrix/index.cjs.js +1 -0
- package/dist/components/waka-status-matrix/index.es.js +304 -0
- package/dist/components/waka-stepper/index.cjs.js +1 -0
- package/dist/components/waka-stepper/index.es.js +188 -0
- package/dist/components/waka-streak-counter/index.cjs.js +25 -0
- package/dist/components/waka-streak-counter/index.es.js +196 -0
- package/dist/components/waka-success-explosion/index.cjs.js +6 -0
- package/dist/components/waka-success-explosion/index.d.ts +1 -1
- package/dist/components/waka-success-explosion/index.es.js +243 -0
- package/dist/components/waka-swipe-card/index.cjs.js +1 -0
- package/dist/components/waka-swipe-card/index.d.ts +3 -3
- package/dist/components/waka-swipe-card/index.es.js +347 -0
- package/dist/components/waka-tabs-morph/index.cjs.js +1 -0
- package/dist/components/waka-tabs-morph/index.d.ts +2 -2
- package/dist/components/waka-tabs-morph/index.es.js +176 -0
- package/dist/components/waka-tag-input/index.cjs.js +1 -0
- package/dist/components/waka-tag-input/index.d.ts +1 -1
- package/dist/components/waka-tag-input/index.es.js +387 -0
- package/dist/components/waka-team-banner/index.cjs.js +112 -0
- package/dist/components/waka-team-banner/index.es.js +625 -0
- package/dist/components/waka-terminal-output/index.cjs.js +2 -0
- package/dist/components/waka-terminal-output/index.es.js +460 -0
- package/dist/components/waka-test-report/index.cjs.js +2 -0
- package/dist/components/waka-test-report/index.es.js +452 -0
- package/dist/components/waka-theme-creator/index.cjs.js +32 -0
- package/dist/components/waka-theme-creator/index.es.js +457 -0
- package/dist/components/waka-theme-manager/index.cjs.js +1 -0
- package/dist/components/waka-theme-manager/index.d.ts +3 -3
- package/dist/components/waka-theme-manager/index.es.js +485 -0
- package/dist/components/waka-thread-view/index.cjs.js +18 -0
- package/dist/components/waka-thread-view/index.es.js +384 -0
- package/dist/components/waka-tilt-card/index.cjs.js +1 -0
- package/dist/components/waka-tilt-card/index.es.js +148 -0
- package/dist/components/waka-time-picker/index.cjs.js +1 -0
- package/dist/components/waka-time-picker/index.es.js +292 -0
- package/dist/components/waka-timeline/index.cjs.js +1 -0
- package/dist/components/waka-timeline/index.es.js +192 -0
- package/dist/components/waka-tooltip-tour/index.cjs.js +11 -0
- package/dist/components/waka-tooltip-tour/index.d.ts +1 -1
- package/dist/components/waka-tooltip-tour/index.es.js +348 -0
- package/dist/components/waka-tour-guide/index.cjs.js +24 -0
- package/dist/components/waka-tour-guide/index.d.ts +1 -1
- package/dist/components/waka-tour-guide/index.es.js +390 -0
- package/dist/components/waka-tournament-bracket/index.cjs.js +20 -0
- package/dist/components/waka-tournament-bracket/index.d.ts +3 -3
- package/dist/components/waka-tournament-bracket/index.es.js +648 -0
- package/dist/components/waka-trace-viewer/index.cjs.js +1 -0
- package/dist/components/waka-trace-viewer/index.es.js +341 -0
- package/dist/components/waka-tree/index.cjs.js +1 -0
- package/dist/components/waka-tree/index.es.js +197 -0
- package/dist/components/waka-treemap-chart/index.cjs.js +1 -0
- package/dist/components/waka-treemap-chart/index.es.js +433 -0
- package/dist/components/waka-two-factor-setup/index.cjs.js +3 -0
- package/dist/components/waka-two-factor-setup/index.es.js +611 -0
- package/dist/components/waka-typewriter/index.cjs.js +29 -0
- package/dist/components/waka-typewriter/index.es.js +199 -0
- package/dist/components/waka-typing-indicator/index.cjs.js +71 -0
- package/dist/components/waka-typing-indicator/index.d.ts +3 -3
- package/dist/components/waka-typing-indicator/index.es.js +242 -0
- package/dist/components/waka-versus-card/index.cjs.js +57 -0
- package/dist/components/waka-versus-card/index.d.ts +1 -1
- package/dist/components/waka-versus-card/index.es.js +467 -0
- package/dist/components/waka-video/index.cjs.js +1 -0
- package/dist/components/waka-video/index.es.js +253 -0
- package/dist/components/waka-video-ad/index.cjs.js +1 -0
- package/dist/components/waka-video-ad/index.d.ts +1 -1
- package/dist/components/waka-video-ad/index.es.js +253 -0
- package/dist/components/waka-video-call/index.cjs.js +11 -0
- package/dist/components/waka-video-call/index.d.ts +2 -2
- package/dist/components/waka-video-call/index.es.js +604 -0
- package/dist/components/waka-video-overlay/index.cjs.js +1 -0
- package/dist/components/waka-video-overlay/index.d.ts +1 -1
- package/dist/components/waka-video-overlay/index.es.js +172 -0
- package/dist/components/waka-virtual-list/index.cjs.js +1 -0
- package/dist/components/waka-virtual-list/index.es.js +138 -0
- package/dist/components/waka-voice-message/index.cjs.js +1 -0
- package/dist/components/waka-voice-message/index.es.js +393 -0
- package/dist/components/waka-welcome-modal/index.cjs.js +41 -0
- package/dist/components/waka-welcome-modal/index.es.js +354 -0
- package/dist/components/waka-xp-bar/index.cjs.js +87 -0
- package/dist/components/waka-xp-bar/index.es.js +381 -0
- package/dist/context/admincrumb-context.cjs.js +1 -0
- package/dist/context/admincrumb-context.d.ts +1 -1
- package/dist/context/admincrumb-context.es.js +78 -0
- package/dist/context/language-context.cjs.js +1 -0
- package/dist/context/language-context.es.js +95 -0
- package/dist/context/theme-context.cjs.js +1 -0
- package/dist/context/theme-context.es.js +117 -0
- package/dist/context/theme-provider.cjs.js +3 -0
- package/dist/context/theme-provider.es.js +274 -0
- package/dist/context/waka-provider.cjs.js +1 -0
- package/dist/context/waka-provider.es.js +115 -0
- package/dist/doc.cjs.js +1 -2
- package/dist/doc.es.js +12 -131
- package/dist/editor.cjs.js +1 -48
- package/dist/editor.es.js +27 -6468
- package/dist/export.cjs.js +1 -1
- package/dist/export.es.js +2 -1
- package/dist/hooks/use-toast.cjs.js +1 -0
- package/dist/hooks/use-toast.es.js +100 -0
- package/dist/hooks/use-translation.cjs.js +1 -0
- package/dist/hooks/use-translation.d.ts +2 -1
- package/dist/hooks/use-translation.es.js +29 -0
- package/dist/index.cjs.js +1 -2656
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +357 -94880
- package/dist/lib/i18n.cjs.js +1 -0
- package/dist/lib/i18n.d.ts +1 -1
- package/dist/lib/i18n.es.js +27 -0
- package/dist/locales/default-resources.cjs.js +1 -0
- package/dist/locales/default-resources.d.ts +155 -0
- package/dist/locales/default-resources.es.js +150 -0
- package/dist/{exceljs.min-BQi0sACt.js → node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.cjs.js} +13 -13
- package/dist/{exceljs.min-M0HhQgNK.mjs → node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.es.js} +21 -21
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-bash.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-bash.es.js +176 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-csharp.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-csharp.es.js +237 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-css.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-css.es.js +56 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-docker.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-docker.es.js +76 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-git.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-git.es.js +15 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-go.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-go.es.js +21 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-java.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-java.es.js +100 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-javascript.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-javascript.es.js +102 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-json.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-json.es.js +26 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-jsx.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-jsx.es.js +47 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-markdown.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-markdown.es.js +251 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-php.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-php.es.js +278 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-python.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-python.es.js +60 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-ruby.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-ruby.es.js +157 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-rust.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-rust.es.js +93 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-scss.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-scss.es.js +53 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-sql.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-sql.es.js +30 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-tsx.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-tsx.es.js +9 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-typescript.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-typescript.es.js +39 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-yaml.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-yaml.es.js +69 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-resizable-panels/dist/react-resizable-panels.es.js +1542 -0
- package/dist/rich-text.cjs.js +1 -1
- package/dist/rich-text.es.js +1 -1
- package/dist/utils/cn.cjs.js +1 -0
- package/dist/utils/cn.d.ts +2 -1
- package/dist/utils/cn.es.js +6 -0
- package/dist/utils/datetime-helpers.cjs.js +1 -0
- package/dist/utils/datetime-helpers.es.js +182 -0
- package/dist/utils/local-date.cjs.js +1 -0
- package/dist/utils/local-date.d.ts +28 -0
- package/dist/utils/local-date.es.js +12 -0
- package/dist/utils/security.cjs.js +1 -0
- package/dist/utils/security.es.js +61 -0
- package/dist/utils/theme-loader.cjs.js +1 -0
- package/dist/utils/theme-loader.d.ts +1 -1
- package/dist/utils/theme-loader.es.js +124 -0
- package/dist/utils/tweak.cjs.js +1 -0
- package/dist/{cn-Bpd_xIzI.mjs → utils/tweak.es.js} +1 -4
- package/package.json +68 -29
- package/src/blocks/_shared/identity/InviteUserPanel.tsx +91 -0
- package/src/blocks/_shared/identity/RoleSelect.tsx +61 -0
- package/src/blocks/_shared/identity/SidePushLayout.tsx +135 -0
- package/src/blocks/_shared/identity/index.ts +3 -0
- package/src/blocks/_shared/identity/types.ts +29 -0
- package/src/blocks/api-keys-manager/ApiKeysManager.stories.tsx +62 -0
- package/src/blocks/api-keys-manager/WakaApiKeysManager.mdx +32 -0
- package/src/blocks/api-keys-manager/index.tsx +442 -0
- package/src/blocks/avatar-upload/AvatarUpload.stories.tsx +27 -0
- package/src/blocks/avatar-upload/WakaAvatarUpload.mdx +31 -0
- package/src/blocks/avatar-upload/index.tsx +258 -0
- package/src/blocks/empty-states/index.tsx +1 -1
- package/src/blocks/index.ts +9 -0
- package/src/blocks/on-call-schedule/index.tsx +1 -1
- package/src/blocks/profile-list/ProfileList.stories.tsx +29 -0
- package/src/blocks/profile-list/WakaProfileList.mdx +22 -0
- package/src/blocks/profile-list/index.tsx +193 -0
- package/src/blocks/scan-report-generator/index.tsx +3 -2
- package/src/blocks/team-form/TeamForm.stories.tsx +64 -0
- package/src/blocks/team-form/WakaTeamForm.mdx +32 -0
- package/src/blocks/team-form/index.tsx +193 -0
- package/src/blocks/theme-creator-block/index.tsx +2 -2
- package/src/blocks/user-management/UserManagement.stories.tsx +61 -403
- package/src/blocks/user-management/WakaUserManagement.mdx +32 -0
- package/src/blocks/user-management/index.tsx +286 -968
- package/src/blocks/waka-doc-shell/index.tsx +1 -1
- package/src/components/DataTable/DataTable.tsx +6 -4
- package/src/components/DataTable/DataTableAdvanced.tsx +8 -22
- package/src/components/DataTable/DataTableColumnResizer.tsx +9 -3
- package/src/components/DataTable/DataTableContextMenu.tsx +2 -2
- package/src/components/DataTable/DataTableEditCell.tsx +18 -14
- package/src/components/DataTable/DataTableFilters.tsx +42 -25
- package/src/components/DataTable/DataTableGrouping.tsx +22 -10
- package/src/components/DataTable/DataTablePagination.tsx +28 -8
- package/src/components/DataTable/DataTableSelection.tsx +31 -25
- package/src/components/DataTable/DataTableToolbar.tsx +1 -1
- package/src/components/DataTable/hooks/useDataTable.ts +15 -1
- package/src/components/DataTable/hooks/useDataTableAdvanced.ts +10 -6
- package/src/components/DataTable/hooks/useDataTableEdit.ts +3 -3
- package/src/components/DataTable/hooks/useDataTableExport.ts +22 -9
- package/src/components/DataTable/hooks/useDataTableImport.ts +12 -12
- package/src/components/DataTable/hooks/useDataTableVirtualization.ts +1 -1
- package/src/components/DataTable/types.ts +15 -15
- package/src/components/DataTable/utils.ts +16 -17
- package/src/components/calendar/index.tsx +35 -27
- package/src/components/code/index.tsx +13 -3
- package/src/components/editor/blocks/waka-diagram-block.tsx +72 -6
- package/src/components/editor/waka-ai-writer.tsx +40 -26
- package/src/components/editor/waka-collaborative-editor.tsx +49 -24
- package/src/components/editor/waka-diff-viewer.tsx +23 -5
- package/src/components/editor/waka-dnd-editor.tsx +25 -13
- package/src/components/editor/waka-document-editor.tsx +54 -31
- package/src/components/editor/waka-editor.tsx +11 -13
- package/src/components/editor/waka-floating-toolbar.tsx +20 -9
- package/src/components/editor/waka-markdown-editor.tsx +21 -20
- package/src/components/editor/waka-mention-editor.tsx +27 -17
- package/src/components/editor/waka-slash-menu.tsx +48 -15
- package/src/components/editor/waka-spec-editor.tsx +28 -18
- package/src/components/index.ts +2 -0
- package/src/components/input-otp/index.tsx +3 -1
- package/src/components/resizable/Resizable.mdx +73 -0
- package/src/components/resizable/Resizable.stories.tsx +74 -0
- package/src/components/resizable/index.tsx +63 -0
- package/src/components/toaster/Toaster.stories.tsx +1 -1
- package/src/components/toaster/index.tsx +1 -1
- package/src/components/toggle-group/ToggleGroup.mdx +62 -0
- package/src/components/toggle-group/ToggleGroup.stories.tsx +85 -0
- package/src/components/toggle-group/index.tsx +61 -0
- package/src/components/typography/index.tsx +1 -1
- package/src/components/waka-ad-provider/index.tsx +2 -2
- package/src/components/waka-admincrumb/index.tsx +2 -2
- package/src/components/waka-allocation-matrix/index.tsx +8 -3
- package/src/components/waka-audit-log/index.tsx +4 -3
- package/src/components/waka-autocomplete/index.tsx +1 -1
- package/src/components/waka-capacity-planner/index.tsx +4 -1
- package/src/components/waka-carousel/index.tsx +3 -1
- package/src/components/waka-cart-summary/index.tsx +8 -3
- package/src/components/waka-charts/hooks/useRechartsLoader.ts +18 -16
- package/src/components/waka-cohort-table/index.tsx +2 -1
- package/src/components/waka-compare-period/index.tsx +11 -1
- package/src/components/waka-contribution-graph/index.tsx +3 -8
- package/src/components/waka-credit-balance/index.tsx +1 -1
- package/src/components/waka-credit-card-input/index.tsx +2 -2
- package/src/components/waka-credit-meter/index.tsx +1 -1
- package/src/components/waka-datetime-picker/index.tsx +15 -6
- package/src/components/waka-datetime-picker.form-integration/index.tsx +1 -1
- package/src/components/waka-doc-code-block/index.tsx +13 -4
- package/src/components/waka-doc-renderer/index.tsx +1 -1
- package/src/components/waka-dock/index.tsx +1 -1
- package/src/components/waka-funnel-chart/index.tsx +13 -8
- package/src/components/waka-goal-progress/index.tsx +6 -1
- package/src/components/waka-hotspot/index.tsx +1 -1
- package/src/components/waka-invoice-preview/index.tsx +6 -1
- package/src/components/waka-kubernetes-overview/index.tsx +10 -6
- package/src/components/waka-level-progress/index.tsx +2 -1
- package/src/components/waka-log-viewer/index.tsx +3 -1
- package/src/components/waka-magnetic-button/index.tsx +1 -1
- package/src/components/waka-mention-input/index.tsx +10 -1
- package/src/components/waka-order-tracker/index.tsx +4 -2
- package/src/components/waka-pod-card/index.tsx +10 -2
- package/src/components/waka-presence-indicator/index.tsx +1 -1
- package/src/components/waka-quest-card/index.tsx +10 -2
- package/src/components/waka-rating-input/index.tsx +7 -4
- package/src/components/waka-reaction-picker/index.tsx +12 -2
- package/src/components/waka-resource-gauge/index.tsx +6 -4
- package/src/components/waka-resource-pool/index.tsx +6 -3
- package/src/components/waka-schedule-picker/index.tsx +6 -4
- package/src/components/waka-season-pass/index.tsx +1 -1
- package/src/components/waka-skill-tree/index.tsx +4 -1
- package/src/components/waka-sla-tracker/index.tsx +4 -1
- package/src/components/waka-spotlight/index.tsx +1 -1
- package/src/components/waka-status-matrix/index.tsx +1 -11
- package/src/components/waka-success-explosion/index.tsx +8 -1
- package/src/components/waka-theme-creator/index.tsx +1 -1
- package/src/components/waka-thread-view/index.tsx +3 -1
- package/src/components/waka-tooltip-tour/index.tsx +1 -1
- package/src/components/waka-tournament-bracket/index.tsx +44 -34
- package/src/components/waka-treemap-chart/index.tsx +10 -7
- package/src/components/waka-video/index.tsx +1 -1
- package/src/components/waka-xp-bar/index.tsx +1 -1
- package/dist/badge-B2Kw7ew3.js +0 -1
- package/dist/chunk-FDd1SASZ.js +0 -1
- package/dist/cn-DEeiGoUV.js +0 -1
- package/dist/components/DataTable/examples/EditExample.d.ts +0 -2
- package/dist/hooks/useToast.d.ts +0 -44
- package/dist/input-vHHUMve1.js +0 -1
- package/dist/security-ClfRkelC.mjs +0 -120
- package/dist/security-DwyLk9h1.js +0 -1
- package/dist/separator-DviMy-io.js +0 -1
- package/dist/textarea-C4AbqFOT.mjs +0 -23
- package/dist/textarea-jycisJkk.js +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types-CUCT8Mwf.js +0 -1
- package/dist/types-DXkPQFit.mjs +0 -935
- package/dist/useDataTableImport-DNU1m8NO.js +0 -7
- package/dist/waka-doc-renderer-22MUZbyl.js +0 -3
- package/dist/waka-doc-renderer-BZ3DtCzv.mjs +0 -1678
- package/dist/waka-editor-plugins-DO4BF3o_.js +0 -1
- package/dist/waka-rich-text-editor-DcZuIQ-q.js +0 -1
- package/dist/waka-rich-text-editor-SOKYDdDP.mjs +0 -348
- package/src/components/DataTable/DataTableBody.tsx +0 -216
- package/src/components/DataTable/DataTableCell.tsx +0 -172
- package/src/components/DataTable/DataTableConflictResolver.tsx +0 -478
- package/src/components/DataTable/DataTableFilterBuilder.tsx +0 -519
- package/src/components/DataTable/DataTableHeader.tsx +0 -172
- package/src/components/DataTable/DataTableSyncStatus.tsx +0 -281
- package/src/components/DataTable/__tests__/DataTableAdvanced.test.tsx +0 -426
- package/src/components/DataTable/__tests__/DataTableEdit.test.tsx +0 -329
- package/src/components/DataTable/__tests__/useDataTableAdvanced.test.ts +0 -455
- package/src/components/DataTable/examples/EditExample.tsx +0 -166
- package/src/components/DataTable/formatters/index.ts +0 -335
- package/src/components/DataTable/hooks/__tests__/useDataTableEdit.test.ts +0 -239
- package/src/components/DataTable/hooks/useDataTableAdvancedFilters.ts +0 -637
- package/src/components/DataTable/hooks/useDataTableColumnTemplates.ts +0 -186
- package/src/components/DataTable/hooks/useDataTableOffline.ts +0 -481
- package/src/components/DataTable/services/IndexedDBService.ts +0 -504
- package/src/components/DataTable/templates/index.tsx +0 -804
- package/src/components/DataTable/workers/exportWorker.ts +0 -213
|
@@ -1,1678 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./cn-Bpd_xIzI.mjs";
|
|
3
|
-
import { t } from "./badge-BvqcaobM.mjs";
|
|
4
|
-
import { n, t as r } from "./separator-DDQs13_a.mjs";
|
|
5
|
-
import { t as i } from "./input-B8pxqKEs.mjs";
|
|
6
|
-
import * as a from "react";
|
|
7
|
-
import { AlertCircle as o, AlertTriangle as s, BookOpen as c, Check as l, CheckCircle2 as u, ChevronDown as d, ChevronRight as f, ChevronUp as p, Copy as m, Download as h, Eye as g, FileCode as _, FileText as v, Folder as y, FolderOpen as b, Info as x, Lightbulb as S, Loader2 as C, Pencil as w, Search as T, Tag as E, XCircle as D } from "lucide-react";
|
|
8
|
-
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
9
|
-
import j from "prismjs";
|
|
10
|
-
import * as M from "@radix-ui/react-select";
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-docker.js
|
|
13
|
-
(function(e) {
|
|
14
|
-
e.languages.typescript = e.languages.extend("javascript", {
|
|
15
|
-
"class-name": {
|
|
16
|
-
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
17
|
-
lookbehind: !0,
|
|
18
|
-
greedy: !0,
|
|
19
|
-
inside: null
|
|
20
|
-
},
|
|
21
|
-
builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
|
|
22
|
-
}), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
23
|
-
var t = e.languages.extend("typescript", {});
|
|
24
|
-
delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
|
|
25
|
-
decorator: {
|
|
26
|
-
pattern: /@[$\w\xA0-\uFFFF]+/,
|
|
27
|
-
inside: {
|
|
28
|
-
at: {
|
|
29
|
-
pattern: /^@/,
|
|
30
|
-
alias: "operator"
|
|
31
|
-
},
|
|
32
|
-
function: /^[\s\S]+/
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"generic-function": {
|
|
36
|
-
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
|
|
37
|
-
greedy: !0,
|
|
38
|
-
inside: {
|
|
39
|
-
function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
|
|
40
|
-
generic: {
|
|
41
|
-
pattern: /<[\s\S]+/,
|
|
42
|
-
alias: "class-name",
|
|
43
|
-
inside: t
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}), e.languages.ts = e.languages.typescript;
|
|
48
|
-
})(Prism), Prism.languages.javascript = Prism.languages.extend("clike", {
|
|
49
|
-
"class-name": [Prism.languages.clike["class-name"], {
|
|
50
|
-
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
51
|
-
lookbehind: !0
|
|
52
|
-
}],
|
|
53
|
-
keyword: [{
|
|
54
|
-
pattern: /((?:^|\})\s*)catch\b/,
|
|
55
|
-
lookbehind: !0
|
|
56
|
-
}, {
|
|
57
|
-
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
58
|
-
lookbehind: !0
|
|
59
|
-
}],
|
|
60
|
-
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
61
|
-
number: {
|
|
62
|
-
pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),
|
|
63
|
-
lookbehind: !0
|
|
64
|
-
},
|
|
65
|
-
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
66
|
-
}), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", {
|
|
67
|
-
regex: {
|
|
68
|
-
pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))"),
|
|
69
|
-
lookbehind: !0,
|
|
70
|
-
greedy: !0,
|
|
71
|
-
inside: {
|
|
72
|
-
"regex-source": {
|
|
73
|
-
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
74
|
-
lookbehind: !0,
|
|
75
|
-
alias: "language-regex",
|
|
76
|
-
inside: Prism.languages.regex
|
|
77
|
-
},
|
|
78
|
-
"regex-delimiter": /^\/|\/$/,
|
|
79
|
-
"regex-flags": /^[a-z]+$/
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"function-variable": {
|
|
83
|
-
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
84
|
-
alias: "function"
|
|
85
|
-
},
|
|
86
|
-
parameter: [
|
|
87
|
-
{
|
|
88
|
-
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
89
|
-
lookbehind: !0,
|
|
90
|
-
inside: Prism.languages.javascript
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
94
|
-
lookbehind: !0,
|
|
95
|
-
inside: Prism.languages.javascript
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
99
|
-
lookbehind: !0,
|
|
100
|
-
inside: Prism.languages.javascript
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
104
|
-
lookbehind: !0,
|
|
105
|
-
inside: Prism.languages.javascript
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
109
|
-
}), Prism.languages.insertBefore("javascript", "string", {
|
|
110
|
-
hashbang: {
|
|
111
|
-
pattern: /^#!.*/,
|
|
112
|
-
greedy: !0,
|
|
113
|
-
alias: "comment"
|
|
114
|
-
},
|
|
115
|
-
"template-string": {
|
|
116
|
-
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
117
|
-
greedy: !0,
|
|
118
|
-
inside: {
|
|
119
|
-
"template-punctuation": {
|
|
120
|
-
pattern: /^`|`$/,
|
|
121
|
-
alias: "string"
|
|
122
|
-
},
|
|
123
|
-
interpolation: {
|
|
124
|
-
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
125
|
-
lookbehind: !0,
|
|
126
|
-
inside: {
|
|
127
|
-
"interpolation-punctuation": {
|
|
128
|
-
pattern: /^\$\{|\}$/,
|
|
129
|
-
alias: "punctuation"
|
|
130
|
-
},
|
|
131
|
-
rest: Prism.languages.javascript
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
string: /[\s\S]+/
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"string-property": {
|
|
138
|
-
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
139
|
-
lookbehind: !0,
|
|
140
|
-
greedy: !0,
|
|
141
|
-
alias: "property"
|
|
142
|
-
}
|
|
143
|
-
}), Prism.languages.insertBefore("javascript", "operator", { "literal-property": {
|
|
144
|
-
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
145
|
-
lookbehind: !0,
|
|
146
|
-
alias: "property"
|
|
147
|
-
} }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), Prism.languages.js = Prism.languages.javascript, (function(e) {
|
|
148
|
-
var t = e.util.clone(e.languages.javascript), n = "(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)", r = "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})", i = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
|
|
149
|
-
function a(e, t) {
|
|
150
|
-
return e = e.replace(/<S>/g, function() {
|
|
151
|
-
return n;
|
|
152
|
-
}).replace(/<BRACES>/g, function() {
|
|
153
|
-
return r;
|
|
154
|
-
}).replace(/<SPREAD>/g, function() {
|
|
155
|
-
return i;
|
|
156
|
-
}), RegExp(e, t);
|
|
157
|
-
}
|
|
158
|
-
i = a(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = a("<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>"), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: {
|
|
159
|
-
pattern: a("<SPREAD>"),
|
|
160
|
-
inside: e.languages.jsx
|
|
161
|
-
} }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: {
|
|
162
|
-
pattern: a("=<BRACES>"),
|
|
163
|
-
alias: "language-javascript",
|
|
164
|
-
inside: {
|
|
165
|
-
"script-punctuation": {
|
|
166
|
-
pattern: /^=(?=\{)/,
|
|
167
|
-
alias: "punctuation"
|
|
168
|
-
},
|
|
169
|
-
rest: e.languages.jsx
|
|
170
|
-
}
|
|
171
|
-
} }, e.languages.jsx.tag);
|
|
172
|
-
var o = function(e) {
|
|
173
|
-
return e ? typeof e == "string" ? e : typeof e.content == "string" ? e.content : e.content.map(o).join("") : "";
|
|
174
|
-
}, s = function(t) {
|
|
175
|
-
for (var n = [], r = 0; r < t.length; r++) {
|
|
176
|
-
var i = t[r], a = !1;
|
|
177
|
-
if (typeof i != "string" && (i.type === "tag" && i.content[0] && i.content[0].type === "tag" ? i.content[0].content[0].content === "</" ? n.length > 0 && n[n.length - 1].tagName === o(i.content[0].content[1]) && n.pop() : i.content[i.content.length - 1].content === "/>" || n.push({
|
|
178
|
-
tagName: o(i.content[0].content[1]),
|
|
179
|
-
openedBraces: 0
|
|
180
|
-
}) : n.length > 0 && i.type === "punctuation" && i.content === "{" ? n[n.length - 1].openedBraces++ : n.length > 0 && n[n.length - 1].openedBraces > 0 && i.type === "punctuation" && i.content === "}" ? n[n.length - 1].openedBraces-- : a = !0), (a || typeof i == "string") && n.length > 0 && n[n.length - 1].openedBraces === 0) {
|
|
181
|
-
var c = o(i);
|
|
182
|
-
r < t.length - 1 && (typeof t[r + 1] == "string" || t[r + 1].type === "plain-text") && (c += o(t[r + 1]), t.splice(r + 1, 1)), r > 0 && (typeof t[r - 1] == "string" || t[r - 1].type === "plain-text") && (c = o(t[r - 1]) + c, t.splice(r - 1, 1), r--), t[r] = new e.Token("plain-text", c, null, c);
|
|
183
|
-
}
|
|
184
|
-
i.content && typeof i.content != "string" && s(i.content);
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
e.hooks.add("after-tokenize", function(e) {
|
|
188
|
-
e.language !== "jsx" && e.language !== "tsx" || s(e.tokens);
|
|
189
|
-
});
|
|
190
|
-
})(Prism), (function(e) {
|
|
191
|
-
var t = e.util.clone(e.languages.typescript);
|
|
192
|
-
e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
|
|
193
|
-
var n = e.languages.tsx.tag;
|
|
194
|
-
n.pattern = RegExp("(^|[^\\w$]|(?=<\\/))(?:" + n.pattern.source + ")", n.pattern.flags), n.lookbehind = !0;
|
|
195
|
-
})(Prism), (function(e) {
|
|
196
|
-
var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
197
|
-
e.languages.css = {
|
|
198
|
-
comment: /\/\*[\s\S]*?\*\//,
|
|
199
|
-
atrule: {
|
|
200
|
-
pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + t.source + ")*?(?:;|(?=\\s*\\{))"),
|
|
201
|
-
inside: {
|
|
202
|
-
rule: /^@[\w-]+/,
|
|
203
|
-
"selector-function-argument": {
|
|
204
|
-
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
205
|
-
lookbehind: !0,
|
|
206
|
-
alias: "selector"
|
|
207
|
-
},
|
|
208
|
-
keyword: {
|
|
209
|
-
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
210
|
-
lookbehind: !0
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
url: {
|
|
215
|
-
pattern: RegExp("\\burl\\((?:" + t.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
|
|
216
|
-
greedy: !0,
|
|
217
|
-
inside: {
|
|
218
|
-
function: /^url/i,
|
|
219
|
-
punctuation: /^\(|\)$/,
|
|
220
|
-
string: {
|
|
221
|
-
pattern: RegExp("^" + t.source + "$"),
|
|
222
|
-
alias: "url"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
selector: {
|
|
227
|
-
pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + t.source + ")*(?=\\s*\\{)"),
|
|
228
|
-
lookbehind: !0
|
|
229
|
-
},
|
|
230
|
-
string: {
|
|
231
|
-
pattern: t,
|
|
232
|
-
greedy: !0
|
|
233
|
-
},
|
|
234
|
-
property: {
|
|
235
|
-
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
236
|
-
lookbehind: !0
|
|
237
|
-
},
|
|
238
|
-
important: /!important\b/i,
|
|
239
|
-
function: {
|
|
240
|
-
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
241
|
-
lookbehind: !0
|
|
242
|
-
},
|
|
243
|
-
punctuation: /[(){};:,]/
|
|
244
|
-
}, e.languages.css.atrule.inside.rest = e.languages.css;
|
|
245
|
-
var n = e.languages.markup;
|
|
246
|
-
n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
|
|
247
|
-
})(Prism), Prism.languages.json = {
|
|
248
|
-
property: {
|
|
249
|
-
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
250
|
-
lookbehind: !0,
|
|
251
|
-
greedy: !0
|
|
252
|
-
},
|
|
253
|
-
string: {
|
|
254
|
-
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
255
|
-
lookbehind: !0,
|
|
256
|
-
greedy: !0
|
|
257
|
-
},
|
|
258
|
-
comment: {
|
|
259
|
-
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
260
|
-
greedy: !0
|
|
261
|
-
},
|
|
262
|
-
number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
263
|
-
punctuation: /[{}[\],]/,
|
|
264
|
-
operator: /:/,
|
|
265
|
-
boolean: /\b(?:false|true)\b/,
|
|
266
|
-
null: {
|
|
267
|
-
pattern: /\bnull\b/,
|
|
268
|
-
alias: "keyword"
|
|
269
|
-
}
|
|
270
|
-
}, Prism.languages.webmanifest = Prism.languages.json, (function(e) {
|
|
271
|
-
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
|
|
272
|
-
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
273
|
-
lookbehind: !0,
|
|
274
|
-
alias: "punctuation",
|
|
275
|
-
inside: null
|
|
276
|
-
}, r = {
|
|
277
|
-
bash: n,
|
|
278
|
-
environment: {
|
|
279
|
-
pattern: RegExp("\\$" + t),
|
|
280
|
-
alias: "constant"
|
|
281
|
-
},
|
|
282
|
-
variable: [
|
|
283
|
-
{
|
|
284
|
-
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
285
|
-
greedy: !0,
|
|
286
|
-
inside: {
|
|
287
|
-
variable: [{
|
|
288
|
-
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
289
|
-
lookbehind: !0
|
|
290
|
-
}, /^\$\(\(/],
|
|
291
|
-
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
292
|
-
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
293
|
-
punctuation: /\(\(?|\)\)?|,|;/
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
298
|
-
greedy: !0,
|
|
299
|
-
inside: { variable: /^\$\(|^`|\)$|`$/ }
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
pattern: /\$\{[^}]+\}/,
|
|
303
|
-
greedy: !0,
|
|
304
|
-
inside: {
|
|
305
|
-
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
306
|
-
punctuation: /[\[\]]/,
|
|
307
|
-
environment: {
|
|
308
|
-
pattern: RegExp("(\\{)" + t),
|
|
309
|
-
lookbehind: !0,
|
|
310
|
-
alias: "constant"
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
/\$(?:\w+|[#?*!@$])/
|
|
315
|
-
],
|
|
316
|
-
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
317
|
-
};
|
|
318
|
-
e.languages.bash = {
|
|
319
|
-
shebang: {
|
|
320
|
-
pattern: /^#!\s*\/.*/,
|
|
321
|
-
alias: "important"
|
|
322
|
-
},
|
|
323
|
-
comment: {
|
|
324
|
-
pattern: /(^|[^"{\\$])#.*/,
|
|
325
|
-
lookbehind: !0
|
|
326
|
-
},
|
|
327
|
-
"function-name": [{
|
|
328
|
-
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
329
|
-
lookbehind: !0,
|
|
330
|
-
alias: "function"
|
|
331
|
-
}, {
|
|
332
|
-
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
333
|
-
alias: "function"
|
|
334
|
-
}],
|
|
335
|
-
"for-or-select": {
|
|
336
|
-
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
337
|
-
alias: "variable",
|
|
338
|
-
lookbehind: !0
|
|
339
|
-
},
|
|
340
|
-
"assign-left": {
|
|
341
|
-
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
342
|
-
inside: { environment: {
|
|
343
|
-
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
|
|
344
|
-
lookbehind: !0,
|
|
345
|
-
alias: "constant"
|
|
346
|
-
} },
|
|
347
|
-
alias: "variable",
|
|
348
|
-
lookbehind: !0
|
|
349
|
-
},
|
|
350
|
-
parameter: {
|
|
351
|
-
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
352
|
-
alias: "variable",
|
|
353
|
-
lookbehind: !0
|
|
354
|
-
},
|
|
355
|
-
string: [
|
|
356
|
-
{
|
|
357
|
-
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
358
|
-
lookbehind: !0,
|
|
359
|
-
greedy: !0,
|
|
360
|
-
inside: r
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
364
|
-
lookbehind: !0,
|
|
365
|
-
greedy: !0,
|
|
366
|
-
inside: { bash: n }
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
370
|
-
lookbehind: !0,
|
|
371
|
-
greedy: !0,
|
|
372
|
-
inside: r
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
pattern: /(^|[^$\\])'[^']*'/,
|
|
376
|
-
lookbehind: !0,
|
|
377
|
-
greedy: !0
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
381
|
-
greedy: !0,
|
|
382
|
-
inside: { entity: r.entity }
|
|
383
|
-
}
|
|
384
|
-
],
|
|
385
|
-
environment: {
|
|
386
|
-
pattern: RegExp("\\$?" + t),
|
|
387
|
-
alias: "constant"
|
|
388
|
-
},
|
|
389
|
-
variable: r.variable,
|
|
390
|
-
function: {
|
|
391
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
392
|
-
lookbehind: !0
|
|
393
|
-
},
|
|
394
|
-
keyword: {
|
|
395
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
396
|
-
lookbehind: !0
|
|
397
|
-
},
|
|
398
|
-
builtin: {
|
|
399
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
400
|
-
lookbehind: !0,
|
|
401
|
-
alias: "class-name"
|
|
402
|
-
},
|
|
403
|
-
boolean: {
|
|
404
|
-
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
405
|
-
lookbehind: !0
|
|
406
|
-
},
|
|
407
|
-
"file-descriptor": {
|
|
408
|
-
pattern: /\B&\d\b/,
|
|
409
|
-
alias: "important"
|
|
410
|
-
},
|
|
411
|
-
operator: {
|
|
412
|
-
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
413
|
-
inside: { "file-descriptor": {
|
|
414
|
-
pattern: /^\d/,
|
|
415
|
-
alias: "important"
|
|
416
|
-
} }
|
|
417
|
-
},
|
|
418
|
-
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
419
|
-
number: {
|
|
420
|
-
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
421
|
-
lookbehind: !0
|
|
422
|
-
}
|
|
423
|
-
}, n.inside = e.languages.bash;
|
|
424
|
-
for (var i = [
|
|
425
|
-
"comment",
|
|
426
|
-
"function-name",
|
|
427
|
-
"for-or-select",
|
|
428
|
-
"assign-left",
|
|
429
|
-
"parameter",
|
|
430
|
-
"string",
|
|
431
|
-
"environment",
|
|
432
|
-
"function",
|
|
433
|
-
"keyword",
|
|
434
|
-
"builtin",
|
|
435
|
-
"boolean",
|
|
436
|
-
"file-descriptor",
|
|
437
|
-
"operator",
|
|
438
|
-
"punctuation",
|
|
439
|
-
"number"
|
|
440
|
-
], a = r.variable[1].inside, o = 0; o < i.length; o++) a[i[o]] = e.languages.bash[i[o]];
|
|
441
|
-
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
442
|
-
})(Prism), Prism.languages.python = {
|
|
443
|
-
comment: {
|
|
444
|
-
pattern: /(^|[^\\])#.*/,
|
|
445
|
-
lookbehind: !0,
|
|
446
|
-
greedy: !0
|
|
447
|
-
},
|
|
448
|
-
"string-interpolation": {
|
|
449
|
-
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
450
|
-
greedy: !0,
|
|
451
|
-
inside: {
|
|
452
|
-
interpolation: {
|
|
453
|
-
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
454
|
-
lookbehind: !0,
|
|
455
|
-
inside: {
|
|
456
|
-
"format-spec": {
|
|
457
|
-
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
458
|
-
lookbehind: !0
|
|
459
|
-
},
|
|
460
|
-
"conversion-option": {
|
|
461
|
-
pattern: //,
|
|
462
|
-
alias: "punctuation"
|
|
463
|
-
},
|
|
464
|
-
rest: null
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
string: /[\s\S]+/
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
"triple-quoted-string": {
|
|
471
|
-
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
472
|
-
greedy: !0,
|
|
473
|
-
alias: "string"
|
|
474
|
-
},
|
|
475
|
-
string: {
|
|
476
|
-
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
477
|
-
greedy: !0
|
|
478
|
-
},
|
|
479
|
-
function: {
|
|
480
|
-
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
481
|
-
lookbehind: !0
|
|
482
|
-
},
|
|
483
|
-
"class-name": {
|
|
484
|
-
pattern: /(\bclass\s+)\w+/i,
|
|
485
|
-
lookbehind: !0
|
|
486
|
-
},
|
|
487
|
-
decorator: {
|
|
488
|
-
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
489
|
-
lookbehind: !0,
|
|
490
|
-
alias: ["annotation", "punctuation"],
|
|
491
|
-
inside: { punctuation: /\./ }
|
|
492
|
-
},
|
|
493
|
-
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
494
|
-
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
495
|
-
boolean: /\b(?:False|None|True)\b/,
|
|
496
|
-
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
497
|
-
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
498
|
-
punctuation: /[{}[\];(),.:]/
|
|
499
|
-
}, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, Prism.languages.go = Prism.languages.extend("clike", {
|
|
500
|
-
string: {
|
|
501
|
-
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
|
|
502
|
-
lookbehind: !0,
|
|
503
|
-
greedy: !0
|
|
504
|
-
},
|
|
505
|
-
keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
|
|
506
|
-
boolean: /\b(?:_|false|iota|nil|true)\b/,
|
|
507
|
-
number: [
|
|
508
|
-
/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,
|
|
509
|
-
/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,
|
|
510
|
-
/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
|
|
511
|
-
],
|
|
512
|
-
operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
|
|
513
|
-
builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
|
|
514
|
-
}), Prism.languages.insertBefore("go", "string", { char: {
|
|
515
|
-
pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/,
|
|
516
|
-
greedy: !0
|
|
517
|
-
} }), delete Prism.languages.go["class-name"], (function(e) {
|
|
518
|
-
for (var t = "\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/", n = 0; n < 2; n++) t = t.replace(/<self>/g, function() {
|
|
519
|
-
return t;
|
|
520
|
-
});
|
|
521
|
-
t = t.replace(/<self>/g, function() {
|
|
522
|
-
return "[^\\s\\S]";
|
|
523
|
-
}), e.languages.rust = {
|
|
524
|
-
comment: [{
|
|
525
|
-
pattern: RegExp("(^|[^\\\\])" + t),
|
|
526
|
-
lookbehind: !0,
|
|
527
|
-
greedy: !0
|
|
528
|
-
}, {
|
|
529
|
-
pattern: /(^|[^\\:])\/\/.*/,
|
|
530
|
-
lookbehind: !0,
|
|
531
|
-
greedy: !0
|
|
532
|
-
}],
|
|
533
|
-
string: {
|
|
534
|
-
pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,
|
|
535
|
-
greedy: !0
|
|
536
|
-
},
|
|
537
|
-
char: {
|
|
538
|
-
pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,
|
|
539
|
-
greedy: !0
|
|
540
|
-
},
|
|
541
|
-
attribute: {
|
|
542
|
-
pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,
|
|
543
|
-
greedy: !0,
|
|
544
|
-
alias: "attr-name",
|
|
545
|
-
inside: { string: null }
|
|
546
|
-
},
|
|
547
|
-
"closure-params": {
|
|
548
|
-
pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,
|
|
549
|
-
lookbehind: !0,
|
|
550
|
-
greedy: !0,
|
|
551
|
-
inside: {
|
|
552
|
-
"closure-punctuation": {
|
|
553
|
-
pattern: /^\||\|$/,
|
|
554
|
-
alias: "punctuation"
|
|
555
|
-
},
|
|
556
|
-
rest: null
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
"lifetime-annotation": {
|
|
560
|
-
pattern: /'\w+/,
|
|
561
|
-
alias: "symbol"
|
|
562
|
-
},
|
|
563
|
-
"fragment-specifier": {
|
|
564
|
-
pattern: /(\$\w+:)[a-z]+/,
|
|
565
|
-
lookbehind: !0,
|
|
566
|
-
alias: "punctuation"
|
|
567
|
-
},
|
|
568
|
-
variable: /\$\w+/,
|
|
569
|
-
"function-definition": {
|
|
570
|
-
pattern: /(\bfn\s+)\w+/,
|
|
571
|
-
lookbehind: !0,
|
|
572
|
-
alias: "function"
|
|
573
|
-
},
|
|
574
|
-
"type-definition": {
|
|
575
|
-
pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/,
|
|
576
|
-
lookbehind: !0,
|
|
577
|
-
alias: "class-name"
|
|
578
|
-
},
|
|
579
|
-
"module-declaration": [{
|
|
580
|
-
pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,
|
|
581
|
-
lookbehind: !0,
|
|
582
|
-
alias: "namespace"
|
|
583
|
-
}, {
|
|
584
|
-
pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,
|
|
585
|
-
lookbehind: !0,
|
|
586
|
-
alias: "namespace",
|
|
587
|
-
inside: { punctuation: /::/ }
|
|
588
|
-
}],
|
|
589
|
-
keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],
|
|
590
|
-
function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,
|
|
591
|
-
macro: {
|
|
592
|
-
pattern: /\b\w+!/,
|
|
593
|
-
alias: "property"
|
|
594
|
-
},
|
|
595
|
-
constant: /\b[A-Z_][A-Z_\d]+\b/,
|
|
596
|
-
"class-name": /\b[A-Z]\w*\b/,
|
|
597
|
-
namespace: {
|
|
598
|
-
pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,
|
|
599
|
-
inside: { punctuation: /::/ }
|
|
600
|
-
},
|
|
601
|
-
number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
|
|
602
|
-
boolean: /\b(?:false|true)\b/,
|
|
603
|
-
punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
|
|
604
|
-
operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
|
|
605
|
-
}, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
|
|
606
|
-
})(Prism), Prism.languages.sql = {
|
|
607
|
-
comment: {
|
|
608
|
-
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
|
|
609
|
-
lookbehind: !0
|
|
610
|
-
},
|
|
611
|
-
variable: [{
|
|
612
|
-
pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
|
|
613
|
-
greedy: !0
|
|
614
|
-
}, /@[\w.$]+/],
|
|
615
|
-
string: {
|
|
616
|
-
pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
|
|
617
|
-
greedy: !0,
|
|
618
|
-
lookbehind: !0
|
|
619
|
-
},
|
|
620
|
-
identifier: {
|
|
621
|
-
pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
|
|
622
|
-
greedy: !0,
|
|
623
|
-
lookbehind: !0,
|
|
624
|
-
inside: { punctuation: /^`|`$/ }
|
|
625
|
-
},
|
|
626
|
-
function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
|
|
627
|
-
keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
|
|
628
|
-
boolean: /\b(?:FALSE|NULL|TRUE)\b/i,
|
|
629
|
-
number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
|
|
630
|
-
operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
|
|
631
|
-
punctuation: /[;[\]()`,.]/
|
|
632
|
-
}, (function(e) {
|
|
633
|
-
var t = "(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))";
|
|
634
|
-
function n(e) {
|
|
635
|
-
return e = e.replace(/<inner>/g, function() {
|
|
636
|
-
return t;
|
|
637
|
-
}), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + e + ")");
|
|
638
|
-
}
|
|
639
|
-
var r = "(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+", i = "\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))".replace(/__/g, function() {
|
|
640
|
-
return r;
|
|
641
|
-
}), a = "\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)";
|
|
642
|
-
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
643
|
-
"front-matter-block": {
|
|
644
|
-
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
645
|
-
lookbehind: !0,
|
|
646
|
-
greedy: !0,
|
|
647
|
-
inside: {
|
|
648
|
-
punctuation: /^---|---$/,
|
|
649
|
-
"front-matter": {
|
|
650
|
-
pattern: /\S+(?:\s+\S+)*/,
|
|
651
|
-
alias: ["yaml", "language-yaml"],
|
|
652
|
-
inside: e.languages.yaml
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
},
|
|
656
|
-
blockquote: {
|
|
657
|
-
pattern: /^>(?:[\t ]*>)*/m,
|
|
658
|
-
alias: "punctuation"
|
|
659
|
-
},
|
|
660
|
-
table: {
|
|
661
|
-
pattern: RegExp("^" + i + a + "(?:" + i + ")*", "m"),
|
|
662
|
-
inside: {
|
|
663
|
-
"table-data-rows": {
|
|
664
|
-
pattern: RegExp("^(" + i + a + ")(?:" + i + ")*$"),
|
|
665
|
-
lookbehind: !0,
|
|
666
|
-
inside: {
|
|
667
|
-
"table-data": {
|
|
668
|
-
pattern: RegExp(r),
|
|
669
|
-
inside: e.languages.markdown
|
|
670
|
-
},
|
|
671
|
-
punctuation: /\|/
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
"table-line": {
|
|
675
|
-
pattern: RegExp("^(" + i + ")" + a + "$"),
|
|
676
|
-
lookbehind: !0,
|
|
677
|
-
inside: { punctuation: /\||:?-{3,}:?/ }
|
|
678
|
-
},
|
|
679
|
-
"table-header-row": {
|
|
680
|
-
pattern: RegExp("^" + i + "$"),
|
|
681
|
-
inside: {
|
|
682
|
-
"table-header": {
|
|
683
|
-
pattern: RegExp(r),
|
|
684
|
-
alias: "important",
|
|
685
|
-
inside: e.languages.markdown
|
|
686
|
-
},
|
|
687
|
-
punctuation: /\|/
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
code: [{
|
|
693
|
-
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
694
|
-
lookbehind: !0,
|
|
695
|
-
alias: "keyword"
|
|
696
|
-
}, {
|
|
697
|
-
pattern: /^```[\s\S]*?^```$/m,
|
|
698
|
-
greedy: !0,
|
|
699
|
-
inside: {
|
|
700
|
-
"code-block": {
|
|
701
|
-
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
702
|
-
lookbehind: !0
|
|
703
|
-
},
|
|
704
|
-
"code-language": {
|
|
705
|
-
pattern: /^(```).+/,
|
|
706
|
-
lookbehind: !0
|
|
707
|
-
},
|
|
708
|
-
punctuation: /```/
|
|
709
|
-
}
|
|
710
|
-
}],
|
|
711
|
-
title: [{
|
|
712
|
-
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
713
|
-
alias: "important",
|
|
714
|
-
inside: { punctuation: /==+$|--+$/ }
|
|
715
|
-
}, {
|
|
716
|
-
pattern: /(^\s*)#.+/m,
|
|
717
|
-
lookbehind: !0,
|
|
718
|
-
alias: "important",
|
|
719
|
-
inside: { punctuation: /^#+|#+$/ }
|
|
720
|
-
}],
|
|
721
|
-
hr: {
|
|
722
|
-
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
723
|
-
lookbehind: !0,
|
|
724
|
-
alias: "punctuation"
|
|
725
|
-
},
|
|
726
|
-
list: {
|
|
727
|
-
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
728
|
-
lookbehind: !0,
|
|
729
|
-
alias: "punctuation"
|
|
730
|
-
},
|
|
731
|
-
"url-reference": {
|
|
732
|
-
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
733
|
-
inside: {
|
|
734
|
-
variable: {
|
|
735
|
-
pattern: /^(!?\[)[^\]]+/,
|
|
736
|
-
lookbehind: !0
|
|
737
|
-
},
|
|
738
|
-
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
739
|
-
punctuation: /^[\[\]!:]|[<>]/
|
|
740
|
-
},
|
|
741
|
-
alias: "url"
|
|
742
|
-
},
|
|
743
|
-
bold: {
|
|
744
|
-
pattern: n("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"),
|
|
745
|
-
lookbehind: !0,
|
|
746
|
-
greedy: !0,
|
|
747
|
-
inside: {
|
|
748
|
-
content: {
|
|
749
|
-
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
750
|
-
lookbehind: !0,
|
|
751
|
-
inside: {}
|
|
752
|
-
},
|
|
753
|
-
punctuation: /\*\*|__/
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
italic: {
|
|
757
|
-
pattern: n("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"),
|
|
758
|
-
lookbehind: !0,
|
|
759
|
-
greedy: !0,
|
|
760
|
-
inside: {
|
|
761
|
-
content: {
|
|
762
|
-
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
763
|
-
lookbehind: !0,
|
|
764
|
-
inside: {}
|
|
765
|
-
},
|
|
766
|
-
punctuation: /[*_]/
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
strike: {
|
|
770
|
-
pattern: n("(~~?)(?:(?!~)<inner>)+\\2"),
|
|
771
|
-
lookbehind: !0,
|
|
772
|
-
greedy: !0,
|
|
773
|
-
inside: {
|
|
774
|
-
content: {
|
|
775
|
-
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
776
|
-
lookbehind: !0,
|
|
777
|
-
inside: {}
|
|
778
|
-
},
|
|
779
|
-
punctuation: /~~?/
|
|
780
|
-
}
|
|
781
|
-
},
|
|
782
|
-
"code-snippet": {
|
|
783
|
-
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
784
|
-
lookbehind: !0,
|
|
785
|
-
greedy: !0,
|
|
786
|
-
alias: ["code", "keyword"]
|
|
787
|
-
},
|
|
788
|
-
url: {
|
|
789
|
-
pattern: n("!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])"),
|
|
790
|
-
lookbehind: !0,
|
|
791
|
-
greedy: !0,
|
|
792
|
-
inside: {
|
|
793
|
-
operator: /^!/,
|
|
794
|
-
content: {
|
|
795
|
-
pattern: /(^\[)[^\]]+(?=\])/,
|
|
796
|
-
lookbehind: !0,
|
|
797
|
-
inside: {}
|
|
798
|
-
},
|
|
799
|
-
variable: {
|
|
800
|
-
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
801
|
-
lookbehind: !0
|
|
802
|
-
},
|
|
803
|
-
url: {
|
|
804
|
-
pattern: /(^\]\()[^\s)]+/,
|
|
805
|
-
lookbehind: !0
|
|
806
|
-
},
|
|
807
|
-
string: {
|
|
808
|
-
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
809
|
-
lookbehind: !0
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}), [
|
|
814
|
-
"url",
|
|
815
|
-
"bold",
|
|
816
|
-
"italic",
|
|
817
|
-
"strike"
|
|
818
|
-
].forEach(function(t) {
|
|
819
|
-
[
|
|
820
|
-
"url",
|
|
821
|
-
"bold",
|
|
822
|
-
"italic",
|
|
823
|
-
"strike",
|
|
824
|
-
"code-snippet"
|
|
825
|
-
].forEach(function(n) {
|
|
826
|
-
t !== n && (e.languages.markdown[t].inside.content.inside[n] = e.languages.markdown[n]);
|
|
827
|
-
});
|
|
828
|
-
}), e.hooks.add("after-tokenize", function(e) {
|
|
829
|
-
if (e.language !== "markdown" && e.language !== "md") return;
|
|
830
|
-
function t(e) {
|
|
831
|
-
if (!(!e || typeof e == "string")) for (var n = 0, r = e.length; n < r; n++) {
|
|
832
|
-
var i = e[n];
|
|
833
|
-
if (i.type !== "code") {
|
|
834
|
-
t(i.content);
|
|
835
|
-
continue;
|
|
836
|
-
}
|
|
837
|
-
var a = i.content[1], o = i.content[3];
|
|
838
|
-
if (a && o && a.type === "code-language" && o.type === "code-block" && typeof a.content == "string") {
|
|
839
|
-
var s = a.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
840
|
-
s = (/[a-z][\w-]*/i.exec(s) || [""])[0].toLowerCase();
|
|
841
|
-
var c = "language-" + s;
|
|
842
|
-
o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, c] : o.alias.push(c) : o.alias = [c];
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
t(e.tokens);
|
|
847
|
-
}), e.hooks.add("wrap", function(t) {
|
|
848
|
-
if (t.type === "code-block") {
|
|
849
|
-
for (var n = "", r = 0, i = t.classes.length; r < i; r++) {
|
|
850
|
-
var a = t.classes[r], o = /language-(.+)/.exec(a);
|
|
851
|
-
if (o) {
|
|
852
|
-
n = o[1];
|
|
853
|
-
break;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
var s = e.languages[n];
|
|
857
|
-
if (s) t.content = e.highlight(l(t.content), s, n);
|
|
858
|
-
else if (n && n !== "none" && e.plugins.autoloader) {
|
|
859
|
-
var c = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 0x2386f26fc10000);
|
|
860
|
-
t.attributes.id = c, e.plugins.autoloader.loadLanguages(n, function() {
|
|
861
|
-
var t = document.getElementById(c);
|
|
862
|
-
t && (t.innerHTML = e.highlight(t.textContent, e.languages[n], n));
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
});
|
|
867
|
-
var o = RegExp(e.languages.markup.tag.pattern.source, "gi"), s = {
|
|
868
|
-
amp: "&",
|
|
869
|
-
lt: "<",
|
|
870
|
-
gt: ">",
|
|
871
|
-
quot: "\""
|
|
872
|
-
}, c = String.fromCodePoint || String.fromCharCode;
|
|
873
|
-
function l(e) {
|
|
874
|
-
var t = e.replace(o, "");
|
|
875
|
-
return t = t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(e, t) {
|
|
876
|
-
return t = t.toLowerCase(), t[0] === "#" ? c(t[1] === "x" ? parseInt(t.slice(2), 16) : Number(t.slice(1))) : s[t] || e;
|
|
877
|
-
}), t;
|
|
878
|
-
}
|
|
879
|
-
e.languages.md = e.languages.markdown;
|
|
880
|
-
})(Prism), (function(e) {
|
|
881
|
-
var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", i = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g, function() {
|
|
882
|
-
return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]";
|
|
883
|
-
}), a = "\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^'\\\\\\r\\n]|\\\\.)*'";
|
|
884
|
-
function o(e, t) {
|
|
885
|
-
t = (t || "").replace(/m/g, "") + "m";
|
|
886
|
-
var n = "([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))".replace(/<<prop>>/g, function() {
|
|
887
|
-
return r;
|
|
888
|
-
}).replace(/<<value>>/g, function() {
|
|
889
|
-
return e;
|
|
890
|
-
});
|
|
891
|
-
return RegExp(n, t);
|
|
892
|
-
}
|
|
893
|
-
e.languages.yaml = {
|
|
894
|
-
scalar: {
|
|
895
|
-
pattern: RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)".replace(/<<prop>>/g, function() {
|
|
896
|
-
return r;
|
|
897
|
-
})),
|
|
898
|
-
lookbehind: !0,
|
|
899
|
-
alias: "string"
|
|
900
|
-
},
|
|
901
|
-
comment: /#.*/,
|
|
902
|
-
key: {
|
|
903
|
-
pattern: RegExp("((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g, function() {
|
|
904
|
-
return r;
|
|
905
|
-
}).replace(/<<key>>/g, function() {
|
|
906
|
-
return "(?:" + i + "|" + a + ")";
|
|
907
|
-
})),
|
|
908
|
-
lookbehind: !0,
|
|
909
|
-
greedy: !0,
|
|
910
|
-
alias: "atrule"
|
|
911
|
-
},
|
|
912
|
-
directive: {
|
|
913
|
-
pattern: /(^[ \t]*)%.+/m,
|
|
914
|
-
lookbehind: !0,
|
|
915
|
-
alias: "important"
|
|
916
|
-
},
|
|
917
|
-
datetime: {
|
|
918
|
-
pattern: o("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),
|
|
919
|
-
lookbehind: !0,
|
|
920
|
-
alias: "number"
|
|
921
|
-
},
|
|
922
|
-
boolean: {
|
|
923
|
-
pattern: o("false|true", "i"),
|
|
924
|
-
lookbehind: !0,
|
|
925
|
-
alias: "important"
|
|
926
|
-
},
|
|
927
|
-
null: {
|
|
928
|
-
pattern: o("null|~", "i"),
|
|
929
|
-
lookbehind: !0,
|
|
930
|
-
alias: "important"
|
|
931
|
-
},
|
|
932
|
-
string: {
|
|
933
|
-
pattern: o(a),
|
|
934
|
-
lookbehind: !0,
|
|
935
|
-
greedy: !0
|
|
936
|
-
},
|
|
937
|
-
number: {
|
|
938
|
-
pattern: o("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "i"),
|
|
939
|
-
lookbehind: !0
|
|
940
|
-
},
|
|
941
|
-
tag: n,
|
|
942
|
-
important: t,
|
|
943
|
-
punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
|
|
944
|
-
}, e.languages.yml = e.languages.yaml;
|
|
945
|
-
})(Prism), (function(e) {
|
|
946
|
-
var t = "\\\\[\\r\\n](?:\\s|\\\\[\\r\\n]|#.*(?!.))*(?![\\s#]|\\\\[\\r\\n])", n = "(?:[ \\t]+(?![ \\t])(?:<SP_BS>)?|<SP_BS>)".replace(/<SP_BS>/g, function() {
|
|
947
|
-
return t;
|
|
948
|
-
}), r = "\"(?:[^\"\\\\\\r\\n]|\\\\(?:\\r\\n|[\\s\\S]))*\"|'(?:[^'\\\\\\r\\n]|\\\\(?:\\r\\n|[\\s\\S]))*'", i = "--[\\w-]+=(?:<STR>|(?![\"'])(?:[^\\s\\\\]|\\\\.)+)".replace(/<STR>/g, function() {
|
|
949
|
-
return r;
|
|
950
|
-
}), a = {
|
|
951
|
-
pattern: RegExp(r),
|
|
952
|
-
greedy: !0
|
|
953
|
-
}, o = {
|
|
954
|
-
pattern: /(^[ \t]*)#.*/m,
|
|
955
|
-
lookbehind: !0,
|
|
956
|
-
greedy: !0
|
|
957
|
-
};
|
|
958
|
-
function s(e, t) {
|
|
959
|
-
return e = e.replace(/<OPT>/g, function() {
|
|
960
|
-
return i;
|
|
961
|
-
}).replace(/<SP>/g, function() {
|
|
962
|
-
return n;
|
|
963
|
-
}), RegExp(e, t);
|
|
964
|
-
}
|
|
965
|
-
e.languages.docker = {
|
|
966
|
-
instruction: {
|
|
967
|
-
pattern: /(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,
|
|
968
|
-
lookbehind: !0,
|
|
969
|
-
greedy: !0,
|
|
970
|
-
inside: {
|
|
971
|
-
options: {
|
|
972
|
-
pattern: s("(^(?:ONBUILD<SP>)?\\w+<SP>)<OPT>(?:<SP><OPT>)*", "i"),
|
|
973
|
-
lookbehind: !0,
|
|
974
|
-
greedy: !0,
|
|
975
|
-
inside: {
|
|
976
|
-
property: {
|
|
977
|
-
pattern: /(^|\s)--[\w-]+/,
|
|
978
|
-
lookbehind: !0
|
|
979
|
-
},
|
|
980
|
-
string: [a, {
|
|
981
|
-
pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/,
|
|
982
|
-
lookbehind: !0
|
|
983
|
-
}],
|
|
984
|
-
operator: /\\$/m,
|
|
985
|
-
punctuation: /=/
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
keyword: [
|
|
989
|
-
{
|
|
990
|
-
pattern: s("(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\\b", "i"),
|
|
991
|
-
lookbehind: !0,
|
|
992
|
-
greedy: !0
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
pattern: s("(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \\t\\\\]+<SP>)AS", "i"),
|
|
996
|
-
lookbehind: !0,
|
|
997
|
-
greedy: !0
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
pattern: s("(^ONBUILD<SP>)\\w+", "i"),
|
|
1001
|
-
lookbehind: !0,
|
|
1002
|
-
greedy: !0
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
pattern: /^\w+/,
|
|
1006
|
-
greedy: !0
|
|
1007
|
-
}
|
|
1008
|
-
],
|
|
1009
|
-
comment: o,
|
|
1010
|
-
string: a,
|
|
1011
|
-
variable: /\$(?:\w+|\{[^{}"'\\]*\})/,
|
|
1012
|
-
operator: /\\$/m
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
comment: o
|
|
1016
|
-
}, e.languages.dockerfile = e.languages.docker;
|
|
1017
|
-
})(Prism);
|
|
1018
|
-
//#endregion
|
|
1019
|
-
//#region src/components/select/index.tsx
|
|
1020
|
-
var N = M.Root, P = M.Group, F = M.Value, I = a.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ A(M.Trigger, {
|
|
1021
|
-
ref: i,
|
|
1022
|
-
className: e("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", t),
|
|
1023
|
-
...r,
|
|
1024
|
-
children: [n, /* @__PURE__ */ k(M.Icon, {
|
|
1025
|
-
asChild: !0,
|
|
1026
|
-
children: /* @__PURE__ */ k(d, { className: "h-4 w-4 opacity-50" })
|
|
1027
|
-
})]
|
|
1028
|
-
}));
|
|
1029
|
-
I.displayName = M.Trigger.displayName;
|
|
1030
|
-
var L = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ k(M.ScrollUpButton, {
|
|
1031
|
-
ref: r,
|
|
1032
|
-
className: e("flex cursor-default items-center justify-center py-1", t),
|
|
1033
|
-
...n,
|
|
1034
|
-
children: /* @__PURE__ */ k(p, { className: "h-4 w-4" })
|
|
1035
|
-
}));
|
|
1036
|
-
L.displayName = M.ScrollUpButton.displayName;
|
|
1037
|
-
var R = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ k(M.ScrollDownButton, {
|
|
1038
|
-
ref: r,
|
|
1039
|
-
className: e("flex cursor-default items-center justify-center py-1", t),
|
|
1040
|
-
...n,
|
|
1041
|
-
children: /* @__PURE__ */ k(d, { className: "h-4 w-4" })
|
|
1042
|
-
}));
|
|
1043
|
-
R.displayName = M.ScrollDownButton.displayName;
|
|
1044
|
-
var z = a.forwardRef(({ className: t, children: n, position: r = "popper", ...i }, a) => /* @__PURE__ */ k(M.Portal, { children: /* @__PURE__ */ A(M.Content, {
|
|
1045
|
-
ref: a,
|
|
1046
|
-
className: e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
|
|
1047
|
-
position: r,
|
|
1048
|
-
...i,
|
|
1049
|
-
children: [
|
|
1050
|
-
/* @__PURE__ */ k(L, {}),
|
|
1051
|
-
/* @__PURE__ */ k(M.Viewport, {
|
|
1052
|
-
className: e("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
1053
|
-
children: n
|
|
1054
|
-
}),
|
|
1055
|
-
/* @__PURE__ */ k(R, {})
|
|
1056
|
-
]
|
|
1057
|
-
}) }));
|
|
1058
|
-
z.displayName = M.Content.displayName;
|
|
1059
|
-
var B = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ k(M.Label, {
|
|
1060
|
-
ref: r,
|
|
1061
|
-
className: e("py-1.5 pl-8 pr-2 text-sm font-semibold", t),
|
|
1062
|
-
...n
|
|
1063
|
-
}));
|
|
1064
|
-
B.displayName = M.Label.displayName;
|
|
1065
|
-
var V = a.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ A(M.Item, {
|
|
1066
|
-
ref: i,
|
|
1067
|
-
className: e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
1068
|
-
...r,
|
|
1069
|
-
children: [/* @__PURE__ */ k("span", {
|
|
1070
|
-
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1071
|
-
children: /* @__PURE__ */ k(M.ItemIndicator, { children: /* @__PURE__ */ k(l, { className: "h-4 w-4" }) })
|
|
1072
|
-
}), /* @__PURE__ */ k(M.ItemText, { children: n })]
|
|
1073
|
-
}));
|
|
1074
|
-
V.displayName = M.Item.displayName;
|
|
1075
|
-
var H = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ k(M.Separator, {
|
|
1076
|
-
ref: r,
|
|
1077
|
-
className: e("-mx-1 my-1 h-px bg-muted", t),
|
|
1078
|
-
...n
|
|
1079
|
-
}));
|
|
1080
|
-
H.displayName = M.Separator.displayName;
|
|
1081
|
-
//#endregion
|
|
1082
|
-
//#region src/components/waka-doc-callout/index.tsx
|
|
1083
|
-
var U = {
|
|
1084
|
-
info: {
|
|
1085
|
-
icon: x,
|
|
1086
|
-
borderColor: "border-l-blue-500",
|
|
1087
|
-
bgColor: "bg-blue-500/5",
|
|
1088
|
-
iconColor: "text-blue-500",
|
|
1089
|
-
titleColor: "text-blue-700 dark:text-blue-400"
|
|
1090
|
-
},
|
|
1091
|
-
warning: {
|
|
1092
|
-
icon: s,
|
|
1093
|
-
borderColor: "border-l-amber-500",
|
|
1094
|
-
bgColor: "bg-amber-500/5",
|
|
1095
|
-
iconColor: "text-amber-500",
|
|
1096
|
-
titleColor: "text-amber-700 dark:text-amber-400"
|
|
1097
|
-
},
|
|
1098
|
-
danger: {
|
|
1099
|
-
icon: D,
|
|
1100
|
-
borderColor: "border-l-red-500",
|
|
1101
|
-
bgColor: "bg-red-500/5",
|
|
1102
|
-
iconColor: "text-red-500",
|
|
1103
|
-
titleColor: "text-red-700 dark:text-red-400"
|
|
1104
|
-
},
|
|
1105
|
-
tip: {
|
|
1106
|
-
icon: S,
|
|
1107
|
-
borderColor: "border-l-emerald-500",
|
|
1108
|
-
bgColor: "bg-emerald-500/5",
|
|
1109
|
-
iconColor: "text-emerald-500",
|
|
1110
|
-
titleColor: "text-emerald-700 dark:text-emerald-400"
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
function W({ type: t = "info", title: n, children: r, className: i }) {
|
|
1114
|
-
let a = U[t], o = a.icon;
|
|
1115
|
-
return /* @__PURE__ */ k("div", {
|
|
1116
|
-
className: e("my-4 rounded-r-lg border-l-4 p-4 backdrop-blur-sm", a.borderColor, a.bgColor, i),
|
|
1117
|
-
children: /* @__PURE__ */ A("div", {
|
|
1118
|
-
className: "flex gap-3",
|
|
1119
|
-
children: [/* @__PURE__ */ k(o, { className: e("mt-0.5 h-5 w-5 shrink-0", a.iconColor) }), /* @__PURE__ */ A("div", {
|
|
1120
|
-
className: "min-w-0 flex-1",
|
|
1121
|
-
children: [n && /* @__PURE__ */ k("p", {
|
|
1122
|
-
className: e("mb-1 font-semibold", a.titleColor),
|
|
1123
|
-
children: n
|
|
1124
|
-
}), /* @__PURE__ */ k("div", {
|
|
1125
|
-
className: "text-sm text-foreground/80 [&>p]:mb-2 [&>p:last-child]:mb-0",
|
|
1126
|
-
children: r
|
|
1127
|
-
})]
|
|
1128
|
-
})]
|
|
1129
|
-
})
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
//#endregion
|
|
1133
|
-
//#region src/components/waka-doc-code-block/index.tsx
|
|
1134
|
-
function G({ code: t, language: r, filename: i, showLineNumbers: o = !1, highlightLines: s = [], className: c }) {
|
|
1135
|
-
let [u, d] = a.useState(!1), f = t.split("\n");
|
|
1136
|
-
return /* @__PURE__ */ A("div", {
|
|
1137
|
-
className: e("group relative my-4 overflow-hidden rounded-lg", "border border-border/50", "bg-muted/30 backdrop-blur-sm", c),
|
|
1138
|
-
children: [/* @__PURE__ */ A("div", {
|
|
1139
|
-
className: "flex items-center justify-between border-b border-border/50 bg-muted/50 px-4 py-2",
|
|
1140
|
-
children: [/* @__PURE__ */ A("div", {
|
|
1141
|
-
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
1142
|
-
children: [/* @__PURE__ */ k(_, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ k("span", {
|
|
1143
|
-
className: "font-medium",
|
|
1144
|
-
children: i || r?.toUpperCase() || "CODE"
|
|
1145
|
-
})]
|
|
1146
|
-
}), /* @__PURE__ */ k(n, {
|
|
1147
|
-
variant: "ghost",
|
|
1148
|
-
size: "icon",
|
|
1149
|
-
className: "h-7 w-7 opacity-0 transition-opacity group-hover:opacity-100",
|
|
1150
|
-
onClick: async () => {
|
|
1151
|
-
try {
|
|
1152
|
-
await navigator.clipboard.writeText(t), d(!0), setTimeout(() => d(!1), 2e3);
|
|
1153
|
-
} catch {}
|
|
1154
|
-
},
|
|
1155
|
-
children: u ? /* @__PURE__ */ k(l, { className: "h-3.5 w-3.5 text-emerald-500" }) : /* @__PURE__ */ k(m, { className: "h-3.5 w-3.5" })
|
|
1156
|
-
})]
|
|
1157
|
-
}), /* @__PURE__ */ k("div", {
|
|
1158
|
-
className: "overflow-x-auto",
|
|
1159
|
-
children: /* @__PURE__ */ k("pre", {
|
|
1160
|
-
className: "p-4 text-sm leading-relaxed",
|
|
1161
|
-
children: /* @__PURE__ */ k("code", { children: f.map((t, n) => {
|
|
1162
|
-
let i = t;
|
|
1163
|
-
try {
|
|
1164
|
-
r && j.languages[r] && (i = j.highlight(t, j.languages[r], r));
|
|
1165
|
-
} catch {}
|
|
1166
|
-
return /* @__PURE__ */ A("div", {
|
|
1167
|
-
className: e("flex", s.includes(n + 1) && "bg-primary/10 -mx-4 px-4 border-l-2 border-primary"),
|
|
1168
|
-
children: [o && /* @__PURE__ */ k("span", {
|
|
1169
|
-
className: "mr-4 inline-block w-8 select-none text-right text-muted-foreground/50",
|
|
1170
|
-
children: n + 1
|
|
1171
|
-
}), /* @__PURE__ */ k("span", { dangerouslySetInnerHTML: { __html: i } })]
|
|
1172
|
-
}, n);
|
|
1173
|
-
}) })
|
|
1174
|
-
})
|
|
1175
|
-
})]
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
//#endregion
|
|
1179
|
-
//#region src/components/waka-doc-toc/index.tsx
|
|
1180
|
-
function K({ items: t, activeId: n, className: r }) {
|
|
1181
|
-
let [i, o] = a.useState(n || "");
|
|
1182
|
-
a.useEffect(() => {
|
|
1183
|
-
if (n !== void 0) return;
|
|
1184
|
-
let e = new IntersectionObserver((e) => {
|
|
1185
|
-
for (let t of e) if (t.isIntersecting) {
|
|
1186
|
-
o(t.target.id);
|
|
1187
|
-
break;
|
|
1188
|
-
}
|
|
1189
|
-
}, {
|
|
1190
|
-
rootMargin: "-80px 0px -80% 0px",
|
|
1191
|
-
threshold: 0
|
|
1192
|
-
});
|
|
1193
|
-
for (let n of t) {
|
|
1194
|
-
let t = document.getElementById(n.id);
|
|
1195
|
-
t && e.observe(t);
|
|
1196
|
-
}
|
|
1197
|
-
return () => e.disconnect();
|
|
1198
|
-
}, [t, n]);
|
|
1199
|
-
let s = n ?? i;
|
|
1200
|
-
return t.length === 0 ? null : /* @__PURE__ */ A("nav", {
|
|
1201
|
-
className: e("sticky top-24 max-h-[calc(100vh-8rem)] overflow-y-auto", r),
|
|
1202
|
-
children: [/* @__PURE__ */ k("p", {
|
|
1203
|
-
className: "mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground",
|
|
1204
|
-
children: "Sur cette page"
|
|
1205
|
-
}), /* @__PURE__ */ k("ul", {
|
|
1206
|
-
className: "relative space-y-1 border-l border-border/50",
|
|
1207
|
-
children: t.map((t) => {
|
|
1208
|
-
let n = s === t.id;
|
|
1209
|
-
return /* @__PURE__ */ k("li", { children: /* @__PURE__ */ A("a", {
|
|
1210
|
-
href: `#${t.id}`,
|
|
1211
|
-
onClick: (e) => {
|
|
1212
|
-
e.preventDefault(), document.getElementById(t.id)?.scrollIntoView({ behavior: "smooth" }), o(t.id);
|
|
1213
|
-
},
|
|
1214
|
-
className: e("relative block py-1 text-sm transition-all duration-200", t.level === 2 && "pl-4", t.level === 3 && "pl-7", t.level === 4 && "pl-10", n ? "font-medium text-primary" : "text-muted-foreground hover:text-foreground"),
|
|
1215
|
-
children: [n && /* @__PURE__ */ k("span", { className: "absolute -left-px top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-full bg-primary shadow-[0_0_8px_var(--color-primary)]" }), t.text]
|
|
1216
|
-
}) }, t.id);
|
|
1217
|
-
})
|
|
1218
|
-
})]
|
|
1219
|
-
});
|
|
1220
|
-
}
|
|
1221
|
-
//#endregion
|
|
1222
|
-
//#region src/components/waka-doc-nav/index.tsx
|
|
1223
|
-
function q({ items: t, activeId: n, onItemClick: r, className: i }) {
|
|
1224
|
-
return /* @__PURE__ */ k("nav", {
|
|
1225
|
-
"aria-label": "Documentation",
|
|
1226
|
-
className: e("space-y-1", i),
|
|
1227
|
-
children: /* @__PURE__ */ k("ul", {
|
|
1228
|
-
className: "space-y-1 list-none p-0 m-0",
|
|
1229
|
-
children: t.map((e) => /* @__PURE__ */ k(J, {
|
|
1230
|
-
item: e,
|
|
1231
|
-
activeId: n,
|
|
1232
|
-
onItemClick: r,
|
|
1233
|
-
depth: 0
|
|
1234
|
-
}, e.id))
|
|
1235
|
-
})
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
function J({ item: t, activeId: n, onItemClick: r, depth: i }) {
|
|
1239
|
-
let o = t.children && t.children.length > 0, s = n === t.id, c = o && Y(t.children, n), [l, u] = a.useState(c);
|
|
1240
|
-
a.useEffect(() => {
|
|
1241
|
-
c && u(!0);
|
|
1242
|
-
}, [c]);
|
|
1243
|
-
let d = () => {
|
|
1244
|
-
o && u((e) => !e), r?.(t);
|
|
1245
|
-
}, p = o ? l ? b : y : v;
|
|
1246
|
-
return /* @__PURE__ */ A("li", { children: [/* @__PURE__ */ A("button", {
|
|
1247
|
-
type: "button",
|
|
1248
|
-
onClick: d,
|
|
1249
|
-
"aria-expanded": o ? l : void 0,
|
|
1250
|
-
"aria-current": s ? "page" : void 0,
|
|
1251
|
-
className: e("group flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm transition-all duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", s ? "bg-primary/10 font-medium text-primary" : "text-muted-foreground hover:bg-muted/50 hover:text-foreground"),
|
|
1252
|
-
style: { paddingLeft: `${i * 12 + 12}px` },
|
|
1253
|
-
children: [
|
|
1254
|
-
o && /* @__PURE__ */ k(f, {
|
|
1255
|
-
"aria-hidden": "true",
|
|
1256
|
-
className: e("h-3.5 w-3.5 shrink-0 transition-transform duration-200", l && "rotate-90")
|
|
1257
|
-
}),
|
|
1258
|
-
/* @__PURE__ */ k("span", {
|
|
1259
|
-
className: "shrink-0",
|
|
1260
|
-
"aria-hidden": "true",
|
|
1261
|
-
children: t.icon || /* @__PURE__ */ k(p, { className: "h-4 w-4" })
|
|
1262
|
-
}),
|
|
1263
|
-
/* @__PURE__ */ k("span", {
|
|
1264
|
-
className: "truncate",
|
|
1265
|
-
children: t.label
|
|
1266
|
-
}),
|
|
1267
|
-
t.badge && /* @__PURE__ */ k("span", {
|
|
1268
|
-
className: "ml-auto shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",
|
|
1269
|
-
"aria-label": `${t.badge} (badge)`,
|
|
1270
|
-
children: t.badge
|
|
1271
|
-
})
|
|
1272
|
-
]
|
|
1273
|
-
}), o && l && /* @__PURE__ */ k("ul", {
|
|
1274
|
-
className: "mt-0.5 space-y-0.5 list-none p-0 m-0",
|
|
1275
|
-
children: t.children.map((e) => /* @__PURE__ */ k(J, {
|
|
1276
|
-
item: e,
|
|
1277
|
-
activeId: n,
|
|
1278
|
-
onItemClick: r,
|
|
1279
|
-
depth: i + 1
|
|
1280
|
-
}, e.id))
|
|
1281
|
-
})] });
|
|
1282
|
-
}
|
|
1283
|
-
function Y(e, t) {
|
|
1284
|
-
if (!t) return !1;
|
|
1285
|
-
for (let n of e) if (n.id === t || n.children && Y(n.children, t)) return !0;
|
|
1286
|
-
return !1;
|
|
1287
|
-
}
|
|
1288
|
-
//#endregion
|
|
1289
|
-
//#region src/components/waka-doc-search/index.tsx
|
|
1290
|
-
function X({ pages: t, onSelect: n, placeholder: r = "Rechercher dans la documentation...", className: o }) {
|
|
1291
|
-
let [s, c] = a.useState(""), [l, u] = a.useState([]), [d, f] = a.useState(!1), [p, m] = a.useState(0), h = a.useRef(null);
|
|
1292
|
-
return a.useEffect(() => {
|
|
1293
|
-
let e = (e) => {
|
|
1294
|
-
(e.metaKey || e.ctrlKey) && e.key === "k" && (e.preventDefault(), h.current?.focus(), f(!0)), e.key === "Escape" && (f(!1), c(""));
|
|
1295
|
-
};
|
|
1296
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
1297
|
-
}, []), a.useEffect(() => {
|
|
1298
|
-
if (!s.trim()) {
|
|
1299
|
-
u([]);
|
|
1300
|
-
return;
|
|
1301
|
-
}
|
|
1302
|
-
let e = s.toLowerCase(), n = [];
|
|
1303
|
-
for (let r of t) {
|
|
1304
|
-
let t = r.title.toLowerCase().includes(e), i = r.content.toLowerCase().indexOf(e);
|
|
1305
|
-
if (t || i !== -1) {
|
|
1306
|
-
let e = Math.max(0, i - 40), t = Math.min(r.content.length, i + s.length + 40), a = i === -1 ? r.content.slice(0, 80) + "..." : (e > 0 ? "..." : "") + r.content.slice(e, t) + (t < r.content.length ? "..." : "");
|
|
1307
|
-
n.push({
|
|
1308
|
-
page: r,
|
|
1309
|
-
snippet: a
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
u(n.slice(0, 8)), m(0);
|
|
1314
|
-
}, [s, t]), /* @__PURE__ */ A("div", {
|
|
1315
|
-
className: e("relative", o),
|
|
1316
|
-
children: [
|
|
1317
|
-
/* @__PURE__ */ A("div", {
|
|
1318
|
-
className: "relative",
|
|
1319
|
-
children: [
|
|
1320
|
-
/* @__PURE__ */ k(T, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1321
|
-
/* @__PURE__ */ k(i, {
|
|
1322
|
-
ref: h,
|
|
1323
|
-
value: s,
|
|
1324
|
-
onChange: (e) => {
|
|
1325
|
-
c(e.target.value), f(!0);
|
|
1326
|
-
},
|
|
1327
|
-
onFocus: () => s && f(!0),
|
|
1328
|
-
onBlur: () => setTimeout(() => f(!1), 200),
|
|
1329
|
-
onKeyDown: (e) => {
|
|
1330
|
-
e.key === "ArrowDown" ? (e.preventDefault(), m((e) => Math.min(e + 1, l.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), m((e) => Math.max(e - 1, 0))) : e.key === "Enter" && l[p] && (n?.(l[p].page), f(!1), c(""));
|
|
1331
|
-
},
|
|
1332
|
-
placeholder: r,
|
|
1333
|
-
className: "pl-9 pr-16"
|
|
1334
|
-
}),
|
|
1335
|
-
/* @__PURE__ */ k("kbd", {
|
|
1336
|
-
className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 rounded border border-border/50 bg-muted/50 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground",
|
|
1337
|
-
children: "Ctrl K"
|
|
1338
|
-
})
|
|
1339
|
-
]
|
|
1340
|
-
}),
|
|
1341
|
-
d && l.length > 0 && /* @__PURE__ */ k("div", {
|
|
1342
|
-
className: "absolute top-full z-50 mt-2 w-full overflow-hidden rounded-lg border border-border/50 bg-background/95 shadow-lg backdrop-blur-md",
|
|
1343
|
-
children: l.map((t, r) => /* @__PURE__ */ A("button", {
|
|
1344
|
-
type: "button",
|
|
1345
|
-
onMouseDown: () => {
|
|
1346
|
-
n?.(t.page), f(!1), c("");
|
|
1347
|
-
},
|
|
1348
|
-
className: e("flex w-full flex-col gap-1 px-4 py-3 text-left transition-colors", r === p ? "bg-primary/10" : "hover:bg-muted/50", r > 0 && "border-t border-border/30"),
|
|
1349
|
-
children: [
|
|
1350
|
-
/* @__PURE__ */ k("span", {
|
|
1351
|
-
className: "text-sm font-medium",
|
|
1352
|
-
children: t.page.title
|
|
1353
|
-
}),
|
|
1354
|
-
t.page.category && /* @__PURE__ */ k("span", {
|
|
1355
|
-
className: "text-xs text-muted-foreground",
|
|
1356
|
-
children: t.page.category
|
|
1357
|
-
}),
|
|
1358
|
-
/* @__PURE__ */ k("span", {
|
|
1359
|
-
className: "line-clamp-1 text-xs text-muted-foreground/70",
|
|
1360
|
-
children: t.snippet
|
|
1361
|
-
})
|
|
1362
|
-
]
|
|
1363
|
-
}, t.page.id))
|
|
1364
|
-
}),
|
|
1365
|
-
d && s && l.length === 0 && /* @__PURE__ */ A("div", {
|
|
1366
|
-
className: "absolute top-full z-50 mt-2 w-full rounded-lg border border-border/50 bg-background/95 p-4 text-center text-sm text-muted-foreground shadow-lg backdrop-blur-md",
|
|
1367
|
-
children: [
|
|
1368
|
-
"Aucun résultat pour \"",
|
|
1369
|
-
s,
|
|
1370
|
-
"\""
|
|
1371
|
-
]
|
|
1372
|
-
})
|
|
1373
|
-
]
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
//#endregion
|
|
1377
|
-
//#region src/components/waka-doc-version/index.tsx
|
|
1378
|
-
var Z = {
|
|
1379
|
-
latest: {
|
|
1380
|
-
label: "Latest",
|
|
1381
|
-
variant: "default"
|
|
1382
|
-
},
|
|
1383
|
-
stable: {
|
|
1384
|
-
label: "Stable",
|
|
1385
|
-
variant: "secondary"
|
|
1386
|
-
},
|
|
1387
|
-
beta: {
|
|
1388
|
-
label: "Beta",
|
|
1389
|
-
variant: "outline"
|
|
1390
|
-
},
|
|
1391
|
-
rc: {
|
|
1392
|
-
label: "RC",
|
|
1393
|
-
variant: "outline"
|
|
1394
|
-
},
|
|
1395
|
-
deprecated: {
|
|
1396
|
-
label: "Deprecated",
|
|
1397
|
-
variant: "destructive"
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
function Q({ versions: n, current: r, onVersionChange: i, className: a }) {
|
|
1401
|
-
return /* @__PURE__ */ A("div", {
|
|
1402
|
-
className: e("flex items-center gap-2", a),
|
|
1403
|
-
children: [/* @__PURE__ */ k(E, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ A(N, {
|
|
1404
|
-
value: r,
|
|
1405
|
-
onValueChange: i,
|
|
1406
|
-
children: [/* @__PURE__ */ k(I, {
|
|
1407
|
-
className: "h-8 w-auto min-w-[120px] text-xs",
|
|
1408
|
-
children: /* @__PURE__ */ k(F, {})
|
|
1409
|
-
}), /* @__PURE__ */ k(z, { children: n.map((e) => /* @__PURE__ */ k(V, {
|
|
1410
|
-
value: e.id,
|
|
1411
|
-
children: /* @__PURE__ */ A("span", {
|
|
1412
|
-
className: "flex items-center gap-2",
|
|
1413
|
-
children: [e.label, e.status && /* @__PURE__ */ k(t, {
|
|
1414
|
-
variant: Z[e.status].variant,
|
|
1415
|
-
className: "text-[10px] px-1.5 py-0",
|
|
1416
|
-
children: Z[e.status].label
|
|
1417
|
-
})]
|
|
1418
|
-
})
|
|
1419
|
-
}, e.id)) })]
|
|
1420
|
-
})]
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
//#endregion
|
|
1424
|
-
//#region src/components/waka-doc-toolbar/index.tsx
|
|
1425
|
-
function ee({ content: t, mode: i = "view", canEdit: s = !1, onModeChange: c, saveStatus: d = "idle", className: f }) {
|
|
1426
|
-
let [p, _] = a.useState(!1);
|
|
1427
|
-
return /* @__PURE__ */ A("div", {
|
|
1428
|
-
className: e("flex items-center gap-1 rounded-lg border border-border/50 bg-background/80 px-2 py-1 backdrop-blur-sm", f),
|
|
1429
|
-
children: [
|
|
1430
|
-
/* @__PURE__ */ A(n, {
|
|
1431
|
-
variant: "ghost",
|
|
1432
|
-
size: "sm",
|
|
1433
|
-
className: "h-7 gap-1.5 text-xs",
|
|
1434
|
-
onClick: async () => {
|
|
1435
|
-
try {
|
|
1436
|
-
await navigator.clipboard.writeText(t), _(!0), setTimeout(() => _(!1), 2e3);
|
|
1437
|
-
} catch {}
|
|
1438
|
-
},
|
|
1439
|
-
children: [p ? /* @__PURE__ */ k(l, { className: "h-3.5 w-3.5 text-emerald-500" }) : /* @__PURE__ */ k(m, { className: "h-3.5 w-3.5" }), p ? "Copié" : "Copier"]
|
|
1440
|
-
}),
|
|
1441
|
-
/* @__PURE__ */ k(r, {
|
|
1442
|
-
orientation: "vertical",
|
|
1443
|
-
className: "mx-1 h-5"
|
|
1444
|
-
}),
|
|
1445
|
-
/* @__PURE__ */ A(n, {
|
|
1446
|
-
variant: "ghost",
|
|
1447
|
-
size: "sm",
|
|
1448
|
-
className: "h-7 gap-1.5 text-xs",
|
|
1449
|
-
onClick: () => {
|
|
1450
|
-
let e = new Blob([t], { type: "text/markdown" }), n = URL.createObjectURL(e), r = document.createElement("a");
|
|
1451
|
-
r.href = n, r.download = "document.md", r.click(), URL.revokeObjectURL(n);
|
|
1452
|
-
},
|
|
1453
|
-
children: [/* @__PURE__ */ k(h, { className: "h-3.5 w-3.5" }), ".md"]
|
|
1454
|
-
}),
|
|
1455
|
-
/* @__PURE__ */ A(n, {
|
|
1456
|
-
variant: "ghost",
|
|
1457
|
-
size: "sm",
|
|
1458
|
-
className: "h-7 gap-1.5 text-xs",
|
|
1459
|
-
onClick: async () => {
|
|
1460
|
-
try {
|
|
1461
|
-
let { default: e } = await import("jspdf"), n = new e(), r = n.splitTextToSize(t, 180);
|
|
1462
|
-
n.setFontSize(10), n.text(r, 15, 15), n.save("document.pdf");
|
|
1463
|
-
} catch {
|
|
1464
|
-
window.print();
|
|
1465
|
-
}
|
|
1466
|
-
},
|
|
1467
|
-
children: [/* @__PURE__ */ k(v, { className: "h-3.5 w-3.5" }), ".pdf"]
|
|
1468
|
-
}),
|
|
1469
|
-
s && /* @__PURE__ */ A(O, { children: [
|
|
1470
|
-
/* @__PURE__ */ k(r, {
|
|
1471
|
-
orientation: "vertical",
|
|
1472
|
-
className: "mx-1 h-5"
|
|
1473
|
-
}),
|
|
1474
|
-
/* @__PURE__ */ k(n, {
|
|
1475
|
-
variant: i === "edit" ? "secondary" : "ghost",
|
|
1476
|
-
size: "sm",
|
|
1477
|
-
className: "h-7 gap-1.5 text-xs",
|
|
1478
|
-
onClick: () => c?.(i === "edit" ? "view" : "edit"),
|
|
1479
|
-
children: i === "edit" ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(g, { className: "h-3.5 w-3.5" }), "Visualiser"] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(w, { className: "h-3.5 w-3.5" }), "Modifier"] })
|
|
1480
|
-
}),
|
|
1481
|
-
i === "edit" && d !== "idle" && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(r, {
|
|
1482
|
-
orientation: "vertical",
|
|
1483
|
-
className: "mx-1 h-5"
|
|
1484
|
-
}), /* @__PURE__ */ A("span", {
|
|
1485
|
-
className: "flex items-center gap-1 text-xs text-muted-foreground",
|
|
1486
|
-
children: [
|
|
1487
|
-
d === "saving" && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(C, { className: "h-3 w-3 animate-spin" }), "Sauvegarde..."] }),
|
|
1488
|
-
d === "saved" && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(u, { className: "h-3 w-3 text-emerald-500" }), "Sauvegardé"] }),
|
|
1489
|
-
d === "error" && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(o, { className: "h-3 w-3 text-destructive" }), "Erreur"] })
|
|
1490
|
-
]
|
|
1491
|
-
})] })
|
|
1492
|
-
] })
|
|
1493
|
-
]
|
|
1494
|
-
});
|
|
1495
|
-
}
|
|
1496
|
-
//#endregion
|
|
1497
|
-
//#region src/components/waka-doc-breadcrumb/index.tsx
|
|
1498
|
-
function te({ items: t, onItemClick: n, className: r }) {
|
|
1499
|
-
return t.length === 0 ? null : /* @__PURE__ */ A("nav", {
|
|
1500
|
-
className: e("flex items-center gap-1 text-sm", r),
|
|
1501
|
-
children: [/* @__PURE__ */ k(c, { className: "h-4 w-4 text-muted-foreground" }), t.map((e, r) => /* @__PURE__ */ A(a.Fragment, { children: [r > 0 && /* @__PURE__ */ k(f, { className: "h-3 w-3 text-muted-foreground/50" }), r === t.length - 1 ? /* @__PURE__ */ k("span", {
|
|
1502
|
-
className: "font-medium text-foreground",
|
|
1503
|
-
children: e.label
|
|
1504
|
-
}) : /* @__PURE__ */ k("button", {
|
|
1505
|
-
onClick: () => n?.(e),
|
|
1506
|
-
className: "text-muted-foreground transition-colors hover:text-foreground",
|
|
1507
|
-
children: e.label
|
|
1508
|
-
})] }, e.id))]
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
//#endregion
|
|
1512
|
-
//#region src/components/waka-doc-table/index.tsx
|
|
1513
|
-
function ne({ children: t, stickyHeader: n = !1, striped: r = !0, className: i }) {
|
|
1514
|
-
return /* @__PURE__ */ k("div", {
|
|
1515
|
-
className: e("my-4 overflow-x-auto rounded-lg border border-border/50", i),
|
|
1516
|
-
children: /* @__PURE__ */ k("table", {
|
|
1517
|
-
className: e("w-full text-sm", r && "[&_tbody_tr:nth-child(even)]:bg-muted/30", n && "[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10", "[&_thead]:bg-muted/50 [&_thead]:backdrop-blur-sm", "[&_th]:px-4 [&_th]:py-3 [&_th]:text-left [&_th]:font-semibold [&_th]:text-foreground/80", "[&_td]:px-4 [&_td]:py-3 [&_td]:text-foreground/70", "[&_tr]:border-b [&_tr]:border-border/30 [&_tbody_tr:last-child]:border-0", "[&_tbody_tr]:transition-colors [&_tbody_tr:hover]:bg-muted/50"),
|
|
1518
|
-
children: t
|
|
1519
|
-
})
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
//#endregion
|
|
1523
|
-
//#region src/components/waka-doc-renderer/index.tsx
|
|
1524
|
-
function re({ content: t, onHeadingsExtracted: n, className: r }) {
|
|
1525
|
-
let [i, o] = a.useState(null), [s, c] = a.useState(!1);
|
|
1526
|
-
if (a.useEffect(() => {
|
|
1527
|
-
(async () => {
|
|
1528
|
-
try {
|
|
1529
|
-
let [e, t, n, r] = await Promise.all([
|
|
1530
|
-
import("react-markdown"),
|
|
1531
|
-
import("remark-gfm"),
|
|
1532
|
-
import("rehype-slug"),
|
|
1533
|
-
import("rehype-raw")
|
|
1534
|
-
]);
|
|
1535
|
-
o({
|
|
1536
|
-
ReactMarkdown: e.default,
|
|
1537
|
-
remarkGfm: t.default || t,
|
|
1538
|
-
rehypeSlug: n.default || n,
|
|
1539
|
-
rehypeRaw: r.default || r
|
|
1540
|
-
});
|
|
1541
|
-
} catch {
|
|
1542
|
-
c(!0);
|
|
1543
|
-
}
|
|
1544
|
-
})();
|
|
1545
|
-
}, []), a.useEffect(() => {
|
|
1546
|
-
if (!n) return;
|
|
1547
|
-
let e = [], r = t.split("\n");
|
|
1548
|
-
for (let t of r) {
|
|
1549
|
-
let n = t.match(/^(#{2,4})\s+(.+)$/);
|
|
1550
|
-
if (n) {
|
|
1551
|
-
let t = n[1].length, r = n[2].replace(/[`*_~]/g, ""), i = r.toLowerCase().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-");
|
|
1552
|
-
e.push({
|
|
1553
|
-
id: i,
|
|
1554
|
-
text: r,
|
|
1555
|
-
level: t
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
n(e);
|
|
1560
|
-
}, [t, n]), s) return /* @__PURE__ */ k("div", {
|
|
1561
|
-
className: e("whitespace-pre-wrap font-mono text-sm", r),
|
|
1562
|
-
children: t
|
|
1563
|
-
});
|
|
1564
|
-
if (!i) return /* @__PURE__ */ A("div", {
|
|
1565
|
-
className: e("animate-pulse space-y-4", r),
|
|
1566
|
-
children: [
|
|
1567
|
-
/* @__PURE__ */ k("div", { className: "h-8 w-3/4 rounded bg-muted" }),
|
|
1568
|
-
/* @__PURE__ */ k("div", { className: "h-4 w-full rounded bg-muted" }),
|
|
1569
|
-
/* @__PURE__ */ k("div", { className: "h-4 w-5/6 rounded bg-muted" }),
|
|
1570
|
-
/* @__PURE__ */ k("div", { className: "h-4 w-4/5 rounded bg-muted" })
|
|
1571
|
-
]
|
|
1572
|
-
});
|
|
1573
|
-
let { ReactMarkdown: l, remarkGfm: u, rehypeSlug: d, rehypeRaw: f } = i;
|
|
1574
|
-
return /* @__PURE__ */ k("div", {
|
|
1575
|
-
className: e("waka-doc-renderer", r),
|
|
1576
|
-
children: /* @__PURE__ */ k(l, {
|
|
1577
|
-
remarkPlugins: [u],
|
|
1578
|
-
rehypePlugins: [d, f],
|
|
1579
|
-
components: {
|
|
1580
|
-
h1: ({ children: e, ...t }) => /* @__PURE__ */ k("h1", {
|
|
1581
|
-
className: "mb-4 mt-8 scroll-mt-24 text-3xl font-bold tracking-tight first:mt-0",
|
|
1582
|
-
...t,
|
|
1583
|
-
children: e
|
|
1584
|
-
}),
|
|
1585
|
-
h2: ({ children: e, ...t }) => /* @__PURE__ */ k("h2", {
|
|
1586
|
-
className: "mb-3 mt-8 scroll-mt-24 border-b border-border/30 pb-2 text-2xl font-semibold tracking-tight first:mt-0",
|
|
1587
|
-
...t,
|
|
1588
|
-
children: e
|
|
1589
|
-
}),
|
|
1590
|
-
h3: ({ children: e, ...t }) => /* @__PURE__ */ k("h3", {
|
|
1591
|
-
className: "mb-2 mt-6 scroll-mt-24 text-xl font-semibold tracking-tight",
|
|
1592
|
-
...t,
|
|
1593
|
-
children: e
|
|
1594
|
-
}),
|
|
1595
|
-
h4: ({ children: e, ...t }) => /* @__PURE__ */ k("h4", {
|
|
1596
|
-
className: "mb-2 mt-4 scroll-mt-24 text-lg font-medium",
|
|
1597
|
-
...t,
|
|
1598
|
-
children: e
|
|
1599
|
-
}),
|
|
1600
|
-
p: ({ children: e }) => /* @__PURE__ */ k("p", {
|
|
1601
|
-
className: "mb-4 leading-7 text-foreground/80",
|
|
1602
|
-
children: e
|
|
1603
|
-
}),
|
|
1604
|
-
a: ({ href: e, children: t }) => /* @__PURE__ */ k("a", {
|
|
1605
|
-
href: e,
|
|
1606
|
-
target: e?.startsWith("http") ? "_blank" : void 0,
|
|
1607
|
-
rel: e?.startsWith("http") ? "noopener noreferrer" : void 0,
|
|
1608
|
-
className: "font-medium text-primary underline decoration-primary/30 underline-offset-4 transition-colors hover:decoration-primary",
|
|
1609
|
-
children: t
|
|
1610
|
-
}),
|
|
1611
|
-
pre: ({ children: e }) => {
|
|
1612
|
-
let t = e;
|
|
1613
|
-
if (t?.props) {
|
|
1614
|
-
let e = t.props.className?.replace("language-", "") || "";
|
|
1615
|
-
return /* @__PURE__ */ k(G, {
|
|
1616
|
-
code: typeof t.props.children == "string" ? t.props.children.replace(/\n$/, "") : "",
|
|
1617
|
-
language: e,
|
|
1618
|
-
showLineNumbers: !0
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
return /* @__PURE__ */ k("pre", { children: e });
|
|
1622
|
-
},
|
|
1623
|
-
code: ({ children: e, className: t }) => t ? /* @__PURE__ */ k("code", {
|
|
1624
|
-
className: t,
|
|
1625
|
-
children: e
|
|
1626
|
-
}) : /* @__PURE__ */ k("code", {
|
|
1627
|
-
className: "rounded bg-muted px-1.5 py-0.5 text-sm font-mono text-primary",
|
|
1628
|
-
children: e
|
|
1629
|
-
}),
|
|
1630
|
-
blockquote: ({ children: e }) => {
|
|
1631
|
-
let t = $(e).match(/^\[!(info|warning|danger|tip)\]\s*\n?(.*)$/s);
|
|
1632
|
-
if (t) {
|
|
1633
|
-
let e = t[1], n = t[2];
|
|
1634
|
-
return /* @__PURE__ */ k(W, {
|
|
1635
|
-
type: e,
|
|
1636
|
-
children: /* @__PURE__ */ k("p", { children: n })
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
return /* @__PURE__ */ k("blockquote", {
|
|
1640
|
-
className: "my-4 border-l-4 border-primary/30 bg-muted/20 py-1 pl-4 italic text-foreground/70",
|
|
1641
|
-
children: e
|
|
1642
|
-
});
|
|
1643
|
-
},
|
|
1644
|
-
table: ({ children: t }) => /* @__PURE__ */ k("div", {
|
|
1645
|
-
className: "my-4 overflow-x-auto rounded-lg border border-border/50",
|
|
1646
|
-
children: /* @__PURE__ */ k("table", {
|
|
1647
|
-
className: e("w-full text-sm", "[&_thead]:bg-muted/50 [&_thead]:backdrop-blur-sm", "[&_th]:px-4 [&_th]:py-3 [&_th]:text-left [&_th]:font-semibold [&_th]:text-foreground/80", "[&_td]:px-4 [&_td]:py-3 [&_td]:text-foreground/70", "[&_tr]:border-b [&_tr]:border-border/30 [&_tbody_tr:last-child]:border-0", "[&_tbody_tr:nth-child(even)]:bg-muted/30", "[&_tbody_tr]:transition-colors [&_tbody_tr:hover]:bg-muted/50"),
|
|
1648
|
-
children: t
|
|
1649
|
-
})
|
|
1650
|
-
}),
|
|
1651
|
-
ul: ({ children: e }) => /* @__PURE__ */ k("ul", {
|
|
1652
|
-
className: "my-4 ml-6 list-disc space-y-2 text-foreground/80 marker:text-primary/50",
|
|
1653
|
-
children: e
|
|
1654
|
-
}),
|
|
1655
|
-
ol: ({ children: e }) => /* @__PURE__ */ k("ol", {
|
|
1656
|
-
className: "my-4 ml-6 list-decimal space-y-2 text-foreground/80 marker:text-primary/50",
|
|
1657
|
-
children: e
|
|
1658
|
-
}),
|
|
1659
|
-
li: ({ children: e }) => /* @__PURE__ */ k("li", {
|
|
1660
|
-
className: "leading-7",
|
|
1661
|
-
children: e
|
|
1662
|
-
}),
|
|
1663
|
-
hr: () => /* @__PURE__ */ k("hr", { className: "my-8 border-border/50" }),
|
|
1664
|
-
img: ({ src: e, alt: t }) => /* @__PURE__ */ k("img", {
|
|
1665
|
-
src: e,
|
|
1666
|
-
alt: t || "",
|
|
1667
|
-
className: "my-4 rounded-lg border border-border/50 shadow-sm"
|
|
1668
|
-
})
|
|
1669
|
-
},
|
|
1670
|
-
children: t
|
|
1671
|
-
})
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
function $(e) {
|
|
1675
|
-
return typeof e == "string" ? e : Array.isArray(e) ? e.map($).join("") : a.isValidElement(e) && e.props ? $(e.props.children) : "";
|
|
1676
|
-
}
|
|
1677
|
-
//#endregion
|
|
1678
|
-
export { L as _, Q as a, F as b, K as c, N as d, z as f, R as g, B as h, ee as i, G as l, V as m, ne as n, X as o, P as p, te as r, q as s, re as t, W as u, H as v, I as y };
|