@4399ywkf/editor 0.3.1 → 0.4.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.
@@ -1,4 +1,5 @@
1
- import { EditorConfigProvider, NotionEditor } from './chunk-Y2XE4CYZ.js';
1
+ import { EditorConfigProvider, NotionEditor } from './chunk-BBZGFBWU.js';
2
+ import './chunk-GSBPP62I.js';
2
3
  import { jsx } from 'react/jsx-runtime';
3
4
 
4
5
  function DocView({ content, readOnly, room, className, onReady }) {
@@ -14,5 +15,5 @@ function DocView({ content, readOnly, room, className, onReady }) {
14
15
  }
15
16
 
16
17
  export { DocView as default };
17
- //# sourceMappingURL=DocView-WQIV7HIE.js.map
18
- //# sourceMappingURL=DocView-WQIV7HIE.js.map
18
+ //# sourceMappingURL=DocView-7QREDSQJ.js.map
19
+ //# sourceMappingURL=DocView-7QREDSQJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/views/DocView.tsx"],"names":[],"mappings":";;;;AAMe,SAAR,QAAyB,EAAE,OAAA,EAAS,UAAU,IAAA,EAAM,SAAA,EAAW,SAAQ,EAAsB;AAClG,EAAA,2BACG,KAAA,EAAA,EAAI,SAAA,EACH,8BAAC,oBAAA,EAAA,EAAqB,MAAA,EAAQ,EAAC,EAC7B,QAAA,kBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,MAAM,IAAA,IAAQ,SAAA;AAAA,MACd,OAAA;AAAA,MACA,QAAA;AAAA,MACA,aAAA,EAAe,CAAC,MAAA,KAAmB,OAAA,GAAU,MAAM;AAAA;AAAA,KAEvD,CAAA,EACF,CAAA;AAEJ","file":"DocView-7QREDSQJ.js","sourcesContent":["import type { Editor } from \"@tiptap/react\"\nimport { EditorConfigProvider } from \"../contexts/editor-config-context\"\nimport { NotionEditor } from \"../components/tiptap-templates/notion-like/notion-like-editor\"\nimport type { DocumentViewProps } from \"../registry\"\n\n/** doc 通道:云文档与本地 doc 是同一套 tiptap,不做区分 */\nexport default function DocView({ content, readOnly, room, className, onReady }: DocumentViewProps) {\n return (\n <div className={className}>\n <EditorConfigProvider config={{}}>\n <NotionEditor\n room={room ?? \"default\"}\n content={content as string}\n readOnly={readOnly}\n onEditorReady={(editor: Editor) => onReady?.(editor)}\n />\n </EditorConfigProvider>\n </div>\n )\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import * as react from 'react';
2
+
3
+ type ButtonVariant = "ghost" | "primary";
4
+ type ButtonSize = "small" | "default" | "large";
5
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
+ showTooltip?: boolean;
7
+ tooltip?: React.ReactNode;
8
+ shortcutKeys?: string;
9
+ variant?: ButtonVariant;
10
+ size?: ButtonSize;
11
+ }
12
+ declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
13
+
14
+ export { type ButtonProps as B, Button as a };