@haklex/rich-compose 0.24.0 → 0.25.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 +1 -1
- package/dist/editor.d.ts +2 -1
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.mjs +3 -1
- package/dist/litexml-html-preview-client.css +122 -0
- package/dist/litexml-html-preview-client.js +402 -139
- package/dist/module-Db26fECJ.js +26 -0
- package/dist/modules/dynamic/edit.d.ts +3 -0
- package/dist/modules/dynamic/edit.d.ts.map +1 -0
- package/dist/modules/dynamic/edit.mjs +12 -0
- package/dist/modules/dynamic/index.d.ts +7 -0
- package/dist/modules/dynamic/index.d.ts.map +1 -0
- package/dist/modules/dynamic/index.mjs +3 -0
- package/dist/modules/dynamic/module-config.d.ts +3 -0
- package/dist/modules/dynamic/module-config.d.ts.map +1 -0
- package/dist/modules/dynamic/module.d.ts +2 -0
- package/dist/modules/dynamic/module.d.ts.map +1 -0
- package/dist/modules/dynamic/node.d.ts +6 -0
- package/dist/modules/dynamic/node.d.ts.map +1 -0
- package/dist/modules/dynamic/node.mjs +5 -0
- package/dist/modules/dynamic/renderer.d.ts +4 -0
- package/dist/modules/dynamic/renderer.d.ts.map +1 -0
- package/dist/modules/dynamic/types.d.ts +4 -0
- package/dist/modules/dynamic/types.d.ts.map +1 -0
- package/dist/renderer.d.ts +2 -1
- package/dist/renderer.d.ts.map +1 -1
- package/dist/renderer.mjs +3 -1
- package/package.json +35 -22
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ pnpm add @haklex/rich-compose
|
|
|
23
23
|
| Package | Version |
|
|
24
24
|
| ---------------------------- | --------- |
|
|
25
25
|
| `react` / `react-dom` | `>=19` |
|
|
26
|
-
| `lexical` / `@lexical/react` | `^0.
|
|
26
|
+
| `lexical` / `@lexical/react` | `^0.45.0` |
|
|
27
27
|
| `@haklex/rich-editor` | workspace |
|
|
28
28
|
|
|
29
29
|
Per-module upstream packages (`@haklex/rich-ext-*`, `@haklex/rich-renderer-*`) are optional peers — install only those you compose.
|
package/dist/editor.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { bannerEditModule } from './modules/banner/edit';
|
|
|
3
3
|
import { chatEditModule } from './modules/chat/edit';
|
|
4
4
|
import { codeBlockEditModule } from './modules/code-block/edit';
|
|
5
5
|
import { codeSnippetEditModule } from './modules/code-snippet/edit';
|
|
6
|
+
import { dynamicEditModule } from './modules/dynamic/edit';
|
|
6
7
|
import { embedEditModule } from './modules/embed/edit';
|
|
7
8
|
import { excalidrawEditModule } from './modules/excalidraw/edit';
|
|
8
9
|
import { galleryEditModule } from './modules/gallery/edit';
|
|
@@ -15,6 +16,6 @@ import { nestedDocEditModule } from './modules/nested-doc/edit';
|
|
|
15
16
|
import { pollEditModule } from './modules/poll/edit';
|
|
16
17
|
import { rubyEditModule } from './modules/ruby/edit';
|
|
17
18
|
import { videoEditModule } from './modules/video/edit';
|
|
18
|
-
export { alertEditModule, bannerEditModule, chatEditModule, codeBlockEditModule, codeSnippetEditModule, embedEditModule, excalidrawEditModule, galleryEditModule, imageEditModule, katexEditModule, linkCardEditModule, mentionEditModule, mermaidEditModule, nestedDocEditModule, pollEditModule, rubyEditModule, videoEditModule, };
|
|
19
|
+
export { alertEditModule, bannerEditModule, chatEditModule, codeBlockEditModule, codeSnippetEditModule, dynamicEditModule, embedEditModule, excalidrawEditModule, galleryEditModule, imageEditModule, katexEditModule, linkCardEditModule, mentionEditModule, mermaidEditModule, nestedDocEditModule, pollEditModule, rubyEditModule, videoEditModule, };
|
|
19
20
|
export declare const allEditorModules: import('./core').RichEditorModule[];
|
|
20
21
|
//# sourceMappingURL=editor.d.ts.map
|
package/dist/editor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAA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./modules/banner/edit.mjs";
|
|
|
3
3
|
import { chatEditModule } from "./modules/chat/edit.mjs";
|
|
4
4
|
import { codeBlockEditModule } from "./modules/code-block/edit.mjs";
|
|
5
5
|
import { codeSnippetEditModule } from "./modules/code-snippet/edit.mjs";
|
|
6
|
+
import { dynamicEditModule } from "./modules/dynamic/edit.mjs";
|
|
6
7
|
import { embedEditModule } from "./modules/embed/edit.mjs";
|
|
7
8
|
import { excalidrawEditModule } from "./modules/excalidraw/edit.mjs";
|
|
8
9
|
import { galleryEditModule } from "./modules/gallery/edit.mjs";
|
|
@@ -22,6 +23,7 @@ var allEditorModules = [
|
|
|
22
23
|
chatEditModule,
|
|
23
24
|
codeBlockEditModule,
|
|
24
25
|
codeSnippetEditModule,
|
|
26
|
+
dynamicEditModule,
|
|
25
27
|
embedEditModule,
|
|
26
28
|
excalidrawEditModule,
|
|
27
29
|
galleryEditModule,
|
|
@@ -36,4 +38,4 @@ var allEditorModules = [
|
|
|
36
38
|
videoEditModule
|
|
37
39
|
];
|
|
38
40
|
//#endregion
|
|
39
|
-
export { alertEditModule, allEditorModules, bannerEditModule, chatEditModule, codeBlockEditModule, codeSnippetEditModule, embedEditModule, excalidrawEditModule, galleryEditModule, imageEditModule, katexEditModule, linkCardEditModule, mentionEditModule, mermaidEditModule, nestedDocEditModule, pollEditModule, rubyEditModule, videoEditModule };
|
|
41
|
+
export { alertEditModule, allEditorModules, bannerEditModule, chatEditModule, codeBlockEditModule, codeSnippetEditModule, dynamicEditModule, embedEditModule, excalidrawEditModule, galleryEditModule, imageEditModule, katexEditModule, linkCardEditModule, mentionEditModule, mermaidEditModule, nestedDocEditModule, pollEditModule, rubyEditModule, videoEditModule };
|
|
@@ -6312,6 +6312,128 @@ figure.rich-image[data-layout="float-right"] {
|
|
|
6312
6312
|
.rich-banner-caution {
|
|
6313
6313
|
background-color: color-mix(in srgb, var(--rc-alert-caution) 8%, transparent);
|
|
6314
6314
|
border-color: color-mix(in srgb, var(--rc-alert-caution) 30%, transparent);
|
|
6315
|
+
}._17z9n250 {
|
|
6316
|
+
position: relative;
|
|
6317
|
+
margin: 1.25rem 0;
|
|
6318
|
+
}
|
|
6319
|
+
._17z9n251 {
|
|
6320
|
+
width: 100%;
|
|
6321
|
+
}
|
|
6322
|
+
._17z9n252 {
|
|
6323
|
+
position: absolute;
|
|
6324
|
+
inset: 0;
|
|
6325
|
+
display: flex;
|
|
6326
|
+
flex-direction: column;
|
|
6327
|
+
align-items: center;
|
|
6328
|
+
justify-content: center;
|
|
6329
|
+
gap: 8px;
|
|
6330
|
+
border-radius: var(--rc-radius-md);
|
|
6331
|
+
border: 1px dashed var(--rc-border);
|
|
6332
|
+
background-color: var(--rc-bg-secondary);
|
|
6333
|
+
color: var(--rc-text-tertiary);
|
|
6334
|
+
font-family: var(--rc-font-family-sans);
|
|
6335
|
+
font-size: var(--rc-font-size-sm);
|
|
6336
|
+
}
|
|
6337
|
+
._17z9n253 {
|
|
6338
|
+
appearance: none;
|
|
6339
|
+
border: 1px solid var(--rc-border);
|
|
6340
|
+
border-radius: var(--rc-radius-sm);
|
|
6341
|
+
background-color: var(--rc-bg);
|
|
6342
|
+
color: var(--rc-text-secondary);
|
|
6343
|
+
font-size: var(--rc-font-size-sm);
|
|
6344
|
+
padding: 4px 12px;
|
|
6345
|
+
cursor: pointer;
|
|
6346
|
+
}
|
|
6347
|
+
._17z9n253:hover {
|
|
6348
|
+
background-color: var(--rc-fill-secondary);
|
|
6349
|
+
}
|
|
6350
|
+
._17z9n254 {
|
|
6351
|
+
max-width: 80%;
|
|
6352
|
+
overflow: hidden;
|
|
6353
|
+
text-overflow: ellipsis;
|
|
6354
|
+
white-space: nowrap;
|
|
6355
|
+
font-family: var(--rc-font-mono);
|
|
6356
|
+
font-size: var(--rc-font-size-xs);
|
|
6357
|
+
color: var(--rc-text-quaternary);
|
|
6358
|
+
}
|
|
6359
|
+
._17z9n255 {
|
|
6360
|
+
position: absolute;
|
|
6361
|
+
top: 8px;
|
|
6362
|
+
right: 8px;
|
|
6363
|
+
z-index: 1;
|
|
6364
|
+
appearance: none;
|
|
6365
|
+
display: inline-flex;
|
|
6366
|
+
align-items: center;
|
|
6367
|
+
justify-content: center;
|
|
6368
|
+
width: 28px;
|
|
6369
|
+
height: 28px;
|
|
6370
|
+
border: 1px solid var(--rc-border);
|
|
6371
|
+
border-radius: var(--rc-radius-sm);
|
|
6372
|
+
background-color: var(--rc-bg);
|
|
6373
|
+
color: var(--rc-text-secondary);
|
|
6374
|
+
cursor: pointer;
|
|
6375
|
+
opacity: 0;
|
|
6376
|
+
transition: opacity 0.15s ease;
|
|
6377
|
+
}
|
|
6378
|
+
._17z9n250:hover ._17z9n255, ._17z9n255:focus-visible, ._17z9n255[data-popup-open] {
|
|
6379
|
+
opacity: 1;
|
|
6380
|
+
}
|
|
6381
|
+
._17z9n256 {
|
|
6382
|
+
display: flex;
|
|
6383
|
+
flex-direction: column;
|
|
6384
|
+
gap: 8px;
|
|
6385
|
+
width: 340px;
|
|
6386
|
+
padding: 12px;
|
|
6387
|
+
font-family: var(--rc-font-family-sans);
|
|
6388
|
+
}
|
|
6389
|
+
._17z9n257 {
|
|
6390
|
+
display: flex;
|
|
6391
|
+
align-items: center;
|
|
6392
|
+
gap: 8px;
|
|
6393
|
+
padding: 6px 10px;
|
|
6394
|
+
background-color: var(--rc-bg-secondary);
|
|
6395
|
+
border-radius: 6px;
|
|
6396
|
+
min-width: 0;
|
|
6397
|
+
}
|
|
6398
|
+
._17z9n258 {
|
|
6399
|
+
flex-shrink: 0;
|
|
6400
|
+
color: var(--rc-text-secondary);
|
|
6401
|
+
}
|
|
6402
|
+
._17z9n259 {
|
|
6403
|
+
flex: 1;
|
|
6404
|
+
appearance: none;
|
|
6405
|
+
border: none;
|
|
6406
|
+
background-color: transparent;
|
|
6407
|
+
color: inherit;
|
|
6408
|
+
font-size: var(--rc-font-size-sm);
|
|
6409
|
+
padding: 0;
|
|
6410
|
+
outline: none;
|
|
6411
|
+
min-width: 0;
|
|
6412
|
+
}
|
|
6413
|
+
._17z9n259::placeholder {
|
|
6414
|
+
color: var(--rc-text-secondary);
|
|
6415
|
+
}
|
|
6416
|
+
._17z9n25a {
|
|
6417
|
+
width: 100%;
|
|
6418
|
+
min-height: 72px;
|
|
6419
|
+
resize: vertical;
|
|
6420
|
+
appearance: none;
|
|
6421
|
+
border: none;
|
|
6422
|
+
background-color: var(--rc-bg-secondary);
|
|
6423
|
+
border-radius: 6px;
|
|
6424
|
+
color: inherit;
|
|
6425
|
+
font-family: var(--rc-font-mono);
|
|
6426
|
+
font-size: var(--rc-font-size-xs);
|
|
6427
|
+
padding: 6px 10px;
|
|
6428
|
+
outline: none;
|
|
6429
|
+
}
|
|
6430
|
+
._17z9n25a::placeholder {
|
|
6431
|
+
color: var(--rc-text-secondary);
|
|
6432
|
+
font-family: var(--rc-font-family-sans);
|
|
6433
|
+
}
|
|
6434
|
+
._17z9n25b {
|
|
6435
|
+
color: var(--rc-alert-caution);
|
|
6436
|
+
font-size: var(--rc-font-size-sm);
|
|
6315
6437
|
}._1pymbyu1 {
|
|
6316
6438
|
margin: 8px 0;
|
|
6317
6439
|
}
|