@4399ywkf/editor 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocView-GDN5CZCJ.js → DocView-WQIV7HIE.js} +3 -3
- package/dist/{DocView-GDN5CZCJ.js.map → DocView-WQIV7HIE.js.map} +1 -1
- package/dist/{chunk-ZRFOS52C.js → chunk-Y2XE4CYZ.js} +357 -2
- package/dist/chunk-Y2XE4CYZ.js.map +1 -0
- package/dist/doc.js +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +88 -0
- package/package.json +1 -1
- package/dist/chunk-ZRFOS52C.js.map +0 -1
package/dist/doc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArticleViewer, Audio, Button, CollabContext, CollabProvider, Column, Columns, DEFAULT_MAX_FILE_SIZES, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditorConfigProvider, EditorContentArea, FileAttachment, FloatingElement, HIDE_FLOATING_META, LoadingSpinner, MAC_SYMBOLS, MAX_FILE_SIZE, MediaUploadButton, MediaUploadPlaceholder, NotionEditor, NotionEditorContent, EditorProvider as NotionEditorInner, PasteDropMedia, Popover, PopoverContent, PopoverTrigger, SR_ONLY, Separator, Spacer, Toolbar, ToolbarGroup, ToolbarSeparator, UiState, UserContext, UserProvider, Video, clamp, cn, defaultUiState, detectMediaKind, findNodeAtPosition, findNodePosition, findSelectionPosition, focusNextNode, formatShortcutKey, getAvatar, getElementOverflowPosition, getNodeDisplayName, getSelectedBlockNodes, getSelectedNodesOfType, getSelectionBoundingRect, getUrlParam, handleImageUpload, hasContentAbove, isAllowedUri, isExtensionAvailable, isMac, isMarkInSchema, isNodeInSchema, isNodeTypeSelected, isSelectionValid, isTextSelectionValid, isValidPosition, markHideFloatingOnNext, parseShortcutKeys, pickFile, removeEmptyParagraphs, resolveMaxSize, runMediaUpload, sanitizeUrl, selectCurrentBlockContent, selectNodeAndHideFloating, selectionWithinConvertibleTypes, updateNodesAttr, useCollab, useCollaboration, useComposedRef, useCursorVisibility, useEditorConfig, useElementRect, useFloatingElement, useFloatingToolbarVisibility, useIsBreakpoint, useIsomorphicLayoutEffect, useMenuNavigation, useOnClickOutside, useThrottledCallback, useTiptapEditor, useUiEditorState, use_ui_editor_state_default as useUiEditorStateDefault, useUnmount, useUser, useWindowSize } from './chunk-
|
|
1
|
+
export { ArticleViewer, Audio, Button, CollabContext, CollabProvider, Column, Columns, DEFAULT_MAX_FILE_SIZES, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditorConfigProvider, EditorContentArea, FileAttachment, FloatingElement, HIDE_FLOATING_META, LoadingSpinner, MAC_SYMBOLS, MAX_FILE_SIZE, MediaUploadButton, MediaUploadPlaceholder, NotionEditor, NotionEditorContent, EditorProvider as NotionEditorInner, PasteDropMedia, Popover, PopoverContent, PopoverTrigger, SR_ONLY, Separator, Spacer, Toolbar, ToolbarGroup, ToolbarSeparator, UiState, UserContext, UserProvider, Video, clamp, cn, defaultUiState, detectMediaKind, findNodeAtPosition, findNodePosition, findSelectionPosition, focusNextNode, formatShortcutKey, getAvatar, getElementOverflowPosition, getNodeDisplayName, getSelectedBlockNodes, getSelectedNodesOfType, getSelectionBoundingRect, getUrlParam, handleImageUpload, hasContentAbove, isAllowedUri, isExtensionAvailable, isMac, isMarkInSchema, isNodeInSchema, isNodeTypeSelected, isSelectionValid, isTextSelectionValid, isValidPosition, markHideFloatingOnNext, parseShortcutKeys, pickFile, removeEmptyParagraphs, resolveMaxSize, runMediaUpload, sanitizeUrl, selectCurrentBlockContent, selectNodeAndHideFloating, selectionWithinConvertibleTypes, updateNodesAttr, useCollab, useCollaboration, useComposedRef, useCursorVisibility, useEditorConfig, useElementRect, useFloatingElement, useFloatingToolbarVisibility, useIsBreakpoint, useIsomorphicLayoutEffect, useMenuNavigation, useOnClickOutside, useThrottledCallback, useTiptapEditor, useUiEditorState, use_ui_editor_state_default as useUiEditorStateDefault, useUnmount, useUser, useWindowSize } from './chunk-Y2XE4CYZ.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
function useScrolling(target, options = {}) {
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ registerFormat({
|
|
|
29
29
|
importExtensions: [".docx", ".md", ".html"],
|
|
30
30
|
exportFormats: ["docx", "html", "json", "markdown"]
|
|
31
31
|
},
|
|
32
|
-
load: () => import('./DocView-
|
|
32
|
+
load: () => import('./DocView-WQIV7HIE.js')
|
|
33
33
|
});
|
|
34
34
|
registerFormat({
|
|
35
35
|
format: "sheet",
|
package/dist/style.css
CHANGED
|
@@ -5709,3 +5709,91 @@ span.tiptap-slash-decoration.is-empty::after {
|
|
|
5709
5709
|
background-color: transparent;
|
|
5710
5710
|
}
|
|
5711
5711
|
}
|
|
5712
|
+
|
|
5713
|
+
/* plugins/ai/ai-dialog.scss */
|
|
5714
|
+
.ai-dialog {
|
|
5715
|
+
width: 380px;
|
|
5716
|
+
padding: 0;
|
|
5717
|
+
border-radius: 8px;
|
|
5718
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
5719
|
+
}
|
|
5720
|
+
.ai-dialog .ai-dialog-header {
|
|
5721
|
+
display: flex;
|
|
5722
|
+
align-items: center;
|
|
5723
|
+
gap: 8px;
|
|
5724
|
+
padding: 12px 16px;
|
|
5725
|
+
border-bottom: 1px solid var(--color-border, #e5e7eb);
|
|
5726
|
+
font-weight: 600;
|
|
5727
|
+
font-size: 14px;
|
|
5728
|
+
color: var(--color-text, #1f2937);
|
|
5729
|
+
}
|
|
5730
|
+
.ai-dialog .ai-dialog-header .ai-dialog-icon {
|
|
5731
|
+
width: 18px;
|
|
5732
|
+
height: 18px;
|
|
5733
|
+
}
|
|
5734
|
+
.ai-dialog .ai-dialog-body {
|
|
5735
|
+
display: flex;
|
|
5736
|
+
flex-direction: column;
|
|
5737
|
+
gap: 12px;
|
|
5738
|
+
padding: 16px;
|
|
5739
|
+
}
|
|
5740
|
+
.ai-dialog .ai-dialog-body .ai-dialog-input-group {
|
|
5741
|
+
display: flex;
|
|
5742
|
+
flex-direction: column;
|
|
5743
|
+
gap: 8px;
|
|
5744
|
+
}
|
|
5745
|
+
.ai-dialog .ai-dialog-body .ai-dialog-input-group .ai-dialog-input {
|
|
5746
|
+
width: 100%;
|
|
5747
|
+
padding: 8px 12px;
|
|
5748
|
+
border: 1px solid var(--color-border, #e5e7eb);
|
|
5749
|
+
border-radius: 6px;
|
|
5750
|
+
font-size: 14px;
|
|
5751
|
+
font-family: inherit;
|
|
5752
|
+
resize: vertical;
|
|
5753
|
+
min-height: 40px;
|
|
5754
|
+
max-height: 120px;
|
|
5755
|
+
}
|
|
5756
|
+
.ai-dialog .ai-dialog-body .ai-dialog-input-group .ai-dialog-input:focus {
|
|
5757
|
+
outline: none;
|
|
5758
|
+
border-color: var(--color-primary, #3b82f6);
|
|
5759
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
5760
|
+
}
|
|
5761
|
+
.ai-dialog .ai-dialog-body .ai-dialog-input-group .ai-dialog-input:disabled {
|
|
5762
|
+
background-color: var(--color-bg-disabled, #f3f4f6);
|
|
5763
|
+
color: var(--color-text-disabled, #9ca3af);
|
|
5764
|
+
}
|
|
5765
|
+
.ai-dialog .ai-dialog-body .ai-dialog-error {
|
|
5766
|
+
padding: 8px 12px;
|
|
5767
|
+
background-color: #fee;
|
|
5768
|
+
border: 1px solid #fcc;
|
|
5769
|
+
border-radius: 4px;
|
|
5770
|
+
font-size: 12px;
|
|
5771
|
+
color: #c33;
|
|
5772
|
+
line-height: 1.4;
|
|
5773
|
+
}
|
|
5774
|
+
.ai-dialog .ai-dialog-body .ai-dialog-actions {
|
|
5775
|
+
display: flex;
|
|
5776
|
+
justify-content: flex-end;
|
|
5777
|
+
gap: 8px;
|
|
5778
|
+
padding-top: 8px;
|
|
5779
|
+
}
|
|
5780
|
+
.ai-dialog .ai-dialog-body .ai-dialog-actions button {
|
|
5781
|
+
min-width: 80px;
|
|
5782
|
+
height: 32px;
|
|
5783
|
+
padding: 0 12px;
|
|
5784
|
+
font-size: 14px;
|
|
5785
|
+
border-radius: 4px;
|
|
5786
|
+
cursor: pointer;
|
|
5787
|
+
}
|
|
5788
|
+
.ai-dialog .ai-dialog-body .ai-dialog-actions button:disabled {
|
|
5789
|
+
opacity: 0.5;
|
|
5790
|
+
cursor: not-allowed;
|
|
5791
|
+
}
|
|
5792
|
+
.ai-dialog .ai-dialog-body .ai-dialog-actions button[loading=true] {
|
|
5793
|
+
opacity: 0.7;
|
|
5794
|
+
}
|
|
5795
|
+
.ai-dialog .ai-dialog-body .ai-dialog-actions button .ai-dialog-button-icon {
|
|
5796
|
+
width: 16px;
|
|
5797
|
+
height: 16px;
|
|
5798
|
+
margin-left: 4px;
|
|
5799
|
+
}
|