@oyat/editor 1.6.5 → 1.7.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/README.md +53 -36
- package/dist/components/editor/editor-base-kit.d.ts +283 -1
- package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
- package/dist/components/editor/editor-kit.d.ts +604 -1
- package/dist/components/editor/editor-kit.d.ts.map +1 -1
- package/dist/components/editor/plate-editor.d.ts +11 -1
- package/dist/components/editor/plate-editor.d.ts.map +1 -1
- package/dist/components/editor/plugins/discussion-kit.d.ts +4 -24
- package/dist/components/editor/plugins/discussion-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/media-base-kit.d.ts +2 -2
- package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/media-kit.d.ts +2 -2
- package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -1
- package/dist/components/ui/block-suggestion.d.ts.map +1 -1
- package/dist/components/ui/callout-node-static.d.ts +4 -0
- package/dist/components/ui/callout-node-static.d.ts.map +1 -1
- package/dist/components/ui/caption.d.ts +11 -0
- package/dist/components/ui/caption.d.ts.map +1 -0
- package/dist/components/ui/code-block-node-static.d.ts +7 -0
- package/dist/components/ui/code-block-node-static.d.ts.map +1 -1
- package/dist/components/ui/column-node-static.d.ts +8 -0
- package/dist/components/ui/column-node-static.d.ts.map +1 -1
- package/dist/components/ui/comment.d.ts.map +1 -1
- package/dist/components/ui/editor.d.ts +1 -1
- package/dist/components/ui/equation-node-static.d.ts +10 -0
- package/dist/components/ui/equation-node-static.d.ts.map +1 -1
- package/dist/components/ui/fixed-toolbar-buttons.d.ts.map +1 -1
- package/dist/components/ui/floating-toolbar-buttons.d.ts.map +1 -1
- package/dist/components/ui/font-color-toolbar-button.d.ts +23 -0
- package/dist/components/ui/font-color-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/insert-image-url-toolbar-button.d.ts +2 -0
- package/dist/components/ui/insert-image-url-toolbar-button.d.ts.map +1 -0
- package/dist/components/ui/insert-toolbar-button.d.ts.map +1 -1
- package/dist/components/ui/media-picker-toolbar-trigger.d.ts +2 -0
- package/dist/components/ui/media-picker-toolbar-trigger.d.ts.map +1 -0
- package/dist/components/ui/more-toolbar-button.d.ts.map +1 -1
- package/dist/components/ui/toc-node-static.d.ts +5 -0
- package/dist/components/ui/toc-node-static.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -1
- package/dist/contexts/media-picker-context.d.ts +14 -0
- package/dist/contexts/media-picker-context.d.ts.map +1 -0
- package/dist/contexts/media-picker-provider.d.ts +8 -0
- package/dist/contexts/media-picker-provider.d.ts.map +1 -0
- package/dist/demo/MockMediaPicker.d.ts +6 -0
- package/dist/demo/MockMediaPicker.d.ts.map +1 -0
- package/dist/demo/discussions.d.ts +3 -0
- package/dist/demo/discussions.d.ts.map +1 -0
- package/dist/demo/value.d.ts +3 -0
- package/dist/demo/value.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +829 -841
- package/dist/index.js.map +1 -1
- package/package.json +37 -50
- package/dist/components/editor/plate-types.d.ts +0 -85
- package/dist/components/editor/plate-types.d.ts.map +0 -1
- package/dist/components/editor/plugins/basic-nodes-kit.d.ts +0 -24
- package/dist/components/editor/plugins/basic-nodes-kit.d.ts.map +0 -1
- package/dist/components/editor/plugins/emoji-kit.d.ts +0 -6
- package/dist/components/editor/plugins/emoji-kit.d.ts.map +0 -1
- package/dist/components/editor/settings-dialog.d.ts +0 -8
- package/dist/components/editor/settings-dialog.d.ts.map +0 -1
- package/dist/components/editor/use-chat.d.ts +0 -64
- package/dist/components/editor/use-chat.d.ts.map +0 -1
- package/dist/components/ui/ai-chat-editor.d.ts +0 -5
- package/dist/components/ui/ai-chat-editor.d.ts.map +0 -1
- package/dist/components/ui/ai-menu.d.ts +0 -8
- package/dist/components/ui/ai-menu.d.ts.map +0 -1
- package/dist/components/ui/ai-node.d.ts +0 -4
- package/dist/components/ui/ai-node.d.ts.map +0 -1
- package/dist/components/ui/ai-toolbar-button.d.ts +0 -4
- package/dist/components/ui/ai-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/editor-static.d.ts +0 -9
- package/dist/components/ui/editor-static.d.ts.map +0 -1
- package/dist/components/ui/emoji-node.d.ts +0 -3
- package/dist/components/ui/emoji-node.d.ts.map +0 -1
- package/dist/components/ui/equation-toolbar-button.d.ts +0 -4
- package/dist/components/ui/equation-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/export-toolbar-button.d.ts +0 -3
- package/dist/components/ui/export-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/font-size-toolbar-button.d.ts +0 -2
- package/dist/components/ui/font-size-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/ghost-text.d.ts +0 -2
- package/dist/components/ui/ghost-text.d.ts.map +0 -1
- package/dist/components/ui/import-toolbar-button.d.ts +0 -3
- package/dist/components/ui/import-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/line-height-toolbar-button.d.ts +0 -3
- package/dist/components/ui/line-height-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/media-embed-node.d.ts +0 -5
- package/dist/components/ui/media-embed-node.d.ts.map +0 -1
- package/dist/components/ui/media-video-node-static.d.ts +0 -4
- package/dist/components/ui/media-video-node-static.d.ts.map +0 -1
- package/dist/components/ui/media-video-node.d.ts +0 -5
- package/dist/components/ui/media-video-node.d.ts.map +0 -1
- package/dist/components/ui/mode-toolbar-button.d.ts +0 -3
- package/dist/components/ui/mode-toolbar-button.d.ts.map +0 -1
- package/dist/components/ui/toggle-toolbar-button.d.ts +0 -4
- package/dist/components/ui/toggle-toolbar-button.d.ts.map +0 -1
|
@@ -8,49 +8,29 @@ export type TDiscussion = {
|
|
|
8
8
|
documentContent?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const discussionPlugin: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"discussion", {
|
|
11
|
-
|
|
11
|
+
currentUser: string;
|
|
12
12
|
discussions: TDiscussion[];
|
|
13
|
-
users: Record<string, {
|
|
14
|
-
id: string;
|
|
15
|
-
avatarUrl: string;
|
|
16
|
-
name: string;
|
|
17
|
-
hue?: number;
|
|
18
|
-
}>;
|
|
19
13
|
}, {}, {}, {
|
|
20
|
-
|
|
14
|
+
currentUserInfo: () => {
|
|
21
15
|
id: string;
|
|
22
|
-
avatarUrl: string;
|
|
23
16
|
name: string;
|
|
24
|
-
hue?: number;
|
|
25
17
|
};
|
|
26
18
|
user: (id: string) => {
|
|
27
19
|
id: string;
|
|
28
|
-
avatarUrl: string;
|
|
29
20
|
name: string;
|
|
30
|
-
hue?: number;
|
|
31
21
|
};
|
|
32
22
|
}>>;
|
|
33
23
|
export declare const DiscussionKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"discussion", {
|
|
34
|
-
|
|
24
|
+
currentUser: string;
|
|
35
25
|
discussions: TDiscussion[];
|
|
36
|
-
users: Record<string, {
|
|
37
|
-
id: string;
|
|
38
|
-
avatarUrl: string;
|
|
39
|
-
name: string;
|
|
40
|
-
hue?: number;
|
|
41
|
-
}>;
|
|
42
26
|
}, {}, {}, {
|
|
43
|
-
|
|
27
|
+
currentUserInfo: () => {
|
|
44
28
|
id: string;
|
|
45
|
-
avatarUrl: string;
|
|
46
29
|
name: string;
|
|
47
|
-
hue?: number;
|
|
48
30
|
};
|
|
49
31
|
user: (id: string) => {
|
|
50
32
|
id: string;
|
|
51
|
-
avatarUrl: string;
|
|
52
33
|
name: string;
|
|
53
|
-
hue?: number;
|
|
54
34
|
};
|
|
55
35
|
}>>[];
|
|
56
36
|
//# sourceMappingURL=discussion-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discussion-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/discussion-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"discussion-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/discussion-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQxD,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAIF,eAAO,MAAM,gBAAgB;;iBAIN,WAAW,EAAE;;;;;;eAQrB,MAAM;;;;GAChB,CAAC;AAEN,eAAO,MAAM,aAAa;;iBAXH,WAAW,EAAE;;;;;;eAQrB,MAAM;;;;KAG0B,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare const BaseMediaKit: (import('platejs').SlatePlugin<import('platej
|
|
|
6
6
|
insert: {
|
|
7
7
|
imageFromFiles: (files: FileList, options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
8
8
|
};
|
|
9
|
-
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"
|
|
9
|
+
}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"audio", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"file", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"caption", {
|
|
10
10
|
focusEndPath: import('platejs').Path | null;
|
|
11
11
|
focusStartPath: import('platejs').Path | null;
|
|
12
12
|
query: {
|
|
@@ -15,7 +15,7 @@ export declare const BaseMediaKit: (import('platejs').SlatePlugin<import('platej
|
|
|
15
15
|
visibleId: string | null;
|
|
16
16
|
}, {}, {}, {
|
|
17
17
|
isVisible?: (elementId: string) => boolean;
|
|
18
|
-
}>> | import('platejs').SlatePlugin<import('
|
|
18
|
+
}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"placeholder", import('@platejs/media').MediaPlaceholderOptions, {}, {
|
|
19
19
|
insert: {
|
|
20
20
|
audioPlaceholder: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
21
21
|
filePlaceholder: (options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/media-base-kit.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/media-base-kit.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;;;;;;iDAaw4D,CAAC;;;;;;;;;;;;;kCAAk1E,CAAC;iCAAiF,CAAC;kCAAkF,CAAC;kCAAkF,CAAC;;UAD5+I,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const MediaKit: (import('platejs/react').PlatePlugin<import('plat
|
|
|
18
18
|
at?: import('platejs').Path;
|
|
19
19
|
}) | undefined) => any;
|
|
20
20
|
};
|
|
21
|
-
}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"
|
|
21
|
+
}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"img", {
|
|
22
22
|
disableEmbedInsert?: boolean;
|
|
23
23
|
disableUploadInsert?: boolean;
|
|
24
24
|
uploadImage?: (dataUrl: ArrayBuffer | string) => ArrayBuffer | Promise<ArrayBuffer | string> | string;
|
|
@@ -26,7 +26,7 @@ export declare const MediaKit: (import('platejs/react').PlatePlugin<import('plat
|
|
|
26
26
|
insert: {
|
|
27
27
|
imageFromFiles: (files: FileList, options?: import('platejs').InsertNodesOptions | undefined) => void;
|
|
28
28
|
};
|
|
29
|
-
}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"
|
|
29
|
+
}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"audio", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"file", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"caption", {
|
|
30
30
|
focusEndPath: import('platejs').Path | null;
|
|
31
31
|
focusStartPath: import('platejs').Path | null;
|
|
32
32
|
query: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/media-kit.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/media-kit.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;wCAmBy8nH,CAAC;cAA8C,CAAC;;;;;;;;;iDAV58nH,CAAC;;;;;;;;;;;MASlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/suggestion-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,qBAAqB,CAAC;AAW7B,MAAM,MAAM,gBAAgB,GAAG,YAAY,CACzC,oBAAoB,EACpB;IACE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CAClC,CACF,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;cANf,MAAM,GAAG,IAAI;aACd,MAAM,GAAG,IAAI;mBACP,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC;;;;;sBAMvB,CAAC;cAEH,CAAC;kBACA,CAAC;;;
|
|
1
|
+
{"version":3,"file":"suggestion-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/suggestion-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,qBAAqB,CAAC;AAW7B,MAAM,MAAM,gBAAgB,GAAG,YAAY,CACzC,oBAAoB,EACpB;IACE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CAClC,CACF,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;cANf,MAAM,GAAG,IAAI;aACd,MAAM,GAAG,IAAI;mBACP,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC;;;;;sBAMvB,CAAC;cAEH,CAAC;kBACA,CAAC;;;uBAQT,CADF;qBAAwC,CAAC;;;;;WAgDzC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;cApEZ,MAAM,GAAG,IAAI;aACd,MAAM,GAAG,IAAI;mBACP,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC;;;;;sBAMvB,CAAC;cAEH,CAAC;kBACA,CAAC;;;uBAQT,CADF;qBAAwC,CAAC;;;;;aAkDI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/block-suggestion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAU/D,OAAO,EACL,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,eAAe,EAKrB,MAAM,SAAS,CAAC;AAKjB,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,4CAA4C,CAAC;AAGpD,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB;AAkCD,wBAAgB,mBAAmB,CAAC,EAClC,GAAG,EACH,MAAM,EACN,UAAU,GACX,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,kBAAkB,CAAC;CAChC,
|
|
1
|
+
{"version":3,"file":"block-suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/block-suggestion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAU/D,OAAO,EACL,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,eAAe,EAKrB,MAAM,SAAS,CAAC;AAKjB,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,4CAA4C,CAAC;AAGpD,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB;AAkCD,wBAAgB,mBAAmB,CAAC,EAClC,GAAG,EACH,MAAM,EACN,UAAU,GACX,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,kBAAkB,CAAC;CAChC,2CA+JA;AAED,eAAO,MAAM,oBAAoB,GAC/B,iBAAiB,SAAS,CAAC,QAAQ,GAAG,eAAe,CAAC,EAAE,EACxD,WAAW,IAAI,yBA4NhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,YAAY,kBAAkB,GAAG,WAAW,KAC3C,UAAU,IAAI,kBAAkD,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { SlateElementProps } from 'platejs/static';
|
|
2
2
|
export declare function CalloutElementStatic({ children, className, ...props }: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
/**
|
|
4
|
+
* DOCX-compatible callout component using table layout for side-by-side icon and content.
|
|
5
|
+
*/
|
|
6
|
+
export declare function CalloutElementDocx({ children, ...props }: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
3
7
|
//# sourceMappingURL=callout-node-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callout-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/callout-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMxD,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAyBnB"}
|
|
1
|
+
{"version":3,"file":"callout-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/callout-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMxD,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAyBnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CA+C3E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Caption as CaptionPrimitive, CaptionTextarea as CaptionTextareaPrimitive } from '@platejs/caption/react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const captionVariants: (props?: ({
|
|
5
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare function Caption({ align, className, ...props }: React.ComponentProps<typeof CaptionPrimitive> & VariantProps<typeof captionVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function CaptionTextarea(props: React.ComponentProps<typeof CaptionTextareaPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const CaptionButton: any;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=caption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caption.d.ts","sourceRoot":"","sources":["../../../src/components/ui/caption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,eAAe,IAAI,wBAAwB,EAG5C,MAAM,wBAAwB,CAAC;AAOhC,QAAA,MAAM,eAAe;;8EAWnB,CAAC;AAEH,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAC9C,YAAY,CAAC,OAAO,eAAe,CAAC,2CAOrC;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,2CAa7D;AAED,eAAO,MAAM,aAAa,EAAE,GAG1B,CAAC"}
|
|
@@ -3,4 +3,11 @@ import { SlateElementProps, SlateLeafProps } from 'platejs/static';
|
|
|
3
3
|
export declare function CodeBlockElementStatic(props: SlateElementProps<TCodeBlockElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function CodeLineElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function CodeSyntaxLeafStatic(props: SlateLeafProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* DOCX-compatible code block components.
|
|
8
|
+
* Uses inline styles for proper rendering in Word documents.
|
|
9
|
+
*/
|
|
10
|
+
export declare function CodeBlockElementDocx(props: SlateElementProps<TCodeBlockElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function CodeLineElementDocx(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function CodeSyntaxLeafDocx(props: SlateLeafProps): import("react/jsx-runtime").JSX.Element;
|
|
6
13
|
//# sourceMappingURL=code-block-node-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-block-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/code-block-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,2CAc5C;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,iBAAiB,2CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,2CAIzD"}
|
|
1
|
+
{"version":3,"file":"code-block-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/code-block-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,2CAc5C;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,iBAAiB,2CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,2CAIzD;AAED;;;GAGG;AAEH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,2CAgB5C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,2CAa3D;AA4CD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,2CAyCvD"}
|
|
@@ -2,4 +2,12 @@ import { TColumnElement } from 'platejs';
|
|
|
2
2
|
import { SlateElementProps } from 'platejs/static';
|
|
3
3
|
export declare function ColumnElementStatic(props: SlateElementProps<TColumnElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function ColumnGroupElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* DOCX-compatible column component using table cell.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ColumnElementDocx(props: SlateElementProps<TColumnElement>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* DOCX-compatible column group component using table layout.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ColumnGroupElementDocx(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
5
13
|
//# sourceMappingURL=column-node-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/column-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CAe3E;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,2CAMhE"}
|
|
1
|
+
{"version":3,"file":"column-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/column-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CAe3E;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,2CAMhE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CAiBzE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,iBAAiB,2CAiB9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/components/ui/comment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,OAAO,EAAE,KAAK,KAAK,EAAyB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/components/ui/comment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,OAAO,EAAE,KAAK,KAAK,EAAyB,MAAM,SAAS,CAAC;AA4B5D,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAC7B,OAAO,EAAE,QAAQ,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAClE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,2CA8NA;AAuHD,wBAAgB,iBAAiB,CAAC,EAChC,SAAiB,EACjB,SAAS,EACT,YAAY,EAAE,gBAAgB,EAC9B,YAAoB,GACrB,EAAE;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,2CAyLA;AAED,eAAO,MAAM,iBAAiB,GAAI,MAAM,IAAI,WAiB3C,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare function EditorContainer({ className, variant, ...props }: React.
|
|
|
8
8
|
declare const editorVariants: (props?: ({
|
|
9
9
|
disabled?: boolean | null | undefined;
|
|
10
10
|
focused?: boolean | null | undefined;
|
|
11
|
-
variant?: "select" | "none" | "default" | "aiChat" | "comment" | "
|
|
11
|
+
variant?: "select" | "none" | "default" | "aiChat" | "comment" | "demo" | "ai" | "fullWidth" | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
13
|
export type EditorProps = PlateContentProps & VariantProps<typeof editorVariants>;
|
|
14
14
|
export declare const Editor: {
|
|
@@ -2,4 +2,14 @@ import { TEquationElement } from 'platejs';
|
|
|
2
2
|
import { SlateElementProps } from 'platejs/static';
|
|
3
3
|
export declare function EquationElementStatic(props: SlateElementProps<TEquationElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function InlineEquationElementStatic(props: SlateElementProps<TEquationElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* DOCX-compatible block equation component.
|
|
7
|
+
* Displays LaTeX source code with styling.
|
|
8
|
+
*/
|
|
9
|
+
export declare function EquationElementDocx(props: SlateElementProps<TEquationElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* DOCX-compatible inline equation component.
|
|
12
|
+
* Displays LaTeX source code inline.
|
|
13
|
+
*/
|
|
14
|
+
export declare function InlineEquationElementDocx(props: SlateElementProps<TEquationElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
15
|
//# sourceMappingURL=equation-node-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equation-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/equation-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQxD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CA2C3C;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CAyC3C"}
|
|
1
|
+
{"version":3,"file":"equation-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/equation-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQxD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CA2C3C;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CAyC3C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CA4B3C;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,2CAyB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixed-toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/fixed-toolbar-buttons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixed-toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/fixed-toolbar-buttons.tsx"],"names":[],"mappings":"AA2CA,wBAAgB,mBAAmB,4CA4GlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/floating-toolbar-buttons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"floating-toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/floating-toolbar-buttons.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,4CA2DrC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
export declare function FontColorToolbarButton({ children, nodeType, tooltip, }: {
|
|
4
|
+
nodeType: string;
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
} & DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type TColor = {
|
|
8
|
+
isBrightColor: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function ColorDropdownMenuItems({ className, color, colors, updateColor, ...props }: {
|
|
13
|
+
colors: TColor[];
|
|
14
|
+
updateColor: (color: string) => void;
|
|
15
|
+
color?: string;
|
|
16
|
+
} & React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const DEFAULT_COLORS: {
|
|
18
|
+
isBrightColor: boolean;
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=font-color-toolbar-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-color-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/font-color-toolbar-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAwBvC,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,iBAAiB,2CA0FpB;AAkLD,KAAK,MAAM,GAAG;IACZ,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAgDF,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,GAAG,KAAK,EACT,EAAE;IACD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAwB9B;AAED,eAAO,MAAM,cAAc;;;;GAuZ1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-image-url-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/insert-image-url-toolbar-button.tsx"],"names":[],"mappings":"AAqFA,wBAAgB,2BAA2B,4CAoB1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/insert-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"insert-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/insert-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAmIvE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,2CAoC3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-picker-toolbar-trigger.d.ts","sourceRoot":"","sources":["../../../src/components/ui/media-picker-toolbar-trigger.tsx"],"names":[],"mappings":"AAQA,wBAAgB,yBAAyB,mDA0BxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"more-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/more-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"more-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/more-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAoBvE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,2CA6CzD"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { SlateElementProps } from 'platejs/static';
|
|
2
2
|
export declare function TocElementStatic(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
/**
|
|
4
|
+
* DOCX-compatible TOC component.
|
|
5
|
+
* Renders TOC items as anchor links for proper Word internal navigation.
|
|
6
|
+
*/
|
|
7
|
+
export declare function TocElementDocx(props: SlateElementProps): import("react/jsx-runtime").JSX.Element;
|
|
3
8
|
//# sourceMappingURL=toc-node-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toc-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toc-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAsBxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,2CA4BxD"}
|
|
1
|
+
{"version":3,"file":"toc-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toc-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAsBxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,2CA4BxD;AA2CD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,iBAAiB,2CA+CtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAItD,iBAAS,eAAe,CAAC,EACvB,aAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAItD,iBAAS,eAAe,CAAC,EACvB,aAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAiBvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-into-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/turn-into-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"turn-into-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/turn-into-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAgCvE,eAAO,MAAM,aAAa;;;;;GAuDzB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,iBAAiB,2CA8D7D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MediaPickerApi {
|
|
3
|
+
open: () => void;
|
|
4
|
+
onSelect: (data: {
|
|
5
|
+
url: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
}) => void;
|
|
10
|
+
}
|
|
11
|
+
export type MediaPickerRenderProp = (api: MediaPickerApi) => React.ReactNode;
|
|
12
|
+
export declare const MediaPickerContext: React.Context<MediaPickerRenderProp | null>;
|
|
13
|
+
export declare function useMediaPicker(): MediaPickerRenderProp | null;
|
|
14
|
+
//# sourceMappingURL=media-picker-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-picker-context.d.ts","sourceRoot":"","sources":["../../src/contexts/media-picker-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAK,IAAI,CAAC;CACZ;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAC;AAE7E,eAAO,MAAM,kBAAkB,6CAE9B,CAAC;AAEF,wBAAgB,cAAc,IAAI,qBAAqB,GAAG,IAAI,CAE7D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MediaPickerRenderProp } from './media-picker-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type { MediaPickerRenderProp } from './media-picker-context';
|
|
4
|
+
export declare function MediaPickerProvider({ children, mediaPicker, }: {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
mediaPicker: MediaPickerRenderProp;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=media-picker-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-picker-provider.d.ts","sourceRoot":"","sources":["../../src/contexts/media-picker-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAsB,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAExF,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,EAAE,qBAAqB,CAAC;CACpC,2CAMA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MockMediaPicker.d.ts","sourceRoot":"","sources":["../../src/demo/MockMediaPicker.tsx"],"names":[],"mappings":"AAYA,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC3C,2CAsCA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discussions.d.ts","sourceRoot":"","sources":["../../src/demo/discussions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,eAAO,MAAM,eAAe,EA4BvB,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../src/demo/value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,KAAK,EAAE,KAwjClB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -39,4 +39,8 @@ export { SuggestionKit } from './components/editor/plugins/suggestion-kit';
|
|
|
39
39
|
export { TableKit } from './components/editor/plugins/table-kit';
|
|
40
40
|
export { TocKit } from './components/editor/plugins/toc-kit';
|
|
41
41
|
export { ToggleKit } from './components/editor/plugins/toggle-kit';
|
|
42
|
+
export { TooltipProvider } from './components/ui/tooltip';
|
|
43
|
+
export type { MediaPickerApi, MediaPickerRenderProp, } from './contexts/media-picker-context';
|
|
44
|
+
export type { TDiscussion } from './components/editor/plugins/discussion-kit';
|
|
45
|
+
export { parseUserId } from './lib/user-id';
|
|
42
46
|
//# s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