raydit-editor 0.0.12 → 0.0.14
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/index.css +1 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ProseMirror{outline:none;min-height:300px;line-height:1.6;font-size:16px}.ProseMirror p{margin:.4rem 0}.ProseMirror h1{font-size:1.875rem;font-weight:700;margin:1.2rem 0 .6rem}.ProseMirror h2{font-size:1.5rem;font-weight:600;margin:1rem 0 .5rem}.ProseMirror h3{font-size:1.25rem;font-weight:600;margin:.8rem 0 .4rem}.ProseMirror ul{list-style-type:disc;padding-left:1.5rem}.ProseMirror ol{list-style-type:decimal;padding-left:1.5rem}.ProseMirror li{margin:.25rem 0}.ProseMirror ul[data-type=taskList]{list-style:none;padding-left:0}.ProseMirror li[data-type=taskItem]{display:flex;align-items:flex-start}.ProseMirror li[data-type=taskItem]>label{margin-right:.5rem}.ProseMirror blockquote{border-left:4px solid #e5e7eb;padding-left:1rem;color:#4b5563;margin:.75rem 0}.ProseMirror code{background-color:#f3f4f6;padding:.15rem .3rem;border-radius:4px;font-size:.875rem}.ProseMirror pre{background:#0f172a;color:#e5e7eb;padding:1rem;border-radius:8px;overflow-x:auto;margin:.75rem 0}.ProseMirror pre code{background:none;padding:0;color:inherit}.ProseMirror table{border-collapse:collapse;width:100%;table-layout:fixed;margin:.75rem 0}.ProseMirror th,.ProseMirror td{border:1px solid #e5e7eb;padding:.5rem;vertical-align:top}.ProseMirror th{background-color:#f9fafb;font-weight:600}.ProseMirror td p,.ProseMirror th p{margin:0}.ProseMirror .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background-color:#3b82f6;pointer-events:none}.ProseMirror.resize-cursor{cursor:col-resize}.ProseMirror hr{border:none;border-top:1px solid #e5e7eb;margin:1.5rem 0}.mention{background-color:#eef2ff;color:#4338ca;padding:.1rem .4rem;border-radius:.375rem;font-weight:500}.ProseMirror a{color:#2563eb;text-decoration:underline}.ProseMirror img{max-width:100%;border-radius:8px;margin:.75rem 0}.ProseMirror ::selection{background:#c7d2fe}.ProseMirror table{border-collapse:collapse;width:100%;table-layout:fixed;margin:1rem 0}.ProseMirror th,.ProseMirror td{border:1px solid #e5e7eb;padding:8px;vertical-align:top;position:relative}.ProseMirror th{background-color:#f9fafb;font-weight:600}.ProseMirror .selectedCell{background:rgba(59,130,246,.08)}.ProseMirror .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background-color:#3b82f6;pointer-events:none}.ProseMirror table p{margin:0}.table-menu button{padding:4px 8px;border-radius:4px;font-size:12px}.table-menu button:hover{background:#f3f4f6}.ProseMirror ol{list-style-type:decimal;padding-left:1.5rem}.ProseMirror ol ol{list-style-type:lower-alpha}.ProseMirror ol ol ol{list-style-type:lower-roman}.ProseMirror ol ol ol ol{list-style-type:decimal}.ProseMirror li{margin:.25rem 0}.ProseMirror li>ol,.ProseMirror li>ul{margin-top:.25rem}.ProseMirror p{position:relative}.ProseMirror p.is-empty::before{content:attr(data-placeholder);color:#9ca3af;pointer-events:none;position:absolute;left:0;top:0;font-style:italic}.ProseMirror:not(.ProseMirror-focused) p.is-empty::before{content:""}.mention{color:#2563eb;background-color:#e0e7ff;padding:2px 6px;border-radius:6px;font-weight:500}.mention{color:#2563eb;cursor:pointer;border-radius:4px;padding:0 2px}.mention:hover{background:#eff6ff}.tiptap p.is-empty::before,.tiptap h1.is-empty::before,.tiptap h2.is-empty::before,.tiptap h3.is-empty::before{content:attr(data-placeholder);float:left;color:#9ca3af;pointer-events:none;height:0}.tiptap h1{border-left:3px solid rgba(0,0,0,0);padding-left:8px}.tiptap h1.is-active{border-left-color:#6366f1}.tiptap .is-empty::before{content:attr(data-placeholder);color:#9ca3af;float:left;pointer-events:none;height:0}.tiptap li.is-empty::before{position:absolute}ul[data-type=taskList]{list-style:none;padding-left:0}ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:.5rem}ul[data-type=taskList] li>label{flex-shrink:0;margin-top:.55rem;user-select:none}ul[data-type=taskList] li>label input[type=checkbox]{cursor:pointer;width:1rem;height:1rem}ul[data-type=taskList] li>div{flex:1}ul[data-type=taskList] ul[data-type=taskList]{margin:.5rem 0 0 1.5rem}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
interface RayditEditorProps {
|
|
4
4
|
content?: string;
|
|
5
5
|
onChange?: (html: string) => void;
|
|
6
6
|
onBlur?: (html: string) => void;
|
|
@@ -12,6 +12,6 @@ interface NotionEditorProps {
|
|
|
12
12
|
showToolbar?: boolean;
|
|
13
13
|
showTableControls?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
15
|
+
declare const RayditEditor: React.FC<RayditEditorProps>;
|
|
16
16
|
|
|
17
|
-
export {
|
|
17
|
+
export { RayditEditor, type RayditEditorProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
interface RayditEditorProps {
|
|
4
4
|
content?: string;
|
|
5
5
|
onChange?: (html: string) => void;
|
|
6
6
|
onBlur?: (html: string) => void;
|
|
@@ -12,6 +12,6 @@ interface NotionEditorProps {
|
|
|
12
12
|
showToolbar?: boolean;
|
|
13
13
|
showTableControls?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
15
|
+
declare const RayditEditor: React.FC<RayditEditorProps>;
|
|
16
16
|
|
|
17
|
-
export {
|
|
17
|
+
export { RayditEditor, type RayditEditorProps };
|
package/dist/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var TaskItem__default = /*#__PURE__*/_interopDefault(TaskItem);
|
|
|
38
38
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
39
39
|
var Suggestion__default = /*#__PURE__*/_interopDefault(Suggestion);
|
|
40
40
|
|
|
41
|
-
// src/
|
|
41
|
+
// src/RayditEditor.tsx
|
|
42
42
|
|
|
43
43
|
// node_modules/prosemirror-model/dist/index.js
|
|
44
44
|
function findDiffStart(a, b, pos) {
|
|
@@ -5478,7 +5478,7 @@ var DynamicPlaceholder = Placeholder__default.default.configure({
|
|
|
5478
5478
|
showOnlyCurrent: true,
|
|
5479
5479
|
includeChildren: false
|
|
5480
5480
|
});
|
|
5481
|
-
var
|
|
5481
|
+
var RayditEditor = ({
|
|
5482
5482
|
content = "",
|
|
5483
5483
|
onChange,
|
|
5484
5484
|
onBlur,
|
|
@@ -5605,8 +5605,8 @@ var NotionEditor = ({
|
|
|
5605
5605
|
)
|
|
5606
5606
|
] });
|
|
5607
5607
|
};
|
|
5608
|
-
var
|
|
5608
|
+
var RayditEditor_default = RayditEditor;
|
|
5609
5609
|
|
|
5610
|
-
exports.
|
|
5610
|
+
exports.RayditEditor = RayditEditor_default;
|
|
5611
5611
|
//# sourceMappingURL=index.js.map
|
|
5612
5612
|
//# sourceMappingURL=index.js.map
|