ct-rich-text-editor 1.3.6 → 1.3.8

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.
Files changed (28) hide show
  1. package/dist/api/featureSuggestion.d.ts +21 -0
  2. package/dist/assets/style.css +294 -91
  3. package/dist/components/FeatureSuggestionDialog/index.d.ts +6 -0
  4. package/dist/components/ImageComparisonDialog/index.d.ts +11 -0
  5. package/dist/components/ImageGenerationDialog/ImageGenerationManager.d.ts +2 -1
  6. package/dist/components/ImageGenerationDialog/index.d.ts +2 -1
  7. package/dist/components/ImageView/index.d.ts +2 -1
  8. package/dist/editorConfig.d.ts +1 -1
  9. package/dist/{html2pdf.bundle-9236a762.js → html2pdf.bundle-6d32d085.js} +2 -2
  10. package/dist/{html2pdf.bundle-9236a762.js.map → html2pdf.bundle-6d32d085.js.map} +1 -1
  11. package/dist/{html2pdf.bundle.min-5e51c303.js → html2pdf.bundle.min-b3120e0c.js} +2 -2
  12. package/dist/{html2pdf.bundle.min-5e51c303.js.map → html2pdf.bundle.min-b3120e0c.js.map} +1 -1
  13. package/dist/{index-dbc626d0.js → index-158a9bd4.js} +2513 -1190
  14. package/dist/index-158a9bd4.js.map +1 -0
  15. package/dist/{index-4a68b444.js → index-42136c92.js} +255 -8
  16. package/dist/index-42136c92.js.map +1 -0
  17. package/dist/{index-984a0184.js → index-9548fdb4.js} +3 -3
  18. package/dist/{index-984a0184.js.map → index-9548fdb4.js.map} +1 -1
  19. package/dist/index.js +6 -6
  20. package/dist/nodes/ImageNode.d.ts +8 -2
  21. package/dist/plugins/LinkPreviewPlugin/index.d.ts +2 -0
  22. package/dist/plugins/TableActionMenuPlugin/index.d.ts +2 -2
  23. package/dist/plugins/TableHoverActionsPlugin/index.d.ts +2 -11
  24. package/dist/plugins/TableHoverActionsPlugin/index_old_backup.d.ts +17 -0
  25. package/dist/plugins/TablePlugin.d.ts +1 -1
  26. package/package.json +2 -1
  27. package/dist/index-4a68b444.js.map +0 -1
  28. package/dist/index-dbc626d0.js.map +0 -1
@@ -2,7 +2,8 @@ import { default as React } from 'react';
2
2
  interface ImageGenerationDialogProps {
3
3
  open: boolean;
4
4
  onOpenChange: (open: boolean) => void;
5
- onGenerate: (prompt: string) => Promise<void>;
5
+ onGenerate: (prompt: string) => Promise<string>;
6
+ onInsertImage: (imageUrl: string, prompt: string) => void;
6
7
  isGenerating: boolean;
7
8
  initialText?: string;
8
9
  }
@@ -1,6 +1,6 @@
1
1
  import { LexicalCommand, LexicalEditor, NodeKey } from '../../../node_modules/lexical';
2
2
  export declare const RIGHT_CLICK_IMAGE_COMMAND: LexicalCommand<MouseEvent>;
3
- export default function ImageComponent({ src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, }: {
3
+ export default function ImageComponent({ src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, originalPrompt, }: {
4
4
  altText: string;
5
5
  caption: LexicalEditor;
6
6
  height: "inherit" | number;
@@ -11,4 +11,5 @@ export default function ImageComponent({ src, altText, nodeKey, width, height, m
11
11
  src: string;
12
12
  width: "inherit" | number;
13
13
  captionsEnabled: boolean;
14
+ originalPrompt?: string;
14
15
  }): JSX.Element;
@@ -44,5 +44,5 @@ export declare const editorConfig: {
44
44
  maxSuggestions: number;
45
45
  };
46
46
  defaultFontFamilies: string[];
47
- mentionUserList: string[];
47
+ mentionUserList: never[];
48
48
  };
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-dbc626d0.js";
7
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-158a9bd4.js";
8
8
  function _mergeNamespaces(n, m) {
9
9
  for (var i = 0; i < m.length; i++) {
10
10
  const e = m[i];
@@ -46125,4 +46125,4 @@ const html2pdf_bundle$1 = /* @__PURE__ */ _mergeNamespaces({
46125
46125
  export {
46126
46126
  html2pdf_bundle$1 as h
46127
46127
  };
46128
- //# sourceMappingURL=html2pdf.bundle-9236a762.js.map
46128
+ //# sourceMappingURL=html2pdf.bundle-6d32d085.js.map