@wakastellar/ui 4.0.0-dev.0 → 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/components/waka-rich-text-editor/index.d.ts +6 -0
- package/dist/doc.cjs.js +1 -1
- package/dist/doc.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/rich-text.cjs.js +1 -1
- package/dist/rich-text.es.js +1 -1
- package/dist/waka-rich-text-editor-DcZuIQ-q.js +1 -0
- package/dist/{waka-rich-text-editor-BbEpfD5b.mjs → waka-rich-text-editor-SOKYDdDP.mjs} +38 -36
- package/package.json +1 -1
- package/src/components/waka-rich-text-editor/index.tsx +10 -0
- package/dist/editor.d.ts +0 -1
- package/dist/src/blocks/activity-timeline/index.d.ts +0 -73
- package/dist/src/blocks/antivirus-dashboard/index.d.ts +0 -44
- package/dist/src/blocks/apm-overview/index.d.ts +0 -58
- package/dist/src/blocks/auth-2fa/index.d.ts +0 -38
- package/dist/src/blocks/calendar-view/index.d.ts +0 -56
- package/dist/src/blocks/chat/index.d.ts +0 -112
- package/dist/src/blocks/chat/widget.d.ts +0 -100
- package/dist/src/blocks/chat-interface/index.d.ts +0 -66
- package/dist/src/blocks/checkout-flow/index.d.ts +0 -76
- package/dist/src/blocks/cicd-builder/index.d.ts +0 -47
- package/dist/src/blocks/clamav-service-status/index.d.ts +0 -35
- package/dist/src/blocks/cloud-cost-dashboard/index.d.ts +0 -49
- package/dist/src/blocks/container-orchestrator/index.d.ts +0 -63
- package/dist/src/blocks/dashboard/index.d.ts +0 -95
- package/dist/src/blocks/dashboard-kpi/index.d.ts +0 -69
- package/dist/src/blocks/database-admin/index.d.ts +0 -84
- package/dist/src/blocks/deployment-dashboard/index.d.ts +0 -68
- 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/faq/index.d.ts +0 -54
- package/dist/src/blocks/file-manager/index.d.ts +0 -81
- package/dist/src/blocks/file-scan-uploader/index.d.ts +0 -29
- package/dist/src/blocks/footer/index.d.ts +0 -19
- package/dist/src/blocks/gitops-sync-status/index.d.ts +0 -45
- package/dist/src/blocks/header/index.d.ts +0 -86
- package/dist/src/blocks/headtab/index.d.ts +0 -27
- package/dist/src/blocks/i18n-editor/index.d.ts +0 -63
- package/dist/src/blocks/incident-manager/index.d.ts +0 -44
- package/dist/src/blocks/index.d.ts +0 -58
- package/dist/src/blocks/infrastructure-map/index.d.ts +0 -32
- package/dist/src/blocks/kanban-board/index.d.ts +0 -77
- package/dist/src/blocks/landing/index.d.ts +0 -104
- package/dist/src/blocks/language-selector/index.d.ts +0 -6
- package/dist/src/blocks/layout/index.d.ts +0 -28
- package/dist/src/blocks/login/index.d.ts +0 -42
- package/dist/src/blocks/login/types.d.ts +0 -126
- package/dist/src/blocks/on-call-schedule/index.d.ts +0 -43
- package/dist/src/blocks/player-profile/index.d.ts +0 -78
- package/dist/src/blocks/pricing/index.d.ts +0 -64
- package/dist/src/blocks/profile/index.d.ts +0 -98
- package/dist/src/blocks/quarantine-manager/index.d.ts +0 -27
- package/dist/src/blocks/release-notes/index.d.ts +0 -49
- package/dist/src/blocks/scan-history-log/index.d.ts +0 -28
- package/dist/src/blocks/scan-policy-editor/index.d.ts +0 -27
- package/dist/src/blocks/scan-report-generator/index.d.ts +0 -47
- package/dist/src/blocks/settings/index.d.ts +0 -62
- package/dist/src/blocks/sidebar/index.d.ts +0 -155
- package/dist/src/blocks/signature-database-manager/index.d.ts +0 -39
- package/dist/src/blocks/threat-alert-banner/index.d.ts +0 -26
- package/dist/src/blocks/user-management/index.d.ts +0 -95
- 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/blocks/wizard/index.d.ts +0 -88
- 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/cli/utils/remote.d.ts +0 -49
- 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/DataTableContextMenu.d.ts +0 -47
- package/dist/src/components/DataTable/DataTableEditCell.d.ts +0 -29
- 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/DataTableSelection.d.ts +0 -46
- package/dist/src/components/DataTable/DataTableToolbar.d.ts +0 -14
- package/dist/src/components/DataTable/examples/EditExample.d.ts +0 -2
- 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/accordion/index.d.ts +0 -7
- package/dist/src/components/alert/index.d.ts +0 -8
- package/dist/src/components/alert-dialog/index.d.ts +0 -20
- package/dist/src/components/aspect-ratio/index.d.ts +0 -3
- package/dist/src/components/avatar/index.d.ts +0 -6
- 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 -18
- package/dist/src/components/card/index.d.ts +0 -46
- package/dist/src/components/checkbox/index.d.ts +0 -4
- package/dist/src/components/code/index.d.ts +0 -29
- package/dist/src/components/collapsible/index.d.ts +0 -5
- package/dist/src/components/command/index.d.ts +0 -83
- package/dist/src/components/context-menu/index.d.ts +0 -27
- package/dist/src/components/dialog/index.d.ts +0 -19
- package/dist/src/components/dropdown-menu/index.d.ts +0 -27
- 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 -80
- 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 -53
- 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/hover-card/index.d.ts +0 -6
- package/dist/src/components/index.d.ts +0 -257
- package/dist/src/components/input/index.d.ts +0 -19
- package/dist/src/components/input-otp/index.d.ts +0 -51
- package/dist/src/components/label/index.d.ts +0 -5
- package/dist/src/components/language-selector/index.d.ts +0 -40
- package/dist/src/components/menubar/index.d.ts +0 -28
- package/dist/src/components/navigation-menu/index.d.ts +0 -12
- package/dist/src/components/popover/index.d.ts +0 -6
- package/dist/src/components/progress/index.d.ts +0 -4
- package/dist/src/components/radio-group/index.d.ts +0 -5
- package/dist/src/components/scroll-area/index.d.ts +0 -5
- package/dist/src/components/select/index.d.ts +0 -13
- package/dist/src/components/separator/index.d.ts +0 -4
- package/dist/src/components/sheet/index.d.ts +0 -27
- package/dist/src/components/skeleton/index.d.ts +0 -13
- package/dist/src/components/slider/index.d.ts +0 -4
- package/dist/src/components/switch/index.d.ts +0 -4
- package/dist/src/components/table/index.d.ts +0 -21
- package/dist/src/components/tabs/index.d.ts +0 -7
- package/dist/src/components/textarea/index.d.ts +0 -14
- package/dist/src/components/theme-selector/index.d.ts +0 -8
- package/dist/src/components/toast/index.d.ts +0 -15
- package/dist/src/components/toaster/index.d.ts +0 -1
- package/dist/src/components/toggle/index.d.ts +0 -12
- package/dist/src/components/tooltip/index.d.ts +0 -7
- 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-activity-feed/index.d.ts +0 -78
- 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 -129
- package/dist/src/components/waka-admincrumb/index.d.ts +0 -55
- package/dist/src/components/waka-alert-panel/index.d.ts +0 -45
- package/dist/src/components/waka-alert-stack/index.d.ts +0 -58
- package/dist/src/components/waka-allocation-matrix/index.d.ts +0 -193
- package/dist/src/components/waka-approval-chain/index.d.ts +0 -43
- package/dist/src/components/waka-artifact-list/index.d.ts +0 -32
- package/dist/src/components/waka-audit-log/index.d.ts +0 -142
- package/dist/src/components/waka-autocomplete/index.d.ts +0 -59
- package/dist/src/components/waka-badge-showcase/index.d.ts +0 -51
- package/dist/src/components/waka-barcode/index.d.ts +0 -27
- package/dist/src/components/waka-biometric-prompt/index.d.ts +0 -84
- package/dist/src/components/waka-bottom-sheet/index.d.ts +0 -61
- package/dist/src/components/waka-breadcrumb/index.d.ts +0 -43
- package/dist/src/components/waka-breadcrumb-path/index.d.ts +0 -46
- package/dist/src/components/waka-budget-burn/index.d.ts +0 -154
- package/dist/src/components/waka-build-matrix/index.d.ts +0 -36
- package/dist/src/components/waka-capacity-planner/index.d.ts +0 -132
- package/dist/src/components/waka-carousel/index.d.ts +0 -105
- package/dist/src/components/waka-cart-summary/index.d.ts +0 -154
- package/dist/src/components/waka-challenge-timer/index.d.ts +0 -86
- 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/hooks/useRechartsLoader.d.ts +0 -161
- 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-checklist/index.d.ts +0 -123
- 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-color-picker/index.d.ts +0 -40
- package/dist/src/components/waka-combo-counter/index.d.ts +0 -53
- 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-compare-period/index.d.ts +0 -122
- package/dist/src/components/waka-config-comparator/index.d.ts +0 -37
- package/dist/src/components/waka-connection-matrix/index.d.ts +0 -117
- package/dist/src/components/waka-container-list/index.d.ts +0 -51
- package/dist/src/components/waka-content-recommendation/index.d.ts +0 -23
- package/dist/src/components/waka-contribution-graph/index.d.ts +0 -34
- package/dist/src/components/waka-cost-breakdown/index.d.ts +0 -50
- package/dist/src/components/waka-coupon-input/index.d.ts +0 -105
- 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-balance/types.d.ts +0 -34
- package/dist/src/components/waka-credit-breakdown/index.d.ts +0 -32
- package/dist/src/components/waka-credit-burn-rate/index.d.ts +0 -25
- package/dist/src/components/waka-credit-card-input/index.d.ts +0 -95
- 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-projection/index.d.ts +0 -21
- 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-credit-transfer-form/index.d.ts +0 -27
- package/dist/src/components/waka-credit-usage-chart/index.d.ts +0 -34
- package/dist/src/components/waka-daily-reward/index.d.ts +0 -76
- package/dist/src/components/waka-database-card/index.d.ts +0 -46
- package/dist/src/components/waka-date-range-picker/index.d.ts +0 -68
- package/dist/src/components/waka-datetime-picker/index.d.ts +0 -135
- package/dist/src/components/waka-datetime-picker.form-integration/index.d.ts +0 -73
- package/dist/src/components/waka-dependency-tree/index.d.ts +0 -38
- package/dist/src/components/waka-deployment-lane/index.d.ts +0 -43
- 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-callout/index.d.ts +0 -9
- package/dist/src/components/waka-doc-code-block/index.d.ts +0 -9
- package/dist/src/components/waka-doc-nav/index.d.ts +0 -16
- package/dist/src/components/waka-doc-renderer/index.d.ts +0 -7
- package/dist/src/components/waka-doc-search/index.d.ts +0 -23
- package/dist/src/components/waka-doc-table/index.d.ts +0 -8
- package/dist/src/components/waka-doc-toc/index.d.ts +0 -11
- package/dist/src/components/waka-doc-toolbar/index.d.ts +0 -15
- package/dist/src/components/waka-doc-version/index.d.ts +0 -13
- package/dist/src/components/waka-dock/index.d.ts +0 -49
- package/dist/src/components/waka-drawer/index.d.ts +0 -59
- package/dist/src/components/waka-empty-state/index.d.ts +0 -85
- package/dist/src/components/waka-env-var-editor/index.d.ts +0 -30
- 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-feature-flag-row/index.d.ts +0 -45
- package/dist/src/components/waka-file-upload/index.d.ts +0 -49
- package/dist/src/components/waka-floating-nav/index.d.ts +0 -51
- package/dist/src/components/waka-flow-diagram/index.d.ts +0 -71
- package/dist/src/components/waka-funnel-chart/index.d.ts +0 -108
- package/dist/src/components/waka-glow-card/index.d.ts +0 -32
- package/dist/src/components/waka-goal-progress/index.d.ts +0 -139
- package/dist/src/components/waka-haptic-button/index.d.ts +0 -50
- package/dist/src/components/waka-health-pulse/index.d.ts +0 -28
- package/dist/src/components/waka-heatmap/index.d.ts +0 -135
- package/dist/src/components/waka-hotspot/index.d.ts +0 -111
- package/dist/src/components/waka-image/index.d.ts +0 -59
- package/dist/src/components/waka-incident-timeline/index.d.ts +0 -38
- package/dist/src/components/waka-invoice-preview/index.d.ts +0 -137
- package/dist/src/components/waka-kanban/index.d.ts +0 -68
- package/dist/src/components/waka-kpi-dashboard/index.d.ts +0 -80
- package/dist/src/components/waka-kubernetes-overview/index.d.ts +0 -98
- package/dist/src/components/waka-leaderboard/index.d.ts +0 -85
- package/dist/src/components/waka-level-progress/index.d.ts +0 -89
- package/dist/src/components/waka-liquid-button/index.d.ts +0 -46
- package/dist/src/components/waka-loading-orbit/index.d.ts +0 -90
- package/dist/src/components/waka-log-viewer/index.d.ts +0 -38
- package/dist/src/components/waka-loot-box/index.d.ts +0 -87
- package/dist/src/components/waka-magic-link/index.d.ts +0 -34
- package/dist/src/components/waka-magnetic-button/index.d.ts +0 -61
- package/dist/src/components/waka-mention-input/index.d.ts +0 -106
- package/dist/src/components/waka-metric-sparkline/index.d.ts +0 -46
- package/dist/src/components/waka-migration-list/index.d.ts +0 -36
- package/dist/src/components/waka-milestone-road/index.d.ts +0 -91
- package/dist/src/components/waka-modal/index.d.ts +0 -87
- package/dist/src/components/waka-morph-button/index.d.ts +0 -62
- package/dist/src/components/waka-network-topology/index.d.ts +0 -35
- package/dist/src/components/waka-notifications/index.d.ts +0 -40
- package/dist/src/components/waka-number-input/index.d.ts +0 -60
- package/dist/src/components/waka-orbital-menu/index.d.ts +0 -61
- package/dist/src/components/waka-order-tracker/index.d.ts +0 -121
- package/dist/src/components/waka-outstream-video/index.d.ts +0 -24
- package/dist/src/components/waka-pagination/index.d.ts +0 -67
- 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-permission-matrix/index.d.ts +0 -197
- package/dist/src/components/waka-phone-input/index.d.ts +0 -93
- package/dist/src/components/waka-pipeline-view/index.d.ts +0 -49
- package/dist/src/components/waka-player-card/index.d.ts +0 -36
- package/dist/src/components/waka-pod-card/index.d.ts +0 -73
- 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-presence-indicator/index.d.ts +0 -188
- package/dist/src/components/waka-pricing-table/index.d.ts +0 -77
- package/dist/src/components/waka-product-card/index.d.ts +0 -81
- 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-qrcode/index.d.ts +0 -32
- package/dist/src/components/waka-query-explain/index.d.ts +0 -48
- package/dist/src/components/waka-quest-card/index.d.ts +0 -110
- 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-rank-badge/index.d.ts +0 -58
- package/dist/src/components/waka-rating-input/index.d.ts +0 -110
- package/dist/src/components/waka-reaction-picker/index.d.ts +0 -77
- package/dist/src/components/waka-region-map/index.d.ts +0 -27
- package/dist/src/components/waka-resource-gauge/index.d.ts +0 -78
- 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-rollback-slider/index.d.ts +0 -79
- package/dist/src/components/waka-sankey-diagram/index.d.ts +0 -120
- package/dist/src/components/waka-schedule-picker/index.d.ts +0 -100
- package/dist/src/components/waka-scratch-card/index.d.ts +0 -87
- package/dist/src/components/waka-season-pass/index.d.ts +0 -65
- package/dist/src/components/waka-secret-card/index.d.ts +0 -43
- package/dist/src/components/waka-security-scan-result/index.d.ts +0 -45
- package/dist/src/components/waka-security-score/index.d.ts +0 -124
- package/dist/src/components/waka-segmented-control/index.d.ts +0 -42
- package/dist/src/components/waka-server-rack/index.d.ts +0 -44
- package/dist/src/components/waka-service-graph/index.d.ts +0 -44
- package/dist/src/components/waka-session-manager/index.d.ts +0 -116
- package/dist/src/components/waka-signature-pad/index.d.ts +0 -87
- package/dist/src/components/waka-skeleton-wave/index.d.ts +0 -79
- package/dist/src/components/waka-skill-tree/index.d.ts +0 -78
- package/dist/src/components/waka-sla-tracker/index.d.ts +0 -65
- package/dist/src/components/waka-slider-range/index.d.ts +0 -88
- package/dist/src/components/waka-spin-wheel/index.d.ts +0 -51
- package/dist/src/components/waka-spinner/index.d.ts +0 -46
- package/dist/src/components/waka-sponsored-badge/index.d.ts +0 -20
- 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-status-matrix/index.d.ts +0 -38
- package/dist/src/components/waka-stepper/index.d.ts +0 -76
- package/dist/src/components/waka-streak-counter/index.d.ts +0 -27
- 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-team-banner/index.d.ts +0 -122
- package/dist/src/components/waka-terminal-output/index.d.ts +0 -48
- package/dist/src/components/waka-test-report/index.d.ts +0 -60
- package/dist/src/components/waka-theme-creator/index.d.ts +0 -59
- package/dist/src/components/waka-theme-manager/index.d.ts +0 -62
- package/dist/src/components/waka-thread-view/index.d.ts +0 -101
- package/dist/src/components/waka-tilt-card/index.d.ts +0 -36
- package/dist/src/components/waka-time-picker/index.d.ts +0 -51
- package/dist/src/components/waka-timeline/index.d.ts +0 -46
- package/dist/src/components/waka-tooltip-tour/index.d.ts +0 -123
- package/dist/src/components/waka-tour-guide/index.d.ts +0 -127
- package/dist/src/components/waka-tournament-bracket/index.d.ts +0 -101
- package/dist/src/components/waka-trace-viewer/index.d.ts +0 -36
- package/dist/src/components/waka-tree/index.d.ts +0 -67
- package/dist/src/components/waka-treemap-chart/index.d.ts +0 -104
- package/dist/src/components/waka-two-factor-setup/index.d.ts +0 -93
- package/dist/src/components/waka-typewriter/index.d.ts +0 -98
- 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/index.d.ts +0 -66
- 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/components/waka-virtual-list/index.d.ts +0 -54
- package/dist/src/components/waka-voice-message/index.d.ts +0 -117
- package/dist/src/components/waka-welcome-modal/index.d.ts +0 -120
- package/dist/src/components/waka-xp-bar/index.d.ts +0 -54
- package/dist/src/context/admincrumb-context.d.ts +0 -34
- package/dist/src/context/index.d.ts +0 -8
- package/dist/src/context/language-context.d.ts +0 -57
- package/dist/src/context/theme-context.d.ts +0 -39
- package/dist/src/context/theme-provider.d.ts +0 -74
- 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/use-translation.d.ts +0 -15
- 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/types/link.d.ts +0 -23
- package/dist/src/types/provider.d.ts +0 -108
- package/dist/src/utils/cn.d.ts +0 -1
- package/dist/src/utils/datetime-helpers.d.ts +0 -137
- package/dist/src/utils/error-handling.d.ts +0 -190
- package/dist/src/utils/index.d.ts +0 -6
- package/dist/src/utils/logger.d.ts +0 -9
- package/dist/src/utils/security.d.ts +0 -96
- package/dist/src/utils/theme-loader.d.ts +0 -101
- package/dist/src/utils/tweak.d.ts +0 -18
- package/dist/waka-rich-text-editor-C4b30Ik-.js +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
-
declare const Collapsible: typeof CollapsiblePrimitive.Root;
|
|
3
|
-
declare const CollapsibleTrigger: typeof CollapsiblePrimitive.CollapsibleTrigger;
|
|
4
|
-
declare const CollapsibleContent: typeof CollapsiblePrimitive.CollapsibleContent;
|
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from '@radix-ui/react-dialog';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
-
} & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
10
|
-
label?: string;
|
|
11
|
-
shouldFilter?: boolean;
|
|
12
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
-
defaultValue?: string;
|
|
14
|
-
value?: string;
|
|
15
|
-
onValueChange?: (value: string) => void;
|
|
16
|
-
loop?: boolean;
|
|
17
|
-
disablePointerSelection?: boolean;
|
|
18
|
-
vimBindings?: boolean;
|
|
19
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
interface CommandDialogProps extends DialogProps {
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
25
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
26
|
-
} & {
|
|
27
|
-
asChild?: boolean;
|
|
28
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
29
|
-
value?: string;
|
|
30
|
-
onValueChange?: (search: string) => void;
|
|
31
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
-
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
35
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
36
|
-
} & {
|
|
37
|
-
asChild?: boolean;
|
|
38
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
39
|
-
label?: string;
|
|
40
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
44
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
45
|
-
} & {
|
|
46
|
-
asChild?: boolean;
|
|
47
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
-
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
49
|
-
children?: React.ReactNode;
|
|
50
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
51
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
52
|
-
} & {
|
|
53
|
-
asChild?: boolean;
|
|
54
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
55
|
-
heading?: React.ReactNode;
|
|
56
|
-
value?: string;
|
|
57
|
-
forceMount?: boolean;
|
|
58
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
60
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
61
|
-
} & {
|
|
62
|
-
asChild?: boolean;
|
|
63
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
64
|
-
alwaysRender?: boolean;
|
|
65
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
66
|
-
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
67
|
-
children?: React.ReactNode;
|
|
68
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
69
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
70
|
-
} & {
|
|
71
|
-
asChild?: boolean;
|
|
72
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
73
|
-
disabled?: boolean;
|
|
74
|
-
onSelect?: (value: string) => void;
|
|
75
|
-
value?: string;
|
|
76
|
-
keywords?: string[];
|
|
77
|
-
forceMount?: boolean;
|
|
78
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
-
declare const CommandShortcut: {
|
|
80
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
81
|
-
displayName: string;
|
|
82
|
-
};
|
|
83
|
-
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
3
|
-
declare const ContextMenu: typeof ContextMenuPrimitive.Root;
|
|
4
|
-
declare const ContextMenuTrigger: typeof ContextMenuPrimitive.Trigger;
|
|
5
|
-
declare const ContextMenuGroup: typeof ContextMenuPrimitive.Group;
|
|
6
|
-
declare const ContextMenuPortal: typeof ContextMenuPrimitive.Portal;
|
|
7
|
-
declare const ContextMenuSub: typeof ContextMenuPrimitive.Sub;
|
|
8
|
-
declare const ContextMenuRadioGroup: typeof ContextMenuPrimitive.RadioGroup;
|
|
9
|
-
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
-
inset?: boolean;
|
|
11
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
-
inset?: boolean;
|
|
16
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
-
inset?: boolean;
|
|
21
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare const ContextMenuShortcut: {
|
|
24
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
27
|
-
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
declare const Dialog: typeof DialogPrimitive.Root;
|
|
4
|
-
declare const DialogTrigger: typeof DialogPrimitive.Trigger;
|
|
5
|
-
declare const DialogPortal: typeof DialogPrimitive.Portal;
|
|
6
|
-
declare const DialogClose: typeof DialogPrimitive.Close;
|
|
7
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const DialogHeader: {
|
|
10
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
declare const DialogFooter: {
|
|
14
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
declare const DropdownMenu: typeof DropdownMenuPrimitive.Root;
|
|
4
|
-
declare const DropdownMenuTrigger: typeof DropdownMenuPrimitive.Trigger;
|
|
5
|
-
declare const DropdownMenuGroup: typeof DropdownMenuPrimitive.Group;
|
|
6
|
-
declare const DropdownMenuPortal: typeof DropdownMenuPrimitive.Portal;
|
|
7
|
-
declare const DropdownMenuSub: typeof DropdownMenuPrimitive.Sub;
|
|
8
|
-
declare const DropdownMenuRadioGroup: typeof DropdownMenuPrimitive.RadioGroup;
|
|
9
|
-
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
-
inset?: boolean;
|
|
11
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
-
inset?: boolean;
|
|
16
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
-
inset?: boolean;
|
|
21
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare const DropdownMenuShortcut: {
|
|
24
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
27
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WakaStart Editor Blocks — Custom Plate.js block elements for the WakaStart ecosystem.
|
|
3
|
-
*
|
|
4
|
-
* These blocks extend the standard Plate editor with domain-specific elements
|
|
5
|
-
* designed for PaaS project management, specification writing, and technical documentation.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { WakaUserStoryBlock, createUserStoryPlugin } from "@wakastellar/ui/editor"
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* Each block provides:
|
|
13
|
-
* - A React component for rendering in the Plate editor
|
|
14
|
-
* - A node factory function for creating Slate nodes
|
|
15
|
-
* - A plugin factory for registering with the Plate editor
|
|
16
|
-
* - Full TypeScript types for the Slate element shape
|
|
17
|
-
*/
|
|
18
|
-
export { WakaUserStoryBlock, createUserStoryNodes, createUserStoryPlugin, USER_STORY_BLOCK_TYPE, type UserStoryElement, type WakaUserStoryBlockProps, } from './waka-user-story-block';
|
|
19
|
-
export { WakaAcceptanceCriteriaBlock, createAcceptanceCriteriaNodes, createAcceptanceCriteriaPlugin, ACCEPTANCE_CRITERIA_BLOCK_TYPE, type AcceptanceCriterion, type AcceptanceCriteriaElement, type WakaAcceptanceCriteriaBlockProps, } from './waka-acceptance-criteria-block';
|
|
20
|
-
export { WakaApiEndpointBlock, createApiEndpointNodes, createApiEndpointPlugin, API_ENDPOINT_BLOCK_TYPE, type HttpMethod, type ApiParam, type ApiResponse, type ApiEndpointElement, type WakaApiEndpointBlockProps, } from './waka-api-endpoint-block';
|
|
21
|
-
export { WakaDiagramBlock, createDiagramNodes, createDiagramPlugin, DIAGRAM_BLOCK_TYPE, type DiagramSyntax, type DiagramElement, type WakaDiagramBlockProps, } from './waka-diagram-block';
|
|
22
|
-
export { WakaAiAssistBlock, createAiAssistNodes, createAiAssistPlugin, AI_ASSIST_BLOCK_TYPE, type AiAssistStatus, type AiAssistElement, type WakaAiAssistBlockProps, } from './waka-ai-assist-block';
|
|
23
|
-
export { WakaVersionDiffBlock, createVersionDiffNodes, createVersionDiffPlugin, VERSION_DIFF_BLOCK_TYPE, type DiffLine, type DiffHunk, type VersionDiffElement, type WakaVersionDiffBlockProps, } from './waka-version-diff-block';
|
|
24
|
-
export { WakaEmbedBlock, createEmbedNodes, createEmbedPlugin, detectEmbedProvider, resolveEmbedUrl, EMBED_BLOCK_TYPE, type EmbedProvider, type EmbedElement, type WakaEmbedBlockProps, } from './waka-embed-block';
|
|
25
|
-
export { WakaCodePlaygroundBlock, createCodePlaygroundNodes, createCodePlaygroundPlugin, CODE_PLAYGROUND_BLOCK_TYPE, type PlaygroundLanguage, type ExecutionStatus, type CodePlaygroundElement, type WakaCodePlaygroundBlockProps, } from './waka-code-playground-block';
|
|
26
|
-
export { WakaCommentThreadBlock, createCommentThreadNodes, createCommentThreadPlugin, COMMENT_THREAD_BLOCK_TYPE, type ThreadComment, type ThreadStatus, type CommentThreadElement, type WakaCommentThreadBlockProps, } from './waka-comment-thread-block';
|
|
27
|
-
export { WakaSlashMenuBlock, getAllWakaSlashCommands, createWakaSlashPlugins, WAKA_BLOCK_COMMANDS, type WakaSlashBlockCommand, type WakaSlashMenuBlockProps, } from './waka-slash-menu-block';
|
|
28
|
-
/**
|
|
29
|
-
* Loads all WakaStart block plugins at once.
|
|
30
|
-
* Returns an array of Plate plugins to spread into your editor configuration.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const blockPlugins = await loadAllWakaBlockPlugins()
|
|
35
|
-
* const editor = usePlateEditor({
|
|
36
|
-
* plugins: [...corePlugins, ...blockPlugins],
|
|
37
|
-
* })
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function loadAllWakaBlockPlugins(options?: {
|
|
41
|
-
/** Mermaid/diagram render function */
|
|
42
|
-
diagramRenderer?: (source: string, syntax: string) => Promise<string>;
|
|
43
|
-
/** AI generation function */
|
|
44
|
-
aiGenerator?: (prompt: string) => Promise<string>;
|
|
45
|
-
/** Code execution function */
|
|
46
|
-
codeExecutor?: (code: string, language: string) => Promise<string>;
|
|
47
|
-
/** Current user ID for comments */
|
|
48
|
-
currentUserId?: string;
|
|
49
|
-
/** Comment reply handler */
|
|
50
|
-
onCommentReply?: (threadId: string, content: string) => void;
|
|
51
|
-
}): Promise<unknown[]>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { PlateElementProps } from '../waka-editor-elements';
|
|
2
|
-
export declare const ACCEPTANCE_CRITERIA_BLOCK_TYPE: "acceptance_criteria";
|
|
3
|
-
/** A single acceptance criterion in Gherkin format */
|
|
4
|
-
export interface AcceptanceCriterion {
|
|
5
|
-
/** Unique ID (e.g. "AC-01") */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Scenario name */
|
|
8
|
-
scenario: string;
|
|
9
|
-
/** Given (context / precondition) */
|
|
10
|
-
given: string;
|
|
11
|
-
/** When (action / trigger) */
|
|
12
|
-
when: string;
|
|
13
|
-
/** Then (expected result) */
|
|
14
|
-
then: string;
|
|
15
|
-
/** Whether this criterion has been validated */
|
|
16
|
-
validated: boolean;
|
|
17
|
-
}
|
|
18
|
-
/** Slate node for acceptance criteria block */
|
|
19
|
-
export interface AcceptanceCriteriaElement {
|
|
20
|
-
type: typeof ACCEPTANCE_CRITERIA_BLOCK_TYPE;
|
|
21
|
-
/** Block title */
|
|
22
|
-
title: string;
|
|
23
|
-
/** List of criteria */
|
|
24
|
-
criteria: AcceptanceCriterion[];
|
|
25
|
-
children: Array<{
|
|
26
|
-
text: string;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
export interface WakaAcceptanceCriteriaBlockProps extends PlateElementProps {
|
|
30
|
-
element?: AcceptanceCriteriaElement & Record<string, unknown>;
|
|
31
|
-
/** Whether the block is read-only */
|
|
32
|
-
readOnly?: boolean;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* WakaAcceptanceCriteriaBlock - A Plate.js block for acceptance criteria in
|
|
36
|
-
* Gherkin format (Given/When/Then). Each criterion has a checkbox for
|
|
37
|
-
* validation tracking.
|
|
38
|
-
*
|
|
39
|
-
* Register in Plate editor:
|
|
40
|
-
* ```ts
|
|
41
|
-
* components: {
|
|
42
|
-
* [ACCEPTANCE_CRITERIA_BLOCK_TYPE]: WakaAcceptanceCriteriaBlock,
|
|
43
|
-
* }
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export declare function WakaAcceptanceCriteriaBlock({ attributes, children, element, className, }: WakaAcceptanceCriteriaBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
export declare namespace WakaAcceptanceCriteriaBlock {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Creates Slate nodes for an acceptance criteria block.
|
|
52
|
-
*/
|
|
53
|
-
export declare function createAcceptanceCriteriaNodes(options?: {
|
|
54
|
-
title?: string;
|
|
55
|
-
criteria?: AcceptanceCriterion[];
|
|
56
|
-
}): AcceptanceCriteriaElement[];
|
|
57
|
-
/**
|
|
58
|
-
* Creates a Plate plugin for acceptance criteria blocks.
|
|
59
|
-
*/
|
|
60
|
-
export declare function createAcceptanceCriteriaPlugin(): Promise<any>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { PlateElementProps } from '../waka-editor-elements';
|
|
2
|
-
export declare const AI_ASSIST_BLOCK_TYPE: "ai_assist";
|
|
3
|
-
/** Status of the AI request */
|
|
4
|
-
export type AiAssistStatus = "idle" | "loading" | "streaming" | "complete" | "error";
|
|
5
|
-
/** Slate node for AI assist blocks */
|
|
6
|
-
export interface AiAssistElement {
|
|
7
|
-
type: typeof AI_ASSIST_BLOCK_TYPE;
|
|
8
|
-
/** The user's prompt/question */
|
|
9
|
-
prompt: string;
|
|
10
|
-
/** The AI-generated response */
|
|
11
|
-
response: string;
|
|
12
|
-
/** Current status */
|
|
13
|
-
status: AiAssistStatus;
|
|
14
|
-
/** Model used for generation */
|
|
15
|
-
model?: string;
|
|
16
|
-
/** Timestamp of generation */
|
|
17
|
-
generatedAt?: string;
|
|
18
|
-
/** Error message if status is "error" */
|
|
19
|
-
errorMessage?: string;
|
|
20
|
-
/** Token count */
|
|
21
|
-
tokenCount?: number;
|
|
22
|
-
children: Array<{
|
|
23
|
-
text: string;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
export interface WakaAiAssistBlockProps extends PlateElementProps {
|
|
27
|
-
element?: AiAssistElement & Record<string, unknown>;
|
|
28
|
-
/** Callback to trigger AI generation. Receives the prompt, returns a response or streams it. */
|
|
29
|
-
onGenerate?: (prompt: string) => Promise<string>;
|
|
30
|
-
/** Callback when the user accepts the response and wants it inserted into the document */
|
|
31
|
-
onAccept?: (response: string) => void;
|
|
32
|
-
/** Callback when the user discards the response */
|
|
33
|
-
onDiscard?: () => void;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* WakaAiAssistBlock - A Plate.js block where the user poses a question or prompt,
|
|
37
|
-
* and the AI response is inserted directly into the document. Supports streaming
|
|
38
|
-
* responses, accept/discard actions, and model attribution.
|
|
39
|
-
*
|
|
40
|
-
* Designed to work with `@platejs/ai` AIChatPlugin, or standalone with a custom
|
|
41
|
-
* `onGenerate` callback.
|
|
42
|
-
*
|
|
43
|
-
* Register in Plate editor:
|
|
44
|
-
* ```ts
|
|
45
|
-
* components: {
|
|
46
|
-
* [AI_ASSIST_BLOCK_TYPE]: (props) => <WakaAiAssistBlock {...props} onGenerate={myHandler} />,
|
|
47
|
-
* }
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function WakaAiAssistBlock({ attributes, children, element, className, onGenerate, onAccept, onDiscard, }: WakaAiAssistBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
export declare namespace WakaAiAssistBlock {
|
|
52
|
-
var displayName: string;
|
|
53
|
-
}
|
|
54
|
-
export declare function createAiAssistNodes(options?: {
|
|
55
|
-
prompt?: string;
|
|
56
|
-
model?: string;
|
|
57
|
-
}): AiAssistElement[];
|
|
58
|
-
export declare function createAiAssistPlugin(onGenerate?: (prompt: string) => Promise<string>, onAccept?: (response: string) => void): Promise<any>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { PlateElementProps } from '../waka-editor-elements';
|
|
2
|
-
export declare const API_ENDPOINT_BLOCK_TYPE: "api_endpoint";
|
|
3
|
-
/** HTTP method type */
|
|
4
|
-
export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
5
|
-
/** A single parameter/header definition */
|
|
6
|
-
export interface ApiParam {
|
|
7
|
-
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
required: boolean;
|
|
10
|
-
description: string;
|
|
11
|
-
}
|
|
12
|
-
/** A response definition */
|
|
13
|
-
export interface ApiResponse {
|
|
14
|
-
status: number;
|
|
15
|
-
description: string;
|
|
16
|
-
body?: string;
|
|
17
|
-
}
|
|
18
|
-
/** Slate node for API endpoint block */
|
|
19
|
-
export interface ApiEndpointElement {
|
|
20
|
-
type: typeof API_ENDPOINT_BLOCK_TYPE;
|
|
21
|
-
/** HTTP method */
|
|
22
|
-
method: HttpMethod;
|
|
23
|
-
/** Route path (e.g. "/api/v1/projects/:id") */
|
|
24
|
-
route: string;
|
|
25
|
-
/** Endpoint description */
|
|
26
|
-
description: string;
|
|
27
|
-
/** Authentication requirement */
|
|
28
|
-
auth: string;
|
|
29
|
-
/** Required permissions/roles */
|
|
30
|
-
permissions: string[];
|
|
31
|
-
/** Rate limit description */
|
|
32
|
-
rateLimit?: string;
|
|
33
|
-
/** Path/query parameters */
|
|
34
|
-
params?: ApiParam[];
|
|
35
|
-
/** Request body (JSON string) */
|
|
36
|
-
requestBody?: string;
|
|
37
|
-
/** Response definitions */
|
|
38
|
-
responses: ApiResponse[];
|
|
39
|
-
children: Array<{
|
|
40
|
-
text: string;
|
|
41
|
-
}>;
|
|
42
|
-
}
|
|
43
|
-
export interface WakaApiEndpointBlockProps extends PlateElementProps {
|
|
44
|
-
element?: ApiEndpointElement & Record<string, unknown>;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* WakaApiEndpointBlock - A Plate.js block for documenting REST API endpoints.
|
|
48
|
-
* Displays method, route, parameters, request body, and responses with
|
|
49
|
-
* syntax-colored JSON previews.
|
|
50
|
-
*
|
|
51
|
-
* Register in Plate editor:
|
|
52
|
-
* ```ts
|
|
53
|
-
* components: {
|
|
54
|
-
* [API_ENDPOINT_BLOCK_TYPE]: WakaApiEndpointBlock,
|
|
55
|
-
* }
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
export declare function WakaApiEndpointBlock({ attributes, children, element, className, }: WakaApiEndpointBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
-
export declare namespace WakaApiEndpointBlock {
|
|
60
|
-
var displayName: string;
|
|
61
|
-
}
|
|
62
|
-
export declare function createApiEndpointNodes(options?: Partial<Omit<ApiEndpointElement, "type" | "children">>): ApiEndpointElement[];
|
|
63
|
-
export declare function createApiEndpointPlugin(): Promise<any>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { PlateElementProps } from '../waka-editor-elements';
|
|
2
|
-
export declare const CODE_PLAYGROUND_BLOCK_TYPE: "code_playground";
|
|
3
|
-
/** Supported programming languages */
|
|
4
|
-
export type PlaygroundLanguage = "javascript" | "typescript" | "python" | "html" | "css" | "json" | "sql" | "bash" | "go" | "rust";
|
|
5
|
-
/** Execution status */
|
|
6
|
-
export type ExecutionStatus = "idle" | "running" | "success" | "error";
|
|
7
|
-
/** Slate node for code playground blocks */
|
|
8
|
-
export interface CodePlaygroundElement {
|
|
9
|
-
type: typeof CODE_PLAYGROUND_BLOCK_TYPE;
|
|
10
|
-
/** Source code */
|
|
11
|
-
code: string;
|
|
12
|
-
/** Programming language */
|
|
13
|
-
language: PlaygroundLanguage;
|
|
14
|
-
/** Title / filename */
|
|
15
|
-
title?: string;
|
|
16
|
-
/** Last execution output */
|
|
17
|
-
output?: string;
|
|
18
|
-
/** Last execution error */
|
|
19
|
-
errorOutput?: string;
|
|
20
|
-
/** Execution status */
|
|
21
|
-
executionStatus: ExecutionStatus;
|
|
22
|
-
/** Whether to show line numbers */
|
|
23
|
-
showLineNumbers: boolean;
|
|
24
|
-
/** Whether the code is read-only */
|
|
25
|
-
readOnly: boolean;
|
|
26
|
-
children: Array<{
|
|
27
|
-
text: string;
|
|
28
|
-
}>;
|
|
29
|
-
}
|
|
30
|
-
export interface WakaCodePlaygroundBlockProps extends PlateElementProps {
|
|
31
|
-
element?: CodePlaygroundElement & Record<string, unknown>;
|
|
32
|
-
/** Callback to execute code. Returns stdout output or throws with stderr. */
|
|
33
|
-
onExecute?: (code: string, language: PlaygroundLanguage) => Promise<string>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* WakaCodePlaygroundBlock - A Plate.js block with an inline code editor and
|
|
37
|
-
* sandboxed execution. Users write code and can run it, seeing output in
|
|
38
|
-
* an integrated console panel.
|
|
39
|
-
*
|
|
40
|
-
* Execution is sandboxed via the `onExecute` callback provided by the
|
|
41
|
-
* consuming application (e.g. using Web Workers, iframes, or server-side eval).
|
|
42
|
-
*
|
|
43
|
-
* Register in Plate editor:
|
|
44
|
-
* ```ts
|
|
45
|
-
* components: {
|
|
46
|
-
* [CODE_PLAYGROUND_BLOCK_TYPE]: (props) => (
|
|
47
|
-
* <WakaCodePlaygroundBlock {...props} onExecute={myExecutor} />
|
|
48
|
-
* ),
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare function WakaCodePlaygroundBlock({ attributes, children, element, className, onExecute, }: WakaCodePlaygroundBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export declare namespace WakaCodePlaygroundBlock {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
56
|
-
export declare function createCodePlaygroundNodes(options?: {
|
|
57
|
-
code?: string;
|
|
58
|
-
language?: PlaygroundLanguage;
|
|
59
|
-
title?: string;
|
|
60
|
-
}): CodePlaygroundElement[];
|
|
61
|
-
export declare function createCodePlaygroundPlugin(onExecute?: (code: string, language: PlaygroundLanguage) => Promise<string>): Promise<any>;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { PlateElementProps } from '../waka-editor-elements';
|
|
2
|
-
export declare const COMMENT_THREAD_BLOCK_TYPE: "comment_thread";
|
|
3
|
-
/** A single comment in a thread */
|
|
4
|
-
export interface ThreadComment {
|
|
5
|
-
/** Unique comment ID */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Author information */
|
|
8
|
-
author: {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
avatar?: string;
|
|
12
|
-
};
|
|
13
|
-
/** Comment text content */
|
|
14
|
-
content: string;
|
|
15
|
-
/** ISO timestamp */
|
|
16
|
-
createdAt: string;
|
|
17
|
-
/** Whether this comment has been edited */
|
|
18
|
-
edited?: boolean;
|
|
19
|
-
/** Reactions on this comment */
|
|
20
|
-
reactions?: Array<{
|
|
21
|
-
emoji: string;
|
|
22
|
-
count: number;
|
|
23
|
-
reacted: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
/** Thread status */
|
|
27
|
-
export type ThreadStatus = "open" | "resolved" | "archived";
|
|
28
|
-
/** Slate node for comment thread blocks */
|
|
29
|
-
export interface CommentThreadElement {
|
|
30
|
-
type: typeof COMMENT_THREAD_BLOCK_TYPE;
|
|
31
|
-
/** Thread ID */
|
|
32
|
-
threadId: string;
|
|
33
|
-
/** The original highlighted text that was commented on */
|
|
34
|
-
quotedText: string;
|
|
35
|
-
/** Thread status */
|
|
36
|
-
status: ThreadStatus;
|
|
37
|
-
/** Comments in the thread */
|
|
38
|
-
comments: ThreadComment[];
|
|
39
|
-
/** Total number of comments (may differ from comments.length if paginated) */
|
|
40
|
-
totalComments?: number;
|
|
41
|
-
children: Array<{
|
|
42
|
-
text: string;
|
|
43
|
-
}>;
|
|
44
|
-
}
|
|
45
|
-
export interface WakaCommentThreadBlockProps extends PlateElementProps {
|
|
46
|
-
element?: CommentThreadElement & Record<string, unknown>;
|
|
47
|
-
/** Current user ID (for highlighting own comments) */
|
|
48
|
-
currentUserId?: string;
|
|
49
|
-
/** Callback when a reply is submitted */
|
|
50
|
-
onReply?: (threadId: string, content: string) => void;
|
|
51
|
-
/** Callback when thread is resolved */
|
|
52
|
-
onResolve?: (threadId: string) => void;
|
|
53
|
-
/** Callback when thread is reopened */
|
|
54
|
-
onReopen?: (threadId: string) => void;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* WakaCommentThreadBlock - A Plate.js block for inline threaded comments,
|
|
58
|
-
* similar to Google Docs commenting. Shows the quoted text that was commented on,
|
|
59
|
-
* a thread of replies, and allows adding new replies.
|
|
60
|
-
*
|
|
61
|
-
* Designed to integrate with `@platejs/comments` or work standalone.
|
|
62
|
-
*
|
|
63
|
-
* Register in Plate editor:
|
|
64
|
-
* ```ts
|
|
65
|
-
* components: {
|
|
66
|
-
* [COMMENT_THREAD_BLOCK_TYPE]: (props) => (
|
|
67
|
-
* <WakaCommentThreadBlock {...props} currentUserId="user-123" onReply={handleReply} />
|
|
68
|
-
* ),
|
|
69
|
-
* }
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
export declare function WakaCommentThreadBlock({ attributes, children, element, className, currentUserId, onReply, onResolve, onReopen, }: WakaCommentThreadBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
-
export declare namespace WakaCommentThreadBlock {
|
|
74
|
-
var displayName: string;
|
|
75
|
-
}
|
|
76
|
-
export declare function createCommentThreadNodes(options?: {
|
|
77
|
-
threadId?: string;
|
|
78
|
-
quotedText?: string;
|
|
79
|
-
initialComment?: {
|
|
80
|
-
authorId: string;
|
|
81
|
-
authorName: string;
|
|
82
|
-
content: string;
|
|
83
|
-
};
|
|
84
|
-
}): CommentThreadElement[];
|
|
85
|
-
export declare function createCommentThreadPlugin(currentUserId?: string, onReply?: (threadId: string, content: string) => void, onResolve?: (threadId: string) => void): Promise<any>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { PlateElementProps } from '../waka-editor-elements';
|
|
2
|
-
export declare const DIAGRAM_BLOCK_TYPE: "diagram";
|
|
3
|
-
/** Supported diagram syntax types */
|
|
4
|
-
export type DiagramSyntax = "mermaid" | "plantuml" | "excalidraw";
|
|
5
|
-
/** Slate node for diagram blocks */
|
|
6
|
-
export interface DiagramElement {
|
|
7
|
-
type: typeof DIAGRAM_BLOCK_TYPE;
|
|
8
|
-
/** Diagram syntax type */
|
|
9
|
-
syntax: DiagramSyntax;
|
|
10
|
-
/** Raw source code of the diagram */
|
|
11
|
-
source: string;
|
|
12
|
-
/** Optional title/caption */
|
|
13
|
-
caption?: string;
|
|
14
|
-
children: Array<{
|
|
15
|
-
text: string;
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
18
|
-
export interface WakaDiagramBlockProps extends PlateElementProps {
|
|
19
|
-
element?: DiagramElement & Record<string, unknown>;
|
|
20
|
-
/**
|
|
21
|
-
* External render function: takes diagram source and syntax,
|
|
22
|
-
* returns sanitized SVG string or HTML.
|
|
23
|
-
*
|
|
24
|
-
* IMPORTANT: The consuming application is responsible for sanitizing
|
|
25
|
-
* the returned HTML (e.g. using DOMPurify) before it is rendered.
|
|
26
|
-
*/
|
|
27
|
-
onRender?: (source: string, syntax: DiagramSyntax) => Promise<string>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* WakaDiagramBlock - A Plate.js block that embeds a diagram editor (Mermaid/PlantUML/Excalidraw)
|
|
31
|
-
* inline in the document. The user writes diagram source code and sees the rendered
|
|
32
|
-
* output below.
|
|
33
|
-
*
|
|
34
|
-
* The rendering is delegated to an external `onRender` callback, allowing the consuming
|
|
35
|
-
* app to use mermaid.js, kroki.io, or any other renderer. The consuming app MUST sanitize
|
|
36
|
-
* the rendered output (e.g. using DOMPurify) before returning it.
|
|
37
|
-
*
|
|
38
|
-
* If no `onRender` is provided, only the source code is displayed.
|
|
39
|
-
*
|
|
40
|
-
* Register in Plate editor:
|
|
41
|
-
* ```ts
|
|
42
|
-
* components: {
|
|
43
|
-
* [DIAGRAM_BLOCK_TYPE]: (props) => <WakaDiagramBlock {...props} onRender={myRenderer} />,
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function WakaDiagramBlock({ attributes, children, element, className, onRender, }: WakaDiagramBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
export declare namespace WakaDiagramBlock {
|
|
49
|
-
var displayName: string;
|
|
50
|
-
}
|
|
51
|
-
export declare function createDiagramNodes(options?: Partial<Omit<DiagramElement, "type" | "children">>): DiagramElement[];
|
|
52
|
-
export declare function createDiagramPlugin(onRender?: (source: string, syntax: DiagramSyntax) => Promise<string>): Promise<any>;
|