eddyter 1.3.76 → 1.3.77
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/dist/Provider/EditorProvider.d.ts +12 -0
- package/dist/api/auth.d.ts +10 -0
- package/dist/api/bugReport.d.ts +2 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/ImageView/ImageCropDialog.d.ts +18 -0
- package/dist/components/LockedFeature/LockedFeature.d.ts +4 -0
- package/dist/config/env.d.ts +1 -0
- package/dist/editorConfig.d.ts +1 -0
- package/dist/{generateDocxThumbnail-BbSs-3CJ.js → generateDocxThumbnail-Du6zd_sv.js} +1 -1
- package/dist/{generatePdfThumbnail-U8R2yu3J.js → generatePdfThumbnail-DdNHlnr8.js} +3 -3
- package/dist/{generateXlsxThumbnail-BUwuqsXR.js → generateXlsxThumbnail-VFzuEJln.js} +1 -1
- package/dist/{html2pdf.bundle.min-Css6bHHm.js → html2pdf.bundle.min-4S-fQVxW.js} +1 -1
- package/dist/index-BUrH5xJk.js +1498 -0
- package/dist/{index-CVEa0GRe.js → index-DCBdbL8A.js} +29 -29
- package/dist/{index-CCVZobcV.js → index-DSNo50FN.js} +15 -15
- package/dist/{index-DjD3NbU0.js → index-Dh3DFyBT.js} +11690 -11381
- package/dist/index.js +1 -1
- package/dist/nodes/EmbedNode.d.ts +2 -1
- package/dist/types.d.ts +2 -0
- package/dist/utils/cropUrl.d.ts +28 -0
- package/dist/utils/export.d.ts +5 -0
- package/package.json +6 -5
- package/dist/index-DTkM3xiE.js +0 -848
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type CropDialogProps = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
src: string;
|
|
5
|
+
altText: string;
|
|
6
|
+
width: "inherit" | number;
|
|
7
|
+
height: "inherit" | number;
|
|
8
|
+
onCropApply: (crop: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
naturalWidth: number;
|
|
14
|
+
naturalHeight: number;
|
|
15
|
+
}) => void | Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
export default function ImageCropDialog({ open, onOpenChange, src, altText, width, height, onCropApply, }: CropDialogProps): JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -13,6 +13,10 @@ export interface LockedFeatureProps {
|
|
|
13
13
|
* planAllows: true if the user's plan includes this feature.
|
|
14
14
|
*/
|
|
15
15
|
planAllows?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Optional custom tooltip when locked (e.g. BYOK "Add API keys in License > Manage API Keys").
|
|
18
|
+
*/
|
|
19
|
+
tooltipMessage?: string;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
18
22
|
* LockedFeature - A wrapper component that shows a lock/disabled overlay on disabled features
|
package/dist/config/env.d.ts
CHANGED
package/dist/editorConfig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Tt, g as Se,
|
|
1
|
+
import { c as Tt, g as Se, H as Ce, k as xe } from "./index-Dh3DFyBT.js";
|
|
2
2
|
import { h as Ee } from "./html2canvas.esm-C2wu93Kq.js";
|
|
3
3
|
function Ft(c) {
|
|
4
4
|
throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as g from "pdfjs-dist";
|
|
2
|
-
import {
|
|
2
|
+
import { H as l, k as m } from "./index-Dh3DFyBT.js";
|
|
3
3
|
g.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";
|
|
4
4
|
async function u(a) {
|
|
5
5
|
if (a.startsWith("data:application/pdf;base64,") || a.startsWith("data:application/pdf,")) {
|
|
@@ -15,7 +15,7 @@ async function u(a) {
|
|
|
15
15
|
return new Uint8Array(n);
|
|
16
16
|
}
|
|
17
17
|
const d = 240, p = 176;
|
|
18
|
-
async function
|
|
18
|
+
async function y(a) {
|
|
19
19
|
try {
|
|
20
20
|
const o = await u(a), n = await (await g.getDocument({ data: o }).promise).getPage(1), f = n.getViewport({ scale: 1 }), r = d / f.width, e = n.getViewport({ scale: r }), t = document.createElement("canvas");
|
|
21
21
|
t.width = e.width, t.height = e.height;
|
|
@@ -49,5 +49,5 @@ async function b(a) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
y as generatePdfThumbnail
|
|
53
53
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as Ci } from "./html2canvas.esm-C2wu93Kq.js";
|
|
2
|
-
import {
|
|
2
|
+
import { H as yi, k as Di } from "./index-Dh3DFyBT.js";
|
|
3
3
|
var In = 1252, Oi = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], Zt = {
|
|
4
4
|
/*::[*/
|
|
5
5
|
0: 1252,
|