eddyter 1.3.74 → 1.3.76

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 (39) hide show
  1. package/dist/api/config/endpoints.d.ts +1 -0
  2. package/dist/assets/style.css +1 -1
  3. package/dist/components/EddyterLogo/EddyterLogo.d.ts +2 -1
  4. package/dist/components/HtmlCodeEditor.d.ts +9 -0
  5. package/dist/components/Placeholder/styles.d.ts +2 -0
  6. package/dist/components/Toast/EditorToast.d.ts +2 -0
  7. package/dist/components/ui/button.d.ts +1 -1
  8. package/dist/config/env.d.ts +8 -0
  9. package/dist/constants.d.ts +2 -1
  10. package/dist/generateDocxThumbnail-BbSs-3CJ.js +5876 -0
  11. package/dist/generatePdfThumbnail-U8R2yu3J.js +53 -0
  12. package/dist/generateXlsxThumbnail-BUwuqsXR.js +21707 -0
  13. package/dist/hooks/useBlockFormat.d.ts +1 -0
  14. package/dist/hooks/useFeedbackEligibility.d.ts +2 -2
  15. package/dist/hooks/usePdfPreview.d.ts +6 -0
  16. package/dist/html2canvas.esm-C2wu93Kq.js +4867 -0
  17. package/dist/{html2pdf.bundle.min-IddXSdmD.js → html2pdf.bundle.min-Css6bHHm.js} +1 -1
  18. package/dist/{index-DXkAwL6K.js → index-CCVZobcV.js} +1 -1
  19. package/dist/index-CVEa0GRe.js +131 -0
  20. package/dist/{index-DeaVZP-3.js → index-DTkM3xiE.js} +1 -1
  21. package/dist/{index-CnJbZHIU.js → index-DjD3NbU0.js} +13839 -13261
  22. package/dist/index.js +1 -1
  23. package/dist/lib/toast.d.ts +39 -0
  24. package/dist/nodes/EmbedNode.d.ts +7 -2
  25. package/dist/nodes/FileNode.d.ts +3 -0
  26. package/dist/nodes/GeneratingImageNode.d.ts +30 -0
  27. package/dist/store/tableFullWidthStore.d.ts +6 -0
  28. package/dist/types.d.ts +2 -0
  29. package/dist/ui/Icons.d.ts +2 -1
  30. package/dist/utils/editorStyleConverter.d.ts +3 -1
  31. package/dist/utils/generateDocxThumbnail.d.ts +5 -0
  32. package/dist/utils/generatePdfThumbnail.d.ts +1 -0
  33. package/dist/utils/generateXlsxThumbnail.d.ts +5 -0
  34. package/dist/utils/helper.d.ts +2 -0
  35. package/dist/utils/htmlFormat.d.ts +5 -0
  36. package/dist/utils/index.d.ts +4 -4
  37. package/package.json +6 -12
  38. package/dist/html2pdf.bundle-Bqwrc-rt.js +0 -33980
  39. package/dist/index-CUha-eOU.js +0 -83
@@ -6,7 +6,8 @@ interface EddyterLogoProps {
6
6
  className?: string;
7
7
  }
8
8
  /**
9
- * Eddyter brand logo from apps/editor/public/EddyterIcon.svg.
9
+ * Eddyter brand logo for the free-user watermark.
10
+ * Loaded from CDN (S3/CloudFront) via getCdnAssetUrl so it works in the built editor bundle.
10
11
  * Uses invert dark:invert-0 (same as frontend) — dark in light mode, white in dark mode.
11
12
  */
12
13
  declare const EddyterLogo: React.FC<EddyterLogoProps>;
@@ -0,0 +1,9 @@
1
+ interface HtmlCodeEditorProps {
2
+ htmlContent: string;
3
+ setHtmlContent: (v: string) => void;
4
+ canUpdateFromEditor: boolean;
5
+ onFocus: () => void;
6
+ onBlur: () => void;
7
+ }
8
+ export default function HtmlCodeEditor(props: HtmlCodeEditorProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const placeholderContainerStyle: React.CSSProperties;
1
3
  export declare const PlaceholderContainer: any;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export default function EditorToast(): React.ReactPortal | null;
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "toolbar" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "md" | "lg" | "icon" | "icon-sm" | null | undefined;
5
+ size?: "default" | "icon" | "sm" | "md" | "lg" | "icon-sm" | null | undefined;
6
6
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -1,3 +1,11 @@
1
+ /** CDN base URL for static assets (logos, watermark). Set VITE_APP_CDN_URL at build time (same as frontend NEXT_PUBLIC_CDN_URL). */
2
+ export declare const CDN_BASE_URL: string | undefined;
3
+ /**
4
+ * Build CDN URL for static assets under assets/.
5
+ * Upload assets to S3 at assets/{name}; use same CDN as frontend (e.g. CloudFront).
6
+ * Used for the free-user watermark logo so it works in the built editor bundle.
7
+ */
8
+ export declare function getCdnAssetUrl(assetPath: string): string;
1
9
  export declare const BACKEND_ENDPOINT: string;
2
10
  export declare const API_VALIDATION_ENDPOINT: string;
3
11
  export declare const API_AGENT_ENDPOINT: string;
@@ -18,12 +18,13 @@ import { NotePanelNode } from './nodes/NotePanelNode';
18
18
  import { ChartNode } from './nodes/ChartNode';
19
19
  import { CustomHorizontalRuleNode } from './plugins/CustomHorizontalRulePlugin';
20
20
  import { AlignMenuItem, FormatTextMenuItem } from './types';
21
+ import { GeneratingImageNode } from './nodes/GeneratingImageNode';
21
22
  import { UploadingImageNode } from './nodes/UploadingImageNode';
22
23
  import { UploadingFileNode } from './nodes/UploadingFileNode';
23
24
  import { VideoNode } from './nodes/VideoNode';
24
25
  import { UploadingVideoNode } from './nodes/UploadingVideoNode';
25
26
  export declare const theme: EditorThemeClasses;
26
- export declare const EDITOR_NODES: (typeof CommentedTextNode | typeof CommentNode | typeof EmbedNode | typeof FileNode | typeof HtmlCanvasNode | typeof LinkNode | typeof CodeNode | typeof ImageNode | typeof MentionNode | typeof NotePanelNode | typeof ChartNode | typeof CustomHorizontalRuleNode | typeof HorizontalRuleNode | typeof UploadingImageNode | typeof UploadingFileNode | typeof VideoNode | typeof UploadingVideoNode | typeof CodeHighlightNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode)[];
27
+ export declare const EDITOR_NODES: (typeof CommentedTextNode | typeof CommentNode | typeof EmbedNode | typeof FileNode | typeof HtmlCanvasNode | typeof LinkNode | typeof CodeNode | typeof ImageNode | typeof MentionNode | typeof NotePanelNode | typeof ChartNode | typeof CustomHorizontalRuleNode | typeof HorizontalRuleNode | typeof GeneratingImageNode | typeof UploadingImageNode | typeof UploadingFileNode | typeof VideoNode | typeof UploadingVideoNode | typeof CodeHighlightNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode)[];
27
28
  export declare const initialConfig: InitialConfigType;
28
29
  export declare const blockTypeToBlockName: {
29
30
  bullet: string;