@wakastellar/ui 3.5.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge-B2Kw7ew3.js +1 -0
- package/dist/badge-BvqcaobM.mjs +23 -0
- package/dist/blocks/chat/index.d.ts +112 -0
- package/dist/blocks/chat/widget.d.ts +100 -0
- package/dist/blocks/dashboard/index.d.ts +95 -0
- package/dist/blocks/empty-states/index.d.ts +47 -0
- package/dist/blocks/error-pages/index.d.ts +55 -0
- package/dist/blocks/landing/index.d.ts +104 -0
- package/dist/blocks/login/index.d.ts +42 -0
- package/dist/blocks/pricing/index.d.ts +64 -0
- package/dist/blocks/sidebar/index.d.ts +155 -0
- package/dist/blocks/threat-alert-banner/index.d.ts +26 -0
- package/dist/blocks/waka-doc-shell/index.d.ts +3 -0
- package/dist/blocks/waka-doc-shell/types.d.ts +32 -0
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.d.ts +17 -1
- package/dist/charts.es.js +2 -1
- package/dist/chunk-BJivcVNn.mjs +24 -0
- package/dist/chunk-FDd1SASZ.js +1 -0
- package/dist/cli/index.cjs +54 -3
- package/dist/cn-Bpd_xIzI.mjs +23 -0
- package/dist/cn-DEeiGoUV.js +1 -0
- package/dist/components/DataTable/DataTable.d.ts +17 -0
- package/dist/components/DataTable/DataTableAdvanced.d.ts +27 -0
- package/dist/components/DataTable/DataTableColumnResizer.d.ts +8 -0
- package/dist/components/DataTable/DataTableFilters.d.ts +14 -0
- package/dist/components/DataTable/DataTableGrouping.d.ts +25 -0
- package/dist/components/DataTable/DataTablePagination.d.ts +8 -0
- package/dist/components/DataTable/DataTableToolbar.d.ts +14 -0
- package/dist/components/DataTable/hooks/useDataTable.d.ts +24 -0
- package/dist/components/DataTable/hooks/useDataTableAdvanced.d.ts +38 -0
- package/dist/components/DataTable/hooks/useDataTableEdit.d.ts +22 -0
- package/dist/components/DataTable/hooks/useDataTableExport.d.ts +15 -0
- package/dist/components/DataTable/hooks/useDataTableImport.d.ts +12 -0
- package/dist/components/DataTable/hooks/useDataTableTheme.d.ts +16 -0
- package/dist/components/DataTable/hooks/useDataTableVirtualization.d.ts +19 -0
- package/dist/components/DataTable/hooks/useTableLayout.d.ts +26 -0
- package/dist/components/DataTable/index.d.ts +37 -0
- package/dist/components/DataTable/types.d.ts +461 -0
- package/dist/components/DataTable/utils.d.ts +37 -0
- package/dist/components/alert/index.d.ts +8 -0
- package/dist/components/badge/index.d.ts +9 -0
- package/dist/components/button/index.d.ts +11 -0
- package/dist/components/calendar/index.d.ts +18 -0
- package/dist/components/card/index.d.ts +46 -0
- package/dist/components/code/index.d.ts +49 -0
- package/dist/components/command/index.d.ts +83 -0
- package/dist/components/error-boundary/ErrorBoundary.d.ts +102 -0
- package/dist/components/error-boundary/index.d.ts +2 -0
- package/dist/components/form/index.d.ts +23 -0
- package/dist/components/input/index.d.ts +19 -0
- package/dist/components/label/index.d.ts +5 -0
- package/dist/components/navigation-menu/index.d.ts +12 -0
- package/dist/components/sheet/index.d.ts +27 -0
- package/dist/components/skeleton/index.d.ts +13 -0
- package/dist/components/table/index.d.ts +21 -0
- package/dist/components/textarea/index.d.ts +14 -0
- package/dist/components/toast/index.d.ts +15 -0
- package/dist/components/toggle/index.d.ts +12 -0
- package/dist/components/typography/index.d.ts +85 -0
- package/dist/components/waka-3d-pie-chart/index.d.ts +67 -0
- package/dist/components/waka-achievement-unlock/index.d.ts +83 -0
- package/dist/components/waka-ad-banner/index.d.ts +36 -0
- package/dist/components/waka-ad-fallback/index.d.ts +33 -0
- package/dist/components/waka-ad-inline/index.d.ts +15 -0
- package/dist/components/waka-ad-interstitial/index.d.ts +26 -0
- package/dist/components/waka-ad-placeholder/index.d.ts +17 -0
- package/dist/components/waka-ad-provider/index.d.ts +103 -0
- package/dist/components/waka-ad-sidebar/index.d.ts +18 -0
- package/dist/components/waka-ad-sticky-footer/index.d.ts +17 -0
- package/dist/components/waka-address-autocomplete/index.d.ts +129 -0
- package/dist/components/waka-admincrumb/index.d.ts +55 -0
- package/dist/components/waka-bottom-sheet/index.d.ts +61 -0
- package/dist/components/waka-carousel/index.d.ts +105 -0
- package/dist/components/waka-charts/WakaAreaChart.d.ts +12 -0
- package/dist/components/waka-charts/WakaBarChart.d.ts +12 -0
- package/dist/components/waka-charts/WakaChart.d.ts +17 -0
- package/dist/components/waka-charts/WakaLineChart.d.ts +12 -0
- package/dist/components/waka-charts/WakaMiniChart.d.ts +13 -0
- package/dist/components/waka-charts/WakaPieChart.d.ts +12 -0
- package/dist/components/waka-charts/WakaSparkline.d.ts +13 -0
- package/dist/components/waka-charts/dataTableHelpers.d.ts +37 -0
- package/dist/components/waka-charts/hooks/useChartTheme.d.ts +27 -0
- package/dist/components/waka-charts/index.d.ts +57 -0
- package/dist/components/waka-charts/types.d.ts +302 -0
- package/dist/components/waka-chat-bubble/index.d.ts +127 -0
- package/dist/components/waka-checkout-stepper/index.d.ts +154 -0
- package/dist/components/waka-cohort-table/index.d.ts +130 -0
- package/dist/components/waka-combobox/index.d.ts +81 -0
- package/dist/components/waka-command-bar/index.d.ts +45 -0
- package/dist/components/waka-connection-matrix/index.d.ts +117 -0
- package/dist/components/waka-content-recommendation/index.d.ts +23 -0
- package/dist/components/waka-cost-breakdown/index.d.ts +50 -0
- package/dist/components/waka-credit-activity-feed/index.d.ts +21 -0
- package/dist/components/waka-credit-alert/index.d.ts +24 -0
- package/dist/components/waka-credit-balance/index.d.ts +30 -0
- package/dist/components/waka-credit-history/index.d.ts +31 -0
- package/dist/components/waka-credit-meter/index.d.ts +27 -0
- package/dist/components/waka-credit-pricing-pack/index.d.ts +17 -0
- package/dist/components/waka-credit-quota/index.d.ts +25 -0
- package/dist/components/waka-credit-receipt/index.d.ts +23 -0
- package/dist/components/waka-credit-top-up/index.d.ts +26 -0
- package/dist/components/waka-credit-transaction/index.d.ts +22 -0
- package/dist/components/waka-daily-reward/index.d.ts +76 -0
- package/dist/components/waka-date-range-picker/index.d.ts +68 -0
- package/dist/components/waka-datetime-picker.form-integration/index.d.ts +79 -0
- package/dist/components/waka-device-trust/index.d.ts +95 -0
- package/dist/components/waka-doc-breadcrumb/index.d.ts +11 -0
- package/dist/components/waka-doc-code-block/index.d.ts +23 -0
- package/dist/components/waka-doc-renderer/index.d.ts +7 -0
- package/dist/components/waka-doc-search/index.d.ts +23 -0
- package/dist/components/waka-doc-toc/index.d.ts +11 -0
- package/dist/components/waka-doc-toolbar/index.d.ts +15 -0
- package/dist/components/waka-dock/index.d.ts +49 -0
- package/dist/components/waka-error-shake/index.d.ts +49 -0
- package/dist/components/waka-feature-announcement/index.d.ts +112 -0
- package/dist/components/waka-flow-diagram/index.d.ts +71 -0
- package/dist/components/waka-haptic-button/index.d.ts +50 -0
- package/dist/components/waka-hotspot/index.d.ts +111 -0
- package/dist/components/waka-leaderboard/index.d.ts +85 -0
- package/dist/components/waka-liquid-button/index.d.ts +46 -0
- package/dist/components/waka-loading-orbit/index.d.ts +90 -0
- package/dist/components/waka-magnetic-button/index.d.ts +61 -0
- package/dist/components/waka-metric-sparkline/index.d.ts +46 -0
- package/dist/components/waka-modal/index.d.ts +87 -0
- package/dist/components/waka-morph-button/index.d.ts +62 -0
- package/dist/components/waka-number-input/index.d.ts +60 -0
- package/dist/components/waka-outstream-video/index.d.ts +24 -0
- package/dist/components/waka-password-strength/index.d.ts +98 -0
- package/dist/components/waka-payment-method-picker/index.d.ts +88 -0
- package/dist/components/waka-points-popup/index.d.ts +75 -0
- package/dist/components/waka-power-up/index.d.ts +103 -0
- package/dist/components/waka-pricing-table/index.d.ts +77 -0
- package/dist/components/waka-progress-onboarding/index.d.ts +97 -0
- package/dist/components/waka-pull-to-refresh/index.d.ts +45 -0
- package/dist/components/waka-quota-bar/index.d.ts +100 -0
- package/dist/components/waka-radar-score/index.d.ts +95 -0
- package/dist/components/waka-resource-pool/index.d.ts +81 -0
- package/dist/components/waka-rich-text-editor/index.d.ts +42 -0
- package/dist/components/waka-segmented-control/index.d.ts +42 -0
- package/dist/components/waka-session-manager/index.d.ts +116 -0
- package/dist/components/waka-skeleton-wave/index.d.ts +79 -0
- package/dist/components/waka-spinner/index.d.ts +46 -0
- package/dist/components/waka-sponsored-card/index.d.ts +25 -0
- package/dist/components/waka-sponsored-feed/index.d.ts +31 -0
- package/dist/components/waka-spotlight/index.d.ts +47 -0
- package/dist/components/waka-stat/index.d.ts +57 -0
- package/dist/components/waka-stats-hexagon/index.d.ts +149 -0
- package/dist/components/waka-success-explosion/index.d.ts +51 -0
- package/dist/components/waka-swipe-card/index.d.ts +64 -0
- package/dist/components/waka-tabs-morph/index.d.ts +66 -0
- package/dist/components/waka-tag-input/index.d.ts +134 -0
- package/dist/components/waka-theme-manager/index.d.ts +62 -0
- package/dist/components/waka-tooltip-tour/index.d.ts +123 -0
- package/dist/components/waka-tour-guide/index.d.ts +127 -0
- package/dist/components/waka-tournament-bracket/index.d.ts +101 -0
- package/dist/components/waka-typing-indicator/index.d.ts +64 -0
- package/dist/components/waka-versus-card/index.d.ts +117 -0
- package/dist/components/waka-video-ad/index.d.ts +32 -0
- package/dist/components/waka-video-call/index.d.ts +170 -0
- package/dist/components/waka-video-overlay/index.d.ts +26 -0
- package/dist/context/admincrumb-context.d.ts +34 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/context/theme-context.d.ts +39 -0
- package/dist/context/waka-provider.d.ts +50 -0
- package/dist/doc.cjs.js +1 -1
- package/dist/doc.d.ts +33 -1
- package/dist/doc.es.js +5 -4
- package/dist/editor.cjs.js +9 -9
- package/dist/editor.es.js +1932 -2014
- package/dist/exceljs.min-BQi0sACt.js +28 -0
- package/dist/exceljs.min-M0HhQgNK.mjs +32046 -0
- package/dist/export.cjs.js +1 -1
- package/dist/export.d.ts +30 -1
- package/dist/export.es.js +2 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts +44 -0
- package/dist/hooks/useToast.d.ts +44 -0
- package/dist/index.cjs.js +96 -96
- package/dist/index.d.ts +38 -1
- package/dist/index.es.js +25924 -26086
- package/dist/input-B8pxqKEs.mjs +14 -0
- package/dist/input-vHHUMve1.js +1 -0
- package/dist/lib/i18n.d.ts +4 -0
- package/dist/rich-text.cjs.js +1 -1
- package/dist/rich-text.d.ts +21 -1
- package/dist/rich-text.es.js +2 -1
- package/dist/security-ClfRkelC.mjs +120 -0
- package/dist/security-DwyLk9h1.js +1 -0
- package/dist/separator-DDQs13_a.mjs +51 -0
- package/dist/separator-DviMy-io.js +1 -0
- package/dist/textarea-C4AbqFOT.mjs +23 -0
- package/dist/textarea-jycisJkk.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types-CUCT8Mwf.js +1 -0
- package/dist/types-DXkPQFit.mjs +935 -0
- package/dist/useDataTableImport-DNU1m8NO.js +7 -0
- package/dist/useDataTableImport-z5avsB21.mjs +251 -0
- package/dist/utils/datetime-helpers.d.ts +147 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/theme-loader.d.ts +101 -0
- package/dist/utils/tweak.d.ts +18 -0
- package/dist/waka-doc-renderer-22MUZbyl.js +3 -0
- package/dist/waka-doc-renderer-BZ3DtCzv.mjs +1678 -0
- package/dist/waka-editor-plugins-DO4BF3o_.js +1 -0
- package/dist/waka-editor-plugins-_0WFrkKK.mjs +136 -0
- package/dist/waka-rich-text-editor-DcZuIQ-q.js +1 -0
- package/dist/waka-rich-text-editor-SOKYDdDP.mjs +348 -0
- package/package.json +84 -26
- package/src/blocks/activity-timeline/ActivityTimeline.mdx +117 -0
- package/src/blocks/activity-timeline/ActivityTimeline.stories.tsx +18 -1
- package/src/blocks/antivirus-dashboard/AntivirusDashboard.stories.tsx +8 -0
- package/src/blocks/antivirus-dashboard/index.tsx +14 -0
- package/src/blocks/apm-overview/APMOverview.stories.tsx +8 -0
- package/src/blocks/apm-overview/index.tsx +14 -0
- package/src/blocks/auth-2fa/Auth2FA.mdx +85 -0
- package/src/blocks/auth-2fa/Auth2FA.stories.tsx +8 -1
- package/src/blocks/calendar-view/CalendarView.mdx +101 -0
- package/src/blocks/calendar-view/CalendarView.stories.tsx +15 -1
- package/src/blocks/chat/Chat.mdx +121 -0
- package/src/blocks/chat/Chat.stories.tsx +45 -51
- package/src/blocks/chat-interface/ChatInterface.mdx +109 -0
- package/src/blocks/chat-interface/ChatInterface.stories.tsx +54 -65
- package/src/blocks/checkout-flow/CheckoutFlow.mdx +89 -0
- package/src/blocks/checkout-flow/CheckoutFlow.stories.tsx +9 -1
- package/src/blocks/cicd-builder/CICDBuilder.stories.tsx +8 -0
- package/src/blocks/cicd-builder/index.tsx +14 -0
- package/src/blocks/clamav-service-status/ClamAVServiceStatus.stories.tsx +8 -0
- package/src/blocks/clamav-service-status/index.tsx +14 -0
- package/src/blocks/cloud-cost-dashboard/CloudCostDashboard.stories.tsx +8 -0
- package/src/blocks/cloud-cost-dashboard/index.tsx +14 -0
- package/src/blocks/container-orchestrator/ContainerOrchestrator.stories.tsx +8 -0
- package/src/blocks/container-orchestrator/index.tsx +14 -0
- package/src/blocks/dashboard/Dashboard.mdx +105 -0
- package/src/blocks/dashboard/Dashboard.stories.tsx +14 -1
- package/src/blocks/dashboard-kpi/DashboardKPI.mdx +97 -0
- package/src/blocks/dashboard-kpi/DashboardKPI.stories.tsx +11 -1
- package/src/blocks/database-admin/DatabaseAdmin.stories.tsx +8 -0
- package/src/blocks/database-admin/index.tsx +14 -0
- package/src/blocks/deployment-dashboard/DeploymentDashboard.stories.tsx +8 -0
- package/src/blocks/deployment-dashboard/index.tsx +14 -0
- package/src/blocks/empty-states/EmptyStates.mdx +129 -0
- package/src/blocks/empty-states/EmptyStates.stories.tsx +15 -1
- package/src/blocks/error-pages/ErrorPages.mdx +129 -0
- package/src/blocks/error-pages/ErrorPages.stories.tsx +82 -100
- package/src/blocks/faq/FAQ.mdx +113 -0
- package/src/blocks/faq/FAQ.stories.tsx +16 -1
- package/src/blocks/file-manager/FileManager.mdx +105 -0
- package/src/blocks/file-manager/FileManager.stories.tsx +15 -1
- package/src/blocks/file-scan-uploader/FileScanUploader.stories.tsx +8 -0
- package/src/blocks/file-scan-uploader/index.tsx +14 -0
- package/src/blocks/footer/Footer.mdx +101 -0
- package/src/blocks/footer/Footer.stories.tsx +38 -46
- package/src/blocks/gitops-sync-status/GitOpsSyncStatus.stories.tsx +8 -0
- package/src/blocks/gitops-sync-status/index.tsx +14 -0
- package/src/blocks/header/WakaHeader.mdx +97 -0
- package/src/blocks/header/WakaHeader.stories.tsx +12 -1
- package/src/blocks/headtab/Headtab.mdx +105 -0
- package/src/blocks/headtab/Headtab.stories.tsx +12 -1
- package/src/blocks/i18n-editor/I18nEditor.mdx +85 -0
- package/src/blocks/i18n-editor/I18nEditor.stories.tsx +8 -1
- package/src/blocks/incident-manager/IncidentManager.stories.tsx +8 -0
- package/src/blocks/incident-manager/index.tsx +14 -0
- package/src/blocks/infrastructure-map/InfrastructureMap.stories.tsx +8 -0
- package/src/blocks/infrastructure-map/index.tsx +14 -0
- package/src/blocks/kanban-board/KanbanBoard.stories.tsx +32 -37
- package/src/blocks/kanban-board/WakaKanbanBoard.mdx +93 -0
- package/src/blocks/landing/WakaLanding.mdx +85 -0
- package/src/blocks/landing/WakaLanding.stories.tsx +49 -57
- package/src/blocks/language-selector/LanguageSelector.mdx +89 -0
- package/src/blocks/language-selector/LanguageSelector.stories.tsx +12 -1
- package/src/blocks/layout/Layout.mdx +85 -0
- package/src/blocks/layout/Layout.stories.tsx +11 -1
- package/src/blocks/login/Login.mdx +105 -0
- package/src/blocks/login/Login.stories.tsx +11 -1
- package/src/blocks/on-call-schedule/OnCallSchedule.stories.tsx +8 -0
- package/src/blocks/on-call-schedule/index.tsx +14 -0
- package/src/blocks/player-profile/PlayerProfile.stories.tsx +8 -0
- package/src/blocks/player-profile/index.tsx +14 -0
- package/src/blocks/pricing/WakaPricing.mdx +101 -0
- package/src/blocks/pricing/WakaPricing.stories.tsx +27 -31
- package/src/blocks/profile/Profile.stories.tsx +15 -1
- package/src/blocks/profile/WakaProfile.mdx +109 -0
- package/src/blocks/quarantine-manager/QuarantineManager.stories.tsx +8 -0
- package/src/blocks/quarantine-manager/index.tsx +14 -0
- package/src/blocks/release-notes/ReleaseNotes.mdx +101 -0
- package/src/blocks/release-notes/ReleaseNotes.stories.tsx +11 -1
- package/src/blocks/scan-history-log/ScanHistoryLog.stories.tsx +8 -0
- package/src/blocks/scan-history-log/index.tsx +14 -0
- package/src/blocks/scan-policy-editor/ScanPolicyEditor.stories.tsx +8 -0
- package/src/blocks/scan-policy-editor/index.tsx +14 -0
- package/src/blocks/scan-report-generator/ScanReportGenerator.stories.tsx +8 -0
- package/src/blocks/scan-report-generator/index.tsx +14 -0
- package/src/blocks/settings/Settings.stories.tsx +13 -1
- package/src/blocks/settings/WakaSettings.mdx +89 -0
- package/src/blocks/sidebar/WakaSidebar.mdx +101 -0
- package/src/blocks/sidebar/WakaSidebar.stories.tsx +12 -1
- package/src/blocks/signature-database-manager/SignatureDatabaseManager.stories.tsx +8 -0
- package/src/blocks/signature-database-manager/index.tsx +14 -0
- package/src/blocks/theme-creator-block/ThemeCreatorBlock.stories.tsx +8 -0
- package/src/blocks/theme-creator-block/index.tsx +14 -0
- package/src/blocks/threat-alert-banner/ThreatAlertBanner.stories.tsx +8 -0
- package/src/blocks/threat-alert-banner/index.tsx +14 -0
- package/src/blocks/user-management/UserManagement.stories.tsx +13 -0
- package/src/blocks/user-management/index.tsx +14 -0
- package/src/blocks/waka-doc-shell/WakaDocShell.mdx +61 -0
- package/src/blocks/waka-doc-shell/WakaDocShell.stories.tsx +21 -24
- package/src/blocks/waka-doc-shell/types.ts +3 -3
- package/src/blocks/wizard/WakaWizard.mdx +117 -0
- package/src/blocks/wizard/Wizard.stories.tsx +19 -1
- package/src/components/DataTable/DataTable.mdx +87 -0
- package/src/components/DataTable/DataTable.stories.tsx +0 -1
- package/src/components/MDX_DOCS_GUIDELINE.md +69 -0
- package/src/components/accordion/Accordion.mdx +73 -0
- package/src/components/accordion/Accordion.stories.tsx +83 -1
- package/src/components/alert/Alert.mdx +85 -0
- package/src/components/alert/Alert.stories.tsx +78 -7
- package/src/components/alert-dialog/AlertDialog.mdx +77 -0
- package/src/components/alert-dialog/AlertDialog.stories.tsx +81 -4
- package/src/components/aspect-ratio/AspectRatio.mdx +81 -0
- package/src/components/aspect-ratio/AspectRatio.stories.tsx +53 -1
- package/src/components/avatar/Avatar.mdx +81 -0
- package/src/components/avatar/Avatar.stories.tsx +83 -4
- package/src/components/badge/Badge.mdx +85 -0
- package/src/components/badge/Badge.stories.tsx +106 -5
- package/src/components/button/Button.mdx +85 -0
- package/src/components/button/Button.stories.tsx +0 -1
- package/src/components/calendar/Calendar.mdx +81 -0
- package/src/components/calendar/Calendar.stories.tsx +73 -1
- package/src/components/calendar/index.tsx +10 -0
- package/src/components/card/Card.mdx +85 -0
- package/src/components/card/Card.stories.tsx +147 -6
- package/src/components/card/index.tsx +51 -24
- package/src/components/checkbox/Checkbox.mdx +77 -0
- package/src/components/checkbox/Checkbox.stories.tsx +75 -1
- package/src/components/code/Code.mdx +103 -0
- package/src/components/code/Code.stories.tsx +16 -1
- package/src/components/collapsible/Collapsible.mdx +73 -0
- package/src/components/collapsible/Collapsible.stories.tsx +86 -1
- package/src/components/command/Command.mdx +77 -0
- package/src/components/command/Command.stories.tsx +100 -6
- package/src/components/context-menu/ContextMenu.mdx +77 -0
- package/src/components/context-menu/ContextMenu.stories.tsx +35 -1
- package/src/components/dialog/Dialog.mdx +81 -0
- package/src/components/dialog/Dialog.stories.tsx +139 -4
- package/src/components/dropdown-menu/DropdownMenu.mdx +77 -0
- package/src/components/dropdown-menu/DropdownMenu.stories.tsx +60 -1
- package/src/components/editor/blocks/waka-slash-menu-block.tsx +39 -74
- package/src/components/editor/index.ts +14 -0
- package/src/components/editor/waka-floating-toolbar.tsx +116 -58
- package/src/components/error-boundary/ErrorBoundary.mdx +61 -0
- package/src/components/error-boundary/ErrorBoundary.stories.tsx +1 -2
- package/src/components/form/Form.mdx +77 -0
- package/src/components/form/Form.stories.tsx +166 -1
- package/src/components/hover-card/HoverCard.mdx +77 -0
- package/src/components/hover-card/HoverCard.stories.tsx +101 -4
- package/src/components/input/Input.mdx +77 -0
- package/src/components/input/Input.stories.tsx +4 -3
- package/src/components/input/index.tsx +16 -1
- package/src/components/input-otp/InputOTP.mdx +91 -0
- package/src/components/input-otp/InputOTP.stories.tsx +6 -4
- package/src/components/label/Label.mdx +81 -0
- package/src/components/label/Label.stories.tsx +41 -1
- package/src/components/language-selector/LanguageSelector.mdx +73 -0
- package/src/components/language-selector/LanguageSelector.stories.tsx +0 -1
- package/src/components/menubar/Menubar.mdx +77 -0
- package/src/components/menubar/Menubar.stories.tsx +76 -1
- package/src/components/navigation-menu/NavigationMenu.mdx +73 -0
- package/src/components/navigation-menu/NavigationMenu.stories.tsx +98 -1
- package/src/components/popover/Popover.mdx +81 -0
- package/src/components/popover/Popover.stories.tsx +110 -4
- package/src/components/progress/Progress.mdx +81 -0
- package/src/components/progress/Progress.stories.tsx +53 -2
- package/src/components/progress/index.tsx +1 -0
- package/src/components/radio-group/RadioGroup.mdx +77 -0
- package/src/components/radio-group/RadioGroup.stories.tsx +54 -1
- package/src/components/scroll-area/ScrollArea.mdx +77 -0
- package/src/components/scroll-area/ScrollArea.stories.tsx +57 -1
- package/src/components/select/Select.mdx +81 -0
- package/src/components/select/Select.stories.tsx +100 -4
- package/src/components/separator/Separator.mdx +81 -0
- package/src/components/separator/Separator.stories.tsx +45 -1
- package/src/components/sheet/Sheet.mdx +73 -0
- package/src/components/sheet/Sheet.stories.tsx +97 -4
- package/src/components/skeleton/Skeleton.mdx +77 -0
- package/src/components/skeleton/Skeleton.stories.tsx +0 -1
- package/src/components/skeleton/index.tsx +13 -4
- package/src/components/slider/Slider.mdx +73 -0
- package/src/components/slider/Slider.stories.tsx +10 -11
- package/src/components/slider/index.tsx +30 -15
- package/src/components/switch/Switch.mdx +81 -0
- package/src/components/switch/Switch.stories.tsx +66 -7
- package/src/components/table/Table.mdx +77 -0
- package/src/components/table/Table.stories.tsx +107 -6
- package/src/components/table/index.tsx +13 -4
- package/src/components/tabs/Tabs.mdx +81 -0
- package/src/components/tabs/Tabs.stories.tsx +156 -7
- package/src/components/textarea/Textarea.mdx +77 -0
- package/src/components/textarea/Textarea.stories.tsx +9 -10
- package/src/components/textarea/index.tsx +11 -1
- package/src/components/theme-selector/ThemeSelector.mdx +67 -0
- package/src/components/theme-selector/ThemeSelector.stories.tsx +0 -1
- package/src/components/toast/Toast.mdx +77 -0
- package/src/components/toast/Toast.stories.tsx +62 -1
- package/src/components/toaster/Toaster.mdx +57 -0
- package/src/components/toaster/Toaster.stories.tsx +1 -2
- package/src/components/toggle/Toggle.mdx +77 -0
- package/src/components/toggle/Toggle.stories.tsx +0 -1
- package/src/components/tooltip/Tooltip.mdx +81 -0
- package/src/components/tooltip/Tooltip.stories.tsx +48 -1
- package/src/components/typography/Typography.mdx +97 -0
- package/src/components/typography/Typography.stories.tsx +0 -1
- package/src/components/waka-3d-pie-chart/Waka3DPieChart.stories.tsx +24 -14
- package/src/components/waka-3d-pie-chart/index.tsx +17 -2
- package/src/components/waka-achievement-unlock/WakaAchievementUnlock.stories.tsx +9 -10
- package/src/components/waka-achievement-unlock/index.tsx +14 -0
- package/src/components/waka-activity-feed/index.tsx +14 -0
- package/src/components/waka-ad-banner/WakaAdBanner.stories.tsx +1 -1
- package/src/components/waka-ad-banner/index.tsx +14 -0
- package/src/components/waka-ad-fallback/index.tsx +14 -0
- package/src/components/waka-ad-inline/index.tsx +14 -0
- package/src/components/waka-ad-interstitial/index.tsx +14 -0
- package/src/components/waka-ad-placeholder/index.tsx +14 -0
- package/src/components/waka-ad-provider/index.tsx +15 -1
- package/src/components/waka-ad-sidebar/index.tsx +14 -0
- package/src/components/waka-ad-sticky-footer/index.tsx +14 -0
- package/src/components/waka-address-autocomplete/WakaAddressAutocomplete.mdx +63 -0
- package/src/components/waka-address-autocomplete/WakaAddressAutocomplete.stories.tsx +0 -1
- package/src/components/waka-address-autocomplete/index.tsx +5 -0
- package/src/components/waka-admincrumb/WakaAdmincrumb.stories.tsx +52 -30
- package/src/components/waka-admincrumb/index.tsx +14 -0
- package/src/components/waka-alert-panel/index.tsx +14 -0
- package/src/components/waka-alert-stack/index.tsx +14 -0
- package/src/components/waka-allocation-matrix/index.tsx +23 -0
- package/src/components/waka-approval-chain/index.tsx +14 -0
- package/src/components/waka-artifact-list/index.tsx +14 -0
- package/src/components/waka-audit-log/index.tsx +28 -0
- package/src/components/waka-autocomplete/WakaAutocomplete.mdx +83 -0
- package/src/components/waka-autocomplete/WakaAutocomplete.stories.tsx +0 -1
- package/src/components/waka-badge-showcase/index.tsx +14 -0
- package/src/components/waka-barcode/WakaBarcode.mdx +93 -0
- package/src/components/waka-barcode/WakaBarcode.stories.tsx +13 -1
- package/src/components/waka-biometric-prompt/index.tsx +14 -0
- package/src/components/waka-bottom-sheet/WakaBottomSheet.mdx +77 -0
- package/src/components/waka-bottom-sheet/WakaBottomSheet.stories.tsx +0 -1
- package/src/components/waka-breadcrumb/WakaBreadcrumb.mdx +77 -0
- package/src/components/waka-breadcrumb/WakaBreadcrumb.stories.tsx +0 -1
- package/src/components/waka-breadcrumb-path/WakaBreadcrumbPath.mdx +63 -0
- package/src/components/waka-breadcrumb-path/WakaBreadcrumbPath.stories.tsx +0 -1
- package/src/components/waka-budget-burn/index.tsx +15 -1
- package/src/components/waka-build-matrix/index.tsx +14 -0
- package/src/components/waka-capacity-planner/index.tsx +18 -1
- package/src/components/waka-carousel/WakaCarousel.mdx +101 -0
- package/src/components/waka-carousel/WakaCarousel.stories.tsx +16 -1
- package/src/components/waka-cart-summary/index.tsx +14 -0
- package/src/components/waka-challenge-timer/index.tsx +14 -0
- package/src/components/waka-charts/WakaAreaChart.stories.tsx +116 -0
- package/src/components/waka-charts/WakaBarChart.stories.tsx +137 -0
- package/src/components/waka-charts/WakaChart.stories.tsx +135 -0
- package/src/components/waka-charts/WakaCharts.mdx +137 -0
- package/src/components/waka-charts/WakaCharts.stories.tsx +0 -1
- package/src/components/waka-charts/WakaLineChart.stories.tsx +135 -0
- package/src/components/waka-charts/WakaMiniChart.stories.tsx +101 -0
- package/src/components/waka-charts/WakaPieChart.stories.tsx +114 -0
- package/src/components/waka-charts/WakaSparkline.stories.tsx +99 -0
- package/src/components/waka-chat-bubble/WakaChatBubble.mdx +69 -0
- package/src/components/waka-chat-bubble/WakaChatBubble.stories.tsx +0 -15
- package/src/components/waka-checklist/WakaChecklist.mdx +65 -0
- package/src/components/waka-checklist/WakaChecklist.stories.tsx +0 -1
- package/src/components/waka-checkout-stepper/index.tsx +14 -0
- package/src/components/waka-cohort-table/WakaCohortTable.mdx +65 -0
- package/src/components/waka-cohort-table/WakaCohortTable.stories.tsx +4 -7
- package/src/components/waka-color-picker/WakaColorPicker.mdx +85 -0
- package/src/components/waka-color-picker/WakaColorPicker.stories.tsx +0 -1
- package/src/components/waka-combo-counter/WakaComboCounter.stories.tsx +1 -1
- package/src/components/waka-combo-counter/index.tsx +14 -0
- package/src/components/waka-combobox/WakaCombobox.mdx +85 -0
- package/src/components/waka-combobox/WakaCombobox.stories.tsx +15 -1
- package/src/components/waka-command-bar/WakaCommandBar.mdx +57 -0
- package/src/components/waka-command-bar/WakaCommandBar.stories.tsx +2 -6
- package/src/components/waka-compare-period/WakaComparePeriod.mdx +65 -0
- package/src/components/waka-compare-period/WakaComparePeriod.stories.tsx +0 -1
- package/src/components/waka-config-comparator/WakaConfigComparator.mdx +73 -0
- package/src/components/waka-config-comparator/WakaConfigComparator.stories.tsx +0 -1
- package/src/components/waka-connection-matrix/WakaConnectionMatrix.mdx +61 -0
- package/src/components/waka-connection-matrix/WakaConnectionMatrix.stories.tsx +0 -1
- package/src/components/waka-container-list/index.tsx +14 -0
- package/src/components/waka-content-recommendation/WakaContentRecommendation.stories.tsx +1 -1
- package/src/components/waka-content-recommendation/index.tsx +14 -0
- package/src/components/waka-contribution-graph/WakaContributionGraph.mdx +101 -0
- package/src/components/waka-contribution-graph/WakaContributionGraph.stories.tsx +38 -44
- package/src/components/waka-cost-breakdown/WakaCostBreakdown.mdx +101 -0
- package/src/components/waka-cost-breakdown/WakaCostBreakdown.stories.tsx +43 -51
- package/src/components/waka-coupon-input/WakaCouponInput.mdx +69 -0
- package/src/components/waka-coupon-input/WakaCouponInput.stories.tsx +0 -1
- package/src/components/waka-credit-activity-feed/WakaCreditActivityFeed.mdx +77 -0
- package/src/components/waka-credit-activity-feed/WakaCreditActivityFeed.stories.tsx +15 -1
- package/src/components/waka-credit-alert/WakaCreditAlert.mdx +73 -0
- package/src/components/waka-credit-alert/WakaCreditAlert.stories.tsx +16 -1
- package/src/components/waka-credit-balance/WakaCreditBalance.mdx +81 -0
- package/src/components/waka-credit-balance/WakaCreditBalance.stories.tsx +15 -1
- package/src/components/waka-credit-breakdown/WakaCreditBreakdown.mdx +73 -0
- package/src/components/waka-credit-breakdown/WakaCreditBreakdown.stories.tsx +15 -1
- package/src/components/waka-credit-burn-rate/WakaCreditBurnRate.mdx +73 -0
- package/src/components/waka-credit-burn-rate/WakaCreditBurnRate.stories.tsx +17 -1
- package/src/components/waka-credit-card-input/WakaCreditCardInput.mdx +73 -0
- package/src/components/waka-credit-card-input/WakaCreditCardInput.stories.tsx +0 -1
- package/src/components/waka-credit-history/WakaCreditHistory.mdx +85 -0
- package/src/components/waka-credit-history/WakaCreditHistory.stories.tsx +14 -1
- package/src/components/waka-credit-meter/WakaCreditMeter.mdx +81 -0
- package/src/components/waka-credit-meter/WakaCreditMeter.stories.tsx +14 -17
- package/src/components/waka-credit-pricing-pack/WakaCreditPricingPack.mdx +69 -0
- package/src/components/waka-credit-pricing-pack/WakaCreditPricingPack.stories.tsx +13 -1
- package/src/components/waka-credit-projection/WakaCreditProjection.mdx +69 -0
- package/src/components/waka-credit-projection/WakaCreditProjection.stories.tsx +14 -1
- package/src/components/waka-credit-quota/WakaCreditQuota.mdx +73 -0
- package/src/components/waka-credit-quota/WakaCreditQuota.stories.tsx +16 -1
- package/src/components/waka-credit-receipt/WakaCreditReceipt.mdx +65 -0
- package/src/components/waka-credit-receipt/WakaCreditReceipt.stories.tsx +11 -1
- package/src/components/waka-credit-top-up/WakaCreditTopUp.mdx +69 -0
- package/src/components/waka-credit-top-up/WakaCreditTopUp.stories.tsx +9 -11
- package/src/components/waka-credit-transaction/WakaCreditTransaction.mdx +85 -0
- package/src/components/waka-credit-transaction/WakaCreditTransaction.stories.tsx +13 -1
- package/src/components/waka-credit-transfer-form/WakaCreditTransferForm.mdx +65 -0
- package/src/components/waka-credit-transfer-form/WakaCreditTransferForm.stories.tsx +12 -1
- package/src/components/waka-credit-usage-chart/WakaCreditUsageChart.mdx +73 -0
- package/src/components/waka-credit-usage-chart/WakaCreditUsageChart.stories.tsx +8 -10
- package/src/components/waka-daily-reward/WakaDailyReward.stories.tsx +7 -9
- package/src/components/waka-daily-reward/index.tsx +16 -0
- package/src/components/waka-database-card/index.tsx +14 -0
- package/src/components/waka-date-range-picker/WakaDateRangePicker.mdx +97 -0
- package/src/components/waka-date-range-picker/WakaDateRangePicker.stories.tsx +15 -1
- package/src/components/waka-datetime-picker/WakaDateTimePicker.mdx +109 -0
- package/src/components/waka-datetime-picker/WakaDateTimePicker.stories.tsx +15 -1
- package/src/components/waka-datetime-picker.form-integration/index.tsx +7 -3
- package/src/components/waka-dependency-tree/index.tsx +14 -0
- package/src/components/waka-deployment-lane/WakaDeploymentLane.stories.tsx +17 -20
- package/src/components/waka-deployment-lane/index.tsx +17 -0
- package/src/components/waka-device-trust/index.tsx +14 -0
- package/src/components/waka-doc-breadcrumb/WakaDocBreadcrumb.mdx +61 -0
- package/src/components/waka-doc-breadcrumb/WakaDocBreadcrumb.stories.tsx +12 -10
- package/src/components/waka-doc-breadcrumb/index.tsx +3 -3
- package/src/components/waka-doc-callout/WakaDocCallout.mdx +61 -0
- package/src/components/waka-doc-callout/WakaDocCallout.stories.tsx +17 -6
- package/src/components/waka-doc-code-block/WakaDocCodeBlock.mdx +81 -0
- package/src/components/waka-doc-code-block/WakaDocCodeBlock.stories.tsx +56 -1
- package/src/components/waka-doc-nav/WakaDocNav.mdx +73 -0
- package/src/components/waka-doc-nav/WakaDocNav.stories.tsx +82 -1
- package/src/components/waka-doc-nav/index.tsx +26 -16
- package/src/components/waka-doc-renderer/WakaDocRenderer.mdx +73 -0
- package/src/components/waka-doc-renderer/WakaDocRenderer.stories.tsx +73 -1
- package/src/components/waka-doc-search/WakaDocSearch.mdx +75 -0
- package/src/components/waka-doc-search/WakaDocSearch.stories.tsx +80 -1
- package/src/components/waka-doc-search/index.tsx +6 -0
- package/src/components/waka-doc-table/WakaDocTable.mdx +73 -0
- package/src/components/waka-doc-table/WakaDocTable.stories.tsx +128 -1
- package/src/components/waka-doc-toc/WakaDocToc.mdx +73 -0
- package/src/components/waka-doc-toc/WakaDocToc.stories.tsx +84 -10
- package/src/components/waka-doc-toolbar/WakaDocToolbar.mdx +75 -0
- package/src/components/waka-doc-toolbar/WakaDocToolbar.stories.tsx +13 -1
- package/src/components/waka-doc-toolbar/index.tsx +5 -0
- package/src/components/waka-doc-version/WakaDocVersion.mdx +73 -0
- package/src/components/waka-doc-version/WakaDocVersion.stories.tsx +86 -1
- package/src/components/waka-dock/WakaDock.mdx +95 -0
- package/src/components/waka-dock/WakaDock.stories.tsx +14 -1
- package/src/components/waka-dock/index.tsx +6 -0
- package/src/components/waka-drawer/WakaDrawer.mdx +85 -0
- package/src/components/waka-drawer/WakaDrawer.stories.tsx +0 -1
- package/src/components/waka-empty-state/WakaEmptyState.mdx +69 -0
- package/src/components/waka-empty-state/WakaEmptyState.stories.tsx +0 -1
- package/src/components/waka-env-var-editor/index.tsx +14 -0
- package/src/components/waka-error-shake/WakaErrorShake.mdx +89 -0
- package/src/components/waka-error-shake/WakaErrorShake.stories.tsx +0 -1
- package/src/components/waka-feature-announcement/WakaFeatureAnnouncement.mdx +61 -0
- package/src/components/waka-feature-announcement/WakaFeatureAnnouncement.stories.tsx +0 -1
- package/src/components/waka-feature-flag-row/index.tsx +14 -0
- package/src/components/waka-file-upload/WakaFileUpload.mdx +81 -0
- package/src/components/waka-file-upload/WakaFileUpload.stories.tsx +0 -1
- package/src/components/waka-floating-nav/WakaFloatingNav.mdx +61 -0
- package/src/components/waka-floating-nav/WakaFloatingNav.stories.tsx +0 -1
- package/src/components/waka-flow-diagram/index.tsx +3 -1
- package/src/components/waka-funnel-chart/WakaFunnelChart.mdx +97 -0
- package/src/components/waka-funnel-chart/WakaFunnelChart.stories.tsx +20 -13
- package/src/components/waka-funnel-chart/index.tsx +1 -1
- package/src/components/waka-glow-card/WakaGlowCard.mdx +93 -0
- package/src/components/waka-glow-card/WakaGlowCard.stories.tsx +0 -1
- package/src/components/waka-goal-progress/WakaGoalProgress.mdx +69 -0
- package/src/components/waka-goal-progress/WakaGoalProgress.stories.tsx +0 -1
- package/src/components/waka-haptic-button/WakaHapticButton.mdx +127 -0
- package/src/components/waka-haptic-button/WakaHapticButton.stories.tsx +0 -1
- package/src/components/waka-haptic-button/index.tsx +5 -0
- package/src/components/waka-health-pulse/WakaHealthPulse.mdx +89 -0
- package/src/components/waka-health-pulse/WakaHealthPulse.stories.tsx +27 -30
- package/src/components/waka-heatmap/WakaHeatmap.mdx +101 -0
- package/src/components/waka-heatmap/WakaHeatmap.stories.tsx +23 -27
- package/src/components/waka-heatmap/index.tsx +6 -1
- package/src/components/waka-hotspot/WakaHotspot.mdx +67 -0
- package/src/components/waka-hotspot/WakaHotspot.stories.tsx +0 -1
- package/src/components/waka-hotspot/index.tsx +5 -0
- package/src/components/waka-image/WakaImage.mdx +93 -0
- package/src/components/waka-image/WakaImage.stories.tsx +6 -4
- package/src/components/waka-incident-timeline/WakaIncidentTimeline.mdx +93 -0
- package/src/components/waka-incident-timeline/WakaIncidentTimeline.stories.tsx +0 -1
- package/src/components/waka-invoice-preview/WakaInvoicePreview.mdx +69 -0
- package/src/components/waka-invoice-preview/WakaInvoicePreview.stories.tsx +55 -75
- package/src/components/waka-kubernetes-overview/index.tsx +14 -0
- package/src/components/waka-leaderboard/WakaLeaderboard.mdx +101 -0
- package/src/components/waka-leaderboard/WakaLeaderboard.stories.tsx +0 -1
- package/src/components/waka-level-progress/WakaLevelProgress.mdx +85 -0
- package/src/components/waka-level-progress/WakaLevelProgress.stories.tsx +0 -1
- package/src/components/waka-liquid-button/WakaLiquidButton.mdx +71 -0
- package/src/components/waka-liquid-button/WakaLiquidButton.stories.tsx +0 -1
- package/src/components/waka-liquid-button/index.tsx +5 -0
- package/src/components/waka-loading-orbit/WakaLoadingOrbit.mdx +113 -0
- package/src/components/waka-loading-orbit/WakaLoadingOrbit.stories.tsx +0 -1
- package/src/components/waka-loading-orbit/index.tsx +1 -1
- package/src/components/waka-log-viewer/index.tsx +14 -0
- package/src/components/waka-loot-box/index.tsx +20 -0
- package/src/components/waka-magic-link/WakaMagicLink.mdx +61 -0
- package/src/components/waka-magic-link/WakaMagicLink.stories.tsx +0 -1
- package/src/components/waka-magnetic-button/WakaMagneticButton.mdx +67 -0
- package/src/components/waka-magnetic-button/WakaMagneticButton.stories.tsx +0 -1
- package/src/components/waka-magnetic-button/index.tsx +5 -0
- package/src/components/waka-mention-input/WakaMentionInput.mdx +65 -0
- package/src/components/waka-mention-input/WakaMentionInput.stories.tsx +1 -3
- package/src/components/waka-metric-sparkline/WakaMetricSparkline.mdx +105 -0
- package/src/components/waka-metric-sparkline/WakaMetricSparkline.stories.tsx +27 -18
- package/src/components/waka-metric-sparkline/index.tsx +3 -3
- package/src/components/waka-migration-list/index.tsx +14 -0
- package/src/components/waka-milestone-road/index.tsx +15 -1
- package/src/components/waka-modal/WakaModal.mdx +95 -0
- package/src/components/waka-modal/WakaModal.stories.tsx +0 -1
- package/src/components/waka-modal/index.tsx +5 -0
- package/src/components/waka-morph-button/WakaMorphButton.mdx +105 -0
- package/src/components/waka-morph-button/WakaMorphButton.stories.tsx +0 -1
- package/src/components/waka-network-topology/index.tsx +14 -0
- package/src/components/waka-notifications/WakaNotifications.mdx +77 -0
- package/src/components/waka-notifications/WakaNotifications.stories.tsx +0 -1
- package/src/components/waka-number-input/WakaNumberInput.mdx +97 -0
- package/src/components/waka-number-input/WakaNumberInput.stories.tsx +14 -1
- package/src/components/waka-orbital-menu/index.tsx +21 -3
- package/src/components/waka-order-tracker/WakaOrderTracker.stories.tsx +64 -39
- package/src/components/waka-order-tracker/index.tsx +14 -0
- package/src/components/waka-outstream-video/index.tsx +17 -0
- package/src/components/waka-pagination/WakaPagination.mdx +81 -0
- package/src/components/waka-pagination/WakaPagination.stories.tsx +0 -1
- package/src/components/waka-password-strength/WakaPasswordStrength.mdx +81 -0
- package/src/components/waka-password-strength/WakaPasswordStrength.stories.tsx +0 -1
- package/src/components/waka-payment-method-picker/index.tsx +14 -0
- package/src/components/waka-permission-matrix/index.tsx +28 -0
- package/src/components/waka-phone-input/WakaPhoneInput.mdx +65 -0
- package/src/components/waka-phone-input/WakaPhoneInput.stories.tsx +0 -1
- package/src/components/waka-pipeline-view/WakaPipelineView.stories.tsx +27 -32
- package/src/components/waka-pipeline-view/index.tsx +14 -0
- package/src/components/waka-player-card/WakaPlayerCard.stories.tsx +0 -3
- package/src/components/waka-player-card/index.tsx +17 -3
- package/src/components/waka-pod-card/index.tsx +14 -0
- package/src/components/waka-points-popup/WakaPointsPopup.stories.tsx +1 -1
- package/src/components/waka-points-popup/index.tsx +14 -0
- package/src/components/waka-power-up/index.tsx +14 -0
- package/src/components/waka-presence-indicator/WakaPresenceIndicator.mdx +73 -0
- package/src/components/waka-presence-indicator/WakaPresenceIndicator.stories.tsx +0 -1
- package/src/components/waka-pricing-table/WakaPricingTable.mdx +69 -0
- package/src/components/waka-pricing-table/WakaPricingTable.stories.tsx +0 -1
- package/src/components/waka-product-card/WakaProductCard.stories.tsx +0 -8
- package/src/components/waka-product-card/index.tsx +14 -0
- package/src/components/waka-progress-onboarding/WakaProgressOnboarding.mdx +69 -0
- package/src/components/waka-progress-onboarding/WakaProgressOnboarding.stories.tsx +50 -18
- package/src/components/waka-pull-to-refresh/WakaPullToRefresh.stories.tsx +3 -4
- package/src/components/waka-pull-to-refresh/index.tsx +16 -2
- package/src/components/waka-qrcode/WakaQRCode.mdx +91 -0
- package/src/components/waka-qrcode/WakaQRCode.stories.tsx +7 -5
- package/src/components/waka-query-explain/index.tsx +14 -0
- package/src/components/waka-quest-card/index.tsx +14 -0
- package/src/components/waka-quota-bar/WakaQuotaBar.mdx +105 -0
- package/src/components/waka-quota-bar/WakaQuotaBar.stories.tsx +0 -1
- package/src/components/waka-radar-score/WakaRadarScore.stories.tsx +41 -43
- package/src/components/waka-radar-score/index.tsx +16 -1
- package/src/components/waka-rank-badge/index.tsx +15 -1
- package/src/components/waka-rating-input/WakaRatingInput.mdx +73 -0
- package/src/components/waka-rating-input/WakaRatingInput.stories.tsx +0 -1
- package/src/components/waka-reaction-picker/index.tsx +14 -0
- package/src/components/waka-region-map/index.tsx +14 -0
- package/src/components/waka-resource-gauge/WakaResourceGauge.mdx +117 -0
- package/src/components/waka-resource-gauge/WakaResourceGauge.stories.tsx +31 -25
- package/src/components/waka-resource-gauge/index.tsx +2 -2
- package/src/components/waka-resource-pool/WakaResourcePool.mdx +65 -0
- package/src/components/waka-resource-pool/WakaResourcePool.stories.tsx +0 -1
- package/src/components/waka-resource-pool/index.tsx +3 -1
- package/src/components/waka-rich-text-editor/WakaRichTextEditor.mdx +77 -0
- package/src/components/waka-rich-text-editor/WakaRichTextEditor.stories.tsx +0 -1
- package/src/components/waka-rich-text-editor/index.tsx +10 -0
- package/src/components/waka-rollback-slider/index.tsx +14 -0
- package/src/components/waka-sankey-diagram/WakaSankeyDiagram.stories.tsx +32 -36
- package/src/components/waka-sankey-diagram/index.tsx +15 -1
- package/src/components/waka-schedule-picker/WakaSchedulePicker.mdx +69 -0
- package/src/components/waka-schedule-picker/WakaSchedulePicker.stories.tsx +0 -1
- package/src/components/waka-scratch-card/WakaScratchCard.stories.tsx +6 -7
- package/src/components/waka-scratch-card/index.tsx +15 -1
- package/src/components/waka-season-pass/index.tsx +17 -0
- package/src/components/waka-secret-card/WakaSecretCard.mdx +93 -0
- package/src/components/waka-secret-card/WakaSecretCard.stories.tsx +0 -1
- package/src/components/waka-security-scan-result/index.tsx +26 -3
- package/src/components/waka-security-score/index.tsx +14 -0
- package/src/components/waka-segmented-control/WakaSegmentedControl.mdx +93 -0
- package/src/components/waka-segmented-control/WakaSegmentedControl.stories.tsx +0 -1
- package/src/components/waka-server-rack/WakaServerRack.stories.tsx +1 -1
- package/src/components/waka-server-rack/index.tsx +14 -0
- package/src/components/waka-service-graph/index.tsx +15 -1
- package/src/components/waka-session-manager/WakaSessionManager.mdx +65 -0
- package/src/components/waka-session-manager/WakaSessionManager.stories.tsx +57 -23
- package/src/components/waka-signature-pad/WakaSignaturePad.mdx +89 -0
- package/src/components/waka-signature-pad/WakaSignaturePad.stories.tsx +0 -1
- package/src/components/waka-signature-pad/index.tsx +1 -1
- package/src/components/waka-skeleton-wave/WakaSkeletonWave.mdx +113 -0
- package/src/components/waka-skeleton-wave/WakaSkeletonWave.stories.tsx +0 -1
- package/src/components/waka-skill-tree/index.tsx +18 -1
- package/src/components/waka-slider-range/WakaSliderRange.mdx +69 -0
- package/src/components/waka-slider-range/WakaSliderRange.stories.tsx +0 -1
- package/src/components/waka-spin-wheel/WakaSpinWheel.stories.tsx +17 -16
- package/src/components/waka-spin-wheel/index.tsx +14 -0
- package/src/components/waka-spinner/WakaSpinner.stories.tsx +3 -2
- package/src/components/waka-spinner/index.tsx +14 -0
- package/src/components/waka-sponsored-badge/WakaSponsoredBadge.mdx +81 -0
- package/src/components/waka-sponsored-badge/WakaSponsoredBadge.stories.tsx +0 -1
- package/src/components/waka-sponsored-card/WakaSponsoredCard.mdx +69 -0
- package/src/components/waka-sponsored-card/WakaSponsoredCard.stories.tsx +8 -1
- package/src/components/waka-sponsored-feed/WakaSponsoredFeed.mdx +65 -0
- package/src/components/waka-sponsored-feed/WakaSponsoredFeed.stories.tsx +8 -1
- package/src/components/waka-spotlight/WakaSpotlight.mdx +61 -0
- package/src/components/waka-spotlight/WakaSpotlight.stories.tsx +0 -1
- package/src/components/waka-stat/WakaStat.mdx +89 -0
- package/src/components/waka-stat/WakaStat.stories.tsx +7 -7
- package/src/components/waka-stats-hexagon/index.tsx +16 -1
- package/src/components/waka-status-matrix/WakaStatusMatrix.mdx +97 -0
- package/src/components/waka-status-matrix/WakaStatusMatrix.stories.tsx +12 -7
- package/src/components/waka-stepper/WakaStepper.mdx +89 -0
- package/src/components/waka-stepper/WakaStepper.stories.tsx +0 -1
- package/src/components/waka-streak-counter/WakaStreakCounter.stories.tsx +6 -1
- package/src/components/waka-streak-counter/index.tsx +14 -0
- package/src/components/waka-success-explosion/WakaSuccessExplosion.mdx +93 -0
- package/src/components/waka-success-explosion/WakaSuccessExplosion.stories.tsx +0 -1
- package/src/components/waka-success-explosion/index.tsx +2 -2
- package/src/components/waka-swipe-card/WakaSwipeCard.stories.tsx +36 -12
- package/src/components/waka-swipe-card/index.tsx +14 -0
- package/src/components/waka-tabs-morph/WakaTabsMorph.mdx +113 -0
- package/src/components/waka-tabs-morph/WakaTabsMorph.stories.tsx +0 -1
- package/src/components/waka-tag-input/WakaTagInput.mdx +89 -0
- package/src/components/waka-tag-input/WakaTagInput.stories.tsx +0 -1
- package/src/components/waka-team-banner/WakaTeamBanner.stories.tsx +49 -20
- package/src/components/waka-team-banner/index.tsx +15 -0
- package/src/components/waka-terminal-output/WakaTerminalOutput.mdx +93 -0
- package/src/components/waka-terminal-output/WakaTerminalOutput.stories.tsx +0 -1
- package/src/components/waka-test-report/WakaTestReport.mdx +93 -0
- package/src/components/waka-test-report/WakaTestReport.stories.tsx +0 -1
- package/src/components/waka-theme-creator/index.tsx +14 -0
- package/src/components/waka-theme-manager/index.tsx +14 -0
- package/src/components/waka-thread-view/WakaThreadView.mdx +65 -0
- package/src/components/waka-thread-view/WakaThreadView.stories.tsx +0 -1
- package/src/components/waka-tilt-card/WakaTiltCard.mdx +97 -0
- package/src/components/waka-tilt-card/WakaTiltCard.stories.tsx +10 -14
- package/src/components/waka-time-picker/WakaTimePicker.mdx +89 -0
- package/src/components/waka-time-picker/WakaTimePicker.stories.tsx +14 -1
- package/src/components/waka-timeline/WakaTimeline.mdx +77 -0
- package/src/components/waka-timeline/WakaTimeline.stories.tsx +0 -1
- package/src/components/waka-tooltip-tour/WakaTooltipTour.mdx +59 -0
- package/src/components/waka-tooltip-tour/WakaTooltipTour.stories.tsx +0 -1
- package/src/components/waka-tooltip-tour/index.tsx +5 -0
- package/src/components/waka-tour-guide/WakaTourGuide.mdx +59 -0
- package/src/components/waka-tour-guide/WakaTourGuide.stories.tsx +0 -1
- package/src/components/waka-tour-guide/index.tsx +5 -0
- package/src/components/waka-tournament-bracket/index.tsx +14 -0
- package/src/components/waka-trace-viewer/WakaTraceViewer.mdx +85 -0
- package/src/components/waka-trace-viewer/WakaTraceViewer.stories.tsx +0 -1
- package/src/components/waka-tree/WakaTree.mdx +85 -0
- package/src/components/waka-tree/WakaTree.stories.tsx +6 -4
- package/src/components/waka-treemap-chart/WakaTreemapChart.stories.tsx +22 -11
- package/src/components/waka-treemap-chart/index.tsx +14 -0
- package/src/components/waka-two-factor-setup/WakaTwoFactorSetup.mdx +77 -0
- package/src/components/waka-two-factor-setup/WakaTwoFactorSetup.stories.tsx +0 -1
- package/src/components/waka-typewriter/WakaTypewriter.stories.tsx +7 -8
- package/src/components/waka-typewriter/index.tsx +14 -0
- package/src/components/waka-typing-indicator/WakaTypingIndicator.mdx +77 -0
- package/src/components/waka-typing-indicator/WakaTypingIndicator.stories.tsx +0 -1
- package/src/components/waka-versus-card/index.tsx +14 -0
- package/src/components/waka-video/WakaVideo.mdx +93 -0
- package/src/components/waka-video/WakaVideo.stories.tsx +16 -1
- package/src/components/waka-video-ad/WakaVideoAd.mdx +69 -0
- package/src/components/waka-video-ad/WakaVideoAd.stories.tsx +0 -1
- package/src/components/waka-video-call/WakaVideoCall.mdx +73 -0
- package/src/components/waka-video-call/WakaVideoCall.stories.tsx +0 -1
- package/src/components/waka-video-overlay/WakaVideoOverlay.mdx +61 -0
- package/src/components/waka-video-overlay/WakaVideoOverlay.stories.tsx +0 -1
- package/src/components/waka-voice-message/WakaVoiceMessage.mdx +77 -0
- package/src/components/waka-voice-message/WakaVoiceMessage.stories.tsx +0 -1
- package/src/components/waka-welcome-modal/WakaWelcomeModal.mdx +57 -0
- package/src/components/waka-welcome-modal/WakaWelcomeModal.stories.tsx +1 -2
- package/src/components/waka-xp-bar/index.tsx +14 -0
- package/dist/badge-BbwO7QeZ.js +0 -1
- package/dist/badge-BfiocODp.mjs +0 -23
- package/dist/chunk-14q5BKub.js +0 -1
- package/dist/chunk-Cr9pTUWm.mjs +0 -23
- package/dist/cn-DEtaFQsA.js +0 -1
- package/dist/cn-DUn6aSIQ.mjs +0 -24
- package/dist/editor.d.ts +0 -1
- package/dist/exceljs.min-DL1XYDll.mjs +0 -32037
- package/dist/exceljs.min-qeIfSCbF.js +0 -28
- package/dist/input-BfaSAGVw.js +0 -1
- package/dist/input-DVr_Qkl8.mjs +0 -14
- package/dist/security-CyBpuklN.mjs +0 -122
- package/dist/security-bFWwDrlg.js +0 -1
- package/dist/separator-NrkltulH.js +0 -1
- package/dist/separator-ibN2mycs.mjs +0 -51
- package/dist/src/blocks/chat/index.d.ts +0 -112
- package/dist/src/blocks/chat/widget.d.ts +0 -100
- package/dist/src/blocks/dashboard/index.d.ts +0 -95
- package/dist/src/blocks/empty-states/index.d.ts +0 -47
- package/dist/src/blocks/error-pages/index.d.ts +0 -55
- package/dist/src/blocks/landing/index.d.ts +0 -104
- package/dist/src/blocks/login/index.d.ts +0 -42
- package/dist/src/blocks/pricing/index.d.ts +0 -64
- package/dist/src/blocks/sidebar/index.d.ts +0 -155
- package/dist/src/blocks/threat-alert-banner/index.d.ts +0 -26
- package/dist/src/blocks/waka-doc-shell/index.d.ts +0 -3
- package/dist/src/blocks/waka-doc-shell/types.d.ts +0 -32
- package/dist/src/charts.d.ts +0 -17
- package/dist/src/cli/commands/add.d.ts +0 -7
- package/dist/src/cli/commands/init.d.ts +0 -6
- package/dist/src/cli/commands/list.d.ts +0 -5
- package/dist/src/cli/commands/search.d.ts +0 -1
- package/dist/src/cli/index.d.ts +0 -1
- package/dist/src/cli/utils/config.d.ts +0 -29
- package/dist/src/cli/utils/logger.d.ts +0 -20
- package/dist/src/cli/utils/registry.d.ts +0 -23
- package/dist/src/components/DataTable/DataTable.d.ts +0 -17
- package/dist/src/components/DataTable/DataTableAdvanced.d.ts +0 -27
- package/dist/src/components/DataTable/DataTableColumnResizer.d.ts +0 -8
- package/dist/src/components/DataTable/DataTableFilters.d.ts +0 -14
- package/dist/src/components/DataTable/DataTableGrouping.d.ts +0 -25
- package/dist/src/components/DataTable/DataTablePagination.d.ts +0 -8
- package/dist/src/components/DataTable/DataTableToolbar.d.ts +0 -14
- package/dist/src/components/DataTable/hooks/useDataTable.d.ts +0 -24
- package/dist/src/components/DataTable/hooks/useDataTableAdvanced.d.ts +0 -38
- package/dist/src/components/DataTable/hooks/useDataTableEdit.d.ts +0 -22
- package/dist/src/components/DataTable/hooks/useDataTableExport.d.ts +0 -15
- package/dist/src/components/DataTable/hooks/useDataTableImport.d.ts +0 -12
- package/dist/src/components/DataTable/hooks/useDataTableTheme.d.ts +0 -16
- package/dist/src/components/DataTable/hooks/useDataTableVirtualization.d.ts +0 -19
- package/dist/src/components/DataTable/hooks/useTableLayout.d.ts +0 -26
- package/dist/src/components/DataTable/index.d.ts +0 -37
- package/dist/src/components/DataTable/types.d.ts +0 -461
- package/dist/src/components/DataTable/utils.d.ts +0 -37
- package/dist/src/components/alert/index.d.ts +0 -8
- package/dist/src/components/badge/index.d.ts +0 -9
- package/dist/src/components/button/index.d.ts +0 -11
- package/dist/src/components/calendar/index.d.ts +0 -8
- package/dist/src/components/card/index.d.ts +0 -8
- package/dist/src/components/code/index.d.ts +0 -29
- package/dist/src/components/command/index.d.ts +0 -83
- package/dist/src/components/editor/blocks/index.d.ts +0 -51
- package/dist/src/components/editor/blocks/waka-acceptance-criteria-block.d.ts +0 -60
- package/dist/src/components/editor/blocks/waka-ai-assist-block.d.ts +0 -58
- package/dist/src/components/editor/blocks/waka-api-endpoint-block.d.ts +0 -63
- package/dist/src/components/editor/blocks/waka-code-playground-block.d.ts +0 -61
- package/dist/src/components/editor/blocks/waka-comment-thread-block.d.ts +0 -85
- package/dist/src/components/editor/blocks/waka-diagram-block.d.ts +0 -52
- package/dist/src/components/editor/blocks/waka-embed-block.d.ts +0 -58
- package/dist/src/components/editor/blocks/waka-slash-menu-block.d.ts +0 -67
- package/dist/src/components/editor/blocks/waka-user-story-block.d.ts +0 -79
- package/dist/src/components/editor/blocks/waka-version-diff-block.d.ts +0 -73
- package/dist/src/components/editor/index.d.ts +0 -66
- package/dist/src/components/editor/waka-ai-writer.d.ts +0 -80
- package/dist/src/components/editor/waka-collaborative-editor.d.ts +0 -93
- package/dist/src/components/editor/waka-diff-viewer.d.ts +0 -71
- package/dist/src/components/editor/waka-dnd-editor.d.ts +0 -64
- package/dist/src/components/editor/waka-document-editor.d.ts +0 -92
- package/dist/src/components/editor/waka-editor-elements.d.ts +0 -79
- package/dist/src/components/editor/waka-editor-leaves.d.ts +0 -39
- package/dist/src/components/editor/waka-editor-plugins.d.ts +0 -41
- package/dist/src/components/editor/waka-editor-toolbar.d.ts +0 -20
- package/dist/src/components/editor/waka-editor.d.ts +0 -59
- package/dist/src/components/editor/waka-floating-toolbar.d.ts +0 -47
- package/dist/src/components/editor/waka-markdown-editor.d.ts +0 -60
- package/dist/src/components/editor/waka-mention-editor.d.ts +0 -125
- package/dist/src/components/editor/waka-slash-menu.d.ts +0 -70
- package/dist/src/components/editor/waka-spec-editor.d.ts +0 -88
- package/dist/src/components/error-boundary/ErrorBoundary.d.ts +0 -102
- package/dist/src/components/error-boundary/index.d.ts +0 -2
- package/dist/src/components/form/index.d.ts +0 -23
- package/dist/src/components/input/index.d.ts +0 -5
- package/dist/src/components/label/index.d.ts +0 -5
- package/dist/src/components/navigation-menu/index.d.ts +0 -12
- package/dist/src/components/sheet/index.d.ts +0 -27
- package/dist/src/components/skeleton/index.d.ts +0 -2
- package/dist/src/components/table/index.d.ts +0 -10
- package/dist/src/components/textarea/index.d.ts +0 -5
- package/dist/src/components/toast/index.d.ts +0 -15
- package/dist/src/components/toggle/index.d.ts +0 -12
- package/dist/src/components/typography/index.d.ts +0 -85
- package/dist/src/components/waka-3d-pie-chart/index.d.ts +0 -67
- package/dist/src/components/waka-achievement-unlock/index.d.ts +0 -83
- package/dist/src/components/waka-ad-banner/index.d.ts +0 -36
- package/dist/src/components/waka-ad-fallback/index.d.ts +0 -33
- package/dist/src/components/waka-ad-inline/index.d.ts +0 -15
- package/dist/src/components/waka-ad-interstitial/index.d.ts +0 -26
- package/dist/src/components/waka-ad-placeholder/index.d.ts +0 -17
- package/dist/src/components/waka-ad-provider/index.d.ts +0 -103
- package/dist/src/components/waka-ad-sidebar/index.d.ts +0 -18
- package/dist/src/components/waka-ad-sticky-footer/index.d.ts +0 -17
- package/dist/src/components/waka-address-autocomplete/index.d.ts +0 -124
- package/dist/src/components/waka-admincrumb/index.d.ts +0 -41
- package/dist/src/components/waka-bottom-sheet/index.d.ts +0 -61
- package/dist/src/components/waka-carousel/index.d.ts +0 -105
- package/dist/src/components/waka-charts/WakaAreaChart.d.ts +0 -12
- package/dist/src/components/waka-charts/WakaBarChart.d.ts +0 -12
- package/dist/src/components/waka-charts/WakaChart.d.ts +0 -17
- package/dist/src/components/waka-charts/WakaLineChart.d.ts +0 -12
- package/dist/src/components/waka-charts/WakaMiniChart.d.ts +0 -13
- package/dist/src/components/waka-charts/WakaPieChart.d.ts +0 -12
- package/dist/src/components/waka-charts/WakaSparkline.d.ts +0 -13
- package/dist/src/components/waka-charts/dataTableHelpers.d.ts +0 -34
- package/dist/src/components/waka-charts/hooks/useChartTheme.d.ts +0 -23
- package/dist/src/components/waka-charts/index.d.ts +0 -57
- package/dist/src/components/waka-charts/types.d.ts +0 -298
- package/dist/src/components/waka-chat-bubble/index.d.ts +0 -127
- package/dist/src/components/waka-checkout-stepper/index.d.ts +0 -154
- package/dist/src/components/waka-cohort-table/index.d.ts +0 -130
- package/dist/src/components/waka-combobox/index.d.ts +0 -81
- package/dist/src/components/waka-command-bar/index.d.ts +0 -45
- package/dist/src/components/waka-connection-matrix/index.d.ts +0 -117
- package/dist/src/components/waka-content-recommendation/index.d.ts +0 -23
- package/dist/src/components/waka-cost-breakdown/index.d.ts +0 -50
- package/dist/src/components/waka-credit-activity-feed/index.d.ts +0 -21
- package/dist/src/components/waka-credit-alert/index.d.ts +0 -24
- package/dist/src/components/waka-credit-balance/index.d.ts +0 -30
- package/dist/src/components/waka-credit-history/index.d.ts +0 -31
- package/dist/src/components/waka-credit-meter/index.d.ts +0 -27
- package/dist/src/components/waka-credit-pricing-pack/index.d.ts +0 -17
- package/dist/src/components/waka-credit-quota/index.d.ts +0 -25
- package/dist/src/components/waka-credit-receipt/index.d.ts +0 -23
- package/dist/src/components/waka-credit-top-up/index.d.ts +0 -26
- package/dist/src/components/waka-credit-transaction/index.d.ts +0 -22
- package/dist/src/components/waka-daily-reward/index.d.ts +0 -76
- package/dist/src/components/waka-date-range-picker/index.d.ts +0 -68
- package/dist/src/components/waka-datetime-picker.form-integration/index.d.ts +0 -69
- package/dist/src/components/waka-device-trust/index.d.ts +0 -95
- package/dist/src/components/waka-doc-breadcrumb/index.d.ts +0 -11
- package/dist/src/components/waka-doc-code-block/index.d.ts +0 -9
- package/dist/src/components/waka-doc-renderer/index.d.ts +0 -7
- package/dist/src/components/waka-doc-search/index.d.ts +0 -18
- package/dist/src/components/waka-doc-toc/index.d.ts +0 -11
- package/dist/src/components/waka-doc-toolbar/index.d.ts +0 -10
- package/dist/src/components/waka-dock/index.d.ts +0 -44
- package/dist/src/components/waka-error-shake/index.d.ts +0 -49
- package/dist/src/components/waka-feature-announcement/index.d.ts +0 -112
- package/dist/src/components/waka-flow-diagram/index.d.ts +0 -71
- package/dist/src/components/waka-haptic-button/index.d.ts +0 -45
- package/dist/src/components/waka-hotspot/index.d.ts +0 -106
- package/dist/src/components/waka-leaderboard/index.d.ts +0 -85
- package/dist/src/components/waka-liquid-button/index.d.ts +0 -41
- package/dist/src/components/waka-loading-orbit/index.d.ts +0 -90
- package/dist/src/components/waka-magnetic-button/index.d.ts +0 -56
- package/dist/src/components/waka-metric-sparkline/index.d.ts +0 -46
- package/dist/src/components/waka-modal/index.d.ts +0 -82
- package/dist/src/components/waka-morph-button/index.d.ts +0 -62
- package/dist/src/components/waka-number-input/index.d.ts +0 -60
- package/dist/src/components/waka-outstream-video/index.d.ts +0 -24
- package/dist/src/components/waka-password-strength/index.d.ts +0 -98
- package/dist/src/components/waka-payment-method-picker/index.d.ts +0 -88
- package/dist/src/components/waka-points-popup/index.d.ts +0 -75
- package/dist/src/components/waka-power-up/index.d.ts +0 -103
- package/dist/src/components/waka-pricing-table/index.d.ts +0 -77
- package/dist/src/components/waka-progress-onboarding/index.d.ts +0 -97
- package/dist/src/components/waka-pull-to-refresh/index.d.ts +0 -45
- package/dist/src/components/waka-quota-bar/index.d.ts +0 -100
- package/dist/src/components/waka-radar-score/index.d.ts +0 -95
- package/dist/src/components/waka-resource-pool/index.d.ts +0 -81
- package/dist/src/components/waka-rich-text-editor/index.d.ts +0 -36
- package/dist/src/components/waka-segmented-control/index.d.ts +0 -42
- package/dist/src/components/waka-session-manager/index.d.ts +0 -116
- package/dist/src/components/waka-skeleton-wave/index.d.ts +0 -79
- package/dist/src/components/waka-spinner/index.d.ts +0 -46
- package/dist/src/components/waka-sponsored-card/index.d.ts +0 -25
- package/dist/src/components/waka-sponsored-feed/index.d.ts +0 -31
- package/dist/src/components/waka-spotlight/index.d.ts +0 -47
- package/dist/src/components/waka-stat/index.d.ts +0 -57
- package/dist/src/components/waka-stats-hexagon/index.d.ts +0 -149
- package/dist/src/components/waka-success-explosion/index.d.ts +0 -51
- package/dist/src/components/waka-swipe-card/index.d.ts +0 -64
- package/dist/src/components/waka-tabs-morph/index.d.ts +0 -66
- package/dist/src/components/waka-tag-input/index.d.ts +0 -134
- package/dist/src/components/waka-theme-manager/index.d.ts +0 -62
- package/dist/src/components/waka-tooltip-tour/index.d.ts +0 -118
- package/dist/src/components/waka-tour-guide/index.d.ts +0 -122
- package/dist/src/components/waka-tournament-bracket/index.d.ts +0 -101
- package/dist/src/components/waka-typing-indicator/index.d.ts +0 -64
- package/dist/src/components/waka-versus-card/index.d.ts +0 -117
- package/dist/src/components/waka-video-ad/index.d.ts +0 -32
- package/dist/src/components/waka-video-call/index.d.ts +0 -170
- package/dist/src/components/waka-video-overlay/index.d.ts +0 -26
- package/dist/src/context/admincrumb-context.d.ts +0 -34
- package/dist/src/context/index.d.ts +0 -8
- package/dist/src/context/theme-context.d.ts +0 -39
- package/dist/src/context/waka-provider.d.ts +0 -50
- package/dist/src/doc.d.ts +0 -33
- package/dist/src/editor.d.ts +0 -26
- package/dist/src/export.d.ts +0 -30
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/hooks/use-toast.d.ts +0 -44
- package/dist/src/hooks/useToast.d.ts +0 -44
- package/dist/src/index.d.ts +0 -35
- package/dist/src/lib/i18n.d.ts +0 -4
- package/dist/src/rich-text.d.ts +0 -21
- package/dist/src/stories/Button.d.ts +0 -14
- package/dist/src/stories/Button.stories.d.ts +0 -8
- package/dist/src/stories/Header.d.ts +0 -11
- package/dist/src/stories/Header.stories.d.ts +0 -6
- package/dist/src/stories/Page.d.ts +0 -2
- package/dist/src/stories/Page.stories.d.ts +0 -6
- package/dist/src/stories/editor/EditorStoryWrapper.d.ts +0 -11
- package/dist/src/types/index.d.ts +0 -1
- package/dist/src/utils/datetime-helpers.d.ts +0 -137
- package/dist/src/utils/index.d.ts +0 -6
- package/dist/src/utils/theme-loader.d.ts +0 -101
- package/dist/src/utils/tweak.d.ts +0 -18
- package/dist/textarea-CdQWggYG.js +0 -1
- package/dist/textarea-DJDXJ3nd.mjs +0 -23
- package/dist/types-C2St0wOW.js +0 -1
- package/dist/types-JnqoLyuv.mjs +0 -937
- package/dist/useDataTableImport-BWUFesPi.mjs +0 -250
- package/dist/useDataTableImport-T7ddpN5k.js +0 -7
- package/dist/waka-doc-renderer-CTxC7Trf.js +0 -3
- package/dist/waka-doc-renderer-Cw-Xnyen.mjs +0 -1662
- package/dist/waka-editor-plugins-CGojOMS5.js +0 -1
- package/dist/waka-editor-plugins-Dwh4Vreq.mjs +0 -135
- package/dist/waka-rich-text-editor-BlIdtknG.js +0 -1
- package/dist/waka-rich-text-editor-D1uA3zbB.js +0 -1
- package/dist/waka-rich-text-editor-DgSWiXMW.mjs +0 -342
- package/dist/waka-rich-text-editor-DndVJuDw.mjs +0 -2
- /package/dist/{src/blocks → blocks}/activity-timeline/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/antivirus-dashboard/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/apm-overview/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/auth-2fa/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/calendar-view/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/chat-interface/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/checkout-flow/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/cicd-builder/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/clamav-service-status/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/cloud-cost-dashboard/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/container-orchestrator/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/dashboard-kpi/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/database-admin/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/deployment-dashboard/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/faq/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/file-manager/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/file-scan-uploader/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/footer/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/gitops-sync-status/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/header/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/headtab/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/i18n-editor/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/incident-manager/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/infrastructure-map/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/kanban-board/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/language-selector/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/layout/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/login/types.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/on-call-schedule/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/player-profile/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/profile/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/quarantine-manager/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/release-notes/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/scan-history-log/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/scan-policy-editor/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/scan-report-generator/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/settings/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/signature-database-manager/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/user-management/index.d.ts +0 -0
- /package/dist/{src/blocks → blocks}/wizard/index.d.ts +0 -0
- /package/dist/{src/components → components}/DataTable/DataTableContextMenu.d.ts +0 -0
- /package/dist/{src/components → components}/DataTable/DataTableEditCell.d.ts +0 -0
- /package/dist/{src/components → components}/DataTable/DataTableSelection.d.ts +0 -0
- /package/dist/{src/components → components}/DataTable/examples/EditExample.d.ts +0 -0
- /package/dist/{src/components → components}/accordion/index.d.ts +0 -0
- /package/dist/{src/components → components}/alert-dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/aspect-ratio/index.d.ts +0 -0
- /package/dist/{src/components → components}/avatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/checkbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/collapsible/index.d.ts +0 -0
- /package/dist/{src/components → components}/context-menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/dropdown-menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/hover-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/index.d.ts +0 -0
- /package/dist/{src/components → components}/input-otp/index.d.ts +0 -0
- /package/dist/{src/components → components}/language-selector/index.d.ts +0 -0
- /package/dist/{src/components → components}/menubar/index.d.ts +0 -0
- /package/dist/{src/components → components}/popover/index.d.ts +0 -0
- /package/dist/{src/components → components}/progress/index.d.ts +0 -0
- /package/dist/{src/components → components}/radio-group/index.d.ts +0 -0
- /package/dist/{src/components → components}/scroll-area/index.d.ts +0 -0
- /package/dist/{src/components → components}/select/index.d.ts +0 -0
- /package/dist/{src/components → components}/separator/index.d.ts +0 -0
- /package/dist/{src/components → components}/slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/switch/index.d.ts +0 -0
- /package/dist/{src/components → components}/tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/theme-selector/index.d.ts +0 -0
- /package/dist/{src/components → components}/toaster/index.d.ts +0 -0
- /package/dist/{src/components → components}/tooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-activity-feed/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-alert-panel/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-alert-stack/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-allocation-matrix/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-approval-chain/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-artifact-list/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-audit-log/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-autocomplete/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-badge-showcase/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-barcode/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-biometric-prompt/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-breadcrumb/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-breadcrumb-path/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-budget-burn/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-build-matrix/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-capacity-planner/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-cart-summary/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-challenge-timer/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-charts/hooks/useRechartsLoader.d.ts +0 -0
- /package/dist/{src/components → components}/waka-checklist/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-color-picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-combo-counter/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-compare-period/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-config-comparator/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-container-list/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-contribution-graph/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-coupon-input/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-balance/types.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-breakdown/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-burn-rate/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-card-input/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-projection/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-transfer-form/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-credit-usage-chart/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-database-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-datetime-picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-dependency-tree/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-deployment-lane/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-doc-callout/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-doc-nav/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-doc-table/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-doc-version/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-drawer/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-empty-state/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-env-var-editor/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-feature-flag-row/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-file-upload/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-floating-nav/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-funnel-chart/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-glow-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-goal-progress/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-health-pulse/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-heatmap/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-image/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-incident-timeline/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-invoice-preview/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-kanban/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-kpi-dashboard/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-kubernetes-overview/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-level-progress/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-log-viewer/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-loot-box/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-magic-link/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-mention-input/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-migration-list/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-milestone-road/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-network-topology/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-notifications/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-orbital-menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-order-tracker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-pagination/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-permission-matrix/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-phone-input/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-pipeline-view/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-player-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-pod-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-presence-indicator/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-product-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-qrcode/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-query-explain/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-quest-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-rank-badge/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-rating-input/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-reaction-picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-region-map/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-resource-gauge/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-rollback-slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-sankey-diagram/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-schedule-picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-scratch-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-season-pass/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-secret-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-security-scan-result/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-security-score/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-server-rack/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-service-graph/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-signature-pad/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-skill-tree/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-sla-tracker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-slider-range/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-spin-wheel/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-sponsored-badge/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-status-matrix/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-stepper/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-streak-counter/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-team-banner/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-terminal-output/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-test-report/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-theme-creator/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-thread-view/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-tilt-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-time-picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-timeline/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-trace-viewer/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-tree/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-treemap-chart/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-two-factor-setup/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-typewriter/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-video/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-virtual-list/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-voice-message/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-welcome-modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/waka-xp-bar/index.d.ts +0 -0
- /package/dist/{src/context → context}/language-context.d.ts +0 -0
- /package/dist/{src/context → context}/theme-provider.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-translation.d.ts +0 -0
- /package/dist/{src/types → types}/link.d.ts +0 -0
- /package/dist/{src/types → types}/provider.d.ts +0 -0
- /package/dist/{src/utils → utils}/cn.d.ts +0 -0
- /package/dist/{src/utils → utils}/error-handling.d.ts +0 -0
- /package/dist/{src/utils → utils}/logger.d.ts +0 -0
- /package/dist/{src/utils → utils}/security.d.ts +0 -0
|
@@ -0,0 +1,1678 @@
|
|
|
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 };
|