@haklex/rich-compose 0.2.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 +53 -48
- 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 +1 -1
- package/dist/modules/alert/index.d.ts.map +1 -1
- package/dist/modules/alert/module.d.ts.map +1 -1
- package/dist/modules/alert/renderer.d.ts.map +1 -1
- package/dist/modules/banner/index.d.ts +1 -1
- package/dist/modules/banner/index.d.ts.map +1 -1
- package/dist/modules/banner/module.d.ts.map +1 -1
- package/dist/modules/banner/renderer.d.ts.map +1 -1
- 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 +2 -2
- package/dist/modules/excalidraw/index.d.ts.map +1 -1
- package/dist/modules/excalidraw/module.d.ts.map +1 -1
- package/dist/modules/excalidraw/node.d.ts +2 -2
- package/dist/modules/excalidraw/node.d.ts.map +1 -1
- 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 +1 -1
- package/dist/modules/image/index.d.ts.map +1 -1
- package/dist/modules/image/module.d.ts.map +1 -1
- package/dist/modules/image/renderer.d.ts.map +1 -1
- 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 +2 -2
- package/dist/modules/mention/index.d.ts.map +1 -1
- package/dist/modules/mention/module.d.ts.map +1 -1
- package/dist/modules/mention/renderer.d.ts.map +1 -1
- package/dist/modules/mermaid/index.d.ts +1 -1
- package/dist/modules/mermaid/index.d.ts.map +1 -1
- package/dist/modules/mermaid/module.d.ts.map +1 -1
- package/dist/modules/mermaid/renderer.d.ts.map +1 -1
- package/dist/modules/mermaid/ssr-fallback.d.ts.map +1 -1
- package/dist/modules/nested-doc/index.d.ts +1 -1
- package/dist/modules/nested-doc/index.d.ts.map +1 -1
- package/dist/modules/nested-doc/module.d.ts.map +1 -1
- package/dist/modules/nested-doc/node.d.ts.map +1 -1
- 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 +1 -1
- package/dist/modules/ruby/index.d.ts.map +1 -1
- package/dist/modules/ruby/module.d.ts.map +1 -1
- package/dist/modules/ruby/renderer.d.ts.map +1 -1
- package/dist/modules/video/index.d.ts +1 -1
- package/dist/modules/video/index.d.ts.map +1 -1
- package/dist/modules/video/module.d.ts.map +1 -1
- package/dist/modules/video/renderer.d.ts.map +1 -1
- package/package.json +53 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/excalidraw/index.ts"],"names":[],"mappings":"AAAA,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Klass, LexicalNode } from 'lexical';
|
|
2
1
|
import { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode } from '@haklex/rich-ext-excalidraw/static';
|
|
2
|
+
import { Klass, LexicalNode } from 'lexical';
|
|
3
3
|
export type { SerializedExcalidrawNode } from '@haklex/rich-ext-excalidraw/static';
|
|
4
|
-
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode
|
|
4
|
+
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode };
|
|
5
5
|
export declare const excalidrawNodes: Array<Klass<LexicalNode>>;
|
|
6
6
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/modules/excalidraw/node.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/image/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { mentionModule } from './module';
|
|
2
|
+
export { MentionRenderer } from './renderer';
|
|
1
3
|
export type { MentionPlatformMeta } from '@haklex/rich-renderer-mention/static';
|
|
2
4
|
export { MentionPlatformProvider } from '@haklex/rich-renderer-mention/static';
|
|
3
|
-
export { MentionRenderer } from './renderer';
|
|
4
|
-
export { mentionModule } from './module';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/mention/index.ts"],"names":[],"mappings":"AAAA,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/mention/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-fallback.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/ssr-fallback.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ssr-fallback.d.ts","sourceRoot":"","sources":["../../../src/modules/mermaid/ssr-fallback.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,4CAEjC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { $createNestedDocNode, $isNestedDocNode, NestedDocNode, nestedDocNodes, } from './node';
|
|
2
1
|
export { nestedDocModule } from './module';
|
|
2
|
+
export { $createNestedDocNode, $isNestedDocNode, NestedDocNode, nestedDocNodes } from './node';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/nested-doc/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ruby/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/ruby/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/video/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/video/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/modules/video/module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/video/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/modules/video/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-compose",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Compose primitives for haklex rich content renderers — Gundam-style assembly of Lexical nodes, sync/lazy renderers, and Provider stacks.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"directory": "packages/rich-compose"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"type": "module",
|
|
12
11
|
"sideEffects": [
|
|
13
12
|
"**/*.css"
|
|
14
13
|
],
|
|
14
|
+
"type": "module",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"import": "./dist/index.mjs",
|
|
@@ -149,6 +149,18 @@
|
|
|
149
149
|
"import": "./dist/modules/nested-doc/node.mjs",
|
|
150
150
|
"types": "./dist/modules/nested-doc/node.d.ts"
|
|
151
151
|
},
|
|
152
|
+
"./modules/poll": {
|
|
153
|
+
"import": "./dist/modules/poll/index.mjs",
|
|
154
|
+
"types": "./dist/modules/poll/index.d.ts"
|
|
155
|
+
},
|
|
156
|
+
"./modules/poll/node": {
|
|
157
|
+
"import": "./dist/modules/poll/node.mjs",
|
|
158
|
+
"types": "./dist/modules/poll/node.d.ts"
|
|
159
|
+
},
|
|
160
|
+
"./modules/poll/renderer": {
|
|
161
|
+
"import": "./dist/modules/poll/renderer.mjs",
|
|
162
|
+
"types": "./dist/modules/poll/renderer.d.ts"
|
|
163
|
+
},
|
|
152
164
|
"./style.css": "./dist/rich-compose.css"
|
|
153
165
|
},
|
|
154
166
|
"main": "./dist/index.mjs",
|
|
@@ -166,46 +178,48 @@
|
|
|
166
178
|
"vite": "^8.0.10",
|
|
167
179
|
"vite-plugin-dts": "^4.5.4",
|
|
168
180
|
"vitest": "^4.1.5",
|
|
169
|
-
"@haklex/rich-editor": "0.
|
|
170
|
-
"@haklex/rich-ext-
|
|
171
|
-
"@haklex/rich-ext-code-snippet": "0.
|
|
172
|
-
"@haklex/rich-ext-
|
|
173
|
-
"@haklex/rich-
|
|
174
|
-
"@haklex/rich-ext-
|
|
175
|
-
"@haklex/rich-renderer-banner": "0.
|
|
176
|
-
"@haklex/rich-renderer-codeblock": "0.
|
|
177
|
-
"@haklex/rich-
|
|
178
|
-
"@haklex/rich-renderer-
|
|
179
|
-
"@haklex/rich-ext-
|
|
180
|
-
"@haklex/rich-renderer-
|
|
181
|
-
"@haklex/rich-
|
|
182
|
-
"@haklex/rich-
|
|
183
|
-
"@haklex/rich-renderer-mermaid": "0.
|
|
184
|
-
"@haklex/rich-renderer-
|
|
185
|
-
"@haklex/rich-renderer-ruby": "0.
|
|
181
|
+
"@haklex/rich-editor": "0.5.0",
|
|
182
|
+
"@haklex/rich-ext-chat": "0.5.0",
|
|
183
|
+
"@haklex/rich-ext-code-snippet": "0.5.0",
|
|
184
|
+
"@haklex/rich-ext-embed": "0.5.0",
|
|
185
|
+
"@haklex/rich-ext-nested-doc": "0.5.0",
|
|
186
|
+
"@haklex/rich-ext-poll": "0.5.0",
|
|
187
|
+
"@haklex/rich-renderer-banner": "0.5.0",
|
|
188
|
+
"@haklex/rich-renderer-codeblock": "0.5.0",
|
|
189
|
+
"@haklex/rich-ext-excalidraw": "0.5.0",
|
|
190
|
+
"@haklex/rich-renderer-alert": "0.5.0",
|
|
191
|
+
"@haklex/rich-ext-gallery": "0.5.0",
|
|
192
|
+
"@haklex/rich-renderer-linkcard": "0.5.0",
|
|
193
|
+
"@haklex/rich-renderer-image": "0.5.0",
|
|
194
|
+
"@haklex/rich-renderer-mention": "0.5.0",
|
|
195
|
+
"@haklex/rich-renderer-mermaid": "0.5.0",
|
|
196
|
+
"@haklex/rich-renderer-video": "0.5.0",
|
|
197
|
+
"@haklex/rich-renderer-ruby": "0.5.0",
|
|
198
|
+
"@haklex/rich-static-renderer": "0.5.0"
|
|
186
199
|
},
|
|
187
200
|
"peerDependencies": {
|
|
188
201
|
"@lexical/react": "^0.44.0",
|
|
189
202
|
"lexical": "^0.44.0",
|
|
190
203
|
"react": ">=19",
|
|
191
204
|
"react-dom": ">=19",
|
|
192
|
-
"@haklex/rich-editor": "0.
|
|
193
|
-
"@haklex/rich-ext-code-snippet": "0.
|
|
194
|
-
"@haklex/rich-ext-
|
|
195
|
-
"@haklex/rich-ext-
|
|
196
|
-
"@haklex/rich-ext-chat": "0.
|
|
197
|
-
"@haklex/rich-ext-gallery": "0.
|
|
198
|
-
"@haklex/rich-
|
|
199
|
-
"@haklex/rich-
|
|
200
|
-
"@haklex/rich-
|
|
201
|
-
"@haklex/rich-renderer-
|
|
202
|
-
"@haklex/rich-renderer-
|
|
203
|
-
"@haklex/rich-renderer-
|
|
204
|
-
"@haklex/rich-renderer-
|
|
205
|
-
"@haklex/rich-renderer-
|
|
206
|
-
"@haklex/rich-renderer-
|
|
207
|
-
"@haklex/rich-renderer-
|
|
208
|
-
"@haklex/rich-
|
|
205
|
+
"@haklex/rich-editor": "0.5.0",
|
|
206
|
+
"@haklex/rich-ext-code-snippet": "0.5.0",
|
|
207
|
+
"@haklex/rich-ext-embed": "0.5.0",
|
|
208
|
+
"@haklex/rich-ext-excalidraw": "0.5.0",
|
|
209
|
+
"@haklex/rich-ext-chat": "0.5.0",
|
|
210
|
+
"@haklex/rich-ext-gallery": "0.5.0",
|
|
211
|
+
"@haklex/rich-ext-poll": "0.5.0",
|
|
212
|
+
"@haklex/rich-ext-nested-doc": "0.5.0",
|
|
213
|
+
"@haklex/rich-renderer-banner": "0.5.0",
|
|
214
|
+
"@haklex/rich-renderer-mermaid": "0.5.0",
|
|
215
|
+
"@haklex/rich-renderer-image": "0.5.0",
|
|
216
|
+
"@haklex/rich-renderer-mention": "0.5.0",
|
|
217
|
+
"@haklex/rich-renderer-linkcard": "0.5.0",
|
|
218
|
+
"@haklex/rich-renderer-alert": "0.5.0",
|
|
219
|
+
"@haklex/rich-renderer-codeblock": "0.5.0",
|
|
220
|
+
"@haklex/rich-renderer-ruby": "0.5.0",
|
|
221
|
+
"@haklex/rich-renderer-video": "0.5.0",
|
|
222
|
+
"@haklex/rich-static-renderer": "0.5.0"
|
|
209
223
|
},
|
|
210
224
|
"peerDependenciesMeta": {
|
|
211
225
|
"@haklex/rich-ext-chat": {
|
|
@@ -226,6 +240,9 @@
|
|
|
226
240
|
"@haklex/rich-ext-nested-doc": {
|
|
227
241
|
"optional": true
|
|
228
242
|
},
|
|
243
|
+
"@haklex/rich-ext-poll": {
|
|
244
|
+
"optional": true
|
|
245
|
+
},
|
|
229
246
|
"@haklex/rich-renderer-alert": {
|
|
230
247
|
"optional": true
|
|
231
248
|
},
|