@rimori/react-client 0.4.9 → 0.4.10-next.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/dist/components/ai/Assistant.js +2 -2
- package/dist/components/audio/Playbutton.js +6 -2
- package/dist/components/editor/ImageUploadExtension.d.ts +13 -0
- package/dist/components/editor/ImageUploadExtension.js +93 -0
- package/dist/components/editor/MarkdownEditor.d.ts +47 -0
- package/dist/components/editor/MarkdownEditor.js +207 -0
- package/dist/components/editor/imageUtils.d.ts +10 -0
- package/dist/components/editor/imageUtils.js +52 -0
- package/dist/hooks/I18nHooks.js +3 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/style.css +59 -74
- package/dist/style.css.map +1 -1
- package/package.json +17 -5
- package/src/components/ai/Assistant.tsx +2 -2
- package/src/components/audio/Playbutton.tsx +7 -2
- package/src/components/editor/ImageUploadExtension.ts +88 -0
- package/src/components/editor/MarkdownEditor.tsx +621 -0
- package/src/components/editor/imageUtils.ts +58 -0
- package/src/hooks/I18nHooks.ts +3 -1
- package/src/index.ts +3 -0
- package/src/style.scss +58 -82
package/src/style.scss
CHANGED
|
@@ -7,130 +7,106 @@ dialog::backdrop {
|
|
|
7
7
|
background: transparent;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
/* Tiptap editor content styles */
|
|
10
11
|
.tiptap {
|
|
11
|
-
|
|
12
|
-
padding-left: 7px;
|
|
13
|
-
/* min-height: 300px; */
|
|
14
|
-
|
|
15
|
-
&:focus-visible {
|
|
16
|
-
outline: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
h1,
|
|
20
|
-
h2,
|
|
21
|
-
h3,
|
|
22
|
-
h4,
|
|
23
|
-
h5,
|
|
24
|
-
h6 {
|
|
25
|
-
@apply font-bold;
|
|
26
|
-
margin-bottom: 1rem;
|
|
27
|
-
}
|
|
12
|
+
@apply focus:outline-none;
|
|
28
13
|
|
|
29
14
|
h1 {
|
|
30
|
-
@apply text-4xl;
|
|
15
|
+
@apply text-4xl font-bold mt-6 mb-3 first:mt-0;
|
|
31
16
|
}
|
|
32
17
|
|
|
33
18
|
h2 {
|
|
34
|
-
@apply text-3xl;
|
|
19
|
+
@apply text-3xl font-semibold mt-5 mb-2 first:mt-0;
|
|
35
20
|
}
|
|
36
21
|
|
|
37
22
|
h3 {
|
|
38
|
-
@apply text-2xl;
|
|
23
|
+
@apply text-2xl font-semibold mt-4 mb-2 first:mt-0;
|
|
39
24
|
}
|
|
40
25
|
|
|
41
|
-
|
|
42
|
-
@apply text-
|
|
26
|
+
blockquote {
|
|
27
|
+
@apply border-l-4 border-primary/30 pl-4 py-1 my-3 text-muted-foreground italic;
|
|
43
28
|
}
|
|
44
29
|
|
|
45
|
-
|
|
46
|
-
@apply text-
|
|
30
|
+
pre {
|
|
31
|
+
@apply bg-muted rounded-lg p-4 my-3 overflow-x-auto text-sm font-mono;
|
|
47
32
|
}
|
|
48
33
|
|
|
49
|
-
|
|
50
|
-
@apply text-
|
|
34
|
+
code {
|
|
35
|
+
@apply bg-muted px-1.5 py-0.5 rounded text-sm font-mono;
|
|
51
36
|
}
|
|
52
37
|
|
|
53
|
-
|
|
54
|
-
@apply
|
|
38
|
+
pre code {
|
|
39
|
+
@apply bg-transparent p-0;
|
|
55
40
|
}
|
|
56
41
|
|
|
57
|
-
|
|
58
|
-
@apply
|
|
59
|
-
text-decoration: none;
|
|
42
|
+
hr {
|
|
43
|
+
@apply border-border my-6;
|
|
60
44
|
}
|
|
61
45
|
|
|
62
|
-
a
|
|
63
|
-
@apply underline;
|
|
46
|
+
a {
|
|
47
|
+
@apply text-primary underline underline-offset-2;
|
|
64
48
|
}
|
|
65
49
|
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
/* Basic editor styles */
|
|
51
|
+
:first-child {
|
|
52
|
+
margin-top: 0;
|
|
53
|
+
}
|
|
68
54
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
55
|
+
li {
|
|
56
|
+
@apply mb-1;
|
|
72
57
|
}
|
|
73
58
|
|
|
74
|
-
|
|
75
|
-
@apply list-
|
|
59
|
+
ul {
|
|
60
|
+
@apply list-disc list-inside dark:text-white pl-3 [&_p]:inline m-0;
|
|
76
61
|
|
|
77
|
-
|
|
78
|
-
@apply
|
|
62
|
+
p {
|
|
63
|
+
@apply m-0;
|
|
79
64
|
}
|
|
80
|
-
}
|
|
81
65
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
li {
|
|
67
|
+
@apply m-0;
|
|
68
|
+
}
|
|
85
69
|
}
|
|
86
70
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
71
|
+
ol {
|
|
72
|
+
@apply list-decimal pl-7 m-0;
|
|
90
73
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
white-space: pre-wrap;
|
|
95
|
-
word-wrap: break-word;
|
|
96
|
-
}
|
|
74
|
+
p {
|
|
75
|
+
@apply m-0;
|
|
76
|
+
}
|
|
97
77
|
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
li {
|
|
79
|
+
@apply m-0;
|
|
80
|
+
}
|
|
100
81
|
}
|
|
101
82
|
|
|
83
|
+
/* Table-specific styling */
|
|
102
84
|
table {
|
|
103
|
-
@apply
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
th,
|
|
107
|
-
td {
|
|
108
|
-
@apply border px-4 py-2 text-left;
|
|
109
|
-
}
|
|
85
|
+
@apply border-collapse m-0 overflow-hidden w-full mb-1;
|
|
110
86
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
87
|
+
td,
|
|
88
|
+
th {
|
|
89
|
+
@apply dark:border-gray-700 border;
|
|
90
|
+
@apply mb-0 align-baseline pl-1.5;
|
|
114
91
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@media (max-width: 768px) {
|
|
120
|
-
h1 {
|
|
121
|
-
@apply text-3xl;
|
|
92
|
+
p {
|
|
93
|
+
@apply mb-0;
|
|
94
|
+
}
|
|
122
95
|
}
|
|
123
96
|
|
|
124
|
-
|
|
125
|
-
@apply
|
|
97
|
+
th {
|
|
98
|
+
/* @apply bg-gray-500; */
|
|
99
|
+
@apply font-bold text-left;
|
|
126
100
|
}
|
|
101
|
+
}
|
|
127
102
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
103
|
+
.tableWrapper {
|
|
104
|
+
margin: 1.5rem 0;
|
|
105
|
+
@apply overflow-x-auto;
|
|
106
|
+
}
|
|
131
107
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
108
|
+
&.resize-cursor {
|
|
109
|
+
@apply cursor-ew-resize;
|
|
110
|
+
cursor: col-resize;
|
|
135
111
|
}
|
|
136
112
|
}
|