dishui 0.0.65 → 0.0.66
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/_virtual/_rolldown/runtime.js +10 -11
- package/dist/chart.js +12 -46
- package/dist/code-editor.js +16 -43
- package/dist/components/Badge/index.js +10 -15
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Button/index.js +62 -89
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +76 -0
- package/dist/components/Card/index.js +178 -69
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Chart/Chart.js +25 -25
- package/dist/components/Chart/Chart.js.map +1 -1
- package/dist/components/Checkbox/index.js +57 -65
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/ChoicePicker/index.d.ts +44 -0
- package/dist/components/ChoicePicker/index.js +81 -0
- package/dist/components/ChoicePicker/index.js.map +1 -0
- package/dist/components/Column/index.d.ts +28 -0
- package/dist/components/Column/index.js +30 -0
- package/dist/components/Column/index.js.map +1 -0
- package/dist/components/DateTimeInput/index.d.ts +44 -0
- package/dist/components/DateTimeInput/index.js +48 -0
- package/dist/components/DateTimeInput/index.js.map +1 -0
- package/dist/components/Demo/index.js +107 -107
- package/dist/components/Demo/index.js.map +1 -1
- package/dist/components/Divider/index.d.ts +20 -0
- package/dist/components/Divider/index.js +30 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/EmptyState/index.js +24 -24
- package/dist/components/EmptyState/index.js.map +1 -1
- package/dist/components/FileUploader/DropZone.js +134 -136
- package/dist/components/FileUploader/DropZone.js.map +1 -1
- package/dist/components/FileUploader/FileItem.js +159 -163
- package/dist/components/FileUploader/FileItem.js.map +1 -1
- package/dist/components/FileUploader/FileUploader.js +126 -127
- package/dist/components/FileUploader/FileUploader.js.map +1 -1
- package/dist/components/FileUploader/UploadQueue.js +62 -62
- package/dist/components/FileUploader/UploadQueue.js.map +1 -1
- package/dist/components/FloatWindow/index.d.ts +28 -0
- package/dist/components/GridLayout/index.d.ts +42 -0
- package/dist/components/Icon/index.d.ts +24 -0
- package/dist/components/Icon/index.js +26 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Image/index.d.ts +33 -0
- package/dist/components/Image/index.js +44 -0
- package/dist/components/Image/index.js.map +1 -0
- package/dist/components/Input/index.js +196 -197
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Label/index.js +62 -74
- package/dist/components/Label/index.js.map +1 -1
- package/dist/components/Layout/index.js +134 -139
- package/dist/components/Layout/index.js.map +1 -1
- package/dist/components/List/index.js +45 -58
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Markdown/Markdown.js +106 -107
- package/dist/components/Markdown/Markdown.js.map +1 -1
- package/dist/components/Markdown/codeThemes.js +24 -33
- package/dist/components/Markdown/codeThemes.js.map +1 -1
- package/dist/components/Markdown/markdownComponents.js +203 -208
- package/dist/components/Markdown/markdownComponents.js.map +1 -1
- package/dist/components/Markdown/parseCodeBlockMeta.js +22 -22
- package/dist/components/Markdown/parseCodeBlockMeta.js.map +1 -1
- package/dist/components/Markdown/useMarkdownSource.js +46 -46
- package/dist/components/Markdown/useMarkdownSource.js.map +1 -1
- package/dist/components/Markdown/useMarkmapRenderer.js +35 -36
- package/dist/components/Markdown/useMarkmapRenderer.js.map +1 -1
- package/dist/components/Markdown/useMermaidRenderer.js +41 -42
- package/dist/components/Markdown/useMermaidRenderer.js.map +1 -1
- package/dist/components/Modal/index.js +82 -82
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/MultipleChoice/index.d.ts +44 -0
- package/dist/components/MultipleChoice/index.js +52 -0
- package/dist/components/MultipleChoice/index.js.map +1 -0
- package/dist/components/Notification/index.d.ts +17 -0
- package/dist/components/Page/index.js +40 -71
- package/dist/components/Page/index.js.map +1 -1
- package/dist/components/PageHeader/index.js +28 -28
- package/dist/components/PageHeader/index.js.map +1 -1
- package/dist/components/ProtectedRoute/index.js +8 -9
- package/dist/components/ProtectedRoute/index.js.map +1 -1
- package/dist/components/Row/index.d.ts +28 -0
- package/dist/components/Row/index.js +30 -0
- package/dist/components/Row/index.js.map +1 -0
- package/dist/components/Select/index.js +251 -254
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/SidebarToggleButton/index.js +56 -59
- package/dist/components/SidebarToggleButton/index.js.map +1 -1
- package/dist/components/Slider/index.d.ts +39 -0
- package/dist/components/Slider/index.js +52 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/StatCard/index.d.ts +29 -1
- package/dist/components/StatCard/index.js +189 -86
- package/dist/components/StatCard/index.js.map +1 -1
- package/dist/components/Switch/index.d.ts +34 -0
- package/dist/components/Switch/index.js +55 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Tab/index.d.ts +40 -0
- package/dist/components/Table/index.js +109 -121
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Tabs/index.js +28 -38
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Text/index.d.ts +43 -0
- package/dist/components/Text/index.js +55 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +23 -0
- package/dist/components/Tooltip/index.js +34 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/Tree/Tree.js +205 -205
- package/dist/components/Tree/Tree.js.map +1 -1
- package/dist/components/pro/ArticleContextMenu/index.js +86 -87
- package/dist/components/pro/ArticleContextMenu/index.js.map +1 -1
- package/dist/components/pro/ArticleControl/ArticleControl2.js +250 -250
- package/dist/components/pro/ArticleControl/ArticleControl2.js.map +1 -1
- package/dist/components/pro/ArticleControl/buildHeadingTree.js +31 -32
- package/dist/components/pro/ArticleControl/buildHeadingTree.js.map +1 -1
- package/dist/components/pro/ArticleControl/useArticleToc.js +100 -102
- package/dist/components/pro/ArticleControl/useArticleToc.js.map +1 -1
- package/dist/components/pro/Calendar/Calendar.d.ts +10 -0
- package/dist/components/pro/Calendar/hooks/useCalendarDrag.d.ts +47 -0
- package/dist/components/pro/Calendar/hooks/useCalendarState.d.ts +56 -0
- package/dist/components/pro/Calendar/index.d.ts +7 -0
- package/dist/components/pro/Calendar/types.d.ts +151 -0
- package/dist/components/pro/Calendar/utils.d.ts +94 -0
- package/dist/components/pro/Chat/Chat.d.ts +6 -0
- package/dist/components/pro/Chat/index.d.ts +2 -0
- package/dist/components/pro/Chat/types.d.ts +84 -0
- package/dist/components/pro/CodeEditor/editors/CodeEditor.js +287 -327
- package/dist/components/pro/CodeEditor/editors/CodeEditor.js.map +1 -1
- package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js +167 -224
- package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js.map +1 -1
- package/dist/components/pro/CodeEditor/editors/markdownExtensions.js +594 -613
- package/dist/components/pro/CodeEditor/editors/markdownExtensions.js.map +1 -1
- package/dist/components/pro/CodeEditor/extensions/contextMenu.js +54 -55
- package/dist/components/pro/CodeEditor/extensions/contextMenu.js.map +1 -1
- package/dist/components/pro/CodeEditor/extensions/index.js +152 -160
- package/dist/components/pro/CodeEditor/extensions/index.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/index.js +7 -15
- package/dist/components/pro/CodeEditor/langs/index.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/javascript.js +11 -48
- package/dist/components/pro/CodeEditor/langs/javascript.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/python.js +4 -40
- package/dist/components/pro/CodeEditor/langs/python.js.map +1 -1
- package/dist/components/pro/CodeEditor/langs/snippets.js +118 -147
- package/dist/components/pro/CodeEditor/langs/snippets.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/FootnotePanel.js +153 -153
- package/dist/components/pro/CodeEditor/panels/FootnotePanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/HistoryPanel.js +180 -190
- package/dist/components/pro/CodeEditor/panels/HistoryPanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/OutlinePanel.js +130 -137
- package/dist/components/pro/CodeEditor/panels/OutlinePanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/TableOfContentsPanel.js +228 -242
- package/dist/components/pro/CodeEditor/panels/TableOfContentsPanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/panels/VariablePanel.js +208 -248
- package/dist/components/pro/CodeEditor/panels/VariablePanel.js.map +1 -1
- package/dist/components/pro/CodeEditor/themes.js +513 -483
- package/dist/components/pro/CodeEditor/themes.js.map +1 -1
- package/dist/components/pro/CodeEditor/types.d.ts +1 -1
- package/dist/components/pro/CodeEditor/utils.js +171 -175
- package/dist/components/pro/CodeEditor/utils.js.map +1 -1
- package/dist/components/pro/DataTable/DataTable.js +305 -306
- package/dist/components/pro/DataTable/DataTable.js.map +1 -1
- package/dist/components/pro/DataTable/Filters.js +299 -314
- package/dist/components/pro/DataTable/Filters.js.map +1 -1
- package/dist/components/pro/DataTable/PivotPanel.js +203 -204
- package/dist/components/pro/DataTable/PivotPanel.js.map +1 -1
- package/dist/components/pro/DataTable/PivotView.js +142 -144
- package/dist/components/pro/DataTable/PivotView.js.map +1 -1
- package/dist/components/pro/DataTable/components/BulkActions.js +42 -42
- package/dist/components/pro/DataTable/components/BulkActions.js.map +1 -1
- package/dist/components/pro/DataTable/components/ColumnSelector.js +84 -84
- package/dist/components/pro/DataTable/components/ColumnSelector.js.map +1 -1
- package/dist/components/pro/DataTable/components/FilterBar.js +58 -58
- package/dist/components/pro/DataTable/components/FilterBar.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableBody.js +93 -94
- package/dist/components/pro/DataTable/components/TableBody.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableHeader.js +78 -78
- package/dist/components/pro/DataTable/components/TableHeader.js.map +1 -1
- package/dist/components/pro/DataTable/components/TablePagination.js +77 -77
- package/dist/components/pro/DataTable/components/TablePagination.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableToolbar.js +40 -40
- package/dist/components/pro/DataTable/components/TableToolbar.js.map +1 -1
- package/dist/components/pro/DataTable/extension.js +5 -5
- package/dist/components/pro/DataTable/extension.js.map +1 -1
- package/dist/components/pro/DataTable/pivotEngine.js +84 -92
- package/dist/components/pro/DataTable/pivotEngine.js.map +1 -1
- package/dist/components/pro/DataTable/pivotExtension.js +93 -93
- package/dist/components/pro/DataTable/pivotExtension.js.map +1 -1
- package/dist/components/pro/DataTable/rowDetailExtension.js +30 -30
- package/dist/components/pro/DataTable/rowDetailExtension.js.map +1 -1
- package/dist/components/pro/DataTable/tanstack-table.js +45 -62
- package/dist/components/pro/DataTable/tanstack-table.js.map +1 -1
- package/dist/components/pro/DataTable/treeDataUtils.js +37 -48
- package/dist/components/pro/DataTable/treeDataUtils.js.map +1 -1
- package/dist/components/pro/DataTable/useColumnDragReorder.js +68 -68
- package/dist/components/pro/DataTable/useColumnDragReorder.js.map +1 -1
- package/dist/components/pro/DataTable/utils.js +156 -168
- package/dist/components/pro/DataTable/utils.js.map +1 -1
- package/dist/components/pro/FileExplorer/Breadcrumb.js +180 -180
- package/dist/components/pro/FileExplorer/Breadcrumb.js.map +1 -1
- package/dist/components/pro/FileExplorer/CreateDialog.js +78 -78
- package/dist/components/pro/FileExplorer/CreateDialog.js.map +1 -1
- package/dist/components/pro/FileExplorer/FileExplorer.js +202 -205
- package/dist/components/pro/FileExplorer/FileExplorer.js.map +1 -1
- package/dist/components/pro/FileExplorer/FileIcon.js +189 -189
- package/dist/components/pro/FileExplorer/FileIcon.js.map +1 -1
- package/dist/components/pro/FileExplorer/GridView.js +100 -100
- package/dist/components/pro/FileExplorer/GridView.js.map +1 -1
- package/dist/components/pro/FileExplorer/ListView.js +209 -209
- package/dist/components/pro/FileExplorer/ListView.js.map +1 -1
- package/dist/components/pro/FileExplorer/Toolbar.js +199 -199
- package/dist/components/pro/FileExplorer/Toolbar.js.map +1 -1
- package/dist/components/pro/Flow/Flow.js +920 -948
- package/dist/components/pro/Flow/Flow.js.map +1 -1
- package/dist/components/pro/Flow/FlowCanvas.js +1626 -1662
- package/dist/components/pro/Flow/FlowCanvas.js.map +1 -1
- package/dist/components/pro/Flow/archify/build.js +85 -94
- package/dist/components/pro/Flow/archify/build.js.map +1 -1
- package/dist/components/pro/Flow/archify/convert.js +512 -519
- package/dist/components/pro/Flow/archify/convert.js.map +1 -1
- package/dist/components/pro/Flow/archify/palette.js +87 -104
- package/dist/components/pro/Flow/archify/palette.js.map +1 -1
- package/dist/components/pro/Flow/archify/presets.js +34 -37
- package/dist/components/pro/Flow/archify/presets.js.map +1 -1
- package/dist/components/pro/Flow/archify/spec.js +7 -7
- package/dist/components/pro/Flow/archify/spec.js.map +1 -1
- package/dist/components/pro/Flow/canvas/AlignmentGuides.js +25 -25
- package/dist/components/pro/Flow/canvas/AlignmentGuides.js.map +1 -1
- package/dist/components/pro/Flow/canvas/GridRenderer.js +54 -55
- package/dist/components/pro/Flow/canvas/GridRenderer.js.map +1 -1
- package/dist/components/pro/Flow/canvas/MiniMapRenderer.js +54 -58
- package/dist/components/pro/Flow/canvas/MiniMapRenderer.js.map +1 -1
- package/dist/components/pro/Flow/canvas/PixiApp.js +105 -102
- package/dist/components/pro/Flow/canvas/PixiApp.js.map +1 -1
- package/dist/components/pro/Flow/canvas/SelectionOverlay.js +38 -38
- package/dist/components/pro/Flow/canvas/SelectionOverlay.js.map +1 -1
- package/dist/components/pro/Flow/canvas/ViewportContainer.js +117 -117
- package/dist/components/pro/Flow/canvas/ViewportContainer.js.map +1 -1
- package/dist/components/pro/Flow/constants.js +266 -278
- package/dist/components/pro/Flow/constants.js.map +1 -1
- package/dist/components/pro/Flow/context/FlowAIContext.js +27 -28
- package/dist/components/pro/Flow/context/FlowAIContext.js.map +1 -1
- package/dist/components/pro/Flow/context/FlowContext.js +60 -61
- package/dist/components/pro/Flow/context/FlowContext.js.map +1 -1
- package/dist/components/pro/Flow/context/FlowUIContext.js +115 -117
- package/dist/components/pro/Flow/context/FlowUIContext.js.map +1 -1
- package/dist/components/pro/Flow/edges/EdgeRenderer.js +135 -138
- package/dist/components/pro/Flow/edges/EdgeRenderer.js.map +1 -1
- package/dist/components/pro/Flow/edges/edgeMarkers.js +11 -14
- package/dist/components/pro/Flow/edges/edgeMarkers.js.map +1 -1
- package/dist/components/pro/Flow/edges/edgePaths.js +351 -367
- package/dist/components/pro/Flow/edges/edgePaths.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useAlignmentGuides.js +49 -52
- package/dist/components/pro/Flow/hooks/useAlignmentGuides.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useClipboard.js +154 -154
- package/dist/components/pro/Flow/hooks/useClipboard.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useCompactMode.js +17 -17
- package/dist/components/pro/Flow/hooks/useCompactMode.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useDeleteSelection.js +40 -40
- package/dist/components/pro/Flow/hooks/useDeleteSelection.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useDraggablePanel.js +51 -51
- package/dist/components/pro/Flow/hooks/useDraggablePanel.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useEdgeMutations.js +157 -157
- package/dist/components/pro/Flow/hooks/useEdgeMutations.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useFlowImportExport.js +190 -201
- package/dist/components/pro/Flow/hooks/useFlowImportExport.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js +32 -38
- package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useLayoutActions.js +172 -180
- package/dist/components/pro/Flow/hooks/useLayoutActions.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useLineMutations.js +57 -57
- package/dist/components/pro/Flow/hooks/useLineMutations.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useMindMap.js +229 -238
- package/dist/components/pro/Flow/hooks/useMindMap.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useNodeMutations.js +102 -102
- package/dist/components/pro/Flow/hooks/useNodeMutations.js.map +1 -1
- package/dist/components/pro/Flow/hooks/usePdfExport.js +55 -56
- package/dist/components/pro/Flow/hooks/usePdfExport.js.map +1 -1
- package/dist/components/pro/Flow/hooks/usePixiApp.js +55 -57
- package/dist/components/pro/Flow/hooks/usePixiApp.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useResizablePanel.js +31 -31
- package/dist/components/pro/Flow/hooks/useResizablePanel.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useSelection.js +69 -69
- package/dist/components/pro/Flow/hooks/useSelection.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useUndoRedo.js +27 -27
- package/dist/components/pro/Flow/hooks/useUndoRedo.js.map +1 -1
- package/dist/components/pro/Flow/hooks/useViewport.js +28 -28
- package/dist/components/pro/Flow/hooks/useViewport.js.map +1 -1
- package/dist/components/pro/Flow/lines/FreehandTool.js +63 -63
- package/dist/components/pro/Flow/lines/FreehandTool.js.map +1 -1
- package/dist/components/pro/Flow/lines/GeometricLineTool.js +80 -80
- package/dist/components/pro/Flow/lines/GeometricLineTool.js.map +1 -1
- package/dist/components/pro/Flow/lines/LineRenderer.js +88 -88
- package/dist/components/pro/Flow/lines/LineRenderer.js.map +1 -1
- package/dist/components/pro/Flow/lines/lineSmoothing.js +32 -34
- package/dist/components/pro/Flow/lines/lineSmoothing.js.map +1 -1
- package/dist/components/pro/Flow/nodes/DataNodeView.js +236 -242
- package/dist/components/pro/Flow/nodes/DataNodeView.js.map +1 -1
- package/dist/components/pro/Flow/nodes/MediaContent.js +236 -246
- package/dist/components/pro/Flow/nodes/MediaContent.js.map +1 -1
- package/dist/components/pro/Flow/nodes/MediaOverlay.js +63 -63
- package/dist/components/pro/Flow/nodes/MediaOverlay.js.map +1 -1
- package/dist/components/pro/Flow/nodes/Model3DView.js +111 -113
- package/dist/components/pro/Flow/nodes/Model3DView.js.map +1 -1
- package/dist/components/pro/Flow/nodes/NodeHandles.js +74 -80
- package/dist/components/pro/Flow/nodes/NodeHandles.js.map +1 -1
- package/dist/components/pro/Flow/nodes/NodeRenderer.js +303 -314
- package/dist/components/pro/Flow/nodes/NodeRenderer.js.map +1 -1
- package/dist/components/pro/Flow/nodes/NodeText.js +25 -29
- package/dist/components/pro/Flow/nodes/NodeText.js.map +1 -1
- package/dist/components/pro/Flow/nodes/aiClient.js +124 -137
- package/dist/components/pro/Flow/nodes/aiClient.js.map +1 -1
- package/dist/components/pro/Flow/nodes/animAnchors.js +42 -49
- package/dist/components/pro/Flow/nodes/animAnchors.js.map +1 -1
- package/dist/components/pro/Flow/nodes/dataUtils.js +246 -267
- package/dist/components/pro/Flow/nodes/dataUtils.js.map +1 -1
- package/dist/components/pro/Flow/nodes/nodeUtils.js +23 -28
- package/dist/components/pro/Flow/nodes/nodeUtils.js.map +1 -1
- package/dist/components/pro/Flow/nodes/shapes.js +556 -589
- package/dist/components/pro/Flow/nodes/shapes.js.map +1 -1
- package/dist/components/pro/Flow/nodes/svgIconTexture.js +37 -39
- package/dist/components/pro/Flow/nodes/svgIconTexture.js.map +1 -1
- package/dist/components/pro/Flow/nodes/svgIcons.js +684 -689
- package/dist/components/pro/Flow/nodes/svgIcons.js.map +1 -1
- package/dist/components/pro/Flow/panels/AIPanel.js +464 -491
- package/dist/components/pro/Flow/panels/AIPanel.js.map +1 -1
- package/dist/components/pro/Flow/panels/Breadcrumb.js +41 -41
- package/dist/components/pro/Flow/panels/Breadcrumb.js.map +1 -1
- package/dist/components/pro/Flow/panels/ContextMenu.js +37 -37
- package/dist/components/pro/Flow/panels/ContextMenu.js.map +1 -1
- package/dist/components/pro/Flow/panels/DataInspectorSection.js +428 -432
- package/dist/components/pro/Flow/panels/DataInspectorSection.js.map +1 -1
- package/dist/components/pro/Flow/panels/ExpandableTextarea.js +61 -62
- package/dist/components/pro/Flow/panels/ExpandableTextarea.js.map +1 -1
- package/dist/components/pro/Flow/panels/FlowPanelGroup.js +114 -114
- package/dist/components/pro/Flow/panels/FlowPanelGroup.js.map +1 -1
- package/dist/components/pro/Flow/panels/FlowToolbar.js +347 -391
- package/dist/components/pro/Flow/panels/FlowToolbar.js.map +1 -1
- package/dist/components/pro/Flow/panels/InspectorPanel.js +1792 -1798
- package/dist/components/pro/Flow/panels/InspectorPanel.js.map +1 -1
- package/dist/components/pro/Flow/panels/OutlinePanel.js +242 -248
- package/dist/components/pro/Flow/panels/OutlinePanel.js.map +1 -1
- package/dist/components/pro/Flow/panels/PresentationMode.js +137 -140
- package/dist/components/pro/Flow/panels/PresentationMode.js.map +1 -1
- package/dist/components/pro/Flow/panels/ProjectTitle.js +46 -46
- package/dist/components/pro/Flow/panels/ProjectTitle.js.map +1 -1
- package/dist/components/pro/Flow/panels/ShapePalette.js +557 -572
- package/dist/components/pro/Flow/panels/ShapePalette.js.map +1 -1
- package/dist/components/pro/Flow/panels/toolbarIcons.d.ts +0 -1
- package/dist/components/pro/Flow/panels/toolbarIcons.js +508 -557
- package/dist/components/pro/Flow/panels/toolbarIcons.js.map +1 -1
- package/dist/components/pro/Flow/types.js +26 -26
- package/dist/components/pro/Flow/types.js.map +1 -1
- package/dist/components/pro/Flow/utils/dashedLine.js +113 -117
- package/dist/components/pro/Flow/utils/dashedLine.js.map +1 -1
- package/dist/components/pro/Flow/utils/gradient.js +55 -55
- package/dist/components/pro/Flow/utils/gradient.js.map +1 -1
- package/dist/components/pro/Flow/utils/pdfExport.js +50 -89
- package/dist/components/pro/Flow/utils/pdfExport.js.map +1 -1
- package/dist/components/pro/Flow/utils/themeColor.js +185 -195
- package/dist/components/pro/Flow/utils/themeColor.js.map +1 -1
- package/dist/components/pro/Gantt/Gantt.d.ts +7 -0
- package/dist/components/pro/Gantt/hooks/useGanttDrag.d.ts +31 -0
- package/dist/components/pro/Gantt/hooks/useGanttState.d.ts +58 -0
- package/dist/components/pro/Gantt/index.d.ts +6 -0
- package/dist/components/pro/Gantt/types.d.ts +478 -0
- package/dist/components/pro/Gantt/utils.d.ts +124 -0
- package/dist/components/pro/Resizable/Resizable.d.ts +30 -0
- package/dist/components/pro/Resizable/index.d.ts +2 -0
- package/dist/components/pro/RichTextEditor/AIRewrite.js +323 -334
- package/dist/components/pro/RichTextEditor/AIRewrite.js.map +1 -1
- package/dist/components/pro/RichTextEditor/BlockHandle.js +314 -316
- package/dist/components/pro/RichTextEditor/BlockHandle.js.map +1 -1
- package/dist/components/pro/RichTextEditor/BubbleToolbar.js +97 -97
- package/dist/components/pro/RichTextEditor/BubbleToolbar.js.map +1 -1
- package/dist/components/pro/RichTextEditor/CommentDialog.js +88 -88
- package/dist/components/pro/RichTextEditor/CommentDialog.js.map +1 -1
- package/dist/components/pro/RichTextEditor/CommentPanel.js +240 -240
- package/dist/components/pro/RichTextEditor/CommentPanel.js.map +1 -1
- package/dist/components/pro/RichTextEditor/CommentPopover.js +234 -234
- package/dist/components/pro/RichTextEditor/CommentPopover.js.map +1 -1
- package/dist/components/pro/RichTextEditor/ContextMenu.js +251 -252
- package/dist/components/pro/RichTextEditor/ContextMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/RichTextEditor.js +267 -271
- package/dist/components/pro/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/components/pro/RichTextEditor/SlashMenu.js +214 -214
- package/dist/components/pro/RichTextEditor/SlashMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js +44 -75
- package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/FloatingDialogMenu.js +261 -261
- package/dist/components/pro/RichTextEditor/Toolbar/FloatingDialogMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/MarkdownTemplates.js +172 -526
- package/dist/components/pro/RichTextEditor/Toolbar/MarkdownTemplates.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js +112 -114
- package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/TableOpsMenu.js +194 -194
- package/dist/components/pro/RichTextEditor/Toolbar/TableOpsMenu.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/Toolbar.js +970 -973
- package/dist/components/pro/RichTextEditor/Toolbar/Toolbar.js.map +1 -1
- package/dist/components/pro/RichTextEditor/Toolbar/ToolbarButton.js +11 -12
- package/dist/components/pro/RichTextEditor/Toolbar/ToolbarButton.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js +310 -344
- package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/CommentMark.js +38 -39
- package/dist/components/pro/RichTextEditor/extensions/CommentMark.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/FloatingDialog.js +620 -625
- package/dist/components/pro/RichTextEditor/extensions/FloatingDialog.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/FontSize.js +25 -25
- package/dist/components/pro/RichTextEditor/extensions/FontSize.js.map +1 -1
- package/dist/components/pro/RichTextEditor/extensions/MarkdownBlock.js +167 -176
- package/dist/components/pro/RichTextEditor/extensions/MarkdownBlock.js.map +1 -1
- package/dist/components/pro/RichTextEditor/types.js +75 -75
- package/dist/components/pro/RichTextEditor/types.js.map +1 -1
- package/dist/contexts/AppContext.d.ts +1 -1
- package/dist/contexts/AppContext.js +216 -221
- package/dist/contexts/AppContext.js.map +1 -1
- package/dist/data-table.js +15 -41
- package/dist/data-table.js.map +1 -1
- package/dist/dishui.css +1 -1
- package/dist/flow.js +27 -83
- package/dist/hooks/useClickOutside.js +18 -18
- package/dist/hooks/useClickOutside.js.map +1 -1
- package/dist/hooks/useContainerElement.js +9 -9
- package/dist/hooks/useContainerElement.js.map +1 -1
- package/dist/hooks/useControllableState.js +33 -35
- package/dist/hooks/useControllableState.js.map +1 -1
- package/dist/hooks/useCopyToClipboard.js +16 -16
- package/dist/hooks/useCopyToClipboard.js.map +1 -1
- package/dist/hooks/useDebounce.js +14 -14
- package/dist/hooks/useDebounce.js.map +1 -1
- package/dist/hooks/useDraggable.js +50 -50
- package/dist/hooks/useDraggable.js.map +1 -1
- package/dist/hooks/useTableColumns.js +39 -41
- package/dist/hooks/useTableColumns.js.map +1 -1
- package/dist/hooks/useTableData.js +67 -68
- package/dist/hooks/useTableData.js.map +1 -1
- package/dist/index-nostyled.d.ts +8 -0
- package/dist/index.d.ts +27 -1
- package/dist/index.js +105 -241
- package/dist/layouts/MainLayout.js +56 -56
- package/dist/layouts/MainLayout.js.map +1 -1
- package/dist/layouts/Navbar.js +214 -214
- package/dist/layouts/Navbar.js.map +1 -1
- package/dist/layouts/Sidebar.js +184 -186
- package/dist/layouts/Sidebar.js.map +1 -1
- package/dist/layouts/headbar/Headbar.js +25 -25
- package/dist/layouts/headbar/Headbar.js.map +1 -1
- package/dist/layouts/headbar/HeadbarLangSwitcher.js +39 -39
- package/dist/layouts/headbar/HeadbarLangSwitcher.js.map +1 -1
- package/dist/layouts/headbar/HeadbarSearch.js +120 -120
- package/dist/layouts/headbar/HeadbarSearch.js.map +1 -1
- package/dist/layouts/headbar/HeadbarThemeSwitcher.js +27 -27
- package/dist/layouts/headbar/HeadbarThemeSwitcher.js.map +1 -1
- package/dist/layouts/headbar/HeadbarTitle.js +26 -26
- package/dist/layouts/headbar/HeadbarTitle.js.map +1 -1
- package/dist/lite.js +9 -24
- package/dist/markdown.js +4 -9
- package/dist/pages/components/Calendar/index.d.ts +3 -0
- package/dist/pages/components/Calendar/index.en.d.ts +3 -0
- package/dist/pages/components/Calendar/index.zh.d.ts +3 -0
- package/dist/pages/components/Chat/index.d.ts +3 -0
- package/dist/pages/components/Chat/index.en.d.ts +3 -0
- package/dist/pages/components/Chat/index.zh.d.ts +3 -0
- package/dist/pages/components/FloatWindow/index.d.ts +3 -0
- package/dist/pages/components/FloatWindow/index.en.d.ts +3 -0
- package/dist/pages/components/FloatWindow/index.zh.d.ts +3 -0
- package/dist/pages/components/Gantt/index.d.ts +3 -0
- package/dist/pages/components/Gantt/index.en.d.ts +3 -0
- package/dist/pages/components/Gantt/index.zh.d.ts +3 -0
- package/dist/pages/components/GridLayout/index.d.ts +3 -0
- package/dist/pages/components/GridLayout/index.en.d.ts +3 -0
- package/dist/pages/components/GridLayout/index.zh.d.ts +3 -0
- package/dist/pages/components/Notification/index.d.ts +3 -0
- package/dist/pages/components/Notification/index.en.d.ts +3 -0
- package/dist/pages/components/Notification/index.zh.d.ts +3 -0
- package/dist/pages/components/Resizable/index.d.ts +3 -0
- package/dist/pages/components/Resizable/index.en.d.ts +3 -0
- package/dist/pages/components/Resizable/index.zh.d.ts +3 -0
- package/dist/pages/components/Tab/index.d.ts +3 -0
- package/dist/pages/components/Tab/index.en.d.ts +3 -0
- package/dist/pages/components/Tab/index.zh.d.ts +3 -0
- package/dist/styles/themeStyles.js +87 -86
- package/dist/styles/themeStyles.js.map +1 -1
- package/dist/utils/cn.d.ts +13 -0
- package/dist/utils/cn.js +16 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/i18n.js +690 -602
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/menu.js +94 -94
- package/dist/utils/menu.js.map +1 -1
- package/dist/utils/rehype-code-meta.js +14 -14
- package/dist/utils/rehype-code-meta.js.map +1 -1
- package/dist/utils/remark-code-meta.js +9 -9
- package/dist/utils/remark-code-meta.js.map +1 -1
- package/dist/utils/routerBuilder.js +59 -60
- package/dist/utils/routerBuilder.js.map +1 -1
- package/dist/utils/selection.js +28 -29
- package/dist/utils/selection.js.map +1 -1
- package/dist/utils/themes.js +275 -255
- package/dist/utils/themes.js.map +1 -1
- package/package.json +19 -6
|
@@ -1,143 +1,140 @@
|
|
|
1
|
-
import { useFlowContext as
|
|
2
|
-
import { useFlowUI as
|
|
3
|
-
import { anchorFocusRect as
|
|
4
|
-
import { useCallback as
|
|
5
|
-
import { jsx as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})]
|
|
137
|
-
});
|
|
1
|
+
import { useFlowContext as e } from "../context/FlowContext.js";
|
|
2
|
+
import { useFlowUI as t } from "../context/FlowUIContext.js";
|
|
3
|
+
import { anchorFocusRect as n, canvasStackTo as r, getDocumentSlides as i } from "../nodes/animAnchors.js";
|
|
4
|
+
import { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
5
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/pro/Flow/panels/PresentationMode.tsx
|
|
7
|
+
function f() {
|
|
8
|
+
let { doc: f, setDoc: p, currentCanvasId: m } = e(), { presentation: h, setPresentation: g, focusOnRect: _ } = t(), v = c(null), y = s(() => i(f), [f]), b = y.length, x = h !== null, S = h?.current ?? 0, [C, w] = l(null), T = c(f);
|
|
9
|
+
T.current = f;
|
|
10
|
+
let E = a(() => {
|
|
11
|
+
g(null), document.fullscreenElement && document.exitFullscreen().catch(() => {});
|
|
12
|
+
}, [g]), D = a(() => {
|
|
13
|
+
let e = v.current?.closest(".flow-container");
|
|
14
|
+
e && !document.fullscreenElement && e.requestFullscreen().catch(() => {});
|
|
15
|
+
}, []), O = a((e) => {
|
|
16
|
+
if (b === 0) return;
|
|
17
|
+
let t = Math.max(0, Math.min(b - 1, e));
|
|
18
|
+
g({
|
|
19
|
+
current: t,
|
|
20
|
+
showAnchor: h?.showAnchor ?? !1
|
|
21
|
+
});
|
|
22
|
+
let i = y[t];
|
|
23
|
+
if (!i) return;
|
|
24
|
+
let a = T.current, o = r(a, i.canvasId), s = i.canvasId === m;
|
|
25
|
+
if (!s && o) {
|
|
26
|
+
let e = o.length > a.stack.length;
|
|
27
|
+
w(e ? "in" : "out"), p((e) => ({
|
|
28
|
+
...e,
|
|
29
|
+
stack: o
|
|
30
|
+
})), window.setTimeout(() => w(null), 480);
|
|
31
|
+
}
|
|
32
|
+
let c = n(i.node);
|
|
33
|
+
window.setTimeout(() => _(c.x, c.y, c.w, c.h, {
|
|
34
|
+
padding: 8,
|
|
35
|
+
maxZoom: 4,
|
|
36
|
+
duration: 350
|
|
37
|
+
}), s ? 0 : 30);
|
|
38
|
+
}, [
|
|
39
|
+
y,
|
|
40
|
+
b,
|
|
41
|
+
h?.showAnchor,
|
|
42
|
+
g,
|
|
43
|
+
_,
|
|
44
|
+
m,
|
|
45
|
+
p
|
|
46
|
+
]);
|
|
47
|
+
if (o(() => {
|
|
48
|
+
if (x && (D(), b > 0)) {
|
|
49
|
+
O(S);
|
|
50
|
+
let e = window.setTimeout(() => O(S), 180);
|
|
51
|
+
return () => window.clearTimeout(e);
|
|
52
|
+
}
|
|
53
|
+
}, [x]), o(() => {
|
|
54
|
+
if (!x) return;
|
|
55
|
+
let e = (e) => {
|
|
56
|
+
if (e.key === "Escape") {
|
|
57
|
+
e.preventDefault(), E();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
[
|
|
61
|
+
"ArrowRight",
|
|
62
|
+
"ArrowDown",
|
|
63
|
+
"PageDown",
|
|
64
|
+
" "
|
|
65
|
+
].includes(e.key) ? (e.preventDefault(), e.key === " " && e.shiftKey ? O(S - 1) : O(S + 1)) : [
|
|
66
|
+
"ArrowLeft",
|
|
67
|
+
"ArrowUp",
|
|
68
|
+
"PageUp"
|
|
69
|
+
].includes(e.key) && (e.preventDefault(), O(S - 1));
|
|
70
|
+
};
|
|
71
|
+
return window.addEventListener("keydown", e, !0), () => window.removeEventListener("keydown", e, !0);
|
|
72
|
+
}, [
|
|
73
|
+
x,
|
|
74
|
+
S,
|
|
75
|
+
O,
|
|
76
|
+
E
|
|
77
|
+
]), !x) return null;
|
|
78
|
+
let k = C ? `flow-presentation--${C}` : "";
|
|
79
|
+
return /* @__PURE__ */ d("div", {
|
|
80
|
+
ref: v,
|
|
81
|
+
className: `flow-presentation ${k}`,
|
|
82
|
+
onClick: E,
|
|
83
|
+
children: [/* @__PURE__ */ u("div", {
|
|
84
|
+
className: "flow-presentation-slide-fx",
|
|
85
|
+
style: {
|
|
86
|
+
position: "absolute",
|
|
87
|
+
inset: 0,
|
|
88
|
+
pointerEvents: "none"
|
|
89
|
+
}
|
|
90
|
+
}), b === 0 ? /* @__PURE__ */ u("div", {
|
|
91
|
+
className: "flow-presentation-empty",
|
|
92
|
+
children: "画布中没有动画锚点,点击退出"
|
|
93
|
+
}) : /* @__PURE__ */ d("div", {
|
|
94
|
+
className: "flow-presentation-hud",
|
|
95
|
+
onClick: (e) => e.stopPropagation(),
|
|
96
|
+
children: [/* @__PURE__ */ d("span", {
|
|
97
|
+
className: "flow-presentation-counter",
|
|
98
|
+
children: [
|
|
99
|
+
S + 1,
|
|
100
|
+
" / ",
|
|
101
|
+
b
|
|
102
|
+
]
|
|
103
|
+
}), /* @__PURE__ */ d("div", {
|
|
104
|
+
className: "flow-presentation-nav",
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ u("button", {
|
|
107
|
+
type: "button",
|
|
108
|
+
onClick: () => O(S - 1),
|
|
109
|
+
disabled: S <= 0,
|
|
110
|
+
children: "‹ 上一张"
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ u("button", {
|
|
113
|
+
type: "button",
|
|
114
|
+
onClick: () => O(S + 1),
|
|
115
|
+
disabled: S >= b - 1,
|
|
116
|
+
children: "下一张 ›"
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ u("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
onClick: () => g({
|
|
121
|
+
current: S,
|
|
122
|
+
showAnchor: !(h?.showAnchor ?? !1)
|
|
123
|
+
}),
|
|
124
|
+
children: h?.showAnchor ? "隐藏锚点" : "显示锚点"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ u("button", {
|
|
127
|
+
type: "button",
|
|
128
|
+
className: "flow-presentation-exit",
|
|
129
|
+
onClick: E,
|
|
130
|
+
children: "退出 Esc"
|
|
131
|
+
})
|
|
132
|
+
]
|
|
133
|
+
})]
|
|
134
|
+
})]
|
|
135
|
+
});
|
|
138
136
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
};
|
|
137
|
+
//#endregion
|
|
138
|
+
export { f as PresentationMode };
|
|
142
139
|
|
|
143
140
|
//# sourceMappingURL=PresentationMode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationMode.js","names":[],"sources":["../../../../../src/components/pro/Flow/panels/PresentationMode.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useFlowContext } from '../context/FlowContext';\nimport { useFlowUI } from '../context/FlowUIContext';\nimport { getDocumentSlides, anchorFocusRect, canvasStackTo } from '../nodes/animAnchors';\n\n/**\n * PPT-style presentation mode.\n *\n * While active the editor is read-only (all panels/toolbars are hidden) and the\n * viewport animates between animation anchors (slides). Anchors across the whole\n * document — including nested sub-canvases — share a single sequence, ordered by\n * stable creation index. Navigating to a slide on another canvas drills into or\n * out of that canvas before focusing the slide.\n *\n * Keys: →/↓/Space/PageDown = next, ←/↑/Shift+Space/PageUp = previous, Esc = exit.\n */\nexport function PresentationMode() {\n const { doc, setDoc, currentCanvasId } = useFlowContext();\n const { presentation, setPresentation, focusOnRect } = useFlowUI();\n const overlayRef = useRef<HTMLDivElement>(null);\n\n const slides = useMemo(() => getDocumentSlides(doc), [doc]);\n const count = slides.length;\n const active = presentation !== null;\n const current = presentation?.current ?? 0;\n const [transition, setTransition] = useState<'in' | 'out' | null>(null);\n\n const docRef = useRef(doc);\n docRef.current = doc;\n\n const exit = useCallback(() => {\n setPresentation(null);\n if (document.fullscreenElement) void document.exitFullscreen().catch(() => {});\n }, [setPresentation]);\n\n const enterFullscreen = useCallback(() => {\n const root = overlayRef.current?.closest('.flow-container') as HTMLElement | null;\n if (root && !document.fullscreenElement) {\n void root.requestFullscreen().catch(() => {});\n }\n }, []);\n\n const goTo = useCallback(\n (index: number) => {\n if (count === 0) return;\n const clamped = Math.max(0, Math.min(count - 1, index));\n setPresentation({\n current: clamped,\n showAnchor: presentation?.showAnchor ?? false,\n });\n const slide = slides[clamped];\n if (!slide) return;\n\n const d = docRef.current;\n const stack = canvasStackTo(d, slide.canvasId);\n\n // Decide drill direction by comparing with the current stack top.\n const onCurrentCanvas = slide.canvasId === currentCanvasId;\n if (!onCurrentCanvas && stack) {\n const deeper = stack.length > d.stack.length;\n setTransition(deeper ? 'in' : 'out');\n // Navigate the canvas stack to the slide's canvas.\n setDoc((prev) => ({ ...prev, stack }));\n // Clear the transition marker shortly after it starts.\n window.setTimeout(() => setTransition(null), 480);\n }\n\n const r = anchorFocusRect(slide.node);\n // Presentation uses the exact anchor frame with only a small screen-space\n // inset. The zoom is recomputed for every slide and viewport size.\n window.setTimeout(\n () => focusOnRect(r.x, r.y, r.w, r.h, { padding: 8, maxZoom: 4, duration: 350 }),\n onCurrentCanvas ? 0 : 30,\n );\n },\n [slides, count, presentation?.showAnchor, setPresentation, focusOnRect, currentCanvasId, setDoc],\n );\n\n // Entering: use the full display area and snap to the first slide. Refit once\n // fullscreen settles because the canvas dimensions change asynchronously.\n useEffect(() => {\n if (!active) return;\n enterFullscreen();\n if (count > 0) {\n goTo(current);\n const timer = window.setTimeout(() => goTo(current), 180);\n return () => window.clearTimeout(timer);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active]);\n\n\n\n // Keyboard navigation (capture phase so arrows work over the canvas).\n useEffect(() => {\n if (!active) return;\n const onKey = (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n exit();\n return;\n }\n const next = ['ArrowRight', 'ArrowDown', 'PageDown', ' '];\n const prev = ['ArrowLeft', 'ArrowUp', 'PageUp'];\n if (next.includes(e.key)) {\n e.preventDefault();\n if (e.key === ' ' && e.shiftKey) goTo(current - 1);\n else goTo(current + 1);\n } else if (prev.includes(e.key)) {\n e.preventDefault();\n goTo(current - 1);\n }\n };\n window.addEventListener('keydown', onKey, true);\n return () => window.removeEventListener('keydown', onKey, true);\n }, [active, current, goTo, exit]);\n\n if (!active) return null;\n\n const cls = transition ? `flow-presentation--${transition}` : '';\n return (\n <div ref={overlayRef} className={`flow-presentation ${cls}`} onClick={exit}>\n <div className=\"flow-presentation-slide-fx\" style={{ position: 'absolute', inset: 0, pointerEvents: 'none' }} />\n {count === 0 ? (\n <div className=\"flow-presentation-empty\">画布中没有动画锚点,点击退出</div>\n ) : (\n <div className=\"flow-presentation-hud\" onClick={(e) => e.stopPropagation()}>\n <span className=\"flow-presentation-counter\">\n {current + 1} / {count}\n </span>\n <div className=\"flow-presentation-nav\">\n <button type=\"button\" onClick={() => goTo(current - 1)} disabled={current <= 0}>‹ 上一张</button>\n <button type=\"button\" onClick={() => goTo(current + 1)} disabled={current >= count - 1}>下一张 ›</button>\n <button\n type=\"button\"\n onClick={() => setPresentation({\n current,\n showAnchor: !(presentation?.showAnchor ?? false),\n })}\n >\n {presentation?.showAnchor ? '隐藏锚点' : '显示锚点'}\n </button>\n <button type=\"button\" className=\"flow-presentation-exit\" onClick={exit}>退出 Esc</button>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PresentationMode.js","names":[],"sources":["../../../../../src/components/pro/Flow/panels/PresentationMode.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useFlowContext } from '../context/FlowContext';\nimport { useFlowUI } from '../context/FlowUIContext';\nimport { getDocumentSlides, anchorFocusRect, canvasStackTo } from '../nodes/animAnchors';\n\n/**\n * PPT-style presentation mode.\n *\n * While active the editor is read-only (all panels/toolbars are hidden) and the\n * viewport animates between animation anchors (slides). Anchors across the whole\n * document — including nested sub-canvases — share a single sequence, ordered by\n * stable creation index. Navigating to a slide on another canvas drills into or\n * out of that canvas before focusing the slide.\n *\n * Keys: →/↓/Space/PageDown = next, ←/↑/Shift+Space/PageUp = previous, Esc = exit.\n */\nexport function PresentationMode() {\n const { doc, setDoc, currentCanvasId } = useFlowContext();\n const { presentation, setPresentation, focusOnRect } = useFlowUI();\n const overlayRef = useRef<HTMLDivElement>(null);\n\n const slides = useMemo(() => getDocumentSlides(doc), [doc]);\n const count = slides.length;\n const active = presentation !== null;\n const current = presentation?.current ?? 0;\n const [transition, setTransition] = useState<'in' | 'out' | null>(null);\n\n const docRef = useRef(doc);\n docRef.current = doc;\n\n const exit = useCallback(() => {\n setPresentation(null);\n if (document.fullscreenElement) void document.exitFullscreen().catch(() => {});\n }, [setPresentation]);\n\n const enterFullscreen = useCallback(() => {\n const root = overlayRef.current?.closest('.flow-container') as HTMLElement | null;\n if (root && !document.fullscreenElement) {\n void root.requestFullscreen().catch(() => {});\n }\n }, []);\n\n const goTo = useCallback(\n (index: number) => {\n if (count === 0) return;\n const clamped = Math.max(0, Math.min(count - 1, index));\n setPresentation({\n current: clamped,\n showAnchor: presentation?.showAnchor ?? false,\n });\n const slide = slides[clamped];\n if (!slide) return;\n\n const d = docRef.current;\n const stack = canvasStackTo(d, slide.canvasId);\n\n // Decide drill direction by comparing with the current stack top.\n const onCurrentCanvas = slide.canvasId === currentCanvasId;\n if (!onCurrentCanvas && stack) {\n const deeper = stack.length > d.stack.length;\n setTransition(deeper ? 'in' : 'out');\n // Navigate the canvas stack to the slide's canvas.\n setDoc((prev) => ({ ...prev, stack }));\n // Clear the transition marker shortly after it starts.\n window.setTimeout(() => setTransition(null), 480);\n }\n\n const r = anchorFocusRect(slide.node);\n // Presentation uses the exact anchor frame with only a small screen-space\n // inset. The zoom is recomputed for every slide and viewport size.\n window.setTimeout(\n () => focusOnRect(r.x, r.y, r.w, r.h, { padding: 8, maxZoom: 4, duration: 350 }),\n onCurrentCanvas ? 0 : 30,\n );\n },\n [slides, count, presentation?.showAnchor, setPresentation, focusOnRect, currentCanvasId, setDoc],\n );\n\n // Entering: use the full display area and snap to the first slide. Refit once\n // fullscreen settles because the canvas dimensions change asynchronously.\n useEffect(() => {\n if (!active) return;\n enterFullscreen();\n if (count > 0) {\n goTo(current);\n const timer = window.setTimeout(() => goTo(current), 180);\n return () => window.clearTimeout(timer);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active]);\n\n\n\n // Keyboard navigation (capture phase so arrows work over the canvas).\n useEffect(() => {\n if (!active) return;\n const onKey = (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n exit();\n return;\n }\n const next = ['ArrowRight', 'ArrowDown', 'PageDown', ' '];\n const prev = ['ArrowLeft', 'ArrowUp', 'PageUp'];\n if (next.includes(e.key)) {\n e.preventDefault();\n if (e.key === ' ' && e.shiftKey) goTo(current - 1);\n else goTo(current + 1);\n } else if (prev.includes(e.key)) {\n e.preventDefault();\n goTo(current - 1);\n }\n };\n window.addEventListener('keydown', onKey, true);\n return () => window.removeEventListener('keydown', onKey, true);\n }, [active, current, goTo, exit]);\n\n if (!active) return null;\n\n const cls = transition ? `flow-presentation--${transition}` : '';\n return (\n <div ref={overlayRef} className={`flow-presentation ${cls}`} onClick={exit}>\n <div className=\"flow-presentation-slide-fx\" style={{ position: 'absolute', inset: 0, pointerEvents: 'none' }} />\n {count === 0 ? (\n <div className=\"flow-presentation-empty\">画布中没有动画锚点,点击退出</div>\n ) : (\n <div className=\"flow-presentation-hud\" onClick={(e) => e.stopPropagation()}>\n <span className=\"flow-presentation-counter\">\n {current + 1} / {count}\n </span>\n <div className=\"flow-presentation-nav\">\n <button type=\"button\" onClick={() => goTo(current - 1)} disabled={current <= 0}>‹ 上一张</button>\n <button type=\"button\" onClick={() => goTo(current + 1)} disabled={current >= count - 1}>下一张 ›</button>\n <button\n type=\"button\"\n onClick={() => setPresentation({\n current,\n showAnchor: !(presentation?.showAnchor ?? false),\n })}\n >\n {presentation?.showAnchor ? '隐藏锚点' : '显示锚点'}\n </button>\n <button type=\"button\" className=\"flow-presentation-exit\" onClick={exit}>退出 Esc</button>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { useFlowContext as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { jsx as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
import { useFlowContext as e } from "../context/FlowContext.js";
|
|
2
|
+
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/pro/Flow/panels/ProjectTitle.tsx
|
|
5
|
+
var a = "未命名流程图";
|
|
6
|
+
function o() {
|
|
7
|
+
let { doc: o, setDoc: s } = e(), [c, l] = r(!1), [u, d] = r(o.title ?? ""), f = n(null);
|
|
8
|
+
t(() => {
|
|
9
|
+
c || d(o.title ?? "");
|
|
10
|
+
}, [o.title, c]), t(() => {
|
|
11
|
+
if (c) {
|
|
12
|
+
let e = f.current;
|
|
13
|
+
e?.focus(), e?.select();
|
|
14
|
+
}
|
|
15
|
+
}, [c]);
|
|
16
|
+
let p = () => {
|
|
17
|
+
let e = u.trim();
|
|
18
|
+
l(!1), s((t) => ({
|
|
19
|
+
...t,
|
|
20
|
+
title: e || void 0
|
|
21
|
+
}));
|
|
22
|
+
}, m = () => {
|
|
23
|
+
d(o.title ?? ""), l(!1);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ i("div", {
|
|
26
|
+
className: "flow-project-title",
|
|
27
|
+
title: "双击编辑标题",
|
|
28
|
+
children: /* @__PURE__ */ i("input", {
|
|
29
|
+
ref: f,
|
|
30
|
+
className: `flow-project-title-input${c ? " flow-project-title-input--editing" : ""}`,
|
|
31
|
+
value: c ? u : o.title ?? "",
|
|
32
|
+
placeholder: a,
|
|
33
|
+
readOnly: !c,
|
|
34
|
+
onDoubleClick: () => l(!0),
|
|
35
|
+
onChange: (e) => d(e.target.value),
|
|
36
|
+
onBlur: () => {
|
|
37
|
+
c && p();
|
|
38
|
+
},
|
|
39
|
+
onKeyDown: (e) => {
|
|
40
|
+
e.key === "Enter" ? (e.preventDefault(), p()) : e.key === "Escape" && (e.preventDefault(), m());
|
|
41
|
+
},
|
|
42
|
+
spellCheck: !1
|
|
43
|
+
})
|
|
44
|
+
});
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { o as default };
|
|
48
48
|
|
|
49
49
|
//# sourceMappingURL=ProjectTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectTitle.js","names":[],"sources":["../../../../../src/components/pro/Flow/panels/ProjectTitle.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { useFlowContext } from '../context/FlowContext';\n\nconst DEFAULT_TITLE = '未命名流程图';\n\n/**\n * Editable project title shown in the top-left. Renders as plain-looking text\n * (a borderless input) and only becomes editable on double-click, committing on\n * blur or Enter and reverting on Escape. The title is stored on the document\n * and used as the base filename for all exports.\n */\nexport default function ProjectTitle() {\n const { doc, setDoc } = useFlowContext();\n const [editing, setEditing] = useState(false);\n const [draft, setDraft] = useState(doc.title ?? '');\n const inputRef = useRef<HTMLInputElement>(null);\n\n // Keep the draft in sync when the document title changes externally\n // (import / undo / new document) while not actively editing.\n useEffect(() => {\n if (!editing) setDraft(doc.title ?? '');\n }, [doc.title, editing]);\n\n useEffect(() => {\n if (editing) {\n const el = inputRef.current;\n el?.focus();\n el?.select();\n }\n }, [editing]);\n\n const commit = () => {\n const next = draft.trim();\n setEditing(false);\n setDoc((prev) => ({ ...prev, title: next || undefined }));\n };\n\n const cancel = () => {\n setDraft(doc.title ?? '');\n setEditing(false);\n };\n\n return (\n <div className=\"flow-project-title\" title=\"双击编辑标题\">\n <input\n ref={inputRef}\n className={`flow-project-title-input${editing ? ' flow-project-title-input--editing' : ''}`}\n value={editing ? draft : (doc.title ?? '')}\n placeholder={DEFAULT_TITLE}\n readOnly={!editing}\n onDoubleClick={() => setEditing(true)}\n onChange={(e) => setDraft(e.target.value)}\n onBlur={() => { if (editing) commit(); }}\n onKeyDown={(e) => {\n if (e.key === 'Enter') { e.preventDefault(); commit(); }\n else if (e.key === 'Escape') { e.preventDefault(); cancel(); }\n }}\n spellCheck={false}\n />\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectTitle.js","names":[],"sources":["../../../../../src/components/pro/Flow/panels/ProjectTitle.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { useFlowContext } from '../context/FlowContext';\n\nconst DEFAULT_TITLE = '未命名流程图';\n\n/**\n * Editable project title shown in the top-left. Renders as plain-looking text\n * (a borderless input) and only becomes editable on double-click, committing on\n * blur or Enter and reverting on Escape. The title is stored on the document\n * and used as the base filename for all exports.\n */\nexport default function ProjectTitle() {\n const { doc, setDoc } = useFlowContext();\n const [editing, setEditing] = useState(false);\n const [draft, setDraft] = useState(doc.title ?? '');\n const inputRef = useRef<HTMLInputElement>(null);\n\n // Keep the draft in sync when the document title changes externally\n // (import / undo / new document) while not actively editing.\n useEffect(() => {\n if (!editing) setDraft(doc.title ?? '');\n }, [doc.title, editing]);\n\n useEffect(() => {\n if (editing) {\n const el = inputRef.current;\n el?.focus();\n el?.select();\n }\n }, [editing]);\n\n const commit = () => {\n const next = draft.trim();\n setEditing(false);\n setDoc((prev) => ({ ...prev, title: next || undefined }));\n };\n\n const cancel = () => {\n setDraft(doc.title ?? '');\n setEditing(false);\n };\n\n return (\n <div className=\"flow-project-title\" title=\"双击编辑标题\">\n <input\n ref={inputRef}\n className={`flow-project-title-input${editing ? ' flow-project-title-input--editing' : ''}`}\n value={editing ? draft : (doc.title ?? '')}\n placeholder={DEFAULT_TITLE}\n readOnly={!editing}\n onDoubleClick={() => setEditing(true)}\n onChange={(e) => setDraft(e.target.value)}\n onBlur={() => { if (editing) commit(); }}\n onKeyDown={(e) => {\n if (e.key === 'Enter') { e.preventDefault(); commit(); }\n else if (e.key === 'Escape') { e.preventDefault(); cancel(); }\n }}\n spellCheck={false}\n />\n </div>\n );\n}\n"],"mappings":";;;;AAGA,IAAM,IAAgB;AAQtB,SAAwB,IAAe;CACrC,IAAM,EAAE,QAAK,cAAW,EAAe,GACjC,CAAC,GAAS,KAAc,EAAS,EAAK,GACtC,CAAC,GAAO,KAAY,EAAS,EAAI,SAAS,EAAE,GAC5C,IAAW,EAAyB,IAAI;CAQ9C,AAJA,QAAgB;EACd,AAAK,KAAS,EAAS,EAAI,SAAS,EAAE;CACxC,GAAG,CAAC,EAAI,OAAO,CAAO,CAAC,GAEvB,QAAgB;EACd,IAAI,GAAS;GACX,IAAM,IAAK,EAAS;GAEpB,AADA,GAAI,MAAM,GACV,GAAI,OAAO;EACb;CACF,GAAG,CAAC,CAAO,CAAC;CAEZ,IAAM,UAAe;EACnB,IAAM,IAAO,EAAM,KAAK;EAExB,AADA,EAAW,EAAK,GAChB,GAAQ,OAAU;GAAE,GAAG;GAAM,OAAO,KAAQ,KAAA;EAAU,EAAE;CAC1D,GAEM,UAAe;EAEnB,AADA,EAAS,EAAI,SAAS,EAAE,GACxB,EAAW,EAAK;CAClB;CAEA,OACE,kBAAC,OAAD;EAAK,WAAU;EAAqB,OAAM;EACxC,UAAA,kBAAC,SAAD;GACE,KAAK;GACL,WAAW,2BAA2B,IAAU,uCAAuC;GACvF,OAAO,IAAU,IAAS,EAAI,SAAS;GACvC,aAAa;GACb,UAAU,CAAC;GACX,qBAAqB,EAAW,EAAI;GACpC,WAAW,MAAM,EAAS,EAAE,OAAO,KAAK;GACxC,cAAc;IAAE,AAAI,KAAS,EAAO;GAAG;GACvC,YAAY,MAAM;IAChB,AAAI,EAAE,QAAQ,WAAW,EAAE,eAAe,GAAG,EAAO,KAC3C,EAAE,QAAQ,aAAY,EAAE,eAAe,GAAG,EAAO;GAC5D;GACA,YAAY;EACb,CAAA;CACE,CAAA;AAET"}
|