zs_library 0.7.9 → 0.7.11

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.
@@ -14,6 +14,7 @@ export interface BaseModalProps {
14
14
  footer?: ReactNode;
15
15
  className?: string;
16
16
  contentClassName?: string;
17
+ disableMaxHeight?: boolean;
17
18
  }
18
19
  declare const BaseModal: (props: BaseModalProps) => import("react/jsx-runtime").JSX.Element;
19
20
  export default BaseModal;
@@ -1,23 +1,24 @@
1
- declare const _default: {
2
- "editor": {
3
- "contentAriaLabel": "Main content area, start typing to enter text."
4
- },
5
- "toolbar": {
6
- "add": "Add",
7
- "undo": "Undo",
8
- "redo": "Redo",
9
- "heading": {
10
- "label": "Heading",
11
- "level": "Heading {{level}}"
12
- },
13
- "list": {
14
- "label": "List",
15
- "bullet": "Bullet List",
16
- "ordered": "Ordered List",
17
- "task": "Task List"
18
- },
19
- "blockquote": "Blockquote",
20
- "codeBlock": "Code Block",
1
+ declare const _default: {
2
+ "editor": {
3
+ "contentAriaLabel": "Main content area, start typing to enter text.",
4
+ "placeholder": "Write something..."
5
+ },
6
+ "toolbar": {
7
+ "add": "Add",
8
+ "undo": "Undo",
9
+ "redo": "Redo",
10
+ "heading": {
11
+ "label": "Heading",
12
+ "level": "Heading {{level}}"
13
+ },
14
+ "list": {
15
+ "label": "List",
16
+ "bullet": "Bullet List",
17
+ "ordered": "Ordered List",
18
+ "task": "Task List"
19
+ },
20
+ "blockquote": "Blockquote",
21
+ "codeBlock": "Code Block",
21
22
  "marks": {
22
23
  "bold": "Bold",
23
24
  "italic": "Italic",
@@ -60,19 +61,19 @@ declare const _default: {
60
61
  "red": "Red background"
61
62
  }
62
63
  },
63
- "link": {
64
- "label": "Link",
65
- "placeholder": "Paste a link...",
66
- "apply": "Apply link",
67
- "open": "Open in new window",
68
- "remove": "Remove link"
69
- },
70
- "align": {
71
- "left": "Align left",
72
- "center": "Align center",
73
- "right": "Align right",
74
- "justify": "Align justify"
75
- },
64
+ "link": {
65
+ "label": "Link",
66
+ "placeholder": "Paste a link...",
67
+ "apply": "Apply link",
68
+ "open": "Open in new window",
69
+ "remove": "Remove link"
70
+ },
71
+ "align": {
72
+ "left": "Align left",
73
+ "center": "Align center",
74
+ "right": "Align right",
75
+ "justify": "Align justify"
76
+ },
76
77
  "image": {
77
78
  "label": "Add image"
78
79
  },
@@ -93,44 +94,44 @@ declare const _default: {
93
94
  "label": "AI Assistant",
94
95
  "placeholder": "Ask AI to write something...",
95
96
  "apiKeyPlaceholder": "sk-...",
96
- "generate": "Generate",
97
- "generating": "Generating...",
98
- "insert": "Insert",
99
- "replace": "Replace Selection",
100
- "apiKeyLabel": "API Key (DeepSeek)",
101
- "promptLabel": "Prompt",
102
- "error": "Failed to generate content",
103
- "optimizeSelection": "Selection Context: {{text}}",
104
- "isWriting": "AI is writing",
105
- "refinePlaceholder": "Tell AI what else needs to be changed...",
106
- "tryAgain": "Try again",
107
- "discard": "Discard",
108
- "apply": "Apply",
109
- "presets": {
110
- "edit": "Edit",
111
- "improve": "Improve writing",
112
- "fix": "Fix spelling & grammar",
113
- "shorter": "Make shorter",
114
- "longer": "Make longer"
115
- }
116
- }
117
- },
118
- "imageUpload": {
119
- "clickToUpload": "Click to upload",
120
- "dragAndDrop": "or drag and drop",
121
- "limitInfo": "Maximum {{limit}} file(s), {{size}}MB each.",
122
- "uploading": "Uploading {{count}} files",
123
- "clearAll": "Clear All",
124
- "errors": {
125
- "tooLarge": "File size exceeds maximum allowed ({{size}}MB)",
126
- "limitExceeded": "Maximum {{limit}} files allowed",
127
- "noFile": "No file selected",
128
- "noFiles": "No files to upload",
129
- "uploadFailed": "Upload failed",
130
- "noUrl": "Upload failed: No URL returned"
131
- }
132
- }
133
- }
97
+ "generate": "Generate",
98
+ "generating": "Generating...",
99
+ "insert": "Insert",
100
+ "replace": "Replace Selection",
101
+ "apiKeyLabel": "API Key (DeepSeek)",
102
+ "promptLabel": "Prompt",
103
+ "error": "Failed to generate content",
104
+ "optimizeSelection": "Selection Context: {{text}}",
105
+ "isWriting": "AI is writing",
106
+ "refinePlaceholder": "Tell AI what else needs to be changed...",
107
+ "tryAgain": "Try again",
108
+ "discard": "Discard",
109
+ "apply": "Apply",
110
+ "presets": {
111
+ "edit": "Edit",
112
+ "improve": "Improve writing",
113
+ "fix": "Fix spelling & grammar",
114
+ "shorter": "Make shorter",
115
+ "longer": "Make longer"
116
+ }
117
+ }
118
+ },
119
+ "imageUpload": {
120
+ "clickToUpload": "Click to upload",
121
+ "dragAndDrop": "or drag and drop",
122
+ "limitInfo": "Maximum {{limit}} file(s), {{size}}MB each.",
123
+ "uploading": "Uploading {{count}} files",
124
+ "clearAll": "Clear All",
125
+ "errors": {
126
+ "tooLarge": "File size exceeds maximum allowed ({{size}}MB)",
127
+ "limitExceeded": "Maximum {{limit}} files allowed",
128
+ "noFile": "No file selected",
129
+ "noFiles": "No files to upload",
130
+ "uploadFailed": "Upload failed",
131
+ "noUrl": "Upload failed: No URL returned"
132
+ }
133
+ }
134
+ }
134
135
  ;
