@haklex/rich-compose 0.1.0 → 0.5.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 +60 -41
- package/dist/core/compose.d.ts.map +1 -1
- package/dist/core/dedup.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/lazy.d.ts.map +1 -1
- package/dist/core/types.d.ts +21 -21
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modules/alert/index.d.ts +3 -0
- package/dist/modules/alert/index.d.ts.map +1 -0
- package/dist/modules/alert/index.mjs +9 -0
- package/dist/modules/alert/module.d.ts +3 -0
- package/dist/modules/alert/module.d.ts.map +1 -0
- package/dist/modules/alert/renderer.d.ts +4 -0
- package/dist/modules/alert/renderer.d.ts.map +1 -0
- package/dist/modules/alert/renderer.mjs +5 -0
- package/dist/modules/banner/index.d.ts +3 -0
- package/dist/modules/banner/index.d.ts.map +1 -0
- package/dist/modules/banner/index.mjs +9 -0
- package/dist/modules/banner/module.d.ts +3 -0
- package/dist/modules/banner/module.d.ts.map +1 -0
- package/dist/modules/banner/renderer.d.ts +4 -0
- package/dist/modules/banner/renderer.d.ts.map +1 -0
- package/dist/modules/banner/renderer.mjs +5 -0
- package/dist/modules/chat/index.d.ts +3 -3
- package/dist/modules/chat/index.d.ts.map +1 -1
- package/dist/modules/chat/index.mjs +9 -2
- package/dist/modules/chat/module.d.ts +7 -0
- package/dist/modules/chat/module.d.ts.map +1 -1
- package/dist/modules/chat/node.d.ts +2 -2
- package/dist/modules/chat/node.d.ts.map +1 -1
- package/dist/modules/chat/node.mjs +1 -1
- package/dist/modules/chat/renderer.d.ts +1 -1
- package/dist/modules/chat/renderer.d.ts.map +1 -1
- package/dist/modules/chat/renderer.mjs +1 -1
- package/dist/modules/code-block/index.d.ts +1 -1
- package/dist/modules/code-block/index.d.ts.map +1 -1
- package/dist/modules/code-block/module.d.ts.map +1 -1
- package/dist/modules/code-block/renderer.d.ts.map +1 -1
- package/dist/modules/code-snippet/index.d.ts +1 -1
- package/dist/modules/code-snippet/index.d.ts.map +1 -1
- package/dist/modules/code-snippet/index.mjs +7 -2
- package/dist/modules/code-snippet/module.d.ts +5 -0
- package/dist/modules/code-snippet/module.d.ts.map +1 -1
- package/dist/modules/code-snippet/node.d.ts +2 -2
- package/dist/modules/code-snippet/node.d.ts.map +1 -1
- package/dist/modules/code-snippet/node.mjs +1 -1
- package/dist/modules/code-snippet/renderer.d.ts +1 -1
- package/dist/modules/code-snippet/renderer.d.ts.map +1 -1
- package/dist/modules/code-snippet/renderer.mjs +1 -1
- package/dist/modules/embed/index.d.ts +1 -1
- package/dist/modules/embed/index.d.ts.map +1 -1
- package/dist/modules/embed/module.d.ts.map +1 -1
- package/dist/modules/embed/node.d.ts.map +1 -1
- package/dist/modules/excalidraw/index.d.ts +5 -0
- package/dist/modules/excalidraw/index.d.ts.map +1 -0
- package/dist/modules/excalidraw/index.mjs +18 -0
- package/dist/modules/excalidraw/module.d.ts +12 -0
- package/dist/modules/excalidraw/module.d.ts.map +1 -0
- package/dist/modules/excalidraw/node.d.ts +6 -0
- package/dist/modules/excalidraw/node.d.ts.map +1 -0
- package/dist/modules/excalidraw/node.mjs +5 -0
- package/dist/modules/gallery/index.d.ts +2 -2
- package/dist/modules/gallery/index.d.ts.map +1 -1
- package/dist/modules/gallery/index.mjs +7 -2
- package/dist/modules/gallery/module.d.ts +5 -0
- package/dist/modules/gallery/module.d.ts.map +1 -1
- package/dist/modules/gallery/node.d.ts +2 -2
- package/dist/modules/gallery/node.d.ts.map +1 -1
- package/dist/modules/gallery/node.mjs +1 -1
- package/dist/modules/gallery/renderer.d.ts +1 -1
- package/dist/modules/gallery/renderer.d.ts.map +1 -1
- package/dist/modules/gallery/renderer.mjs +1 -1
- package/dist/modules/image/index.d.ts +3 -0
- package/dist/modules/image/index.d.ts.map +1 -0
- package/dist/modules/image/index.mjs +9 -0
- package/dist/modules/image/module.d.ts +3 -0
- package/dist/modules/image/module.d.ts.map +1 -0
- package/dist/modules/image/renderer.d.ts +4 -0
- package/dist/modules/image/renderer.d.ts.map +1 -0
- package/dist/modules/image/renderer.mjs +5 -0
- package/dist/modules/link-card/index.d.ts +1 -1
- package/dist/modules/link-card/index.d.ts.map +1 -1
- package/dist/modules/link-card/module.d.ts.map +1 -1
- package/dist/modules/link-card/renderer.d.ts.map +1 -1
- package/dist/modules/mention/index.d.ts +5 -0
- package/dist/modules/mention/index.d.ts.map +1 -0
- package/dist/modules/mention/index.mjs +9 -0
- package/dist/modules/mention/module.d.ts +3 -0
- package/dist/modules/mention/module.d.ts.map +1 -0
- package/dist/modules/mention/renderer.d.ts +4 -0
- package/dist/modules/mention/renderer.d.ts.map +1 -0
- package/dist/modules/mention/renderer.mjs +5 -0
- package/dist/modules/mermaid/index.d.ts +3 -0
- package/dist/modules/mermaid/index.d.ts.map +1 -0
- package/dist/modules/mermaid/index.mjs +33 -0
- package/dist/modules/mermaid/module.d.ts +9 -0
- package/dist/modules/mermaid/module.d.ts.map +1 -0
- package/dist/modules/mermaid/renderer.d.ts +4 -0
- package/dist/modules/mermaid/renderer.d.ts.map +1 -0
- package/dist/modules/mermaid/renderer.mjs +5 -0
- package/dist/modules/mermaid/ssr-fallback.d.ts +11 -0
- package/dist/modules/mermaid/ssr-fallback.d.ts.map +1 -0
- package/dist/modules/nested-doc/index.d.ts +3 -0
- package/dist/modules/nested-doc/index.d.ts.map +1 -0
- package/dist/modules/nested-doc/index.mjs +15 -0
- package/dist/modules/nested-doc/module.d.ts +10 -0
- package/dist/modules/nested-doc/module.d.ts.map +1 -0
- package/dist/modules/nested-doc/node.d.ts +3 -0
- package/dist/modules/nested-doc/node.d.ts.map +1 -0
- package/dist/modules/nested-doc/node.mjs +2 -0
- package/dist/modules/poll/index.d.ts +5 -0
- package/dist/modules/poll/index.d.ts.map +1 -0
- package/dist/modules/poll/index.mjs +20 -0
- package/dist/modules/poll/module.d.ts +12 -0
- package/dist/modules/poll/module.d.ts.map +1 -0
- package/dist/modules/poll/node.d.ts +3 -0
- package/dist/modules/poll/node.d.ts.map +1 -0
- package/dist/modules/poll/node.mjs +2 -0
- package/dist/modules/poll/renderer.d.ts +4 -0
- package/dist/modules/poll/renderer.d.ts.map +1 -0
- package/dist/modules/poll/renderer.mjs +5 -0
- package/dist/modules/ruby/index.d.ts +3 -0
- package/dist/modules/ruby/index.d.ts.map +1 -0
- package/dist/modules/ruby/index.mjs +9 -0
- package/dist/modules/ruby/module.d.ts +3 -0
- package/dist/modules/ruby/module.d.ts.map +1 -0
- package/dist/modules/ruby/renderer.d.ts +4 -0
- package/dist/modules/ruby/renderer.d.ts.map +1 -0
- package/dist/modules/ruby/renderer.mjs +5 -0
- package/dist/modules/video/index.d.ts +3 -0
- package/dist/modules/video/index.d.ts.map +1 -0
- package/dist/modules/video/index.mjs +9 -0
- package/dist/modules/video/module.d.ts +3 -0
- package/dist/modules/video/module.d.ts.map +1 -0
- package/dist/modules/video/renderer.d.ts +4 -0
- package/dist/modules/video/renderer.d.ts.map +1 -0
- package/dist/modules/video/renderer.mjs +5 -0
- package/package.json +152 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/embed/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/embed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/embed/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/embed/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/embed/node.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/embed/node.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { excalidrawModule } from './module';
|
|
2
|
+
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode, excalidrawNodes } from './node';
|
|
3
|
+
export type { SerializedExcalidrawNode } from '@haklex/rich-ext-excalidraw/static';
|
|
4
|
+
export { ExcalidrawConfigProvider, ExcalidrawDisplayRenderer, useExcalidrawConfig, } from '@haklex/rich-ext-excalidraw/static';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/excalidraw/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACnG,YAAY,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode, excalidrawNodes } from "./node.mjs";
|
|
2
|
+
import { ExcalidrawConfigProvider, ExcalidrawDisplayRenderer, useExcalidrawConfig } from "@haklex/rich-ext-excalidraw/static";
|
|
3
|
+
//#region src/modules/excalidraw/module.ts
|
|
4
|
+
/**
|
|
5
|
+
* Excalidraw module — registers `ExcalidrawNode`. There is no
|
|
6
|
+
* `Excalidraw` slot in `RendererConfig`; the Klass's `decorate()` handles
|
|
7
|
+
* its own rendering (and the upstream renderer code-splits internally).
|
|
8
|
+
*
|
|
9
|
+
* Consumers wrapping `ExcalidrawConfigProvider` or replacing the display
|
|
10
|
+
* renderer do so via upstream APIs (`@haklex/rich-ext-excalidraw/static`)
|
|
11
|
+
* rather than through `composeRenderer`.
|
|
12
|
+
*/
|
|
13
|
+
var excalidrawModule = {
|
|
14
|
+
name: "excalidraw",
|
|
15
|
+
nodes: excalidrawNodes
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawConfigProvider, ExcalidrawDisplayRenderer, ExcalidrawNode, excalidrawModule, excalidrawNodes, useExcalidrawConfig };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RichRendererModule } from '../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Excalidraw module — registers `ExcalidrawNode`. There is no
|
|
4
|
+
* `Excalidraw` slot in `RendererConfig`; the Klass's `decorate()` handles
|
|
5
|
+
* its own rendering (and the upstream renderer code-splits internally).
|
|
6
|
+
*
|
|
7
|
+
* Consumers wrapping `ExcalidrawConfigProvider` or replacing the display
|
|
8
|
+
* renderer do so via upstream APIs (`@haklex/rich-ext-excalidraw/static`)
|
|
9
|
+
* rather than through `composeRenderer`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const excalidrawModule: RichRendererModule;
|
|
12
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/excalidraw/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode } from '@haklex/rich-ext-excalidraw/static';
|
|
2
|
+
import { Klass, LexicalNode } from 'lexical';
|
|
3
|
+
export type { SerializedExcalidrawNode } from '@haklex/rich-ext-excalidraw/static';
|
|
4
|
+
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode };
|
|
5
|
+
export declare const excalidrawNodes: Array<Klass<LexicalNode>>;
|
|
6
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/excalidraw/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD,YAAY,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC;AAEpE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAoB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode } from "@haklex/rich-ext-excalidraw/static";
|
|
2
|
+
//#region src/modules/excalidraw/node.ts
|
|
3
|
+
var excalidrawNodes = [ExcalidrawNode];
|
|
4
|
+
//#endregion
|
|
5
|
+
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode, excalidrawNodes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { galleryModule } from './module';
|
|
1
2
|
export type { GalleryNodePayload, SerializedGalleryNode } from './node';
|
|
2
|
-
export { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes
|
|
3
|
+
export { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes } from './node';
|
|
3
4
|
export { GalleryRenderer } from './renderer';
|
|
4
|
-
export { galleryModule } from './module';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes } from "./node.mjs";
|
|
2
2
|
import { GalleryRenderer } from "./renderer.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { galleryNodes as galleryNodes$1 } from "@haklex/rich-ext-gallery/node";
|
|
4
4
|
//#region src/modules/gallery/module.ts
|
|
5
|
+
/**
|
|
6
|
+
* Gallery module — registers GalleryNode (light) and lazy-loads
|
|
7
|
+
* GalleryRenderer (with photo viewer / dnd). Consumers can override with a
|
|
8
|
+
* thin module to keep the default chunk out of the bundle.
|
|
9
|
+
*/
|
|
5
10
|
var galleryModule = {
|
|
6
11
|
name: "gallery",
|
|
7
12
|
nodes: galleryNodes$1,
|
|
8
|
-
|
|
13
|
+
lazyRenderers: { Gallery: () => import("@haklex/rich-ext-gallery/renderer") }
|
|
9
14
|
};
|
|
10
15
|
//#endregion
|
|
11
16
|
export { $createGalleryNode, $isGalleryNode, GalleryNode, GalleryRenderer, galleryModule, galleryNodes };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { RichRendererModule } from '../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Gallery module — registers GalleryNode (light) and lazy-loads
|
|
4
|
+
* GalleryRenderer (with photo viewer / dnd). Consumers can override with a
|
|
5
|
+
* thin module to keep the default chunk out of the bundle.
|
|
6
|
+
*/
|
|
2
7
|
export declare const galleryModule: RichRendererModule;
|
|
3
8
|
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,kBAM3B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { GalleryNodePayload, SerializedGalleryNode } from '@haklex/rich-ext-gallery/
|
|
2
|
-
export { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes, } from '@haklex/rich-ext-gallery/
|
|
1
|
+
export type { GalleryNodePayload, SerializedGalleryNode } from '@haklex/rich-ext-gallery/node';
|
|
2
|
+
export { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes, } from '@haklex/rich-ext-gallery/node';
|
|
3
3
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/node.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/node.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes } from "@haklex/rich-ext-gallery/
|
|
1
|
+
import { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes } from "@haklex/rich-ext-gallery/node";
|
|
2
2
|
export { $createGalleryNode, $isGalleryNode, GalleryNode, galleryNodes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/gallery/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ImageRenderer } from "./renderer.mjs";
|
|
2
|
+
import { ImageRenderer as ImageRenderer$1 } from "@haklex/rich-renderer-image/static";
|
|
3
|
+
//#region src/modules/image/module.ts
|
|
4
|
+
var imageModule = {
|
|
5
|
+
name: "image",
|
|
6
|
+
renderers: { Image: ImageRenderer$1 }
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ImageRenderer, imageModule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/image/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/image/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/link-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/link-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/link-card/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/link-card/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/link-card/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/link-card/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { mentionModule } from './module';
|
|
2
|
+
export { MentionRenderer } from './renderer';
|
|
3
|
+
export type { MentionPlatformMeta } from '@haklex/rich-renderer-mention/static';
|
|
4
|
+
export { MentionPlatformProvider } from '@haklex/rich-renderer-mention/static';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/mention/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MentionRenderer } from "./renderer.mjs";
|
|
2
|
+
import { MentionPlatformProvider, MentionRenderer as MentionRenderer$1 } from "@haklex/rich-renderer-mention/static";
|
|
3
|
+
//#region src/modules/mention/module.ts
|
|
4
|
+
var mentionModule = {
|
|
5
|
+
name: "mention",
|
|
6
|
+
renderers: { Mention: MentionRenderer$1 }
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { MentionPlatformProvider, MentionRenderer, mentionModule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/mention/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/mention/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MermaidRenderer } from "./renderer.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/modules/mermaid/ssr-fallback.tsx
|
|
4
|
+
/**
|
|
5
|
+
* SSR / Suspense fallback for the lazy Mermaid renderer.
|
|
6
|
+
*
|
|
7
|
+
* Determinism requirement: identical output server-side and client-side
|
|
8
|
+
* to avoid hydration mismatches. No Date, no random, no client-only API.
|
|
9
|
+
*
|
|
10
|
+
* Renders an empty placeholder shell sized via CSS so layout stays stable
|
|
11
|
+
* before mermaid's heavy chunk resolves and replaces it.
|
|
12
|
+
*/
|
|
13
|
+
function MermaidSsrFallback() {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
className: "rich-mermaid-skeleton",
|
|
16
|
+
"data-rich-skeleton": "mermaid"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/modules/mermaid/module.tsx
|
|
21
|
+
/**
|
|
22
|
+
* Mermaid module — `MermaidNode` is registered by `@haklex/rich-editor`
|
|
23
|
+
* (in `customNodes`/`allNodes`). The default renderer
|
|
24
|
+
* (`@haklex/rich-renderer-mermaid`) pulls mermaid lib (~2MB), so it ships
|
|
25
|
+
* as a separate lazy chunk with a deterministic SSR fallback.
|
|
26
|
+
*/
|
|
27
|
+
var mermaidModule = {
|
|
28
|
+
name: "mermaid",
|
|
29
|
+
lazyRenderers: { Mermaid: () => import("./renderer.mjs") },
|
|
30
|
+
ssrFallback: { Mermaid: /* @__PURE__ */ jsx(MermaidSsrFallback, {}) }
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { MermaidRenderer, mermaidModule };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RichRendererModule } from '../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Mermaid module — `MermaidNode` is registered by `@haklex/rich-editor`
|
|
4
|
+
* (in `customNodes`/`allNodes`). The default renderer
|
|
5
|
+
* (`@haklex/rich-renderer-mermaid`) pulls mermaid lib (~2MB), so it ships
|
|
6
|
+
* as a separate lazy chunk with a deterministic SSR fallback.
|
|
7
|
+
*/
|
|
8
|
+
export declare const mermaidModule: RichRendererModule;
|
|
9
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/module.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,kBAQ3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSR / Suspense fallback for the lazy Mermaid renderer.
|
|
3
|
+
*
|
|
4
|
+
* Determinism requirement: identical output server-side and client-side
|
|
5
|
+
* to avoid hydration mismatches. No Date, no random, no client-only API.
|
|
6
|
+
*
|
|
7
|
+
* Renders an empty placeholder shell sized via CSS so layout stays stable
|
|
8
|
+
* before mermaid's heavy chunk resolves and replaces it.
|
|
9
|
+
*/
|
|
10
|
+
export declare function MermaidSsrFallback(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=ssr-fallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssr-fallback.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/ssr-fallback.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,4CAEjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/nested-doc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { $createNestedDocNode, $isNestedDocNode, NestedDocNode, nestedDocNodes } from "./node.mjs";
|
|
2
|
+
//#region src/modules/nested-doc/module.ts
|
|
3
|
+
/**
|
|
4
|
+
* Nested-doc module — registers `NestedDocNode`. There is no
|
|
5
|
+
* `NestedDoc` slot in `RendererConfig`; the Klass's `decorate()` consumes
|
|
6
|
+
* the `NestedContentRendererProvider` (composeRenderer always wires this
|
|
7
|
+
* to a recursive closure) so nested editor states render through the
|
|
8
|
+
* same composition.
|
|
9
|
+
*/
|
|
10
|
+
var nestedDocModule = {
|
|
11
|
+
name: "nested-doc",
|
|
12
|
+
nodes: nestedDocNodes
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { $createNestedDocNode, $isNestedDocNode, NestedDocNode, nestedDocModule, nestedDocNodes };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RichRendererModule } from '../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Nested-doc module — registers `NestedDocNode`. There is no
|
|
4
|
+
* `NestedDoc` slot in `RendererConfig`; the Klass's `decorate()` consumes
|
|
5
|
+
* the `NestedContentRendererProvider` (composeRenderer always wires this
|
|
6
|
+
* to a recursive closure) so nested editor states render through the
|
|
7
|
+
* same composition.
|
|
8
|
+
*/
|
|
9
|
+
export declare const nestedDocModule: RichRendererModule;
|
|
10
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/nested-doc/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,kBAG7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/nested-doc/node.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,cAAc,GACf,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/poll/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EACL,eAAe,EACf,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { $createPollNode, $isPollNode, PollNode, pollNodes } from "./node.mjs";
|
|
2
|
+
import { PollRenderer } from "./renderer.mjs";
|
|
3
|
+
import { pollNodes as pollNodes$1 } from "@haklex/rich-ext-poll/node";
|
|
4
|
+
//#region src/modules/poll/module.ts
|
|
5
|
+
/**
|
|
6
|
+
* Poll module — registers PollNode (light) and lazy-loads PollRenderer.
|
|
7
|
+
*
|
|
8
|
+
* The default `PollRenderer` lives in `@haklex/rich-ext-poll/renderer` and
|
|
9
|
+
* is loaded into a separate chunk via `lazyRenderers`. Consumers who want a
|
|
10
|
+
* lighter override can write their own thin module — `nodes: pollNodes` from
|
|
11
|
+
* `@haklex/rich-ext-poll/node` plus `renderers: { Poll: MyPoll }` — and the
|
|
12
|
+
* heavy default `PollRenderer` chunk never enters their bundle.
|
|
13
|
+
*/
|
|
14
|
+
var pollModule = {
|
|
15
|
+
name: "poll",
|
|
16
|
+
nodes: pollNodes$1,
|
|
17
|
+
lazyRenderers: { Poll: () => import("@haklex/rich-ext-poll/renderer") }
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { $createPollNode, $isPollNode, PollNode, PollRenderer, pollModule, pollNodes };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RichRendererModule } from '../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Poll module — registers PollNode (light) and lazy-loads PollRenderer.
|
|
4
|
+
*
|
|
5
|
+
* The default `PollRenderer` lives in `@haklex/rich-ext-poll/renderer` and
|
|
6
|
+
* is loaded into a separate chunk via `lazyRenderers`. Consumers who want a
|
|
7
|
+
* lighter override can write their own thin module — `nodes: pollNodes` from
|
|
8
|
+
* `@haklex/rich-ext-poll/node` plus `renderers: { Poll: MyPoll }` — and the
|
|
9
|
+
* heavy default `PollRenderer` chunk never enters their bundle.
|
|
10
|
+
*/
|
|
11
|
+
export declare const pollModule: RichRendererModule;
|
|
12
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/poll/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,kBAMxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/poll/node.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,eAAe,EACf,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/poll/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ruby/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RubyRenderer } from "./renderer.mjs";
|
|
2
|
+
import { RubyRenderer as RubyRenderer$1 } from "@haklex/rich-renderer-ruby/static";
|
|
3
|
+
//#region src/modules/ruby/module.ts
|
|
4
|
+
var rubyModule = {
|
|
5
|
+
name: "ruby",
|
|
6
|
+
renderers: { Ruby: RubyRenderer$1 }
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { RubyRenderer, rubyModule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/ruby/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/ruby/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/video/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|