@haklex/rich-compose 0.18.0 → 0.21.1
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/core.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/litexml-html-preview-client.css +13 -81
- package/dist/litexml-html-preview-client.js +38915 -11785
- package/dist/{module-DR6Bi8wl.js → module-7aXXh4ho.js} +1 -1
- package/dist/{module-CO3tw31M.js → module-BVnJlh0l.js} +1 -1
- package/dist/{module-B17tF-0X.js → module-DpXDKeCg.js} +1 -1
- package/dist/{module-CuTCGzWZ.js → module-cSMHWB1W.js} +1 -1
- package/dist/modules/alert/edit.mjs +1 -1
- package/dist/modules/alert/index.mjs +1 -1
- package/dist/modules/banner/edit.mjs +1 -1
- package/dist/modules/banner/index.mjs +1 -1
- package/dist/modules/chat/edit.mjs +1 -1
- package/dist/modules/chat/index.mjs +1 -1
- package/dist/modules/code-block/edit.mjs +1 -1
- package/dist/modules/code-block/index.mjs +1 -1
- package/dist/modules/code-snippet/edit.mjs +1 -1
- package/dist/modules/code-snippet/index.mjs +1 -1
- package/dist/modules/embed/edit.mjs +1 -1
- package/dist/modules/embed/index.mjs +1 -1
- package/dist/modules/excalidraw/edit.mjs +1 -1
- package/dist/modules/excalidraw/index.mjs +1 -1
- package/dist/modules/gallery/edit.mjs +1 -1
- package/dist/modules/gallery/index.mjs +2 -2
- package/dist/modules/gallery/renderer.mjs +1 -1
- package/dist/modules/image/edit.mjs +1 -1
- package/dist/modules/image/index.mjs +2 -2
- package/dist/modules/image/renderer.mjs +1 -1
- package/dist/modules/link-card/edit.mjs +1 -1
- package/dist/modules/link-card/index.mjs +1 -1
- package/dist/modules/mention/edit.mjs +1 -1
- package/dist/modules/mention/index.mjs +1 -1
- package/dist/modules/mermaid/edit.mjs +1 -1
- package/dist/modules/mermaid/index.mjs +1 -1
- package/dist/modules/nested-doc/edit.mjs +1 -1
- package/dist/modules/nested-doc/index.mjs +1 -1
- package/dist/modules/poll/edit.mjs +1 -1
- package/dist/modules/poll/index.mjs +1 -1
- package/dist/modules/ruby/edit.mjs +1 -1
- package/dist/modules/ruby/index.mjs +1 -1
- package/dist/modules/video/edit.mjs +1 -1
- package/dist/modules/video/index.mjs +1 -1
- package/dist/{renderer-CcDx_xAp.js → renderer-BDK0TrpM.js} +1 -1
- package/dist/{renderer-CTwQv2Bx.js → renderer-YcJvVUms.js} +1 -1
- package/dist/renderer.mjs +16 -16
- package/dist/style/alert.css +1 -1
- package/dist/style/banner.css +1 -1
- package/dist/style/chat.css +1 -1
- package/dist/style/code-block.css +1 -1
- package/dist/style/code-snippet.css +1 -1
- package/dist/style/embed.css +1 -1
- package/dist/style/excalidraw.css +1 -1
- package/dist/style/foundation.css +2 -2
- package/dist/style/gallery.css +1 -1
- package/dist/style/image.css +1 -1
- package/dist/style/katex.css +1 -1
- package/dist/style/link-card.css +1 -1
- package/dist/style/mention.css +1 -1
- package/dist/style/mermaid.css +1 -1
- package/dist/style/nested-doc.css +1 -1
- package/dist/style/poll.css +1 -1
- package/dist/style/ruby.css +1 -1
- package/dist/style/video.css +1 -1
- package/dist/style.css +19 -19
- package/package.json +29 -29
- /package/dist/{compose-B17i60Ps.js → compose-CCyeRK8c.js} +0 -0
- /package/dist/{configurable-module-CjMPCchc.js → configurable-module-Bur4JaI3.js} +0 -0
- /package/dist/{module-qqU83gqT.js → module-B-e-0OeP.js} +0 -0
- /package/dist/{module-D09RA7Ol.js → module-B0p3y6_-.js} +0 -0
- /package/dist/{module-CDyJH0rd.js → module-Bik_qOoy.js} +0 -0
- /package/dist/{module-DwcCrpnL.js → module-C3Li1aCW.js} +0 -0
- /package/dist/{module-D0xDMNQT.js → module-CWEnhSrZ.js} +0 -0
- /package/dist/{module-C37dXVWD.js → module-CjiwNtYj.js} +0 -0
- /package/dist/{module-DMA99llb.js → module-CvVXsc8m.js} +0 -0
- /package/dist/{module-BcR1wcLK.js → module-D1w72FNW.js} +0 -0
- /package/dist/{module-BdIPrsz-.js → module-D4mpXQAA.js} +0 -0
- /package/dist/{module-DknGw06N.js → module-DkC6sHpj.js} +0 -0
- /package/dist/{module-CQ2lzhu7.js → module-DxMbBHiD.js} +0 -0
- /package/dist/{module-D8r7Lehc.js → module-RzKqsng0.js} +0 -0
package/dist/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RichRenderer, i as mergeModules, n as wrapLazy, r as dedupNodes, t as composeRenderer } from "./compose-
|
|
1
|
+
import { a as RichRenderer, i as mergeModules, n as wrapLazy, r as dedupNodes, t as composeRenderer } from "./compose-CCyeRK8c.js";
|
|
2
2
|
export { RichRenderer, composeRenderer, dedupNodes, mergeModules, wrapLazy };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as RichRenderer, i as mergeModules, n as wrapLazy, r as dedupNodes, t as composeRenderer } from "./compose-
|
|
2
|
-
import { t as defineConfigurableModule } from "./configurable-module-
|
|
1
|
+
import { a as RichRenderer, i as mergeModules, n as wrapLazy, r as dedupNodes, t as composeRenderer } from "./compose-CCyeRK8c.js";
|
|
2
|
+
import { t as defineConfigurableModule } from "./configurable-module-Bur4JaI3.js";
|
|
3
3
|
import { Fragment, memo, useCallback, useMemo } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { NestedContentRendererProvider, RichEditor } from "@haklex/rich-editor";
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
--rc-radius-md: 8px;
|
|
52
52
|
--rc-radius-lg: 12px;
|
|
53
53
|
}
|
|
54
|
-
:root.dark {
|
|
54
|
+
:root.dark, [data-theme="dark"] {
|
|
55
55
|
--rc-text: #fafafa;
|
|
56
56
|
--rc-text-secondary: #a3a3a3;
|
|
57
57
|
--rc-text-tertiary: #737373;
|
|
@@ -77,85 +77,9 @@
|
|
|
77
77
|
--rc-alert-tip: #54da48;
|
|
78
78
|
--rc-alert-caution: #e16973;
|
|
79
79
|
--rc-alert-important: #9966e0;
|
|
80
|
-
--rc-max-width: 700px;
|
|
81
|
-
--rc-shadow-top-bar: 0 8px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
82
|
-
--rc-shadow-modal: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.35);
|
|
83
|
-
--rc-shadow-menu: 0 1px 4px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.4);
|
|
84
|
-
--rc-space-xs: 4px;
|
|
85
|
-
--rc-space-sm: 8px;
|
|
86
|
-
--rc-space-md: 16px;
|
|
87
|
-
--rc-space-lg: 24px;
|
|
88
|
-
--rc-space-xl: 32px;
|
|
89
|
-
--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;
|
|
90
|
-
--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;
|
|
91
|
-
--rc-font-family-kai: "楷体", KaiTi, STKaiti, "Kaiti SC", "LXGW WenKai", "霞鹜文楷", "Noto Serif CJK SC", serif;
|
|
92
|
-
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
93
|
-
--rc-font-size-2xs: 0.625em;
|
|
94
|
-
--rc-font-size-xs: 0.75em;
|
|
95
|
-
--rc-font-size-sm: 0.8125em;
|
|
96
|
-
--rc-font-size-md: 0.875em;
|
|
97
|
-
--rc-font-size-lg: 1.25em;
|
|
98
|
-
--rc-font-size-base: 16px;
|
|
99
|
-
--rc-font-size-small: 14px;
|
|
100
|
-
--rc-line-height: 1.7;
|
|
101
|
-
--rc-line-height-tight: 1.4;
|
|
102
|
-
--rc-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;
|
|
103
|
-
--rc-radius-sm: 4px;
|
|
104
|
-
--rc-radius-md: 8px;
|
|
105
|
-
--rc-radius-lg: 12px;
|
|
106
|
-
}
|
|
107
|
-
[data-theme="dark"] {
|
|
108
|
-
--rc-text: #fafafa;
|
|
109
|
-
--rc-text-secondary: #a3a3a3;
|
|
110
|
-
--rc-text-tertiary: #737373;
|
|
111
|
-
--rc-text-quaternary: #525252;
|
|
112
|
-
--rc-bg: #0a0a0a;
|
|
113
|
-
--rc-bg-secondary: #171717;
|
|
114
|
-
--rc-bg-tertiary: #262626;
|
|
115
|
-
--rc-fill: #2a2a2a;
|
|
116
|
-
--rc-fill-secondary: #222222;
|
|
117
|
-
--rc-fill-tertiary: #1a1a1a;
|
|
118
|
-
--rc-fill-quaternary: #141414;
|
|
119
|
-
--rc-border: #262626;
|
|
120
|
-
--rc-accent: #60a5fa;
|
|
121
|
-
--rc-accent-light: #60a5fa20;
|
|
122
|
-
--rc-link: #60a5fa;
|
|
123
|
-
--rc-code-text: #d4d4d4;
|
|
124
|
-
--rc-code-bg: #262626;
|
|
125
|
-
--rc-hr-border: #262626;
|
|
126
|
-
--rc-quote-border: #60a5fa;
|
|
127
|
-
--rc-quote-bg: #262626;
|
|
128
|
-
--rc-alert-info: #7db9e5;
|
|
129
|
-
--rc-alert-warning: #da864a;
|
|
130
|
-
--rc-alert-tip: #54da48;
|
|
131
|
-
--rc-alert-caution: #e16973;
|
|
132
|
-
--rc-alert-important: #9966e0;
|
|
133
|
-
--rc-max-width: 700px;
|
|
134
80
|
--rc-shadow-top-bar: 0 8px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
135
81
|
--rc-shadow-modal: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.35);
|
|
136
82
|
--rc-shadow-menu: 0 1px 4px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.4);
|
|
137
|
-
--rc-space-xs: 4px;
|
|
138
|
-
--rc-space-sm: 8px;
|
|
139
|
-
--rc-space-md: 16px;
|
|
140
|
-
--rc-space-lg: 24px;
|
|
141
|
-
--rc-space-xl: 32px;
|
|
142
|
-
--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;
|
|
143
|
-
--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;
|
|
144
|
-
--rc-font-family-kai: "楷体", KaiTi, STKaiti, "Kaiti SC", "LXGW WenKai", "霞鹜文楷", "Noto Serif CJK SC", serif;
|
|
145
|
-
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
146
|
-
--rc-font-size-2xs: 0.625em;
|
|
147
|
-
--rc-font-size-xs: 0.75em;
|
|
148
|
-
--rc-font-size-sm: 0.8125em;
|
|
149
|
-
--rc-font-size-md: 0.875em;
|
|
150
|
-
--rc-font-size-lg: 1.25em;
|
|
151
|
-
--rc-font-size-base: 16px;
|
|
152
|
-
--rc-font-size-small: 14px;
|
|
153
|
-
--rc-line-height: 1.7;
|
|
154
|
-
--rc-line-height-tight: 1.4;
|
|
155
|
-
--rc-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;
|
|
156
|
-
--rc-radius-sm: 4px;
|
|
157
|
-
--rc-radius-md: 8px;
|
|
158
|
-
--rc-radius-lg: 12px;
|
|
159
83
|
}
|
|
160
84
|
._1tdqahx0 {
|
|
161
85
|
--rc-text: #000;
|
|
@@ -2312,6 +2236,11 @@
|
|
|
2312
2236
|
pointer-events: none;
|
|
2313
2237
|
color: var(--rc-text-secondary);
|
|
2314
2238
|
}._17jtiqt0 {
|
|
2239
|
+
position: fixed;
|
|
2240
|
+
z-index: 50;
|
|
2241
|
+
pointer-events: none;
|
|
2242
|
+
}
|
|
2243
|
+
._17jtiqt1 {
|
|
2315
2244
|
position: absolute;
|
|
2316
2245
|
bottom: 4px;
|
|
2317
2246
|
right: 8px;
|
|
@@ -2320,7 +2249,7 @@
|
|
|
2320
2249
|
justify-content: flex-end;
|
|
2321
2250
|
pointer-events: auto;
|
|
2322
2251
|
}
|
|
2323
|
-
.
|
|
2252
|
+
._17jtiqt2 {
|
|
2324
2253
|
appearance: none;
|
|
2325
2254
|
background: transparent;
|
|
2326
2255
|
border: none;
|
|
@@ -2338,14 +2267,14 @@
|
|
|
2338
2267
|
outline: none;
|
|
2339
2268
|
transition: border-color 120ms ease, background-color 120ms ease;
|
|
2340
2269
|
}
|
|
2341
|
-
.
|
|
2270
|
+
._17jtiqt2::placeholder {
|
|
2342
2271
|
color: var(--rc-text-quaternary);
|
|
2343
2272
|
font-style: italic;
|
|
2344
2273
|
}
|
|
2345
|
-
.
|
|
2274
|
+
._17jtiqt2:hover {
|
|
2346
2275
|
border-bottom-color: var(--rc-text-quaternary);
|
|
2347
2276
|
}
|
|
2348
|
-
.
|
|
2277
|
+
._17jtiqt2:focus {
|
|
2349
2278
|
border-bottom-color: var(--rc-text-tertiary);
|
|
2350
2279
|
}.m0xmg20 {
|
|
2351
2280
|
overflow: auto;
|
|
@@ -3118,6 +3047,9 @@
|
|
|
3118
3047
|
border-radius: var(--rc-radius-sm);
|
|
3119
3048
|
background-color: var(--rc-quote-border);
|
|
3120
3049
|
}
|
|
3050
|
+
.gxfui1s[data-attribution-panel] {
|
|
3051
|
+
padding-bottom: calc(var(--rc-space-sm) + 24px);
|
|
3052
|
+
}
|
|
3121
3053
|
.gxfui1t {
|
|
3122
3054
|
display: block;
|
|
3123
3055
|
text-align: right;
|