135
136
 
136
137
  export default _default;
@@ -1,23 +1,24 @@
1
- declare const _default: {
2
- "editor": {
3
- "contentAriaLabel": "主要内容区域,开始输入文字。"
4
- },
5
- "toolbar": {
6
- "add": "添加",
7
- "undo": "撤销",
8
- "redo": "重做",
9
- "heading": {
10
- "label": "标题",
11
- "level": "标题 {{level}}"
12
- },
13
- "list": {
14
- "label": "列表",
15
- "bullet": "无序列表",
16
- "ordered": "有序列表",
17
- "task": "任务列表"
18
- },
19
- "blockquote": "引用",
20
- "codeBlock": "代码块",
1
+ declare const _default: {
2
+ "editor": {
3
+ "contentAriaLabel": "主要内容区域,开始输入文字。",
4
+ "placeholder": "写点什么…"
5
+ },
6
+ "toolbar": {
7
+ "add": "添加",
8
+ "undo": "撤销",
9
+ "redo": "重做",
10
+ "heading": {
11
+ "label": "标题",
12
+ "level": "标题 {{level}}"
13
+ },
14
+ "list": {
15
+ "label": "列表",
16
+ "bullet": "无序列表",
17
+ "ordered": "有序列表",
18
+ "task": "任务列表"
19
+ },
20
+ "blockquote": "引用",
21
+ "codeBlock": "代码块",
21
22
  "marks": {
22
23
  "bold": "粗体",
23
24
  "italic": "斜体",
@@ -60,19 +61,19 @@ declare const _default: {
60
61
  "red": "红色背景"
61
62
  }
62
63
  },
63
- "link": {
64
- "label": "链接",
65
- "placeholder": "粘贴链接...",
66
- "apply": "应用链接",
67
- "open": "在新窗口打开",
68
- "remove": "移除链接"
69
- },
70
- "align": {
71
- "left": "左对齐",
72
- "center": "居中对齐",
73
- "right": "右对齐",
74
- "justify": "两端对齐"
75
- },
64
+ "link": {
65
+ "label": "链接",
66
+ "placeholder": "粘贴链接...",
67
+ "apply": "应用链接",
68
+ "open": "在新窗口打开",
69
+ "remove": "移除链接"
70
+ },
71
+ "align": {
72
+ "left": "左对齐",
73
+ "center": "居中对齐",
74
+ "right": "右对齐",
75
+ "justify": "两端对齐"
76
+ },
76
77
  "image": {
77
78
  "label": "添加图片"
78
79
  },
@@ -93,44 +94,44 @@ declare const _default: {
93
94
  "label": "AI 助手",
94
95
  "placeholder": "让 AI 写点什么...",
95
96
  "apiKeyPlaceholder": "sk-...",
96
- "generate": "生成",
97
- "generating": "生成中...",
98
- "insert": "插入",
99
- "replace": "替换选中内容",
100
- "apiKeyLabel": "API Key (DeepSeek)",
101
- "promptLabel": "提示词",
102
- "error": "生成失败",
103
- "optimizeSelection": "选中内容: {{text}}",
104
- "isWriting": "AI 正在写作",
105
- "refinePlaceholder": "告诉 AI 还需要修改什么...",
106
- "tryAgain": "重试",
107
- "discard": "放弃",
108
- "apply": "应用",
109
- "presets": {
110
- "edit": "编辑",
111
- "improve": "润色",
112
- "fix": "修复拼写和语法",
113
- "shorter": "缩短",
114
- "longer": "扩写"
115
- }
116
- }
117
- },
118
- "imageUpload": {
119
- "clickToUpload": "点击上传",
120
- "dragAndDrop": "或拖拽上传",
121
- "limitInfo": "最多 {{limit}} 个文件,每个 {{size}}MB。",
122
- "uploading": "正在上传 {{count}} 个文件",
123
- "clearAll": "全部清除",
124
- "errors": {
125
- "tooLarge": "文件大小超过限制 ({{size}}MB)",
126
- "limitExceeded": "最多允许 {{limit}} 个文件",
127
- "noFile": "未选择文件",
128
- "noFiles": "没有可上传的文件",
129
- "uploadFailed": "上传失败",
130
- "noUrl": "上传失败:未返回 URL"
131
- }
132
- }
133
- }
97
+ "generate": "生成",
98
+ "generating": "生成中...",
99
+ "insert": "插入",
100
+ "replace": "替换选中内容",
101
+ "apiKeyLabel": "API Key (DeepSeek)",
102
+ "promptLabel": "提示词",
103
+ "error": "生成失败",
104
+ "optimizeSelection": "选中内容: {{text}}",
105
+ "isWriting": "AI 正在写作",
106
+ "refinePlaceholder": "告诉 AI 还需要修改什么...",
107
+ "tryAgain": "重试",
108
+ "discard": "放弃",
109
+ "apply": "应用",
110
+ "presets": {
111
+ "edit": "编辑",
112
+ "improve": "润色",
113
+ "fix": "修复拼写和语法",
114
+ "shorter": "缩短",
115
+ "longer": "扩写"
116
+ }
117
+ }
118
+ },
119
+ "imageUpload": {
120
+ "clickToUpload": "点击上传",
121
+ "dragAndDrop": "或拖拽上传",
122
+ "limitInfo": "最多 {{limit}} 个文件,每个 {{size}}MB。",
123
+ "uploading": "正在上传 {{count}} 个文件",
124
+ "clearAll": "全部清除",
125
+ "errors": {
126
+ "tooLarge": "文件大小超过限制 ({{size}}MB)",
127
+ "limitExceeded": "最多允许 {{limit}} 个文件",
128
+ "noFile": "未选择文件",
129
+ "noFiles": "没有可上传的文件",
130
+ "uploadFailed": "上传失败",
131
+ "noUrl": "上传失败:未返回 URL"
132
+ }
133
+ }
134
+ }
134
135
  ;
