eddyter 1.4.12 → 1.4.13

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 (41) hide show
  1. package/README.md +3 -2
  2. package/dist/CommentBubblePlugin-DDCERFQO.js +29 -0
  3. package/dist/{LazyCodeMirror-CcceEUqu.js → LazyCodeMirror-C1bW4mVF.js} +941 -1484
  4. package/dist/{LazySignatureCanvas-Cck44R9l.js → LazySignatureCanvas-D5P1189T.js} +21 -38
  5. package/dist/Provider/EditorProvider.d.ts +2 -0
  6. package/dist/api/auth.d.ts +4 -0
  7. package/dist/assets/style.css +1 -1
  8. package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
  9. package/dist/components/ColorPicker/LazyHexColorPicker.d.ts +2 -0
  10. package/dist/components/CommentToggle/CommentToggle.d.ts +2 -2
  11. package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -2
  12. package/dist/components/EmojiPickerWidget/LazyEmojiPicker.d.ts +4 -0
  13. package/dist/components/LockedFeature/FeatureLockCard.d.ts +22 -0
  14. package/dist/components/LockedFeature/FeatureLockTooltipContent.d.ts +12 -0
  15. package/dist/components/LockedFeature/LockedFeature.d.ts +6 -1
  16. package/dist/components/LockedFeature/lockedFeatureMetadata.d.ts +7 -0
  17. package/dist/components/Toolbar/styles.d.ts +5 -5
  18. package/dist/components/ui/tooltip.d.ts +2 -1
  19. package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
  20. package/dist/{generateDocxThumbnail-DGj_L73_.js → generateDocxThumbnail-BVFpoKUP.js} +762 -1118
  21. package/dist/{generatePdfThumbnail-D1ui86rp.js → generatePdfThumbnail-Pvt57kGy.js} +13 -19
  22. package/dist/{generateXlsxThumbnail-CbJOr-_6.js → generateXlsxThumbnail-DRggrLYK.js} +3322 -3508
  23. package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
  24. package/dist/{html2canvas.esm-C2wu93Kq.js → html2canvas.esm-BD_Vwvv8.js} +139 -204
  25. package/dist/{html2pdf.bundle.min-CN_w9Sxu.js → html2pdf.bundle.min-DElEIEzd.js} +3405 -5221
  26. package/dist/{index-DiSjJC3k.js → index-C9Dld3-L.js} +13 -13
  27. package/dist/{index-CuwrKBfY.js → index-Cojy1w7r.js} +194 -217
  28. package/dist/index-D11sRTul.js +147 -0
  29. package/dist/{index-Dh0oRk6u.js → index-DFEFJp4J.js} +37294 -41489
  30. package/dist/index-D_izLqTY.js +552 -0
  31. package/dist/{index-hrDzgkRb.js → index-ZBDns08-.js} +81 -80
  32. package/dist/index-rm00T8b9.js +166 -0
  33. package/dist/index.js +2 -2
  34. package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
  35. package/dist/{objectWithoutPropertiesLoose-DO0w4vQT.js → objectWithoutPropertiesLoose-DiWPeE4c.js} +6 -10
  36. package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -1
  37. package/dist/plugins/LocalStoragePlugin.d.ts +0 -2
  38. package/dist/{postcss-B0bxXf7u.js → postcss-CGIcwj_g.js} +615 -1065
  39. package/dist/{standalone-DmuJV5rn.js → standalone-C0qguT38.js} +350 -596
  40. package/dist/{typescript-DZlC_9M8.js → typescript-BM7wk6k-.js} +1114 -1806
  41. package/package.json +8 -1
@@ -0,0 +1,2 @@
1
+ declare const LazyHexColorPicker: import('react').LazyExoticComponent<(props: Partial<import('react-colorful/dist/types').ColorPickerBaseProps<string>>) => JSX.Element>;
2
+ export default LazyHexColorPicker;
@@ -4,5 +4,5 @@ interface CommentToggleProps {
4
4
  onClick: () => void;
5
5
  commentCount?: number;
6
6
  }
