@reacteditor/core 0.0.1-alpha.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.
- package/README.md +85 -0
- package/dist/Editor-GBV2O5RD.css +415 -0
- package/dist/Editor-IKMJILGR.mjs +204 -0
- package/dist/Render-EFT7YD2C.css +103 -0
- package/dist/Render-VDC7AEQK.mjs +55 -0
- package/dist/actions-BCDhqbeL.d.mts +849 -0
- package/dist/actions-BCDhqbeL.d.ts +849 -0
- package/dist/chunk-2YLS65V2.mjs +103 -0
- package/dist/chunk-6B2Q5R3C.mjs +53 -0
- package/dist/chunk-DXGQXXQG.mjs +63 -0
- package/dist/chunk-F7S5S6I2.mjs +114 -0
- package/dist/chunk-GAUBBDIR.mjs +463 -0
- package/dist/chunk-GUMYXUO3.mjs +33 -0
- package/dist/chunk-M6W7YEVX.mjs +95 -0
- package/dist/chunk-MFI3RDA4.mjs +11 -0
- package/dist/chunk-QNHSXCWU.mjs +8692 -0
- package/dist/chunk-SURZYH7D.mjs +1726 -0
- package/dist/chunk-V2OPYD42.mjs +708 -0
- package/dist/chunk-VD3EVRUF.mjs +476 -0
- package/dist/chunk-VOLQMQPK.mjs +146 -0
- package/dist/chunk-VUEM62JF.mjs +523 -0
- package/dist/chunk-Y2EFNT5P.mjs +108 -0
- package/dist/full-ELX6RALJ.css +311 -0
- package/dist/full-OBTPW7TC.mjs +93 -0
- package/dist/index-ComBHfdn.d.ts +117 -0
- package/dist/index-DVwiIwYU.d.mts +117 -0
- package/dist/index.css +3033 -0
- package/dist/index.d.mts +396 -0
- package/dist/index.d.ts +396 -0
- package/dist/index.js +14688 -0
- package/dist/index.mjs +87 -0
- package/dist/internal.d.mts +27 -0
- package/dist/internal.d.ts +27 -0
- package/dist/internal.js +931 -0
- package/dist/internal.mjs +13 -0
- package/dist/loaded-35WC23HJ.mjs +60 -0
- package/dist/loaded-TBSVRJPY.css +90 -0
- package/dist/loaded-ULSROV73.mjs +57 -0
- package/dist/loaded-YYRJPIWZ.mjs +57 -0
- package/dist/no-external.css +3031 -0
- package/dist/no-external.d.mts +21 -0
- package/dist/no-external.d.ts +21 -0
- package/dist/no-external.js +14688 -0
- package/dist/no-external.mjs +87 -0
- package/dist/rsc.css +103 -0
- package/dist/rsc.d.mts +27 -0
- package/dist/rsc.d.ts +27 -0
- package/dist/rsc.js +1493 -0
- package/dist/rsc.mjs +148 -0
- package/dist/walk-tree-BPIigVTF.d.mts +29 -0
- package/dist/walk-tree-BZq1CPCH.d.ts +29 -0
- package/package.json +139 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AutoField,
|
|
3
|
+
Button,
|
|
4
|
+
ComponentList,
|
|
5
|
+
Drawer,
|
|
6
|
+
DropZone,
|
|
7
|
+
Editor,
|
|
8
|
+
FieldLabel,
|
|
9
|
+
Render,
|
|
10
|
+
blocksPlugin,
|
|
11
|
+
createUseEditor,
|
|
12
|
+
fieldsPlugin,
|
|
13
|
+
legacySideBarPlugin,
|
|
14
|
+
outlinePlugin,
|
|
15
|
+
overrideKeys,
|
|
16
|
+
pageMetadata,
|
|
17
|
+
registerOverlayPortal,
|
|
18
|
+
renderContext,
|
|
19
|
+
setDeep,
|
|
20
|
+
useEditor,
|
|
21
|
+
useGetEditor
|
|
22
|
+
} from "./chunk-QNHSXCWU.mjs";
|
|
23
|
+
import "./chunk-F7S5S6I2.mjs";
|
|
24
|
+
import {
|
|
25
|
+
migrate,
|
|
26
|
+
resolveAllData,
|
|
27
|
+
transformProps
|
|
28
|
+
} from "./chunk-VD3EVRUF.mjs";
|
|
29
|
+
import "./chunk-MFI3RDA4.mjs";
|
|
30
|
+
import {
|
|
31
|
+
Action,
|
|
32
|
+
ActionBar,
|
|
33
|
+
Group,
|
|
34
|
+
IconButton,
|
|
35
|
+
Label,
|
|
36
|
+
RichTextMenu,
|
|
37
|
+
Separator
|
|
38
|
+
} from "./chunk-V2OPYD42.mjs";
|
|
39
|
+
import "./chunk-6B2Q5R3C.mjs";
|
|
40
|
+
import "./chunk-DXGQXXQG.mjs";
|
|
41
|
+
import "./chunk-GUMYXUO3.mjs";
|
|
42
|
+
import "./chunk-SURZYH7D.mjs";
|
|
43
|
+
import "./chunk-VUEM62JF.mjs";
|
|
44
|
+
import "./chunk-VOLQMQPK.mjs";
|
|
45
|
+
import "./chunk-Y2EFNT5P.mjs";
|
|
46
|
+
import {
|
|
47
|
+
walkTree
|
|
48
|
+
} from "./chunk-GAUBBDIR.mjs";
|
|
49
|
+
import {
|
|
50
|
+
init_react_import
|
|
51
|
+
} from "./chunk-M6W7YEVX.mjs";
|
|
52
|
+
|
|
53
|
+
// bundle/no-external.ts
|
|
54
|
+
init_react_import();
|
|
55
|
+
export {
|
|
56
|
+
Action,
|
|
57
|
+
ActionBar,
|
|
58
|
+
AutoField,
|
|
59
|
+
Button,
|
|
60
|
+
ComponentList,
|
|
61
|
+
Drawer,
|
|
62
|
+
DropZone,
|
|
63
|
+
Editor,
|
|
64
|
+
FieldLabel,
|
|
65
|
+
Group,
|
|
66
|
+
IconButton,
|
|
67
|
+
Label,
|
|
68
|
+
Render,
|
|
69
|
+
RichTextMenu,
|
|
70
|
+
Separator,
|
|
71
|
+
blocksPlugin,
|
|
72
|
+
createUseEditor,
|
|
73
|
+
fieldsPlugin,
|
|
74
|
+
legacySideBarPlugin,
|
|
75
|
+
migrate,
|
|
76
|
+
outlinePlugin,
|
|
77
|
+
overrideKeys,
|
|
78
|
+
pageMetadata,
|
|
79
|
+
registerOverlayPortal,
|
|
80
|
+
renderContext,
|
|
81
|
+
resolveAllData,
|
|
82
|
+
setDeep,
|
|
83
|
+
transformProps,
|
|
84
|
+
useEditor,
|
|
85
|
+
useGetEditor,
|
|
86
|
+
walkTree
|
|
87
|
+
};
|
package/dist/rsc.css
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* css-module:/Users/rami/Documents/apps/frontend-react-editor/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
2
|
+
._RichTextEditor_1grt5_1 .ProseMirror {
|
|
3
|
+
white-space: pre-wrap;
|
|
4
|
+
word-wrap: break-word;
|
|
5
|
+
cursor: text;
|
|
6
|
+
outline: none;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
._RichTextEditor_1grt5_1 .rich-text * {
|
|
10
|
+
white-space: pre-wrap;
|
|
11
|
+
user-select: auto;
|
|
12
|
+
-webkit-user-select: auto;
|
|
13
|
+
}
|
|
14
|
+
._RichTextEditor_1grt5_1 .rich-text blockquote {
|
|
15
|
+
margin: 1em 0;
|
|
16
|
+
padding: 0 1em;
|
|
17
|
+
border-left: 4px solid var(--re-border-default);
|
|
18
|
+
}
|
|
19
|
+
._RichTextEditor_1grt5_1 .rich-text code {
|
|
20
|
+
background-color: var(--re-surface-sunken);
|
|
21
|
+
padding: 4px 8px;
|
|
22
|
+
border-radius: var(--re-radius-sm);
|
|
23
|
+
}
|
|
24
|
+
._RichTextEditor_1grt5_1 .rich-text p:empty::before {
|
|
25
|
+
content: "\a0";
|
|
26
|
+
}
|
|
27
|
+
._RichTextEditor_1grt5_1 .rich-text pre code {
|
|
28
|
+
display: block;
|
|
29
|
+
padding: 8px 12px;
|
|
30
|
+
}
|
|
31
|
+
._RichTextEditor_1grt5_1 .rich-text > *:first-child,
|
|
32
|
+
._RichTextEditor_1grt5_1 .ProseMirror > *:first-child,
|
|
33
|
+
._RichTextEditor_1grt5_1 .rich-text * p:first-of-type {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
}
|
|
36
|
+
._RichTextEditor_1grt5_1 .rich-text > *:last-child,
|
|
37
|
+
._RichTextEditor_1grt5_1 .ProseMirror > *:last-child,
|
|
38
|
+
._RichTextEditor_1grt5_1 .rich-text * p:last-of-type {
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
._RichTextEditor--editor_1grt5_50 {
|
|
42
|
+
background: var(--re-surface-panel);
|
|
43
|
+
border-width: 1px;
|
|
44
|
+
border-style: solid;
|
|
45
|
+
border-color: var(--re-border-default);
|
|
46
|
+
border-radius: var(--re-radius-md);
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
font-family: inherit;
|
|
51
|
+
font-size: var(--re-font-size-xxs);
|
|
52
|
+
resize: vertical;
|
|
53
|
+
text-align: initial;
|
|
54
|
+
transition: border-color var(--re-motion-fast) var(--re-ease), box-shadow var(--re-motion-fast) var(--re-ease);
|
|
55
|
+
width: 100%;
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
min-height: 128px;
|
|
58
|
+
}
|
|
59
|
+
._RichTextEditor--editor_1grt5_50 .rich-text {
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
}
|
|
62
|
+
._RichTextEditor--editor_1grt5_50 .rich-text:not(:has(.ProseMirror)),
|
|
63
|
+
._RichTextEditor--editor_1grt5_50 .rich-text .ProseMirror {
|
|
64
|
+
height: 100%;
|
|
65
|
+
padding: 12px 15px;
|
|
66
|
+
}
|
|
67
|
+
._RichTextEditor--editor_1grt5_50 .rich-text ul,
|
|
68
|
+
._RichTextEditor--editor_1grt5_50 .rich-text ol {
|
|
69
|
+
padding-left: 24px;
|
|
70
|
+
}
|
|
71
|
+
._RichTextEditor--editor_1grt5_50 .rich-text li {
|
|
72
|
+
line-height: 1.5;
|
|
73
|
+
}
|
|
74
|
+
._RichTextEditor--editor_1grt5_50 .rich-text p {
|
|
75
|
+
margin-block: 12px;
|
|
76
|
+
}
|
|
77
|
+
._RichTextEditor--editor_1grt5_50 .rich-text ul {
|
|
78
|
+
list-style: disc;
|
|
79
|
+
}
|
|
80
|
+
._RichTextEditor--editor_1grt5_50 .rich-text ol {
|
|
81
|
+
list-style: decimal;
|
|
82
|
+
}
|
|
83
|
+
._RichTextEditor--editor_1grt5_50:focus-within {
|
|
84
|
+
border-color: var(--re-accent);
|
|
85
|
+
outline: none;
|
|
86
|
+
box-shadow: var(--re-ring);
|
|
87
|
+
transition: none;
|
|
88
|
+
}
|
|
89
|
+
._RichTextEditor--editor_1grt5_50._RichTextEditor--disabled_1grt5_109 {
|
|
90
|
+
background: var(--re-surface-sunken);
|
|
91
|
+
}
|
|
92
|
+
._RichTextEditor_1grt5_1:not(:focus-within):not(._RichTextEditor--isActive_1grt5_113) .ProseMirror ::selection {
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
}
|
|
95
|
+
._RichTextEditor-menu_1grt5_119 {
|
|
96
|
+
border-bottom: 1px solid var(--re-border-subtle);
|
|
97
|
+
position: sticky;
|
|
98
|
+
top: 0;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
}
|
|
101
|
+
._RichTextEditor--disabled_1grt5_109 ._RichTextEditor-menu_1grt5_119 {
|
|
102
|
+
border-bottom: 1px solid var(--re-border-subtle);
|
|
103
|
+
}
|
package/dist/rsc.d.mts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-BCDhqbeL.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BPIigVTF.mjs';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@tiptap/react';
|
|
6
|
+
import '@tiptap/extension-blockquote';
|
|
7
|
+
import '@tiptap/extension-bold';
|
|
8
|
+
import '@tiptap/extension-code';
|
|
9
|
+
import '@tiptap/extension-code-block';
|
|
10
|
+
import '@tiptap/extension-hard-break';
|
|
11
|
+
import '@tiptap/extension-heading';
|
|
12
|
+
import '@tiptap/extension-horizontal-rule';
|
|
13
|
+
import '@tiptap/extension-italic';
|
|
14
|
+
import '@tiptap/extension-link';
|
|
15
|
+
import '@tiptap/extension-list';
|
|
16
|
+
import '@tiptap/extension-paragraph';
|
|
17
|
+
import '@tiptap/extension-strike';
|
|
18
|
+
import '@tiptap/extension-text-align';
|
|
19
|
+
import '@tiptap/extension-underline';
|
|
20
|
+
|
|
21
|
+
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
|
22
|
+
config: UserConfig;
|
|
23
|
+
data: G["UserData"];
|
|
24
|
+
metadata?: Metadata;
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
export { Render };
|
package/dist/rsc.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-BCDhqbeL.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BZq1CPCH.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@tiptap/react';
|
|
6
|
+
import '@tiptap/extension-blockquote';
|
|
7
|
+
import '@tiptap/extension-bold';
|
|
8
|
+
import '@tiptap/extension-code';
|
|
9
|
+
import '@tiptap/extension-code-block';
|
|
10
|
+
import '@tiptap/extension-hard-break';
|
|
11
|
+
import '@tiptap/extension-heading';
|
|
12
|
+
import '@tiptap/extension-horizontal-rule';
|
|
13
|
+
import '@tiptap/extension-italic';
|
|
14
|
+
import '@tiptap/extension-link';
|
|
15
|
+
import '@tiptap/extension-list';
|
|
16
|
+
import '@tiptap/extension-paragraph';
|
|
17
|
+
import '@tiptap/extension-strike';
|
|
18
|
+
import '@tiptap/extension-text-align';
|
|
19
|
+
import '@tiptap/extension-underline';
|
|
20
|
+
|
|
21
|
+
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
|
22
|
+
config: UserConfig;
|
|
23
|
+
data: G["UserData"];
|
|
24
|
+
metadata?: Metadata;
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
export { Render };
|