135
136
 
136
137
  export default _default;
@@ -4,6 +4,7 @@ import { EditorOutputFormat } from './lib/format-utils';
4
4
  export interface SimpleEditorProps {
5
5
  value?: string | JSONContent;
6
6
  onChange?: (value: string | JSONContent) => void;
7
+ placeholder?: string;
7
8
  className?: string;
8
9
  style?: React.CSSProperties;
9
10
  features?: SimpleEditorFeatures;
@@ -4,7 +4,8 @@ import { EditorOutputFormat } from './lib/format-utils';
4
4
  export interface UseSimpleEditorProps {
5
5
  value?: string | JSONContent;
6
6
  onChange?: (value: string | JSONContent) => void;
7
+ placeholder?: string;
7
8
  features?: SimpleEditorFeatures;
8
9
  output?: EditorOutputFormat;
9
10
  }
10
- export declare function useSimpleEditor({ value, onChange, features, output }: UseSimpleEditorProps): import('@tiptap/core').Editor | null;
11
+ export declare function useSimpleEditor({ value, onChange, placeholder, features, output }: UseSimpleEditorProps): import('@tiptap/core').Editor | null;
@@ -15,13 +15,5 @@ declare const _default: {
15
15
  restore: string;
16
16
  close: string;
17
17
  };
18
- editor: {
19
- placeholder: string;
20
- bold: string;
21
- italic: string;
22
- code: string;
23
- link: string;
24
- image: string;
25
- };
26
18
  };
27
19
  export default _default;
@@ -15,13 +15,5 @@ declare const _default: {
15
15
  restore: string;
16
16
  close: string;
17
17
  };
18
- editor: {
19
- placeholder: string;
20
- bold: string;
21
- italic: string;
22
- code: string;
23
- link: string;
24
- image: string;
25
- };
26
18
  };
27
19
  export default _default;