7
- declare const CommentToggle: React.FC<CommentToggleProps>;
8
- export default CommentToggle;
7
+ declare const _default: React.NamedExoticComponent<CommentToggleProps>;
8
+ export default _default;
@@ -27,13 +27,13 @@ interface ConfigurableEditorWithAuthProps {
27
27
  */
28
28
  mode?: "edit" | "preview";
29
29
  /** Additional class name for the preview container (only used in preview mode) */
30
- previewClassName?: string;
30
+ containerClassName?: string;
31
31
  /** Additional class name for the editor wrapper container */
32
32
  className?: string;
33
33
  /** Additional style for the editor wrapper container */
34
34
  style?: React.CSSProperties;
35
35
  /** Additional class name for the editor content area */
36
- editorClassName?: string;
36
+ contentClassName?: string;
37
37
  /** Editor container options */
38
38
  editor?: {
39
39
  /** Max height for editor content area / preview content */
@@ -0,0 +1,4 @@
1
+ import { EmojiClickData } from 'emoji-picker-react';
2
+ declare const LazyEmojiPicker: import('react').LazyExoticComponent<typeof import('emoji-picker-react').default>;
3
+ export type { EmojiClickData };
4
+ export default LazyEmojiPicker;
@@ -0,0 +1,22 @@
1
+ import { FC } from 'react';
2
+ export type FeatureLockCardProps = {
3
+ /** Resolves default catalog key for plan lookup. */
4
+ featureName: string;
5
+ /** Orange heading; defaults to `featureName`. */
6
+ displayTitle?: string;
7
+ /**
8
+ * API catalog key (e.g. floating.bold, toolbar.enableHtmlViewToggle).
9
+ * Defaults to resolved key from featureName.
10
+ */
11
+ planUnlockCatalogKey?: string;
12
+ /**
13
+ * When set (e.g. BYOK), second line is a short setup hint instead of plan name.
14
+ */
15
+ tooltipMessage?: string;
16
+ className?: string;
17
+ };
18
+ /**
19
+ * Dark popover for locked features: feature name + plan (or minimal setup line). No bullet lists.
20
+ */
21
+ export declare const FeatureLockCard: FC<FeatureLockCardProps>;
22
+ export default FeatureLockCard;
@@ -0,0 +1,12 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import { TooltipContent } from '../ui/tooltip';
3
+ export type FeatureLockTooltipContentProps = {
4
+ featureName: string;
5
+ displayTitle?: string;
6
+ planUnlockCatalogKey?: string;
7
+ tooltipMessage?: string;
8
+ } & Pick<ComponentPropsWithoutRef<typeof TooltipContent>, "side" | "sideOffset" | "align" | "alignOffset">;
9
+ /**
10
+ * Tooltip shell + arrow + {@link FeatureLockCard} for locked items outside `LockedFeature`.
11
+ */
12
+ export declare const FeatureLockTooltipContent: FC<FeatureLockTooltipContentProps>;
@@ -17,6 +17,11 @@ export interface LockedFeatureProps {
17
17
  * Optional custom tooltip when locked (e.g. BYOK "Add API keys in License > Manage API Keys").
18
18
  */
19
19
  tooltipMessage?: string;
20
+ /**
21
+ * Catalog key for featureMinimumPlanNames from API (e.g. floating.colors).
22
+ * Omit to use the resolved key from featureName.
23
+ */
24
+ planUnlockCatalogKey?: string;
20
25
  }
21
26
  /**
22
27
  * LockedFeature - A wrapper component that shows a lock/disabled overlay on disabled features
@@ -27,7 +32,7 @@ export interface LockedFeatureProps {
27
32
  * - Otherwise, renders children with:
28
33
  * - Grayed out/disabled appearance (opacity-50)
29
34
  * - Non-interactive (pointer-events-none on children)
30
- * - Lock icon + "not available in your plan" tooltip
35
+ * - Lock icon + plan card on hover (title + plan / setup line)
31
36
  */
32
37
  declare const LockedFeature: FC<LockedFeatureProps>;
33
38
  export default LockedFeature;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Catalog key aliases for plan lookup (`featureMinimumPlanNames`) and metadata resolution.
3
+ * UI shows only feature title + plan name in the lock card — no description copy.
4
+ */
5
+ /** When the API does not supply a plan name for this feature */
6
+ export declare const FALLBACK_MINIMUM_PLAN_LABEL = "a higher plan";
7
+ export declare function resolveLockedFeatureMetadataKey(featureName: string): string;
@@ -1,6 +1,6 @@
1
- export declare const useStyles: () => {
2
- root: string;
3
- toolbar: string;
4
- toolbarButton: string;
1
+ export declare const toolbarStyles: {
2
+ readonly root: "cteditor-p-2 cteditor-border-b cteditor-border-[#e0e0e0] cteditor-max-w-full cteditor-overflow-x-auto";
3
+ readonly toolbar: "cteditor-p-2 cteditor-max-w-full cteditor-overflow-x-auto cteditor-flex cteditor-flex-nowrap cteditor-gap-1";
4
+ readonly toolbarButton: "cteditor-p-1.5";
5
5
  };
6
- export default useStyles;
6
+ export default toolbarStyles;
@@ -4,4 +4,5 @@ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
4
  declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
5
  declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
6
  declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
7
+ declare const TooltipArrow: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
8
+ export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };